/* ==========================================================================
   Landing "Prima consulenza conoscitiva gratuita" — riccardodellorletta.com
   Brand Manual RDO: scuro #191D2C · blu #3E539D · Montserrat · Newsreader corsivo
   File statico, nessuna dipendenza dal bundle React del sito.
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-VF.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Italic-VF.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
  /* Brand */
  --ink: #191D2C;          /* scuro RDO: sfondo principale */
  --ink-2: #1F2437;        /* superfici rialzate su scuro */
  --ink-3: #141724;        /* footer */
  --blue: #3E539D;         /* blu RDO: pulsanti, accenti */
  --blue-hover: #4A60AE;
  --blue-soft: #A9B7EA;    /* solo per piccoli dettagli grafici, mai per il testo */
  --slate: #2E3E4E;        /* Brand Manual: bordi e superfici */
  --grey: #9C9D9E;         /* Brand Manual: testo secondario su scuro */
  --green: #00BC7D;        /* Brand Manual: solo numeri */
  --yellow: #FFD230;       /* Brand Manual: solo numeri */
  --blue-wash: #E9EDF8;    /* blu tenuissimo per fondi su chiaro */

  /* Neutri */
  --paper: #F6F5F2;
  --white: #FFFFFF;
  --text-on-dark: #F3F4F8;
  --muted-on-dark: #9C9D9E;
  --text-on-light: #191D2C;
  --muted-on-light: #555B6E;
  --line-on-dark: rgba(255, 255, 255, 0.11);
  --line-on-light: rgba(25, 29, 44, 0.10);

  /* Tipografia */
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* Misure */
  --container: 1120px;
  --gutter: 20px;
  --radius: 20px;
  --radius-sm: 14px;
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em.accent, h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 1.08em;
  line-height: 1;
}
/* "Corsivo che rompe" del Brand Manual: parola chiave bianca in una pillola #3E539D (come nelle copertine dei reel) */
h1 em, h2 em, .hl {
  color: var(--white); background: var(--blue); padding: .02em .22em .08em; border-radius: .22em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }
.section--light :focus-visible, .guide :focus-visible, .card :focus-visible, .calendar-card :focus-visible { outline-color: var(--blue); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section--light { background: var(--paper); color: var(--text-on-light); }
.section--dark-2 { background: var(--ink-2); }
.section--flush-top { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey);
}
.section--light .eyebrow { color: var(--blue); }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .7; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw + .6rem, 2.75rem); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 1.0625rem; color: var(--muted-on-dark); }
.section--light .section-head p { color: var(--muted-on-light); }



/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px 28px;
  border-radius: var(--radius-sm); border: 0;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .55); }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text-on-dark); border: 1px solid var(--line-on-dark); }
.btn--ghost:hover { background: rgba(255,255,255,.05); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .9rem; border-radius: 12px; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(25, 29, 44, .86);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-on-dark);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.logo { height: 48px; width: auto; display: block; }
/* Su mobile l'header non resta fisso (la CTA la porta la barra in basso) e il pulsante sparisce */
@media (max-width: 899px) {
  html { scroll-padding-top: 8px; }
  .site-header { position: relative; }
  .site-header .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(35deg, rgba(62, 83, 157, .42) 0%, rgba(62, 83, 157, .12) 38%, rgba(3, 8, 18, 0) 62%, rgba(3, 8, 18, .5) 100%);
}
.hero .container { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.2fr .8fr; gap: 64px; } }

.who { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.who img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue); object-fit: cover; }
.who strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.who small { display: block; font-size: .8rem; color: var(--muted-on-dark); line-height: 1.3; }

.pill {
  display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; border: 0;
  background: var(--blue);
  font-size: .74rem; line-height: 1.4; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--white);
}
.pill i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

.hero h1 { font-size: clamp(2rem, 4.6vw + .8rem, 3.9rem); margin-top: 16px; max-width: 16ch; }
.hero h1 em { display: inline; }
.hero .lead { margin-top: 18px; font-size: clamp(1.02rem, .5vw + .9rem, 1.2rem); color: var(--muted-on-dark); max-width: 56ch; }
.hero .lead strong { color: var(--text-on-dark); font-weight: 600; }
.hero-cta { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-cta .btn { width: 100%; }
@media (min-width: 560px) { .hero-cta .btn { width: auto; } }
.btn--hero { justify-content: space-between; }
@media (max-width: 559px) { .btn--hero { padding: 16px 20px; font-size: .98rem; } }
.microcopy { font-size: .85rem; color: var(--muted-on-dark); }

.trust { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-on-dark); display: grid; gap: 14px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; line-height: 1.45; color: var(--muted-on-dark); }
.trust li strong { display: block; color: var(--text-on-dark); font-weight: 600; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--white); opacity: .85; margin-top: 1px; }

