/* ==========================================================================
   Presentazione di progetto · Megiston
   Regole dal sistema di brand Megiston (Brand Book + Digitale, ottobre 2026)
   - Fondo Notte #01030F con bagliore blu soffuso; testo off-white #F4F4F4
   - Blu #0047BB solo per simbolo e riempimenti (chip selezionata, bagliore)
   - Occhielli e numeri in off-white, mai in blu
   - Bottoni: primario bianco con testo blu MAIUSCOLO; outline off-white; nessun bottone blu
   - Superfici in vetro: off-white 10%, blur 30px, nessun bordo, raggio 40px (20px < 768px)
   - Raleway: display Light 300, titoli SemiBold 600, testo Regular 400 (interlinea 1.65),
     didascalie Medium 500
   - Icone solo dal set Megiston, colore = testo (currentColor)
   ========================================================================== */

@font-face {
  font-family: "Raleway";
  src: url("./assets/raleway-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Colori (token ufficiali) */
  --bg: #01030f;
  --primary: #0047bb;
  --text: #f4f4f4;
  --white: #ffffff;
  --black: #000000;
  --grey-3: #828282;
  --grey-4: #bdbdbd;
  --text-muted: rgba(244, 244, 244, .7);
  --text-subtle: rgba(244, 244, 244, .5);
  --glass: rgba(244, 244, 244, .10);
  --glass-hover: rgba(244, 244, 244, .15);
  --glass-chip-hover: rgba(244, 244, 244, .18);
  --line: rgba(244, 244, 244, .12);
  --shadow-hover: 0 2px 30px rgba(255, 255, 255, .25);
  --shadow-bar: 0 4px 8px rgba(0, 0, 0, .15);
  --shadow-glow: 0 2px 40px rgba(0, 71, 187, .35);

  /* Forma */
  --radius-card: 40px;
  --radius-pill: 999px;
  --radius-outline: 28px;
  --blur: blur(30px);

  /* Tipografia (desktop) */
  --font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-h2: 72px; --fs-h3: 64px; --fs-h4: 40px; --fs-h5: 32px; --fs-h6: 24px;
  --fs-large: 24px; --fs-normal: 18px; --fs-small: 14px;
  --lh-body: 1.65;
  --lh-heading: 1.08;
  --ls-tight: -.01em;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-space: clamp(96px, 12vw, 176px);
}

@media (max-width: 767px) {
  :root {
    --fs-h2: 36px; --fs-h3: 32px; --fs-h4: 28px; --fs-h5: 24px; --fs-h6: 20px;
    --fs-large: 18px; --fs-normal: 16px; --fs-small: 12px;
    --radius-card: 20px;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-normal);
  font-weight: 400;
  line-height: var(--lh-body);
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(0, 71, 187, .38), rgba(0, 0, 0, 0) 60%),
    radial-gradient(900px 500px at -5% 8%, rgba(0, 71, 187, .16), rgba(0, 0, 0, 0) 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--primary); color: var(--white); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-space) 0; position: relative; }
.section:last-of-type { padding-bottom: var(--section-space); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 24px;
  font-size: var(--fs-small); font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text);
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.display {
  margin: 0;
  font-size: var(--fs-h2); font-weight: 300;
  line-height: var(--lh-heading); letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.display strong, .title strong { font-weight: 600; }
.title {
  margin: 0;
  font-size: var(--fs-h4); font-weight: 300;
  line-height: var(--lh-heading); letter-spacing: var(--ls-tight);
  text-wrap: balance;
}
.subtitle { margin: 0 0 12px; font-size: var(--fs-h6); font-weight: 600; line-height: 1.25; }
.lead { margin: 28px 0 0; max-width: 34ch; font-size: var(--fs-large); color: var(--text-muted); line-height: 1.5; }
.body-muted { color: var(--text-muted); margin: 0; }
.caption { font-size: var(--fs-small); font-weight: 500; color: var(--text-subtle); letter-spacing: .02em; }
.num { font-size: var(--fs-small); font-weight: 500; letter-spacing: .18em; color: var(--text); opacity: .8; }

.head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; margin-bottom: 64px; }
.head p { margin: 0; color: var(--text-muted); max-width: 52ch; }
.head--stack { grid-template-columns: 1fr; align-items: start; }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; margin-bottom: 40px; } }

