/* ============================================================
   MutuoClick — Pagine a sezioni (template page.html.twig)
   Stili delle sezioni componibili (hero, text, text+image, benefits,
   FAQ, CTA). Solo token del DS (css/tokens.css), niente valori hardcodati.
   ============================================================ */

/* Main full-width: le sezioni gestiscono il proprio contenitore interno */
.page-main {
  flex: 1 1 auto;
  width: 100%;
}

/* -------------------------------------------------- Sezione: base */
.sec {
  padding: clamp(40px, 6vw, 80px) 24px;
}
.sec__inner {
  max-width: var(--container-lg);
  margin: 0 auto;
}
.sec--tint { background: var(--surface-tint); }

.sec__head { margin-bottom: 36px; }
.sec__head.is-center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.sec__heading {
  font-size: var(--text-xl);
  color: var(--text-strong);
  letter-spacing: var(--tracking-tight);
}
.sec__subtitle {
  margin-top: 10px;
  font-size: var(--text-md);
  color: var(--text-muted);
}

/* -------------------------------------------------- Tipografia contenuti */
.page-prose { color: var(--text-body); font-size: var(--text-base); line-height: var(--leading-relaxed); }
.page-prose > * + * { margin-top: 16px; }
.page-prose h2 { font-size: var(--text-lg); color: var(--text-strong); margin-top: 28px; }
.page-prose h3 { font-size: var(--text-md); color: var(--text-strong); margin-top: 22px; }
.page-prose a { color: var(--text-link); font-weight: var(--fw-semibold); }
.page-prose ul, .page-prose ol { padding-left: 1.3em; }
.page-prose li + li { margin-top: 6px; }
.page-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

/* -------------------------------------------------- Sezione: HERO (unificata)
   Varianti sfondo: --light (chiaro, testo scuro) | --image (immagine/scuro,
   testo chiaro, con overlay). Modificatore --split: 2 colonne (testo + comparatore). */
/* La sezione è un contenitore flex in colonna: consente l'allineamento
   verticale (justify-content) e orizzontale (margini del blocco) del contenuto
   sia con comparatore (split) sia senza. */
