/* ==========================================================================
   Ash | Meta Ads & Landing Page — styles.css (mobile-first)
   Design system: titoli Raleway 600, testo Plus Jakarta Sans, card con bordo
   sottile e angoli 16px, CTA nere con angoli 12px, accento arancione.
   ========================================================================== */

:root {
  /* Colori */
  --accent: #F25533;          /* CTA header/mobile, numeri, dettagli */
  --accent-strong: #C9401F;   /* Arancione per testo piccolo (etichette): 4.9:1 */
  --accent-soft: #FEEDE8;     /* Fondo icone */
  --grad-from: #FA5C12;       /* Sfumatura del titolo hero */
  --grad-to: #B73F06;
  --ink: #171717;             /* Titoli e testo */
  --muted: #737373;           /* Testo secondario su bianco (4.7:1) */
  --muted-band: #6B6B6B;      /* Testo secondario sulle fasce grigie (5:1) */
  --bg: #FFFFFF;
  --band: #F7F7F7;            /* Fasce alternate */
  --border: #E8EAEE;
  --btn-dark: #0F0A0A;        /* CTA principale */
  --btn-dark-hover: #2A2424;
  --dark: #171313;            /* Box scuri */
  --dark-2: #221C1C;
  --on-dark: #FFFFFF;
  --on-dark-2: #C7C7C7;
  --footer: #000000;

  /* Tipografia */
  --font-title: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Misure */
  --gutter: 20px;
  --maxw: 1152px;
  --radius-card: 16px;
  --radius-box: 24px;
  --radius-btn: 12px;
  --section-y: 48px;
  --header-h: 60px;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-dark); color: var(--on-dark); padding: 12px 18px; border-radius: var(--radius-btn); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Pulsanti ---------- */
/* CTA principale: arancione, testo bianco 19px 700 (testo "grande": contrasto adeguato), angoli 12px, padding 16×32 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 16px 32px;
  background: var(--accent); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 1.1875rem; line-height: 1.5; text-align: center;
  text-decoration: none; border: 0; border-radius: var(--radius-btn);
  box-shadow: 0 12px 28px -12px rgba(242, 85, 51, .65);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--grad-to); box-shadow: 0 16px 32px -12px rgba(183, 63, 6, .6); }
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--lg { min-height: 60px; }
/* Retroilluminazione arancione sotto il pulsante della hero */
.btn--glow { box-shadow: 0 18px 36px -10px rgba(242, 85, 51, .6), 0 28px 60px -18px rgba(250, 92, 18, .5); }
.btn--glow:hover { box-shadow: 0 20px 40px -10px rgba(183, 63, 6, .6), 0 32px 64px -18px rgba(250, 92, 18, .5); }
.btn--block { width: 100%; }

/* CTA header: arancione a pillola, 14px 600, padding 8×20 */
.btn--sm {
  min-height: 44px; padding: 8px 20px; font-size: .875rem; font-weight: 600; line-height: 1.43; white-space: nowrap;
  background: var(--accent); color: #fff; border-radius: 999px;
}
.btn--sm:hover { background: var(--grad-to); }

/* Secondario: contorno */
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); box-shadow: none; font-size: 1rem; }
.btn--ghost:hover { background: var(--band); box-shadow: none; }


.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barra superiore + header ---------- */
.topbar { background: var(--dark); color: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 clamp(20px, 4vw, 64px); }
.topbar__logo { font-size: .8125rem; font-weight: 700; letter-spacing: .2em; }
.topbar__cal {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  color: #fff; text-decoration: none; border-radius: 10px;
  transition: color .2s ease, background-color .2s ease;
}
.topbar__cal svg { color: var(--accent); }
.topbar__cal:hover { background: rgba(255, 255, 255, .08); }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #E0E0E0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand__name { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }

/* ---------- Sezioni ---------- */
.section { padding: var(--section-y) 0; }
.section--tight-top { padding-top: 0; }
.section--light { background: var(--bg); }
.section--soft { background: var(--band); }
.section--soft .section__lead, .section--soft .pillar p { color: var(--muted-band); }