.hero-photo { display: none; position: relative; justify-self: end; width: 100%; max-width: 440px; }
@media (min-width: 900px) { .hero-photo { display: block; } }
.hero-photo .photo-card img { aspect-ratio: 4 / 5; }
.hero-portrait { margin: 32px 0 0; }
.hero-portrait img { aspect-ratio: 4 / 4.6; object-position: 50% 20%; }
@media (min-width: 900px) { .hero-portrait { display: none; } }

/* Foto: card con la sfumatura scura in basso delle copertine dei reel, testo mai sul volto */
.photo-card { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--slate); background: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; pointer-events: none; background: linear-gradient(to top, rgba(25,29,44,.94), rgba(25,29,44,.55) 45%, rgba(25,29,44,0)); }
.photo-card figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: var(--white); font-size: .85rem; line-height: 1.4; }
.photo-card figcaption strong { display: block; font-size: 1rem; font-weight: 700; }
.section--light .photo-card { border-color: transparent; box-shadow: 0 30px 60px -34px rgba(25,29,44,.5); }
/* Didascalia sotto la foto quando in basso ci sono le mani (Brand Manual: mai testo su volto e mani) */
.photo-card--below::after, .photo-card--plain::after { display: none; }
.photo-card--below figcaption { position: static; padding: 14px 18px 16px; background: var(--ink); }

/* ---------- Per chi è ---------- */
.fit-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .fit-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.fit-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line-on-light); border-radius: var(--radius);
  padding: 22px 22px; font-size: 1rem; line-height: 1.55;
}
.fit-card .ico { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; }
.fit-card .ico svg { width: 18px; height: 18px; }
.fit-card strong { display: block; font-weight: 600; margin-bottom: 2px; }
.fit-card span { color: var(--muted-on-light); }
.not-fit {
  margin-top: 24px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed rgba(25, 29, 44, .22);
  color: var(--muted-on-light); font-size: .95rem; display: flex; gap: 12px; align-items: flex-start;
}
.not-fit svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--muted-on-light); }
.not-fit strong { color: var(--text-on-light); font-weight: 600; }

/* ---------- Cosa succede nei 30 minuti ---------- */
.method-photo { margin-bottom: 20px; }
.method-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
@media (min-width: 900px) { .method-photo img { aspect-ratio: 16 / 7; object-position: 50% 32%; } }
.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: var(--white); border: 1px solid var(--line-on-light); border-radius: var(--radius); padding: 28px 24px; }
.step .num { font-family: var(--font-sans); font-weight: 800; font-size: 2.2rem; letter-spacing: -.03em; line-height: 1; color: var(--blue); }
.step h3 { font-size: 1.15rem; margin-top: 16px; }
.step p { margin-top: 10px; color: var(--muted-on-light); font-size: .98rem; }
.prep {
  margin-top: 20px; border-radius: var(--radius); background: var(--blue-wash); padding: 24px;
  display: grid; gap: 14px;
}
@media (min-width: 900px) { .prep { grid-template-columns: .9fr 2fr; align-items: center; gap: 24px; padding: 28px 32px; } }
.prep h3 { font-size: 1.05rem; }
.prep h3 small { display: block; font-weight: 500; font-size: .85rem; color: var(--muted-on-light); margin-top: 4px; letter-spacing: 0; }
.prep ul { display: grid; gap: 10px; }
@media (min-width: 640px) { .prep ul { grid-template-columns: repeat(3, 1fr); } }
.prep li { display: flex; gap: 10px; font-size: .92rem; line-height: 1.45; }
.prep li svg { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 2px; }