.sec--hero { position: relative; display: flex; flex-direction: column; justify-content: center; }
.sec-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--container-md); margin: 0 auto; text-align: center; }
.sec-hero__eyebrow { display: inline-block; margin-bottom: 14px; }
.sec-hero__title { font-size: var(--text-3xl); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
.sec-hero__subtitle { margin: 16px auto 0; max-width: 620px; font-size: var(--text-md); }
.sec-hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Variante CHIARO */
.sec--hero--light {
  background: linear-gradient(180deg, var(--surface-tint) 0%, var(--surface-page) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.sec--hero--light .sec-hero__title { color: var(--color-primary); }
.sec--hero--light .sec-hero__subtitle { color: var(--text-muted); }

/* Variante IMMAGINE / scuro */
.sec--hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: clamp(64px, 12vw, 140px) 24px;
  overflow: hidden;
  /* altezza minima: dà spazio verticale all'allineamento (hero immersivo) */
  min-height: clamp(420px, 52vh, 620px);
}
.sec--hero--image.sec--hero--solid { background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-950) 100%); }
.sec-hero__overlay { position: absolute; inset: 0; }
.sec--hero--image.sec--hero--dark .sec-hero__overlay { background: linear-gradient(180deg, rgba(6,16,39,0.45) 0%, rgba(6,16,39,0.74) 100%); }
.sec--hero--image.sec--hero--darker .sec-hero__overlay { background: rgba(6,16,39,0.82); }
.sec--hero--image.sec--hero--none .sec-hero__overlay { background: transparent; }
.sec--hero--image .sec-hero__title { color: var(--white); }
.sec--hero--image .sec-hero__subtitle { color: rgba(255,255,255,0.9); }
.sec--hero--image .sec-hero__eyebrow { color: var(--gold-300); }
.sec--hero--image .sec-hero__ghost { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6); }
.sec--hero--image .sec-hero__ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* Modificatore SPLIT (con comparatore): 2 colonne, testo a sinistra */
.sec--hero--split .sec-hero__inner {
  max-width: var(--container-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  text-align: left;
}
.sec--hero--split .sec-hero__subtitle { margin-left: 0; margin-right: 0; max-width: 46ch; }
.sec--hero--split .sec-hero__actions { justify-content: flex-start; }
.sec--hero--split .sec-hero__widget { min-width: 0; } /* la colonna può restringersi senza overflow */

/* Posizione comparatore: a sinistra = inverte l'ordine delle colonne */
.sec-hero--cmp-left .sec-hero__text { order: 2; }
.sec-hero--cmp-left .sec-hero__widget { order: 1; }

/* Allineamento ORIZZONTALE della colonna testo (entrambi i layout) */
.sec-hero--ha-left .sec-hero__text { text-align: left; }
.sec-hero--ha-center .sec-hero__text { text-align: center; }
.sec-hero--ha-right .sec-hero__text { text-align: right; }
.sec-hero--ha-left .sec-hero__actions { justify-content: flex-start; }
.sec-hero--ha-center .sec-hero__actions { justify-content: center; }
.sec-hero--ha-right .sec-hero__actions { justify-content: flex-end; }
.sec-hero--ha-left .sec-hero__subtitle { margin-left: 0; margin-right: auto; }
.sec-hero--ha-center .sec-hero__subtitle { margin-left: auto; margin-right: auto; }
.sec-hero--ha-right .sec-hero__subtitle { margin-left: auto; margin-right: 0; }
/* senza comparatore: sposta anche il blocco di contenuto (sx/dx) */
.sec--hero:not(.sec--hero--split).sec-hero--ha-left .sec-hero__inner { margin-left: 0; margin-right: auto; }
.sec--hero:not(.sec--hero--split).sec-hero--ha-right .sec-hero__inner { margin-left: auto; margin-right: 0; }

/* Allineamento VERTICALE
   - senza comparatore: posiziona il contenuto nell'altezza della sezione (flex);
   - con comparatore (split): allinea il testo rispetto alla colonna comparatore. */
.sec-hero--va-top { justify-content: flex-start; }
.sec-hero--va-center { justify-content: center; }
.sec-hero--va-bottom { justify-content: flex-end; }
.sec--hero--split.sec-hero--va-top .sec-hero__text { align-self: start; }
.sec--hero--split.sec-hero--va-center .sec-hero__text { align-self: center; }
.sec--hero--split.sec-hero--va-bottom .sec-hero__text { align-self: end; }

@media (max-width: 900px) {
  .sec--hero--split .sec-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .sec--hero--split .sec-hero__subtitle { margin-left: auto; margin-right: auto; }
  .sec--hero--split .sec-hero__actions { justify-content: center; }
  .sec--hero--split .sec-hero__proof { justify-content: center; }
  /* In colonna singola il testo resta sopra al comparatore a prescindere dal lato */
  .sec-hero--cmp-left .sec-hero__text,
  .sec-hero--cmp-left .sec-hero__widget { order: 0; }
}

/* -------------------------------------------------- HERO — elementi marketing (opzionali)
   Renderizzati solo se i relativi campi sono valorizzati: zero impatto sulle hero
   che non li usano. Ogni elemento ha la sua resa per variante --light (testo scuro)
   e --image (testo chiaro). Leve: trust pill, evidenziazione, proof point, prova
   sociale, risk-reversal, cue sul punto d'azione. */

/* Trust pill con "dot" pulsante (senso di servizio attivo/in tempo reale) */
.sec-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-2xs); font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.sec-hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: var(--color-accent);
  animation: sec-hero-pulse 2.4s var(--ease-out) infinite;
}
@keyframes sec-hero-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(213, 167, 25, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(213, 167, 25, 0); }
  100% { box-shadow: 0 0 0 0 rgba(213, 167, 25, 0); }
}
.sec--hero--light .sec-hero__badge { background: var(--surface-accent-tint); color: var(--gold-700); box-shadow: inset 0 0 0 1px var(--gold-200); }
.sec--hero--image .sec-hero__badge { background: rgba(255, 255, 255, 0.12); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: reduce) { .sec-hero__badge-dot { animation: none; } }

