/* ==========================================================================
   matteospera.com  ·  main.css
   Sistema: fondale bianco, un solo accento (arancione), Archivo variable.
   Raggi: card/media 24px · bottoni pill · input underline. Nessun altro raggio.
   Motion: solo transform/opacity/clip-path. Tutto disattivato con prefers-reduced-motion.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-wght-italic.woff2") format("woff2");
}

:root {
  --paper: #fafafa;
  --paper-2: #f1f1ef;
  --line: rgba(21, 21, 21, 0.12);
  --ink: #151515;
  --ink-2: #5a5a58;
  --ink-3: #8a8a87;
  --orange: #ff5a1f;
  --orange-deep: #d9420a;
  --orange-dark: #8a2404;
  --orange-soft: #ffb58f;
  --orange-pale: #ffe8dc;
  --white: #fdfdfd;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --nav-h: 72px;
  --r: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --t-fast: 0.35s;
  --t-med: 0.7s;
  --t-slow: 1.1s;

  --z-aura: 0;
  --z-content: 1;
  --z-menu: 45;
  --z-nav: 50;
  --z-transition: 80;
  --z-loader: 90;
  --z-cursor: 100;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: none; }
body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: auto; }
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; float: left; width: 100%; }
legend + * { clear: both; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--white); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: calc(var(--z-cursor) + 1);
  padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 999px;
  transform: translateY(-200%); transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.t-display, .t-h1, .t-h2, .t-h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-transform: uppercase;
}
/* text-wrap: balance rompe il calcolo delle righe di SplitText: lo usiamo solo dove il testo è già diviso */
.hero__title { text-wrap: balance; }
.t-display { font-size: clamp(3rem, 10.5vw, 10rem); }
.t-h1 { font-size: clamp(2.8rem, 7.4vw, 6.6rem); }
.t-h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.t-h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.02; }
.t-lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; color: var(--ink); max-width: 34ch; text-wrap: pretty; }
.t-body { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.t-body strong { color: var(--ink); font-weight: 600; }
.t-body + .t-body { margin-top: 1.1em; }
.t-small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.t-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.t-accent { color: var(--orange); }
em { font-style: italic; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 11vw, 170px); }
.section--tight { padding-block: clamp(56px, 7vw, 110px); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--paper-2); }
.grid { display: grid; gap: clamp(24px, 3vw, 48px); }
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid--asym { grid-template-columns: 5fr 7fr; align-items: center; }
  .grid--asym-r { grid-template-columns: 7fr 5fr; align-items: center; }
}
.stack > * + * { margin-top: var(--stack, 1.25rem); }
main { position: relative; z-index: var(--z-content); }

/* --------------------------------------------------------------------------
   Bottoni e link
   -------------------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em; white-space: nowrap;
  color: var(--white); background: var(--ink);
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--orange-deep), var(--orange) 60%, var(--orange-soft));
  transform: translateY(101%); transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(0.97); }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange::before { background: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light::before { background: var(--ink); }
.btn--light:hover, .btn--light:focus-visible { color: var(--white); }
.btn__arrow { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn__label { opacity: 0.6; }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; color: var(--ink); padding-bottom: 4px;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform var(--t-fast) var(--ease-out);
}
.link:hover::after { transform-origin: left; animation: link-sweep 0.6s var(--ease-out); }
@keyframes link-sweep { 0% { transform: scaleX(1); transform-origin: right; } 50% { transform: scaleX(0); transform-origin: right; } 51% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.link svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.link:hover svg { transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   Aura: gradiente arancione in movimento (solo transform, blur statico)
   -------------------------------------------------------------------------- */
.aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: var(--z-aura); }
.aura__blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.85;
  will-change: transform; transform-origin: center;
}
.aura__blob--1 { width: 55vmax; height: 55vmax; left: -15%; top: -20%; background: radial-gradient(circle at 40% 40%, var(--orange) 0%, rgba(255, 90, 31, 0) 65%); animation: aura-1 26s var(--ease-in-out) infinite alternate; }
.aura__blob--2 { width: 48vmax; height: 48vmax; right: -12%; top: 10%; background: radial-gradient(circle at 60% 50%, var(--orange-soft) 0%, rgba(255, 181, 143, 0) 65%); animation: aura-2 31s var(--ease-in-out) infinite alternate; }
.aura__blob--3 { width: 42vmax; height: 42vmax; left: 25%; bottom: -30%; background: radial-gradient(circle at 50% 50%, var(--orange-deep) 0%, rgba(217, 66, 10, 0) 65%); animation: aura-3 23s var(--ease-in-out) infinite alternate; }
@keyframes aura-1 { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(22vw, 12vh, 0) scale(1.18); } 100% { transform: translate3d(8vw, 30vh, 0) scale(0.92); } }
@keyframes aura-2 { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-18vw, 18vh, 0) scale(1.22); } 100% { transform: translate3d(-30vw, -8vh, 0) scale(1.05); } }
@keyframes aura-3 { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-14vw, -22vh, 0) scale(1.15); } 100% { transform: translate3d(18vw, -6vh, 0) scale(0.95); } }
.aura.is-off .aura__blob { animation-play-state: paused; }
.aura--soft .aura__blob { opacity: 0.55; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform var(--t-med) var(--ease-out);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 250, 250, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity var(--t-fast) var(--ease-out);
}
.header.is-solid::before { opacity: 1; }
.header.is-hidden, .header-blend.is-hidden { transform: translateY(-100%); }
.header.is-menu, .header-blend.is-menu { transform: none; }
.header.is-menu::before { opacity: 0; }
.header .wrap, .header-blend .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header .header__bar { justify-content: space-between; }
.brand__mark--fixed { display: block; }
.header-blend .brand { padding-left: 22px; }
/* Livello sopra l'header, fixed, in difference: vede la pagina sotto (video scuro → bianco, fondo chiaro → nero) */
.header-blend {
  position: fixed; inset: 0 0 auto 0; z-index: calc(var(--z-nav) + 1); height: var(--nav-h);
  display: flex; align-items: center; color: #fff; mix-blend-mode: difference; pointer-events: none;
  transition: transform var(--t-med) var(--ease-out);
}
.header-blend a, .header-blend button { pointer-events: auto; }
.header__ghost { display: none; }
@media (min-width: 900px) { .header__ghost { display: block; width: 160px; } }
.brand { font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; font-size: 1.05rem; line-height: 1; display: inline-flex; align-items: center; gap: 10px; }
.burger span { background: #fff; }
.brand__mark { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-deep), var(--orange-soft)); }
.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 34px; }
  .nav__link { font-weight: 500; font-size: 0.95rem; position: relative; padding: 6px 0; }
  .nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-fast) var(--ease-out); }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
}
.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; min-height: 44px; padding: 0 20px; font-size: 0.9rem; } }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; align-items: center; margin-right: -8px; }
.burger span { width: 24px; height: 2px; transition: transform var(--t-fast) var(--ease-out); transform-origin: center; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 16px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  overscroll-behavior: contain;
}
.menu.is-open { visibility: visible; }
.menu__list { display: grid; gap: 6px; }
.menu__link { display: block; font-size: clamp(2.6rem, 11vw, 4.4rem); font-weight: 600; letter-spacing: -0.035em; text-transform: uppercase; line-height: 1; overflow: hidden; }
.menu__link span { display: block; }
.menu__foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.menu__social { display: flex; gap: 18px; }
.menu__social a { font-weight: 500; }

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader); background: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
}
.loader__word { display: flex; overflow: hidden; font-size: clamp(3rem, 14vw, 12rem); font-weight: 600; letter-spacing: -0.04em; text-transform: uppercase; line-height: 0.9; }
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--orange-deep), var(--orange), var(--orange-soft)); transform-origin: left; transform: scaleX(0); }
.loader__count { position: absolute; top: calc(var(--gutter) + 6px); right: var(--gutter); font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
html.is-loading { overflow: hidden; }
html.no-js .loader { display: none; }

/* Pannello transizione pagina */
.transition { position: fixed; inset: 0; z-index: var(--z-transition); pointer-events: none; visibility: hidden; }
.transition__panel {
  position: absolute; inset: -2% 0; background: linear-gradient(160deg, var(--orange-deep) 0%, var(--orange) 55%, var(--orange-soft) 130%);
  will-change: transform;
  display: flex; align-items: flex-end; padding: var(--gutter); color: var(--white);
}
.transition__label { font-size: clamp(3rem, 12vw, 11rem); font-weight: 600; letter-spacing: -0.04em; text-transform: uppercase; line-height: 0.9; overflow: hidden; }
.transition__label span { display: block; }
.transition__brand { position: absolute; top: calc(var(--gutter) + 6px); left: var(--gutter); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

/* --------------------------------------------------------------------------
   Cursore
   -------------------------------------------------------------------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--orange); will-change: transform; }
.cursor__ring {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1.5px solid var(--ink); will-change: transform;
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.cursor__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); opacity: 0; transition: opacity var(--t-fast); }
.cursor.is-link .cursor__ring { background: rgba(255, 90, 31, 0.15); border-color: var(--orange); }
.cursor.is-view .cursor__ring { background: var(--orange); border-color: var(--orange); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--nav-h); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__video, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; /* Il video sorgente è già in bianco e nero: grayscale() sarebbe un passaggio in più per fotogramma senza alcun effetto */
  filter: contrast(1.4) brightness(0.92); }
.hero__poster { display: none; }
.hero__wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250,250,250,0.22) 0%, rgba(250,250,250,0) 26%, rgba(250,250,250,0) 66%, rgba(250,250,250,0.75) 88%, var(--paper) 100%); }
/* Tint arancione: sopra il titolo (lo scalda dove passa) ma sotto sottotitolo e bottoni */
.hero__tint { position: absolute; inset: 0; z-index: 2; mix-blend-mode: multiply; opacity: 0.8; pointer-events: none; }
.hero__tint .aura__blob { filter: blur(55px); opacity: 1; }
.hero__body { position: relative; padding-bottom: clamp(40px, 7vh, 96px); }
/* Titolo in "difference": bianco dove il video è scuro, nero dove è chiaro */
.hero__title { position: relative; z-index: 1; max-width: 14ch; color: #fff; mix-blend-mode: difference; }
.hero__row { position: relative; z-index: 3; }
.hero__lead { color: #fff; mix-blend-mode: difference; }
.hero__sound { z-index: 3; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; transform: translateY(110%); }
.hero__row { display: grid; gap: 28px; margin-top: clamp(22px, 3vw, 40px); align-items: end; }
@media (min-width: 900px) { .hero__row { grid-template-columns: minmax(0, 1fr) auto; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { min-height: 56px; padding-inline: 32px; }
.hero__sound { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 16px); }
.hero__pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(250,250,250,0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.8rem; font-weight: 600; border: 1px solid var(--line);
}
.hero__pause svg { width: 14px; height: 14px; }
.hero__pause:hover { background: var(--paper); }

/* --------------------------------------------------------------------------
   Reveal (mask + wipe). Le classi sono neutre finché GSAP non è pronto.
   -------------------------------------------------------------------------- */
.split-lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-media { overflow: hidden; border-radius: var(--r); position: relative; }
.reveal-media > img, .reveal-media > picture > img, .reveal-media > video { width: 100%; height: 100%; object-fit: cover; }
.reveal-media[data-ratio="4/5"] { aspect-ratio: 4 / 5; }
.reveal-media[data-ratio="3/4"] { aspect-ratio: 3 / 4; }
.reveal-media[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.reveal-media[data-ratio="16/10"] { aspect-ratio: 16 / 10; }
.reveal-media[data-ratio="2/3"] { aspect-ratio: 2 / 3; }
html.js .reveal-media { clip-path: inset(100% 0 0 0 round var(--r)); }
html.js .reveal-media > img, html.js .reveal-media > picture > img { transform: scale(1.18); }
html.js [data-wipe] { clip-path: inset(0 100% 0 0); }
html.js [data-rise] { transform: translateY(40px) rotate(0.8deg); opacity: 0; transform-origin: left bottom; }
html.js [data-scale] { transform: scale(0.85); opacity: 0; }

/* --------------------------------------------------------------------------
   Numeri
   -------------------------------------------------------------------------- */
.stats { border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(24px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); padding-right: 24px; } .stat + .stat { padding-left: 24px; } .stat:last-child { border-right: 0; } }
.stat__value { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.stat__value sup { font-size: 0.45em; color: var(--orange); vertical-align: top; top: 0.25em; position: relative; }
.stat__label { margin-top: 10px; font-size: 0.95rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Marquee (uno solo per pagina)
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; }
.marquee__track { display: flex; gap: 48px; width: max-content; will-change: transform; animation: marquee 38s linear infinite; }
.marquee__track span { font-size: clamp(1.2rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.marquee.is-off .marquee__track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Sticky stack (metodo)
   -------------------------------------------------------------------------- */
.stack-wrap { position: relative; }
.stack-card { position: sticky; top: calc(var(--nav-h) + 16px); margin-bottom: 20px; border-radius: var(--r); overflow: hidden; display: block; padding: clamp(22px, 3vw, 44px); transform-origin: top center; color: inherit; }
.stack-card .phase__inner { padding: 0; border-radius: 0; background: none; }
.stack-card__go { position: absolute; right: clamp(16px, 2vw, 28px); top: clamp(16px, 2vw, 28px); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; opacity: 0.7; transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast), background-color var(--t-fast), color var(--t-fast); }
.stack-card__go svg { width: 20px; height: 20px; }
.stack-card:hover .stack-card__go { opacity: 1; transform: rotate(45deg); background: var(--ink); color: var(--white); border-color: var(--ink); }
.stack-card--2:hover .stack-card__go, .stack-card--3:hover .stack-card__go { background: var(--white); color: var(--orange-deep); border-color: var(--white); }
.stack-card .phase__media img { transition: transform var(--t-slow) var(--ease-out); }
a.stack-card:hover .phase__media img { transform: scale(1.04); }
.stack-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.stack-card:last-child { margin-bottom: 0; }
.stack-card--1 { background: var(--paper-2); }
.stack-card--2 { background: linear-gradient(140deg, #a83208 0%, #bd390a 55%, #c2470c 120%); color: var(--white); }
.stack-card--3 { background: linear-gradient(140deg, #4a1202 0%, #7a1f03 50%, #a83208 130%); color: var(--white); }
.stack-card__num { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1rem, 1.5vw, 1.35rem); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.stack-card__num::before { content: ""; width: 34px; height: 3px; background: currentColor; border-radius: 2px; }
.stack-card--1 .stack-card__num { color: var(--orange-dark); }
.stack-card--2 .phase__text, .stack-card--3 .phase__text { color: var(--white); }
@media (max-width: 899px) {
  .stack-card { top: calc(var(--nav-h) + 8px); }
  .stack-card .phase__num { font-size: 4.2rem; }
  .stack-card .phase__title { font-size: 2.2rem; }
  .stack-card .phase__text { font-size: 0.95rem; }
  .stack-card .phase__list { font-size: 0.9rem; gap: 6px; }
  .stack-card .phase__media { aspect-ratio: 16 / 9; max-height: 30vh; }
  .stack-card__go { width: 40px; height: 40px; }
}

/* --------------------------------------------------------------------------
   Percorso (timeline)
   -------------------------------------------------------------------------- */
.path { position: relative; display: grid; gap: 0; }
@media (min-width: 900px) { .path { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; } .path__head { position: sticky; top: calc(var(--nav-h) + 40px); } }
.path__list { position: relative; padding-left: 40px; }
.path__line { position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; }
.path__line svg { width: 2px; height: 100%; overflow: visible; }
.path__line line { stroke: var(--line); stroke-width: 2; }
.path__line line.is-draw { stroke: var(--orange); }
.step { position: relative; padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step::before { content: ""; position: absolute; left: -40px; top: 36px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: background-color var(--t-fast), border-color var(--t-fast); }
.step.is-on::before { background: var(--orange); border-color: var(--orange); }
.step__title { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; }
.step__text { margin-top: 10px; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Storie (quote switcher, stile reference)
   -------------------------------------------------------------------------- */
.stories__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tab { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }
/* Storie (home): la foto è lo sfondo della sezione, la citazione ci sta sopra */
.stories { position: relative; overflow: hidden; isolation: isolate; color: var(--white); }
.stories__bg { position: absolute; inset: 0; z-index: -1; }
.stories__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.stories__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,21,21,0.82) 0%, rgba(21,21,21,0.7) 45%, rgba(21,21,21,0.88) 100%); }
.stories .tab { border-color: rgba(253,253,253,0.45); color: var(--white); }
.stories .tab:hover { border-color: var(--white); }
.stories .tab[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }
.stories .link { color: var(--white); }
.stories .link::after { background: var(--white); }
.stories__grid { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 900px) { .stories__grid { max-width: 62ch; } }
.quote-card { position: relative; border-radius: var(--r); padding: clamp(28px, 4vw, 56px); background: linear-gradient(150deg, var(--orange-deep) 0%, var(--orange) 50%, var(--orange-soft) 130%); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 420px; overflow: hidden; }
.quote-card__text { font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; max-width: 30ch; }
.quote-card__text .line { display: block; overflow: hidden; }
.quote-card__meta { display: grid; gap: 4px; }
.quote-card__name { font-weight: 600; }
.quote-card__focus { font-size: 0.9rem; opacity: 0.85; }
.quote-card__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.quote-card__tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(253,253,253,0.16); }

/* Storie: griglia completa */
.story-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .story-grid { grid-template-columns: repeat(3, 1fr); } }
.story { border-radius: var(--r); padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.story--accent { background: linear-gradient(150deg, var(--orange-deep), var(--orange) 60%, var(--orange-soft) 140%); color: var(--white); border-color: transparent; }
.story--tint { background: var(--paper-2); }
.story__text { font-size: 1.05rem; line-height: 1.5; text-wrap: pretty; }
.story__meta { font-size: 0.9rem; display: grid; gap: 2px; }
.story__meta strong { font-weight: 600; }
.story__meta span { opacity: 0.8; }

/* Video facade */
.videos { display: grid; gap: 16px; }
@media (min-width: 700px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .videos { grid-template-columns: repeat(4, 1fr); } }
.yt { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--ink); display: block; width: 100%; text-align: left; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); }
.yt:hover img { transform: scale(1.05); opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: var(--white); transition: transform var(--t-fast) var(--ease-out); }
.yt:hover .yt__play { transform: scale(1.1); }
.yt__play svg { width: 22px; height: 22px; margin-left: 3px; }
.yt__label { position: absolute; left: 16px; right: 16px; bottom: 16px; color: var(--white); font-size: 0.85rem; font-weight: 600; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1.5px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; padding: 22px 0; font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.015em; line-height: 1.25; }
.faq__icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; width: 14px; height: 1.5px; background: currentColor; transition: transform var(--t-fast) var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__icon { position: relative; }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--orange); border-color: var(--orange); color: var(--white); transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 26px; color: var(--ink-2); max-width: 66ch; text-wrap: pretty; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.contact { position: relative; overflow: hidden; }
.contact .wrap { position: relative; z-index: 1; }
.contact__grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 5fr 7fr; align-items: start; } }
.contact__title { max-width: 12ch; }
.form { display: grid; gap: 28px; }
.form__grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__grid .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; position: relative; }
.field label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  padding: 12px 0; transition: border-color var(--t-fast);
}
.field select { appearance: none; -webkit-appearance: none; background: transparent; padding-right: 32px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M2 5l5 5 5-5' fill='none' stroke='%23151515' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--orange); }
.field .help { font-size: 0.85rem; color: var(--ink-2); }
.field .error { font-size: 0.85rem; color: var(--orange-deep); font-weight: 600; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--orange-deep); }
.field.is-invalid .error { display: block; }
.field--split { display: grid; gap: 8px; }
.field--split .split { display: grid; grid-template-columns: minmax(120px, 0.6fr) 1fr; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.field--check.is-invalid .check { color: var(--orange-deep); }
.form__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form__status { font-size: 0.95rem; font-weight: 600; min-height: 1.5em; }
.form__status[data-state="error"] { color: var(--orange-deep); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__done { display: none; border-radius: var(--r); padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); }
.form__done.is-visible { display: block; }
.form__done h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.form__done p { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.form.is-done { display: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 96px) 0 max(28px, env(safe-area-inset-bottom)); overflow: hidden; }
.footer__top { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1fr auto; align-items: end; } }
.footer__word { font-size: clamp(3.4rem, 15vw, 15rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.85; text-transform: uppercase; white-space: nowrap; }
.footer__word .line { display: block; overflow: hidden; }
.footer__cols { display: grid; gap: 24px 48px; }
@media (min-width: 600px) { .footer__cols { grid-template-columns: auto auto; } }
.footer__cols .footer__heading { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.footer__cols li { margin-bottom: 8px; }
.footer__cols a { font-weight: 500; }
.footer__cols a:hover { color: var(--orange-deep); }
.footer__bottom { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.85rem; color: var(--ink-2); }
.footer__bottom a, .footer__bottom button { color: var(--ink-2); }
.footer__bottom a:hover, .footer__bottom button:hover { color: var(--ink); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-menu);
  max-width: 520px; margin-left: auto; padding: 22px 24px; border-radius: var(--r);
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(21, 21, 21, 0.14);
  transform: translateY(calc(100% + 32px)); transition: transform var(--t-med) var(--ease-out);
  overscroll-behavior: contain;
}
.cookie.is-visible { transform: translateY(0); }
.cookie h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.cookie p { margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); }
.cookie p a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__opts { display: grid; gap: 10px; margin-top: 14px; }
.cookie__opts .check { font-size: 0.9rem; }
.cookie__opts .check input:disabled { opacity: 0.6; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie__actions .btn { min-height: 44px; padding-inline: 20px; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Pagine interne: header di pagina, editoriale, galleria
   -------------------------------------------------------------------------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 140px)); }
