/* ==========================================================================
   The Findom Academy — V3 "Notturno"
   La notte è il territorio, il crema è la voce, l'oro è la luce.
   Capitoli di notte per l'emozione, interludi di carta per la lettura.
   Palette DNA e copy invariati dalla v1. Un momento gold per viewport.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-var-italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/poppins-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/poppins-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Playfair Fallback';
  src: local('Georgia');
  size-adjust: 112%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* mondo notturno — derivato dalla palette v1, non sostituito */
  --night: #2B1216;            /* ground: burgundy spento verso il nero */
  --night-deep: #1E0C0F;       /* offerta e chiusura */
  --night-soft: #38171D;       /* superfici rialzate nella notte */
  --burgundy: #6B1F28;
  --burgundy-deep: #3D1117;
  --cherry: #8F2A35;
  --cream: #F2E9E2;
  --ivory: #FAF4EE;
  --stone: #E8DDD6;
  --white: #FFFFFF;
  --gold: #C5A56D;
  --gold-soft: #B89860;
  --gold-ink: #7A6234;              /* oro su carta: 4.9:1 su cream (misurato) */
  --gold-bright: #D9BC85;           /* oro leggibile sulla notte */

  --ink: #2a2a2a;                   /* testo su carta */
  --ink-soft: #5F5F5F;
  --voice: #EFE3D9;                 /* testo sulla notte */
  --voice-soft: rgba(239, 227, 217, 0.72);

  --hairline-night: rgba(197, 165, 109, 0.32);
  --hairline-paper: rgba(107, 31, 40, 0.16);
  --hairline-gold: rgba(197, 165, 109, 0.55);

  /* tipografia — piu' estrema della v2: ratio display ~1.6 */
  --text-xs:  0.72rem;
  --text-sm:  0.84rem;
  --text-base: 1rem;
  --text-md:  clamp(1.05rem, 1vw + 0.85rem, 1.2rem);
  --text-lg:  clamp(1.3rem, 1.7vw + 1rem, 1.7rem);
  --text-xl:  clamp(1.6rem, 2.6vw + 1.05rem, 2.3rem);
  --text-2xl: clamp(2rem, 3.8vw + 1.1rem, 3.2rem);
  --text-display: clamp(2.3rem, 3vw + 1.15rem, 3.8rem);

  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: clamp(2.5rem, 5vw, 3.5rem);
  --sp-7: clamp(3.5rem, 7vw, 5.5rem);
  --sp-8: clamp(5rem, 10vw, 8.5rem);

  --container: 1140px;
  --measure: 65ch;
  --radius: 2px;
  --radius-card: 4px;
  --shadow-card: 0 10px 30px rgba(20, 8, 10, 0.35);
  --shadow-paper: 0 8px 24px rgba(61, 17, 23, 0.10);
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--voice);
  background-color: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain — la notte ha una grana */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--gold); color: var(--night-deep); }

/* ---------- Filo d'oro di avanzamento (solo dove supportato) ---------- */
.progress-thread { display: none; }
@supports (animation-timeline: scroll()) {
  .progress-thread {
    display: block;
    position: fixed;
    top: 0; right: 0;
    width: 2px;
    height: 100vh;
    z-index: 70;
    background: linear-gradient(to bottom, var(--gold), var(--gold-soft));
    box-shadow: -1px 0 0 rgba(61, 17, 23, 0.35);
    transform-origin: top;
    transform: scaleY(0);
    animation: thread-grow linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
}
@keyframes thread-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-optical-sizing: auto;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--voice);
}
h1 { font-size: var(--text-display); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); font-weight: 750; letter-spacing: -0.015em; margin-bottom: var(--sp-4); }
h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--sp-3); }
.highlight-card .card-title, .timeline-step h3, .comparison-column h3, .difference-card h3 {
  font-size: var(--text-md);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}
h4 { font-size: var(--text-md); font-weight: 650; margin-bottom: var(--sp-2); line-height: 1.3; }

p { margin-bottom: var(--sp-3); max-width: var(--measure); text-wrap: pretty; }

