/* ==========================================================================
   Compro Oro | foglio di stile condiviso
   Indice: 1 Token · 2 Base · 3 Tipografia · 4 Layout · 5 Pulsanti · 6 Header e menu
           7 Hero · 8 Fasce e sezioni home · 9 Quotazioni e calcolatore · 10 Mockup 3D
           11 Pagine interne · 12 FAQ · 13 Form · 14 Footer e cookie · 15 Movimento
   Le regole usano solo i token qui sotto: per cambiare palette basta modificare :root.
   ========================================================================== */

/* ---------- 1. TOKEN ---------- */
:root {
  /* Palette */
  --green-900: #0B2B22;
  --green-800: #123D30;
  --green-700: #1B5443;
  --ivory-100: #F5F0E6;
  --ivory-200: #E9E1D0;
  --ivory-300: #D8CDB5;
  --gold: #C9A44C;
  --gold-light: #E6D091;
  --gold-deep: #7A5E1A;      /* oro scuro: per testi su avorio (contrasto 5,4:1) */
  --ink-muted: #3F554C;      /* testo secondario su avorio */
  --error: #9B2C1F;
  --error-on-dark: #F1A294;
  --up: #1F6B3E;
  --down: #9B2C1F;

  /* Trasparenze derivate */
  --ivory-74: rgba(245, 240, 230, 0.76);
  --ivory-14: rgba(245, 240, 230, 0.14);
  --ivory-06: rgba(245, 240, 230, 0.06);
  --ink-16: rgba(11, 43, 34, 0.16);
  --ink-08: rgba(11, 43, 34, 0.08);
  --gold-45: rgba(201, 164, 76, 0.45);
  --gold-14: rgba(201, 164, 76, 0.14);
  --scrim: rgba(11, 43, 34, 0.88);
  --shadow-soft: 0 1px 2px rgba(11, 43, 34, 0.08), 0 12px 32px -8px rgba(11, 43, 34, 0.22), 0 40px 80px -24px rgba(11, 43, 34, 0.28);
  --shadow-deep: 0 2px 4px rgba(0, 0, 0, 0.2), 0 24px 48px -12px rgba(0, 0, 0, 0.45), 0 60px 120px -30px rgba(0, 0, 0, 0.5);

  /* Tipografia */
  --font-display: "Cormorant Garamond", "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-text: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spaziature */
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: clamp(4.5rem, 9vw, 8.5rem);
  --container: 1240px;
  --header-h: 76px;

  /* Forme */
  --r-1: 2px;
  --r-2: 6px;
  --r-3: 14px;

  /* Movimento */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.18, 1);

  /* Grana: rumore SVG generato, nessun file esterno */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --contours: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600' fill='none' stroke='%23C9A44C' stroke-width='1'><path d='M-20 420C120 360 200 440 330 380S560 250 700 310 860 330 940 280'/><path d='M-20 390C120 330 200 410 330 350S560 220 700 280 860 300 940 250' opacity='.85'/><path d='M-20 360C120 300 200 380 330 320S560 190 700 250 860 270 940 220' opacity='.7'/><path d='M-20 330C120 270 200 350 330 290S560 160 700 220 860 240 940 190' opacity='.58'/><path d='M-20 300C120 240 200 320 330 260S560 130 700 190 860 210 940 160' opacity='.46'/><path d='M-20 270C120 210 200 290 330 230S560 100 700 160 860 180 940 130' opacity='.36'/><path d='M-20 240C120 180 200 260 330 200S560 70 700 130 860 150 940 100' opacity='.26'/><path d='M-20 450C120 390 200 470 330 410S560 280 700 340 860 360 940 310' opacity='.7'/><path d='M-20 480C120 420 200 500 330 440S560 310 700 370 860 390 940 340' opacity='.5'/><path d='M-20 510C120 450 200 530 330 470S560 340 700 400 860 420 940 370' opacity='.32'/></svg>");
}

/* Temi per sezione: ogni sezione dichiara fondo, testo, linee e colore d'accento. */
.theme-dark {
  --bg: var(--green-900);
  --bg-2: var(--green-800);
  --fg: var(--ivory-100);
  --fg-muted: var(--ivory-74);
  --line: var(--ivory-14);
  --accent: var(--gold);
  --focus: var(--gold-light);
  --field-bg: var(--ivory-06);
  --field-line: var(--ivory-14);
}
.theme-light {
  --bg: var(--ivory-100);
  --bg-2: var(--ivory-200);
  --fg: var(--green-900);
  --fg-muted: var(--ink-muted);
  --line: var(--ink-16);
  --accent: var(--gold-deep);
  --focus: var(--green-800);
  --field-bg: var(--ivory-100);
  --field-line: var(--ink-16);
}
.theme-sand {
  --bg: var(--ivory-200);
  --bg-2: var(--ivory-100);
  --fg: var(--green-900);
  --fg-muted: var(--ink-muted);
  --line: var(--ink-16);
  --accent: var(--gold-deep);
  --focus: var(--green-800);
  --field-bg: var(--ivory-100);
  --field-line: var(--ink-16);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--green-900);
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ivory-100);
  background: var(--green-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--green-900); }
:focus-visible { outline: 2px solid var(--focus, var(--gold-light)); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* Barra di scorrimento coerente con il tema */
html { scrollbar-color: var(--gold) var(--green-900); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--green-900); }
::-webkit-scrollbar-thumb { background: var(--gold-45); border-radius: 10px; border: 2px solid var(--green-900); }

/* Grana leggera su tutto il sito */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: var(--grain);
  opacity: 0.045;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 900;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 2000;
  padding: 0.75rem 1.25rem; background: var(--gold); color: var(--green-900); font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 2px solid var(--ivory-100); outline-offset: 2px; }
.icon { flex: none; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; }

