* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

:root {
    --primary: #0069FF;
    --primary-dark: #0052CC;
    --bg: #FFFFFF;
    --text: #1a1a1a;
    --text-muted: #555;
    --sans: "Elms Sans", system-ui, sans-serif;
    --serif: "Bodoni Moda", serif;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--sans);
}

a {
    color: var(--text);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

body {
    width: 100%;
    /* Un elemento decorativo posizionato in absolute non deve mai aprire
       una scrollbar orizzontale sull'intera pagina su viewport stretti. */
    overflow-x: hidden;
    background-color: var(--bg);
    font-family: var(--sans);
}

/* ===================== NAVBAR =====================
   A tutta larghezza, integrata con lo sfondo bianco (nessuna pillola/ombra
   flottante come in HonorRoll): logo a sinistra, link al centro, CTA a
   destra. */
#navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    background-color: transparent;
}

.nav_left {
    display: flex;
    align-items: center;
    width: 200px;
}

.nav_logo {
    width: 130px;
    height: auto;
}

.nav_links {
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 14px 24px;
}

.nav_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.nav_link_chevron {
    color: var(--text);
    transition: transform 0.2s;
}

.nav_item_active .nav_link_chevron {
    transform: rotate(180deg);
}

.nav_right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 200px;
    flex-shrink: 0;
}

/* ===================== BOTTONI =====================
   Stile unico riusato per tutti i CTA del sito: pillola piena colore
   primario, hover leggermente più scuro + lift. */
.button_primary {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--primary);
    color: #fff;
    background: var(--primary);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    padding: 13px 17px;
    transition: background-color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.button_primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Login: stesso liquid glass del thumb attivo dello switch hero (blur + gradiente blu). */
