/* =====================================================
   Sistema di Prenotazioni by Starbuild — Landing
   Vanilla CSS. Dark + blu Starbuild + verde "disponibile".
   ===================================================== */

:root {
    /* Brand (coerente con starbuild.it) */
    --blu: #1877F2;
    --blu-chiaro: #4A9FFF;
    --blu-scuro: #166FE5;

    /* Segnale semantico: disponibile / confermato */
    --verde: #2FE0A6;
    --verde-scuro: #1FB886;

    /* Superfici (neutri tinti verso il blu del brand) */
    --bg: #0A0B0D;
    --bg-2: #101218;
    --bg-3: #161922;
    --surface: #1A1D27;
    --surface-2: #20242F;
    --bordo: #262B38;
    --bordo-luce: rgba(255, 255, 255, 0.07);

    /* Testo */
    --t-1: #F3F5FA;
    --t-2: #B6BCCB;
    --t-3: #828AA0;

    --grad-blu: linear-gradient(135deg, #1877F2 0%, #4A9FFF 100%);
    --glow-blu: radial-gradient(circle at center, rgba(24, 119, 242, 0.35) 0%, rgba(24, 119, 242, 0) 70%);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --r-s: 10px;
    --r-m: 16px;
    --r-l: 22px;
    --r-pill: 999px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--t-1);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blu-chiaro);
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--blu-chiaro);
    opacity: 0.6;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }

.sezione { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }

.sezione-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sezione-head h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 1rem 0 1rem; }
.sezione-head p { color: var(--t-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 56ch; }

.grad-blu-text { color: var(--blu-chiaro); }

/* =====================================================
   Bottoni
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1.6rem;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s, border-color 0.3s;
    will-change: transform;
}
.btn-primary {
    background: var(--grad-blu);
    color: #fff;
    box-shadow: 0 8px 30px -8px rgba(24, 119, 242, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(24, 119, 242, 0.7); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--bordo);
    color: var(--t-1);
}
.btn-ghost:hover { border-color: var(--blu); background: rgba(24, 119, 242, 0.1); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn svg { width: 18px; height: 18px; }

/* =====================================================
   Header
   ===================================================== */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(10, 11, 13, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.header.scrolled { background: rgba(10, 11, 13, 0.85); border-bottom-color: var(--bordo-luce); }
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 70px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand-mark {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--grad-blu);
    display: grid; place-items: center;
    box-shadow: 0 4px 14px -4px rgba(24, 119, 242, 0.7);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-name b { font-weight: 800; }
.brand-name span { color: var(--t-3); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a:not(.btn) { color: var(--t-2); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--t-1); }

.hamburger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.hamburger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--t-1); border-radius: 2px; transition: 0.3s var(--ease); }
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* =====================================================
   Hero
   ===================================================== */
.hero { position: relative; padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    top: -10%; right: -5%;
    width: 60vw; height: 60vw;
    max-width: 820px; max-height: 820px;
    background: var(--glow-blu);
    pointer-events: none;
    z-index: 0;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    margin: 1.4rem 0;
}
.hero h1 .accent {
    background: var(--grad-blu);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: var(--t-2); max-width: 52ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-trust {
    margin-top: 2.4rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--t-3);
}
.hero-trust .dot-live {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--verde);
    box-shadow: 0 0 0 0 rgba(47, 224, 166, 0.6);
    animation: pulse 2.2s infinite;
}
.hero-trust a { color: var(--t-1); font-weight: 600; border-bottom: 1px solid var(--bordo); }
.hero-trust a:hover { border-color: var(--blu-chiaro); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 224, 166, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(47, 224, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 224, 166, 0); }
}

/* =====================================================
   Browser frame + widget prenotazione (hero visual)
   ===================================================== */
.frame {
    background: var(--bg-3);
    border: 1px solid var(--bordo);
    border-radius: var(--r-l);
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.02);
}
.frame-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--bordo);
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bordo); display: block; }
.frame-url {
    flex: 1;
    font-size: 0.78rem;
    color: var(--t-3);
    background: var(--bg);
    border-radius: var(--r-pill);
    padding: 0.35rem 0.85rem;
    display: flex; align-items: center; gap: 0.4rem;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.frame-url svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--verde); }