/* ---------- 3. TIPOGRAFIA ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
.display, h1 { font-size: clamp(2.75rem, 7.2vw, 5.75rem); line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.12; }
h4 { font-size: 1.3rem; line-height: 1.2; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.38rem); line-height: 1.55; color: var(--fg-muted); max-width: 52ch; text-wrap: pretty; }
.muted { color: var(--fg-muted); }
.small { font-size: 0.9rem; }
.accent { color: var(--accent); }
p { text-wrap: pretty; max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose a, .link { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; }
.prose a:hover, .link:hover { text-decoration-thickness: 2px; }
.prose h3 { margin-top: 2em; margin-bottom: 0.5em; }
.numeral { font-family: var(--font-display); font-variant-numeric: lining-nums; font-feature-settings: "lnum"; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 4. LAYOUT ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section {
  position: relative;
  padding-block: var(--space-8);
  background: var(--bg);
  color: var(--fg);
}
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); max-width: 46rem; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr); align-items: end; }
.rule { height: 1px; background: var(--gold-45); border: 0; width: 100%; }
.gold-rule { display: block; width: 3.5rem; height: 1px; background: var(--gold); margin-block: var(--space-3); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); }
.stack > * + * { margin-top: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-5); }
.center { text-align: center; margin-inline: auto; }
.center .gold-rule { margin-inline: auto; }

@media (min-width: 62em) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-6); }
}

/* ---------- 5. PULSANTI ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-line: transparent;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  min-height: 3.25rem; padding: 0.8em 1.6em;
  font-family: var(--font-text); font-size: 0.97rem; font-weight: 700; letter-spacing: 0.005em; line-height: 1.2;
  text-decoration: none; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-line); border-radius: var(--r-1);
  translate: var(--mx, 0) var(--my, 0);
  transition: translate 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::after {              /* riflesso che attraversa il pulsante in hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn:active { scale: 0.98; }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--green-900); }
.btn--gold:hover { --btn-bg: var(--gold-light); }
.btn--ink { --btn-bg: var(--green-900); --btn-fg: var(--ivory-100); }
.btn--ink:hover { --btn-bg: var(--green-700); }
.btn--ghost { --btn-line: currentColor; --btn-fg: var(--fg); }
.btn--ghost:hover { --btn-bg: var(--ivory-06); }
.theme-light .btn--ghost:hover, .theme-sand .btn--ghost:hover { --btn-bg: var(--ink-08); }
.btn--sm { min-height: 2.75rem; padding: 0.55em 1.15em; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.text-link {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 0.2em; transition: background-size 0.4s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }
.text-link .icon { transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- 6. HEADER E MENU ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  --fg: var(--ivory-100); --focus: var(--gold-light); color: var(--ivory-100);
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--scrim); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ivory-14);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.site-header.is-solid::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__bar {
  width: min(100% - 2 * var(--gutter), 1360px); height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.brand { display: inline-flex; color: var(--ivory-100); text-decoration: none; flex: none; }
.wordmark { width: clamp(168px, 18vw, 206px); height: auto; overflow: visible; }
.nav { display: none; margin-inline: auto; }
.nav__list { display: flex; gap: clamp(0.9rem, 1.9vw, 1.9rem); margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative; display: block; padding: 0.5rem 0; font-size: 0.93rem; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--ivory-74);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ivory-100); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__item--wide { display: none; }
.nav__cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
  background: none; border: 1px solid var(--ivory-14); border-radius: var(--r-1); color: var(--ivory-100);
}
.menu-toggle__bars { position: relative; width: 20px; height: 12px; }
.menu-toggle__bars i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-toggle__bars i:first-child { top: 1px; }
.menu-toggle__bars i:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--green-900) var(--contours) center bottom / cover no-repeat;
  --focus: var(--gold-light); color: var(--ivory-100);
  visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-in-out), opacity 0.3s linear, visibility 0s 0.7s;
  overflow-y: auto;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 0.7s var(--ease-in-out), opacity 0.2s linear, visibility 0s; }
.menu-open { overflow: hidden; }
.mobile-menu__nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu__link {
  display: block; padding: 0.55rem 0; font-family: var(--font-display); font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.1;
  text-decoration: none; color: var(--ivory-100);
  border-bottom: 1px solid var(--ivory-14);
}
.mobile-menu__nav li { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.menu-open .mobile-menu__nav li { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i, 0) * 0.05s); }
.mobile-menu__link[aria-current="page"] { color: var(--gold); }
.mobile-menu__foot { display: grid; gap: var(--space-4); padding-top: var(--space-5); }
.mobile-menu__contacts { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.mobile-menu__contacts a { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600; min-height: 2.75rem; }

@media (min-width: 48em) { .nav__cta { display: inline-flex; } .menu-toggle { margin-left: 0; } }
@media (min-width: 80em) {
  .nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
}
@media (min-width: 90em) { .nav__item--wide { display: block; } }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  min-height: 100svh; padding-top: var(--header-h);
  display: grid; align-items: center;
  background: linear-gradient(180deg, var(--green-900) 0%, var(--green-900) 55%, var(--green-800) 100%);
  color: var(--ivory-100); --fg: var(--ivory-100); --fg-muted: var(--ivory-74); --accent: var(--gold); --focus: var(--gold-light);
}
.hero::before {                /* curve di livello decorative */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--contours) center 72% / min(1500px, 160%) auto no-repeat;
  opacity: 0.22;
}
.hero__inner { width: min(100% - 2 * var(--gutter), 1360px); margin-inline: auto; display: grid; gap: var(--space-4); padding-block: clamp(1.5rem, 4vw, 3rem) 4.5rem; }
.hero__copy { position: relative; z-index: 2; display: grid; gap: var(--space-4); align-content: center; }
.hero h1 { max-width: 12ch; }
.hero__lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ivory-74); max-width: 34ch; }
.hero__status { margin-top: var(--space-3); }
.hero__stage { position: relative; width: 100%; height: clamp(300px, 70vw, 520px); margin-inline: auto; }
.hero__canvas-wrap { position: absolute; inset: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__fallback { position: absolute; inset: 6% 2%; transition: opacity 0.8s var(--ease); }
.hero__fallback .illus { width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
.hero__stage.is-3d .hero__canvas { opacity: 1; }
.hero__stage.is-3d .hero__fallback { opacity: 0; pointer-events: none; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; translate: -50% 0; display: none; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--ivory-74); font-size: 0.8rem; text-decoration: none;
}
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: scroll-hint 2.4s var(--ease) infinite; }
@keyframes scroll-hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (min-width: 64em) {
  .hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); align-items: center; gap: var(--space-5); padding-bottom: 5.5rem; }
  .hero__stage { height: min(74vh, 700px); }
  .hero__scroll { display: flex; }
}