/* ---------- Fee-only ---------- */
.compare { display: grid; gap: 16px; }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; gap: 20px; } }
.compare-card { border-radius: var(--radius); padding: 28px 26px; border: 1px solid var(--line-on-dark); background: rgba(255,255,255,.02); }
.compare-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.compare-card h3 small { font-weight: 500; font-size: .8rem; color: var(--muted-on-dark); letter-spacing: 0; }
.compare-card ul { margin-top: 18px; display: grid; gap: 14px; }
.compare-card li { display: flex; gap: 12px; font-size: .97rem; line-height: 1.5; color: var(--muted-on-dark); }
.compare-card li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.compare-card--them li svg { color: var(--grey); }
.compare-card--us { background: linear-gradient(35deg, rgba(62,83,157,.45), rgba(62,83,157,.12)); border-color: var(--blue); }
.compare-card--us li { color: var(--text-on-dark); }
.compare-card--us li svg { color: var(--white); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.cost-callout {
  margin-top: 20px; border-radius: var(--radius); border: 1px solid var(--line-on-dark); padding: 28px 24px;
  display: grid; gap: 24px; align-items: center; background: rgba(255,255,255,.02);
}
@media (min-width: 900px) { .cost-callout { grid-template-columns: .8fr 1.2fr; gap: 40px; padding: 36px 40px; } }
.cost-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }
.cost-callout .big { margin: 10px 0 14px; font-family: var(--font-sans); font-weight: 800; letter-spacing: -.02em; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--yellow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-callout p { font-size: 1.05rem; }
.cost-callout p strong { font-weight: 600; }
.legend { margin-top: 18px; display: grid; gap: 8px; font-size: .88rem; color: var(--muted-on-dark); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend strong { color: var(--text-on-dark); font-weight: 600; }
.lg { width: 18px; height: 3px; border-radius: 2px; flex: none; }
.lg--low { background: var(--white); }
.lg--high { background: var(--grey); }
.cost-chart { margin: 0; }
.cost-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid line { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.chart-grid text { fill: var(--muted-on-dark); font: 500 15px var(--font-sans); }
.chart-area { fill: rgba(255,255,255,.07); }
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-line--low { stroke: var(--white); }
.chart-line--high { stroke: var(--grey); }
.dot-low { fill: var(--white); } .dot-high { fill: var(--grey); }
.gap-line { stroke: var(--grey); stroke-width: 1.5; stroke-dasharray: 3 3; }
.gap-label { fill: var(--yellow); font: 700 19px var(--font-sans); }
.gap-sub { fill: var(--muted-on-dark); font: 500 14px var(--font-sans); }
.cost-callout .assumption { margin-top: 10px; font-size: .86rem; line-height: 1.5; color: var(--grey); }
.chart-tag { fill: var(--grey); font: 600 13px var(--font-sans); letter-spacing: .12em; }
@media (max-width: 640px) {
  .chart-grid text { font-size: 24px; }
  .chart-tag { font-size: 20px; }
  .gap-label, .gap-sub { display: none; }
}

/* ---------- Reel ---------- */
.reel-strip { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-on-light); }
.reel-strip p { font-size: .98rem; color: var(--muted-on-light); }
.reel-strip p strong { color: var(--text-on-light); }
.reel-row { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 460px; }
.reel-row img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; box-shadow: 0 16px 30px -18px rgba(25,29,44,.6); }

/* ---------- Chi sono ---------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.about-photo { max-width: 440px; }
.about-photo img { aspect-ratio: 4 / 5; object-position: 50% 25%; }
.about h2 { font-size: clamp(1.75rem, 3vw + .6rem, 2.6rem); margin-top: 14px; }
.about .text { margin-top: 18px; color: var(--muted-on-light); font-size: 1.04rem; display: grid; gap: 14px; }
.about blockquote {
  margin: 24px 0 0; padding-left: 18px; border-left: 3px solid var(--blue);
  font-family: var(--font-sans); font-weight: 600; font-size: 1.12rem; line-height: 1.5; color: var(--text-on-light);
}
.creds { margin-top: 28px; display: grid; gap: 12px; }
@media (min-width: 640px) { .creds { grid-template-columns: 1fr 1fr; gap: 14px 24px; } }
.creds li { display: flex; gap: 12px; font-size: .92rem; line-height: 1.45; }
.creds li svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 1px; }
.creds li strong { display: block; font-weight: 600; color: var(--text-on-light); }
.creds li span { color: var(--muted-on-light); }

/* ---------- Prenotazione ---------- */
.booking { background: linear-gradient(35deg, rgba(62,83,157,.34) 0%, rgba(62,83,157,0) 55%), var(--ink); }
.booking-grid { display: grid; gap: 22px; grid-template-areas: "head" "cal" "foot"; }
.booking-head { grid-area: head; }
.calendar-card { grid-area: cal; }
.booking-foot { grid-area: foot; display: grid; gap: 18px; justify-items: stretch; }
.booking-foot .text-link { justify-self: start; }
.booking-foot .booking-who { margin-top: 0; }
@media (min-width: 1000px) {
  .booking-grid { grid-template-columns: .8fr 1.2fr; grid-template-areas: "head cal" "foot cal"; grid-template-rows: auto 1fr; gap: 24px 56px; align-items: start; }
  .booking-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.booking-head h2 { font-size: clamp(1.8rem, 3.2vw + .6rem, 2.7rem); margin-top: 12px; }
.booking-line { margin-top: 12px; color: var(--grey); font-size: .95rem; font-weight: 500; }
.booking-privacy { font-size: .8rem; line-height: 1.5; color: var(--grey); max-width: 60ch; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.45; color: var(--grey); }
.next-steps li span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.consult { grid-area: cal; color: var(--text-on-light); }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #8A8F9C; background: var(--white);
  font: 500 1rem var(--font-sans); color: var(--text-on-light);
}
.field textarea { resize: vertical; min-height: 88px; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(62,83,157,.15); }
.field.chips { border: 0; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.field.chips legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: .85rem; font-weight: 600; }
.field.chips label { position: relative; cursor: pointer; display: inline-block; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid #8A8F9C; font-size: .88rem; font-weight: 600; color: var(--text-on-light); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consult .btn--block { margin-top: 20px; }
.form-note { margin-top: 10px; font-size: .82rem; color: var(--muted-on-light); text-align: center; }
.bullets-note { margin-top: 14px; font-size: .82rem; line-height: 1.5; color: var(--muted-on-light); }
.booking-privacy a { color: var(--white); }
.booking-who { margin-top: 18px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--slate); background: rgba(255,255,255,.03); }
.booking-who img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.booking-who p { font-size: .88rem; line-height: 1.45; color: var(--muted-on-dark); }
.booking-who p strong { color: var(--text-on-dark); font-weight: 600; }

.calendar-card { background: var(--white); color: var(--text-on-light); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.7); position: relative; }
.calendar-stage { position: relative; }
.calendar-embed { height: 1100px; }
@media (min-width: 1000px) { .calendar-embed { height: 720px; } }
.calendar-embed iframe { display: block; }
.calendar-loading {
  position: absolute; inset: 0; display: grid; place-content: start center; justify-items: center; gap: 14px; padding: 96px 24px 24px; text-align: center;
  color: var(--muted-on-light); font-size: .95rem; background: var(--white);
}
.calendar-loading .spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--blue-wash); border-top-color: var(--blue); }
@media (prefers-reduced-motion: no-preference) { .calendar-loading .spinner { animation: spin .9s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.calendar-card.is-ready .calendar-loading { display: none; }
.calendar-fallback { padding: 14px 20px; border-top: 1px solid var(--line-on-light); font-size: .85rem; color: var(--muted-on-light); display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: center; }
.calendar-fallback a { color: var(--blue); font-weight: 600; }
.calendar-card.is-error .spinner { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-on-light); }
.faq details:first-of-type { border-top: 1px solid var(--line-on-light); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 1.05rem; line-height: 1.4; color: var(--text-on-light);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 14px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 44px 24px 0; color: var(--muted-on-light); font-size: 1rem; display: grid; gap: 10px; }
.faq .answer a { color: var(--blue); font-weight: 600; }

/* ---------- CTA finale ---------- */
.final { text-align: center; background: linear-gradient(35deg, rgba(62,83,157,.5) 0%, rgba(62,83,157,0) 60%), var(--ink); }
.final h2 { font-size: clamp(1.9rem, 3.6vw + .6rem, 3rem); max-width: 20ch; margin: 14px auto 0; }
.final p { margin: 18px auto 0; max-width: 52ch; color: var(--muted-on-dark); font-size: 1.05rem; }
.final .btn { margin-top: 32px; }
.final .microcopy { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: var(--muted-on-dark); font-size: .82rem; line-height: 1.6; padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
@media (max-width: 899px) { .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }
.site-footer .container { display: grid; gap: 24px; }
.site-footer img { width: 200px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer nav a { color: var(--text-on-dark); text-decoration: none; border-bottom: 1px solid var(--line-on-dark); }
.site-footer nav a:hover { border-color: var(--blue-soft); }
.site-footer .legal { max-width: 900px; }
.site-footer .disclaimer { font-size: .75rem; opacity: .85; max-width: 900px; }

/* ---------- Barra CTA fissa (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px;
  background: rgba(31, 36, 55, .96); border: 1px solid var(--line-on-dark); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
  transform: translateY(140%); transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta p { font-size: .78rem; line-height: 1.3; color: var(--muted-on-dark); }
.sticky-cta p strong { display: block; color: var(--text-on-dark); font-size: .88rem; }
.sticky-cta .btn { margin-left: auto; min-height: 46px; padding: 12px 18px; font-size: .92rem; box-shadow: none; white-space: nowrap; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- Pagina grazie ---------- */
.thanks { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; padding: 64px 0; }
.thanks-card { max-width: 720px; margin: 0 auto; }
.thanks-check { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; }
.thanks-check svg { width: 30px; height: 30px; }
.thanks h1 { font-size: clamp(2rem, 4vw + .6rem, 3.2rem); margin-top: 24px; }
.thanks .lead { margin-top: 16px; color: var(--muted-on-dark); font-size: 1.1rem; }
.thanks .box { margin-top: 32px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-on-dark); background: var(--ink-2); }
.thanks .box h2 { font-size: 1.1rem; }
.thanks .box ul { margin-top: 14px; display: grid; gap: 12px; }
.thanks .box li { display: flex; gap: 12px; color: var(--muted-on-dark); font-size: .97rem; line-height: 1.5; }
.thanks .box li svg { width: 20px; height: 20px; flex: none; color: var(--white); opacity: .85; margin-top: 2px; }
.thanks .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.thanks .actions .btn svg { width: 18px; height: 18px; }
.thanks-back { margin-top: 18px; font-size: .9rem; }
.thanks-back a { color: var(--grey); }


/* ==========================================================================
   MOTION: attira l'occhio sui punti che portano alla prenotazione.
   Tutto parte solo con .js-motion (JS attivo) e senza "riduci movimento".
   ========================================================================== */

/* Hero: entrata in sequenza (solo CSS, nessuna attesa del JS) */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hlDraw { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6%, 8%, 0) scale(1.12); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes float { 0%, 100% { transform: rotateY(-18deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-14deg) rotateX(2deg) translateY(-10px); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

.hl--draw { background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 0 / 100% 100%; }
@media (prefers-reduced-motion: no-preference) { .js-motion .hl--draw { color: var(--white); } }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-size: .9rem; font-weight: 600; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35);
}
.text-link:hover { border-color: var(--white); }
.text-link svg { width: 16px; height: 16px; }
.btn--outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); box-shadow: none; }
.btn--outline:hover { background: var(--blue-wash); }
.btn--block { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-anim { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
  .hl--draw { animation: hlDraw 1s cubic-bezier(.6,0,.2,1) .7s both; }
  .btn--primary:hover svg, .btn--hero svg { animation: nudge 1.6s ease-in-out infinite; }
  .text-link svg { animation: bob 1.6s ease-in-out infinite; }
}

/* Rivelazione allo scroll */
.js-motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.js-motion .fit-card .ico { transform: scale(.4); opacity: 0; }
.js-motion .fit-card.is-in .ico { animation: pop .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0s) + .25s); }
.js-motion .step .num { display: inline-block; opacity: 0; transform: translateX(-12px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--d, 0s) + .2s); }
.js-motion .step.is-in .num { opacity: 1; transform: none; }

