/* =====================================================================
   Syncrocheck — landing di vendita
   Palette ripresa dall'app (navy della sidebar, indaco del canone
   digitale, arancio di "Nuova spesa") ma resa più sobria: il capo deve
   percepire un prodotto finito, non un template.
   ===================================================================== */
/* Font serviti dal sito: la CSP (font-src 'self') blocca Google Fonts.
   Manrope e' lo stesso font dell'app, cosi' il passaggio landing -> portale non stona. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

:root {
  --ink: #0b1224;
  --ink-2: #131c36;
  --ink-3: #1d2848;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;
  --muted-inv: #a9b2c7;
  --line: #e3dfd5;
  --line-inv: rgba(255, 255, 255, .10);
  --accent: #e0672b;
  --accent-2: #f39a5b;
  --indigo: #5b5cf0;
  --gold: #c8a164;
  --ok: #1f9d63;
  --radius: 18px;
  --shadow: 0 30px 80px -30px rgba(11, 18, 36, .45), 0 10px 30px -15px rgba(11, 18, 36, .25);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 86px); line-height: 1.02; letter-spacing: -.01em;
  margin: 18px 0 22px;
}
.display em { font-style: italic; color: var(--accent-2); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.005em;
  margin: 14px 0 18px;
}
.h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; margin: 0; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -10px rgba(224, 103, 43, .7); }
.btn-primary:hover { background: #cf5a21; }
.btn-ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-line { border-color: var(--line); color: var(--text); background: var(--white); }
.btn-line:hover { border-color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Navigazione ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11, 18, 36, .86); backdrop-filter: saturate(160%) blur(14px); border-color: var(--line-inv); }
.nav.is-light { background: rgba(247, 245, 240, .9); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: #fff; }
.nav.is-light .brand, .nav.is-light .nav-links a { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, #7c3aed); box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .8);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand small { display: block; font-size: 11px; font-weight: 500; opacity: .6; letter-spacing: .04em; margin-top: -2px; }
.nav-links { display: flex; gap: 34px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: rgba(255, 255, 255, .78); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav.is-light .nav-links a:hover { color: var(--accent); }
/* "Accedi" dentro il menu serve solo su mobile: su desktop c'e' gia' il link a destra */
.nav-links .only-mobile { display: none; }
.nav-login { font-size: 14.5px; font-weight: 600; color: #fff; }
.nav.is-light .nav-login { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav .btn { height: 42px; padding: 0 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav.is-light .nav-toggle { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(91, 92, 240, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(224, 103, 43, .18), transparent 60%),
    var(--ink);
  padding: 150px 0 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; }
.hero .lead { color: var(--muted-inv); margin: 0 auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 36px 0 18px; }
.hero-note { font-size: 13.5px; color: var(--muted-inv); }
.hero-note span { color: #fff; }
.hero-stage { position: relative; z-index: 2; margin-top: 64px; }
.browser {
  border-radius: 16px 16px 0 0; overflow: hidden; background: #0f1730;
  border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0;
  box-shadow: 0 -20px 120px -20px rgba(91, 92, 240, .45);
}
.browser-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #161f3d; border-bottom: 1px solid rgba(255,255,255,.08); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4468; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-url { margin-left: 18px; flex: 1; max-width: 420px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 12px; color: var(--muted-inv); display: flex; align-items: center; padding: 0 12px; }
.hero-phone {
  position: absolute; right: -10px; bottom: 40px; width: 210px; z-index: 3;
  border-radius: 34px; padding: 8px; background: #05080f; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-phone img { border-radius: 27px; }

/* ---------- Loghi / fiducia ---------- */
.trust { background: var(--ink); color: var(--muted-inv); border-top: 1px solid var(--line-inv); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 34px 24px; border-left: 1px solid var(--line-inv); }
.trust-item:first-child { border-left: 0; }
.trust-num { font-family: var(--serif); font-size: 46px; color: #fff; line-height: 1; }
.trust-num small { font-size: 22px; color: var(--accent-2); margin-left: 4px; }
.trust-lbl { font-size: 14px; margin-top: 10px; }

/* ---------- Sezioni ---------- */
.section { padding: 130px 0; }
.section-sm { padding: 90px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .lead { color: var(--muted-inv); }
.section-paper2 { background: var(--paper-2); }
.section-head { margin-bottom: 70px; }

/* Problema → soluzione */
.pain { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.pain-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.pain-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.pain-list b { color: var(--text); font-weight: 600; }
.pain-dot { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fbe7dc; color: var(--accent); font-size: 13px; font-weight: 700; margin-top: 1px; }
.quote-card {
  background: var(--ink); color: #fff; border-radius: 24px; padding: 48px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.quote-card::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(91,92,240,.55), transparent 65%); }
.quote-big { font-family: var(--serif); font-size: clamp(64px, 7vw, 96px); line-height: 1; position: relative; }
.quote-big sup { font-size: .4em; vertical-align: top; position: relative; top: .5em; margin-right: 4px; color: var(--muted-inv); }
.quote-big small { font-family: var(--sans); font-size: 18px; color: var(--muted-inv); }
.quote-card p { color: var(--muted-inv); position: relative; margin: 18px 0 0; }
.quote-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; position: relative; }
.quote-split div { background: rgba(255,255,255,.06); border: 1px solid var(--line-inv); border-radius: 12px; padding: 14px; }
.quote-split span { display: block; font-size: 12px; color: var(--muted-inv); }
.quote-split b { font-size: 18px; font-weight: 600; }

/* Righe funzione alternate */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; padding: 60px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-copy { order: 2; }
.feature-num { font-family: var(--serif); font-size: 20px; color: var(--gold); font-style: italic; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; margin: 10px 0 16px; }
.feature p { color: var(--muted); margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; }
.checks li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: #e2f4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231f9d63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); border: 1px solid rgba(15, 23, 42, .08);
  cursor: zoom-in; transition: transform .35s ease;
}
.shot:hover { transform: translateY(-4px); }
.shot::after {
  content: "Ingrandisci"; position: absolute; right: 14px; bottom: 14px;
  font-size: 12px; font-weight: 600; color: #fff; background: rgba(11,18,36,.75);
  padding: 6px 12px; border-radius: 999px; opacity: 0; transition: opacity .25s;
}
.shot:hover::after { opacity: 1; }
.shot-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--text); padding: 6px 11px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.tile {
  background: var(--ink-2); border: 1px solid var(--line-inv); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
}
.tile-copy { padding: 30px 30px 22px; }
.tile-copy h4 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tile-copy p { margin: 0; color: var(--muted-inv); font-size: 15px; }
.tile-img { margin-top: auto; padding: 0 30px; }
.tile-img img { border-radius: 12px 12px 0 0; border: 1px solid rgba(255,255,255,.1); border-bottom: 0; cursor: zoom-in; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; }

/* Dispositivi */
.devices { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 36px; margin-top: 20px; }
.device-tablet { width: min(560px, 60%); border-radius: 34px; padding: 14px; background: #0b0f1a; box-shadow: var(--shadow); }
.device-tablet img { border-radius: 22px; }
.device-phone { width: min(250px, 30%); border-radius: 38px; padding: 9px; background: #0b0f1a; box-shadow: var(--shadow); margin-bottom: -30px; }
.device-phone img { border-radius: 30px; }
.device-cap { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Numeri pilastri */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 34px; }
.pillar-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); margin-bottom: 20px; }
.pillar-ic svg { width: 22px; height: 22px; stroke: var(--ink); }
.pillar h4 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Passi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line-inv); }
.step { padding: 40px 36px 10px 0; counter-increment: s; }
.step + .step { padding-left: 36px; border-left: 1px solid var(--line-inv); }
.step::before { content: "0" counter(s); font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); }
.step h4 { font-size: 21px; font-weight: 600; margin: 12px 0 10px; }
.step p { color: var(--muted-inv); margin: 0; font-size: 15.5px; }

/* Citazione */
.statement { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; max-width: 980px; margin: 0 auto; text-align: center; }
.statement em { color: var(--accent); }
.statement-by { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; }

/* ---------- Prezzi ---------- */
.billing-switch {
  display: inline-flex; padding: 5px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); margin: 34px auto 0; position: relative;
}
.billing-switch button {
  border: 0; background: transparent; font: 600 14.5px var(--sans); color: var(--muted);
  padding: 11px 22px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.billing-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.save-pill { font-size: 11.5px; background: #e2f4ea; color: var(--ok); padding: 3px 8px; border-radius: 999px; }
.billing-switch button[aria-pressed="true"] .save-pill { background: rgba(255,255,255,.15); color: #b8f0d2; }

.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 22px; align-items: stretch; margin-top: 60px; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 38px 34px;
  display: flex; flex-direction: column;
}
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 6px; }
.plan-price b { font-family: var(--serif); font-weight: 400; font-size: 68px; line-height: 1; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-sub { color: var(--muted); font-size: 14.5px; min-height: 44px; margin: 0; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; width: 100%; }
.plan .checks { margin-bottom: 34px; }
.plan .checks li { font-size: 15px; }
.plan .btn { margin-top: auto; }
/* Anteprima prezzi in home: due sole colonne */
.plans-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.plan-featured {
  background: var(--ink); color: #fff; border-color: var(--ink); position: relative;
  box-shadow: 0 40px 90px -30px rgba(11,18,36,.6); transform: translateY(-14px);
}
.plan-featured .plan-name { color: var(--gold); }
.plan-featured .plan-price span, .plan-featured .plan-sub { color: var(--muted-inv); }
.plan-featured hr { border-color: var(--line-inv); }
.plan-featured .checks li::before { background-color: rgba(31,157,99,.18); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #e3c48f); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; white-space: nowrap;
}
.plan-strike { color: var(--muted-inv); text-decoration: line-through; font-size: 15px; margin-right: 4px; }
[data-period="month"] .only-year, [data-period="year"] .only-month { display: none; }

.compare { width: 100%; border-collapse: collapse; margin-top: 50px; background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); font-size: 15px; }
.compare th, .compare td { padding: 17px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--paper-2); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 20%; }
.compare tr:last-child td { border-bottom: 0; }
.compare .grp td { background: #faf8f3; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #b9b4a8; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.guarantee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 70px; }
.guarantee div { border-top: 1px solid var(--text); padding-top: 18px; }
.guarantee b { display: block; font-size: 16px; margin-bottom: 6px; }
.guarantee span { color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--text), var(--text)) center/14px 2px no-repeat, linear-gradient(var(--text), var(--text)) center/2px 14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 720px; }

/* ---------- CTA finale ---------- */
.final {
  position: relative; overflow: hidden; border-radius: 30px; padding: 90px 60px; text-align: center; color: #fff;
  background: radial-gradient(700px 400px at 20% 0%, rgba(91,92,240,.5), transparent 60%), radial-gradient(600px 400px at 90% 100%, rgba(224,103,43,.35), transparent 60%), var(--ink);
}
.final .lead { color: var(--muted-inv); margin: 0 auto; }
.final .hero-cta { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-inv); padding: 70px 0 40px; font-size: 14.5px; margin-top: 130px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-inv); margin-top: 50px; padding-top: 26px; font-size: 13px; }