.center { text-align: center; }
.center p, p.center { margin-inline: auto; }

.burgundy-text { color: var(--gold-bright); font-weight: 600; }
.gold-emphasis { color: var(--gold-bright); font-style: italic; }

.label {
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-bright);
}

/* numerale fantasma di capitolo */
.ghost-num {
  position: absolute;
  top: clamp(-30px, -4vw, -10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(6rem, 16vw, 13rem);
  line-height: 1;
  color: var(--cream);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.chapter-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}
.chapter-kicker::before, .chapter-kicker::after {
  content: "";
  height: 1px;
  width: clamp(40px, 8vw, 100px);
  background: var(--hairline-gold);
  transform-origin: center;
}

.pull-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gold-bright);
  text-align: center;
  max-width: 26ch;
  margin: var(--sp-6) auto;
  text-wrap: balance;
}
.pull-quote--strong { font-size: var(--text-2xl); }

.separator {
  width: 72px;
  height: 1px;
  background: var(--hairline-gold);
  margin: var(--sp-5) auto;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 36px);
}
.narrow { max-width: 720px; margin-inline: auto; }

section { padding-block: var(--sp-7); position: relative; }
section.chapter { padding-block: var(--sp-8); clip-path: inset(0); }
.paper-bg.chapter + .paper-bg { padding-top: var(--sp-2); }
.paper-bg + .paper-bg.chapter { padding-top: var(--sp-4); }
section.compressed { padding-block: var(--sp-5); }

/* mondi */
.night-bg { background-color: var(--night); color: var(--voice); }
.night-deep-bg { background-color: var(--night-deep); color: var(--voice); }

.paper-bg {
  background-color: var(--cream);
  color: var(--ink);
}
.paper-bg h1, .paper-bg h2, .paper-bg h3, .paper-bg h4 { color: var(--ink); }
.paper-bg .label { color: var(--gold-ink); }
.paper-bg .pull-quote { color: var(--burgundy); }
.paper-bg .burgundy-text { color: var(--burgundy); }
.paper-bg .ghost-num { color: var(--burgundy); opacity: 0.05; }
.paper-bg .separator { background: var(--hairline-paper); }
.paper-bg p { color: var(--ink); }
.paper-bg .muted { color: var(--ink-soft); }

.muted { color: var(--voice-soft); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 42px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  min-height: 48px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(250, 244, 238, 0.35) 50%, transparent 100%);
  transform: translateX(-130%) skewX(-18deg);
  z-index: -1;
  pointer-events: none;
}
.btn:hover::after { transition: transform 0.7s ease; transform: translateX(130%) skewX(-18deg); }

/* CTA principale sulla notte: crema, come luce accesa */
.btn-light { background-color: var(--cream); color: var(--night-deep); border-color: var(--gold); }
.btn-light:hover { background-color: var(--ivory); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5); }

/* CTA su carta: burgundy pieno */
.btn-dark { background-color: var(--burgundy); color: var(--cream); border-color: var(--gold); }
.btn-dark:hover { background-color: var(--burgundy-deep); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(61, 17, 23, 0.4); }

.btn-contact { background-color: var(--gold); color: var(--night-deep); border-color: var(--gold-soft); flex: 1 1 220px; max-width: 260px; }
.btn-contact:hover { background-color: var(--gold-bright); transform: translateY(-1px); }

.cta-large { padding: 21px 54px; font-size: 0.95rem; }
.cta-block { text-align: center; }
.cta-block h2 { max-width: 24ch; margin-inline: auto; margin-bottom: var(--sp-5); }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.paper-bg :focus-visible { outline-color: var(--gold-ink); }

/* ---------- Glifi ---------- */
.mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hairline-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  margin-top: 2px;
}
.mark svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark--no { color: var(--voice-soft); border-color: rgba(239, 227, 217, 0.2); }
.paper-bg .mark { color: var(--burgundy); }
.paper-bg .mark--no { color: var(--ink-soft); border-color: rgba(107, 31, 40, 0.2); }

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--night-deep);
  color: var(--cream);
  padding: 12px 20px;
  font-size: var(--text-sm);
}
.skip-link:focus { left: 0; }