/* Grafico: le linee si disegnano, poi compaiono area e differenza */
.js-motion .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1) .2s; }
.js-motion .chart-area, .js-motion .chart-end { opacity: 0; transition: opacity .6s ease 1.8s; }
.js-motion .cost-callout.is-in .chart-line { stroke-dashoffset: 0; }
.js-motion .cost-callout.is-in .chart-area, .js-motion .cost-callout.is-in .chart-end { opacity: 1; }

/* Barra fissa: piccolo richiamo alla prima comparsa */
@media (prefers-reduced-motion: no-preference) { .sticky-cta.is-visible.is-first .btn { animation: pop .5s cubic-bezier(.2,.7,.2,1) .15s both; } }

/* ==========================================================================
   Guida gratuita (lead magnet)
   ========================================================================== */
.guide { background: #EEF1FA; color: var(--text-on-light); overflow: hidden; }
.guide .eyebrow { color: var(--blue); }
.guide-top { display: grid; gap: 40px; align-items: center; margin-bottom: 40px; }
@media (min-width: 900px) { .guide-top { grid-template-columns: 1.15fr .85fr; gap: 56px; margin-bottom: 48px; } }
.guide h2 { font-size: clamp(1.8rem, 3.2vw + .6rem, 2.75rem); margin-top: 14px; }
.guide-sub { margin-top: 16px; font-size: 1.06rem; color: var(--muted-on-light); max-width: 56ch; }
.guide-bullets { margin-top: 22px; display: grid; gap: 12px; }
.guide-bullets li { display: flex; gap: 12px; font-size: .98rem; line-height: 1.5; }
.guide-bullets svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 1px; }