/* ---------- Page header (prezzi) ---------- */
.page-head { padding: 170px 0 30px; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(6, 10, 20, .9); backdrop-filter: blur(6px); padding: 40px; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1500px, 100%); max-height: 100%; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 18px; right: 22px; color: #fff; background: rgba(255,255,255,.12); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }

/* ---------- Animazione d'ingresso ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans, .plans-2 { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .plan-featured { transform: none; order: -1; }
  .hero-phone { width: 160px; right: 10px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--ink); padding: 10px 24px 20px; border-bottom: 1px solid var(--line-inv);
  }
  .nav.menu-open .nav-links .only-mobile { display: block; }
  .nav.menu-open .nav-links a { color: #fff; padding: 12px 0; border-bottom: 1px solid var(--line-inv); }
  .nav .nav-cta { display: none; }
  .nav-actions { gap: 12px; margin-left: auto; }
  .pain, .feature, .feature.flip { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-copy { order: 0; }
  .trust-in { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item { border-top: 1px solid var(--line-inv); }
  .span-7, .span-5, .span-4, .span-8, .span-6 { grid-column: span 12; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-inv); }
  .guarantee { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 90px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 120px; }
  .hero-phone { display: none; }
  .hero-cta .btn { width: 100%; }
  .browser-url { display: none; }
  .quote-card { padding: 32px 24px; }
  .quote-split { grid-template-columns: 1fr; }
  .trust-num { font-size: 36px; }
  .final { padding: 60px 22px; border-radius: 22px; }
  .guarantee, .footer-grid { grid-template-columns: 1fr; }
  .devices { gap: 14px; }
  .device-tablet { padding: 8px; border-radius: 20px; }
  .device-tablet img { border-radius: 14px; }
  .device-phone { padding: 5px; border-radius: 22px; }
  .device-phone img { border-radius: 18px; }
  .plan { padding: 32px 24px; }
  .compare th, .compare td { padding: 14px 12px; }
  .lightbox { padding: 12px; }
}


/* =====================================================================
   Aggiunte v36.1 — video, funzioni 06-08, trend e notifiche, CTA
   ===================================================================== */

