/* =================================================
   SALAFLOW — LANDING PAGE
   Tema scuro, accento verde menta.
   ================================================= */

:root {
    --bg: #0a0e0d;
    --bg-alt: #0d1310;
    --surface: #121815;
    --surface-2: #171f1a;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --ink: #f2f6f4;
    --ink-soft: #9caaa4;
    --ink-faint: #7a8880;

    --accent: #2dd8a3;
    --accent-dark: #1fae82;
    --accent-light: #7bf0c8;
    --accent-soft: rgba(45, 216, 163, 0.12);
    --accent-border: rgba(45, 216, 163, 0.35);

    --danger: #f16565;
    --danger-soft: rgba(241, 101, 101, 0.12);
    --danger-border: rgba(241, 101, 101, 0.3);

    --radius-lg: 1.5rem;
    --radius-md: 1.05rem;
    --radius-sm: 0.7rem;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 10px 26px -10px rgba(45, 216, 163, 0.45);

    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.015em;
    line-height: 1.15;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
}

p { margin: 0; line-height: 1.65; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.accent-text { color: var(--accent); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Pill badge (eyebrow) ---------- */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.pill-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
    position: relative;
    background: var(--accent);
    color: #06231a;
    box-shadow: var(--shadow-accent);
    overflow: hidden;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(45, 216, 163, 0.55); }
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border-strong);
}
.btn-ghost svg { color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-dark {
    background: #06231a;
    color: var(--accent-light);
}
.btn-dark:hover { background: #0a2e22; transform: translateY(-1px); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 13, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; margin-right: auto; color: var(--ink); }
.brand-mark {
    width: 2rem; height: 2rem; border-radius: 0.65rem;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-accent);
}
.brand-mark svg { width: 1.1rem; height: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-weight: 600; font-size: 0.92rem; }
.nav-links a { color: var(--ink-soft); transition: color 0.15s ease; position: relative; padding-bottom: 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--accent); border-radius: 2px;
    transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after { right: 0; }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; gap: 0.25rem; padding: 0.5rem 1.5rem 1.25rem; border-top: 1px solid var(--border); }
.nav-mobile a { padding: 0.7rem 0; font-weight: 600; color: var(--ink-soft); }
.nav-mobile .btn { margin-top: 0.5rem; }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5.5rem 0 5rem; overflow: hidden; }
.hero-glow {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 140%;
    background:
        radial-gradient(600px 380px at 18% 15%, rgba(45, 216, 163, 0.16), transparent 65%),
        radial-gradient(500px 420px at 85% 30%, rgba(45, 216, 163, 0.12), transparent 60%);
    pointer-events: none;
    animation: driftGlow 14s ease-in-out infinite alternate;
}
@keyframes driftGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, 2%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 34rem; margin-top: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.82rem; color: var(--ink-faint); }

