/* ==========================================================================
   ALDO — Alarm Dock · Design System
   Palette: Sunrise #FFB300 · Midnight #1B1F2A · Fog #EDEDF0
   ========================================================================== */

:root {
    /* Colori brand */
    --sunrise: #FFB300;
    --sunrise-deep: #FF8A00;
    --sunrise-soft: #FFF3D6;
    --coral: #FF5A3C;
    --midnight: #1B1F2A;
    --midnight-2: #232838;
    --fog: #EDEDF0;

    /* Neutri */
    --paper: #FFFBF4;
    --card: #FFFFFF;
    --ink: #16181F;
    --ink-soft: #555A68;
    --ink-faint: #8A8F9C;
    --line: rgba(22, 24, 31, 0.08);

    /* Geometria */
    --radius-s: 14px;
    --radius-m: 22px;
    --radius-l: 32px;
    --radius-pill: 999px;
    --container: 1180px;
    --gutter: clamp(20px, 4vw, 40px);

    /* Ombre */
    --shadow-s: 0 2px 10px rgba(22, 24, 31, 0.06);
    --shadow-m: 0 14px 40px -12px rgba(22, 24, 31, 0.14);
    --shadow-l: 0 30px 70px -20px rgba(22, 24, 31, 0.22);
    --shadow-amber: 0 18px 44px -14px rgba(255, 138, 0, 0.45);

    /* Tipografia */
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transizioni */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }

::selection { background: var(--sunrise); color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--sunrise-deep);
    outline-offset: 3px;
    border-radius: 6px;
}

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

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 10vw, 130px); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sunrise-deep);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--sunrise), var(--sunrise-deep));
}

.section-head {
    max-width: 680px;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
    font-size: clamp(30px, 4.6vw, 48px);
    font-weight: 800;
    margin-top: 14px;
}

.section-head p {
    margin-top: 16px;
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--ink-soft);
    max-width: 56ch;
}

.section-head.centered {
    margin-inline: auto;
    text-align: center;
}

.section-head.centered p { margin-inline: auto; }

.accent { color: var(--sunrise-deep); }

.mark {
    position: relative;
    white-space: nowrap;
}

.mark::after {
    content: '';
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: 0.04em;
    height: 0.34em;
    background: linear-gradient(90deg, rgba(255, 179, 0, 0.55), rgba(255, 138, 0, 0.55));
    border-radius: 4px;
    z-index: -1;
    transform: skewX(-8deg);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

[data-animate] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--stagger, 0ms);
}

[data-animate].visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Bottoni
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: var(--radius-pill);
    border: 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    will-change: transform;
}

.btn .btn-arrow { transition: transform 0.25s var(--ease-spring); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--sunrise) 0%, var(--sunrise-deep) 100%);
    color: var(--ink);
    box-shadow: var(--shadow-amber);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px -14px rgba(255, 138, 0, 0.55);
}

.btn-dark {
    background: var(--midnight);
    color: #fff;
    box-shadow: var(--shadow-m);
}

.btn-dark:hover {
    transform: translateY(-3px);
    background: #11141d;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 2px rgba(22, 24, 31, 0.14);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 2px var(--ink);
}

.btn-lg { padding: 19px 38px; font-size: 17px; }
.btn-sm { padding: 11px 22px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: box-shadow 0.35s ease;
}

/* Lo sfondo sfocato vive in uno pseudo-elemento: se il blur stesse
   sull'header, il menu mobile (position: fixed al suo interno)
   verrebbe ancorato alla barra e tagliato. */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 251, 244, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 80px;
    transition: height 0.35s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 0 var(--line), var(--shadow-s);
}

.site-header.scrolled::before { opacity: 1; }

/* Con il menu aperto la barra resta trasparente sopra lo sfondo scuro */
body.nav-open .site-header { box-shadow: none; }
body.nav-open .site-header::before { opacity: 0; }

.site-header.scrolled .container { height: 66px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.4s var(--ease-spring);
}

.brand:hover img { transform: scale(1.08); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    position: relative;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
    color: var(--ink);
    background: rgba(255, 179, 0, 0.14);
}

/* Visibile solo nel menu mobile */
.main-nav .nav-buy { display: none; }

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

.nav-toggle {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--midnight);
    z-index: 120;
}