/* Link al video nell'hero */
.hero-play {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  font-size: 14.5px; font-weight: 600; color: #fff; opacity: .85; transition: opacity .2s;
}
.hero-play:hover { opacity: 1; }
.hero-play-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.hero-play-ic svg { width: 14px; height: 14px; margin-left: 2px; }

/* Video */
.video-sec {
  background: radial-gradient(900px 500px at 50% 0%, rgba(91,92,240,.22), transparent 70%), var(--ink);
  color: #fff; padding: 110px 0 120px; border-top: 1px solid var(--line-inv);
}
.video-sec .lead { color: var(--muted-inv); }
.video-frame {
  max-width: 1080px; margin: 0 auto; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); background: #0f1730;
  box-shadow: 0 50px 120px -40px rgba(91,92,240,.55), 0 30px 60px -30px rgba(0,0,0,.6);
}
.video-box { position: relative; aspect-ratio: 16 / 10; background: #0b1224; }
.video-box video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: var(--accent); box-shadow: 0 0 0 14px rgba(224,103,43,.22), 0 20px 50px rgba(0,0,0,.4);
  display: grid; place-items: center; transition: transform .25s ease, box-shadow .25s ease;
}
.video-play:hover { transform: scale(1.06); box-shadow: 0 0 0 20px rgba(224,103,43,.18), 0 20px 50px rgba(0,0,0,.4); }
.video-play svg { width: 36px; height: 36px; margin-left: 5px; }
.video-box.is-playing .video-play { opacity: 0; pointer-events: none; }