.frame-url b { color: var(--t-2); font-weight: 600; }

.widget { padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.widget-head h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.widget-head .price-pill { font-size: 0.85rem; font-weight: 600; color: var(--blu-chiaro); background: rgba(24,119,242,0.12); padding: 0.25rem 0.7rem; border-radius: var(--r-pill); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 1.2rem; }
.cal span { font-size: 0.62rem; text-align: center; color: var(--t-3); font-weight: 600; text-transform: uppercase; padding-bottom: 2px; }
.cal b {
    aspect-ratio: 1;
    display: grid; place-items: center;
    font-size: 0.8rem; font-weight: 500;
    border-radius: 8px;
    color: var(--t-2);
    background: var(--surface);
    transition: 0.3s var(--ease);
}
.cal b.off { color: var(--t-3); opacity: 0.35; }
.cal b.has { color: var(--t-1); cursor: pointer; }
.cal b.sel { background: var(--grad-blu); color: #fff; font-weight: 700; transform: scale(1.05); box-shadow: 0 6px 16px -6px rgba(24,119,242,0.8); }

.slots { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.slot {
    font-size: 0.82rem; font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--bordo);
    color: var(--t-2);
    background: var(--surface);
    display: flex; align-items: center; gap: 0.4rem;
    transition: 0.3s var(--ease);
}
.slot .free { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); }
.slot.full { color: var(--t-3); opacity: 0.5; text-decoration: line-through; }
.slot.full .free { background: var(--t-3); }
.slot.active { border-color: var(--blu); color: var(--t-1); background: rgba(24,119,242,0.14); }

.widget-cta {
    width: 100%;
    background: var(--grad-blu);
    color: #fff;
    border: 0;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1;
    padding: 0.85rem 1rem;
    border-radius: var(--r-m);
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    box-shadow: 0 10px 26px -10px rgba(24,119,242,0.7);
}
.widget-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.toast {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 130%);
    display: flex; align-items: center; gap: 0.7rem;
    background: var(--surface-2);
    border: 1px solid var(--verde-scuro);
    border-radius: var(--r-m);
    padding: 0.7rem 1rem;
    box-shadow: 0 20px 40px -16px rgba(0,0,0,0.8);
    opacity: 0;
    transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
    z-index: 3;
    white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .check {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--verde); color: var(--bg);
    display: grid; place-items: center; flex-shrink: 0;
}
.toast .check svg { width: 14px; height: 14px; }
.toast b { font-size: 0.88rem; display: block; }
.toast small { font-size: 0.74rem; color: var(--t-3); }
.frame { position: relative; }

/* =====================================================
   Strip loghi / metriche
   ===================================================== */