.button_glass {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 105, 255, 0.95), rgba(0, 82, 204, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    padding: 13px 17px;
    box-shadow: 0 4px 14px rgba(0, 105, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: background-color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.button_glass:hover {
    background: linear-gradient(180deg, rgba(0, 82, 204, 0.95), rgba(0, 61, 153, 0.95));
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .nav_links {
        display: none;
    }
    .nav_left,
    .nav_right {
        width: auto;
    }
}

/* ===================== NAVBAR: MEGA MENU =====================
   Un unico pannello condiviso (#navDropdown), non un pannello per link:
   passando da una voce all'altra il pannello e il caret si spostano/
   ridimensionano (via JS, vedi home.js) invece di chiudersi e riaprirsi
   ("morphing"). Il posizionamento (left/width del pannello, left del
   caret) è calcolato in home.js in base al link attivo; qui restano
   solo aspetto statico e transizione di fade+scale+translateY. */
.nav_dropdown {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1300px;
    padding: 0 6%;
    box-sizing: border-box;
    height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
    z-index: 20;
}

.nav_dropdown_open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Pannello fisso, sempre centrato orizzontalmente sotto la navbar: non
   segue il link hoverato, resta nella stessa posizione qualunque voce
   apra il menu (solo il contenuto .nav_dropdown_grid cambia). */
.nav_dropdown_panel {
    position: absolute;
    top: 0;
    left: 50%;
    background-color: var(--bg);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transform: translateX(-50%) translateY(-8px) scale(0.96);
    transform-origin: top center;
    transition: transform 0.2s ease;
}

.nav_dropdown_open .nav_dropdown_panel {
    transform: translateX(-50%) translateY(0) scale(1);
}

/* I contenuti dei 3 menu sono impilati (position:absolute, stessa
   larghezza) invece che display:none/grid, così al cambio menu si può
   incrociare una semplice dissolvenza (nessun movimento orizzontale o
   verticale) invece di un taglio netto. */
.nav_dropdown_grid {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 16px;
    width: 560px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav_dropdown_grid_active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.nav_dropdown_resource {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.nav_dropdown_resource:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

.nav_dropdown_resource_icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-top: 2px;
    border-radius: 10px;
    background-color: rgba(0, 105, 255, 0.1);
}

.nav_dropdown_resource_text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav_dropdown_resource_title {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.nav_dropdown_resource_desc {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
}

/* ===================== HERO =====================
   Colonna unica centrata: switch pubblico, poi titolo, poi box demo
   vuoto sotto (placeholder, contenuto reale arriva dopo). Lo switch
   alterna automaticamente ogni 10s tra "scuole" e "studente" (vedi
   home.js), cambiando sia il bottone attivo che il titolo. */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: calc(100vh - 117px);
    padding: 60px 6% 100px;
    box-sizing: border-box;
}

/* Sfondo a puntini della hero: pattern ripetuto, sfumato ai bordi tramite
   mask radiale così resta visibile solo verso il centro. Dietro al
   contenuto (z-index negativo), .hero è già position:relative. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#e4e6ea 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 30%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 30%, #000 70%, transparent 100%);
    z-index: -100;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

/* Immagini decorative nei margini laterali della hero, fuori dalla colonna
   di contenuto centrale (max-width 700-1100px): posizionate in absolute
   dentro .hero, nascoste sotto i 1300px per non rischiare mai di
   sovrapporsi al testo/switch/demo box quando i margini si stringono. */
.hero_deco {
    position: absolute;
    width: 110px;
    height: 110px;
    object-fit: contain;
    transition: transform 0.3s ease-out;
    will-change: transform;
    pointer-events: none;
}

.hero_deco_1 { top: 90px; left: 6%; width: 220px; height: 220px; }
.hero_deco_2 { top: 90px; left: 6%; width: 150px; height: 150px; }
.hero_deco_3 { top: 60px; right: 6%; width: 150px; height: 150px; }
.hero_deco_4 { top: 230px; right: 5%; }
.hero_deco_5 { top: 170px; right: 2%; width: 75px; height: 75px; }

@media (max-width: 1300px) {
    .hero_deco {
        display: none;
    }
}

/* Demo hero: finestra stile macOS (titlebar con pallini traffic-light +
   area contenuto) affiancata al calendario Calendly per prenotare una
   demo. Le due box sono volutamente disallineate (non stretch/allineate
   sulla stessa riga): quella di sinistra è più grande e scende più in
   basso (translateY positivo), quella di destra è più piccola e sale
   (translateY negativo). */
.hero_demo_row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 80px;
    width: 100%;
    max-width: 1250px;
    margin-top: 56px;
}

.hero_demo_box {
    display: flex;
    flex-direction: column;
    flex: 1.8;
    aspect-ratio: 16 / 12;
    padding: 8px 4px 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 105, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: left;
    transform: translate(-16px, 24px);
}

.hero_calendar {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0.7;
    height: 420px;
    align-self: flex-start;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 105, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-24px);
}

.hero_calendar_header {
    flex-shrink: 0;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: rgba(41, 41, 41, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero_calendar_body {
    flex: 1;
    overflow: hidden;
}

@media (max-width: 900px) {
    .hero_demo_row {
        flex-direction: column;
    }

    .hero_demo_box,
    .hero_calendar {
        transform: none;
    }

    .hero_demo_box {
        aspect-ratio: 16 / 9;
    }
}

.hero_demo_titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 6px 8px 10px;
}

.hero_demo_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero_demo_dot_red { background-color: #ff5f57; }
.hero_demo_dot_yellow { background-color: #febc2e; }
.hero_demo_dot_green { background-color: #28c840; }

.hero_demo_content {
    flex: 1;
    border-radius: 0 0 6px 6px;
    background-color: rgba(0, 105, 255, 0.06);
    overflow: hidden;
}

/* Social proof: riga loghi/nomi clienti sotto la demo box, testo grigio
   uniforme finché non arrivano i loghi reali. */
.hero_social_proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin-top: 140px;
}

.hero_social_proof_label {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

/* Marquee: due copie identiche della riga loghi affiancate, traslate
   insieme del 50% (= larghezza di una copia) in loop continuo, così il
   secondo set prende il posto esatto del primo senza scatti. Maschera
   sfumata ai bordi per dissolvere l'ingresso/uscita dei loghi. */
.hero_social_proof_marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hero_social_proof_logos {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 64px;
    animation: hero_social_proof_scroll 24s linear infinite;
}

.hero_social_proof_marquee {
    display: flex;
    gap: 64px;
}

.hero_social_proof_logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.5;
    transition: filter 0.2s, opacity 0.2s;
}

.hero_social_proof_logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes hero_social_proof_scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero_social_proof_logos {
        animation: none;
    }
}

/* Switch liquid glass: blur + trasparenza, bordo chiaro sottile, thumb con
   gradiente scuro e glow leggero. */
.hero_switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 55px;
    background: linear-gradient(180deg, rgba(0, 105, 255, 0.12), rgba(0, 82, 204, 0.08));
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 4px;
    margin-top: 40px;
    box-shadow: 0 2px 6px rgba(0, 105, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero_switch_thumb {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(0, 105, 255, 0.95), rgba(0, 82, 204, 0.95));
    box-shadow: 0 4px 14px rgba(0, 105, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1), width 0.4s cubic-bezier(0.6, 0, 0.2, 1);
    z-index: 0;
}

.hero_switch_btn {
    position: relative;
    z-index: 1;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 10px;
    transition: color 0.3s;
    white-space: nowrap;
}

.hero_switch_btn_active {
    color: #fff;
}

.hero_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: clamp(40px, 4.6vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--text);
    max-width: 760px;
    height: 2.3em;
}

/* ===================== HERO TITLE: TYPEWRITER =====================
   .hero_panel contiene il testo (con .hero_highlight colorato) già spezzato
   in .hero_char da home.js; ogni carattere è invisibile finché non riceve
   .hero_char_visible (rivelati uno alla volta via setTimeout). Il caret è
   un <img> vero nel DOM, spostato dopo l'ultimo carattere comparso e poi
   lasciato a lampeggiare in coda al testo. */
.hero_panel {
    display: none;
}

.hero_panel_active {
    display: inline;
}

.hero_word {
    display: inline-block;
    white-space: nowrap;
}

.hero_char {
    display: inline-block;
    white-space: pre;
    opacity: 0;
}

.hero_char_visible {
    opacity: 1;
}

.hero_cursor {
    display: inline-block;
    height: 0.95em;
    width: auto;
    margin-left: 10px;
    vertical-align: -0.15em;
    animation: hero_cursor_blink 0.8s linear infinite;
}

@keyframes hero_cursor_blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero_cursor {
        animation: none;
    }
}

.hero_highlight {
    color: var(--primary);
}

.hero_title_icon {
    display: inline-block;
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    margin: 0 4px;
}

.hero_actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.button_ghost {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    padding: 13px 17px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    .hero {
        padding-top: 40px;
    }
}

/* ===================== FEATURES =====================
   Sezione "come funziona": intestazione a due colonne (titolo grande a
   sinistra, sottotitolo a destra) seguita da 3 card affiancate, ognuna con
   un mockup visivo sopra e un titolo sotto. */
.features {
    width: 100%;
    height: 100vh;
    max-width: 1300px;
    margin: 0 auto 80px;
    padding: 120px 6% 100px;
    box-sizing: border-box;
    overflow: hidden;
}

.features_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 56px;
}