/* Screenshot su fondo scuro: niente bordo chiaro */
.shot-dark { background: #0f1522; border-color: rgba(255,255,255,.08); }

/* Pila di screenshot (ricerca) */
.stack { position: relative; padding: 0 0 70px 0; cursor: zoom-in; }
.stack img { border-radius: 16px; border: 1px solid rgba(15,23,42,.08); background: #fff; }
.stack-back { width: 88%; box-shadow: var(--shadow); }
.stack-front { position: absolute; width: 72%; box-shadow: 0 30px 70px -25px rgba(11,18,36,.55); transition: transform .35s ease; }
.stack-1 { right: 0; top: 34%; }
.stack-2 { right: 6%; bottom: 0; }
.stack:hover .stack-1 { transform: translateY(-6px); }
.stack:hover .stack-2 { transform: translateY(-3px); }

/* Trend e notifiche */
.intel { background: var(--paper); }
.intel-hero { margin: 0 0 26px; }
.intel-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 26px; }
.intel-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
}
.intel-copy { padding: 30px 32px 22px; }
.intel-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.intel-copy h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 8px 0 8px; }
.intel-copy p { margin: 0; color: var(--muted); font-size: 15.5px; }
.intel-card img { margin: auto 32px 0; width: calc(100% - 64px); border-radius: 12px 12px 0 0; border: 1px solid rgba(15,23,42,.08); border-bottom: 0; cursor: zoom-in; }
.intel-card-sm img { width: auto; max-width: calc(100% - 64px); max-height: 420px; align-self: center; object-fit: contain; }