.guide-book { display: grid; place-items: center; perspective: 1400px; padding: 10px 0 20px; }
.book { position: relative; width: min(260px, 70vw); aspect-ratio: 3 / 4.1; transform-style: preserve-3d; transform: rotateY(-18deg) rotateX(4deg); }
@media (prefers-reduced-motion: no-preference) { .book { animation: float 7s ease-in-out infinite; } }
.book-cover {
  position: absolute; inset: 0; border-radius: 6px 14px 14px 6px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 100% / 100% 6px, var(--ink);
  color: var(--text-on-dark); box-shadow: inset 6px 0 0 rgba(255,255,255,.06), inset 10px 0 18px rgba(0,0,0,.35), 30px 40px 60px -20px rgba(25,29,44,.55);
  transform: translateZ(14px);
}
.book-cover img { width: 36px; height: auto; }
.book-kicker { margin-top: 18px; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.book-title { font-family: var(--font-sans); font-weight: 800; font-size: 1.55rem; line-height: 1.12; letter-spacing: -.02em; }
.book-title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; background: var(--blue); padding: 0 .18em .06em; border-radius: .2em; }
.book-sub { font-size: .78rem; line-height: 1.45; color: var(--muted-on-dark); }
.book-author { margin-top: auto; font-size: .74rem; font-weight: 600; line-height: 1.3; border-top: 1px solid var(--line-on-dark); padding-top: 12px; }
.book-author small { font-weight: 500; color: var(--muted-on-dark); }
.book-pages { position: absolute; top: 6px; bottom: 6px; right: -10px; width: 22px; border-radius: 0 6px 6px 0; background: repeating-linear-gradient(90deg, #f3f3f1 0 2px, #dcdcd8 2px 3px); transform: translateZ(0) rotateY(90deg) translateZ(-4px); transform-origin: left; }

.guide-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .guide-grid { grid-template-columns: 1.05fr .95fr; gap: 24px; } }
.card { background: var(--white); border: 1px solid var(--line-on-light); border-radius: 24px; padding: 26px 22px; box-shadow: 0 30px 60px -40px rgba(25,29,44,.35); }
@media (min-width: 640px) { .card { padding: 32px 30px; } }
.card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 22px; height: 22px; color: var(--blue); flex: none; }