/* sottotitolo di sezione nei due mondi */
.sub { color: var(--voice-soft); margin-bottom: var(--sp-6); }
.paper-bg .sub { color: var(--ink-soft); }

/* ---------- Banner ---------- */
.banner {
  min-height: 46px;
  background-color: var(--night-deep);
  border-bottom: 1px solid var(--hairline-night);
  color: var(--voice-soft);
  padding: 12px 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: center;
  position: relative;
}
.banner.hidden { display: none; }
.banner-close {
  background: none; border: none; color: var(--voice-soft);
  cursor: pointer; line-height: 1; padding: 16px;
  opacity: 0.7; transition: opacity 0.2s ease;
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
}
.banner-close:hover { opacity: 1; }

@media (max-width: 767px) { .banner { min-height: 68px; } }
@media (min-width: 400px) and (max-width: 700px) { .banner { min-height: 52px; } }
@media (min-width: 701px) and (max-width: 1023px) { .banner { min-height: 66px; } }

/* ---------- Hero ---------- */
.hero {
  min-height: clamp(600px, 92vh, 980px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-7);
}
/* alone di luce dietro il ritratto */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 75% at 76% 45%, rgba(143, 42, 53, 0.35), transparent 68%),
    radial-gradient(ellipse 40% 45% at 76% 38%, rgba(197, 165, 109, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-content {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label { margin-bottom: var(--sp-4); display: block; }
.hero h1 { max-width: 21ch; margin-bottom: var(--sp-5); }
.hero-hairline { width: 92px; height: 1px; background: var(--gold); margin-bottom: var(--sp-5); }
.hero-cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.format-line {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--voice-soft);
  font-weight: 500;
}
.format-line b { color: var(--gold-bright); font-weight: 600; }

/* il ritratto emerge dalla notte: niente card, niente bordo box */
.portrait {
  position: relative;
}
.portrait img { width: 100%; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 6% -18px -18px 6%;
  border: 1px solid var(--hairline-night);
  pointer-events: none;
}
.portrait figcaption {
  position: absolute;
  bottom: -34px;
  right: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--voice-soft);
  font-weight: 500;
}

/* ---------- Highlights ---------- */
.highlights-grid {
  display: grid;
  gap: var(--sp-5);
  counter-reset: hl;
}
.highlight-card {
  counter-increment: hl;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline-night);
}
.highlight-card::before {
  content: "0" counter(hl);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--gold-bright);
  display: block;
  margin-bottom: var(--sp-2);
  line-height: 1;
}
.highlight-card .card-title {
  max-width: 16ch;
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
  font-weight: 650;
  font-size: var(--text-md);
  line-height: 1.3;
  margin-bottom: var(--sp-2);
  color: var(--voice);
  text-wrap: balance;
}
.highlight-card p { font-size: var(--text-sm); color: var(--voice-soft); margin-bottom: 0; }

/* ---------- Prosa su carta ---------- */
.prose { max-width: var(--measure); margin-inline: auto; position: relative; z-index: 1; }
.prose h2 { text-align: center; }

.drop-cap::first-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  padding: 0.06em 0.14em 0 0;
  color: var(--burgundy);
}

.inner-thoughts {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: var(--text-md);
  line-height: 2.1;
  color: var(--burgundy);
  border-left: 2px solid var(--hairline-gold);
  padding-left: var(--sp-4);
  margin: var(--sp-5) 0;
}

.thesis {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-lg);
  font-weight: 750;
  color: var(--burgundy);
  text-align: center;
  margin-top: var(--sp-5);
}