.strip { border-block: 1px solid var(--bordo-luce); padding-block: 2.2rem; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.metric .num { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; background: var(--grad-blu); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .lab { font-size: 0.85rem; color: var(--t-3); margin-top: 0.2rem; }

/* =====================================================
   Problema (prima / dopo)
   ===================================================== */
.problema-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.col-prima, .col-dopo { border-radius: var(--r-l); padding: clamp(1.6rem, 3vw, 2.2rem); border: 1px solid var(--bordo); }
.col-prima { background: var(--bg-2); }
.col-dopo { background: linear-gradient(160deg, rgba(24,119,242,0.1), rgba(47,224,166,0.05)); border-color: rgba(24,119,242,0.3); }
.col-tag { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.2rem; }
.col-prima .col-tag { color: var(--t-3); }
.col-dopo .col-tag { color: var(--verde); }
.col-list { list-style: none; display: flex; flex-direction: column; gap: 0.95rem; }
.col-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1rem; }
.col-list .ic { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.col-prima .ic { background: rgba(255,90,90,0.14); color: #ff7a7a; }
.col-dopo .ic { background: rgba(47,224,166,0.16); color: var(--verde); }
.col-prima li { color: var(--t-2); }
.col-list .ic svg { width: 13px; height: 13px; }

/* =====================================================
   Funzioni (bento)
   ===================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.cella {
    background: var(--bg-2);
    border: 1px solid var(--bordo);
    border-radius: var(--r-l);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s, transform 0.45s var(--ease), background 0.35s;
}
.cella:hover { border-color: rgba(24,119,242,0.4); transform: translateY(-3px); background: var(--bg-3); }
.cella .ic-box {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(24,119,242,0.12);
    color: var(--blu-chiaro);
    display: grid; place-items: center;
    margin-bottom: 1.1rem;
}
.cella .ic-box svg { width: 22px; height: 22px; }
.cella h3 { font-size: 1.18rem; margin-bottom: 0.5rem; font-weight: 700; }
.cella p { color: var(--t-2); font-size: 0.96rem; }
.cella.col-3 { grid-column: span 3; }
.cella.col-2 { grid-column: span 2; }
.cella.col-6 { grid-column: span 6; }

/* cella larga "pagamenti" con mini-visual */
.cella-wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; }
.cella-wide .pay-visual { display: flex; flex-direction: column; gap: 0.6rem; }
.pay-row { display: flex; align-items: center; gap: 0.7rem; background: var(--surface); border: 1px solid var(--bordo); border-radius: var(--r-m); padding: 0.7rem 0.9rem; font-size: 0.85rem; }
.pay-row .badge-ok { margin-left: auto; color: var(--verde); display: flex; align-items: center; gap: 0.3rem; font-weight: 600; }
.pay-row .badge-ok svg { width: 14px; height: 14px; }
.pay-row .logo-card { width: 34px; height: 22px; border-radius: 4px; background: var(--grad-blu); flex-shrink: 0; }

/* =====================================================
   Scatole separate
   ===================================================== */
.scatole-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 1rem; }
.scatola { transition: transform 0.5s var(--ease); }
.scatola:hover { transform: translateY(-5px); }
.scatola .mini-frame { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--bordo); background: var(--bg-3); }
.scatola .mini-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.7rem; background: var(--bg-2); border-bottom: 1px solid var(--bordo); }
.scatola .mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--bordo); }
.scatola .mini-url { font-size: 0.66rem; color: var(--t-3); margin-left: auto; }
.scatola .mini-body { padding: 1.2rem 1.1rem 1.4rem; min-height: 130px; display: flex; flex-direction: column; gap: 0.6rem; }
.scatola .mini-logo { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.scatola .mini-line { height: 7px; border-radius: 4px; background: var(--surface-2); }
.scatola .mini-line.s { width: 60%; }
.scatola .mini-pills { display: flex; gap: 0.4rem; margin-top: auto; }
.scatola .mini-pills b { font-size: 0.6rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: var(--r-pill); }
.scatola .caption { margin-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; }
.scatola .caption .nome { font-weight: 600; font-size: 0.95rem; }
.scatola .caption .stato { font-size: 0.72rem; color: var(--t-3); }
.scatola .caption .stato.live { color: var(--verde); display: inline-flex; align-items: center; gap: 0.35rem; }
.scatola .caption .stato.live::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--verde); }