.open-status { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--ivory-74); }
.open-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ivory-74); }
.open-status.is-open .open-status__dot { background: #6FCB8B; outline: 3px solid rgba(111, 203, 139, 0.25); }
.theme-light .open-status, .theme-sand .open-status { color: var(--ink-muted); }

/* Hero delle pagine interne */
.page-hero {
  position: relative; overflow: clip; isolation: isolate;
  padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem)) 0 clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  color: var(--ivory-100); --fg: var(--ivory-100); --fg-muted: var(--ivory-74); --accent: var(--gold); --focus: var(--gold-light);
}
.page-hero::before {
  content: ""; position: absolute; inset: -10% -5%; z-index: -1; background: var(--contours) right bottom / min(1300px, 150%) auto no-repeat; opacity: 0.2;
}
.page-hero__inner { display: grid; gap: var(--space-4); }
.page-hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.2rem); max-width: 16ch; }
.page-hero .lede { color: var(--ivory-74); max-width: 48ch; }
.crumbs { font-size: 0.9rem; color: var(--ivory-74); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-current] { color: var(--gold); }

/* ---------- 8. FASCE E SEZIONI HOME ---------- */
/* Fascia di fiducia: quattro punti separati da linee sottili, non quattro card. */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust__item { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5) var(--space-4); border-top: 1px solid var(--line); }
.trust__item:nth-child(odd) { padding-left: 0; }
.trust__item:nth-child(even) { border-left: 1px solid var(--line); }
.trust__item h3 { font-size: 1.45rem; }
.trust__item p { font-size: 0.97rem; color: var(--fg-muted); }
.trust__icon { color: var(--accent); }
@media (min-width: 62em) {
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust__item { padding: var(--space-5) var(--space-5); border-top: 0; border-left: 1px solid var(--line); }
  .trust__item:first-child { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(odd) { padding-left: var(--space-5); }
  .trust__item:first-child { padding-left: 0; }
}

/* Anteprima quotazioni */
.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 62em) { .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-7); } .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.qlist { margin: 0; padding: 0; list-style: none; }
.qrow { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-3); align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.qrow:last-child { border-bottom: 0; }
.qrow__name { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.qrow__name small { font-family: var(--font-text); font-size: 0.8rem; color: var(--fg-muted); margin-left: 0.4em; }
.qrow__price { font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; }
.qrow__num { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; }
.qrow__price small { font-size: 0.8rem; font-weight: 500; color: var(--fg-muted); }
.qchange { display: inline-block; min-width: 4.6rem; padding: 0.2em 0.6em; text-align: center; font-size: 0.86rem; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 999px; border: 1px solid currentColor; }
.qchange--up { color: var(--up); }
.qchange--down { color: var(--down); }
.qchange--flat { color: var(--fg-muted); }
.theme-dark .qchange--up { color: #7FD79B; }
.theme-dark .qchange--down { color: var(--error-on-dark); }
.quote-note { font-size: 0.88rem; color: var(--fg-muted); margin-top: var(--space-3); }

/* Servizi: elenco editoriale con righe, non una griglia di card uguali */
.service-list { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3) var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); transition: padding-left 0.5s var(--ease), background-color 0.4s var(--ease); }
.service:hover { padding-left: 0.75rem; }
.service__icon { color: var(--accent); margin-top: 0.3rem; }
.service h3 { font-size: 1.7rem; margin-bottom: 0.35rem; }
.service p { color: var(--fg-muted); font-size: 1rem; }
.service .text-link { margin-top: 0.6rem; font-size: 0.95rem; }

/* Come funziona in 4 passi (home) */
.steps { position: relative; display: grid; gap: var(--space-5); counter-reset: step; }
.step { position: relative; display: grid; gap: var(--space-2); padding-left: 4.5rem; }
.step__n { position: absolute; left: 0; top: -0.2rem; font-family: var(--font-display); font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); width: 3.4rem; text-align: center; }
.step h3 { font-size: 1.65rem; }
.step p { color: var(--fg-muted); font-size: 1rem; }
.step__time { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.steps::before { content: ""; position: absolute; left: 1.7rem; top: 3.4rem; bottom: 1rem; width: 1px; background: var(--gold-45); }
@media (min-width: 62em) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
  .step { padding: 5.5rem 0 0; }
  .step__n { top: 0; left: 0; text-align: left; font-size: 4.6rem; width: auto; }
  .steps::before { left: 0; right: 0; top: 4.6rem; bottom: auto; width: auto; height: 1px; }
}

/* Privati e aziende: due percorsi con altezza e fondo diversi */
.paths { display: grid; gap: var(--space-5); }
.path { padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: var(--r-2); display: grid; gap: var(--space-4); align-content: start; position: relative; overflow: hidden; }
.path--private { background: var(--ivory-200); color: var(--green-900); --fg-muted: var(--ink-muted); --line: var(--ink-16); --accent: var(--gold-deep); --focus: var(--green-800); }
.path--business { background: var(--green-800); color: var(--ivory-100); --fg-muted: var(--ivory-74); --line: var(--ivory-14); --accent: var(--gold); --focus: var(--gold-light); box-shadow: var(--shadow-soft); }
.path h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.path__list { display: grid; gap: var(--space-2); }
.path__list li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
.path__list .icon { color: var(--accent); margin-top: 0.25rem; }
.path .btn-row { margin-top: var(--space-2); }
@media (min-width: 62em) {
  .paths { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 0; }
  .path--business { margin-top: var(--space-7); margin-left: -2rem; z-index: 1; }
}