/* Evidenziazione di una parola chiave del titolo */
.sec-hero__hl { color: var(--color-accent); white-space: nowrap; }
.sec--hero--image .sec-hero__hl { color: var(--gold-300); }

/* Proof point — chip "✓" che abbattono l'attrito percepito */
.sec-hero__proof {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
}
.sec-hero__proof-item { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); font-weight: var(--fw-semibold); }
.sec-hero__proof-ic { flex: 0 0 auto; width: 18px; height: 18px; }
.sec--hero--light .sec-hero__proof-item { color: var(--text-body); }
.sec--hero--light .sec-hero__proof-ic { color: var(--color-success); }
.sec--hero--image .sec-hero__proof-item { color: rgba(255, 255, 255, 0.92); }
.sec--hero--image .sec-hero__proof-ic { color: var(--gold-300); }

/* Microcopy risk-reversal sotto la CTA (privacy / nessun obbligo) */
.sec-hero__note { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); line-height: var(--leading-snug); }
.sec-hero__note svg { flex: 0 0 auto; }
.sec--hero--light .sec-hero__note { color: var(--text-muted); }
.sec--hero--image .sec-hero__note { color: rgba(255, 255, 255, 0.74); }

/* Prova sociale — rating a stelle */
.sec-hero__rating { margin-top: 20px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.sec-hero__stars { color: var(--color-accent); font-size: var(--text-md); line-height: 1; letter-spacing: 2px; }
.sec--hero--image .sec-hero__stars { color: var(--gold-300); }
.sec-hero__rating-text { font-size: var(--text-sm); }
.sec-hero__rating-text strong { font-weight: var(--fw-extrabold); }
.sec--hero--light .sec-hero__rating-text { color: var(--text-muted); }
.sec--hero--image .sec-hero__rating-text { color: rgba(255, 255, 255, 0.92); }
.sec-hero__demo-note { flex-basis: 100%; font-size: var(--text-3xs); font-style: italic; opacity: 0.7; }

/* Cue di rassicurazione sopra il comparatore (punto d'azione) */
.sec-hero__cue {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}
.sec-hero__cue svg { flex: 0 0 auto; color: var(--color-accent-hover); }

/* Centratura degli elementi quando l'hero è centrato o in colonna singola */
.sec-hero--ha-center .sec-hero__proof,
.sec--hero:not(.sec--hero--split) .sec-hero__proof { justify-content: center; }

/* -------------------------------------------------- Sezione: HERO FX (card flottante, 2 colonne)
   Banda scura immersiva resa con ::before (copre la parte alta della sezione); griglia
   a 2 colonne: copy marketing a sinistra, card del comparatore "flottante" a destra che
   scende oltre la banda nella zona chiara. Riduce l'ingombro verticale del blocco copy.
   Template a sé: partials/sections/herofx.html.twig. */
.sec--herofx {
  --herofx-scrim: linear-gradient(180deg, rgba(6, 16, 39, 0.58) 0%, rgba(6, 16, 39, 0.84) 100%);
  position: relative;
  background: var(--surface-page);
  padding: clamp(40px, 7vw, 84px) 24px clamp(44px, 7vw, 84px);
}
.sec--herofx--darker { --herofx-scrim: linear-gradient(0deg, rgba(6, 16, 39, 0.9), rgba(6, 16, 39, 0.9)); }
.sec--herofx--none   { --herofx-scrim: linear-gradient(0deg, rgba(6, 16, 39, 0), rgba(6, 16, 39, 0)); }
/* Banda scura: copre la fascia alta; la card la "buca" scendendo nel chiaro */
.sec--herofx::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: clamp(340px, 76%, 640px); z-index: 0;
  background-image: var(--herofx-scrim), var(--herofx-bg, none);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.sec--herofx--solid::before { background-image: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-950) 100%); }
/* Split comparatore: quando la ricerca collassa a riepilogo (mount .cmp-collapsed),
   la card diventa corta e la colonna copy (testo, spesso più alta) resterebbe fuori
   dalla banda → il testo chiaro sborderebbe sul chiaro. Si estende la banda a coprire
   l'intera sezione così i testi restano sempre sullo sfondo hero. */