.page-head__sub { margin-top: 24px; }
.editorial { display: grid; gap: 40px; }
@media (min-width: 900px) { .editorial { grid-template-columns: 3fr 6fr; gap: 80px; } .editorial__aside { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; } }
.editorial__aside .t-label { display: block; margin-bottom: 8px; }
.chapter { padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter__title { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; margin-bottom: 20px; }
.pull { font-size: clamp(1.6rem, 3.6vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; max-width: 22ch; }
.pull .t-accent { color: var(--orange-deep); }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; } .gallery > :nth-child(3n+2) { transform: translateY(40px); } }
.gallery .reveal-media { content-visibility: auto; contain-intrinsic-size: 400px 500px; }

.bento { display: grid; gap: 16px; }
@media (min-width: 800px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(260px, auto); } .bento__cell--tall { grid-row: span 2; } }
.bento__cell { border-radius: var(--r); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; position: relative; overflow: hidden; min-height: 240px; background: var(--paper-2); }
.bento__cell--img { color: var(--white); }
/* La <picture> va posizionata in assoluto (la regola `.bento__cell > *` la renderebbe relative con altezza zero e l'immagine sparirebbe) */
.bento__cell--img > picture { position: absolute; inset: 0; z-index: 0; }
.bento__cell--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bento__cell--img { min-height: clamp(300px, 24vw, 380px); }
/* Gradiente grafico arancione (via CSS, non nella foto): rende leggibile il testo bianco in basso */
.bento__cell--img::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(217,66,10,0) 0%, rgba(184,52,8,0.5) 26%, rgba(150,38,5,0.93) 46%, rgba(108,26,3,0.98) 72%, rgba(74,18,2,1) 100%); }
.bento__cell--orange { background: linear-gradient(150deg, var(--orange-deep), var(--orange) 60%, var(--orange-soft) 140%); color: var(--white); }
.bento__cell > * { position: relative; z-index: 1; }
.bento__cell h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.bento__cell p { font-size: 0.98rem; opacity: 0.9; max-width: 34ch; text-wrap: pretty; }
.bento__cell--img p { opacity: 1; }