/* ---------- Icone ---------- */
.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }
.icon--sm { width: 16px; height: 16px; }
.icon--user { width: 20px; height: 20px; }
.icon--pen { width: 24px; height: 24px; fill: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font); text-transform: uppercase; text-decoration: none; letter-spacing: .04em;
  cursor: pointer; transition: opacity .2s, background-color .2s, transform .25s;
  border: 0;
}
.btn--primary { background: var(--white); color: var(--primary); }
.btn--primary:hover { opacity: .85; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--text); border-radius: var(--radius-outline); }
.btn--outline:hover { background: var(--glass); }
.btn--normal { font-size: 24px; font-weight: 500; padding: 16px 28px; }
.btn--small { font-size: 14px; font-weight: 400; padding: 10px 16px; }
.btn--small .icon { width: 16px; height: 16px; }
.btn .icon { transition: transform .25s; }
.btn:hover .icon--diag { transform: translate(3px, -3px); }
@media (max-width: 767px) { .btn--normal { font-size: 18px; padding: 14px 22px; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s; }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ---------- Superfici in vetro ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: var(--radius-card);
  padding: 40px;
  transition: background-color .25s, box-shadow .25s;
}
.glass--hover:hover { background: var(--glass-hover); box-shadow: var(--shadow-hover); }
@media (max-width: 767px) { .glass { padding: 24px; } }

.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cards--3, .cards--2, .cards--4 { grid-template-columns: 1fr; } }
.card .num { display: block; margin-bottom: 40px; }
.card h3 { margin: 0 0 12px; font-size: var(--fs-h6); font-weight: 600; line-height: 1.25; }
.card p { margin: 0; color: var(--text-muted); }

/* ---------- Chip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; line-height: 1; border-radius: var(--radius-pill);
  background: var(--glass); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  font-size: var(--fs-normal); color: var(--text); border: 0; font-family: var(--font);
  transition: background-color .2s; cursor: default;
}
button.chip { cursor: pointer; }
button.chip:hover { background: var(--glass-chip-hover); }
.chip.is-selected { background: var(--primary); }
.chip--small { font-size: var(--fs-small); padding: 10px 16px; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- Menu (barra in vetro a pillola) ---------- */
.menu {
  position: fixed; z-index: 50; top: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
}
.menu__bar {
  display: flex; align-items: center; gap: 16px;
  max-width: calc(100vw - 100px);
  padding: 10px 28px 10px 10px;
  border-radius: var(--radius-pill);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-bar);
}
.menu__logo { display: block; width: 28px; height: 28px; flex: none; }
.menu__logo img { width: 28px; height: 28px; }
.menu__client { margin: 0; display: flex; align-items: baseline; gap: 12px; font-size: 18px; white-space: nowrap; }
.menu__client strong { font-weight: 600; }
.menu__client span { color: var(--text-muted); }
.menu__client span::before { content: "·"; margin-right: 12px; color: var(--text-subtle); }
.menu__items { display: flex; flex: 1; justify-content: space-between; gap: 16px; margin: 0; padding: 0; list-style: none; }
.menu__items a { font-size: 18px; text-decoration: none; text-transform: lowercase; white-space: nowrap; transition: opacity .2s; }
.menu__items:hover a { opacity: .45; }
.menu__items:hover a:hover, .menu__items a.is-current { opacity: 1; }
.menu__items:not(:hover) a:not(.is-current) { opacity: .45; }
.menu__items.no-current:not(:hover) a { opacity: 1; }
.menu__contact {
  display: grid; place-items: center; width: 47px; height: 48px; flex: none;
  border-radius: 50%; color: var(--text);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow-bar); transition: background-color .2s;
}
.menu__contact:hover { background: var(--glass-hover); }
@media (max-width: 767px) {
  .menu { top: auto; bottom: 17px; left: 12px; right: 12px; transform: none; }
  .menu__bar { flex: 1; max-width: none; gap: 12px; padding: 10px 16px 10px 10px; }
  .menu__client { font-size: 16px; }
  .menu__items a { font-size: 13px; }
  .menu__items { gap: 8px; }
}
@media (max-width: 420px) { .menu__items li.hide-xs { display: none; } }