/* ---------- Voci nella notte (testimonial) ---------- */
.testimonials-grid { display: grid; gap: var(--sp-4); }
.testimonial-card {
  background: var(--night-soft);
  border: 1px solid var(--hairline-night);
  border-top-color: var(--gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.testimonial-text { font-size: var(--text-sm); line-height: 1.85; color: var(--voice); flex: 1; }
.testimonial-name {
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-bright);
}

/* ---------- Timeline del sogno ---------- */
.timeline {
  max-width: 720px;
  margin-inline: auto;
  position: relative;
  display: grid;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 32px;
  bottom: 32px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold) 0%, var(--cherry) 60%, transparent 100%);
}
.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  position: relative;
}
.timeline-num {
  width: 56px;
  height: 56px;
  background: var(--night-deep);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(197, 165, 109, 0.15);
}
.timeline-step .label { display: block; margin-bottom: 6px; }
.timeline-step h3 { color: var(--voice); font-style: italic; margin-bottom: var(--sp-1); }
.timeline-step p { color: var(--voice-soft); font-size: var(--text-sm); margin-bottom: 0; }
.timeline-step p strong { color: var(--voice); }

/* ---------- Lettera di Iris (origin, su carta) ---------- */
.two-column { display: grid; gap: var(--sp-6); align-items: center; position: relative; z-index: 1; }
.letter-photo { position: relative; }
.letter-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-paper); }
.letter-photo::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--hairline-gold);
  pointer-events: none;
}

/* ---------- Comparison (notte, due mondi) ---------- */
.comparison-grid { display: grid; gap: var(--sp-5); max-width: 940px; margin-inline: auto; }
.comparison-column {
  border-radius: var(--radius-card);
  padding: var(--sp-5);
}
.comparison-left {
  background: transparent;
  border: 1px solid rgba(239, 227, 217, 0.14);
}
.comparison-right {
  background: var(--night-soft);
  border: 1px solid var(--hairline-gold);
  box-shadow: var(--shadow-card);
}
.comparison-column h3 {
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--hairline-night);
  margin-bottom: var(--sp-3);
  color: var(--voice-soft);
}
.comparison-right h3 { color: var(--gold-bright); border-bottom-color: var(--hairline-gold); }
.comparison-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 10px;
  font-size: var(--text-sm);
  color: var(--voice);
}
.comparison-left .comparison-item { color: var(--voice-soft); }

/* ---------- Curriculum (moduli, su carta) ---------- */
.modules-list { max-width: 800px; margin-inline: auto; display: grid; position: relative; z-index: 1; }
.module-card {
  position: relative;
  padding: var(--sp-5) 0 var(--sp-5) clamp(76px, 13vw, 150px);
  border-top: 1px solid var(--hairline-paper);
}
.module-card:last-child { border-bottom: 1px solid var(--hairline-paper); }
.module-num {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1;
  color: var(--burgundy);
  opacity: 0.32;
}
.module-card h3 { color: var(--burgundy); font-size: var(--text-lg); }
.module-card p { color: var(--ink-soft); font-size: var(--text-sm); margin-bottom: 0; }

/* ---------- Results (notte) ---------- */
.results-list, .checklist { max-width: 660px; margin-inline: auto; display: grid; gap: var(--sp-2); position: relative; z-index: 1; }
.results-item, .checklist-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-block: 8px;
  font-size: var(--text-sm);
}

/* ---------- Screenshots (su carta) ---------- */
.screenshot-grid {
  display: grid;
  gap: var(--sp-5);
  max-width: 920px;
  margin-inline: auto;
  align-items: center;
  position: relative;
  z-index: 1;
}
.screenshot-card {
  background: var(--ivory);
  border-radius: var(--radius-card);
  border-top: 1px solid var(--gold);
  box-shadow: var(--shadow-paper);
  padding: 14px;
}
.screenshot-card img { border-radius: var(--radius); width: 100%; }
.screenshot-card--wide { grid-column: 1 / -1; max-width: 829px; margin-inline: auto; width: 100%; }
.provenance { text-align: center; margin-top: var(--sp-4); display: block; max-width: none; }

/* ---------- Promise (notte) ---------- */
.promise-box {
  background: var(--night-soft);
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--radius);
  margin-top: var(--sp-6);
  max-width: 740px;
  margin-inline: auto;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.promise-box .label { display: block; margin-bottom: var(--sp-3); }
.promise-box p {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-md);
  font-style: italic;
  line-height: 1.75;
  color: var(--voice);
  margin: 0 auto;
}
.promise-box .burgundy-text { font-style: normal; color: var(--gold-bright); }