.sec--herofx:has(.cmp-collapsed)::before { height: 100%; }

/* Variante CHIARA (parità con hero): banda chiara, testo scuro, comparatore light.
   Stesse regole di layout/animazione; qui si ribaltano solo i colori. */
.sec--herofx--light { border-bottom: 1px solid var(--border-subtle); }
.sec--herofx--light::before { background-image: linear-gradient(180deg, var(--surface-tint) 0%, var(--surface-page) 100%); }
.sec--herofx--light .herofx__copy { color: var(--text-body); }
.sec--herofx--light .herofx__title { color: var(--color-primary); }
.sec--herofx--light .herofx__title .sec-hero__hl { color: var(--gold-600); }
.sec--herofx--light .herofx__subtitle { color: var(--text-muted); }
.sec--herofx--light .herofx__badge { background: var(--surface-accent-tint); color: var(--gold-700); box-shadow: inset 0 0 0 1px var(--gold-200); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sec--herofx--light .herofx__stat-num { color: var(--gold-700); }
.sec--herofx--light .herofx__stat-label { color: var(--text-muted); }
.sec--herofx--light .herofx__cue { color: var(--text-body); background: var(--surface-accent-tint); box-shadow: inset 0 0 0 1px var(--gold-200); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sec--herofx--light .herofx__cue svg { color: var(--gold-600); }

.herofx__inner {
  position: relative; z-index: 1;
  max-width: var(--container-lg); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.04fr;
  gap: clamp(28px, 4vw, 56px); align-items: start;
}

/* Colonna copy (sinistra) */
.herofx__copy { min-width: 0; color: var(--white); text-align: left; }
.herofx__badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: var(--text-2xs); font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12); color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.herofx__badge-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--color-accent); animation: sec-hero-pulse 2.4s var(--ease-out) infinite; }
.herofx__title { font-size: var(--text-3xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--white); }
.herofx__title .sec-hero__hl { color: var(--gold-300); white-space: normal; }
.herofx__subtitle { margin: 16px 0 0; max-width: 46ch; font-size: var(--text-md); color: rgba(255, 255, 255, 0.9); }

/* Stat (contatori animati) — lista verticale compatta: numero + etichetta in linea.
   Sta bene nella colonna stretta senza wrapping disordinato. */