/* tema A (terredinoto: ocra/blu) */
.tema-tdn .mini-logo { color: #E0A93B; }
.tema-tdn .mini-pills b { background: rgba(224,169,59,0.16); color: #E0A93B; }
/* tema B */
.tema-b .mini-logo { color: #6FB3FF; }
.tema-b .mini-pills b { background: rgba(111,179,255,0.16); color: #6FB3FF; }
/* tema C */
.tema-c .mini-logo { color: #2FE0A6; }
.tema-c .mini-pills b { background: rgba(47,224,166,0.16); color: #2FE0A6; }

.scatole-note { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.scatole-note .punto { display: flex; gap: 0.7rem; align-items: flex-start; }
.scatole-note .punto svg { width: 20px; height: 20px; color: var(--verde); flex-shrink: 0; margin-top: 2px; }
.scatole-note .punto b { display: block; margin-bottom: 0.15rem; }
.scatole-note .punto p { color: var(--t-2); font-size: 0.92rem; }

/* =====================================================
   Come funziona
   ===================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.step { position: relative; padding: clamp(1.6rem,3vw,2.2rem); background: var(--bg-2); border: 1px solid var(--bordo); border-radius: var(--r-l); }
.step .n {
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--surface-2); border: 1px solid var(--bordo);
    display: grid; place-items: center;
    font-weight: 800; font-size: 1.2rem; color: var(--blu-chiaro);
    margin-bottom: 1.2rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--t-2); font-size: 0.97rem; }

/* =====================================================
   Case study
   ===================================================== */
.case {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem);
    align-items: center;
    background: linear-gradient(150deg, var(--bg-2), var(--bg-3));
    border: 1px solid var(--bordo);
    border-radius: var(--r-l);
    padding: clamp(2rem, 4vw, 3.5rem);
}
.case .badge-live { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--verde); background: rgba(47,224,166,0.1); padding: 0.35rem 0.8rem; border-radius: var(--r-pill); margin-bottom: 1.2rem; }
.case .badge-live::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); animation: pulse 2.2s infinite; }
.case h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.case p { color: var(--t-2); margin-bottom: 1.4rem; }
.case-quote { border-left: 0; }
.case ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.6rem; }
.case ul li { display: flex; gap: 0.6rem; align-items: center; color: var(--t-2); font-size: 0.97rem; }
.case ul li svg { width: 18px; height: 18px; color: var(--verde); flex-shrink: 0; }

/* =====================================================
   Prezzi
   ===================================================== */
.prezzi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
.piano {
    display: flex; flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--bordo);
    border-radius: var(--r-l);
    padding: clamp(1.8rem, 3vw, 2.3rem);
    position: relative;
    transition: border-color 0.35s, transform 0.45s var(--ease);
}
.piano:hover { transform: translateY(-4px); }
.piano.top {
    border-color: var(--blu);
    background: linear-gradient(170deg, rgba(24,119,242,0.1), var(--bg-2) 55%);
    box-shadow: 0 30px 70px -30px rgba(24,119,242,0.5);
}
.piano .pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-blu); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: var(--r-pill); white-space: nowrap; }
.piano .nome-piano { font-size: 1.15rem; font-weight: 700; }
.piano .desc-piano { color: var(--t-3); font-size: 0.9rem; margin: 0.3rem 0 1.4rem; min-height: 2.6em; }
.piano .mercato { font-size: 0.85rem; color: var(--t-3); text-decoration: line-through; }
.piano .prezzo { display: flex; align-items: baseline; gap: 0.3rem; margin: 0.2rem 0 0.2rem; }
.piano .prezzo .euro { font-size: 1.4rem; font-weight: 700; align-self: flex-start; margin-top: 0.4rem; }
.piano .prezzo .val { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.piano .prezzo .per { font-size: 0.95rem; color: var(--t-3); }
.piano .sconto-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; line-height: 1; font-weight: 700; color: var(--verde); background: rgba(47,224,166,0.12); padding: 0.28rem 0.55rem; border-radius: var(--r-pill); margin-bottom: 1.5rem; align-self: flex-start; }
.piano .sconto-tag svg { width: 12px; height: 12px; flex-shrink: 0; }
.piano ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.8rem; flex: 1; }
.piano ul li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.94rem; color: var(--t-2); }
.piano ul li svg { width: 17px; height: 17px; color: var(--blu-chiaro); flex-shrink: 0; margin-top: 2px; }
.piano .btn { width: 100%; }
.prezzi-foot { text-align: center; margin-top: 1.6rem; color: var(--t-3); font-size: 0.88rem; }

/* =====================================================
   FAQ
   ===================================================== */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--bordo); }