/* Recensioni segnaposto: tre voci con peso diverso */
.reviews { display: grid; gap: var(--space-5); }
.review { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.review blockquote { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.3; }
.review--lead blockquote { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.18; }
.review figcaption { font-size: 0.92rem; color: var(--fg-muted); }
.review__flag { display: inline-block; margin-top: 0.4rem; padding: 0.15em 0.7em; font-size: 0.8rem; font-weight: 600; border: 1px dashed var(--accent); color: var(--accent); border-radius: 999px; }
@media (min-width: 62em) {
  .reviews { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: var(--space-7); }
  .review--lead { grid-row: span 2; }
}

/* Visita: orari, indirizzo e mappa */
.visit { display: grid; gap: var(--space-6); }
@media (min-width: 62em) { .visit { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-7); align-items: stretch; } }
.hours { margin-top: var(--space-3); }
.hours th, .hours td { padding: 0.7rem 0; text-align: left; font-weight: 500; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); font-weight: 700; }
.contact-lines { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.contact-line { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; text-decoration: none; }
.contact-line .icon { color: var(--accent); margin-top: 0.2rem; }
.contact-line strong { display: block; font-weight: 700; }
a.contact-line:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
.map { position: relative; min-height: 340px; border-radius: var(--r-2); overflow: hidden; background: var(--green-800); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.55) contrast(1.05) sepia(0.15); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: var(--space-3); justify-items: center; padding: var(--space-5); text-align: center; background: var(--contours) center / cover, var(--green-800); color: var(--ivory-100); }
.map__placeholder p { color: var(--ivory-74); max-width: 32ch; }

/* Invito finale */
.final-cta { position: relative; overflow: clip; isolation: isolate; text-align: center; }
.final-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--contours) center / cover; opacity: 0.18; }
.final-cta h2 { max-width: 16ch; margin-inline: auto; font-size: clamp(2.4rem, 6vw, 4.8rem); }
.final-cta .lede { margin-inline: auto; margin-top: var(--space-4); }
.final-cta .btn-row { justify-content: center; margin-top: var(--space-5); }
.final-cta__phone { margin-top: var(--space-4); color: var(--fg-muted); }
.final-cta__phone a { color: var(--fg); font-weight: 700; }

/* ---------- 9. QUOTAZIONI E CALCOLATORE ---------- */
.qboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 62em) { .qboard { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qtab {
  display: grid; gap: 0.35rem; text-align: left; padding: var(--space-3) var(--space-3) var(--space-4);
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-2); color: var(--fg);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), translate 0.4s var(--ease);
}
.qtab:hover { translate: 0 -3px; border-color: var(--gold-45); }
.qtab[aria-pressed="true"] { background: var(--ivory-06); border-color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.qtab__name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.qtab__price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.qtab__price small { font-family: var(--font-text); font-size: 0.78rem; color: var(--fg-muted); font-weight: 500; }
.qtab .qchange { justify-self: start; }

.chart { margin-top: var(--space-5); padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--ivory-06); }
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); align-items: flex-end; margin-bottom: var(--space-3); }
.chart__title { font-size: 1.7rem; }
.chart__sub { font-size: 0.9rem; color: var(--fg-muted); margin-top: 0.25rem; }
.chart__now { display: grid; text-align: right; }
.chart__now-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.chart__now-date { font-size: 0.88rem; color: var(--fg-muted); }
.chart__svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; border-radius: var(--r-1); }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__tick { fill: var(--fg-muted); font-family: var(--font-text); font-size: 12px; }
.chart__line { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart__vline { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 4; }
.chart__dot { fill: var(--green-900); stroke: var(--gold); stroke-width: 2.5; }
.chart__cursor { opacity: 0; transition: opacity 0.2s linear; }
.chart__cursor.is-on { opacity: 1; }
.chart__table { margin-top: var(--space-3); font-size: 0.92rem; }
.chart__table summary { cursor: pointer; display: inline-block; padding: 0.4rem 0; font-weight: 600; }
.chart__table-scroll { max-height: 280px; overflow: auto; margin-top: var(--space-2); }
.chart__table th, .chart__table td { padding: 0.4rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.chart__table td { text-align: right; }

.table-quotes { margin-top: var(--space-6); }
.table-quotes caption { text-align: left; font-family: var(--font-display); font-size: 1.6rem; padding-bottom: var(--space-2); }
.table-quotes th, .table-quotes td { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.table-quotes thead th { font-size: 0.88rem; color: var(--fg-muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Calcolatore */
.calc { display: grid; gap: var(--space-5); }
@media (min-width: 62em) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; } }
.calc__form { display: grid; gap: var(--space-4); }
.calc__row { display: grid; gap: var(--space-4); }
@media (min-width: 40em) { .calc__row { grid-template-columns: 1fr 1fr; } }
.calc__result { position: relative; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-2); background: var(--green-900); color: var(--ivory-100); --fg-muted: var(--ivory-74); --line: var(--ivory-14); --accent: var(--gold); --focus: var(--gold-light); box-shadow: var(--shadow-deep); border: 1px solid var(--gold-45); display: grid; gap: var(--space-3); }
.calc__label { font-size: 0.95rem; color: var(--ivory-74); }
.calc__range { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc__range strong { font-weight: 600; color: var(--gold); }
.calc__result.is-empty .calc__range { color: var(--ivory-74); font-size: 1.6rem; }
.calc__detail { font-size: 0.96rem; color: var(--ivory-74); }
.calc__bar { position: relative; height: 6px; border-radius: 6px; background: var(--ivory-14); overflow: hidden; }
.calc__bar::after { content: ""; position: absolute; inset: 0 auto 0 var(--from, 86%); width: calc(var(--to, 93%) - var(--from, 86%)); background: var(--gold); border-radius: 6px; transition: inset 0.5s var(--ease), width 0.5s var(--ease); }
.calc__scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ivory-74); }
.disclaimer { padding: var(--space-3) var(--space-4); border: 1px solid var(--gold-45); background: var(--gold-14); border-radius: var(--r-1); font-size: 0.95rem; color: var(--fg); }
.calc__result .disclaimer { color: var(--ivory-100); }

/* ---------- 10. MOCKUP 3D IN CSS ---------- */
.mock { perspective: 1400px; perspective-origin: 50% 40%; padding: var(--space-4); }
.tilt {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -12deg));
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.tilt.is-tilting { transition: transform 0.12s linear; }
.tilt .layer { transform: translateZ(var(--z, 0px)); transform-style: preserve-3d; }
.tilt::after {                 /* riflesso che segue il puntatore */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.28), transparent 50%);
  transform: translateZ(1px);
}
.tilt.is-tilting::after { opacity: 1; }