/* H2: Raleway 600, 32px → 52px, interlinea 125%, spaziatura -2px */
.section__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem); line-height: 1.25; letter-spacing: -2px; }
.section__head { max-width: 760px; }
.section__lead { margin-top: 16px; font-size: 1rem; font-weight: 300; line-height: 1.6; color: var(--muted); max-width: 680px; }
.section__lead--dark { color: var(--ink); }
.section__close { margin-top: 40px; font-size: 1.125rem; font-weight: 300; max-width: 640px; color: var(--muted); }
.section__close strong { color: var(--ink); font-weight: 600; }

/* Etichetta sopra i titoli: 12px 700 maiuscolo, lettere spaziate, niente box */
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 16px;
}
.dark-box .eyebrow { color: var(--accent); }

.note { margin-top: 20px; font-size: .875rem; font-weight: 300; color: var(--muted); }

/* ---------- Hero (centrata) ---------- */
.hero { padding: 0 0 48px; position: relative; overflow: hidden; border-bottom: 2px solid #F1F1F1; }
.hero__top { position: relative; padding: 56px 0 24px; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -200px; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(242, 85, 51, .08), transparent); pointer-events: none;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Quadrati "pixel": quasi invisibili al centro, ben visibili ai bordi */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Crect x='3.5' y='3.5' width='29' height='29' rx='5' fill='%23171717' fill-opacity='.015' stroke='%23171717' stroke-opacity='.1'/%3E%3C/svg%3E");
  background-size: 36px 36px; background-position: center top;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, transparent 38%, rgba(0, 0, 0, .25) 62%, #000 100%), linear-gradient(to bottom, #000 65%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, transparent 38%, rgba(0, 0, 0, .25) 62%, #000 100%), linear-gradient(to bottom, #000 65%, transparent 100%);
}
/* Onda luminosa: un anello che parte dal centro e accende i bordi dei quadrati */
@property --wave { syntax: '<length>'; inherits: false; initial-value: 0px; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Crect x='3.5' y='3.5' width='29' height='29' rx='5' fill='%23F25533' fill-opacity='.07' stroke='%23F25533' stroke-opacity='.75' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 36px 36px; background-position: center top;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, transparent calc(var(--wave) - 110px), #000 var(--wave), transparent calc(var(--wave) + 40px));
  mask-image: radial-gradient(circle at 50% 42%, transparent calc(var(--wave) - 110px), #000 var(--wave), transparent calc(var(--wave) + 40px));
  animation: hero-wave 7s cubic-bezier(.3, .5, .4, 1) infinite;
}
.hero.is-offscreen .hero__bg::after { animation-play-state: paused; }
@media (max-width: 767px) {
  /* Su schermi stretti la zona pulita al centro deve essere più larga */
  .hero__bg {
    -webkit-mask-image: radial-gradient(ellipse 95% 60% at 50% 40%, transparent 45%, rgba(0, 0, 0, .25) 70%, #000 100%), linear-gradient(to bottom, #000 65%, transparent 100%);
    mask-image: radial-gradient(ellipse 95% 60% at 50% 40%, transparent 45%, rgba(0, 0, 0, .25) 70%, #000 100%), linear-gradient(to bottom, #000 65%, transparent 100%);
  }
}
@keyframes hero-wave { 0% { --wave: 0px; } 70% { --wave: 1100px; } 100% { --wave: 1100px; } }
.hero__inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.hero__copy { display: grid; justify-items: center; max-width: 880px; }
/* Titolo hero: Plus Jakarta Sans 700, 30px → 56px; una frase per riga */
.hero__title {
  font-family: var(--font-body); font-weight: 700; font-size: clamp(1.875rem, 1rem + 3.4vw, 3.5rem);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero__line { display: block; }
.hero__line + .hero__line { margin-top: .15em; }
/* Descrizione sotto il titolo: testo vero e proprio, poco più piccolo del titolo ma non in grassetto */
.hero__desc {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 400; line-height: 1.4; letter-spacing: -0.01em;
  color: var(--ink); max-width: 720px; margin-bottom: 36px; text-wrap: balance;
}
/* "nei primi 30 giorni" in arancione (testo grande in grassetto: contrasto adeguato) */
.hero__title .hl, .hero__desc .hl { color: var(--accent); font-weight: 700; }
.hero__meta { margin-top: 14px; font-size: .875rem; font-weight: 400; color: var(--muted); }
.hero__visual { position: relative; margin: 40px 0 0; width: 100%; padding: 40px 0; display: grid; justify-items: center; }
/* Griglia di sfondo del triangolo, che si dissolve verso i bordi */
.hero__visual::before {
  content: ""; position: absolute; inset: 0 -40px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(23, 23, 23, .085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 23, 23, .085) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 100%);
}
.hero__visual .triangle { position: relative; z-index: 1; max-width: 480px; }

/* Pannello rassicurazioni: un solo pannello crema, 3 colonne divise da linee sottili,
   icona grande arancione sopra ed etichetta maiuscola grigia sotto */
.trust {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 640px; margin-top: 36px;
  padding: 20px 4px; border-radius: 24px; box-shadow: 0 24px 40px -28px rgba(23, 19, 19, .18);
}
/* Sfondo e bordo su ::after */
.trust::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: #FBF7F5; border: 1px solid #F0E4DE; border-radius: inherit;
}
.trust__item { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 4px 6px; text-align: center; }
.trust__item + .trust__item::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: #EADBD3;
}
.trust__icon { display: grid; place-items: center; color: var(--accent); }
.trust__icon svg { width: 36px; height: 36px; }
.trust__text {
  font-size: .6875rem; font-weight: 700; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase;
  color: #636672; text-wrap: balance;
}

/* Triangolo del sistema: Offerta in alto, Meta Ads e Landing page in basso */
.triangle { width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.triangle__disc { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; }
.triangle__ripple { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.triangle__icon { color: var(--accent); }
.triangle__label { fill: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: 17px; text-anchor: middle; }
.triangle__result { fill: var(--accent-strong); font-family: var(--font-title); font-weight: 700; font-size: 22px; letter-spacing: -.5px; text-anchor: middle; }
.triangle__link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.triangle__contact { transform-box: fill-box; transform-origin: center; }
.triangle__contact-dot { fill: var(--accent); }
.triangle__contact-icon { color: #fff; }
.triangle__plus-bg { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.triangle__plus { fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-linecap: round; }

/* Animazione allo scroll (main.js aggiunge .is-drawn quando il triangolo entra nel viewport):
   1. compaiono i cerchi  2. le linee si allungano fino all'elemento successivo
   3. quando si uniscono saltano fuori i nuovi contatti  4. appare "Più clienti" */
.js .triangle__node { opacity: 0; transform: translateY(10px); }
.js .triangle__link { stroke-dashoffset: 1; }
.js .triangle__fill, .js .triangle__result { opacity: 0; }
.js .triangle__contact { opacity: 0; transform: scale(0); }

.js .triangle.is-drawn .triangle__node { animation: rise .5s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d); }
.js .triangle.is-drawn .triangle__link { animation: draw 1.1s .7s cubic-bezier(.65, 0, .35, 1) forwards; }
.js .triangle.is-drawn .triangle__fill { animation: fade .6s 1.7s forwards; }
.js .triangle__disc { stroke: var(--border); stroke-width: 1.5; }
/* Quando le linee arrivano, il bordo si accende di arancione e resta acceso */
.js .triangle.is-drawn .triangle__disc { animation: light-on .6s 1.75s ease-out forwards; }
/* ...e da ogni cerchio partono onde continue, come se il sistema fosse in funzione */
.js .triangle.is-drawn .triangle__ripple { animation: ripple 2.4s ease-out infinite; animation-delay: calc(2.1s + var(--r)); }
.triangle.is-paused .triangle__ripple { animation-play-state: paused; }
.js .triangle.is-drawn .triangle__contact { animation: pop .55s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(1.9s + var(--i) * .15s); }
.js .triangle.is-drawn .triangle__result { animation: fade .5s 2.5s forwards; }

@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes light-on {
  0%   { stroke: var(--border); stroke-width: 1.5; filter: none; }
  50%  { stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 0 14px rgba(242, 85, 51, .7)); }
  100% { stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(242, 85, 51, .35)); }
}
@keyframes ripple {
  0%   { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Card ---------- */
.cards { display: grid; gap: 16px; margin-top: 40px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
.card__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 20px; }
.card__title { font-size: 1.25rem; line-height: 1.3; margin-bottom: 10px; }
.card p { font-size: .9375rem; font-weight: 300; line-height: 1.625; color: var(--muted); }

/* ---------- Pilastri sistema ---------- */
.pillars { display: grid; gap: 16px; margin-top: 40px; }
.pillar { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
/* Icona del passaggio in prospettiva, sullo sfondo della card */
.pillar__bg {
  position: absolute; z-index: -1; right: -14px; top: -10px; width: 150px; height: 150px;
  color: var(--accent); opacity: .12; pointer-events: none;
  transform: perspective(520px) rotateY(-30deg) rotateX(18deg) rotateZ(-8deg);
  transform-origin: 60% 40%; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s ease;
}
.pillar:hover .pillar__bg { opacity: .18; transform: perspective(520px) rotateY(-22deg) rotateX(14deg) rotateZ(-6deg); }
.pillar__num { display: block; font-family: var(--font-body); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--accent); letter-spacing: -0.04em; }
.pillar__title { font-size: 1.5rem; line-height: 1.33; margin: 16px 0 8px; }
.pillar p { font-size: .9375rem; font-weight: 300; line-height: 1.625; color: var(--muted); }
.section--soft .pillar p { color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { margin-top: 40px; position: relative; display: grid; gap: 32px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.timeline__step { position: relative; padding-left: 68px; }
.timeline__dot {
  position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--dark); color: var(--on-dark);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; box-shadow: 0 0 0 6px var(--bg);
}
.timeline__title { font-size: 1.5rem; line-height: 1.33; margin-bottom: 6px; }
.timeline__step p { font-size: .9375rem; font-weight: 300; line-height: 1.625; color: var(--muted); }

/* ---------- Cosa ricevi ---------- */
.deliverables { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px 20px; }
.deliverables .section__title { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.25rem); line-height: 1.12; letter-spacing: -1px; }
.checklist { margin-top: 28px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist__icon { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; margin-top: 0; }

/* ---------- Box scuro (chiamata finale) ---------- */
.dark-box {
  position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark);
  border-radius: var(--radius-box); padding: 36px 22px; box-shadow: 0 22px 60px rgba(23, 19, 19, .16);
}
.dark-box::before {
  content: ""; position: absolute; left: -120px; top: -160px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(250, 92, 18, .35), transparent); pointer-events: none;
}
.dark-box > * { position: relative; }
.dark-box h2, .dark-box h3 { color: var(--on-dark); }
.dark-box .section__title { font-size: clamp(1.875rem, 1.2rem + 2.8vw, 2.875rem); line-height: 1.08; letter-spacing: -1.4px; }
.dark-box .section__lead { color: var(--on-dark-2); }

.final__inner { display: grid; justify-items: center; text-align: center; padding-top: 56px; padding-bottom: 56px; }
.final__title { font-size: clamp(1.875rem, 1.2rem + 2.8vw, 2.875rem); line-height: 1.08; letter-spacing: -1.4px; max-width: 760px; }
.final__text { margin: 16px 0 32px; font-size: 1.25rem; font-weight: 300; color: var(--on-dark-2); }

/* ---------- Garanzia ---------- */
.guarantee { display: grid; gap: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px 20px; }
.guarantee__icon { width: 64px; height: 64px; color: var(--accent); }

/* ---------- Per chi è ---------- */
.fit { display: grid; gap: 16px; }
.fit__col { border-radius: var(--radius-card); padding: 28px 20px; }
.fit__col--yes { background: var(--dark); color: var(--on-dark); }
.fit__col--yes .fit__title { color: var(--on-dark); }
.fit__col--no { background: var(--bg); border: 1px solid var(--border); }
.fit__title { font-size: 1.5rem; line-height: 1.33; margin-bottom: 20px; }
.fit__list { display: grid; gap: 14px; }
.fit__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.fit__list svg { flex: none; margin-top: 1px; }
.fit__col--yes svg { color: var(--accent); }
.fit__col--no li { color: var(--muted); }
.fit__col--no svg { color: var(--muted); }

/* ---------- Prenota ---------- */
.book__head { max-width: 760px; }
.book__points { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; }
.book__points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.book__points svg { color: var(--accent-strong); }
.calendly {
  margin: 32px calc(var(--gutter) * -1) 0; min-height: 700px; background: var(--bg);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative;
}
.calendly iframe { display: block; }
.calendly__placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; text-align: center; padding: 24px; color: var(--muted); }
.calendly__placeholder .btn { justify-self: center; }
.book__alt { margin-top: 24px; font-weight: 300; color: var(--muted); }
.section--soft .book__alt { color: var(--muted-band); }
.book__alt a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; display: inline-block; padding: 10px 0; }

/* ---------- FAQ: righe a card con + ---------- */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq__item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-btn); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 20px; font-family: var(--font-body); font-weight: 600; font-size: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: no-repeat center / 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%23F25533' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 20px 20px; font-size: .9375rem; font-weight: 300; line-height: 1.625; color: var(--muted); max-width: 680px; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: var(--on-dark-2); padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); font-size: .875rem; }
.footer__inner { display: grid; gap: 18px; }
.footer__brand { color: var(--on-dark); font-size: .9375rem; font-weight: 700; letter-spacing: .2em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__links a, .footer__links button { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-underline-offset: 3px; }
.footer__links a:hover, .footer__links button:hover { color: var(--accent); }

/* ---------- Pulsante fisso mobile (arancione a pillola, come l'header) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 12px 20px;
  background: var(--accent); color: #fff; border-radius: 999px; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; box-shadow: 0 12px 30px -8px rgba(23, 19, 19, .4);
  transform: translateY(160%); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease;
}
.sticky-cta.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.sticky-cta:hover { background: var(--grad-to); }

/* ---------- Banner cookie ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.consent__box {
  max-width: 720px; margin: 0 auto; background: var(--bg); color: var(--ink); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 18px; box-shadow: 0 22px 60px rgba(23, 19, 19, .16); font-size: .875rem; line-height: 1.5;
  max-height: calc(100vh - 24px); overflow: auto;
}
.consent__title { font-size: 1.125rem; margin-bottom: 8px; }
.consent a { color: var(--ink); font-weight: 600; }
.consent__prefs { display: grid; gap: 12px; margin-top: 16px; padding: 14px; background: var(--band); border-radius: 12px; }
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggle input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--btn-dark); }
.consent__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
/* Stesso peso visivo per tutte le scelte (linee guida Garante) */
.btn-consent {
  min-height: 48px; padding: 8px 6px; border-radius: var(--radius-btn); cursor: pointer;
  background: var(--btn-dark); color: var(--on-dark); border: 0;
  font-family: var(--font-body); font-weight: 600; font-size: .875rem;
}
.btn-consent:hover { background: var(--btn-dark-hover); }

/* ---------- Pagine legali ---------- */
.legal { padding: 56px 0 96px; min-height: 60vh; }
.legal__back { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; margin-bottom: 16px; text-underline-offset: 3px; }
.legal h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem); line-height: 1.25; letter-spacing: -2px; margin-bottom: 24px; }
.legal__placeholder { background: var(--bg); border: 1px dashed var(--muted); border-radius: var(--radius-card); padding: 24px; color: var(--muted); }