.herofx__stats { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.herofx__stat { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
.herofx__stat-num { font-size: var(--text-xl); font-weight: var(--fw-extrabold); line-height: 1; color: var(--gold-300); letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; white-space: nowrap; }
.herofx__stat-label { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: rgba(255, 255, 255, 0.82); }
.herofx__actions { margin-top: 26px; display: flex; justify-content: flex-start; }

/* Colonna card flottante (destra) */
.herofx__widget { position: relative; z-index: 2; min-width: 0; }
.herofx__cue {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 640px; margin: 0 auto 16px; padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--white);
  background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.herofx__cue svg { flex: 0 0 auto; color: var(--gold-300); }
/* Ombra "premium" sulla card interna del comparatore; trust ridondante nascosta */
.herofx__widget .cmp-card-pad { box-shadow: var(--shadow-xl) !important; }
.herofx__widget .cmp-trust { display: none !important; } /* inline display:flex → serve !important */
.herofx__note { max-width: 640px; margin: 16px auto 0; text-align: center; font-size: var(--text-xs); color: var(--text-muted); }

/* Ingresso staggered */
.sec--herofx [data-fx] { animation: herofx-rise 0.6s var(--ease-out) both; }
.sec--herofx [data-fx="1"] { animation-delay: 0.04s; }
.sec--herofx [data-fx="2"] { animation-delay: 0.12s; }
.sec--herofx [data-fx="3"] { animation-delay: 0.20s; }
.sec--herofx [data-fx="4"] { animation-delay: 0.28s; }
.sec--herofx [data-fx="5"] { animation-delay: 0.36s; }
.sec--herofx [data-fx="6"] { animation-delay: 0.16s; }
@keyframes herofx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sec--herofx [data-fx] { animation: none; }
  .herofx__badge-dot { animation: none; }
}

/* Mobile / tablet: 1 colonna centrata (copy sopra, card sotto che scende nel chiaro) */
@media (max-width: 860px) {
  .herofx__inner { grid-template-columns: 1fr; gap: 0; }
  .herofx__copy { text-align: center; }
  .herofx__subtitle { margin-left: auto; margin-right: auto; }
  .herofx__stats { align-items: center; }
  .herofx__actions { justify-content: center; }
  .herofx__widget { margin-top: clamp(28px, 7vw, 48px); }
  .sec--herofx::before { height: clamp(330px, 64%, 520px); }
}
@media (max-width: 640px) {
  .herofx__title { font-size: var(--text-2xl); }
  .herofx__stats { gap: 14px 24px; }
  .herofx__stat-num { font-size: var(--text-xl); }
}

/* -------------------------------------------------- Sezione: HERO MAX (alto impatto + animazioni)
   Terzo template hero (partials/sections/heromax.html.twig): immersivo, centrato,
   con spotlight animato, ribbon urgency, underline-wipe sul titolo, count-up, CTA
   shimmer+pulse e comparatore come card centrale sotto. Tutto opt-in via prefers-reduced-motion. */
.sec--heromax {
  --heromax-scrim: linear-gradient(180deg, rgba(6, 16, 39, 0.72) 0%, rgba(6, 16, 39, 0.9) 100%);
  position: relative; overflow: hidden;
  background: var(--blue-950);
  background-image: var(--heromax-scrim), var(--heromax-bg, none);
  background-size: cover; background-position: center;
  color: var(--white); text-align: center;
  padding: clamp(56px, 9vw, 120px) 24px clamp(48px, 7vw, 96px);
}
.sec--heromax--solid { background-image: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-950) 100%); }
.sec--heromax--dark { --heromax-scrim: linear-gradient(180deg, rgba(6, 16, 39, 0.55) 0%, rgba(6, 16, 39, 0.8) 100%); }
.sec--heromax--none { --heromax-scrim: linear-gradient(0deg, rgba(6, 16, 39, 0), rgba(6, 16, 39, 0)); }

/* Spotlight animato */
.heromax__fx {
  position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(213, 167, 25, 0.30), transparent 70%);
  filter: blur(30px);
  animation: heromax-glow 14s ease-in-out infinite alternate;
}
@keyframes heromax-glow {
  0% { transform: translate(-12%, -8%) scale(0.9); opacity: 0.65; }
  100% { transform: translate(18%, 12%) scale(1.25); opacity: 1; }
}
.heromax__overlay { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(6, 16, 39, 0.45) 100%); }

.heromax__inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.heromax__widget { position: relative; z-index: 2; max-width: 720px; margin: clamp(32px, 5vw, 52px) auto 0; }

/* Ribbon urgency */
.heromax__ribbon {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: var(--text-2xs); font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--white);
  background: linear-gradient(90deg, rgba(213, 167, 25, 0.22), rgba(229, 72, 61, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.heromax__ribbon-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--red-500); animation: sec-hero-pulse 1.8s var(--ease-out) infinite; }

/* Titolo + underline-wipe sulla parola chiave */
.heromax__title { font-size: var(--text-4xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--white); }
.heromax__title .sec-hero__hl { position: relative; color: var(--gold-300); white-space: normal; }
.heromax__title .sec-hero__hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.1em; border-radius: 2px;
  background: var(--gold-400); transform: scaleX(0); transform-origin: left;
  animation: heromax-underline 0.7s var(--ease-out) forwards; animation-delay: 0.9s;
}
@keyframes heromax-underline { to { transform: scaleX(1); } }
.heromax__subtitle { margin: 18px auto 0; max-width: 640px; font-size: var(--text-md); color: rgba(255, 255, 255, 0.9); }