/* Scheda di valutazione (mockup servizi) */
.slip-stage { position: relative; min-height: 440px; display: grid; place-items: center; }
.slip { position: relative; width: min(100%, 360px); aspect-ratio: 4 / 5; }
.slip__back, .slip__mid, .slip__front { position: absolute; border-radius: var(--r-2); }
.slip__back { inset: 6% -6% -4% 8%; background: var(--green-800); border: 1px solid var(--gold-45); box-shadow: var(--shadow-deep); }
.slip__mid { inset: 0; background: var(--ivory-100); color: var(--green-900); padding: 2.8rem 1.5rem 1.5rem; box-shadow: var(--shadow-soft); display: grid; align-content: start; gap: 0.9rem; background-image: var(--grain); background-blend-mode: multiply; }
.slip__title { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.slip__meta { font-size: 0.82rem; color: var(--ink-muted); }
.slip__lines { display: grid; gap: 0.55rem; font-size: 0.92rem; }
.slip__lines div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.45rem; border-bottom: 1px dashed var(--ink-16); }
.slip__lines dt { color: var(--ink-muted); }
.slip__lines dd { font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; }
.slip__total { margin-top: 0.4rem; padding: 0.8rem 1rem; background: var(--green-900); color: var(--ivory-100); border-radius: var(--r-1); display: flex; justify-content: space-between; align-items: baseline; }
.slip__total strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); font-weight: 600; }
.slip__front { right: -10%; bottom: -6%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 28%, var(--gold-light), var(--gold) 50%, #8A6A24); box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.5); display: grid; place-items: center; color: var(--green-900); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.slip__front::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.slip__stamp { position: absolute; right: 1rem; top: 1rem; padding: 0.2rem 0.7rem; font-size: 0.78rem; font-weight: 700; border: 1px solid var(--gold-deep); color: var(--gold-deep); border-radius: 999px; }
.mock-caption { margin-top: var(--space-3); font-size: 0.85rem; color: var(--fg-muted); text-align: center; }

/* Libro delle quotazioni (mockup quotazioni) */
.ledger { position: relative; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--ivory-100); color: var(--green-900); border-radius: var(--r-2); box-shadow: var(--shadow-deep); --fg: var(--green-900); --fg-muted: var(--ink-muted); --line: var(--ink-16); --accent: var(--gold-deep); --focus: var(--green-800); border: 1px solid var(--gold-45); background-image: var(--grain); background-blend-mode: multiply; }
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
.ledger__head h3 { font-size: 1.7rem; }
.ledger__head span { font-size: 0.85rem; color: var(--ink-muted); }
.ledger .qchange--up { color: var(--up); }
.ledger .qchange--down { color: var(--down); }
.ledger-back { position: absolute; inset: 0; border-radius: var(--r-2); background: var(--green-700); border: 1px solid var(--gold-45); }

/* Segnaposto per foto reali */
.ph { position: relative; display: grid; place-content: center; justify-items: center; gap: 0.4rem; min-height: 280px; padding: var(--space-4); text-align: center; border: 1px dashed var(--accent); border-radius: var(--r-2); color: var(--fg-muted); background: repeating-linear-gradient(135deg, transparent 0 14px, var(--gold-14) 14px 15px); font-size: 0.92rem; }
.ph .icon { color: var(--accent); }
.ph strong { color: var(--fg); font-weight: 700; }

/* ---------- 11. PAGINE INTERNE ---------- */
/* Categorie (cosa compriamo) */
.cat { display: grid; gap: var(--space-5); align-items: center; scroll-margin-top: 6rem; }
.cat__art { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin-inline: auto; border-radius: var(--r-2); background: radial-gradient(circle at 50% 38%, var(--green-700), var(--green-900) 78%); border: 1px solid var(--gold-45); box-shadow: var(--shadow-deep); overflow: hidden; }
.theme-dark .cat__art { background: radial-gradient(circle at 50% 38%, var(--green-700), var(--green-800) 78%); }
.cat__art::before { content: ""; position: absolute; inset: 0; background: var(--contours) center / 160% auto; opacity: 0.22; }
.cat__art .illus { position: relative; width: 82%; height: auto; filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.35)); }
.cat__body { display: grid; gap: var(--space-4); }
.cat__body h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); }
.cat__cols { display: grid; gap: var(--space-4); margin-top: var(--space-2); }
.cat__cols h3 { font-family: var(--font-text); font-size: 0.95rem; font-weight: 800; letter-spacing: 0; margin-bottom: var(--space-2); color: var(--accent); }
.tick-list { display: grid; gap: 0.6rem; }
.tick-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.99rem; }
.tick-list .icon { color: var(--accent); margin-top: 0.22rem; }
@media (min-width: 62em) {
  .cat { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-7); }
  .cat--flip .cat__art { order: 2; }
  .cat__cols { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}

/* Percorso passo passo (come funziona) */
.tl { position: relative; display: grid; gap: var(--space-6); }
.tl::before { content: ""; position: absolute; left: 1.15rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--gold-45); }
.tl__step { position: relative; display: grid; gap: var(--space-3); padding-left: 3.75rem; }
.tl__dot { position: absolute; left: 0; top: 0.1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--gold); color: var(--accent); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.tl__step h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.tl__time { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; padding: 0.25rem 0.9rem; font-size: 0.88rem; font-weight: 700; color: var(--accent); border: 1px solid var(--gold-45); border-radius: 999px; }
.tl__guarantee { display: flex; gap: 0.7rem; align-items: start; padding: var(--space-3) var(--space-4); background: var(--bg-2); border-radius: var(--r-1); font-size: 0.98rem; }
.tl__guarantee .icon { color: var(--accent); margin-top: 0.2rem; }
@media (min-width: 62em) {
  .tl { gap: var(--space-7); }
  .tl::before { left: 50%; }
  .tl__step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 7rem; padding-left: 0; align-items: start; }
  .tl__step > * { grid-column: 1; }
  .tl__step > .tl__dot, .tl__step:nth-child(even) > .tl__dot { grid-column: 1 / -1; grid-row: 1; left: 50%; translate: -50% 0; }
  .tl__aside { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
  .tl__step:nth-child(even) > * { grid-column: 2; }
  .tl__step:nth-child(even) .tl__aside { grid-column: 1; }
}
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--fg-muted); }
.facts dd { font-weight: 700; text-align: right; }

