/*
 * Banner cookie, link legali nel footer, pagine privacy/cookie policy e
 * contenuti social bloccati. Stesso linguaggio del sito: fondo giallo,
 * card beige con bordo nero, titoli Peanut Donuts, bottoni a pillola.
 */
:root {
    --sf-yellow: #FFB900;
    --sf-pink: #FFB0B5;
    --sf-cream: #FBECE2;
    --sf-ink: #171717;
}

/* ---------- Banner ---------- */
.cookie-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
    width: min(440px, calc(100% - 48px));
    padding: 26px 28px 28px;
    border: 2px solid var(--sf-ink);
    border-radius: 22px;
    background: var(--sf-cream);
    color: var(--sf-ink);
    font-family: 'Space Grotesk', sans-serif;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__title {
    margin: 0 0 10px;
    font-family: 'Peanut Donuts', sans-serif;
    font-size: 1.6rem;
    line-height: 1.1;
    text-transform: uppercase;
}
.cookie-banner__title:empty { display: none; }
.cookie-banner__text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
}
.cookie-banner__more {
    color: var(--sf-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-banner__actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Bottone a pillola, come "Parliamone" in showcase: rifiuta e accetta hanno lo stesso peso. */
.cookie-banner__button {
    flex: 1 1 0;
    padding: 12px 22px;
    border: 2px solid var(--sf-ink);
    border-radius: 40px;
    background: #fff;
    color: var(--sf-ink);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s;
}
.cookie-banner__button--accept { background: var(--sf-pink); }
.cookie-banner__button:hover { background: var(--sf-yellow); }

.cookie-banner a:focus-visible,
.cookie-banner__button:focus-visible,
.cookie-links a:focus-visible,
.cookie-links__open:focus-visible,
.legal-page a:focus-visible,
.embed-placeholder a:focus-visible {
    outline: 3px solid var(--sf-ink);
    outline-offset: 4px;
}

@media (max-width: 575.98px) {
    .cookie-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        padding: 22px 20px 20px;
    }
    .cookie-banner__title { font-size: 1.35rem; }
}

/* ---------- Link nel footer ---------- */
.cookie-links {
    margin: 14px 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: #000;
}
.cookie-links a,
.cookie-links__open {
    padding: 0;
    border: 0;
    background: none;
    color: #000;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.cookie-links a:hover,
.cookie-links__open:hover { text-decoration: underline; text-underline-offset: 2px; }
.cookie-links span { margin: 0 6px; }

/* ---------- Pagine privacy e cookie policy ---------- */
.legal-body-page {
    background: var(--sf-yellow);
    color: var(--sf-ink);
    font-family: 'Space Grotesk', sans-serif;
    padding-top: 140px;
}
/* La navbar condivisa eredita il font dal body: sulle altre pagine e Peanut Donuts. */
.legal-body-page #header { font-family: 'Peanut Donuts', sans-serif; }
.legal-page { padding-bottom: 40px; }
.legal-intro { max-width: 850px; padding: 48px 0 40px; }
.legal-eyebrow {
    margin-bottom: 12px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.legal-page h1 {
    margin-bottom: 24px;
    font-family: 'Peanut Donuts', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.legal-meta { font-size: 1.05rem; line-height: 1.6; }
.legal-meta p { margin: 0; }
.legal-meta a { color: var(--sf-ink); font-weight: 700; }
.legal-card {
    max-width: 900px;
    padding: clamp(28px, 5vw, 56px);
    border: 2px solid var(--sf-ink);
    border-radius: 22px;
    background: var(--sf-cream);
    font-size: 1.05rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.legal-card h2 {
    margin: 40px 0 12px;
    font-family: 'Peanut Donuts', sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    text-transform: uppercase;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card ul { padding-left: 1.2rem; }
.legal-card li { margin-bottom: 10px; }
.legal-card a { color: var(--sf-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-actions { margin-top: 32px; }
.legal-actions .cookie-banner__button { flex: none; }
.legal-footer {
    padding-top: 24px;
    padding-bottom: 32px;
    text-align: center;
    overflow-wrap: anywhere;
}
.legal-footer a { color: var(--sf-ink); }
@media (max-width: 767px) {
    .legal-body-page { padding-top: 100px; }
    .legal-intro { padding: 32px 0 28px; }
}

/* ---------- Contenuti social bloccati fino al consenso ---------- */
.embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 480px;
    margin: 24px 0;
    padding: 26px 28px;
    border: 2px dashed var(--sf-ink);
    border-radius: 22px;
    background: var(--sf-cream);
    color: var(--sf-ink);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.55;
}
.embed-placeholder p { margin: 0; }
.embed-placeholder .cookie-banner__button { flex: none; }
.embed-placeholder a {
    color: var(--sf-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