.features_title {
    font-family: var(--sans);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 480px;
}

.features_word_swap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: top;
    line-height: 1.2;
    padding-bottom: 0.1em;
    color: var(--primary);
}

.features_word_swap_inner {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.2;
    will-change: transform;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.features_word_swap_inner_incoming {
    position: absolute;
    left: 0;
    top: 0;
}

.features_subtitle {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 420px;
    margin-top: 6px;
}

.features_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.features_card {
    display: flex;
    flex-direction: column;
    background: #f4f4f5;
    border-radius: 20px;
    overflow: hidden;
}

.features_card_visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    padding: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.features_card_visual_tint1,
.features_card_visual_tint2,
.features_card_visual_tint3 {
    background: transparent;
}

.features_card_visual_badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.compare_slot_after .features_card_visual_badge {
    right: auto;
    left: 20px;
}

.features_card_visual_badge_wordmark {
    height: 20px;
    width: auto;
}

.features_card_visual_badge_text {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.features_card_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
}

.features_card_title {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

.features_card_expand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    margin-right: 15px;
}

.features_card_expand_icon {
    width: 100%;
    height: 100%;
    background-color: #a4a4a4;
    -webkit-mask-image: url("/static/assets/icon_expand.svg");
    mask-image: url("/static/assets/icon_expand.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

@media (max-width: 900px) {
    .features {
        padding-top: 80px;
    }

    .features_header {
        flex-direction: column;
        gap: 16px;
    }

    .features_grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== COME FUNZIONA (SCROLL-DRIVEN) =====================
   3 step (Design, Genera, Invia) a sinistra, ognuno con barra di
   avanzamento sottile sotto il testo; pannello mockup a destra. Mentre si
   scrolla dentro .how, .how_sticky viene pinnata da ScrollTrigger (home.js):
   sia la colonna sinistra che quella destra restano ferme in viewport,
   solo lo step attivo (evidenziato + barra) e il pannello mockup a destra
   cambiano in base al progresso di scroll. */
.how {
    width: 100%;
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 6%;
    box-sizing: border-box;
}

.how_header {
    max-width: 90%;
}

.how_title {
    font-family: var(--sans);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
}

.how_subtitle {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 12px;
}

.how_pin {
    display: flex;
    align-items: center;
    height: 100vh;
}

.how_sticky {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.how_col_left {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding: 40px 0;
    width: 50%;
}

.how_step {
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.how_step_active {
    opacity: 1;
}

/* Bottone step: bordo si riempie da 0 a 360 gradi via conic-gradient
   (--sweep, vedi home.js) man mano che si scrolla lo step corrispondente. */
.how_step_button {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 13px 17px;
    border-radius: 10px;
    --sweep: 0deg;
}

.how_step_button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 1px;
    background: conic-gradient(var(--primary) var(--sweep), rgba(0, 0, 0, 0.15) var(--sweep));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.how_step_button_label {
    position: relative;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
}

.how_step_active .how_step_button_label {
    color: var(--primary);
}

.how_col_right {
    display: flex;
    align-items: stretch;
    width: 50%;
}

.how_panel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    padding: 24px;
    border-radius: 10px;
    overflow: hidden;
}

/* Visibilità/posizione del pannello attivo su desktop sono gestite via GSAP
   (yPercent/scale/autoAlpha inline, vedi home.js) per lo slide+scale allo
   switch tra step; qui restano solo le proprietà statiche di layout. */
.how_panel_view {
    position: absolute;
    inset: 24px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
}

.how_panel_view_active {
    opacity: 1;
    pointer-events: auto;
}

.how_panel_view_tint1 {
    background: rgba(0, 105, 255, 0.08);
}

.how_panel_view_tint2 {
    background: rgba(0, 105, 255, 0.16);
}

.how_panel_view_tint3 {
    background: rgba(0, 82, 204, 0.26);
}

@media (max-width: 900px) {
    .how_pin {
        height: auto;
    }

    .how_sticky {
        flex-direction: column;
        gap: 40px;
    }

    .how_col_left,
    .how_col_right {
        width: 100%;
    }

    .how_panel {
        height: 320px;
    }

    .how_col_left {
        padding: 0;
        gap: 40px;
    }

    /* Sotto i 900px il pin viene disattivato (vedi home.js): tutti gli step
       e il pannello vanno mostrati leggibili senza dipendere dallo scroll. */
    .how_step {
        opacity: 1;
    }

    .how_panel_view {
        position: static;
        inset: auto;
        opacity: 1;
        pointer-events: auto;
        display: none;
    }

    .how_panel_view_active {
        display: flex;
    }
}

/* ===================== TRUST =====================
   Badge pillola + headline centrata, seguiti da una grid 3x2 di card
   (icona, titolo, testo). La card centrale della prima riga è evidenziata
   con un tint più marcato per attirare l'occhio, come nel resto del sito
   (features_card_visual_tint*). Ogni card entra in fade+rise allo scroll
   (GSAP ScrollTrigger, vedi home.js), con leggero stagger tra le card. */
.trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 6%;
    box-sizing: border-box;
    text-align: center;
}

.trust_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 105, 255, 0.08);
    border: 1px solid rgba(0, 105, 255, 0.16);
    border-radius: 10px;
    padding: 8px 16px;
    margin-bottom: 24px;
}

.trust_title {
    font-family: var(--sans);
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 780px;
    margin-bottom: 56px;
}

.trust_title em {
    font-style: italic;
    color: var(--primary);
}

.trust_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    text-align: left;
}

.trust_card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 28px;
    opacity: 0;
    transform: translateY(24px);
}

