/* ============================================
   LANDING 3D WEBGL — CarbonTronic ACTUS-2
   ============================================ */

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

html, body {
    background: #000;
    color: var(--color-text-primary, #fefefe);
    font-family: var(--font-primary, 'Chakra Petch', sans-serif);
    overflow-x: hidden;
}

/* Header height token — keeps overlay sections below the fixed header */
:root {
    --header-height: 70px;
}
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
}

/* ── Z-index stack ──────────────────────────────────────
   1  .scene-video     video MP4 full-screen
   2  #webgl-canvas    Three.js particelle (alpha:true)
   3  #scroll-spacer   testo overlay sticky
   20 #scroll-banner
   999  .menu-overlay    backdrop hamburger (da header.css)
   1000 .dropdown-menu   menu aperto (da header.css)
   1002 .header          sopra overlay e dropdown
   9998 #loading-screen
   ─────────────────────────────────────────────────── */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1002;  /* > menu-overlay(999) e dropdown(1000) */
}

.landing-body .footer {
    display: none;  /* rivelato via JS all'ultimo step (CTA) */
    position: relative;
    z-index: 10;
    background-color: var(--color-surface, #111);
}

/* ── Video clips ────────────────────────────────────── */
.scene-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* ── Canvas Three.js (particelle overlay) ─────────── */
#webgl-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100dvh;
    z-index: 2;
    display: block;
    pointer-events: none;
}

/* ── Scroll spacer ──────────────────────────────────── */
#scroll-spacer {
    position: relative;
    min-height: 100vh;
    z-index: 3;
    pointer-events: none;
}

/* ── Overlay sections — animazione JS-driven ────────── */
/*
   JS imposta direttamente:
     el.style.opacity   = 0..1
     el.style.transform = 'translateY(Npx)'
   Niente CSS transition: tutto controllato via rAF con lerp.
*/
.overlay-section {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-height));
    width: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    will-change: opacity, transform;
}

.overlay-section.is-active {
    pointer-events: auto;   /* abilita click solo sulla sezione visibile */
}