/* Fascia CTA */
.cta-band {
  margin-top: 60px; border-radius: 24px; padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: linear-gradient(120deg, var(--ink) 0%, #1c2553 100%); color: #fff; box-shadow: var(--shadow);
}
.cta-band h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted-inv); }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-line:hover { border-color: #fff; }

@media (max-width: 960px) {
  .intel-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .video-sec { padding: 80px 0 90px; }
}
@media (max-width: 600px) {
  .video-play { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
  .video-play svg { width: 28px; height: 28px; }
  .intel-copy { padding: 24px 22px 18px; }
  .intel-card img { margin: auto 22px 0; width: calc(100% - 44px); }
  .intel-card-sm img { max-width: calc(100% - 44px); }
  .cta-band { padding: 30px 22px; }
  .cta-band-actions, .cta-band-actions .btn { width: 100%; }
  .stack { padding-bottom: 50px; }
}


/* =====================================================================
   Aggiunte v36.2 — Risparmi e investimenti
   ===================================================================== */
.sav {
  position: relative; overflow: hidden; color: #fff; padding: 130px 0 120px;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(200,161,100,.22), transparent 60%),
    radial-gradient(900px 600px at 0% 80%, rgba(31,157,99,.18), transparent 60%),
    var(--ink);
}
.sav .lead { color: var(--muted-inv); }
.sav-head { max-width: 860px; margin: 0 auto 64px; text-align: center; }
.sav-head .lead { margin: 0 auto; }
.sav-new {
  display: inline-block; margin-bottom: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(135deg, var(--gold), #e8cf9f); padding: 6px 12px; border-radius: 999px;
}
.sav-head .eyebrow { display: flex; justify-content: center; }
.sav-stage { position: relative; max-width: 1080px; margin: 0 auto; padding-right: 150px; }
.sav-browser { border-radius: 16px; border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 120px -30px rgba(200,161,100,.35); }
.sav-browser img { cursor: zoom-in; }
.sav-float {
  position: absolute; right: 0; bottom: -60px; width: 330px; margin: 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15); cursor: zoom-in;
  transition: transform .35s ease;
}
.sav-float:hover { transform: translateY(-6px); }
.sav-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 130px 0 90px; border-top: 1px solid var(--line-inv); }
.sav-stats div { padding: 34px 32px 0 0; }
.sav-stats div + div { padding-left: 32px; border-left: 1px solid var(--line-inv); }
.sav-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; color: var(--gold); }
.sav-stats span { display: block; margin-top: 12px; color: var(--muted-inv); font-size: 15.5px; }
.sav-video { box-shadow: 0 50px 120px -40px rgba(200,161,100,.4), 0 30px 60px -30px rgba(0,0,0,.6); }