/* ---------- Animazioni di comparsa ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Tablet / desktop
   ========================================================================== */
@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 80px; }
  .hero { padding: 0 0 64px; }
  .hero__top { padding: 88px 0 32px; }
  .hero__sub { font-size: 1.25rem; }
  .trust { padding: 28px 8px; }
  .trust__item { gap: 12px; padding: 4px 18px; }
  .trust__icon svg { width: 48px; height: 48px; }
  .trust__text { font-size: .875rem; letter-spacing: .06em; }
  .topbar__inner { min-height: 56px; }
  .topbar__logo { font-size: .9375rem; }
  .topbar__cal svg { width: 24px; height: 24px; }
  .section__lead { font-size: 1.125rem; }
  .card, .pillar { padding: 28px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .timeline::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 1px; }
  .timeline__step { padding: 72px 0 0; }
  .timeline__dot { top: 0; }
  .deliverables { padding: 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px 56px; }
  .deliverables .checklist { margin-top: 0; grid-row: span 2; }
  .deliverables .note { grid-column: 1; }
  .dark-box { padding: 56px; }
  .final__inner { padding-top: 72px; padding-bottom: 72px; }
  .guarantee { grid-template-columns: auto 1fr; gap: 40px; padding: 48px; }
  .guarantee__icon { width: 88px; height: 88px; }
  .fit { grid-template-columns: 1fr 1fr; gap: 24px; }
  .fit__col { padding: 36px 32px; }
  .calendly { margin-left: 0; margin-right: 0; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
  .faq__item summary { padding: 18px 24px; }
  .faq__item p { padding: 0 24px 22px; }
  .footer { padding-bottom: 32px; }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .sticky-cta { display: none; }
  .consent { padding: 20px; }
  .consent__box { padding: 24px 28px; font-size: .9375rem; }
  .btn-consent { font-size: .9375rem; padding: 10px 16px; }
}