/* Calcolatore */
.calc-field { margin-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; }
.calc-field label { font-size: .9rem; font-weight: 500; color: var(--muted-on-light); }
.calc-field output { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc-field input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--blue); height: 28px; cursor: pointer; }
.calc-result { margin-top: 24px; padding: 20px; border-radius: 18px; background: var(--ink); color: var(--text-on-dark); display: grid; gap: 8px; }
.calc-label { font-size: .82rem; color: var(--muted-on-dark); }
.calc-result strong { font-family: var(--font-sans); font-weight: 800; letter-spacing: -.02em; font-size: 2.5rem; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.calc-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin: 6px 0 2px; }
.calc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.calc-net { font-size: .88rem; color: var(--muted-on-dark); }
.calc-net b { color: var(--text-on-dark); }
.calc-cap { font-size: .8rem; color: var(--grey); }
.calc-cap b { color: var(--yellow); }
.calc-note { margin-top: 14px; font-size: .78rem; line-height: 1.5; color: var(--muted-on-light); }

/* Form */
.lead-intro { margin-top: 6px; font-size: .92rem; color: var(--muted-on-light); }
.field { margin-top: 16px; display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; }
.field label span { font-weight: 500; color: var(--muted-on-light); }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #8A8F9C; background: var(--white);
  font: 500 1rem var(--font-sans); color: var(--text-on-light); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(62,83,157,.15); background: var(--white); }
.field input[aria-invalid="true"] { border-color: #C2413B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.45; color: var(--muted-on-light); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.check a { color: var(--blue); font-weight: 600; }
.check em { font-style: normal; }
.lead .btn--block { margin-top: 20px; }
.form-error { margin-top: 12px; font-size: .88rem; color: #B3261E; font-weight: 500; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.lead-success { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 10px 0; outline: none; }
.lead-success h3 { justify-content: center; font-size: 1.4rem; }
.lead-success p { color: var(--muted-on-light); max-width: 40ch; }
.ok-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; }
.ok-icon svg { width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) { .lead-success:not([hidden]) .ok-icon { animation: pop .5s cubic-bezier(.2,.7,.2,1) both; } }