/* Calcolatore del potenziale */
.pot {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center;
  margin: 70px 0 60px; padding: 56px; border-radius: 28px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(11,18,36,.35);
}
.pot-copy .lead { margin-bottom: 30px; }
.pot-controls { display: grid; gap: 22px; }
.pot-row { display: grid; gap: 10px; font-size: 16px; color: var(--muted); cursor: pointer; }
.pot-row b { color: var(--text); font-weight: 700; }
.pot-row input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; cursor: pointer; }
.pot-result {
  border-radius: 22px; padding: 40px 36px; color: #fff;
  background: radial-gradient(500px 300px at 100% 0%, rgba(31,157,99,.35), transparent 60%), var(--ink);
}
.pot-k { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pot-big { font-family: var(--serif); font-size: clamp(54px, 6vw, 80px); line-height: 1.05; margin: 10px 0 24px; font-variant-numeric: tabular-nums; }
.pot-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pot-split div { background: rgba(255,255,255,.06); border: 1px solid var(--line-inv); border-radius: 12px; padding: 14px 16px; }
.pot-split span { display: block; font-size: 12.5px; color: var(--muted-inv); }
.pot-split b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pot-gain { color: #6ee7a8; }
.pot-bar { height: 10px; border-radius: 999px; background: rgba(110,231,168,.35); margin: 22px 0 16px; overflow: hidden; }
.pot-bar i { display: block; height: 100%; background: #fff; border-radius: 999px; transition: width .35s ease; }
.pot-note { font-size: 12.5px; color: var(--muted-inv); margin: 0 0 22px; line-height: 1.5; }

.sav-extra { display: grid; grid-template-columns: 1fr 1fr 0.62fr; gap: 22px; }

@media (max-width: 1080px) {
  .sav-extra { grid-template-columns: 1fr 1fr; }
  .sav-extra .intel-card-sm { grid-column: span 2; }
}
@media (max-width: 960px) {
  .sav { padding: 90px 0 90px; }
  .sav-stage { padding-right: 0; }
  /* Su tablet e telefono la finestra flottante coprirebbe lo screenshot: la stessa immagine c'e' gia' nella funzione 09 */
  .sav-float { display: none; }
  .sav-stats { grid-template-columns: 1fr; margin: 70px 0 60px; }
  .sav-stats div, .sav-stats div + div { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line-inv); }
  .pot { grid-template-columns: 1fr; padding: 36px; }
  .sav-extra { grid-template-columns: 1fr; }
  .sav-extra .intel-card-sm { grid-column: auto; }
}
@media (max-width: 600px) {
  .sav-stats b { font-size: 52px; }
  .pot { padding: 26px 18px; border-radius: 22px; }
  .pot-result { padding: 28px 20px; }
  .pot-split { grid-template-columns: 1fr; }
}


/* =====================================================================
   Aggiunte v36.3 — composizione della funzione 01 (dashboard + dettaglio Casa)
   ===================================================================== */
.combo { position: relative; margin: 0; padding: 0 0 90px 0; }
.combo .shot-tag { z-index: 3; top: -14px; } /* sopra il bordo: non copre il primo riquadro */
.combo img { border-radius: 16px; border: 1px solid rgba(15,23,42,.08); background: #fff; cursor: zoom-in; }
.combo-main { width: 94%; box-shadow: var(--shadow); }
.combo-pop {
  position: absolute; right: 0; bottom: 0; width: 62%; z-index: 2;
  box-shadow: 0 40px 90px -25px rgba(11,18,36,.6); transition: transform .35s ease;
}
.combo:hover .combo-pop { transform: translateY(-6px); }
@media (max-width: 600px) {
  .combo { padding-bottom: 60px; }
  .combo-main { width: 100%; }
  .combo-pop { width: 80%; right: -4px; }
}


/* =====================================================================
   Aggiunte v36.4 — Contattaci
   ===================================================================== */
.contact { background: var(--paper); }
.contact-card {
  display: grid; grid-template-columns: 0.9fr 1.3fr; border-radius: 30px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 40px 100px -50px rgba(11,18,36,.45);
}

/* Colonna scura */
.contact-side {
  position: relative; color: #fff; padding: 56px 48px;
  background:
    radial-gradient(520px 360px at 100% 0%, rgba(91,92,240,.45), transparent 60%),
    radial-gradient(480px 380px at 0% 100%, rgba(224,103,43,.25), transparent 60%),
    var(--ink);
}
.contact-side .h2 { font-size: clamp(34px, 3.6vw, 50px); }
.contact-lead { color: var(--muted-inv); margin: 0 0 34px; }
.contact-promises { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 18px; }
.contact-promises li { display: flex; gap: 14px; align-items: flex-start; }
.contact-promises b { display: block; font-size: 15.5px; }
.contact-promises span { display: block; font-size: 14px; color: var(--muted-inv); }
.contact-ic {
  flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-inv);
}
.contact-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-fast { border-top: 1px solid var(--line-inv); padding-top: 22px; display: grid; }
.contact-fast-t { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-fast a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--line-inv); font-size: 15px; font-weight: 500; color: #fff; transition: color .2s, padding .2s;
}
.contact-fast a i { font-style: normal; color: var(--accent-2); transition: transform .2s; }
.contact-fast a:hover { color: var(--accent-2); }
.contact-fast a:hover i { transform: translateX(4px); }
.contact-mail { margin: 22px 0 0; font-size: 14px; color: var(--muted-inv); }
.contact-mail a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }

/* Modulo */
.contact-main { padding: 52px 52px 44px; position: relative; }
.cf-topics { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.cf-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; padding: 0; }
.cf-opt { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cf-chip { position: relative; cursor: pointer; }
.cf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-size: 14.5px; font-weight: 600; color: var(--text);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.cf-chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cf-chip:hover span { border-color: var(--text); }
.cf-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(11,18,36,.6); }
.cf-chip input:focus-visible + span { outline: 3px solid rgba(224,103,43,.45); outline-offset: 2px; }
.cf-hint { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); min-height: 1.5em; }

.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.cf-span { grid-column: 1 / -1; }
.cf-field { min-width: 0; }
.cf-input {
  width: 100%; font: 500 15.5px/1.4 var(--sans); color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
select.cf-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.cf-input::placeholder { color: #a7a295; }
.cf-input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,18,36,.08); }
.cf-textarea { resize: vertical; min-height: 140px; }
.cf-field.is-bad .cf-input { border-color: #d9463b; box-shadow: 0 0 0 4px rgba(217,70,59,.08); }
.cf-field.is-ok .cf-input { border-color: #9fd8b9; }
.cf-err { margin: 6px 0 10px; min-height: 1.1em; font-size: 13px; color: #c23b30; }
.cf-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.cf-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cf-count.is-low { color: #c7771c; }
.cf-count.is-ok { color: var(--ok); }

/* Campi solo per le aziende: si aprono con un'animazione, restano nel DOM */
.cf-only-business { display: none; }
.cf[data-topic="business"] .cf-only-business { display: block; animation: cf-in .35s ease; }
@keyframes cf-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; margin-top: 4px; }
.cf-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }

.cf-foot { display: flex; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.cf-note { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1 1 220px; }
.cf-submit { min-width: 200px; position: relative; }
.cf-spin { display: none; width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 42 20; stroke-linecap: round; animation: cf-rot .8s linear infinite; }
.cf.is-sending .cf-spin { display: block; }
.cf.is-sending .cf-submit { pointer-events: none; opacity: .85; }
@keyframes cf-rot { to { transform: rotate(360deg); } }
.cf-alert { margin: 16px 0 0; font-size: 14.5px; font-weight: 600; color: #c23b30; min-height: 0; }
.cf-alert:empty { display: none; }

/* Invio riuscito */
.cf-done { text-align: center; padding: 40px 10px; outline: 0; animation: cf-in .45s ease; }
.cf-done-ic svg { width: 84px; height: 84px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cf-done-ic circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: cf-draw .7s ease forwards; }
.cf-done-ic path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: cf-draw .45s .55s ease forwards; }
@keyframes cf-draw { to { stroke-dashoffset: 0; } }
.cf-done h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 46px); margin: 18px 0 8px; }
.cf-done p { color: var(--muted); max-width: 440px; margin: 0 auto; }
.cf-ticket {
  display: inline-flex; flex-direction: column; gap: 2px; margin: 26px 0 30px; padding: 14px 26px; border-radius: 14px;
  background: var(--paper); border: 1px dashed #cfc8b8;
}
.cf-ticket span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cf-ticket b { font-size: 24px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.cf-done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .cf-done-ic circle, .cf-done-ic path { animation: none; stroke-dashoffset: 0; }
  .cf-spin { animation: none; }
}
@media (max-width: 1080px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-side { padding: 44px 40px; }
  .contact-main { padding: 44px 40px 40px; }
}
@media (max-width: 600px) {
  .contact-card { border-radius: 22px; }
  .contact-side { padding: 34px 22px; }
  .contact-main { padding: 30px 20px 30px; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-chip span { padding: 9px 13px; font-size: 14px; }
  .cf-submit, .cf-done-actions .btn { width: 100%; }
}