/* ---------- Hero visual (mockup) ---------- */
.hero-visual { position: relative; }
.mock-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.mock-card-main { padding: 1.4rem; }
.mock-card-head { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.85rem; color: var(--ink); margin-bottom: 1.1rem; }
.mock-tag { margin-left: auto; font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); background: var(--surface-2); padding: 0.25rem 0.6rem; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.dot-green { background: var(--accent); }
.dot-amber { background: #fbbf24; }
.dot-blue { background: #60a5fa; }
.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.mock-table {
    aspect-ratio: 1; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 800; border: 1.5px solid;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.mock-table.free { background: rgba(45, 216, 163, 0.1); border-color: rgba(45, 216, 163, 0.45); color: var(--accent-light); }
.mock-table.occ { background: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.5); color: #93c5fd; }
.mock-table.res { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.5); color: #fcd34d; }
.mock-table-flip { animation: tableFlip 0.35s ease; }
@keyframes tableFlip { 0% { transform: scale(1); } 40% { transform: scale(0.82); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mock-table-flip { animation: none; } }
.mock-legend { display: flex; gap: 1rem; margin-top: 1.1rem; font-size: 0.72rem; color: var(--ink-soft); flex-wrap: wrap; }
.mock-legend span { display: flex; align-items: center; gap: 0.35rem; }
.mock-card-float {
    position: absolute; right: -0.5rem; bottom: -1.5rem;
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.9rem 1.1rem; max-width: 15rem;
    background: var(--surface-2);
    animation: float 5s ease-in-out infinite;
}
.mock-check {
    width: 1.8rem; height: 1.8rem; flex-shrink: 0; border-radius: 999px;
    background: var(--accent); color: #06231a;
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.mock-card-float strong { display: block; font-size: 0.82rem; color: var(--ink); }
.mock-card-float small { font-size: 0.72rem; color: var(--ink-faint); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Pallino "live" pulsante */
.dot-live { position: relative; }
.dot-live::after {
    content: ""; position: absolute; inset: -3px; border-radius: 999px;
    border: 1.5px solid currentColor;
    animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot-live::after { display: none; } }

/* ---------- Section head ---------- */
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head-center { max-width: 38rem; margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .pill-badge { display: inline-flex; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* ---------- Trust strip: confronto carta vs SalaFlow ---------- */
.trust-strip { padding: 6rem 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}
.compare-card.compare-after { border-color: var(--accent-border); box-shadow: var(--shadow-card); }
.compare-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.compare-card-head h3 { font-size: 1.05rem; font-weight: 700; }
.stat-badge { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; padding: 0.3rem 0.65rem; border-radius: 999px; }
.stat-badge-bad { color: var(--danger); background: var(--danger-soft); border: 1px solid var(--danger-border); }
.stat-badge-good { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); }
.compare-stat { font-size: 2.4rem; font-weight: 800; margin-bottom: 1.4rem; display: flex; align-items: baseline; gap: 0.5rem; }
.compare-stat small { font-size: 0.85rem; font-weight: 600; color: var(--ink-faint); }
.compare-stat-bad { color: var(--danger); }
.compare-stat-good { color: var(--accent); }
.compare-list { display: flex; flex-direction: column; gap: 0.85rem; }
.compare-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; color: var(--ink-soft); }
.compare-list-icon {
    flex-shrink: 0; width: 1.2rem; height: 1.2rem; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; margin-top: 0.1rem;
}
.compare-list-icon.bad { background: var(--danger-soft); color: var(--danger); }
.compare-list-icon.good { background: var(--accent-soft); color: var(--accent); }

/* ---------- Come funziona (3 passi) ---------- */
.steps { padding: 6rem 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--accent-border); }
.step-number { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); opacity: 0.55; margin-bottom: 0.75rem; }
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.step-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Features ---------- */
.features { padding: 6rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--accent-border); }
.feature-icon {
    width: 3rem; height: 3rem; border-radius: 0.9rem;
    background: var(--accent-soft); border: 1px solid var(--accent-border);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.1); }
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Sito prenotazioni pubblico ---------- */
.booking-site { padding: 6rem 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.booking-site-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center; }
.booking-site-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 0.4rem 0 1.1rem; }
.booking-site-visual { position: relative; }
.mock-card-light { background: #fff; border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.5); padding: 1.6rem; }
.mock-form-title { font-weight: 700; font-size: 1.05rem; color: #14251f; margin-bottom: 1.1rem; }
.mock-field { padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid #e6ece9; background: #f6f9f8; font-size: 0.85rem; color: #4b5a54; margin-bottom: 0.65rem; }
.mock-btn { width: 100%; margin-top: 0.5rem; padding: 0.8rem; border: none; border-radius: var(--radius-sm); background: var(--accent); color: #06231a; font-weight: 700; font-size: 0.85rem; cursor: default; }
.mock-card-float-light {
    position: absolute; left: -1rem; bottom: -1.5rem;
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.9rem 1.1rem; max-width: 15rem; border-radius: var(--radius-lg);
    animation: float 5s ease-in-out infinite; animation-delay: 1s;
}
.mock-card-float-light strong { display: block; font-size: 0.82rem; color: #14251f; }
.mock-card-float-light small { font-size: 0.72rem; color: #6b7972; }

/* ---------- Engine (sotto il cofano) ---------- */
.engine { padding: 6rem 0; }
.engine-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.engine h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.4rem; }
.engine .lead { margin-top: 1.1rem; }
.engine-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.engine-list li { padding-left: 1.6rem; position: relative; font-size: 0.95rem; color: var(--ink-soft); }
.engine-list li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 0.85rem; height: 0.85rem; border-radius: 999px; background: var(--accent); }
.engine-visual { position: relative; aspect-ratio: 1; max-width: 320px; margin: 0 auto; }
.engine-lines { position: absolute; inset: 0; color: var(--accent); }
.engine-node {
    position: absolute; width: 3.4rem; height: 3.4rem; border-radius: 1rem;
    background: var(--surface); border: 1px solid var(--border); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    animation: float 6s ease-in-out infinite;
}
.engine-node svg { width: 1.6rem; height: 1.6rem; }
.engine-node-1 { top: 6%; left: 8%; animation-delay: 0s; }
.engine-node-2 { top: 10%; right: 6%; animation-delay: 1.2s; }
.engine-node-3 { bottom: 8%; left: 12%; animation-delay: 2.1s; }
.engine-node-4 { bottom: 12%; right: 10%; animation-delay: 0.6s; background: var(--accent); border-color: transparent; color: #06231a; }

/* ---------- Dalla sala, per la sala ---------- */
.origin-story { padding: 6rem 0; }
.origin-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.origin-point {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.9rem 1.4rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
}
.origin-point svg { width: 1.2rem; height: 1.2rem; color: var(--accent); flex-shrink: 0; }

/* ---------- CTA finale ---------- */
.cta-final { padding: 6rem 0; }
.cta-final-block {
    background: var(--accent);
    color: #06231a;
    border-radius: 2rem;
    padding: 4rem 2.5rem;
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}
.cta-final-block h2 { color: #06231a; font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 0.9rem; }
.cta-final-block > p { color: rgba(6, 35, 26, 0.75); font-size: 1.02rem; margin-bottom: 2.2rem; font-weight: 600; }
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.demo-form input {
    grid-column: span 1;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(6, 35, 26, 0.15);
    background: rgba(255, 255, 255, 0.7);
    font: inherit;
    font-size: 0.92rem;
    color: #06231a;
}
.demo-form input::placeholder { color: rgba(6, 35, 26, 0.5); }
.demo-form input:focus { outline: none; border-color: #06231a; box-shadow: 0 0 0 3px rgba(6, 35, 26, 0.25); }
.demo-form input[name="email"] { grid-column: span 2; }
.demo-form .btn { grid-column: span 2; margin-top: 0.4rem; }
.form-feedback { margin-top: 1rem; font-weight: 700; font-size: 0.9rem; }
.cta-final-block .form-feedback { color: #06231a; }
.data-trust-note {
    margin-top: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    font-size: 0.78rem; font-weight: 600; color: #06231a; text-align: center;
}
.data-trust-note svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 4.5rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--border); }
.footer-brand p { margin-top: 0.9rem; font-size: 0.88rem; max-width: 16rem; color: var(--ink-soft); }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.88rem; color: var(--ink-soft); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-faint); }
.footer-bottom a { color: var(--ink-faint); transition: color 0.15s ease; }
.footer-bottom a:hover { color: var(--accent); }

/* =================================================
   RESPONSIVE — pc, tablet, smartphone
   ================================================= */
@media (max-width: 980px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 26rem; margin: 0 auto; }
    .engine-inner { grid-template-columns: 1fr; }
    .engine-visual { order: -1; }
    .booking-site-inner { grid-template-columns: 1fr; }
    .booking-site-visual { max-width: 26rem; margin: 0 auto; order: -1; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .compare-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav .btn-sm { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding: 3rem 0 3.5rem; }
    .features, .engine, .cta-final, .booking-site, .trust-strip, .steps, .origin-story { padding: 4rem 0; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .demo-form { grid-template-columns: 1fr; }
    .demo-form input[name="email"], .demo-form .btn { grid-column: span 1; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .mock-card-float, .mock-card-float-light { position: static; margin-top: 1rem; animation: none; }
    .cta-final-block { padding: 2.75rem 1.5rem; border-radius: 1.5rem; }
}

/* ---------- Barra di progresso scroll ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
    z-index: 999;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }

/* ---------- CTA fissa in basso (solo mobile) ---------- */
.sticky-cta {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    padding: 0.95rem 1.5rem;
    padding-bottom: calc(0.95rem + env(safe-area-inset-bottom));
    background: var(--accent); color: #06231a;
    text-align: center; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.sticky-cta.visible { transform: translateY(0); }
@media (max-width: 720px) {
    .sticky-cta { display: block; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- Numeri che contano quando entrano in vista (confronto) ---------- */
.count-num { display: inline-block; font-variant-numeric: tabular-nums; }

/* ---------- Anello esterno "sotto il cofano" in rotazione lenta ---------- */
.engine-ring-outer {
    transform-box: fill-box;
    transform-origin: center;
    animation: spinSlow 40s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .engine-ring-outer { animation: none; } }

/* ---------- Riflesso di luce periodico sul blocco CTA finale ---------- */
.cta-final-block { position: relative; overflow: hidden; }
.cta-final-block::after {
    content: "";
    position: absolute; top: 0; left: 0;
    width: 35%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-150%) skewX(-20deg);
    animation: ctaShine 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ctaShine {
    0% { transform: translateX(-150%) skewX(-20deg); }
    30% { transform: translateX(320%) skewX(-20deg); }
    100% { transform: translateX(320%) skewX(-20deg); }
}
@media (prefers-reduced-motion: reduce) { .cta-final-block::after { animation: none; display: none; } }
