/* ============================================================================
   AmicoAI — landing (redesign 2026-08-21, da mockup "assistente intelligente")
   Palette: navy profondo + gradiente blu→indaco→viola, card vetro con bordo
   colorato, glow morbidi. Zero dipendenze, solo Inter da Google Fonts.
   ========================================================================== */

:root {
    --bg:        #05081C;
    --bg-2:      #080D2A;
    --card:      rgba(12, 18, 48, .72);
    --card-2:    rgba(16, 23, 58, .85);
    --line:      rgba(255, 255, 255, .08);
    --line-acc:  rgba(99, 102, 241, .45);
    --text:      #FFFFFF;
    --text-2:    #B6BDD6;
    --muted:     #7C86A6;
    --blue:      #3B82F6;
    --indigo:    #6366F1;
    --violet:    #A855F7;
    --cyan:      #22D3EE;
    --pink:      #EC4899;
    --grad:      linear-gradient(135deg, #3B82F6 0%, #6366F1 55%, #A855F7 100%);
    --grad-h:    linear-gradient(90deg, #60A5FA 0%, #818CF8 50%, #C084FC 100%);
    --r-lg:      22px;
    --r-md:      16px;
    --r-sm:      12px;
    --shadow:    0 24px 60px rgba(0, 0, 0, .45);
    --glow:      0 0 0 1px rgba(99,102,241,.35), 0 12px 40px rgba(99,102,241,.25);
    --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-2);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: inline-block; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
b, strong { color: var(--text); }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.grad-text {
    background: var(--grad-h);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.text-link { color: #A5B4FC; font-weight: 600; }
.text-link:hover { color: #fff; }

/* ---------- Sfondo ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
      background: radial-gradient(120% 80% at 50% 0%, #0C1440 0%, var(--bg) 55%); }
.bg-stars {
    position: absolute; inset: 0; opacity: .55;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent 61%),
        radial-gradient(1px 1px at 28% 62%, #fff 60%, transparent 61%),
        radial-gradient(1.5px 1.5px at 44% 30%, #C4B5FD 60%, transparent 61%),
        radial-gradient(1px 1px at 63% 74%, #fff 60%, transparent 61%),
        radial-gradient(1.2px 1.2px at 77% 22%, #fff 60%, transparent 61%),
        radial-gradient(1px 1px at 88% 58%, #93C5FD 60%, transparent 61%),
        radial-gradient(1.4px 1.4px at 52% 88%, #fff 60%, transparent 61%),
        radial-gradient(1px 1px at 8% 84%, #fff 60%, transparent 61%),
        radial-gradient(1px 1px at 94% 90%, #fff 60%, transparent 61%);
    background-size: 900px 700px;
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.bg-glow-1 { width: 620px; height: 620px; right: -160px; top: -120px; background: rgba(99,102,241,.55); }
.bg-glow-2 { width: 520px; height: 520px; left: -200px; top: 540px; background: rgba(59,130,246,.35); }
.bg-glow-3 { width: 560px; height: 560px; right: -120px; top: 1900px; background: rgba(168,85,247,.35); }

/* ---------- Bottoni ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
    border-radius: var(--r-sm); padding: 14px 22px; border: 1px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-ico { flex: none; }
.btn-primary {
    color: #fff; background: var(--grad);
    box-shadow: 0 10px 28px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(99,102,241,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-outline {
    color: #fff; background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.22);
}
.btn-outline:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.btn-white { color: #2E1065; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.btn-white:hover { background: #F5F3FF; }
.btn-dark { color: #fff; background: #0B1030; border-color: rgba(255,255,255,.15); }
.btn-dark:hover { background: #131A45; }

/* ---------- Eyebrow / badge ---------- */
.eyebrow {
    display: inline-block; margin-bottom: 18px;
    font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #A5B4FC; padding: 7px 14px; border-radius: 999px;
    background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.45);
}
.eyebrow-solid { background: rgba(99,102,241,.22); }
.beta-badge {
    font-size: .58rem; font-weight: 800; letter-spacing: .08em; color: #fff;
    background: var(--grad); padding: 3px 7px; border-radius: 6px; margin-left: 8px;
    vertical-align: middle;
}

/* ---------- Titoli ---------- */
.h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 800; color: #fff;
    letter-spacing: -.025em; line-height: 1.15; margin-bottom: 28px;
}
.underline-swoosh { position: relative; display: inline-block; }
.underline-swoosh::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 4px;
    border-radius: 4px; background: var(--grad); opacity: .9;
    transform: skewX(-12deg);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5,8,28,.72); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { filter: drop-shadow(0 4px 14px rgba(99,102,241,.5)); }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: #D5DAEC; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: 10px; padding: 0; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.18);
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; position: relative; }
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
    min-height: 560px;
}
.hero-title {
    font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; color: #fff;
    letter-spacing: -.035em; line-height: 1.02; margin-bottom: 24px;
}
.hero-lead { font-size: 1.08rem; max-width: 480px; margin-bottom: 32px; color: #C3C9DE; }

/* Offerta di prova in cima all'hero (26/09/2026).
   Riquadro e non solo testo: sul telefono l'hero si legge di scorcio e una
   riga in piu' fra l'eyebrow e il titolo passerebbe inosservata. Il bordo
   tenue lo stacca senza rubare la scena al titolo, che resta l'elemento
   piu' grande della pagina. */
.hero-offerta {
    display: inline-flex; flex-direction: column; gap: 2px;
    margin: 0 0 18px; padding: 10px 18px;
    border: 1px solid rgba(99,102,241,.45); border-radius: 14px;
    background: rgba(99,102,241,.12);
}
.hero-offerta-big {
    font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 800;
    letter-spacing: -.02em; line-height: 1.1;
    background: var(--grad-h);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero-offerta-sub { font-size: .86rem; color: #C3C9DE; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-proof { display: flex; align-items: flex-start; gap: 14px; max-width: 440px; }
.proof-badge {
    flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; background: var(--grad); box-shadow: 0 8px 24px rgba(99,102,241,.45);
}
.proof-body { flex: 1; }
.counter-label { font-size: .9rem; color: #C3C9DE; }
.counter-label b { font-size: 1.15rem; color: #fff; }
.counter-of { margin-left: 4px; }
.counter-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin: 8px 0 6px; }
.counter-bar-fill { height: 100%; border-radius: 6px; background: var(--grad); transition: width .8s ease; }
.counter-social { font-size: .82rem; color: var(--muted); }
.counter-social[hidden] { display: none; }

/* Telefono */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 600px; }
.phone {
    position: relative; width: 300px; height: 610px; border-radius: 46px;
    background: #0B0F2A; padding: 10px; z-index: 3;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 0 0 6px #070B22, 0 0 0 7px rgba(129,140,248,.35),
        0 40px 80px rgba(0,0,0,.6), 0 0 90px rgba(99,102,241,.35);
    transform: perspective(1400px) rotateY(-10deg) rotateX(4deg) rotateZ(4deg);
}
.phone-island {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 24px; border-radius: 14px; background: #05071A; z-index: 5;
}
.phone-screen {
    height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column;
    background: linear-gradient(180deg, #0D1232 0%, #070A22 100%);
}
.status-bar {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0;
    font-size: .72rem; font-weight: 700; color: #fff;
}
.status-icons { display: inline-flex; gap: 5px; align-items: center; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 20px 20px 10px; color: #fff; }
.app-bar-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.app-bar-menu { margin-left: auto; font-size: 1.2rem; color: #C7CCE0; }
.chat { flex: 1; padding: 8px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.msg { max-width: 86%; padding: 11px 13px; border-radius: 16px; font-size: .76rem; line-height: 1.45; color: #fff; }
.msg.out { align-self: flex-end; background: linear-gradient(135deg, #4F46E5, #7C3AED); border-bottom-right-radius: 5px;
           box-shadow: 0 6px 18px rgba(99,102,241,.35); }
.msg.in  { align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 5px; }
.msg.short { max-width: 74%; }
.msg-from { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 600; color: #C7CCE0; margin-top: 4px; }
.msg-card {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
    margin-top: 10px; padding: 9px 10px; border-radius: 11px;
    background: rgba(5,8,28,.7); border: 1px solid rgba(255,255,255,.1);
}
.msg-card-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(99,102,241,.25); color: #A5B4FC; }
.msg-card b { display: block; font-size: .74rem; }
.msg-card small { display: block; font-size: .64rem; color: #8A93B2; }
.msg-card-arrow { color: #8A93B2; }
.composer {
    margin: 8px 14px 22px; padding: 12px 12px 12px 16px; border-radius: 999px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    font-size: .74rem; color: #8A93B2;
}
.composer-send { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }

.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(129,140,248,.35); pointer-events: none; }
.orbit-1 { width: 520px; height: 520px; border-color: rgba(129,140,248,.28); box-shadow: 0 0 40px rgba(99,102,241,.15) inset; }
.orbit-2 { width: 640px; height: 640px; border-style: dashed; border-color: rgba(129,140,248,.18); }
.float {
    position: absolute; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, #1E1B4B, #312E81);
    border: 1px solid rgba(167,139,250,.55); box-shadow: 0 0 40px rgba(139,92,246,.45);
    z-index: 4; animation: bob 5s ease-in-out infinite;
}
.float-bolt { left: 2%; top: 26%; }
.float-chat { right: 0; bottom: 30%; animation-delay: -2.5s; }
.spark { position: absolute; color: #E9D5FF; filter: drop-shadow(0 0 8px rgba(216,180,254,.9)); z-index: 4; animation: twinkle 3s ease-in-out infinite; }
.spark-1 { left: 18%; top: 10%; }
.spark-2 { right: 20%; top: 16%; animation-delay: -1s; }
.spark-3 { right: 6%; top: 48%; animation-delay: -2s; }
.spark-4 { left: 10%; bottom: 14%; animation-delay: -.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* ---------- Sezioni ---------- */
.section { padding: 80px 0; position: relative; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8,13,42,.45); }

/* ---------- Funzionalità ---------- */
.feat-grid { display: grid; grid-template-columns: .9fr 1.6fr; gap: 48px; align-items: center; }
.feat-intro .h2 { margin-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile {
    padding: 26px 20px; border-radius: var(--r-md); min-height: 220px;
    background: var(--card); border: 1px solid var(--tile-c, var(--line-acc));
    box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset, 0 10px 30px rgba(0,0,0,.3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 30px color-mix(in srgb, var(--tile-c, #6366F1) 35%, transparent), 0 16px 40px rgba(0,0,0,.4); }
.tile-ico { color: var(--tile-c); margin-bottom: 16px; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tile-c) 70%, transparent)); }
.tile h3 { font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.tile p { font-size: .84rem; color: var(--text-2); }
.tile-blue   { --tile-c: #3B82F6; }
.tile-violet { --tile-c: #8B5CF6; }
.tile-cyan   { --tile-c: #22D3EE; }
.tile-pink   { --tile-c: #F472B6; }

/* ---------- Casi d'uso ---------- */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 16px; }
.case {
    padding: 22px 22px 26px; border-radius: var(--r-lg); text-align: left;
    background: var(--card); border: 1px solid var(--line-acc);
    box-shadow: var(--glow); transition: transform .2s ease;
}
.case:hover { transform: translateY(-4px); }
.case-ill { display: block; margin: 4px auto 18px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.case h3 { font-size: 1.08rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: 16px; }
.case li { position: relative; padding-left: 18px; font-size: .86rem; color: #C3C9DE; margin-bottom: 8px; }
.case li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* ---------- Come funziona + prezzo ---------- */
.how-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; margin-top: 10px; }
.steps::before {
    content: ""; position: absolute; left: 34px; right: 34px; top: 34px; height: 0;
    border-top: 2px dashed rgba(129,140,248,.35); z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-badge { position: relative; width: 68px; height: 68px; margin-bottom: 28px; }
.step-num {
    width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
    font-size: 1.5rem; font-weight: 800; color: #fff; background: var(--bg-2);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-2), var(--bg-2)), var(--grad);
    background-origin: border-box; background-clip: padding-box, border-box;
    box-shadow: 0 0 30px rgba(99,102,241,.35);
}
.step-ico {
    position: absolute; right: -8px; bottom: -10px; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; background: var(--grad);
    border: 3px solid var(--bg); box-shadow: 0 6px 16px rgba(99,102,241,.5);
}
.step h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.step p { font-size: .86rem; color: var(--text-2); }

.price-col { position: relative; display: flex; align-items: flex-start; gap: 0; }
.price-card {
    position: relative; z-index: 2; flex: 1; min-width: 0; padding: 28px 28px 26px; border-radius: var(--r-lg);
    background: var(--card-2); border: 1px solid rgba(129,140,248,.6);
    box-shadow: 0 0 0 1px rgba(99,102,241,.15), 0 30px 70px rgba(0,0,0,.5), 0 0 60px rgba(99,102,241,.25);
}
.price-card .eyebrow { margin-bottom: 14px; }
.price-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.price-head h3 { font-size: 1.3rem; font-weight: 800; color: #fff; }
.price-star { color: #A5B4FC; }
.price-amount { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.price-amount .grad-text { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price-amount small { font-size: .95rem; color: #C3C9DE; font-weight: 600; }
.price-was { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.price-was s { color: #9AA3C4; }
.price-list { display: grid; gap: 10px; margin-bottom: 20px; }
.price-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #E5E9F5; }
.price-list svg { color: #34D399; flex: none; }
.price-card .counter { margin-bottom: 18px; }
.price-note { margin-top: 12px; text-align: center; font-size: .78rem; color: var(--muted); }
.price-mascot {
    flex: none; width: 128px; height: 128px; margin: 10px 0 0 -26px; z-index: 3;
    filter: drop-shadow(0 20px 40px rgba(99,102,241,.55));
    animation: bob 6s ease-in-out infinite;
}

/* ---------- 3 piani affiancati (free/premium/professional, 27/08/2026) ---------- */
.price-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-grid-3 .price-card { display: flex; flex-direction: column; }
.price-grid-3 .price-card-highlight {
    border-color: rgba(168,85,247,.7);
    box-shadow: 0 0 0 2px rgba(168,85,247,.35), 0 30px 70px rgba(0,0,0,.5), 0 0 60px rgba(168,85,247,.3);
}
.price-grid-3 .price-list { flex: 1; }
.price-soon-badge {
    display: inline-block; font-size: .78rem; font-weight: 700; color: #C4B5FD;
    background: rgba(129,140,248,.15); border: 1px solid rgba(129,140,248,.4);
    border-radius: 999px; padding: 4px 12px; margin-bottom: 6px;
}
@media (max-width: 900px) {
    .price-grid-3 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ---------- FAQ ---------- */
.faqs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-acc); padding: 0 20px; }
.faq[open] { box-shadow: var(--glow); }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative;
    font-weight: 700; color: #fff; font-size: .95rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 700; color: #A5B4FC; background: rgba(99,102,241,.15); border: 1px solid rgba(99,102,241,.4);
}
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 0 18px; font-size: .9rem; color: var(--text-2); }

/* ---------- CTA finale ---------- */
.cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: 44px 48px;
    display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
    background: linear-gradient(100deg, #2F3FD6 0%, #5B3FE0 45%, #8A3FD8 75%, #B03FC4 100%);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 30px 80px rgba(79,70,229,.45);
}
.cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 80% at 80% 50%, rgba(255,255,255,.18), transparent 60%);
    pointer-events: none;
}
.cta-mascot { position: relative; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.cta-body { position: relative; }
.cta-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 6px; }
.cta-body > p { color: #EDE9FE; font-size: 1.02rem; margin-bottom: 20px; }
.cta-actions { margin-bottom: 22px; }
.wl-form { max-width: 560px; }
.wl-label { display: block; font-size: .85rem; color: #EDE9FE; margin-bottom: 10px; }
.wl-row { display: flex; gap: 10px; }
.wl-row input {
    flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff;
    font: inherit; font-size: .92rem; outline: none;
}
.wl-row input::placeholder { color: rgba(255,255,255,.7); }
.wl-row input:focus { border-color: #fff; background: rgba(255,255,255,.2); }
.hero-form-msg { margin-top: 10px; font-size: .85rem; min-height: 1.2em; color: #EDE9FE; }
.hero-form-msg.ok { color: #BBF7D0; }
.hero-form-msg.error { color: #FECACA; }
.cta-spark { position: absolute; color: #fff; opacity: .9; filter: drop-shadow(0 0 8px rgba(255,255,255,.9)); animation: twinkle 3s ease-in-out infinite; }
.cta-spark.s1 { right: 8%; top: 18%; }
.cta-spark.s2 { right: 16%; bottom: 20%; animation-delay: -1s; }
.cta-spark.s3 { right: 4%; bottom: 30%; animation-delay: -2s; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 32px; align-items: start; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-tag { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.footer-h { font-weight: 700; color: #fff; font-size: .92rem; margin-bottom: 12px; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { font-size: .88rem; color: #AEB6D0; }
.site-footer li a:hover { color: #fff; }
.footer-mascot { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.footer-mascot-ring {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.35) 0%, transparent 70%);
    box-shadow: 0 0 0 1px rgba(129,140,248,.25) inset;
}
.footer-mascot svg { position: relative; filter: drop-shadow(0 10px 30px rgba(99,102,241,.6)); }
.footer-fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.footer-fine p { font-size: .76rem; color: var(--muted); line-height: 1.7; }
.footer-fine a { color: #AEB6D0; text-decoration: underline; text-underline-offset: 2px; }
.footer-version { margin-left: 8px; opacity: .6; font-variant-numeric: tabular-nums; }

/* ---------- Voce di menu attiva ---------- */
.nav-links a.active { color: #fff; position: relative; }
.nav-links a.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
    border-radius: 2px; background: var(--grad);
}

/* ---------- Pagine interne ---------- */
.page-hero { padding: 64px 0 24px; text-align: center; }
.page-hero .h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.page-hero .lead { max-width: 640px; margin: 0 auto; font-size: 1.08rem; color: #C3C9DE; }
.section-head { margin-bottom: 28px; }
.section-head .h2 { margin-bottom: 10px; }
.section-head .lead { max-width: 680px; color: #C3C9DE; }
.centered { text-align: center; }
.centered .lead { margin-left: auto; margin-right: auto; }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; color: #A5B4FC; }
.more-link:hover { color: #fff; }

/* Dettagli funzione: testo + mini-chat */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 0; }
.detail.flip .detail-text { order: 2; }
.detail h3 { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 12px; }
.detail p { color: #C3C9DE; margin-bottom: 12px; }
.detail .case li { color: #C3C9DE; }
.detail-ill { display: flex; align-items: center; gap: 20px; }
.detail-ill .case-ill { margin: 0; flex: none; }
.mini-chat {
    flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px;
    border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-acc); box-shadow: var(--glow);
}
.mini-chat .msg { font-size: .84rem; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact { padding: 28px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-acc); box-shadow: var(--glow); }
.contact-ico {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
    color: #fff; background: var(--grad); box-shadow: 0 10px 26px rgba(99,102,241,.45);
}
.contact h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.contact p { font-size: .9rem; color: var(--text-2); margin-bottom: 14px; }
.contact .btn { margin-top: 4px; }
.contact address { font-style: normal; font-size: .9rem; color: #C3C9DE; line-height: 1.7; }

/* FAQ a gruppi */
.faq-group { margin-bottom: 40px; }
.faq-group h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 14px; padding-left: 14px; border-left: 3px solid; border-image: var(--grad) 1; }

/* Prezzi */
.price-center { max-width: 520px; margin: 0 auto; }
.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .cases { grid-template-columns: repeat(2, 1fr); }
    .how-grid { grid-template-columns: 1fr; }
    .price-col { max-width: 560px; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-mascot { display: none; }
}
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .menu-open .nav-links {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; left: 0; right: 0; top: 100%;
        padding: 8px 24px 16px; background: rgba(5,8,28,.97); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.5);
    }
    .menu-open .nav-links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .menu-open .nav-links a:last-child { border-bottom: 0; }
    .nav-links a.active::after { display: none; }
    .menu-open .nav-links a.active { color: #A5B4FC; }
    .hero { padding-top: 36px; }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero-text { text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-proof { margin: 0 auto; text-align: left; }
    .hero-art { min-height: 0; margin-top: 20px; overflow: hidden; padding: 20px 0; }
    .phone { width: 270px; height: 550px; transform: none; }
    .orbit-1 { width: min(380px, 92vw); height: min(380px, 92vw); }
    .orbit-2 { width: min(470px, 100vw); height: min(470px, 100vw); }
    .float-bolt { left: 4%; }
    .float-chat { right: 2%; }
    .feat-grid { grid-template-columns: 1fr; gap: 28px; }
    .faqs { grid-template-columns: 1fr; }
    .detail { grid-template-columns: 1fr; gap: 24px; }
    .detail.flip .detail-text { order: 0; }
    .contact-grid, .includes { grid-template-columns: 1fr; }
    .page-hero { padding-top: 44px; }
    .cta { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
    .cta-mascot { margin: 0 auto; }
    .wl-form { margin: 0 auto; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    .nav { height: 66px; }
    .nav-actions .btn-outline { display: none; }
    .section { padding: 56px 0; }
    .tiles, .cases, .steps { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .phone { width: 250px; height: 510px; }
    .float { width: 60px; height: 60px; }
    .wl-row { flex-direction: column; }
    .price-mascot { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .float, .spark, .price-mascot, .cta-spark { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===== Profili ritirati (21/09/2026) =====
   Tenuti in pagina per trasparenza: chi li ha sottoscritti continua ad averli
   esattamente com'erano, e chi arriva oggi deve poter vedere cosa c'era prima
   invece di trovare una pagina riscritta senza spiegazioni. Nascosti dietro un
   link perché non sono più sottoscrivibili: mostrarli accanto a quelli attivi
   farebbe scegliere qualcosa che non si può più avere. */
#profiliStorici[hidden] { display: none; }

.price-card-ritirato {
    position: relative;
    filter: grayscale(.85);
    opacity: .8;
    border-color: rgba(220, 38, 38, .35);
}

/* La X: due barre incrociate sopra la card. Pseudo-elementi e non un'immagine,
   così scala con la card su qualunque schermo. `pointer-events:none` perché la
   X non deve rubare i clic al contenuto sotto. */
.price-card-ritirato::before,
.price-card-ritirato::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2%;
    width: 104%;
    height: 6px;
    background: rgba(220, 38, 38, .55);
    border-radius: 4px;
    pointer-events: none;
    z-index: 3;
}
.price-card-ritirato::before { transform: rotate(14deg); }
.price-card-ritirato::after  { transform: rotate(-14deg); }

.badge-ritirato {
    display: inline-block;
    background: rgba(220, 38, 38, .12);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, .35);
    border-radius: 999px;
    padding: .2rem .7rem;
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.link-storici {
    display: inline-block;
    margin-top: 2.2rem;
    background: none;
    border: none;
    font: inherit;
    font-size: .92rem;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
}
.link-storici:hover { color: #111827; }

.storici-intro {
    margin: 1.6rem 0 1.2rem;
    font-size: .92rem;
    color: #6b7280;
    max-width: 60ch;
}

/* ===== Demo animata in stile WhatsApp (08/10/2026) =====
   La chat dentro il telefono della home: chi arriva da un'inserzione vede in
   pochi secondi COME funziona, nella app che conosce già. Colori di WhatsApp
   (tema chiaro) perché il prodotto vive lì: un telefono scuro con la nostra
   intestazione faceva pensare a un'app da scaricare. Logica in demo-chat.js. */
.phone-screen:has(.wa-chat) { background: #efeae2; }
.phone-screen:has(.wa-chat) .status-bar { color: #fff; background: #008069; padding-bottom: 6px; }
.wa-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; background: #008069; color: #fff; }
.wa-back { font-size: 1.4rem; line-height: 1; opacity: .9; }
.wa-avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.wa-who { display: flex; flex-direction: column; line-height: 1.15; }
.wa-who b { font-size: .86rem; }
.wa-who small { font-size: .66rem; opacity: .85; }
.wa-chat {
    flex: 1; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 6px;
    overflow: hidden; scroll-behavior: smooth;
    background-color: #efeae2;
    background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
    background-size: 14px 14px;
}
.wa-msg {
    position: relative; max-width: 84%; padding: 6px 9px 16px; border-radius: 9px;
    font-size: .74rem; line-height: 1.38; color: #111b21; white-space: pre-line;
    box-shadow: 0 1px .5px rgba(11,20,26,.13);
    animation: wa-entra .28s ease-out both;
}
.wa-msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa-msg.in  { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-ora { position: absolute; right: 7px; bottom: 3px; font-size: .58rem; color: #667781; }
.wa-ora i { font-style: normal; color: #53bdeb; letter-spacing: -2px; margin-left: 2px; }
.wa-giorno { align-self: center; font-size: .62rem; color: #54656f; background: #fff; padding: 3px 9px; border-radius: 7px;
             box-shadow: 0 1px .5px rgba(11,20,26,.13); animation: wa-entra .28s ease-out both; }
.wa-tasti { align-self: flex-start; width: 84%; display: flex; flex-direction: column; gap: 3px; margin-top: -3px;
            animation: wa-entra .28s ease-out both; }
.wa-tasto { background: #fff; color: #027eb5; text-align: center; font-size: .72rem; font-weight: 600; padding: 7px 0;
            border-radius: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13); transition: background .2s, transform .2s; }
.wa-tasto.premuto { background: #e1f3fb; transform: scale(.96); }
.wa-vocale { display: flex; align-items: center; gap: 7px; min-width: 150px; padding-bottom: 14px; }
.wa-vocale .play { width: 0; height: 0; border-left: 9px solid #54656f; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.wa-vocale .onda { flex: 1; height: 16px; background:
    repeating-linear-gradient(90deg, #8696a0 0 2px, transparent 2px 4px);
    -webkit-mask: linear-gradient(0deg, transparent 20%, #000 20% 80%, transparent 80%); opacity: .8; border-radius: 2px; }
.wa-vocale small { font-size: .6rem; color: #667781; }
.wa-scrive { align-self: flex-start; background: #fff; border-radius: 9px; border-top-left-radius: 2px; padding: 9px 11px;
             display: flex; gap: 4px; box-shadow: 0 1px .5px rgba(11,20,26,.13); animation: wa-entra .2s ease-out both; }
.wa-scrive span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: wa-punti 1s infinite; }
.wa-scrive span:nth-child(2) { animation-delay: .15s; }
.wa-scrive span:nth-child(3) { animation-delay: .3s; }
.wa-composer { display: flex; align-items: center; gap: 6px; padding: 6px 8px 20px; background: #efeae2; }
.wa-input { flex: 1; background: #fff; border-radius: 999px; padding: 9px 14px; font-size: .72rem; color: #8696a0; min-height: 1.1em;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-input.scritto { color: #111b21; }
.wa-mic { width: 34px; height: 34px; border-radius: 50%; background: #00a884; display: grid; place-items: center; font-size: .9rem; }
.wa-mic.registra { animation: wa-pulsa .8s infinite; }
.demo-titolo {
    position: relative; z-index: 6; margin: 0 0 18px; text-align: center;
    font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,.5); transition: opacity .35s, transform .35s;
}
.demo-titolo.cambia { opacity: 0; transform: translateY(6px); }
.hero-art:has(.demo-titolo) { flex-direction: column; }
@keyframes wa-entra { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes wa-punti { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes wa-pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,168,132,.5); } 50% { box-shadow: 0 0 0 8px rgba(0,168,132,0); } }
@media (max-width: 900px) {
    .demo-titolo { margin-bottom: 14px; font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-msg, .wa-tasti, .wa-giorno, .wa-scrive, .wa-scrive span, .wa-mic.registra { animation: none; }
}

/* ===== Hero sul telefono: la demo prima di tutto (08/10/2026) =====
   Quasi tutte le visite dell'inserzione arrivano dall'app di Facebook su un
   telefono. Prima la demo stava sotto titolo, descrizione, pulsanti e
   contatore: per vederla bisognava scorrere di oltre 600px, e la maggior
   parte non scorre. Ora: offerta → titolo → DEMO → pulsante → il resto.
   `display: contents` scioglie il blocco del testo, così i suoi elementi e
   il telefono si possono ordinare insieme senza toccare l'HTML del desktop. */
@media (max-width: 900px) {
    .hero-grid:has(.demo-titolo) { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
    .hero-grid:has(.demo-titolo) .hero-text { display: contents; }
    .hero-grid:has(.demo-titolo) .eyebrow { display: none; }
    .hero-grid:has(.demo-titolo) .hero-offerta { order: 1; }
    .hero-grid:has(.demo-titolo) .hero-title { order: 2; margin-bottom: 4px; }
    .hero-grid:has(.demo-titolo) .hero-art { order: 3; margin-top: 0; padding: 8px 0 14px; }
    .hero-grid:has(.demo-titolo) .phone { text-align: left; }   /* la chat non eredita il centrato del titolo */
    .hero-grid:has(.demo-titolo) .hero-actions { order: 4; margin-bottom: 22px; }
    .hero-grid:has(.demo-titolo) .hero-lead { order: 5; }
    .hero-grid:has(.demo-titolo) .hero-proof { order: 6; }
}
@media (max-width: 600px) {
    .hero:has(.demo-titolo) { padding-top: 18px; }
    .hero-grid:has(.demo-titolo) .hero-offerta { margin-bottom: 12px; padding: 7px 14px; }
    .hero-grid:has(.demo-titolo) .hero-title { font-size: 2.15rem; line-height: 1; }
    .hero-grid:has(.demo-titolo) .hero-title br { display: none; }   /* "Il tuo assistente intelligente." su 2 righe invece di 3 */
    .hero-grid:has(.demo-titolo) .demo-titolo { font-size: 1.1rem; margin-bottom: 8px; }
    .hero-grid:has(.demo-titolo) .phone { width: 228px; height: 400px; border-radius: 38px; padding: 8px; }
    .hero-grid:has(.demo-titolo) .phone-screen { border-radius: 31px; }
    .hero-grid:has(.demo-titolo) .phone-island { top: 15px; width: 74px; height: 20px; }
    .hero-grid:has(.demo-titolo) .float { display: none; }
    .hero-grid:has(.demo-titolo) .wa-msg { font-size: .7rem; }
}