.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .todo { background: var(--orange-pale); padding: 2px 6px; border-radius: 4px; color: var(--orange-dark); font-weight: 600; }

/* Pagina 404 */
.notfound { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }

/* --------------------------------------------------------------------------
   Reduced motion: tutto fermo, tutto visibile
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal-media, html.js [data-wipe] { clip-path: none !important; }
  html.js .reveal-media > img, html.js .reveal-media > picture > img { transform: none !important; }
  html.js [data-rise], html.js [data-scale] { transform: none !important; opacity: 1 !important; }
  .hero__title .line > span, .loader__word span { transform: none !important; }
  .hero__video { display: none; }
  .hero__poster { display: block; }
  .aura__blob, .marquee__track { animation: none !important; }
  .loader { display: none !important; }
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

/* Teaser domande (home): solo titolo, riga di lancio e bottone verso /domande/ */
.qa-teaser__inner { display: grid; gap: clamp(18px, 2.5vw, 28px); justify-items: start; }
.qa-teaser__title { max-width: 16ch; }
.qa-teaser__lead { max-width: 46ch; }
@media (min-width: 900px) {
  .qa-teaser__inner { grid-template-columns: 1fr auto; align-items: end; column-gap: clamp(40px, 6vw, 96px); }
  .qa-teaser__title { grid-column: 1; }
  .qa-teaser__lead { grid-column: 1; }
  .qa-teaser__action { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}

/* Due testimonianze video in home: facciata locale, l'iframe parte solo al clic */
.stories__videos { display: grid; gap: 16px; }
@media (min-width: 700px) { .stories__videos { grid-template-columns: 1fr 1fr; } }
.stories .yt__label { color: var(--white); }

/* Barra CTA fissa (solo mobile): compare dopo l'hero, sparisce quando il form è in vista */
.cta-bar { display: none; }
@media (max-width: 899px) {
  .cta-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(250,250,250,0) 0%, rgba(250,250,250,0.92) 38%);
    transform: translateY(120%); transition: transform var(--t-med, 0.5s) var(--ease-out);
    pointer-events: none;
  }
  .cta-bar.is-on { transform: translateY(0); pointer-events: auto; }
  .cta-bar__btn { width: 100%; justify-content: center; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: none; } }