/* Stat (riusa il count-up di .herofx__stat-num) */
.heromax__stats { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; }
.heromax__stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.heromax__stats .heromax__stat-num { font-size: var(--text-3xl); }
.heromax__stat-label { font-size: var(--text-xs); font-weight: var(--fw-semibold); color: rgba(255, 255, 255, 0.78); max-width: 18ch; }

/* CTA shimmer + pulse */
.heromax__actions { margin-top: 30px; display: flex; justify-content: center; }
.heromax__cta { position: relative; overflow: hidden; animation: heromax-cta-pulse 2.6s ease-in-out infinite; }
.heromax__cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -160%; width: 70%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); animation: heromax-shimmer 3.2s ease-in-out infinite;
}
@keyframes heromax-shimmer { 0% { left: -160%; } 55%, 100% { left: 170%; } }
@keyframes heromax-cta-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(213, 167, 25, 0.5); } 50% { box-shadow: 0 0 0 12px rgba(213, 167, 25, 0); } }

.heromax__note { margin: 14px auto 0; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.72); }
.heromax__cue { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 640px; margin: 0 auto 16px; padding: 10px 16px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--white); background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.heromax__cue svg { flex: 0 0 auto; color: var(--gold-300); }
.heromax__widget .cmp-card-pad { box-shadow: var(--shadow-xl) !important; }
.heromax__widget .cmp-trust { display: none !important; }

/* Entrata staggered (riusa herofx-rise) */
.sec--heromax [data-fx] { animation: herofx-rise 0.6s var(--ease-out) both; }
.sec--heromax [data-fx="1"] { animation-delay: 0.04s; }
.sec--heromax [data-fx="2"] { animation-delay: 0.12s; }
.sec--heromax [data-fx="3"] { animation-delay: 0.22s; }
.sec--heromax [data-fx="4"] { animation-delay: 0.32s; }
.sec--heromax [data-fx="5"] { animation-delay: 0.42s; }
.sec--heromax [data-fx="6"] { animation-delay: 0.50s; }
.sec--heromax [data-fx="7"] { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .sec--heromax [data-fx] { animation: none; }
  .heromax__fx, .heromax__ribbon-dot, .heromax__cta, .heromax__cta::after { animation: none; }
  .heromax__title .sec-hero__hl::after { animation: none; transform: scaleX(1); }
}
@media (max-width: 640px) {
  .heromax__title { font-size: var(--text-2xl); }
  .heromax__stats { gap: 14px 26px; }
  .heromax__stats .heromax__stat-num { font-size: var(--text-2xl); }
}

/* -------------------------------------------------- Sezione: TESTO */
.sec-text__inner { max-width: var(--container-md); margin: 0 auto; }
.sec-text__inner.is-center { text-align: center; }
.sec-text__inner .sec__heading { margin-bottom: 14px; }

/* -------------------------------------------------- Sezione: TESTO + IMMAGINE */
.sec-media__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.sec-media__text .sec__heading { margin-bottom: 14px; }
.sec-media__actions { margin-top: 22px; }
.sec-media__figure img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }
.sec-media__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  background: var(--surface-sunken);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-subtle);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}
/* Immagine a sinistra: inverte l'ordine delle colonne */
.sec-media__grid.is-image-left .sec-media__text { order: 2; }
.sec-media__grid.is-image-left .sec-media__figure { order: 1; }

/* -------------------------------------------------- Sezione: VANTAGGI */
.sec-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.sec-benefit {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
}
.sec-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-accent-tint);
  color: var(--color-accent-hover);
  margin-bottom: 16px;
}
.sec-benefit__title { font-size: var(--text-md); color: var(--text-strong); }
.sec-benefit__text { margin-top: 8px; font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }

/* -------------------------------------------------- Sezione: STEPS (passi numerati) */
.sec-steps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 24px;
}
.sec-step { text-align: center; }
.sec-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--white);
  font-size: var(--text-lg);
  font-weight: var(--fw-extrabold);
  margin-bottom: 14px;
}
.sec-step__title { font-size: var(--text-md); color: var(--text-strong); }
.sec-step__text { margin-top: 6px; font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }

/* -------------------------------------------------- Sezione: CARDS (schede con immagine) */
.sec-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.sec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
}
.sec-card__img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 16px; }
.sec-card__title {
  font-size: var(--text-md);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-snug);
}
.sec-card__text { margin-top: 10px; font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }
.sec-card__link { margin-top: 16px; font-weight: var(--fw-semibold); color: var(--text-link); }

/* -------------------------------------------------- Sezione: QUOTE (citazione + social proof) */
.sec-quote__inner { max-width: var(--container-md); margin: 0 auto; text-align: center; }
.sec-quote__text {
  margin: 0;
  position: relative;
  padding-top: 38px;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.sec-quote__text::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 80px;
  line-height: 1;
  color: var(--color-accent);
}
.sec-quote__author { margin-top: 20px; font-weight: var(--fw-bold); color: var(--color-primary); }
.sec-quote__subline {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.sec-quote__star { color: var(--color-accent); flex: 0 0 auto; }

/* -------------------------------------------------- Sezione: FAQ (accordion) */
.sec-faq__inner { max-width: var(--container-md); margin: 0 auto; }
.sec-faq__list { display: flex; flex-direction: column; gap: 12px; }
.sec-faq__item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.sec-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  font-size: var(--text-base);
}
.sec-faq__q::-webkit-details-marker { display: none; }
.sec-faq__chevron { flex: 0 0 auto; color: var(--text-muted); transition: transform var(--duration-base) var(--ease-standard); }
.sec-faq__item[open] .sec-faq__chevron { transform: rotate(180deg); }
.sec-faq__a { padding: 0 20px 20px; font-size: var(--text-sm); }

/* -------------------------------------------------- Sezione: CTA finale */
.sec--cta { background: var(--surface-brand); }
.sec-cta__inner { max-width: var(--container-md); margin: 0 auto; text-align: center; }
.sec-cta__eyebrow { color: var(--gold-300); display: inline-block; margin-bottom: 12px; }
.sec-cta__title { font-size: var(--text-2xl); color: var(--white); letter-spacing: var(--tracking-tight); }
.sec-cta__subtitle { margin: 14px auto 0; max-width: 560px; color: var(--blue-200); font-size: var(--text-md); }
.sec--cta .cp-btn { margin-top: 28px; }

/* -------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .sec-media__grid { grid-template-columns: 1fr; }
  /* In single-column, l'immagine va sempre sotto al testo per coerenza */
  .sec-media__grid.is-image-left .sec-media__text,
  .sec-media__grid.is-image-left .sec-media__figure { order: initial; }
}

@media (max-width: 640px) {
  .sec { padding: 40px 16px; }
  .sec-hero__title { font-size: var(--text-2xl); }
  .sec-cta__title { font-size: var(--text-xl); }
}

/* -------------------------------------------------- Tipografia estesa (.page-prose)
   Copre tutti gli elementi Markdown (usata anche dalla demo Typography). */
.page-prose h1 { font-size: var(--text-2xl); color: var(--text-strong); margin-top: 32px; letter-spacing: var(--tracking-tight); }
.page-prose h4 { font-size: var(--text-base); color: var(--text-strong); margin-top: 20px; }
.page-prose h5 { font-size: var(--text-sm); color: var(--text-strong); margin-top: 18px; text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.page-prose h6 { font-size: var(--text-xs); color: var(--text-muted); margin-top: 16px; text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.page-prose strong { font-weight: var(--fw-bold); color: var(--text-strong); }
.page-prose em { font-style: italic; }
.page-prose small { font-size: var(--text-xs); color: var(--text-muted); }
.page-prose blockquote {
  margin: 18px 0; padding: 12px 18px;
  border-left: 4px solid var(--color-accent);
  background: var(--surface-accent-tint); color: var(--text-body);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.page-prose blockquote > :first-child { margin-top: 0; }
.page-prose hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 28px 0; }
.page-prose code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--surface-sunken); padding: 2px 6px;
  border-radius: var(--radius-xs); color: var(--blue-700);
}
.page-prose pre {
  background: var(--blue-950); color: var(--gray-100);
  padding: 16px 18px; border-radius: var(--radius-md);
  overflow-x: auto; font-size: var(--text-sm); line-height: var(--leading-normal);
}
.page-prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.page-prose table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: var(--text-sm); display: block; overflow-x: auto;
}
.page-prose th, .page-prose td { border: 1px solid var(--border-subtle); padding: 10px 12px; text-align: left; }
.page-prose thead th { background: var(--surface-sunken); color: var(--text-strong); font-weight: var(--fw-bold); }
.page-prose tbody tr:nth-child(even) { background: var(--surface-tint); }