/* Colonne con filetti (aziende, trasparenza) */
.cols { display: grid; gap: var(--space-5); }
.col { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.col .col__icon { color: var(--accent); }
.col h3 { font-size: 1.65rem; }
.col p { color: var(--fg-muted); font-size: 1rem; }
@media (min-width: 62em) {
  .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .cols--3 .col { padding: var(--space-4) var(--space-5); border-top: 0; border-left: 1px solid var(--line); }
  .cols--3 .col:first-child { border-left: 0; padding-left: 0; }
  .cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
}
.doc-block { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--r-2); display: grid; gap: var(--space-3); align-content: start; }
.doc-block h3 { font-size: 1.6rem; }

/* Chi siamo */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.stat { display: grid; gap: 0.3rem; padding-top: var(--space-3); border-top: 1px solid var(--gold-45); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.stat__num small { font-size: 0.45em; margin-left: 0.15em; color: var(--accent); }
.stat__label { font-size: 0.95rem; color: var(--fg-muted); }
@media (min-width: 62em) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pull { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.2; max-width: 24ch; position: relative; padding-left: var(--space-4); border-left: 1px solid var(--gold); }
.legal-note { margin-top: var(--space-5); padding: var(--space-3) var(--space-4); font-size: 0.92rem; border: 1px dashed var(--accent); border-radius: var(--r-1); color: var(--fg-muted); }
.legal-note strong { color: var(--fg); }
.tools { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tool { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3) var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.tool .icon { color: var(--accent); margin-top: 0.2rem; }
.tool h3 { font-size: 1.45rem; margin-bottom: 0.2rem; }
.tool p { font-size: 0.98rem; color: var(--fg-muted); }

/* Pagine di testo (privacy) */
.legal-doc { padding-block: var(--space-7) var(--space-8); }
.legal-doc h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: var(--space-6); margin-bottom: var(--space-2); }
.legal-doc p, .legal-doc li { color: var(--fg); max-width: 58ch; }
.legal-doc ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin-top: var(--space-2); }
.legal-doc table { margin-top: var(--space-3); font-size: 0.95rem; }
.legal-doc th, .legal-doc td { padding: 0.7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }

/* ---------- 12. FAQ ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q-wrap { margin: 0; font-family: var(--font-text); font-size: inherit; line-height: inherit; letter-spacing: 0; }
.acc__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 1.35rem 0; background: none; border: 0; text-align: left; color: var(--fg); font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; font-weight: 500; }
.acc__q:hover .acc__plus { background: var(--gold); color: var(--green-900); border-color: var(--gold); }
.acc__plus { flex: none; position: relative; width: 2.4rem; height: 2.4rem; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.5s var(--ease); }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform 0.4s var(--ease); }
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus { transform: rotate(180deg); }
.acc__item.is-open .acc__plus::after { transform: rotate(0deg); }
.acc__a { display: block; }
.acc__item.is-ready .acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc__item.is-ready.is-open .acc__a { grid-template-rows: 1fr; }
.acc__item.is-ready .acc__a-inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s 0.5s; }
.acc__item.is-ready.is-open .acc__a-inner { visibility: visible; transition-delay: 0s; }
.acc__a-inner > * { padding-bottom: 1.4rem; color: var(--fg-muted); }
.acc__a-inner > p + p { margin-top: -0.4rem; }
.faq-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-5); }
.chip { padding: 0.5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 600; font-size: 0.93rem; color: var(--fg); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--green-900); color: var(--ivory-100); border-color: var(--green-900); }

/* ---------- 13. FORM ---------- */
.form-card { padding: clamp(1.5rem, 4vw, 3rem); background: var(--ivory-200); border-radius: var(--r-2); box-shadow: var(--shadow-soft); }
.form { display: grid; gap: var(--space-5); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend, .field__label { display: block; padding: 0; margin-bottom: 0.5rem; font-size: 0.95rem; font-weight: 700; color: var(--fg); }
.form-group-title { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; padding-bottom: var(--space-2); margin-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.req { color: var(--error); font-weight: 700; }
.field { display: grid; gap: 0.3rem; align-content: start; min-width: 0; }
.field__hint { font-size: 0.86rem; color: var(--fg-muted); }
.field__error:empty { display: none; }
.field__error { display: flex; gap: 0.5rem; align-items: start; font-size: 0.9rem; font-weight: 600; color: var(--error); }
.field__error::before { content: ""; flex: none; width: 1rem; height: 1rem; margin-top: 0.2rem; background: currentColor; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 1 21h22L12 2Zm1 14h-2v-2h2v2Zm0-4h-2V8h2v4Z'/></svg>") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 1 21h22L12 2Zm1 14h-2v-2h2v2Zm0-4h-2V8h2v4Z'/></svg>") center / contain no-repeat; }
.theme-dark .field__error, .theme-dark .req { color: var(--error-on-dark); }
.input, .select, .textarea {
  width: 100%; min-height: 3.1rem; padding: 0.7rem 0.95rem; background: var(--field-bg, var(--ivory-100)); color: var(--fg);
  border: 1px solid var(--field-line, var(--ink-16)); border-radius: var(--r-1);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.textarea { min-height: 7.5rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-muted); opacity: 0.8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--accent); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--green-800); }
.has-error .input, .has-error .select, .has-error .textarea, .has-error.dropzone, .has-error .dropzone { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%230B2B22' stroke-width='1.6'><path d='M1 1.5l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 40em) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

/* Scelte (radio e checkbox) come pillole */
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.5rem 1.1rem; border: 1px solid var(--ink-16); border-radius: 999px; background: var(--ivory-100); font-weight: 600; font-size: 0.95rem; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.choice input:hover + span { border-color: var(--green-800); }
.choice input:checked + span { background: var(--green-900); color: var(--ivory-100); border-color: var(--green-900); }
.choice input:checked + span::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--green-800); outline-offset: 3px; }
.has-error .choice span { border-color: var(--error); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; cursor: pointer; }
.check input { appearance: none; width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; border: 1.5px solid var(--green-800); border-radius: 3px; background: var(--ivory-100); display: grid; place-content: center; cursor: pointer; transition: background-color 0.2s; }
.check input::after { content: ""; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--ivory-100); border-bottom: 2px solid var(--ivory-100); rotate: -45deg; translate: 0 -1px; scale: 0; transition: scale 0.2s var(--ease); }
.check input:checked { background: var(--green-900); }
.check input:checked::after { scale: 1; }
.check input:focus-visible { outline: 2px solid var(--green-800); outline-offset: 3px; }
.has-error .check input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.check span { font-size: 0.95rem; }