.nav-toggle span {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 20px;
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* Sfondo scuro dietro al menu mobile */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(13, 15, 22, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Con il menu aperto la pagina dietro non scorre */
body.nav-open { overflow: hidden; }

@media (max-width: 920px) {
    .nav-toggle { display: block; }
    .header-cta .btn { display: none; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 86vw);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        padding: 110px 28px 40px;
        background: var(--midnight);
        transform: translateX(105%);
        transition: transform 0.45s var(--ease-out);
        box-shadow: var(--shadow-l);
        z-index: 110;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .main-nav.open { transform: translateX(0); }

    .main-nav a {
        color: rgba(255, 255, 255, 0.85);
        font-size: 19px;
        font-family: var(--font-display);
        padding: 14px 16px;
    }

    .main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

    .main-nav .nav-buy {
        display: block;
        margin-top: 18px;
        background: linear-gradient(135deg, var(--sunrise), var(--sunrise-deep));
        color: var(--ink);
        text-align: center;
        font-weight: 700;
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding-top: clamp(130px, 16vw, 180px);
    padding-bottom: clamp(40px, 6vw, 80px);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}

.hero-bg .blob-1 {
    width: 56vw;
    height: 56vw;
    max-width: 760px;
    max-height: 760px;
    right: -14vw;
    top: -10vw;
    background: radial-gradient(circle at 35% 35%, #FFD66B 0%, #FFB300 45%, transparent 72%);
    animation: blob-drift 16s ease-in-out infinite alternate;
}

.hero-bg .blob-2 {
    width: 30vw;
    height: 30vw;
    max-width: 420px;
    max-height: 420px;
    left: -10vw;
    bottom: -6vw;
    background: radial-gradient(circle at 50% 50%, #FFE3A1 0%, transparent 70%);
    animation: blob-drift 20s ease-in-out infinite alternate-reverse;
}

@keyframes blob-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-4%, 5%) scale(1.07); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 12px;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: var(--shadow-s);
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
}

.hero-badge .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(255, 90, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0); }
}

.hero h1 {
    margin-top: 26px;
    font-size: clamp(40px, 6.2vw, 72px);
    font-weight: 800;
}

.hero-sub {
    margin-top: 22px;
    font-size: clamp(17px, 2vw, 21px);
    color: var(--ink-soft);
    max-width: 50ch;
}

.hero-sub strong { color: var(--ink); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 34px;
    padding: 0;
    list-style: none;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
}

.hero-trust svg { color: var(--sunrise-deep); flex: none; }

/* Stage 3D hero */

.hero-stage-wrap { position: relative; }

.hero-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 600px;
    width: 100%;
    border-radius: var(--radius-l);
    cursor: grab;
}

.hero-stage:active { cursor: grabbing; }

.hero-stage::before {
    content: '';
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #FFE9B8 0%, #FFC93C 38%, #FF9D1F 78%, #FF8A00 100%);
    box-shadow: var(--shadow-amber), inset 0 -22px 60px rgba(255, 90, 0, 0.28);
}

.hero-stage::after {
    content: '';
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: 1%;
    height: 7%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(22, 24, 31, 0.22) 0%, transparent 70%);
    filter: blur(6px);
}

.hero-stage canvas,
.hero-stage .stage-fallback {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 2;
}

.stage-fallback:not([hidden]) {
    display: grid;
    place-items: center;
    padding: 14%;
}

.stage-fallback[hidden] { display: none; }

.stage-fallback img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 26px 36px rgba(140, 70, 0, 0.35));
}

.stage-loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
}

.stage-loader .spin {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.stage-hint {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-s);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}

/* Chips fluttuanti sul 3D */

.float-chip {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-m);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    animation: chip-float 5s ease-in-out infinite;
    pointer-events: none;
}

.float-chip .chip-ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--sunrise-soft);
    color: var(--sunrise-deep);
    flex: none;
}

.float-chip small {
    display: block;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}

.chip-price { top: 6%; right: -2%; animation-delay: 1.4s; }
.chip-nfc { bottom: 14%; left: -4%; }

.chip-price .chip-ico { background: var(--midnight); color: var(--sunrise); }

.chip-price .old {
    text-decoration: line-through;
    color: var(--ink-faint);
    font-weight: 600;
    margin-right: 4px;
}

@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
    position: relative;
    padding: 18px 0;
    background: var(--midnight);
    transform: rotate(-1.2deg) scale(1.02);
    overflow: hidden;
    margin-block: clamp(28px, 4vw, 56px);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 26s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.8vw, 19px);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.marquee-track .star { color: var(--sunrise); }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Sezione problema (dark)
   -------------------------------------------------------------------------- */