/* ---------- Offerta: il riflettore ---------- */
.offer {
  background:
    radial-gradient(ellipse 75% 55% at 50% 38%, rgba(107, 31, 40, 0.55), transparent 72%),
    var(--night-deep);
}
.offer-subheader {
  text-align: center;
  font-size: var(--text-md);
  color: var(--voice-soft);
  margin-bottom: var(--sp-6);
}
.tier-card {
  background-color: var(--ivory);
  color: var(--ink);
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-card);
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  max-width: 660px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.tier-card h3 { text-align: center; color: var(--burgundy); margin-bottom: var(--sp-4); }
.tier-card .mark { color: var(--burgundy); }

.tier-features { list-style: none; }
.tier-features li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  padding-block: 13px;
  border-bottom: 1px solid var(--hairline-paper);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink);
}
.tier-features .mark { width: 22px; height: 22px; margin-top: 1px; }
.tier-features .mark svg { width: 10px; height: 10px; }
.value-tag {
  font-size: var(--text-xs);
  color: var(--gold-ink);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.tier-total {
  display: grid;
  grid-template-columns: 1fr auto;
  padding-block: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline-gold);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.tier-pricing { text-align: center; margin-block: var(--sp-5) var(--sp-4); }
.tier-price {
  font-size: clamp(3.2rem, 8vw, 4.2rem);
  font-weight: 800;
  font-style: italic;
  color: var(--burgundy);
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
}
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px 26px;
  flex-wrap: wrap;
  margin-block: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--ink-soft);
}
.trust-bar span { display: inline-flex; align-items: center; gap: 7px; }
.trust-bar svg { width: 14px; height: 14px; stroke: var(--gold-ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.checkout-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

/* ---------- Difference (notte) ---------- */
.difference-grid { display: grid; gap: var(--sp-5); }
.difference-card { border-top: 1px solid var(--hairline-night); padding-top: var(--sp-3); }
.difference-card h3 { color: var(--voice); }
.difference-card p { font-size: var(--text-sm); color: var(--voice-soft); margin-bottom: 0; }

/* ---------- FAQ (su carta) ---------- */
.accordion { max-width: 780px; margin-inline: auto; position: relative; z-index: 1; }
.accordion-item { border-bottom: 1px solid var(--hairline-paper); }
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink);
  padding: 18px 40px 18px 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  line-height: 1.5;
}
.accordion-header:hover { color: var(--burgundy); }
.accordion-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--gold-ink);
  transition: transform 0.3s ease;
}
.accordion-icon::before { left: 0; top: 5px; width: 12px; height: 2px; }
.accordion-icon::after { left: 5px; top: 0; width: 2px; height: 12px; }
.accordion-item.active .accordion-icon::after { transform: scaleY(0); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-content p {
  padding: 0 4px 18px;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 65ch;
  margin: 0;
}
.accordion-content[hidden] { display: none; }

/* ---------- Coaching (notte) ---------- */
.coaching-card {
  text-align: center;
  padding: clamp(32px, 6vw, 56px) clamp(24px, 5vw, 48px);
  border: 1px solid var(--hairline-gold);
  border-radius: 8px;
  background: linear-gradient(150deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: var(--cream);
  max-width: 700px;
  margin-inline: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}
.coaching-card .label { display: block; margin-bottom: var(--sp-2); }
.coaching-card h3 { color: var(--cream); }
.coaching-card > p { opacity: 0.92; max-width: 50ch; margin-inline: auto; margin-bottom: var(--sp-5); color: var(--cream); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-actions svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Chiusura ---------- */
.final-close { background: var(--night-deep); }
.final-close p { margin-inline: auto; text-align: center; color: var(--voice); }
.final-question {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: var(--text-xl);
  font-weight: 650;
  margin-top: var(--sp-5);
  color: var(--voice);
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--night-deep);
  border-top: 1px solid var(--hairline-night);
  padding-block: var(--sp-6);
  text-align: center;
  color: var(--voice-soft);
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-md);
  color: var(--cream);
  margin-bottom: 4px;
}
.footer-soul { font-size: var(--text-sm); color: var(--voice-soft); margin-bottom: var(--sp-4); }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
}
.footer-links a {
  padding-block: 10px;
  display: inline-block; color: var(--gold-bright); text-decoration: none; transition: color 0.2s ease; }