/* CTA finale: esce dal layer fixed per permettere lo scroll al footer */
.overlay-section.is-cta-open {
    position: relative !important;
    top: 0 !important;   /* reset fixed-mode offset */
    height: auto;
    min-height: 100dvh;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

.section-content {
    max-width: 480px;
    padding: 40px 40px 40px 48px;
    border-left: 1px solid rgba(192, 255, 15, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-content--right {
    margin-left: auto;
    margin-right: 48px;
    padding-right: 48px;
    padding-left: 40px;
    border-left: none;
    border-right: 1px solid rgba(192, 255, 15, 0.12);
}

.section-content--center {
    margin: 0 auto;
    text-align: center;
    max-width: 600px;
    padding: 80px 24px 80px;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Eyebrow ────────────────────────────────────────── */
.act-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-secondary, #c0ff0f);
    margin-bottom: 14px;
}

.act-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    flex-shrink: 0;
}

.act-eyebrow--dim {
    color: rgba(255, 255, 255, 0.30);
}

/* ── ATTO 0: Hero ────────────────────────────────────── */
.hero-title {
    font-family: var(--font-display, 'Audiowide', sans-serif);
    font-size: clamp(60px, 11vw, 110px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 28px;
}

/* Variante bianca pura (atto 0) — una sola riga */
.hero-title--white {
    color: #ffffff;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
    letter-spacing: clamp(2px, 0.5vw, 6px);
    white-space: nowrap;
    font-size: clamp(32px, 9vw, 110px);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

/* Sottolineatura glow verde lime */
.hero-title--white::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--color-accent-secondary, #c0ff0f) 30%,
        var(--color-accent-secondary, #c0ff0f) 70%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(192, 255, 15, 0.7),
                0 0 24px rgba(192, 255, 15, 0.3);
}

/* CTA button hero */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 32px;
    background: var(--color-accent-primary, #ff2a2a);
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hero-cta-btn:hover {
    background: var(--color-accent-hover, #e02020);
    transform: translateY(-2px);
}

/* Blocco preorder / countdown nella hero 0 — versione compatta */
.hero-sub-info {
    margin-top: 32px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.82em;
}

.hero-sub-info .hero-preorder-title {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    margin-bottom: 10px;
    animation: none;
}

.hero-sub-info .hero-subtext {
    font-size: clamp(0.75rem, 1.4vw, 1rem);
    margin-bottom: 4px;
}

.hero-sub-info .hero-secondary {
    font-size: clamp(0.7rem, 1.1vw, 0.85rem);
    margin-bottom: 14px;
}

.hero-sub-info .countdown {
    margin-top: 0;
}

.hero-sub-info .timebox {
    gap: 0.8rem;
}

.hero-sub-info .time {
    min-width: 62px;
    padding: 0.9rem 0.7rem;
}

.hero-sub-info .time-value {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.hero-sub-info .time-label {
    font-size: 0.65rem;
}

/* Riduce il margin-bottom del badge quando seguito dal blocco preorder */
.hero-run-badge {
    display: inline-block;
    font-family: var(--font-primary, 'Chakra Petch', sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--color-accent-primary, #ff2a2a);
    border: 1px solid var(--color-accent-primary, #ff2a2a);
    border-radius: 5px;
    padding: 8px 18px;
    margin-bottom: 16px;
    box-shadow: 0 0 14px rgba(255, 42, 42, 0.45),
                0 0 32px rgba(255, 42, 42, 0.20),
                inset 0 0 14px rgba(255, 42, 42, 0.08);
    text-shadow: 0 0 10px rgba(255, 42, 42, 0.8);
}

.hero-urgency-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 42, 42, 0.10);
    border: 1px solid rgba(255, 42, 42, 0.45);
    border-radius: 999px;
    padding: 7px 16px;
    font-family: var(--font-primary, 'Chakra Petch', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff6060;
    margin: 12px 0 16px;
}

.hero-urgency-dot {
    width: 7px;
    height: 7px;
    background: #ff2a2a;
    border-radius: 50%;
    animation: pulse-dot 1.4s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.scroll-hint--center {
    align-items: center;
}

.scroll-arrow {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1) translateY(0); }
    50%       { opacity: 1;   transform: scaleY(1.15) translateY(4px); }
}

/* ── Scroll banner (mouse-wheel oval) ────────────────── */
#scroll-banner {
    position: fixed;
    bottom: max(16px, calc(16px + env(safe-area-inset-bottom, 0px)));
    right: 40px;
    left: auto;
    transform: none;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    will-change: opacity;
    animation: bannerPulse 2.6s ease-in-out infinite;
}

.scroll-mouse {
    width: 22px;
    height: 35px;
    filter: drop-shadow(0 0 6px rgba(192, 255, 15, 0.7));
}

.scroll-mouse__body {
    fill: none;
    stroke: #c0ff0f;
    stroke-width: 2;
}

.scroll-mouse__wheel {
    fill: #c0ff0f;
    animation: wheelScroll 1.8s ease-in-out infinite;
}

.scroll-banner__text {
    font-family: var(--font-primary, 'Chakra Petch', sans-serif);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c0ff0f;
    text-shadow: 0 0 8px rgba(192, 255, 15, 0.7);
    white-space: nowrap;
}

@keyframes wheelScroll {
    0%   { transform: translateY(0);    opacity: 1; }
    60%  { transform: translateY(14px); opacity: 0; }
    61%  { transform: translateY(0);    opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

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

/* ── Atti 1-5: layout ────────────────────────────────── */
.act-title {
    font-family: var(--font-display, 'Audiowide', sans-serif);
    font-size: clamp(34px, 5.5vw, 68px);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 16px;
    color: #fff;
    text-transform: uppercase;
}

[data-section="5"] .act-title {
    font-size: clamp(24px, 3.8vw, 50px);
}

@keyframes learnmore-glow {
    0%, 100% {
        border-color: rgba(255, 42, 42, 0.35);
        box-shadow: 0 0 6px rgba(255, 42, 42, 0.15);
    }
    50% {
        border-color: rgba(255, 42, 42, 0.75);
        box-shadow: 0 0 14px rgba(255, 42, 42, 0.45), 0 0 28px rgba(255, 42, 42, 0.15);
    }
}

.act-learnmore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 42, 42, 0.35);
    border-radius: 999px;
    padding: 10px 18px 10px 14px;
    color: var(--color-accent-primary);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 20px;
    animation: learnmore-glow 2.4s ease-in-out infinite;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.act-learnmore-link i {
    font-size: 12px;
}

.act-learnmore-link:hover {
    animation: none;
    border-color: rgba(255, 42, 42, 0.9);
    box-shadow: 0 0 18px rgba(255, 42, 42, 0.5);
    color: var(--color-accent-hover, #ff4444);
}

.act-title .kw {
    color: var(--color-accent-primary, #ff2a2a);
    text-shadow: 0 0 18px rgba(255, 42, 42, 0.45);
}

.act-body {
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.act-divider {
    width: 0;
    height: 1px;
    background: var(--color-accent-primary, #ff2a2a);
    margin-bottom: 20px;
    box-shadow: 0 0 6px rgba(255, 42, 42, 0.6);
    transition: width 0.5s ease;
}

.overlay-section.is-active .act-divider {
    width: 40px;
    transition-delay: 0.44s;
}

/* ── Callout annotation (sezione 3 — Titanio) ─────── */
.callout-annotation {
    position: fixed;
    width: 180px;
    pointer-events: none;
    z-index: 4;
}

.callout-annotation--top {
    left: 60.5%;
    /* top: 39.5vh from viewport, offset by header so the absolute position
       stays correct: section top + (39.5vh - header) = 39.5vh */
    top: calc(39.5vh - var(--header-height));
}

.callout-annotation--bottom {
    left: 60.5%;
    top: calc(60.5vh - var(--header-height));
}

/* Doppio cerchio stile disegno tecnico */
.callout-ring {
    position: absolute;
    left: 0; top: 50%;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(192, 255, 15, 0.5);
    box-shadow: 0 0 14px rgba(192, 255, 15, 0.12);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
}

.callout-ring::before {          /* anello interno */
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 1px solid rgba(192, 255, 15, 0.25);
}

.callout-ring::after {           /* punto centrale */
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(192, 255, 15, 0.9);
    box-shadow: 0 0 8px rgba(192, 255, 15, 0.7);
}

/* Linea tratteggiata + label */
.callout-stem {
    position: absolute;
    left: 28px;
    top: 50%;
    width: calc(100% - 28px);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.55s ease 0.62s;
}

.callout-stem::before {          /* linea tratteggiata */
    content: '';
    display: block;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        rgba(192, 255, 15, 0.5) 0,
        rgba(192, 255, 15, 0.5) 5px,
        transparent 5px,
        transparent 9px
    );
}

.callout-stem::after {           /* tacca terminale */
    content: '';
    position: absolute;
    right: 0; top: -4px;
    width: 1px; height: 9px;
    background: rgba(192, 255, 15, 0.45);
}

.callout-label {
    display: block;
    margin-top: 5px;
    font-family: var(--font-primary, 'Chakra Petch', sans-serif);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(192, 255, 15, 0.55);
    white-space: nowrap;
}

/* Attiva quando la sezione è is-active */
.overlay-section.is-active .callout-ring {
    transform: translate(-50%, -50%) scale(1);
}

.overlay-section.is-active .callout-stem {
    transform: scaleX(1);
}

/* Mobile: sposta più in basso per non sovrapporsi al testo */
@media (max-width: 768px) {
    .callout-annotation--top    { left: 60.5%; top: calc(39.5vh - var(--header-height)); width: 120px; }
    .callout-annotation--bottom { left: 60.5%; top: calc(60.5vh - var(--header-height)); width: 120px; }
}

/* ── Stagger reveal su is-active ─────────────────────
   I child iniziano nascosti; animano in sequenza quando
   la sezione diventa is-active (toggled dal JS). ──── */
.overlay-section .act-eyebrow,
.overlay-section .act-title,
.overlay-section .act-body,
.overlay-section .act-detail,
.overlay-section .act-quote,
.overlay-section .spec-row,
.overlay-section .audience-split,
.overlay-section .back-to-top-btn,
.overlay-section .act-learnmore-link {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.overlay-section.is-active .act-eyebrow    { opacity: 1; transform: none; transition-delay: 0.05s; }
.overlay-section.is-active .act-title      { opacity: 1; transform: none; transition-delay: 0.18s; }
.overlay-section.is-active .act-body       { opacity: 1; transform: none; transition-delay: 0.32s; }
.overlay-section.is-active .act-detail,
.overlay-section.is-active .act-quote,
.overlay-section.is-active .spec-row,
.overlay-section.is-active .audience-split { opacity: 1; transform: none; transition-delay: 0.54s; }
.overlay-section.is-active .act-learnmore-link { opacity: 1; transform: none; transition-delay: 0.62s; }
.overlay-section.is-active .back-to-top-btn   { opacity: 1; transform: none; transition-delay: 0.72s; }

.act-detail {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.35);
    max-width: 380px;
}

/* Strips HTML from act-detail (php may include <br> tags, those are fine) */

/* ── Spec pills ──────────────────────────────────────── */
.spec-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 12px;
    width: fit-content;
}

.spec-pill i {
    color: var(--color-accent-primary, #ff2a2a);
    font-size: 10px;
}

/* ── Act quote ───────────────────────────────────────── */
.act-quote {
    font-family: var(--font-display, 'Audiowide', sans-serif);
    font-size: clamp(15px, 1.7vw, 19px);
    font-style: normal;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    border-left: 2px solid var(--color-accent-primary, #ff2a2a);
    padding-left: 16px;
    margin-bottom: 24px;
}

/* ── Audience split ──────────────────────────────────── */
.audience-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* .audience-col non ha stili di base — le varianti --for e --not lo specializzano */

.audience-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.audience-col--for  .audience-label { color: var(--color-accent-secondary, #c0ff0f); }
.audience-col--not  .audience-label { color: var(--color-accent-primary, #ff2a2a); }

.audience-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audience-col li {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* ── CTA ─────────────────────────────────────────────── */

/* Overlay scuro a tutto schermo dietro la sezione CTA */
.overlay-section[data-section="6"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    z-index: 0;
    pointer-events: none;
}

.section-content--cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.cta-label {
    font-size: 14px;
    letter-spacing: 0.3px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 20px;
    max-width: 400px;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display, 'Audiowide', sans-serif);
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 400;
    margin-bottom: 24px;
    text-shadow: 0 0 30px rgba(255, 42, 42, 0.3);
    text-align: center;
}

.price-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.price-old {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.28);
    text-decoration: line-through;
}

.price-new {
    font-family: var(--font-display, 'Audiowide', sans-serif);
    font-size: clamp(42px, 7vw, 64px);
    line-height: 1;
    color: var(--color-accent-primary, #ff2a2a);
    text-shadow: 0 0 24px rgba(255, 42, 42, 0.55),
                 0 0 60px rgba(255, 42, 42, 0.25);
}

/* Badge -20% lampeggiante in secondary accent */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(192, 255, 15, 0.4),
                    0 0 20px rgba(192, 255, 15, 0.2);
        border-color: rgba(192, 255, 15, 0.5);
    }
    50% {
        box-shadow: 0 0 18px rgba(192, 255, 15, 0.8),
                    0 0 40px rgba(192, 255, 15, 0.45);
        border-color: rgba(192, 255, 15, 1);
    }
}

.price-label {
    font-family: var(--font-display, 'Audiowide', sans-serif);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--color-accent-secondary, #c0ff0f);
    background: rgba(192, 255, 15, 0.08);
    border: 1px solid rgba(192, 255, 15, 0.5);
    border-radius: 6px;
    padding: 8px 14px;
    align-self: center;
    animation: glow-pulse 2s ease-in-out infinite;
}

.cta-sub {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-primary {
    font-family: var(--font-primary, 'Chakra Petch', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    background: var(--color-accent-primary, #ff2a2a);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--color-accent-hover, #ff4444);
    box-shadow: 0 0 24px rgba(255, 42, 42, 0.55);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--color-accent-primary, #ff2a2a);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(255, 42, 42, 0.25);
}

.btn-primary:active {
    background: #cc0000;
}

.btn-ghost {
    font-family: var(--font-primary, 'Chakra Petch', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-text-primary, #fefefe);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

.btn-ghost:active {
    background: rgba(255, 255, 255, 0.08);
}

.cta-delivery {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cta-flag {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.flag-bar {
    display: block;
    width: 20px;
    height: 2px;
    opacity: 0.5;
}

/* ── Loading screen ──────────────────────────────────── */
#loading-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-inner { text-align: center; width: 260px; }

.loading-logo {
    font-family: var(--font-display, 'Audiowide', sans-serif);
    font-size: 32px;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 28px;
}

.loading-logo span { color: #ffffff; }

.loading-bar-wrap {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: var(--color-accent-primary, #ff2a2a);
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.9);
    transition: width 0.12s linear;
}

.loading-label {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
}

/* ── Swipe indicator keyframe (mobile) ──────────────── */
@keyframes swipePulse {
    0%, 100% { opacity: 0.3; transform: rotate(-135deg) translateY(0); }
    50%       { opacity: 1;   transform: rotate(-135deg) translateY(-5px); }
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {
    /* 100dvh: evita il taglio causato dalla barra URL di iOS Safari.
       Sottraiamo l'header height perché top rimane var(--header-height). */
    .overlay-section { height: calc(100dvh - var(--header-height)); }
    #scroll-spacer   { min-height: 100dvh; }

    /* Section content: full-width, bordi laterali rimossi */
    .section-content,
    .section-content--right {
        padding: 24px 20px calc(72px + env(safe-area-inset-bottom, 0px));
        max-width: 100%;
        margin: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(192, 255, 15, 0.10);
        position: relative;
        z-index: 1;
    }

    .audience-split { grid-template-columns: 1fr; gap: 12px; }

    .hero-title { letter-spacing: -1px; }

    /* Act title: scala più aggressiva su schermi piccoli */
    .act-title { font-size: clamp(26px, 8vw, 40px); }

    /* Countdown compatto */
    .hero-sub-info { margin-top: 18px; }
    .hero-sub-info .timebox { gap: 0.5rem; }
    .hero-sub-info .time { min-width: 56px; padding: 0.7rem 0.4rem; }
    .hero-sub-info .time-value { font-size: 1.3rem; }

    /* CTA: pulsanti full-width centrati */
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn-primary,
    .cta-buttons .btn-ghost { width: 240px; justify-content: center; }

    /* CTA price: più compatto */
    .price-new   { font-size: clamp(36px, 10vw, 52px); }
    .price-block { gap: 10px; }

    .spec-row { flex-direction: row; flex-wrap: wrap; }

    /* Scroll banner: ricentrato su mobile */
    #scroll-banner {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Scroll banner: nasconde icona mouse, mostra chevron swipe */
    .scroll-mouse { display: none; }
    #scroll-banner::before {
        content: '';
        display: block;
        width: 12px;
        height: 12px;
        border-right: 2px solid #c0ff0f;
        border-bottom: 2px solid #c0ff0f;
        filter: drop-shadow(0 0 5px rgba(192, 255, 15, 0.7));
        animation: swipePulse 1.8s ease-in-out infinite;
        margin: 0 auto 6px;
    }

    /* Hide callout annotations — overlap content on mobile */
    .callout-annotation--top,
    .callout-annotation--bottom { display: none; }

    /* ATTO 0 (hero): contenuto parte dall'alto; overflow-y permette di scorrere
       il form senza rompere lo swipe dei video (il JS blocca advanceStep finché
       la sezione non è scrollata al fondo) */
    .overlay-section[data-section="0"] {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* section-content--center: 80px di padding desktop → compatto su mobile */
    [data-section="0"] .section-content--center {
        padding: 16px 16px 64px;
        max-width: 100%;
        border-bottom: none;
    }

    /* Comparison visibile anche su mobile */
    .hero-wl-comparison { display: grid; }

    /* Countdown e card più compatti */
    .hero-sub-info    { margin-top: 10px; }
    .hero-sub-info .hero-preorder-title { font-size: 1rem; margin-bottom: 6px; }
    .hero-sub-info .hero-secondary      { margin-bottom: 8px; }
    .hero-urgency-banner                { margin: 8px 0 12px; padding: 5px 12px; }
    .hero-wl-card     { margin-top: 10px; }

    /* CTA link nascosto: il form inline è visibile su mobile */
    .hero-wl-mobile-cta { display: none; }

    /* Form inline visibile su mobile — il JS già blocca lo swipe quando un input è attivo */
    .hero-wl-form-row {
        flex-direction: column;
        padding: 12px 16px;
    }
    .hero-wl-form-row input[type="email"],
    .hero-wl-form-row input[type="text"],
    .hero-wl-form-row select,
    .hero-wl-form-row button {
        width: 100%;
        /* font-size >= 16px: evita lo zoom automatico di iOS Safari al focus */
        font-size: 16px;
    }
    .hero-wl-form-row input[type="text"] { width: 100%; flex: unset; }
    .hero-wl-privacy { padding: 0 16px 10px; }
    .hero-wl-nospam  { padding: 0 16px 14px; }

    /* ATTO 1–4 (cinematic): text panel anchored to bottom */
    .overlay-section:not([data-section="0"]):not([data-section="5"]) {
        align-items: flex-end;
    }

    /* Bottom gradient for text legibility over 9:16 video */
    .overlay-section:not([data-section="0"])::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 55%;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
        pointer-events: none;
        z-index: 0;
    }

    /* ATTO 5 (philosophy/CTA): keep centered */
    .overlay-section[data-section="5"] {
        align-items: center;
    }

    /* Rimuove il 300ms tap delay su browser Android meno recenti */
    .back-to-top-btn,
    .hero-wl-mobile-cta,
    .act-learnmore-link {
        touch-action: manipulation;
    }
}

/* ── Back to top button (section 5) ──────────────────── */
.back-to-top-btn {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 10px 18px 10px 14px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.back-to-top-btn i {
    font-size: 12px;
}

.back-to-top-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.section5-copy a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: color 0.2s;
}

.section5-copy a:hover { color: rgba(255, 255, 255, 0.6); }

/* ── Hero waitlist conversion card ───────────────────── */

/* Widen section 0 to fit the card */
[data-section="0"] .section-content--center {
    max-width: 820px;
}

/* Mobile CTA: nascosto su desktop, visibile solo mobile via @media */
.hero-wl-mobile-cta { display: none; }

.hero-wl-card {
    margin-top: 20px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-top: 2px solid #ff2a2a;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

/* Header row */
.hero-wl-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #1e1e1e;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-wl-card-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.hero-wl-card-badge {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c0ff0f;
    border: 1px solid #c0ff0f;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}

/* Comparison columns — desktop only; mobile hides this via @media above */
@media (min-width: 769px) {
    .hero-wl-comparison {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.hero-wl-col {
    padding: 16px 20px;
}

.hero-wl-col--members {
    background: rgba(255, 42, 42, 0.08);
    border-right: 1px solid #1e1e1e;
}

.hero-wl-col--public {
    background: transparent;
}

.hero-wl-col-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.hero-wl-col--members .hero-wl-col-title { color: #ff2a2a; }
.hero-wl-col--public  .hero-wl-col-title { color: #444; }

.hero-wl-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hero-wl-col--members li { font-size: 13px; color: #ccc; }
.hero-wl-col--public  li { font-size: 13px; color: #444; }

.hero-wl-check { color: #c0ff0f; margin-right: 6px; }
.hero-wl-cross  { color: #333;    margin-right: 6px; }

/* Form row */
.hero-wl-form-row {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #1e1e1e;
    flex-wrap: wrap;
}

.hero-wl-form-row input[type="email"],
.hero-wl-form-row input[type="text"],
.hero-wl-form-row select {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 7px;
    padding: 11px 14px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 16px; /* ≥16px previene lo zoom automatico di iOS Safari al focus */
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.hero-wl-form-row input[type="email"] {
    flex: 1;
    min-width: 160px;
}

.hero-wl-form-row input[type="email"]::placeholder { color: #444; }
.hero-wl-form-row input[type="email"]:focus { border-color: #444; }

.hero-wl-form-row select {
    width: 130px;
    flex-shrink: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23555' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    color: #444;
}

.hero-wl-form-row select.has-value { color: #fff; }

.hero-wl-form-row input[type="text"] {
    flex: 0 0 auto;
    width: 120px;
}

.hero-wl-form-row input[type="text"]::placeholder { color: #444; }
.hero-wl-form-row input[type="text"]:focus { border-color: #444; }

.hero-wl-form-row button {
    background: #ff2a2a;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 11px 20px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 16px; /* ≥16px previene lo zoom automatico di iOS Safari */
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.hero-wl-form-row button:hover { background: #e01f1f; }

/* Privacy consent in hero card */
.hero-wl-privacy {
    display: none;
    align-items: flex-start;
    gap: 8px;
    padding: 0 20px 10px;
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}
.hero-wl-privacy.show { display: flex; }
.hero-wl-privacy input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #c0ff0f; }
.hero-wl-privacy label { cursor: pointer; }
.hero-wl-privacy a { color: #ff2a2a; }

/* Hero card message — same style as .form-message in contact.css */
.hero-card-message {
    animation: wlSlideIn 0.3s ease;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 0 20px 8px;
    text-align: center;
    font-weight: 600;
    display: none;
    width: calc(100% - 40px);
    box-sizing: border-box;
}
.hero-card-message.success {
    background-color: rgba(0, 255, 153, 0.1);
    border: 1px solid rgba(0, 255, 153, 0.3);
    color: #00ff99;
    display: block;
}
.hero-card-message.error {
    background-color: rgba(255, 85, 85, 0.1);
    border: 1px solid rgba(255, 85, 85, 0.3);
    color: #ff5555;
    display: block;
}
@keyframes wlSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* No-spam text */
.hero-wl-nospam {
    font-size: 11px;
    color: #3a3a3a;
    padding: 0 20px 14px;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 600px) {
    .hero-wl-comparison { grid-template-columns: 1fr; }
    .hero-wl-col--members { border-right: none; border-bottom: 1px solid #1e1e1e; }
    .hero-wl-form-row { flex-direction: column; }
    .hero-wl-form-row input[type="email"],
    .hero-wl-form-row input[type="text"],
    .hero-wl-form-row select,
    .hero-wl-form-row button { width: 100%; }
}

@media (max-width: 360px) {
    .hero-wl-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hero-wl-col { padding: 10px 12px; }
    .hero-wl-col ul li { font-size: 12px; }
    .act-title { font-size: clamp(20px, 7vw, 28px); }
}

/* ── prefers-reduced-motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .scroll-arrow         { animation: none; }
    .scroll-mouse__wheel  { animation: none; }
    #scroll-banner        { animation: none; opacity: 0.7; }
    /* JS legge REDUCED_MOTION e disabilita: lerp smooth, rotazione particelle, camera lerp */
}

.vat-note {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    display: block;
    margin-top: 5px;
}