.problem {
    background: var(--midnight);
    color: #fff;
    border-radius: clamp(28px, 4vw, 48px);
    margin-inline: clamp(10px, 1.6vw, 24px);
    position: relative;
    overflow: hidden;
}

.problem::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    right: -160px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.problem .section-head h2 { color: #fff; }
.problem .section-head p { color: rgba(255, 255, 255, 0.66); }

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

.problem-card {
    padding: 32px 28px;
    border-radius: var(--radius-m);
    background: var(--midnight-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.35s var(--ease-out), border-color 0.35s ease, background 0.35s ease;
}

.problem-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 179, 0, 0.4);
    background: #272d40;
}

.problem-card .pc-num {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--sunrise);
    letter-spacing: 0.1em;
}

.problem-card h3 {
    margin-top: 14px;
    font-size: 21px;
    font-weight: 700;
    color: #fff;
}

.problem-card p {
    margin-top: 10px;
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.62);
}

.problem-punch {
    margin-top: clamp(40px, 5vw, 60px);
    text-align: center;
}

.problem-punch p {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.problem-punch .accent { color: var(--sunrise); }

/* --------------------------------------------------------------------------
   Come funziona
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.5vw, 28px);
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: 36px 30px;
    border-radius: var(--radius-m);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-s);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-m);
}

.step-card::after {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    right: 18px;
    top: 6px;
    font-family: var(--font-display);
    font-size: 76px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 138, 0, 0.25);
    line-height: 1;
    pointer-events: none;
}

.step-ico {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--sunrise) 0%, var(--sunrise-deep) 100%);
    color: var(--ink);
    box-shadow: var(--shadow-amber);
    transition: transform 0.35s var(--ease-spring);
}

.step-card:hover .step-ico { transform: rotate(-8deg) scale(1.08); }

.step-card h3 {
    margin-top: 24px;
    font-size: 22px;
    font-weight: 700;
}

.step-card p {
    margin-top: 12px;
    font-size: 15.5px;
    color: var(--ink-soft);
}

.step-card .step-note {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: var(--sunrise-soft);
    color: #9A6400;
    font-size: 13px;
    font-weight: 600;
}

.how-footer {
    margin-top: clamp(36px, 5vw, 52px);
    text-align: center;
    font-size: 17px;
    color: var(--ink-soft);
}

.how-footer strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Benefici — bento grid
   -------------------------------------------------------------------------- */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.bento-card {
    position: relative;
    padding: 34px 30px;
    border-radius: var(--radius-m);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-s);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-m);
}

.bento-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-top: 20px;
}

.bento-card p {
    margin-top: 10px;
    font-size: 15.5px;
    color: var(--ink-soft);
    max-width: 46ch;
}

.bento-ico {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: var(--sunrise-soft);
    color: var(--sunrise-deep);
    transition: transform 0.35s var(--ease-spring), background 0.35s ease, color 0.35s ease;
}

.bento-card:hover .bento-ico {
    transform: rotate(-8deg) scale(1.1);
    background: linear-gradient(135deg, var(--sunrise), var(--sunrise-deep));
    color: var(--ink);
}

.bento-third { grid-column: span 2; }

.bento-feature {
    grid-column: span 4;
    background: linear-gradient(135deg, #FFC93C 0%, var(--sunrise) 45%, var(--sunrise-deep) 100%);
    border: 0;
    color: var(--ink);
}

.bento-feature h3 { font-size: clamp(24px, 2.6vw, 30px); }
.bento-feature p { color: rgba(22, 24, 31, 0.72); font-weight: 500; }

.bento-feature .bento-ico {
    background: rgba(255, 255, 255, 0.85);
    color: var(--sunrise-deep);
}

.bento-quote {
    grid-column: span 2;
    background: var(--midnight);
    border: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-quote blockquote {
    margin: 14px 0 0;
    font-family: var(--font-display);
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    line-height: 1.35;
}

.bento-quote .q-mark {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 800;
    line-height: 0.6;
    color: var(--sunrise);
}

.bento-quote figcaption {
    margin-top: 16px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Configuratore
   -------------------------------------------------------------------------- */

.config {
    background: linear-gradient(180deg, #FFF6E3 0%, var(--paper) 100%);
    border-radius: clamp(28px, 4vw, 48px);
    margin-inline: clamp(10px, 1.6vw, 24px);
}

.config-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.config-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 560px;
    border-radius: var(--radius-l);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    cursor: grab;
    overflow: hidden;
}

.config-stage:active { cursor: grabbing; }

.config-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 179, 0, 0.14) 0%, transparent 55%),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(22, 24, 31, 0.025) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(22, 24, 31, 0.025) 39px 40px);
}