.faq-q { width: 100%; background: none; border: 0; color: var(--t-1); text-align: left; font-size: clamp(1.02rem, 1.6vw, 1.15rem); font-weight: 600; padding: 1.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-q .pm { width: 22px; height: 22px; flex-shrink: 0; position: relative; transition: transform 0.4s var(--ease); }
.faq-q .pm::before, .faq-q .pm::after { content:""; position: absolute; background: var(--blu-chiaro); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .pm::before { width: 14px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 14px; transition: opacity 0.3s; }
.faq-item.open .pm::after { opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--t-2); padding-bottom: 1.4rem; max-width: 68ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* =====================================================
   CTA finale + form
   ===================================================== */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before { content:""; position: absolute; inset: 0; background: var(--glow-blu); opacity: 0.5; pointer-events: none; }
.cta-box {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    background: var(--bg-2);
    border: 1px solid var(--bordo);
    border-radius: var(--r-l);
    padding: clamp(2rem, 4vw, 3.5rem);
}
.cta-box h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
.cta-box .lead { color: var(--t-2); font-size: 1.1rem; margin-bottom: 1.8rem; }
.cta-points { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.cta-points li { display: flex; gap: 0.6rem; align-items: center; color: var(--t-2); }
.cta-points li svg { width: 20px; height: 20px; color: var(--verde); flex-shrink: 0; }

.form { display: flex; flex-direction: column; gap: 1rem; }
.campo { display: flex; flex-direction: column; gap: 0.4rem; }
.campo label { font-size: 0.85rem; font-weight: 600; color: var(--t-2); }
.campo input, .campo textarea, .campo select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--bordo);
    border-radius: var(--r-m);
    color: var(--t-1);
    font-family: inherit;
    font-size: 0.97rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.25s, background 0.25s;
}
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: 0; border-color: var(--blu); background: var(--bg-2); }
.campo select {
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23828AA0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}
.campo select option { background: var(--bg-2); color: var(--t-1); }
.campo textarea { resize: vertical; min-height: 110px; }
.campo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form altcha-widget { --altcha-border-radius: var(--r-m); width: 100%; }
.form .btn { width: 100%; margin-top: 0.3rem; }
.form-msg { font-size: 0.92rem; padding: 0.85rem 1rem; border-radius: var(--r-m); display: none; }
.form-msg.ok { display: block; background: rgba(47,224,166,0.12); color: var(--verde); border: 1px solid var(--verde-scuro); }
.form-msg.err { display: block; background: rgba(255,90,90,0.1); color: #ff8585; border: 1px solid rgba(255,90,90,0.3); }
.form .privacy { font-size: 0.78rem; color: var(--t-3); }
.form .privacy a { color: var(--t-2); border-bottom: 1px solid var(--bordo); }

/* =====================================================
   Footer
   ===================================================== */
.footer { border-top: 1px solid var(--bordo-luce); padding-block: 3rem 2.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; }
.footer .brand { margin-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--t-3); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--t-1); }
.footer-copy { color: var(--t-3); font-size: 0.85rem; margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--bordo-luce); }
.footer-copy a { color: var(--t-2); }

/* =====================================================
   Reveal on scroll
   ===================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 480px; }
    .case, .cta-box { grid-template-columns: 1fr; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .cella.col-3, .cella.col-2, .cella.col-6 { grid-column: span 2; }
    .cella-wide { grid-template-columns: 1fr; }
    .scatole-grid, .steps, .prezzi-grid, .scatole-note { grid-template-columns: 1fr; }
    .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
    .piano.top { transform: none; }
    .problema-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-links.mob {
        display: flex; flex-direction: column;
        position: absolute; top: 70px; left: 0; right: 0;
        background: rgba(10,11,13,0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--bordo);
        padding: 1.2rem 1.5rem 1.8rem; gap: 1.1rem;
        align-items: stretch;
    }
    .nav-links.mob .btn { justify-content: center; }
    .hamburger { display: block; }
    .bento { grid-template-columns: 1fr; }
    .cella.col-3, .cella.col-2, .cella.col-6 { grid-column: span 1; }
    .campo-row { grid-template-columns: 1fr; }
    .frame-url { font-size: 0.68rem; }
}