/* Utility */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.center { text-align: center; }
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: block; } }

.field .check { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.9rem; }
.path__head .t-h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); }
.page-head .t-h1 { font-size: clamp(2.6rem, 5.8vw, 5.4rem); }
.page-head .grid--asym-r .t-h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }

/* Il contenuto focalizzato non deve finire sotto l'header fisso */
h1, h2, h3, .form__done, .field, .faq__item, [id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* --------------------------------------------------------------------------
   Sezione CTA (pagine interne): rimanda al form unico
   -------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta .wrap { position: relative; z-index: 1; display: grid; gap: 28px; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.cta__title { max-width: 14ch; }
.cta__lead { margin-top: 18px; }
.cta__action .btn { min-height: 60px; padding-inline: 34px; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Form a step (typeform-like)
   -------------------------------------------------------------------------- */
.mform { position: relative; }
.mform__progress { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.mform__bar { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.mform__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--orange-deep), var(--orange), var(--orange-soft)); transform-origin: left; transform: scaleX(0.2); transition: transform var(--t-med) var(--ease-out); }
.mform__count { font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 3.5ch; text-align: right; }
.mform__stage { position: relative; overflow: hidden; }
.mform__step { display: grid; gap: 22px; }
.mform__step[aria-hidden="true"] { position: absolute; inset: 0 0 auto 0; visibility: hidden; pointer-events: none; }
.mform__q { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; text-wrap: pretty; }
.mform__q small { display: block; margin-top: 8px; font-size: 0.95rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.mform__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .mform__row--2 { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 0.95rem; transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.chip input:active + span { transform: scale(0.97); }
.mform__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.mform__back { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.mform__back:hover { color: var(--ink); }
.mform__back svg { width: 16px; height: 16px; }
.mform__hint { font-size: 0.8rem; color: var(--ink-3); }
.mform__hint kbd { font: inherit; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; }
.mform__error { font-size: 0.9rem; font-weight: 600; color: var(--orange-deep); min-height: 1.4em; }
.mform__error:empty { display: none; }
.mform .field input, .mform .field textarea { font-size: clamp(1.15rem, 1.8vw, 1.5rem); padding: 10px 0; }
.mform .field label { font-size: 0.8rem; }
.mform .field textarea { min-height: 120px; }
.mform__summary { display: grid; gap: 10px; padding: 20px 22px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); font-size: 0.95rem; }
.mform__summary div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.mform__summary dt { color: var(--ink-2); }
.mform__summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mform.is-done { display: none; }

/* --------------------------------------------------------------------------
   Chi sono: ritratto scontornato
   -------------------------------------------------------------------------- */
.about-hero { position: relative; overflow: hidden; padding-bottom: 0; }
.about-hero .grid { align-items: end; }
.about-hero__figure { position: relative; margin-inline: auto; width: min(100%, 440px); height: min(72vh, 720px); margin-top: 24px; }
@media (min-width: 900px) { .about-hero__figure { margin-right: 0; margin-top: 0; } }
@media (max-width: 899px) { .about-hero__figure { height: min(56vh, 500px); width: min(100%, 320px); } }
.about-hero__clip { position: relative; z-index: 1; height: 100%; }
.about-hero__aura { position: absolute; left: 50%; top: 42%; width: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--orange) 0%, rgba(255, 90, 31, 0.55) 30%, rgba(255, 181, 143, 0) 70%); filter: blur(40px); z-index: 0; will-change: transform; pointer-events: none; }
html.no-js .about-hero__aura, html.no-js .about-hero__ring { transform: translateX(-50%); }
.about-hero__img { position: relative; width: 100%; height: auto; }
html.js .about-hero__img { clip-path: inset(0 0 100% 0); }
.about-hero__ring { position: absolute; z-index: 0; left: 50%; top: 46%; width: 96%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line); pointer-events: none; }

/* Video "storia" 16:9 */
.yt--wide { aspect-ratio: 16 / 9; }
.videos .yt--wide { grid-column: span 2; }
@media (max-width: 699px) { .videos .yt--wide { grid-column: auto; } }

/* --------------------------------------------------------------------------
   Fasi: contenuto delle card (usato dallo stack in home e in /metodo/)
   -------------------------------------------------------------------------- */
.phase__inner { display: grid; gap: 24px; border-radius: var(--r); padding: clamp(24px, 3vw, 44px); overflow: hidden; }
@media (min-width: 900px) { .phase__inner { grid-template-columns: 1fr 1fr; align-items: center; max-width: var(--max); margin-inline: auto; width: 100%; } }
.phase__num { font-size: clamp(5rem, 14vw, 13rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; opacity: 0.18; }
.phase__title { font-size: clamp(2.4rem, 5.5vw, 5.2rem); font-weight: 600; letter-spacing: -0.045em; text-transform: uppercase; line-height: 0.92; margin-top: -0.3em; }
.phase__text { margin-top: 18px; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.45; max-width: 40ch; text-wrap: pretty; }
.phase__list { margin-top: 20px; display: grid; gap: 8px; font-size: 0.98rem; }
.phase__list li { display: flex; gap: 10px; align-items: baseline; }
.phase__list li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.6; position: relative; top: -2px; }
.phase__media { border-radius: calc(var(--r) - 8px); overflow: hidden; aspect-ratio: 4 / 3; max-height: min(50vh, 460px); }
.phase__media img { width: 100%; height: 100%; object-fit: cover; }

/* Metodo: percorso in strip orizzontale (scroll-snap) */
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip__item { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; border-radius: var(--r); padding: 26px 24px 28px; background: var(--white); border: 1px solid var(--line); display: grid; align-content: start; gap: 14px; }
.strip__item--accent { background: linear-gradient(150deg, var(--orange-deep), var(--orange) 60%, var(--orange-soft) 140%); color: var(--white); border-color: transparent; }
.strip__num { font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; color: var(--orange-deep); }
.strip__item--accent .strip__num { color: rgba(253,253,253,0.7); }
.strip__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-transform: uppercase; }
.strip__text { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.strip__item--accent .strip__text { color: rgba(253,253,253,0.9); }
.strip__hint { margin-top: 12px; font-size: 0.85rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Domande: lista + pannello risposta (desktop), accordion (mobile)
   -------------------------------------------------------------------------- */
.qa { display: grid; gap: 28px; }
@media (min-width: 900px) { .qa { grid-template-columns: 6fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: start; } .qa__panel-wrap { position: sticky; top: calc(var(--nav-h) + 24px); } }
.qa__list { display: grid; border-top: 1.5px solid var(--ink); }
.qa__item { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 14px; align-items: center; text-align: left; padding: 20px 0; font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -0.015em; line-height: 1.2; transition: color var(--t-fast); }
.qa__num { font-size: 0.85rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qa__q .faq__icon { width: 32px; height: 32px; }
.qa__q[aria-selected="true"] { color: var(--orange-deep); }
.qa__q[aria-selected="true"] .qa__num { color: var(--orange-deep); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease-out); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding-bottom: 22px; color: var(--ink-2); text-wrap: pretty; }
.qa__item.is-open .qa__a { grid-template-rows: 1fr; }
@media (min-width: 900px) { html.js .qa__a { display: none; } html.js .qa__q .faq__icon { display: none; } html.no-js .qa__panel-wrap { display: none; } }
.qa__panel { position: relative; border-radius: var(--r); padding: clamp(28px, 4vw, 52px); min-height: 420px; background: linear-gradient(150deg, var(--orange-deep) 0%, var(--orange) 50%, var(--orange-soft) 130%); color: var(--white); display: none; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden; }
@media (min-width: 900px) { .qa__panel { display: flex; } }
.qa__panel-q { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; max-width: 22ch; }
.qa__panel-a { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.5; max-width: 48ch; color: rgba(253,253,253,0.94); text-wrap: pretty; }
.qa__panel-a .line { display: block; overflow: hidden; }
.qa__panel-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.qa__panel-foot .link { color: var(--white); }
.qa__panel > * { position: relative; z-index: 1; }
.qa__panel > .qa__figure { position: absolute; right: -3%; bottom: -3%; width: 30%; max-width: 210px; z-index: 0; pointer-events: none; }
.qa__figure img { width: 100%; height: auto; display: block; }
.qa__panel-q, .qa__panel-a { padding-right: 24%; }
.qa__panel-foot { padding-right: 30%; }
.strip__nav { display: flex; gap: 10px; margin-top: 8px; }
.strip__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.strip__btn svg { width: 20px; height: 20px; }
.strip__btn:hover { background: var(--ink); color: var(--white); }
.strip__btn:active { transform: scale(0.95); }
.strip__btn[disabled] { opacity: 0.35; pointer-events: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging * { pointer-events: none; }
.qa__q[aria-expanded="true"] .faq__icon { background: var(--orange); border-color: var(--orange); color: var(--white); transform: rotate(180deg); }
.qa__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
@media (max-width: 899px) {
  .phase__media { aspect-ratio: 16 / 10; max-height: none; }
}

/* --------------------------------------------------------------------------
   Metodo: hero con titolo cinetico
   -------------------------------------------------------------------------- */
.method-hero { position: relative; overflow: hidden; }
.method-hero__title { max-width: 16ch; margin-top: 14px; }
.method-hero__title .word { display: inline-block; white-space: nowrap; }
.method-hero__title .char { display: inline-block; will-change: transform; }

/* --------------------------------------------------------------------------
   Big CTA (pagine interne)
   -------------------------------------------------------------------------- */
.bigcta {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(100%, 560px); min-height: clamp(84px, 9vw, 120px); padding: 0 clamp(14px, 1.6vw, 20px) 0 clamp(26px, 3vw, 40px);
  border-radius: 999px; color: var(--white); overflow: hidden; will-change: transform;
  transition: transform var(--t-fast) var(--ease-out);
}
.bigcta__bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(115deg, var(--orange-deep) 0%, var(--orange) 40%, var(--orange-soft) 70%, var(--orange) 100%); background-size: 220% 100%; background-position: 0% 50%; transition: background-position 0.9s var(--ease-out); }
.bigcta:hover .bigcta__bg, .bigcta:focus-visible .bigcta__bg { background-position: 100% 50%; }
.bigcta__text { font-size: clamp(1.3rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; height: 1.1em; overflow: hidden; }
.bigcta__roll { display: block; transition: transform var(--t-med) var(--ease-out); }
.bigcta__roll span { display: block; height: 1.1em; line-height: 1.1; white-space: nowrap; }
.bigcta:hover .bigcta__roll, .bigcta:focus-visible .bigcta__roll { transform: translateY(-100%); }
.bigcta__icon { flex: 0 0 auto; width: clamp(56px, 6.5vw, 84px); height: clamp(56px, 6.5vw, 84px); border-radius: 50%; background: var(--white); color: var(--orange-deep); display: grid; place-items: center; transition: transform var(--t-med) var(--ease-out); }
.bigcta__icon svg { width: 42%; height: 42%; }
.bigcta:hover .bigcta__icon, .bigcta:focus-visible .bigcta__icon { transform: rotate(45deg) scale(1.06); }
.bigcta:active { transform: scale(0.98); }
.bigcta__ripple { position: absolute; z-index: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: rgba(253,253,253,0.35); pointer-events: none; transform: scale(0); }
.cta__action { display: flex; justify-content: flex-end; }
@media (max-width: 899px) { .cta__action { justify-content: stretch; } .bigcta { width: 100%; } }