@media (max-width: 359px) {
  .brand__name { display: none; }
}

@media (min-width: 1024px) {
  :root { --section-y: 96px; }
}

/* ==========================================================================
   Movimento ridotto
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .triangle__node, .js .triangle__fill, .js .triangle__result, .js .triangle__contact { opacity: 1; transform: none; animation: none !important; }
  .js .triangle__link { stroke-dashoffset: 0; animation: none !important; }
  .js .triangle__disc { animation: none !important; stroke: var(--accent); stroke-width: 2.5; }
  .triangle__ripple { display: none; }
  .hero__bg::after { display: none; }
}

/* ==========================================================================
   Form a comparsa a step
   ========================================================================== */
.lead {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-box); background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(23, 19, 19, .35); overflow: auto;
}
.lead::backdrop { background: rgba(23, 19, 19, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lead[open] { animation: lead-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes lead-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
html.has-dialog { overflow: hidden; }

.lead__form { padding: 22px 22px 24px; }
.lead__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead__progress-text { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.lead__close {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px -8px 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.lead__close:hover { background: var(--band); color: var(--ink); }
.lead__progress { height: 4px; margin: 14px 0 28px; border-radius: 999px; background: var(--band); overflow: hidden; }
.lead__progress span { display: block; height: 100%; width: 33.33%; border-radius: inherit; background: var(--accent); transition: width .35s ease; }

.lead__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.lead__step:not([hidden]) { animation: step-in .3s ease; }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.lead__question { display: block; font-family: var(--font-body); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.875rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 18px; }
.lead__input {
  width: 100%; min-height: 56px; padding: 14px 16px; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-btn);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lead__input::placeholder { color: #8A8A8A; }
.lead__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 85, 51, .15); }
.lead__input[aria-invalid="true"] { border-color: var(--accent-strong); }
.lead__error { margin-top: 8px; font-size: .875rem; font-weight: 500; color: var(--accent-strong); }
.lead__privacy { margin-top: 14px; font-size: .8125rem; font-weight: 300; line-height: 1.5; color: var(--muted); }
.lead__privacy a { color: var(--ink); font-weight: 500; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.lead__next { margin-left: auto; padding: 16px 24px; white-space: nowrap; }
.lead__next[disabled] { opacity: .6; cursor: progress; }
.lead__back { min-height: 44px; padding: 8px 4px; white-space: nowrap; border: 0; background: none; font-weight: 600; color: var(--muted); cursor: pointer; }
.lead__back:hover { color: var(--ink); }
.lead__send-error { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-btn); background: var(--accent-soft); font-size: .875rem; color: var(--ink); }
.lead__send-error a { font-weight: 600; }

.lead__done { text-align: center; display: grid; justify-items: center; }
.lead__done:focus { outline: none; }
.lead__done-icon { color: var(--accent); margin-bottom: 14px; }
.lead__done-text { font-weight: 300; color: var(--muted); max-width: 380px; margin-bottom: 24px; }

@media (min-width: 768px) {
  .lead__form { padding: 32px 36px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .lead[open], .lead__step:not([hidden]) { animation: none; }
}