.config-stage canvas,
.config-stage .stage-fallback {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 2;
}

.config-stage .stage-loader .spin {
    border-color: rgba(255, 138, 0, 0.25);
    border-top-color: var(--sunrise-deep);
}

.finish-name {
    position: absolute;
    left: 22px;
    top: 18px;
    z-index: 4;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.finish-name strong { color: var(--ink); }

/* Pannello scelte */

.config-panel h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    margin-top: 14px;
}

.config-panel > p {
    margin-top: 12px;
    color: var(--ink-soft);
}

.swatches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-s);
    background: var(--card);
    border: 2px solid var(--line);
    text-align: left;
    transition: transform 0.25s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
}

.swatch:hover { transform: translateY(-4px); box-shadow: var(--shadow-s); }

.swatch.selected {
    border-color: var(--sunrise-deep);
    box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.15), var(--shadow-s);
}

.swatch-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(22, 24, 31, 0.18);
    transition: transform 0.3s var(--ease-spring);
}

.swatch:hover .swatch-dot,
.swatch.selected .swatch-dot { transform: scale(1.12); }

.swatch-label {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.swatch-sub {
    font-size: 12.5px;
    color: var(--ink-faint);
    margin-top: -8px;
}

.swatch .check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sunrise-deep);
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-spring);
}

.swatch.selected .check { opacity: 1; transform: scale(1); }

/* Riepilogo ordine */

.order-summary {
    margin-top: 28px;
    padding: 26px;
    border-radius: var(--radius-m);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-m);
}

.order-summary dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 15px;
}

.order-row dt { color: var(--ink-soft); }
.order-row dd { margin: 0; font-weight: 600; text-align: right; }

.order-row .included {
    color: #11833D;
    background: #E5F6EC;
    padding: 3px 11px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
}

.order-total {
    margin-top: 16px;
    padding-top: 18px;
    border-top: 2px dashed var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total .label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
}

.order-total .label small {
    display: block;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-faint);
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-tag .old {
    font-size: 17px;
    color: var(--ink-faint);
    text-decoration: line-through;
}

.price-tag .now {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
}

.order-summary .btn { width: 100%; margin-top: 20px; }

.order-note {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Recensioni
   -------------------------------------------------------------------------- */

.reviews-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.reviews-head .section-head { margin-bottom: 0; }

.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-s);
}

.rating-pill .score {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
}

.rating-pill .stars { color: var(--sunrise); letter-spacing: 2px; font-size: 16px; }

.rating-pill small { color: var(--ink-faint); font-size: 13px; }

.reviews-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(280px, 30vw, 380px);
    gap: 18px;
    margin-top: 40px;
    overflow-x: auto;
    padding: 8px 4px 26px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track.dragging { cursor: grabbing; scroll-snap-type: none; }

.review-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border-radius: var(--radius-m);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-s);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }

.review-stars { color: var(--sunrise); font-size: 17px; letter-spacing: 3px; }

.review-card blockquote {
    margin: 18px 0 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink);
    flex: 1;
}

.review-who {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 24px;
}

.review-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    flex: none;
}

.review-who .name { font-weight: 700; font-size: 15px; }
.review-who .role { font-size: 13px; color: var(--ink-faint); }

.reviews-nav { display: flex; gap: 10px; }

.reviews-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    display: grid;
    place-items: center;
    color: var(--ink);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-spring);
}

.reviews-nav button:hover {
    background: var(--midnight);
    color: #fff;
    transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-wrap {
    max-width: 800px;
    margin-inline: auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    border-radius: var(--radius-s);
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item[open] {
    box-shadow: var(--shadow-m);
    border-color: rgba(255, 138, 0, 0.35);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sunrise-soft);
    color: var(--sunrise-deep);
    transition: transform 0.35s var(--ease-spring), background 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(45deg);
    background: var(--sunrise-deep);
    color: #fff;
}

.faq-body {
    padding: 0 26px 24px;
    font-size: 15.5px;
    color: var(--ink-soft);
    max-width: 64ch;
}

/* --------------------------------------------------------------------------
   CTA finale
   -------------------------------------------------------------------------- */

.final-cta { padding-bottom: clamp(72px, 9vw, 120px); }

.final-panel {
    position: relative;
    border-radius: clamp(28px, 4vw, 48px);
    padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px);
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(255, 255, 255, 0.35) 0%, transparent 60%),
        linear-gradient(135deg, #FFC93C 0%, var(--sunrise) 40%, var(--sunrise-deep) 100%);
    overflow: hidden;
    text-align: center;
}