/* ---------- Apertura ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; padding-block: 140px 80px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__visual { position: relative; }
.logo-stage { display: grid; gap: 28px; padding: 48px; }
.logo-stage__main { width: min(300px, 70%); margin-inline: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }
.logo-stage__lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
.logo-stage__lines figure { margin: 0; display: grid; gap: 8px; justify-items: center; text-align: center; }
.logo-stage__lines img { width: 100%; max-width: 104px; }
.logo-stage__lines figcaption { font-size: 12px; font-weight: 500; color: var(--text-subtle); letter-spacing: .04em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 56px; font-size: var(--fs-small); color: var(--text-subtle); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding-top: 96px; } }

/* ---------- Statement ---------- */
.statement { max-width: 22ch; }
.statement-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.statement-row .body-muted { font-size: var(--fs-large); line-height: 1.5; }
@media (max-width: 900px) { .statement-row { grid-template-columns: 1fr; } }

/* ---------- Linee (identità) ---------- */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1080px) { .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lines { grid-template-columns: 1fr; } }
.line-card { display: grid; gap: 22px; align-content: start; }
.line-card__logo { background: var(--white); border-radius: 24px; padding: 26px; display: grid; place-items: center; aspect-ratio: 16 / 10; }
.line-card__logo img { width: 62%; }
.line-card__name { display: grid; gap: 4px; }
.line-card__name strong { font-size: var(--fs-h6); font-weight: 600; white-space: nowrap; }
.line-card__name span { font-size: var(--fs-small); color: var(--text-subtle); font-weight: 500; }
.line-card .swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swatch { border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.swatch b { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.line-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.line-card li { font-size: 15px; color: var(--text-muted); line-height: 1.5; }
.line-card li b { color: var(--text); font-weight: 600; }
.line-card--shop { grid-column: 1 / -1; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; }
@media (max-width: 760px) { .line-card--shop { grid-template-columns: 1fr; } }

/* ---------- Media (schermate Figma) ---------- */
.media { margin: 0; display: grid; gap: 14px; }
.media__frame {
  position: relative; overflow: hidden; border-radius: 20px; background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.media__frame img { width: 100%; }
.media__frame--scroll { max-height: 720px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(1, 3, 15, .35) transparent; }
.media figcaption { font-size: var(--fs-small); font-weight: 500; color: var(--text-subtle); display: flex; justify-content: space-between; gap: 16px; }
.zoomable { cursor: zoom-in; }
.browser { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #eeeef0; }
.browser i { width: 10px; height: 10px; border-radius: 50%; background: #c9c9ce; }
.browser span { margin-left: 10px; font-size: 12px; color: #55555f; font-weight: 500; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.split--reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split--reverse > :first-child { order: 2; }
.sticky { position: sticky; top: 120px; }
@media (max-width: 960px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } .sticky { position: static; } }
.steps { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { margin: 0 0 4px; font-size: var(--fs-normal); font-weight: 600; }
.steps p { margin: 0; color: var(--text-muted); font-size: 16px; }

/* ---------- Percorso ---------- */
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.journey .glass { padding: 32px 28px; display: grid; gap: 24px; align-content: start; }
.journey h3 { margin: 0; font-size: var(--fs-normal); font-weight: 600; }
.journey p { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 1100px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .journey { grid-template-columns: 1fr; } }

/* ---------- Tabs (selettore linea) ---------- */
.mode-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mode-demo__ui { background: var(--white); color: #16161d; border-radius: 24px; padding: 28px; display: grid; gap: 16px; }
.mode-demo__ui .ui-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ui-btn { border-radius: 26px; padding: 12px 22px; font-weight: 700; font-size: 15px; color: #fff; transition: background-color .3s; }
.ui-label { border-radius: 4px; padding: 5px 9px 3px; font-weight: 700; font-size: 12px; transition: background-color .3s, color .3s; }
.ui-price { font-weight: 700; font-size: 20px; transition: color .3s; }
.ui-link { font-weight: 600; font-size: 15px; transition: color .3s; }
.ui-band { border-radius: 14px; padding: 18px 20px; color: #fff; font-weight: 700; transition: background-color .3s; }
@media (max-width: 900px) { .mode-demo { grid-template-columns: 1fr; } }

/* ---------- Liste di regole ---------- */
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.rules li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules h3 { margin: 0 0 6px; font-size: var(--fs-h6); font-weight: 600; line-height: 1.25; }
.rules p { margin: 0; color: var(--text-muted); }

/* ---------- Note ---------- */
.note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.note p { margin: 0; color: var(--text-muted); }

/* ---------- Footer (card in vetro) ---------- */
.footer { padding: 24px 0 32px; }
.footer .glass { position: relative; display: grid; gap: 48px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.footer__logotype { width: min(420px, 100%); }
.footer__payoff { width: min(360px, 80%); opacity: .9; margin-top: 22px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; margin: 0; padding: 0; list-style: none; }
.footer__nav a { font-size: var(--fs-h5); text-transform: lowercase; text-decoration: none; transition: opacity .2s; line-height: 1.3; }
.footer__nav a:hover { opacity: .7; }
.footer__rail { display: flex; align-items: center; gap: 16px; }
.footer__rail .line { width: 1px; height: 32px; background: rgba(244, 244, 244, .85); }
.footer__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer__meta a { text-decoration: underline; transition: opacity .2s; }
.footer__meta a:hover { opacity: .7; }
.footer__legal { font-size: 14px; color: var(--text-muted); margin: 0; }
.footer__symbol { position: absolute; right: 40px; bottom: 40px; width: 87px; opacity: .75; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; } .footer__symbol { display: none; } .footer__nav { grid-template-columns: 1fr; } .footer__legal { font-size: 12px; } }
@media (max-width: 767px) { .footer { padding-bottom: 110px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(1, 3, 15, .82); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); overflow-y: auto; padding: 88px var(--gutter) 40px; }
.lightbox.is-open { display: block; }
.lightbox img { margin: 0 auto; max-width: min(1440px, 100%); border-radius: 12px; }
.lightbox__close { position: fixed; top: 24px; right: 24px; width: 48px; height: 48px; padding: 0; border-radius: 50%; }

/* ---------- Comparsa ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Stampa ---------- */
@media print {
  .menu, .lightbox { display: none !important; }
  body { background: var(--bg); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { break-inside: avoid; }
  .media__frame--scroll { max-height: none; }
}

/* ---------- Capitoli: choice chip fisse (come megiston.com/panorama) ---------- */
.chapters { position: sticky; top: 96px; z-index: 40; padding: 16px 0; }
.chapters__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chapters .chip { font-size: var(--fs-normal); text-decoration: none; white-space: nowrap; line-height: 1; transition: background-color .2s; }
.chapters a.chip:hover { background: var(--glass-chip-hover); }
.chapters a.chip[aria-current] { background: var(--primary); }
@media (max-width: 767px) {
  .chapters { top: 0; padding: 12px 0; }
  .chapters__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chapters__list::-webkit-scrollbar { display: none; }
  .chapters .chip { font-size: var(--fs-small); }
}

/* ---------- Form contatti (brand book Megiston · 11 Form e checkbox) ---------- */
.fm { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 140px; }
.fm-col { display: flex; flex-direction: column; gap: 40px; }
.fm-col .body-muted { margin: -16px 0 0; }
.fm-title { margin: 0; font-size: var(--fs-h2); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
.fm-field { display: flex; flex-direction: column; }
.fm-input {
  width: 100%; margin: 0; padding: 0 0 16px;
  background: transparent; color: var(--text);
  border: 0; border-bottom: 1px solid var(--text); border-radius: 0;
  font-family: inherit; font-size: var(--fs-normal); line-height: normal;
  resize: vertical; transition: border-color .2s;
}
.fm-input::placeholder { color: var(--text); opacity: 1; text-transform: uppercase; }
.fm-input:hover { border-bottom-color: rgba(244, 244, 244, .7); }
.fm-input:focus { outline: none; border-bottom-color: var(--text); }
textarea.fm-input { min-height: 4rem; }
.fm-input.err { border-bottom-color: #ff8a8a; }
.fm-error { margin: -28px 0 0; font-size: var(--fs-small); color: #ff8a8a; }
.fm-actions .fm-error { margin: -12px 0 0; }
.fm-foot { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 140px; align-items: start; }
.fm-h { margin: 0 0 4px; font-size: var(--fs-h5); font-weight: 400; line-height: 1.1; }
.fm-foot .body-muted { margin: 0; }
.fm-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.fm.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
.consent { display: flex; align-items: flex-start; gap: 24px; font-size: var(--fs-small); line-height: normal; letter-spacing: -.01em; }
.consent a { color: inherit; text-decoration: underline; }
.cb { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; flex-shrink: 0; border: 1px solid var(--text); border-radius: 0; background: transparent; cursor: pointer; transition: background-color .15s; }
.cb:hover { background: rgba(244, 244, 244, .15); }
.cb:checked { background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 15.0589'%3E%3Cpath fill='%230047BB' d='M17.5377 7.20221C18.8976 7.20221 20 5.58994 20 3.60111C20 1.61227 18.8976 0 17.5377 0C16.1778 0 15.0754 1.61227 15.0754 3.60111C15.0754 5.58994 16.1778 7.20221 17.5377 7.20221Z M5.7769 3.10522H1.2231C0.547601 3.10522 0 3.61327 0 4.23997C0 4.86668 0.547601 5.37472 1.2231 5.37472H5.7769C6.4524 5.37472 7 4.86668 7 4.23997C7 3.61327 6.4524 3.10522 5.7769 3.10522Z M10.5383 15.0589C12.3419 15.0589 14.1178 14.6166 15.6795 13.7799L16.5156 13.3344C17.1652 12.985 17.3414 12.1676 16.8301 11.6098C16.4431 11.1835 15.759 11.1162 15.2373 11.395L14.453 11.815C13.261 12.4528 11.91 12.7894 10.5349 12.7894C9.15977 12.7894 7.80883 12.4528 6.61682 11.815L5.83252 11.395C5.31426 11.1162 4.63015 11.1835 4.23973 11.6098C3.73183 12.1676 3.90458 12.985 4.55414 13.3344L5.39027 13.7799C6.95197 14.6166 8.72788 15.0589 10.5314 15.0589H10.5383Z'/%3E%3C/svg%3E") center / 20px auto no-repeat; }
.cb:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.cb.err { border-color: #ff8a8a; }
@media (max-width: 900px) {
  .fm, .fm-foot { grid-template-columns: 1fr; }
  .fm-actions { align-items: stretch; }
  .fm-actions .btn { width: 100%; justify-content: center; }
}
.section.contact { padding-bottom: 16px; }

/* ---------- Motore: spaziatura tra blocchi e varianti ---------- */
.statement-row { margin-bottom: 72px; }
.blk + .blk { margin-top: 24px; }
.blk + .blk--loose { margin-top: 96px; }
.chips--spaced { margin-top: 28px; }
.split__text { margin-top: 20px; }
.mode-demo .steps { margin-top: 28px; }
.card--media { display: grid; gap: 28px; align-content: start; }
.line-card__body { display: grid; gap: 20px; }
.line-card--shop .line-card__logo { aspect-ratio: auto; padding: 48px; }
.line-card--shop .line-card__logo img { width: 56%; }
@media (min-width: 1101px) {
  .journey--3, .journey--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