.trust_card_highlight {
    background: linear-gradient(160deg, rgba(0, 105, 255, 0.14), rgba(0, 105, 255, 0.03));
    border-color: rgba(0, 105, 255, 0.2);
}

.trust_card_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--primary);
}

.trust_card_title {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.trust_card_text {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .trust_grid {
        grid-template-columns: 1fr;
    }
}

.placeholder {
    width: 100%;
    height: 100vh;
}

/* ===================== COMPARE (Prima / Con Certly) =====================
   Header (titolo sinistra / sottotitolo destra) copiato dallo stile di
   .features_header. Sotto, tre slot vuoti in attesa di asset forniti a
   parte: immagine "prima", freccia, immagine "dopo". */
.compare {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 140px 6% 180px;
    box-sizing: border-box;
}

/* Sfondo a puntini, stesso pattern della hero (vedi .hero::before). */
.compare::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#e4e6ea 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 30%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 30%, #000 70%, transparent 100%);
    z-index: -100;
    pointer-events: none;
}

.compare > * {
    position: relative;
    z-index: 1;
}

.compare_header {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}

.compare_title {
    font-family: var(--sans);
    font-size: clamp(36px, 4.2vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 900px;
    text-align: center;
}

.compare_title_logo {
    height: clamp(40px, 4vw, 54px);
    width: auto;
    vertical-align: middle;
    transform: translateY(-0.05em);
}

.compare_title_highlight {
    color: #E5484D;
}

.compare_row {
    display: flex;
    align-items: center;
    gap: 32px;
}

.compare_slot {
    border-radius: 10px;
}

.compare_slot_before,
.compare_slot_after {
    flex: 1;
}

.compare_slot_before .features_card_visual,
.compare_slot_after .features_card_visual {
    height: auto;
    aspect-ratio: 1587 / 1656;
}

.features_card_visual_img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare_slot_arrow {
    flex: 0 0 80px;
    height: 32px;
}

@media (max-width: 900px) {
    .compare_header {
        flex-direction: column;
        gap: 16px;
    }

    .compare_row {
        flex-direction: column;
    }

    .compare_slot_arrow {
        width: 32px;
        height: 80px;
        flex: 0 0 80px;
    }
}

/* ===================== MANIFESTO =====================
   Sezione blu scuro, angoli arrotondati (taglio di sezione, non
   componente UI: raggio grande intenzionale, non il --radius 10px
   usato per bottoni/badge/card). */
.manifesto {
    display: none; /* nascosta temporaneamente */
    position: relative;
    z-index: 2;
    width: 90%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    padding: 120px 80px;
    background: linear-gradient(160deg, #2B3A55 0%, #33456A 55%, #3C5080 100%);
    border-radius: 48px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.manifesto_inner {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    gap: 64px;
}

.manifesto_media {
    flex: 0.7 1 0;
    align-self: stretch;
    min-height: 320px;
    border-radius: 24px;
}

.manifesto_content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.manifesto_tag {
    font-family: var(--sans); /* TEMP: font generale, ripristinare --serif */
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #071B44;
    background: #FFFFFF;
    padding: 0;
    border-radius: 0;
}

.manifesto_text {
    max-width: 1000px;
    font-family: var(--sans); /* TEMP: font generale, ripristinare --serif */
    font-size: clamp(30px, 2.4vw, 32px);
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
}

/* Scroll Highlight: ogni parola parte dim, GSAP la illumina scrollando. */
.manifesto_text .word {
    color: rgba(255, 255, 255, 0.25);
}

.button_cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    color: #071B44;
    background: #FFFFFF;
    border-radius: 10px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .manifesto_inner {
        flex-direction: column;
        gap: 40px;
    }

    .manifesto_media {
        width: 100%;
        min-height: 260px;
    }

    .manifesto_content {
        align-items: center;
    }

    .manifesto_text {
        text-align: center;
    }
}

/* ===================== REVEAL =====================
   Sezione successiva al manifesto: header (titolo/sottotitolo, stile
   copiato da .compare_header) seguito da tre righe alternate
   media/testo, a specchio una con l'altra. */
.reveal {
    display: none; /* nascosta temporaneamente, sostituita da .scale */
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: none;
    margin: 0 auto;
    background: linear-gradient(160deg, #04122E 0%, #071B44 55%, #0A2456 100%);
    padding: 140px 6%;
    box-sizing: border-box;
    border-radius: 48px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.reveal_header,
.reveal_row {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.reveal_header {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

.reveal_title {
    font-family: var(--sans);
    font-size: clamp(36px, 4.2vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 900px;
    text-align: center;
}

.reveal_row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.reveal_row + .reveal_row {
    margin-top: 100px;
}

.reveal_media {
    flex: 1 1 0;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.reveal_text_col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.reveal_step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff;
    color: #071B44;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
}

.reveal_step_title {
    font-family: var(--sans);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.reveal_step_text {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 420px;
}

@media (max-width: 900px) {
    .reveal_header {
        flex-direction: column;
        gap: 16px;
    }

    .reveal_row {
        flex-direction: column;
    }

    .reveal_row + .reveal_row {
        margin-top: 60px;
    }

    .reveal_text_col {
        align-items: center;
        text-align: center;
    }

    .reveal_step_text {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .manifesto {
        padding: 80px 24px;
        border-radius: 28px 28px 0 0;
    }
}

/* ===================== SCALE =====================
   Colonna testo a sinistra pinnata (position: sticky) mentre la colonna
   destra, più alta (grid 2x2 di card), scorre sotto di essa: nessuno
   scroll-jack, solo sticky nativo dentro un contenitore .scale_inner più
   alto della viewport (l'altezza è determinata dalla grid di card). */
.scale {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 140px 6%;
    box-sizing: border-box;
}

.scale_inner {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.scale_sticky_col {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 380px;
    gap: 20px;
}

.scale_eyebrow {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 105, 255, 0.08);
    border: 1px solid rgba(0, 105, 255, 0.16);
    border-radius: 10px;
    padding: 8px 16px;
}

.scale_title {
    font-family: var(--sans);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--text);
}

.scale_text {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}

.scale_cta {
    margin-top: 12px;
    color: #fff;
    background: var(--primary);
}

.scale_cards_col {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.scale_card {
    display: flex;
    flex-direction: column;
    background: #f4f4f5;
    border-radius: 10px;
    overflow: hidden;
}

.scale_card_visual {
    height: 220px;
    background: transparent;
}

.scale_card_visual_tint1 { background: rgba(0, 105, 255, 0.08); }
.scale_card_visual_tint2 { background: rgba(0, 105, 255, 0.16); }
.scale_card_visual_tint3 { background: rgba(0, 82, 204, 0.14); }
.scale_card_visual_tint4 { background: rgba(0, 82, 204, 0.22); }

.scale_card_footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
}

.scale_card_title {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.scale_card_text {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .scale_inner {
        flex-direction: column;
        gap: 40px;
    }

    .scale_sticky_col {
        position: static;
        flex: none;
    }

    .scale_cards_col {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* ===================== BENTO =====================
   Header (titolo + sottotitolo centrati) seguito da una grid 70/30: a
   sinistra 3 card in stile features_card (2 affiancate sopra, 1 larga
   sotto), a destra un video verticale 3/4 a tutta altezza. */
.bento {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 140px 6%;
    box-sizing: border-box;
}

.bento_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 56px;
}

.bento_title {
    font-family: var(--sans);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 700px;
}

.bento_subtitle {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 500px;
    margin-top: 12px;
}

.bento_grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.bento_col_left {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bento_row_top {
    display: flex;
    gap: 24px;
}

.bento_row_top .bento_card {
    flex: 1;
}

.bento_row_bottom {
    display: flex;
}

.bento_card_wide {
    flex: 1;
}

.bento_col_right {
    flex: 1;
}

.bento_video {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: #f4f4f5;
}

@media (max-width: 900px) {
    .bento_grid {
        flex-direction: column;
    }

    .bento_col_left {
        flex: none;
        width: 100%;
    }

    .bento_row_top {
        flex-direction: column;
    }

    .bento_video {
        aspect-ratio: 3 / 4;
        height: auto;
    }
}

/* ===================== TESTIMONIALS =====================
   Header (titolo/sottotitolo, stile .compare_header) seguito da una riga
   di card orizzontale scrollabile: foto/logo di sfondo, overlay scuro in
   basso per leggibilità, quote + meta (dipendenti/settore). Frecce
   prev/next scrollano la riga di una card (vedi home.js). */
.testimonials {
    width: 100%;
    padding: 140px 0;
    padding-left: max(6%, calc((100% - 1300px) / 2 + 78px));
    box-sizing: border-box;
}

.testimonials_header {
    margin-bottom: 40px;
}

.testimonials_title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--sans);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.testimonials_title_logo {
    height: clamp(34px, 3.6vw, 48px);
    width: auto;
}

.testimonials_subtitle {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 560px;
    margin-top: 12px;
}

.testimonials_row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonials_row::-webkit-scrollbar {
    display: none;
}

.testimonials_card {
    position: relative;
    flex: 0 0 auto;
    width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #1a1a1a;
}

.testimonials_card_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials_card_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.75) 100%);
}

.testimonials_card_logo {
    position: absolute;
    top: 24px;
    left: 24px;
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.testimonials_card_footer {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonials_card_quote {
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.testimonials_card_meta {
    display: flex;
    gap: 12px;
}

.testimonials_card_meta_item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.testimonials_card_meta_label {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.testimonials_card_meta_value {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.testimonials_nav {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.testimonials_nav_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--bg);
    color: var(--text);
    transition: background-color 0.2s;
}

.testimonials_nav_btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

@media (max-width: 700px) {
    .testimonials_card {
        width: 260px;
    }
}

/* ===================== FAQ =====================
   Titolo + sottotitolo a sinistra, lista accordion a destra: ogni riga ha
   titolo + bottone plus (stessa icona icon_expand.svg delle features_card)
   che ruota di 90deg quando la riga è aperta, rivelando la risposta sotto
   con una linea divisoria tra le righe (nessuna card, solo lista).
   Contenuta in .faq_box, lo stesso trattamento "box" scuro con angoli
   arrotondati di .reveal (gradiente blu navy), con la stessa animazione di
   ingresso (sale dal basso in fade, vedi home.js). */
.faq {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 5% 100px;
    box-sizing: border-box;
}

.faq_box {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: linear-gradient(160deg, #04122E 0%, #071B44 55%, #0A2456 100%);
    padding: 140px 6%;
    box-sizing: border-box;
    border-radius: 48px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.faq_inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.faq_header {
    flex: 0 0 380px;
}

.faq_title {
    font-family: var(--sans);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #fff;
}

.faq_subtitle {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 12px;
}

.faq_list {
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.faq_item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq_item_trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 24px 0;
    text-align: left;
}

.faq_item_title {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.faq_item_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.faq_item_toggle_icon {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    -webkit-mask-image: url("/static/assets/icon_expand.svg");
    mask-image: url("/static/assets/icon_expand.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.faq_item_trigger[aria-expanded="true"] .faq_item_toggle_icon {
    transform: rotate(90deg);
}

.faq_item_panel {
    display: grid;
    grid-template-rows: 0fr;
    min-height: 0;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease;
}

.faq_item_panel > * {
    min-height: 0;
    overflow: hidden;
}

.faq_item_trigger[aria-expanded="true"] + .faq_item_panel {
    grid-template-rows: 1fr;
}

.faq_item_answer {
    display: none;
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    padding-bottom: 24px;
}

.faq_item_trigger[aria-expanded="true"] + .faq_item_panel .faq_item_answer {
    display: block;
}

@media (max-width: 900px) {
    .faq_inner {
        flex-direction: column;
        gap: 32px;
    }

    .faq_header {
        flex: none;
    }
}

@media (max-width: 700px) {
    .faq_box {
        padding: 80px 24px;
        border-radius: 28px;
    }
}

/* ===================== FOOTER =====================
   Sfondo scuro (unica sezione oltre a .how/.reveal ad averlo): 5 colonne
   di link in alto, wordmark enorme + social in basso, riga copyright in
   fondo. Ispirato al footer di Oyster HR (screenshot fornito dall'utente):
   stessa gerarchia, non uno stile "card" come il resto del sito. */
.site_footer {
    width: 100%;
    background: linear-gradient(160deg, #04122E 0%, #071B44 55%, #0A2456 100%);
    padding: 80px 6% 40px;
    box-sizing: border-box;
}

.footer_inner {
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.footer_columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.footer_column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer_column_title {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.footer_link {
    font-family: var(--sans);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.footer_link:hover {
    color: #fff;
}

.footer_brand {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer_wordmark {
    height: clamp(80px, 11vw, 160px);
    width: auto;
    filter: brightness(0) invert(1);
}

.footer_social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer_social_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: background-color 0.2s;
}

.footer_social_icon:hover {
    background-color: rgba(255, 255, 255, 0.16);
}

.footer_bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 32px;
}

.footer_copyright {
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
    .footer_columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer_brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 500px) {
    .footer_columns {
        grid-template-columns: 1fr;
    }
}
