@media all {
    :root {
        --viola: #312786;
        --viola-scuro: #171327;
        --arancio: #b84200;
        --arancio-scuro: #953600;
        --testo: #171625;
        --grigio-testo: #666572;
        --grigio-chiaro: #f4f4f6;
        --bianco: #fff;
        --colore-testo: var(--testo);
        --colore-sfondo: var(--bianco);
        --colore-principale: var(--viola);
        --colore-accento: var(--arancio);
    }

    *, *::before, *::after { box-sizing: border-box; }

    html, body, div, span, h1, h2, h3, p, ul, ol, li, dl, dt, dd,
    header, nav, main, section, article, aside, footer, figure, details,
    summary, form, fieldset { margin: 0; padding: 0; }

    html { overflow-x: clip; scroll-behavior: smooth; }

    body {
        min-width: 280px;
        overflow-x: hidden;
        color: var(--testo);
        background: var(--bianco);
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
    }

    body.menu-open { overflow: hidden; }

    [hidden] { display: none !important; }

    img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    ul, ol { list-style: none; }

    ul.elenco-editoriale,
    ol.elenco-editoriale {
        margin: 18px 0;
        padding-left: 28px;
        color: var(--grigio-testo);
        list-style-position: outside;
    }

    ul.elenco-editoriale { list-style-type: disc; }
    ol.elenco-editoriale { list-style-type: decimal; }

    .elenco-editoriale li { margin-bottom: 8px; }

    a { color: inherit; }

    button, input { font: inherit; }

    button { color: inherit; }

    h1, h2, h3 {
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    h1 { font-size: 58px; }
    h2 { font-size: 43px; }
    h3 { font-size: 20px; }

    p { color: var(--grigio-testo); }

    blockquote {
        margin: 0;
        padding: 20px 24px;
        border-left: 4px solid var(--arancio);
        color: var(--grigio-testo);
        background: var(--grigio-chiaro);
    }

    p + blockquote,
    blockquote + p { margin-top: 20px; }

    :focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 4px;
    }

    .container {
        width: calc(100% - 48px);
        max-width: 1320px;
        margin-right: auto;
        margin-left: auto;
    }

    .container-testo { max-width: 960px; }

    .clearfix::after {
        display: table;
        clear: both;
        content: "";
    }

    .clear_left { clear: left; }
    .clear_right { clear: right; }
    .clear_both { clear: both; }

    .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .salta-contenuto {
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 5000;
        padding: 10px 16px;
        color: var(--bianco);
        background: var(--viola-scuro);
        font-weight: 700;
        transform: translateY(-160%);
    }

    .salta-contenuto:focus { transform: translateY(0); }

    .sopratitolo {
        margin-bottom: 18px;
        color: var(--arancio);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .campo-ricerca {
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 0 auto 44px;
        color: #00a9d9;
    }

    .campo-ricerca input[type="search"] {
        display: block;
        width: 100%;
        height: 60px;
        padding: 0 64px 0 28px;
        border: 1px solid #c7d0ef;
        border-radius: 24px;
        outline: 0;
        color: var(--testo);
        background: var(--bianco);
        font-size: 16px;
        line-height: 1.3;
        appearance: none;
    }

    .campo-ricerca input[type="search"]::placeholder {
        color: var(--grigio-testo);
        opacity: 1;
    }

    .campo-ricerca input[type="search"]:focus-visible {
        border-color: #00a9d9;
        outline: 3px solid rgba(0, 169, 217, 0.24);
        outline-offset: 2px;
    }

    .campo-ricerca input[type="search"]::-webkit-search-cancel-button { appearance: none; }

    .campo-ricerca-icona {
        position: absolute;
        top: 50%;
        right: 25px;
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.5;
        stroke-linecap: round;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .campo-ricerca-messaggio {
        margin: -19px 0 40px;
        color: var(--grigio-testo);
    }

    .pulsante {
        display: inline-block;
        min-height: 52px;
        padding: 14px 24px;
        border: 2px solid transparent;
        text-decoration: none;
        font-size: 14px;
        font-weight: 800;
        line-height: 20px;
        text-align: center;
        transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
    }

    button.pulsante { cursor: pointer; }

    .pulsante span, .link-freccia span { margin-left: 9px; }

    .pulsante-arancio {
        color: var(--bianco);
        background: var(--arancio);
    }

    .pulsante-arancio:hover { background: var(--arancio-scuro); }

    .pulsante-trasparente {
        color: var(--bianco);
        border-color: rgba(255,255,255,0.85);
        background: transparent;
    }

    .pulsante-trasparente:hover {
        color: var(--viola);
        background: var(--bianco);
    }

    .pulsante-bianco {
        color: var(--viola);
        background: var(--bianco);
    }

    .pulsante-bianco:hover { background: #f1efff; }

    .link-freccia {
        display: inline-block;
        padding-bottom: 4px;
        border-bottom: 2px solid var(--arancio);
        color: var(--viola);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.35;
        text-decoration: none;
    }

    .link-freccia:hover { color: var(--arancio-scuro); }

    .cta-finale {
        min-height: 250px;
        padding: 73px 0;
        color: var(--bianco);
        background: var(--arancio);
    }

    .cta-riga {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
    }

    .cta-finale h2 {
        margin-bottom: 10px;
        font-size: 38px;
        letter-spacing: -0.025em;
    }

    .cta-finale p,
    .cta-finale .cta-testo { color: var(--bianco); }

    .pagina-semplice {
        min-height: 660px;
        padding: 95px 0 115px;
    }

    .pagina-semplice h1 { margin-bottom: 36px; }
    .pagina-semplice h2 { margin: 52px 0 14px; font-size: 27px; }
    .pagina-semplice p + p { margin-top: 20px; }

    .pagina-404 { display: flex; align-items: center; }
    .pagina-404 .container-testo { margin-top: auto; margin-bottom: auto; }
    .pagina-404 h1 { max-width: 750px; }
}

@media all and (max-width: 1100px) {
    h1 { font-size: 51px; }
    h2 { font-size: 39px; }
    .cta-finale h2 { font-size: 34px; }
}

@media all and (max-width: 760px) {
    .container { width: calc(100% - 36px); }
    h1 { font-size: 42px; }
    h2 { font-size: 34px; }
    h3 { font-size: 19px; }
    .campo-ricerca { margin-bottom: 34px; }
    .campo-ricerca input[type="search"] { height: 56px; padding: 0 56px 0 24px; border-radius: 22px; font-size: 16px; }
    .campo-ricerca-icona { right: 22px; width: 22px; height: 22px; }
    .campo-ricerca-messaggio { margin: -12px 0 32px; }
    .br-desktop br { display: none; }
    .cta-finale { min-height: 0; padding: 55px 0; }
    .cta-riga { display: block; }
    .cta-finale .pulsante { margin-top: 28px; }
    .pagina-semplice { padding: 70px 0 85px; }
}

@media all and (max-width: 420px) {
    .container { width: calc(100% - 28px); }
    h1 { font-size: 36px; }
    h2 { font-size: 31px; }
    .pulsante { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* VIDEO INCORPORATO */
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.5rem 0;
    overflow: hidden;
}

.video-embed > [data-cookie-placeholder],
.video-embed > [data-cookie-loaded] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-embed > [data-cookie-placeholder] {
    min-height: 0;
}

.video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* MAPPA GOOGLE */
.mappa-google-iframe {
    display: block;
    width: 100%;
    height: clamp(280px, 42vw, 450px);
    border: 0;
}