/* -------------------------------------------------- Sezione: riquadro in evidenza (highlight-box) */
.hbox {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 32px;
}
/* Skin chiaro (default): card bianca con bordo oro */
.hbox--light {
  background: var(--surface-card);
  border: 2px solid var(--gold-400);
  box-shadow: var(--shadow-md);
}
/* Skin brand: sfondo blu, testo bianco (stile "Consulenza gratuita") */
.hbox--brand {
  background: var(--surface-brand);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-lg);
}
.hbox__bg {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 220px;
  height: 220px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.hbox__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-500);
  color: var(--white);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.hbox__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  align-items: center;
}
.hbox__eyebrow { color: var(--gold-700); }
.hbox__title {
  margin-top: 8px;
  font-size: var(--text-xl);
  color: var(--text-strong);
}
.hbox__text {
  margin-top: 10px;
  max-width: 50ch;
  font-size: var(--text-md);
  color: var(--text-muted);
}
.hbox__text > * + * { margin-top: 10px; }
.hbox__text strong { color: var(--text-strong); }
.hbox__features {
  display: flex;
  margin-top: 18px;
}
.hbox__features--row { flex-wrap: wrap; gap: 18px; }
.hbox__features--column { flex-direction: column; flex-wrap: nowrap; gap: 12px; }
.hbox__feature { display: flex; align-items: center; gap: 9px; }
.hbox__feature-icon { display: flex; color: var(--gold-600); }
.hbox__feature-text {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.hbox__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* Pannello incassato: base strutturale + due skin (scuro/chiaro) */
.hbox__aside--boxed {
  align-self: stretch;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius-lg);
}
.hbox__aside--boxed .cp-btn { margin-top: 8px; }
.hbox__aside--panel-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hbox__aside--panel-light {
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
}
.hbox__aside-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold-700);
}
.hbox__aside-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-extrabold);
  line-height: 1.25;
  color: var(--text-strong);
}
.hbox__aside-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.hbox__aside-text > * + * { margin-top: 8px; }
.hbox__aside-text strong { color: var(--text-strong); }

/* Override colori per lo skin brand (testo su fondo blu) */
.hbox--brand .hbox__eyebrow { color: var(--gold-300); }
.hbox--brand .hbox__title { color: var(--white); }
.hbox--brand .hbox__text { color: var(--blue-200); }
.hbox--brand .hbox__text strong { color: var(--white); }
.hbox--brand .hbox__feature-icon { color: var(--gold-400); }
.hbox--brand .hbox__feature-text { color: var(--white); }
.hbox--brand .hbox__aside-eyebrow { color: var(--gold-300); }
.hbox--brand .hbox__aside-title { color: var(--white); }
.hbox--brand .hbox__aside-text { color: var(--blue-200); }
.hbox--brand .hbox__aside-text strong { color: var(--white); }

/* Pannello chiaro: testo sempre scuro, anche dentro skin brand (deve vincere sugli override brand) */
.hbox__aside--panel-light .hbox__aside-eyebrow { color: var(--gold-700); }
.hbox__aside--panel-light .hbox__aside-title { color: var(--text-strong); }
.hbox__aside--panel-light .hbox__aside-text { color: var(--text-muted); }
.hbox__aside--panel-light .hbox__aside-text strong { color: var(--text-strong); }

/* -------------------------------------------------- Pagina errore (404) */
.sec--error .sec-error__code {
  display: block;
  font-size: clamp(72px, 14vw, 140px);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-accent);
  margin-bottom: 4px;
}
.sec--error .sec-hero__subtitle { max-width: 560px; margin-left: auto; margin-right: auto; }