/* Caricamento foto */
.dropzone { position: relative; display: grid; place-items: center; gap: 0.4rem; padding: var(--space-5) var(--space-4); text-align: center; border: 1.5px dashed var(--green-800); border-radius: var(--r-2); background: var(--ivory-100); transition: background-color 0.3s, border-color 0.3s; cursor: pointer; }
.dropzone:hover, .dropzone.is-drag { background: var(--gold-14); border-color: var(--gold-deep); }
.dropzone:focus-within { outline: 2px solid var(--green-800); outline-offset: 3px; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone .icon { color: var(--gold-deep); }
.dropzone strong { font-weight: 700; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.thumbs:not(:empty) { margin-top: var(--space-3); }
.thumb { position: relative; width: 5.5rem; height: 5.5rem; border-radius: var(--r-1); overflow: visible; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-1); border: 1px solid var(--ink-16); }
.thumb__remove { position: absolute; top: -0.5rem; right: -0.5rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 50%; background: var(--green-900); color: var(--ivory-100); }
.thumb__remove:hover { background: var(--error); }

.appointment { padding: var(--space-4); border: 1px solid var(--gold-45); border-radius: var(--r-2); background: var(--gold-14); display: grid; gap: var(--space-4); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { padding: var(--space-4); border: 1.5px solid var(--error); border-radius: var(--r-1); background: var(--ivory-100); color: var(--green-900); }
.form-summary:focus-visible { outline: 3px solid var(--error); outline-offset: 3px; }
.form-summary__title { font-weight: 800; margin-bottom: 0.5rem; }
.form-summary ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.form-summary a { color: var(--error); font-weight: 600; }
.form-success { padding: clamp(1.5rem, 4vw, 3rem); background: var(--green-900); color: var(--ivory-100); border: 1px solid var(--gold-45); border-radius: var(--r-2); display: grid; gap: var(--space-4); --fg-muted: var(--ivory-74); --focus: var(--gold-light); box-shadow: var(--shadow-deep); }
.form-success:focus-visible { outline-offset: 4px; }
.form-success h2 { font-size: clamp(2rem, 4vw, 3rem); }
.form-success__code { display: inline-block; padding: 0.4rem 1rem; border: 1px dashed var(--gold); color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.form-success ul { padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.btn.is-loading::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.contact-layout { display: grid; gap: var(--space-6); }
@media (min-width: 64em) { .contact-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: var(--space-7); align-items: start; } .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.contact-aside { display: grid; gap: var(--space-5); }
.quick { display: grid; gap: var(--space-3); }
.quick a.btn { justify-content: flex-start; }

/* ---------- 14. FOOTER E COOKIE ---------- */
.site-footer { position: relative; background: var(--green-900); color: var(--ivory-100); --fg: var(--ivory-100); --fg-muted: var(--ivory-74); --focus: var(--gold-light); border-top: 1px solid var(--gold-45); padding-top: var(--space-7); }
.site-footer__grid { display: grid; gap: var(--space-6); padding-bottom: var(--space-6); }
.site-footer__brand { display: grid; gap: var(--space-3); align-content: start; }
.site-footer__lede { color: var(--ivory-74); max-width: 34ch; font-size: 1rem; }
.site-footer__title { font-family: var(--font-text); font-size: 0.95rem; font-weight: 800; letter-spacing: 0; margin-bottom: var(--space-3); color: var(--gold); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.site-footer a { text-decoration: none; color: var(--ivory-74); transition: color 0.25s; }
.site-footer a:hover { color: var(--ivory-100); text-decoration: underline; }
.site-footer address p + p { margin-top: 0.8rem; }
.site-footer__hours { margin-top: var(--space-3) !important; font-size: 0.93rem; color: var(--ivory-74); }
.site-footer__hours li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.75rem; max-width: 22rem; }
.site-footer__hours li span:first-child { white-space: nowrap; }
.site-footer__legal { display: grid; gap: var(--space-2); padding-block: var(--space-4) var(--space-5); border-top: 1px solid var(--ivory-14); font-size: 0.85rem; color: var(--ivory-74); }
.site-footer__legal p { max-width: none; }
.site-footer__small { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__credit { font-size: 0.85rem; color: var(--ivory-74); }
.site-footer__credit strong { color: var(--ivory-100); font-weight: 700; }
.site-footer .link-btn { color: var(--ivory-74); }
.site-footer .link-btn:hover { color: var(--ivory-100); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 1.4fr 0.8fr 1fr; gap: var(--space-7); } }

.cookie { position: fixed; z-index: 950; left: var(--space-3); bottom: var(--space-3); width: min(calc(100% - 2 * var(--space-3)), 25.5rem); padding: var(--space-4); background: var(--ivory-100); color: var(--green-900); --focus: var(--green-800); border: 1px solid var(--gold-45); border-radius: var(--r-2); box-shadow: var(--shadow-deep); display: grid; gap: var(--space-2); opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.cookie.is-in { opacity: 1; transform: none; }
.cookie__title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; font-weight: 600; }
.cookie__text { font-size: 0.9rem; color: var(--ink-muted); }
.cookie__text a { color: var(--green-900); }
.cookie__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.3rem; }
.cookie .btn--ghost { --btn-fg: var(--green-900); }
.cookie .btn--ghost:hover { --btn-bg: var(--ink-08); }

/* ---------- 15. MOVIMENTO ---------- */
/* Curtain tra le pagine: entrata in CSS puro, uscita via classe .is-leaving */
html.js::before {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  background: var(--green-900); box-shadow: 0 1px 0 var(--gold);
  transform: translateY(-101%);
  animation: curtain-out 0.95s var(--ease-in-out) 0.05s both;
}
html.js.is-ready:not(.is-leaving)::before { display: none; }
html.js.is-leaving::before { animation: curtain-in 0.46s var(--ease-in-out) both; }
@keyframes curtain-out { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes curtain-in { from { transform: translateY(101%); } to { transform: translateY(0); } }

/* Rivelazione: il contenuto e' visibile di default, nascosto solo se JS e' attivo */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--left { transform: translateX(-30px); }
.js .reveal--right { transform: translateX(30px); }
.js .reveal--scale { transform: scale(0.96); }
.js .reveal--left.is-in, .js .reveal--right.is-in, .js .reveal--scale.is-in { transform: none; }

/* Animazione di entrata dell'hero (all'apertura) */
.js .hero__copy > * { animation: rise 1.1s var(--ease) both; }
.js .hero__copy > :nth-child(1) { animation-delay: 0.55s; }
.js .hero__copy > :nth-child(2) { animation-delay: 0.68s; }
.js .hero__copy > :nth-child(3) { animation-delay: 0.8s; }
.js .hero__copy > :nth-child(4) { animation-delay: 0.92s; }
.js .page-hero__inner > * { animation: rise 1s var(--ease) both; }
.js .page-hero__inner > :nth-child(1) { animation-delay: 0.5s; }
.js .page-hero__inner > :nth-child(2) { animation-delay: 0.62s; }
.js .page-hero__inner > :nth-child(3) { animation-delay: 0.74s; }
.js .page-hero__inner > :nth-child(4) { animation-delay: 0.86s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  html.js::before { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .tilt { transform: none; }
  .hero__scroll i { animation: none; }
  .btn { translate: none; }
  .btn::after { display: none; }
}

/* Stampa: solo contenuti */
@media print {
  .site-header, .mobile-menu, .cookie, .hero__stage, body::after, html.js::before { display: none !important; }
  body, .section, .hero, .page-hero { background: #fff !important; color: #000 !important; }
}


/* ---------- WOW: titoli a maschera, cursore, fascia, sezione fissata ---------- */
.js .has-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js .has-words .w__i { display: inline-block; transform: translateY(112%); }
.js h1.has-words.is-split-in .w__i { animation: word-up 1.1s var(--ease) both; animation-delay: calc(0.5s + var(--i) * 85ms); }
.js h2.has-words.is-split-in .w__i { animation: word-up 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes word-up { from { transform: translateY(112%); } to { transform: none; } }

/* Fascia quotazioni scorrevole */
.ticker { position: relative; overflow: hidden; background: var(--green-800); border-block: 1px solid var(--gold-45); color: var(--ivory-100); --fg-muted: var(--ivory-74); --line: var(--ivory-14); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker__item { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.95rem 2.2rem; border-right: 1px solid var(--ivory-14); white-space: nowrap; }
.ticker__name { font-family: var(--font-display); font-size: 1.35rem; }
.ticker__price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.ticker__price small { font-family: var(--font-text); font-size: 0.78rem; color: var(--ivory-74); font-weight: 500; }
.ticker .qchange { min-width: 0; font-size: 0.8rem; }
@keyframes ticker { to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } .ticker { overflow-x: auto; } }

/* Sezione fissata */
.story { position: relative; background: var(--green-800); color: var(--ivory-100); --fg-muted: var(--ivory-74); --line: var(--ivory-14); --accent: var(--gold); --focus: var(--gold-light); padding-block: var(--space-8); }
.story__sticky { position: relative; }
.story__grid { display: grid; gap: var(--space-5); }
.story__art, .story__bar, .story__count { display: none; }
.story__text h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: var(--space-5); }
@media (min-width: 64em) {
  .story { height: 330vh; padding-block: 0; }
  .story__sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; }
  .story__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: var(--space-7); }
  .story__art { display: block; perspective: 1200px; }
  .story__stage { position: relative; aspect-ratio: 1; max-width: min(520px, 62vh); margin-inline: auto; border-radius: var(--r-2); border: 1px solid var(--gold-45); background: radial-gradient(circle at 50% 38%, var(--green-700), var(--green-900) 78%); box-shadow: var(--shadow-deep); overflow: hidden; }
  .story__stage::before { content: ""; position: absolute; inset: 0; background: var(--contours) center / 170% auto; opacity: 0.22; }
  .story__layer { position: absolute; inset: 8%; display: grid; place-items: center; opacity: 0; transform: translateY(60px) rotateY(-28deg) scale(0.86); transition: opacity 0.7s var(--ease), transform 1s var(--ease); }
  .story__layer.is-past { transform: translateY(-60px) rotateY(28deg) scale(0.86); }
  .story__layer.is-active { opacity: 1; transform: none; }
  .story__layer .illus { width: 100%; height: auto; filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.4)); }
  .story__count { display: flex; align-items: baseline; gap: 0.4rem; position: absolute; left: 1.4rem; bottom: 1.1rem; margin: 0; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold); }
  .story__count small { font-family: var(--font-text); font-size: 0.85rem; color: var(--ivory-74); }
  .story .steps { grid-template-columns: 1fr; gap: 0.2rem; }
  .story .steps::before { left: 1.7rem; right: auto; top: 1.4rem; bottom: 1.4rem; width: 1px; height: auto; }
  .story .step { padding: 0.9rem 0 0.9rem 4.5rem; margin: 0; opacity: 0.32; transition: opacity 0.6s var(--ease); }
  .story .step.is-active { opacity: 1; }
  .story .step.is-done { opacity: 0.55; }
  .story .step__n { top: 0.7rem; left: 0; width: 3.4rem; text-align: center; font-size: 3rem; transition: color 0.5s var(--ease); }
  .story .step.is-active .step__n { color: var(--gold); }
  .story .step h3 { font-size: 1.6rem; }
  .story .step p, .story .step__time { display: none; }
  .story .step.is-active p, .story .step.is-active .step__time { display: block; }
  .story__bar { display: block; height: 2px; margin: var(--space-4) 0; background: var(--ivory-14); overflow: hidden; }
  .story__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
}
@media (prefers-reduced-motion: reduce) { .story__layer { transition: none; } }

/* Navigazione minima se JavaScript e' disattivato */
.noscript-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 1rem var(--gutter); background: var(--green-900); color: var(--ivory-100); }
.noscript-nav a { color: var(--ivory-100); }