.footer-links a.muted { color: var(--voice-soft); }
.footer-links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { font-size: var(--text-xs); letter-spacing: 0.06em; }

/* ---------- Sticky CTA mobile ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--night-deep);
  border-top: 1px solid var(--hairline-night);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta { justify-content: center; }
.sticky-cta .btn { padding: 12px 24px; min-height: 44px; font-size: 0.78rem; flex: 1; max-width: 360px; }
@media (prefers-reduced-motion: no-preference) {
  .sticky-cta.visible .btn::after {
    background: linear-gradient(90deg, transparent 0%, rgba(197, 165, 109, 0.55) 50%, transparent 100%);
    animation: sticky-glint 6s ease-in-out infinite;
  }
}
@keyframes sticky-glint {
  0%, 75% { transform: translateX(-130%) skewX(-18deg); }
  95%, 100% { transform: translateX(130%) skewX(-18deg); }
}

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 1; }

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  .timeline::before {
    animation: spine-draw linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 65%;
    transform-origin: top;
  }
  .chapter-kicker::before, .chapter-kicker::after {
    animation: hairline-grow linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spine-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hairline-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .progress-thread { display: none; }
  .reveal, .timeline::before, .chapter-kicker::before, .chapter-kicker::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
  .comparison-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .highlights-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
  .difference-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content { grid-template-columns: 1.08fr 0.92fr; gap: clamp(2.5rem, 7vw, 6rem); }
  .two-column { grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); }
}

@media (max-width: 767px) {
  .hero { min-height: 0; padding-block: var(--sp-6); }
  .banner { padding: 8px 42px; font-size: 0.66rem; }
  .hero-content { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-image { order: -1; max-width: 440px; margin-inline: auto; width: 100%; }
  .portrait img { max-height: 30vh; object-fit: cover; object-position: top; }
  .portrait::after { inset: 8% -10px -10px 8%; }
  .portrait figcaption { display: none; }
  .two-column-image { max-width: 420px; margin-inline: auto; width: 100%; }
  .sticky-cta { display: flex; }
  .ghost-num { font-size: 5.5rem; }
}

/* la fold e' una funzione dell'altezza, non solo della larghezza */
@media (max-width: 767px) {
  .hero h1 { margin-bottom: var(--sp-4); }
  .hero-hairline { margin-bottom: var(--sp-4); }
  .hero-cta { gap: 10px; }
  .portrait img { max-height: 27vh; }
}
@media (max-width: 767px) and (max-height: 760px) {
  h1 { font-size: 1.8rem; }
  .portrait img { max-height: 20vh; }
  .hero-hairline { margin-block: var(--sp-2) var(--sp-3); }
}
@media (max-width: 767px) and (max-height: 600px) {
  h1 { font-size: 1.42rem; }
  .portrait img { max-height: 12vh; }
  .hero-content { gap: var(--sp-3); }
  .hero-label { margin-bottom: var(--sp-1); }
  .hero-hairline { display: none; }
}

/* schermi molto piccoli: la fold deve contenere titolo e CTA */
@media (max-width: 374px) and (min-height: 601px) {
  .portrait img { max-height: 24vh; }
  h1 { font-size: 1.9rem; }
  .hero-hairline { margin-bottom: var(--sp-3); }
  .hero h1 { margin-bottom: var(--sp-3); }
  .hero-label { margin-bottom: var(--sp-2); }
}

/* ordine published su mobile: testo prima, foto sotto, intera */
@media (max-width: 767px) {
  .hero-image { order: 0; }
  .portrait img { max-height: none; object-fit: fill; object-position: initial; }
}

/* footer: righe centrate (il max-width dei p le bloccava a sinistra) */
footer .footer-brand, footer .footer-soul { max-width: none; }
