@media all {
    :root {
        --viola: #312786;
        --viola-scuro: #171327;
        --arancio: #b84200;
        --arancio-scuro: #953600;
        --testo: #171625;
        --grigio-testo: #666572;
        --grigio-chiaro: #f4f4f6;
        --bianco: #fff;
    }

    *, *::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; }

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

    ul, ol { list-style: none; }

    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); }

    :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;
    }

    .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 { 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-semplice .nota-bozza {
        padding: 20px 24px;
        border-left: 4px solid var(--arancio);
        background: var(--grigio-chiaro);
    }

    .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; }
    .solo-desktop { 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;
    }
}