.final-panel::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    left: -130px;
    bottom: -190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.final-panel h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: var(--ink);
    max-width: 18ch;
    margin-inline: auto;
}

.final-panel > p {
    margin: 18px auto 0;
    max-width: 52ch;
    font-size: clamp(16px, 1.8vw, 19px);
    color: rgba(22, 24, 31, 0.74);
    font-weight: 500;
}

.waitlist-form {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 36px auto 0;
    padding: 8px;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: var(--shadow-l);
}

.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 12px 18px;
    font-size: 16px;
    color: var(--ink);
}

.waitlist-form input[type="email"]:focus { outline: none; }
.waitlist-form input::placeholder { color: var(--ink-faint); }

.waitlist-form .btn { flex: none; }

.form-feedback {
    margin-top: 18px;
    min-height: 26px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    z-index: 2;
}

.form-feedback.ok { animation: pop-in 0.45s var(--ease-spring); }

@keyframes pop-in {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.final-perks {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.final-perks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(22, 24, 31, 0.8);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--midnight);
    color: rgba(255, 255, 255, 0.72);
    padding: clamp(56px, 7vw, 88px) 0 40px;
    border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
}

.site-footer .brand { color: #fff; }

.footer-claim {
    margin-top: 18px;
    font-size: 15px;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    transition: background 0.25s ease, transform 0.25s var(--ease-spring);
}

.footer-social a:hover {
    background: var(--sunrise-deep);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 18px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.footer-col a {
    text-decoration: none;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--sunrise); }

.footer-bottom {
    margin-top: clamp(40px, 5vw, 64px);
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom .made {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* --------------------------------------------------------------------------
   Touch: le card si attivano scorrendo (sostituisce l'hover su mobile)
   -------------------------------------------------------------------------- */

@media (hover: none) {
    .problem-card.touch-active {
        transform: translateY(-6px);
        border-color: rgba(255, 179, 0, 0.4);
        background: #272d40;
    }

    .step-card.touch-active {
        transform: translateY(-6px);
        box-shadow: var(--shadow-m);
    }

    .step-card.touch-active .step-ico {
        transform: rotate(-8deg) scale(1.08);
    }

    .bento-card.touch-active {
        transform: translateY(-6px);
        box-shadow: var(--shadow-m);
    }

    .bento-card.touch-active:not(.bento-feature):not(.bento-quote) .bento-ico {
        transform: rotate(-8deg) scale(1.1);
        background: linear-gradient(135deg, var(--sunrise), var(--sunrise-deep));
        color: var(--ink);
    }

    .review-card.touch-active {
        transform: translateY(-6px);
        box-shadow: var(--shadow-m);
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .bento-feature { grid-column: span 6; }
    .bento-third, .bento-quote { grid-column: span 3; }
}

@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-stage-wrap { order: -1; max-width: 540px; margin-inline: auto; width: 100%; }
    .hero { padding-top: 120px; }
    .hero h1 { margin-top: 20px; }

    .config-grid { grid-template-columns: 1fr; }
    .config-stage { max-width: 540px; margin-inline: auto; width: 100%; }

    .problem-grid, .steps { grid-template-columns: 1fr; }

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

@media (max-width: 640px) {
    body { font-size: 16px; }

    .bento-third, .bento-quote { grid-column: span 6; }

    .chip-price { right: -6px; top: 0; }
    .chip-nfc { left: -6px; bottom: 8%; }
    .float-chip { padding: 10px 14px; font-size: 13px; }

    .waitlist-form {
        flex-direction: column;
        border-radius: var(--radius-m);
        padding: 10px;
    }

    .waitlist-form input[type="email"] { padding: 14px 16px; text-align: center; }
    .waitlist-form .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }

    .reviews-head { justify-content: center; text-align: center; }
    .reviews-head .section-head.centered { margin-inline: auto; }
    .reviews-nav { display: none; }
}
