/* =====================================================================
   Mirko Rimoldi · Osteopata — "Regia clinica"
   Dal blocco al rilascio, girato come un film: luce di studio, notte
   cinematografica, una radiografia che si riallinea.
   Un solo carattere (Mona Sans): stretto e pesante = tensione,
   largo e leggero = rilascio. Mobile-first.
   ===================================================================== */

/* ---------- Font (self-hosted: nessuna richiesta a terzi prima del consenso) ---------- */
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin-normal.woff2") format("woff2-variations"),
       url("../fonts/mona-sans-latin-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
/* Fallback con metriche vicine: riduce lo spostamento al cambio font */
@font-face {
  font-family: "Mona Sans Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 88%;
  descent-override: 23%;
  line-gap-override: 0%;
}

/* ---------- Token ---------- */
:root {
  /* Luce di studio: neutri freddi, mai bianco puro */
  --paper: #F5F7FA;
  --white: #FCFDFE;
  --cloud: #ECF0F5;
  --mist: #E1E9F2;
  /* Inchiostro */
  --ink: #0B1A2B;
  --ink-2: #475767;
  --ink-3: #6E7C8B;
  /* Notte cinematografica */
  --midnight: #060F1A;
  --midnight-2: #0C1A2A;
  --midnight-3: #13283B;
  --on-dark: #EDF2F8;
  --on-dark-2: #9AADC0;
  /* Blu clinico: fiducia e azione */
  --cobalt: #1E55B3;
  --cobalt-hi: #2765CC;
  --cobalt-lo: #15428F;
  --azure: #5DA8E8;
  --glow: #8CCBFF;
  /* Un solo colore "dolore", solo decorativo */
  --coral: #EE6B4D;
  --error: #B42318;

  --line: rgba(11, 26, 43, .1);
  --line-2: rgba(11, 26, 43, .2);
  --line-dark: rgba(237, 242, 248, .1);
  --line-dark-2: rgba(237, 242, 248, .22);

  --font: "Mona Sans", "Mona Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);      /* expo out: rivelazioni */
  --ease-q: cubic-bezier(.25, 1, .5, 1);    /* quart out: stati */
  --ease-io: cubic-bezier(.65, 0, .35, 1);  /* scene */

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1280px;
  --header-h: 68px;
  --section-y: clamp(5rem, 3.5rem + 6vw, 9.5rem);

  --shadow-1: 0 1px 2px rgba(11, 26, 43, .06), 0 10px 24px -16px rgba(11, 26, 43, .24);
  --shadow-2: 0 1px 2px rgba(11, 26, 43, .06), 0 28px 56px -28px rgba(11, 26, 43, .38);
  --focus: var(--cobalt);
  --em: var(--cobalt);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  letter-spacing: -.006em;
  font-synthesis: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
::selection { background: var(--glow); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
button { font: inherit; letter-spacing: inherit; }
strong { font-weight: 620; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
[hidden] { display: none !important; }
[data-if]:not(.is-on) { display: none !important; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon--sm { width: 1rem; height: 1rem; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 479px) {
  .sm-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  padding: .75rem 1rem; border-radius: var(--r-sm);
  background: var(--ink); color: var(--on-dark);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Tipografia ---------- */
/* Tensione = stretto e pesante. Rilascio = largo e leggero. */
.h2 {
  font-size: clamp(2.25rem, 1.3rem + 3.7vw, 4.625rem);
  line-height: 1;
  font-weight: 620;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h2 em,
.rel {
  font-style: normal;
  font-weight: 300;
  font-stretch: 112%;
  letter-spacing: -.032em;
  color: var(--em);
}
.h3 {
  font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem);
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -.022em;
}
.lead {
  font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem);
  line-height: 1.55;
  letter-spacing: -.012em;
}
.idx {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--ink-3);
}

/* ---------- Pulsanti e link ---------- */
.btn {
  --btn-bg: var(--cobalt);
  --btn-bg-hover: var(--cobalt-lo);
  --btn-fg: var(--white);
  --btn-sheen: rgba(255, 255, 255, .28);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 56px;
  padding: .75rem 1.5rem;
  border: 0;
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 560 1.0625rem/1.2 var(--font);
  letter-spacing: -.014em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(11, 26, 43, .16), 0 14px 28px -16px rgba(21, 66, 143, .7);
  transition: background-color .35s var(--ease-q), box-shadow .45s var(--ease-q), transform .35s var(--ease-q), translate .7s var(--ease), color .3s;
  touch-action: manipulation;
}
/* Riflesso di luce che attraversa il pulsante al passaggio */
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px auto -2px 0;
  width: 55%;
  background: linear-gradient(100deg, transparent 0%, var(--btn-sheen) 50%, transparent 100%);
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}
@media (hover: hover) {
  .motion .btn:hover::after { transform: translateX(260%) skewX(-18deg); transition: transform .9s var(--ease); }
}
.btn:hover { background: var(--btn-bg-hover); box-shadow: 0 1px 1px rgba(11, 26, 43, .16), 0 20px 36px -18px rgba(21, 66, 143, .75); }
.btn:active { transform: scale(.98); }
.btn .icon { width: 1.25em; height: 1.25em; }
.btn__label { position: relative; }
.btn--small { min-height: 46px; padding: .5rem 1.05rem; border-radius: 12px; font-size: .9375rem; }
.btn--lg { min-height: 60px; padding: .85rem 1.75rem; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn--light {
  --btn-bg: var(--white);
  --btn-bg-hover: #E3ECF7;
  --btn-fg: var(--ink);
  --btn-sheen: rgba(30, 85, 179, .16);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 18px 36px -18px rgba(0, 0, 0, .7);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(11, 26, 43, .05);
  --btn-fg: var(--ink);
  --btn-sheen: rgba(11, 26, 43, .06);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn .icon--arrow { transition: transform .45s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 48px;
  font-weight: 540;
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) 0 calc(100% - 12px) / 0% 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 calc(100% - 12px) / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link-quiet:hover { background-size: 100% 1px, 100% 1px; }
.link-quiet .icon { transition: transform .45s var(--ease); }
.link-quiet:hover .icon { transform: translateY(3px); }
.link-inline { font-weight: 560; text-underline-offset: .25em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: color .45s var(--ease-q);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 247, 250, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .45s var(--ease-q), background-color .45s var(--ease-q), box-shadow .45s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header[data-tone="dark"] { color: var(--on-dark); --focus: var(--glow); }
.site-header[data-tone="dark"]::before { background: rgba(6, 15, 26, .78); box-shadow: 0 1px 0 var(--line-dark); }
.site-header[data-tone="dark"] .btn--header { --btn-bg: var(--white); --btn-bg-hover: #E3ECF7; --btn-fg: var(--ink); --btn-sheen: rgba(30, 85, 179, .16); }
.site-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cobalt);
  transform-origin: left center;
  transform: scaleX(var(--sp, 0));
  opacity: 0;
  transition: opacity .4s;
}
.site-header.is-scrolled .site-header__progress { opacity: 1; }
.site-header[data-tone="dark"] .site-header__progress { background: var(--glow); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}
/* Logo: la firma di Mirko (simbolo #i-sign) + ruolo */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .12rem;
  min-height: 48px;
  text-decoration: none;
  line-height: 1.05;
}
.wordmark__sign,
.sign__svg,
.footer__sign {
  display: block;
  height: auto;
  aspect-ratio: 1120 / 262;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
  stroke-linejoin: round;
}
.wordmark__sign { width: 116px; stroke-width: 5; margin-left: -4px; }
.wordmark__role {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .01em;
  opacity: .66;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .wordmark { flex-direction: row; align-items: center; gap: .9rem; }
  .wordmark__sign { width: 136px; }
  .wordmark__role { position: relative; padding-left: .9rem; font-size: .75rem; }
  .wordmark__role::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: currentColor;
    opacity: .45;
  }
}
/* all'apertura la firma si scrive da sinistra a destra */
.motion .wordmark__sign { animation: sign-write 1.8s var(--ease-io) .25s both; }
@keyframes sign-write {
  from { clip-path: inset(-30% 100% -30% 0); }
  to { clip-path: inset(-30% -6% -30% 0); }
}

/* ---------- Navigazione ---------- */
.nav { display: none; }
.nav__list { display: flex; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .85rem;
  border-radius: var(--r-sm);
  color: inherit;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.012em;
  text-decoration: none;
  opacity: .7;
  transition: opacity .25s, background-color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: 8px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { opacity: 1; }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: .5rem; }
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(11, 26, 43, .06);
  color: inherit;
  cursor: pointer;
  transition: background-color .25s;
}
.menu-toggle:hover { background: rgba(11, 26, 43, .11); }
.site-header[data-tone="dark"] .menu-toggle { background: rgba(255, 255, 255, .1); }
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease), width .45s var(--ease);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8.4px; left: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 4.2px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 4.2px; left: 0; transform: rotate(-45deg); }
@media (min-width: 1100px) {
  .nav { display: flex; flex: 1; justify-content: center; }
  .menu-toggle { display: none; }
}

/* Menu a tutto schermo (mobile e tablet) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow-y: auto;
  padding-top: var(--header-h);
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: calc(100svh - var(--header-h));
  padding-top: 1.25rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}
.menu__list { margin: 0; padding: 0; list-style: none; counter-reset: m; border-top: 1px solid var(--line); }
.menu__list li { counter-increment: m; }
.menu__list a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 72px;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.875rem, 1.5rem + 2vw, 2.625rem);
  font-weight: 560;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-decoration: none;
}
.menu__list a::before {
  content: counter(m, decimal-leading-zero);
  font-size: .8125rem;
  font-weight: 560;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.menu__list a .icon { color: var(--ink-2); transition: transform .4s var(--ease); }
.menu__list a:hover .icon { transform: translateX(4px); }
.menu__foot { display: grid; gap: .85rem; }
.menu__meta { margin: 0; color: var(--ink-2); font-size: .875rem; text-align: center; }
.motion .menu__list li { opacity: 0; translate: 0 18px; transition: opacity .5s var(--ease-q), translate .7s var(--ease); }
.motion .menu.is-open .menu__list li { opacity: 1; translate: 0 0; transition-delay: calc(var(--i, 0) * 50ms + 120ms); }
html.menu-open { overflow: hidden; }
html.menu-open .site-header::before { opacity: 1; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 1100px) { .menu { display: none; } }

/* ---------- Hero: luce di studio ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 8% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--paper) 0%, #E9EEF4 100%);
}
.hero__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 42%, #000 92%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 42%, #000 92%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 1.75rem);
}
.byline { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.75rem; }
.byline__face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--white), 0 4px 12px -4px rgba(11, 26, 43, .35);
}
.byline__text { display: flex; flex-direction: column; font-size: .9375rem; line-height: 1.3; }
.byline__text strong { font-weight: 620; }
.byline__text span { color: var(--ink-2); }

.hero__title {
  font-size: clamp(2.625rem, 1.25rem + 6vw, 5.75rem);
  line-height: .95;
  font-weight: 640;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.h1-lead { display: block; }
.nw { white-space: nowrap; }
.h1-tense {
  display: block;
  margin-top: .3em;
  font-size: .46em;
  font-weight: 420;
  line-height: 1.14;
  letter-spacing: -.028em;
}
.h1-release {
  display: block;
  margin-top: .62em;
  font-size: .34em;
  font-weight: 300;
  font-stretch: 112%;
  line-height: 1.2;
  letter-spacing: -.024em;
  color: var(--cobalt);
}
/* Varianti senza riga "chi e dove": il messaggio principale torna grande */
.hero__title--b, .hero__title--c { font-size: clamp(2.25rem, 1.3rem + 4vw, 4.25rem); }
.hero__title--b .h1-tense, .hero__title--c .h1-tense { margin-top: 0; font-size: 1em; font-weight: 640; line-height: 1; letter-spacing: -.045em; }
.hero__title--b .h1-release, .hero__title--c .h1-release { font-size: .46em; }
.hero__title--d .h1-release { font-size: .5em; }
.hero__title .pain { position: relative; display: inline-block; font-weight: 600; }
.hero__title .pain::after {
  content: "";
  position: absolute;
  left: .02em;
  right: .06em;
  bottom: .02em;
  height: max(2px, .055em);
  border-radius: 2px;
  background: var(--coral);
  opacity: .8;
  transform-origin: left center;
}
.hero__sub {
  max-width: 33rem;
  margin: 1.6rem 0 0;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-top: 2rem;
}
.hero__points {
  display: grid;
  gap: .55rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: .9375rem;
}
.hero__points li { display: flex; align-items: center; gap: .55rem; }
.hero__points .icon { color: var(--cobalt); }
.hero__figure {
  position: relative;
  z-index: 1;
  margin: .75rem 0 0;
  height: clamp(420px, 118vw, 580px);
}
.hero__halo {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 112%;
  aspect-ratio: 1;
  translate: -50% 0;
  pointer-events: none;
}
.hero__halo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(93, 168, 232, .42), rgba(93, 168, 232, .12) 44%, rgba(93, 168, 232, 0) 68%);
}
.hero__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__rings circle { fill: none; stroke: rgba(30, 85, 179, .26); stroke-width: .22; }
.hero__rings circle + circle { stroke: rgba(30, 85, 179, .2); stroke-dasharray: .5 1.6; }
.hero__figure picture { position: absolute; left: 50%; bottom: 0; height: 100%; translate: -50% 0; }
.hero__figure img {
  display: block;
  width: auto;
  height: 100%;
  filter: drop-shadow(0 26px 34px rgba(11, 26, 43, .16));
}
.hero__tag {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 2rem;
  display: none;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem .7rem .75rem;
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--ink-2);
  white-space: nowrap;
}
.hero__tag::before {
  content: "";
  width: 3px;
  align-self: stretch;
  border-radius: 3px;
  background: var(--cobalt);
}
.hero__tag span { display: flex; flex-direction: column; }
.hero__tag strong { color: var(--ink); font-size: .9375rem; font-weight: 620; }

@media (max-width: 599px) {
  .h1-release { font-size: .44em; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-quiet { margin-inline: auto; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .hero__inner { padding-top: calc(var(--header-h) + 3rem); }
  .hero__figure { height: 620px; }
  .hero__tag { display: flex; left: calc(50% - 19rem); bottom: 3rem; }
  .hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
}
@media (min-width: 960px) {
  .hero {
    --hero-h: max(680px, min(100svh, 940px));
    --fig-h: min(calc(var(--hero-h) - var(--header-h) - 1rem), 800px, 62vw);
    --fig-w: calc(var(--fig-h) * .674);
    min-height: var(--hero-h);
  }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--fig-w);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    min-height: var(--hero-h);
    padding-top: var(--header-h);
  }
  .hero__copy { align-self: center; max-width: 42rem; padding-block: 2rem 3.5rem; }
  .hero__title { font-size: clamp(4rem, 1.4rem + 4.4vw, 5.75rem); }
  .byline { display: none; }
  .hero__figure { align-self: end; width: var(--fig-w); height: var(--fig-h); margin: 0; }
  .hero__halo { width: 158%; bottom: -16%; }
  .hero__figure picture { left: auto; right: 0; translate: none; }
  .hero__tag { display: flex; left: -2rem; bottom: 3rem; }
  .hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
}

/* Foto */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--mist);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sezioni ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--midnight); color: var(--on-dark); --focus: var(--glow); --em: var(--glow); }
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .035;
  pointer-events: none;
}
.section--cloud { background: var(--cloud); }
.section--mist { background: var(--mist); }
.section > .container { position: relative; }
.section-head { max-width: 50rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }

/* Il palco si apre: la sezione scura entra con angoli arrotondati e si allarga a tutta pagina */
.motion [data-stage] {
  clip-path: inset(0 var(--st-x, 0px) 0 var(--st-x, 0px) round var(--st-r, 0px) var(--st-r, 0px) 0 0);
}

/* ---------- Ti riconosci? ---------- */
.pain__hint {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 1.25rem 0 0;
  color: var(--on-dark-2);
  font-size: .9375rem;
}
.pain__hint::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(238, 107, 77, .2);
}
.motion .pain__hint::before { animation: hint 2.4s var(--ease-q) infinite; }
@keyframes hint {
  0%, 100% { box-shadow: 0 0 0 4px rgba(238, 107, 77, .2); }
  50% { box-shadow: 0 0 0 7px rgba(238, 107, 77, .06); }
}
.quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  align-items: start;
  counter-reset: q;
}
.quote {
  --mx: 50%;
  --my: 50%;
  position: relative;
  counter-increment: q;
  border-radius: var(--r-lg);
  background: var(--midnight-2);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: background-color .5s var(--ease-q), box-shadow .5s var(--ease-q), translate .9s var(--ease), opacity .8s var(--ease-q);
}
/* Luce che segue il puntatore (solo desktop) */
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(140, 203, 255, .1), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .quote:hover::before { opacity: 1; }
  .quote:hover { box-shadow: inset 0 0 0 1px var(--line-dark-2); }
}
.quote.is-open {
  background: var(--midnight-3);
  box-shadow: inset 0 0 0 1px rgba(140, 203, 255, .55), 0 24px 50px -30px rgba(0, 0, 0, .9);
}
.quote__btn {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: .9rem;
  width: 100%;
  min-height: 48px;
  padding: 1.25rem 1.2rem 1.4rem 1.4rem;
  border: 0;
  border-radius: inherit;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.quote__btn::before {
  content: counter(q, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: .8125rem;
  font-weight: 560;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-2);
}
.quote__text {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: -.024em;
  text-wrap: pretty;
  transition: font-weight .6s var(--ease), font-stretch .6s var(--ease), color .4s;
}
/* Quando la riconosci, la frase "si scioglie" */
.quote.is-open .quote__text { font-weight: 340; font-stretch: 108%; color: #FFFFFF; }
.quote__toggle {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-dark-2);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.quote__toggle .icon { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .3s; }
.quote__toggle .icon--check { opacity: 0; transform: scale(.5); }
.quote__btn:hover .quote__toggle { box-shadow: inset 0 0 0 1px rgba(237, 242, 248, .5); }
.quote.is-open .quote__toggle { background: var(--glow); color: var(--midnight); box-shadow: none; }
.quote.is-open .quote__toggle .icon--plus { opacity: 0; transform: rotate(90deg) scale(.5); }
.quote.is-open .quote__toggle .icon--check { opacity: 1; transform: none; }
.quote__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.quote__more > div {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-q), visibility 0s .6s;
}
.quote__more p {
  margin: 0 1.4rem;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-2);
  font-size: 1rem;
}
.quote__more strong { color: var(--glow); font-weight: 600; }
.quote.is-open .quote__more { grid-template-rows: 1fr; }
.quote.is-open .quote__more > div {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s var(--ease-q) .12s, visibility 0s 0s;
}
.no-js .quote__more { grid-template-rows: 1fr; }
.no-js .quote__more > div { opacity: 1; visibility: visible; }
.no-js .quote__toggle { display: none; }

.motion [data-stagger] > * { opacity: 0; translate: 0 36px; }
.motion [data-stagger].is-in > * {
  opacity: 1;
  translate: 0 0;
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* Riepilogo selezione → messaggio WhatsApp */
.pick {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(30, 85, 179, .22), rgba(30, 85, 179, .06));
  box-shadow: inset 0 0 0 1px rgba(140, 203, 255, .18);
}
.pick__text { margin: 0; }
.pick__count {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.pick__count em { font-style: normal; font-weight: 300; font-stretch: 112%; color: var(--glow); }
.pick .btn { justify-self: start; }
@media (max-width: 599px) { .pick .btn { width: 100%; justify-self: stretch; padding-inline: 1rem; font-size: 1rem; } .pick { padding: 1.25rem; } }
@media (min-width: 720px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pick { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1.75rem 2rem; }
}
@media (min-width: 1100px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quote__text { min-height: 3.75em; }
}

/* ---------- Agitate ---------- */
.agitate { padding-top: clamp(1rem, 3vw, 3rem); }
.agitate__grid { display: grid; gap: 2rem; }
.agitate__title em { color: var(--on-dark-2); }
.agitate__body .lead { color: var(--on-dark); max-width: 38rem; margin: 0; }

/* Il carico che si accumula: schema, non dati */
.weight {
  display: grid;
  gap: 2rem;
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line-dark);
}
.load {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 1.25rem;
  height: 248px;
}
.load__tank {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  padding: 4px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line-dark-2);
  overflow: hidden;
}
.load__layer {
  flex: 0 0 var(--h);
  margin-top: 3px;
  border-radius: 10px;
  background: var(--c);
  transform-origin: bottom center;
}
.load__labels {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  padding-block: 4px;
  list-style: none;
  margin: 0;
}
.load__labels li {
  flex: 0 0 var(--h);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 3px;
  color: var(--on-dark);
  font-size: .9375rem;
  font-weight: 520;
  letter-spacing: -.012em;
}
.load__labels li::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-dark-2);
}
.load__limit {
  position: absolute;
  left: -8px;
  width: calc(96px + 16px);
  top: 26%;
  border-top: 1.5px dashed rgba(238, 107, 77, .8);
}
.load__limit::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(238, 107, 77, .22);
}
.motion [data-load] .load__layer { transform: scaleY(0); }
.motion [data-load] .load__labels li { opacity: 0; translate: -8px 0; }
.motion [data-load] .load__limit { opacity: 0; }
.motion [data-load].is-in .load__layer { transform: scaleY(1); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * .22s + .1s); }
.motion [data-load].is-in .load__labels li { opacity: 1; translate: 0 0; transition: opacity .5s var(--ease-q), translate .7s var(--ease); transition-delay: calc(var(--i) * .22s + .35s); }
.motion [data-load].is-in .load__limit { opacity: 1; transition: opacity .4s 1.2s; }
.motion [data-load].is-in .load__limit::after { animation: limit 1.8s var(--ease-q) 1.4s infinite; }
@keyframes limit {
  0%, 100% { box-shadow: 0 0 0 4px rgba(238, 107, 77, .22); }
  50% { box-shadow: 0 0 0 9px rgba(238, 107, 77, 0); }
}
.weight__text {
  margin: 0;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5625rem);
  font-weight: 440;
  line-height: 1.3;
  letter-spacing: -.022em;
  text-wrap: pretty;
  color: var(--on-dark-2);
}
.weight__text strong { display: block; margin-bottom: .35em; font-weight: 620; color: var(--on-dark); }
@media (min-width: 600px) {
  .weight { grid-template-columns: 272px minmax(0, 1fr); align-items: center; gap: 2.5rem; }
  .load__labels li { white-space: nowrap; }
  .load { grid-template-columns: 84px minmax(0, 1fr); }
  .load__limit { width: calc(84px + 16px); }
}
@media (min-width: 960px) {
  .agitate__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .agitate__title { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Reframe: la radiografia che si riallinea ---------- */
.reframe {
  position: relative;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight) 24%, var(--cobalt-lo) 55%, var(--paper) 86%);
  color: var(--ink);
  --em: var(--glow);
}
.reframe__stage { position: relative; padding-block: clamp(2rem, 6vw, 5rem) var(--section-y); }
.reframe__bg { display: none; }
.reframe__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  grid-template-areas: "title" "spine" "text";
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.reframe__copy { display: contents; }
.reframe__title { grid-area: title; color: var(--on-dark); max-width: 13ch; }
.reframe__text { grid-area: text; max-width: 36rem; margin: 0; font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); }
.spine {
  grid-area: spine;
  position: relative;
  margin: 0;
  width: min(400px, 92vw);
  aspect-ratio: 480 / 600;
}
.spine__svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.spine .bone { fill: rgba(140, 203, 255, .1); stroke: #CFE8FF; stroke-width: 1.4; }
.spine .skull { fill: rgba(140, 203, 255, .08); stroke: #CFE8FF; stroke-width: 1.4; }
.spine .frame { fill: none; stroke: #CFE8FF; stroke-width: 2.2; stroke-linecap: round; }
.spine .frame--shade { stroke: rgba(140, 203, 255, .18); stroke-width: 8; }
.spine__body { filter: drop-shadow(0 0 6px rgba(140, 203, 255, .45)); transition: filter .6s; }
.spine.is-light .spine__body { filter: none; }
.spine.is-light .bone,
.spine.is-light .skull { fill: var(--white); stroke: var(--ink); }
.spine.is-light .frame { stroke: var(--ink); }
.spine.is-light .frame--shade { stroke: rgba(11, 26, 43, .08); }
.spine .bone, .spine .skull, .spine .frame { transition: fill .6s var(--ease-q), stroke .6s var(--ease-q); }
.spine__links path { stroke: var(--azure); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.spine__links circle { fill: var(--azure); }
.spine__dot { fill: var(--coral); stroke: #FFFFFF; stroke-width: 1.5; }
.spine__pulse { fill: none; stroke: var(--coral); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.spine.is-tense .spine__pulse { animation: pulse 1.6s var(--ease-q) infinite; }
@keyframes pulse {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}
/* Linea di scansione e righello: il "monitor" della radiografia */
.spine__scan,
.spine__ruler { display: none; }
.reframe.is-scrub .spine__scan {
  display: block;
  position: absolute;
  left: -6%;
  right: -6%;
  top: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow) 18%, #FFFFFF 50%, var(--glow) 82%, transparent);
  box-shadow: 0 0 18px 4px rgba(140, 203, 255, .45);
  transform: translateY(var(--scan-y, 0px));
  opacity: var(--scan-o, 0);
  pointer-events: none;
}
.reframe.is-scrub .spine__scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 90px;
  background: linear-gradient(0deg, rgba(140, 203, 255, .16), transparent);
}
.reframe.is-scrub .spine__ruler {
  display: block;
  position: absolute;
  left: -10%;
  top: 4%;
  bottom: 4%;
  width: 14px;
  background: repeating-linear-gradient(180deg, rgba(207, 232, 255, .45) 0 1px, transparent 1px 12px);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, .5));
  mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0, .5));
  opacity: var(--ui-o, 1);
}
.spine__tag {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  padding: .45rem .8rem;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(6, 15, 26, .6), inset 0 0 0 1px rgba(93, 168, 232, .5);
}
.reframe.is-scrub { height: 260vh; background: var(--paper); }
.reframe.is-scrub .reframe__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}
.reframe.is-scrub .reframe__bg { display: block; position: absolute; inset: 0; background: var(--paper); }
.reframe__layer { position: absolute; inset: 0; will-change: opacity; }
.reframe__layer--mid { background: radial-gradient(90% 70% at 70% 40%, var(--cobalt) 0%, var(--cobalt-lo) 60%, #0E3170 100%); }
.reframe__layer--dark { background: radial-gradient(70% 60% at 68% 45%, #0D2036 0%, var(--midnight) 70%); }
.reframe__layer--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: .04;
}
.reframe.is-scrub .reframe__grid {
  height: 100%;
  padding-top: calc(var(--header-h) + clamp(1rem, 3vh, 2rem));
  padding-bottom: clamp(1rem, 4vh, 2.5rem);
  grid-template-areas: "copy" "spine";
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(.75rem, 3vh, 2rem);
}
.reframe.is-scrub .reframe__copy { display: grid; grid-area: copy; grid-template-columns: minmax(0, 1fr); width: 100%; align-items: start; justify-items: center; }
.reframe.is-scrub .reframe__title,
.reframe.is-scrub .reframe__text { grid-area: 1 / 1; will-change: opacity, transform; }
.reframe.is-scrub .reframe__text { opacity: 0; }
.reframe.is-scrub .spine { width: auto; height: 100%; max-width: 100%; min-height: 0; }
.reframe.is-scrub .spine__tag { opacity: 0; will-change: opacity, transform; }
@media (min-width: 960px) {
  .reframe__grid { text-align: left; }
  .reframe.is-scrub .reframe__grid {
    grid-template-areas: "copy spine";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    padding-bottom: 2.5rem;
  }
  .reframe.is-scrub .reframe__copy { justify-items: start; align-self: center; }
  .reframe.is-scrub .spine { height: min(100%, 700px); }
  .reframe.is-scrub .reframe__title { font-size: clamp(3.25rem, 1.8rem + 3.6vw, 5.5rem); }
  .reframe.is-scrub .reframe__text { font-size: 1.375rem; max-width: 30rem; }
}

/* ---------- Come lavoro ---------- */
.how { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.how__head { display: grid; gap: 1.25rem; }
.how__title { max-width: 14ch; }
.how__intro { max-width: 30rem; margin: 0; color: var(--ink-2); }
.pillars {
  display: grid;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line-2);
  counter-reset: p;
}
.pillar {
  counter-increment: p;
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-block: 1.75rem 2rem;
  border-bottom: 1px solid var(--line);
}
.pillar::before {
  content: counter(p, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: 1.75rem;
  font-size: .8125rem;
  font-weight: 560;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}
.pillar__glyph { width: 72px; height: 48px; grid-row: span 2; margin-top: .2rem; overflow: visible; }
.pillar .h3 { margin-bottom: .55rem; padding-right: 2.5rem; }
.pillar p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.g-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-line--accent { stroke: var(--cobalt); stroke-width: 1.75; }
.g-accent { fill: var(--cobalt); }
.motion .pillar .g-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.motion .pillar .g-line + .g-line { transition-delay: .35s; }
.motion .pillar .g-line + .g-line + .g-line { transition-delay: .5s; }
.motion .pillar.is-in .g-line { stroke-dashoffset: 0; }
.motion .pillar .g-accent { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .8s var(--ease) .15s; }
.motion .pillar.is-in .g-accent { transform: none; }
@media (min-width: 900px) {
  .how__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
  .pillar { display: block; padding: 2.25rem 2.25rem 0 0; border-bottom: 0; }
  .pillar::before { right: 2.25rem; top: 2.4rem; }
  .pillar + .pillar { padding-left: 2.25rem; border-left: 1px solid var(--line); }
  .pillar + .pillar::before { right: 2.25rem; }
  .pillar:last-child { padding-right: 0; }
  .pillar:last-child::before { right: 0; }
  .pillar__glyph { width: 96px; height: 64px; margin: 0 0 2rem; }
}

/* ---------- Citazione: le parole si accendono leggendo ---------- */
.quote-band {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 6vw, 9rem);
  background: var(--cloud);
}
.signature { display: grid; gap: 1.75rem; margin: 0; max-width: 64rem; }
.signature__mark { width: 40px; height: 29px; fill: var(--cobalt); }
.signature__text { margin: 0; }
.signature__text p {
  margin: 0;
  font-size: clamp(2.125rem, 1.25rem + 3.8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.signature__text p > span,
.signature__text p > em { display: block; }
.signature__text p > em { margin-top: .08em; font-style: normal; font-weight: 300; font-stretch: 112%; letter-spacing: -.032em; color: var(--cobalt); }
.signature__text .wd { transition: opacity .35s linear; }
.motion .signature__text.is-words .wd { opacity: var(--wo, .16); }
.signature__by { display: flex; align-items: center; gap: .9rem; margin-top: .25rem; }
.signature__by img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--white), 0 6px 16px -6px rgba(11, 26, 43, .4);
}
.signature__by span { display: flex; flex-direction: column; line-height: 1.3; font-size: .9375rem; color: var(--ink-2); }
.signature__by strong { color: var(--ink); font-weight: 620; }
@media (min-width: 900px) {
  .signature { grid-template-columns: 72px minmax(0, 1fr); column-gap: 2rem; row-gap: 2.25rem; }
  .signature__mark { width: 52px; height: 38px; margin-top: .7rem; }
  .signature__by { grid-column: 2; }
}

/* ---------- Percorso ---------- */
.steps { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.steps__line {
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(11, 26, 43, .12);
  border-radius: 2px;
}
.steps__line span {
  position: absolute;
  inset: 0;
  background: var(--cobalt);
  border-radius: inherit;
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.25rem; align-content: start; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mist);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 1.125rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: background-color .5s var(--ease-q), box-shadow .5s var(--ease-q), color .5s, transform .6s var(--ease);
}
.step.is-reached .step__num { background: var(--cobalt); color: var(--white); box-shadow: 0 10px 22px -10px rgba(21, 66, 143, .8); }
.motion .step.is-reached .step__num { animation: reach .6s var(--ease); }
@keyframes reach { 0% { transform: scale(.86); } 60% { transform: scale(1.06); } 100% { transform: none; } }
.step .h3 { margin: .65rem 0 .5rem; }
.step p { margin: 0; color: var(--ink-2); max-width: 34rem; }
.chat { margin-top: 1.25rem; max-width: 21rem; }
.chat__bubble {
  margin: 0;
  padding: .85rem 1rem;
  border-radius: 18px 18px 6px 18px;
  background: var(--white);
  color: var(--ink) !important;
  font-size: .9375rem;
  line-height: 1.45;
  box-shadow: var(--shadow-1);
}
.chat__meta { display: block; margin-top: .45rem; font-size: .75rem; font-weight: 520; color: var(--ink-2); text-align: right; }
.steps__cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 599px) { .steps__cta .btn { width: 100%; } }
@media (min-width: 960px) {
  .steps__line { left: 24px; right: 33%; top: 23px; bottom: auto; width: auto; height: 2px; }
  .steps__line span { transform-origin: left; transform: scaleX(var(--p, 1)); }
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .step { grid-template-columns: 1fr; gap: 1.5rem; }
  .step .h3 { margin-top: 0; }
}

/* ---------- Aspettative ---------- */
.expect__title { max-width: 17ch; }
.paths { display: grid; gap: 12px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.path {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: box-shadow .5s var(--ease-q), translate .6s var(--ease);
}
@media (hover: hover) {
  .path:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); }
}
.path .h3 span { color: var(--ink-2); font-weight: 400; }
.path__cause { margin: .5rem 0 1.75rem; color: var(--ink-2); }
.path__meter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  margin-top: auto;
}
.path__meter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-2);
}
.path__meter--spaced { justify-content: space-between; }
.dot { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--cobalt); }
.dot--maybe { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.path--keep .dot { width: 12px; height: 12px; background: var(--azure); }
.motion [data-paths] .dot { transform: scale(0); }
.motion [data-paths].is-in .dot { transform: scale(1); transition: transform .7s var(--ease); }
.motion [data-paths].is-in .dot:nth-child(2) { transition-delay: .12s; }
.motion [data-paths].is-in .dot:nth-child(3) { transition-delay: .24s; }
.motion [data-paths].is-in .dot:nth-child(4) { transition-delay: .36s; }
.motion [data-paths].is-in .dot:nth-child(5) { transition-delay: .48s; }
.motion [data-paths].is-in .dot:nth-child(6) { transition-delay: .6s; }
.path__count { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .65rem; margin: 1.2rem 0 0; }
.path__num {
  display: inline-block;
  font-size: clamp(3.25rem, 2.3rem + 3.2vw, 4.75rem);
  font-weight: 280;
  font-stretch: 112%;
  line-height: .9;
  letter-spacing: -.05em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.path__num--word { font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3rem); letter-spacing: -.04em; }
.path__unit { color: var(--ink-2); font-size: .9375rem; font-weight: 520; }
.path__note { margin: .75rem 0 0; color: var(--ink-2); font-size: .9375rem; }
.honest {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--cloud);
  color: var(--ink);
}
.honest__text {
  margin: 0;
  max-width: 46rem;
  font-size: clamp(1.3125rem, 1.15rem + .8vw, 1.75rem);
  font-weight: 480;
  line-height: 1.28;
  letter-spacing: -.026em;
}
.honest__text strong { font-weight: 300; font-stretch: 112%; color: var(--cobalt); }
.fineprint { margin: 1rem 0 0; color: var(--ink-2); font-size: .8125rem; }
@media (min-width: 900px) {
  .paths { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .honest { padding: 2.25rem 2.5rem; }
}

/* ---------- Per chi è ---------- */
.fit__head { display: grid; gap: 1rem; max-width: 50rem; }
.fit__intro { margin: 0; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.fit__grid { display: grid; gap: 12px; margin-top: clamp(2rem, 4vw, 3rem); }
.fit__col {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border-radius: var(--r-xl);
}
.fit__col--yes {
  background: radial-gradient(120% 90% at 100% 0%, var(--cobalt-hi) 0%, var(--cobalt) 45%, var(--cobalt-lo) 100%);
  color: var(--on-dark);
  box-shadow: 0 34px 64px -36px rgba(21, 66, 143, .8);
  --focus: var(--white);
}
.fit__col--no { background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.fit__label {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 1.25rem;
  border-radius: 12px;
}
.fit__col--yes .fit__label { background: var(--white); color: var(--cobalt); }
.fit__col--no .fit__label { background: var(--cloud); color: var(--ink-2); }
.fit__title {
  margin: 0;
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.fit__col--yes .fit__title { color: var(--white); }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .8rem; align-items: start; font-size: 1.0625rem; line-height: 1.45; }
.ticks .icon { width: 22px; height: 22px; margin-top: .1em; }
.fit__col--yes .ticks .icon { color: var(--glow); }
.fit__col--yes .ticks li { color: #F4F8FD; }
.ticks--no .icon { color: var(--ink-2); }
.fit__col--yes .btn { align-self: flex-start; margin-top: 2rem; }
.fit__quote { margin: auto 0 0; padding-top: 1.75rem; }
.fit__quote p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 300;
  font-stretch: 112%;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--cobalt);
}
.safety {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  margin-top: 12px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.safety .icon { width: 24px; height: 24px; color: var(--ink); margin-top: .05em; }
.safety p { margin: 0; font-size: .9375rem; }
.safety strong { font-weight: 640; }
@media (max-width: 599px) { .fit__col--yes .btn { width: 100%; } }
@media (min-width: 900px) {
  .fit__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
  .fit__col { padding: 2.5rem; }
}

/* ---------- Chi sono ---------- */
.about__grid { display: grid; gap: 2.5rem; align-items: center; }
.about__photo { margin: 0; }
/* Ritratto: lo scontornato della hero su luce di studio, inquadrato stretto (testa e spalle) */
.photo--about {
  aspect-ratio: 4 / 5;
  max-width: 520px;
  box-shadow: var(--shadow-2);
  background:
    radial-gradient(75% 55% at 28% 12%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 62%),
    radial-gradient(60% 50% at 80% 100%, rgba(30, 85, 179, .28), rgba(30, 85, 179, 0) 70%),
    linear-gradient(165deg, #E4EDF7 0%, #C6DAEE 52%, #A8C5E3 100%);
}
.photo--about::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(11, 26, 43, .08);
  pointer-events: none;
}
.photo--about picture { position: absolute; inset: 0; }
.photo--about img {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 134%;
  max-width: none;
  height: auto;
  object-fit: fill;
  translate: -50% 0;
  transform-origin: 50% 20%;
  filter: drop-shadow(0 18px 30px rgba(11, 26, 43, .22));
}
.motion .photo--about[data-reveal] { opacity: 1; translate: none; clip-path: inset(18% 8% 18% 8% round var(--r-xl)); transition: clip-path 1.4s var(--ease); }
.motion .photo--about[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.motion .photo--about[data-reveal] img { transition: scale 1.8s var(--ease), filter 1.8s var(--ease); scale: 1.12; }
.motion .photo--about[data-reveal]:not(.is-in) img { filter: brightness(.8) saturate(.6) drop-shadow(0 18px 30px rgba(11, 26, 43, .22)); }
.motion .photo--about[data-reveal].is-in img { scale: 1; }
.about__copy .h2 { margin-bottom: 1.25rem; }
.about__copy p { color: var(--ink-2); max-width: 40rem; }
.about__copy .lead { color: var(--ink); }
/* Firma: si "scrive" da sinistra a destra quando entra in vista */
.about__copy .sign { margin: 1.75rem 0 0; color: var(--ink); }
.sign__svg { width: clamp(210px, 52vw, 300px); stroke-width: 2; }
/* la maschera sta sull'SVG: il paragrafo resta osservabile dallo scroll */
.motion .sign[data-reveal] { opacity: 1; translate: none; }
.motion .sign[data-reveal] .sign__svg {
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 2.2s var(--ease-io) .35s;
}
.motion .sign[data-reveal].is-in .sign__svg { clip-path: inset(-20% -4% -20% 0); }
.creds {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--line-2);
}
.creds li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 540;
  letter-spacing: -.012em;
}
.creds li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cobalt);
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
  .creds { column-gap: 2rem; }
}

/* ---------- Promesse / recensioni ---------- */
.promises__grid { display: grid; gap: 2rem; }
.promises__head p { margin: 1rem 0 0; color: var(--ink-2); max-width: 28ch; }
.promises__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: pr; }
.promises__list li {
  counter-increment: pr;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.promises__list li::before {
  content: counter(pr, decimal-leading-zero);
  font-size: .8125rem;
  font-weight: 560;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--cobalt);
  transform: translateY(-.35em);
}
.promises__list span {
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.625rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.04em;
  transition: font-weight .6s var(--ease), font-stretch .6s var(--ease), color .4s;
}
@media (hover: hover) {
  .promises__list li:hover span { font-weight: 320; font-stretch: 112%; color: var(--cobalt); }
}
.reviews__list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 12px; }
.review { padding: 1.5rem; border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.review__stars { display: flex; gap: 2px; color: var(--cobalt); margin-bottom: .75rem; }
.review__stars .icon { width: 18px; height: 18px; }
.review p { margin: 0 0 1rem; }
.review cite { font-style: normal; font-weight: 620; font-size: .9375rem; }
@media (min-width: 900px) {
  .promises__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
  .promises__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .reviews__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 2rem; }
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 1rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: 560;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -.016em;
  border-radius: 6px;
  transition: color .25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.qa[open]:not(.is-closing) summary .icon { transform: rotate(45deg); background: var(--cobalt); color: var(--white); box-shadow: none; }
.qa summary:hover { color: var(--cobalt); }
.qa__a { overflow: hidden; }
.qa__a p { margin: 0 0 1.35rem; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .faq__grid .h2 { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Lo studio: indirizzo, telefono, orari ---------- */
.studio__grid { display: grid; gap: 2.5rem; align-items: start; }
.studio__name {
  margin: 1.5rem 0 .9rem;
  font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  font-weight: 620;
  letter-spacing: -.026em;
}
.studio__line {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .55rem;
  color: var(--ink-2);
}
.studio__line .icon { color: var(--cobalt); }
.studio__line a { color: var(--ink); }
.studio__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.hours {
  padding: 1.5rem;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.hours__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-2);
}
.hours__title { font-size: 1.125rem; font-weight: 620; letter-spacing: -.022em; }
.hours__status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 560;
}
.hours__status:empty { display: none; }
.hours__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}
.hours__status.is-open { background: rgba(30, 85, 179, .1); color: var(--cobalt); }
.hours__status.is-open::before { background: var(--cobalt); box-shadow: 0 0 0 3px rgba(30, 85, 179, .18); }
.motion .hours__status.is-open::before { animation: live 2.2s var(--ease-q) infinite; }
@keyframes live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(30, 85, 179, .18); }
  50% { box-shadow: 0 0 0 6px rgba(30, 85, 179, 0); }
}
.hours__list { list-style: none; margin: .5rem 0 0; padding: 0; }
.hours__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 -.75rem;
  padding: .7rem .75rem;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.hours__row + .hours__row { background: linear-gradient(var(--line), var(--line)) 50% 0 / calc(100% - 1.5rem) 1px no-repeat; }
.hours__day { display: inline-flex; align-items: baseline; gap: .5rem; color: var(--ink); font-weight: 520; }
.hours__time { color: var(--ink-2); }
.hours__row.is-closed .hours__time { color: var(--ink-3); }
.hours__row.is-today { background: var(--cloud); }
.hours__row.is-today + .hours__row { background: none; }
.hours__row.is-today .hours__day,
.hours__row.is-today .hours__time { color: var(--ink); font-weight: 640; }
.hours__today {
  font-size: .6875rem;
  font-weight: 620;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.hours__note { margin: 1.1rem 0 0; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 599px) { .studio__actions .btn { width: 100%; } }
@media (min-width: 900px) {
  .studio__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .hours { padding: 2rem; }
}
.footer__studio { color: var(--on-dark); font-weight: 560; }

/* ---------- CTA finale ---------- */
.final {
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 85% 0%, rgba(39, 101, 204, .55) 0%, rgba(39, 101, 204, 0) 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(21, 66, 143, .45) 0%, rgba(21, 66, 143, 0) 70%),
    var(--midnight);
  color: var(--on-dark);
  --focus: var(--glow);
  --em: var(--glow);
}
.final .lead { color: var(--on-dark-2); max-width: 34rem; margin: 1.25rem 0 2rem; }
.final__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(140, 203, 255, .16);
  stroke-width: 1.1;
  pointer-events: none;
}
.final__waves path { vector-effect: non-scaling-stroke; }
.motion .final__waves path { animation: breathe 8s var(--ease-io) infinite alternate; }
.motion .final__waves path:nth-child(2) { animation-delay: -1.6s; }
.motion .final__waves path:nth-child(3) { animation-delay: -3.2s; }
.motion .final__waves path:nth-child(4) { animation-delay: -4.8s; }
.motion .final__waves path:nth-child(5) { animation-delay: -6.4s; }
@keyframes breathe { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
.final__grid { position: relative; display: grid; gap: 2.5rem; }
.final__title { max-width: 13ch; }
.final__slots { margin: 1.1rem 0 0; color: var(--glow); font-size: .9375rem; font-weight: 540; }
@media (max-width: 599px) { .final__copy .btn { width: 100%; } }

.lead-form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(140, 203, 255, .18);
  --focus: var(--cobalt);
}
.lead-form__title { font-size: 1.75rem; font-weight: 620; line-height: 1.05; letter-spacing: -.04em; }
.lead-form__intro { margin: .5rem 0 1.5rem; color: var(--ink-2); font-size: .9375rem; }
.field { min-width: 0; margin: 0 0 1.15rem; padding: 0; border: 0; }
.field label,
.field legend { display: block; margin-bottom: .45rem; padding: 0; font-size: .9375rem; font-weight: 560; }
.optional { margin-left: .35rem; color: var(--ink-2); font-size: .8125rem; font-weight: 400; }
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input[type="text"]:hover,
.field input[type="tel"]:hover { border-color: rgba(11, 26, 43, .42); }
.field input[type="text"]:focus-visible,
.field input[type="tel"]:focus-visible {
  outline: none;
  background: var(--white);
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(30, 85, 179, .16);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: .4rem 0 0; color: var(--error); font-size: .875rem; font-weight: 540; }
.field__error:empty { display: none; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: .9375rem;
  font-weight: 540;
  transition: background-color .25s var(--ease-q), color .25s, box-shadow .25s, transform .25s var(--ease-q);
  pointer-events: none;
}
.chip:hover span { box-shadow: inset 0 0 0 1.5px rgba(11, 26, 43, .5); }
.chip input:checked + span { background: var(--cobalt); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.chip input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.chip input:active + span { transform: scale(.97); }
.chips[aria-invalid="true"] .chip span { box-shadow: inset 0 0 0 1.5px rgba(180, 35, 24, .6); }
.consent__label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  margin: 0 !important;
  color: var(--ink-2);
  font-size: .875rem !important;
  font-weight: 400 !important;
  line-height: 1.45;
  cursor: pointer;
}
.consent__label input { width: 22px; height: 22px; margin: .05rem 0 0; accent-color: var(--cobalt); cursor: pointer; }
.consent__label a { color: var(--ink); font-weight: 560; }
.lead-form .btn { margin-top: .5rem; }
.lead-form__status { margin: .9rem 0 0; color: var(--ink-2); font-size: .875rem; }
.lead-form__status:empty { display: none; }
.lead-form__status a { color: var(--ink); font-weight: 620; }
@media (min-width: 960px) {
  .final__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
}

/* ---------- Footer: titoli di coda ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 calc(2.5rem + env(safe-area-inset-bottom));
  background: var(--midnight);
  color: var(--on-dark-2);
  font-size: .9375rem;
  --focus: var(--glow);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 1px;
  background: var(--line-dark);
}
.footer__grid { display: grid; gap: 1.5rem; }
.footer__grid p { margin: 0; }
.footer__name { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin-bottom: .5rem !important; color: var(--on-dark); }
.footer__sign { width: 190px; stroke-width: 4; margin-left: -6px; }
.footer__name span { font-size: .875rem; color: var(--on-dark-2); }
.footer__id { display: grid; gap: .4rem; }
.footer__addr { display: flex; align-items: center; gap: .5rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer__links a,
.linklike {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-color: rgba(237, 242, 248, .3);
  cursor: pointer;
}
.footer__links a:hover,
.linklike:hover { text-decoration-color: currentColor; }
.footer__disclaimer { max-width: 70ch; font-size: .8125rem; }
.footer__copy { font-size: .8125rem; }
.footer__end {
  margin: clamp(2.5rem, 6vw, 5rem) 0 0;
  font-size: clamp(3rem, 1rem + 10vw, 11rem);
  font-weight: 200;
  font-stretch: 125%;
  line-height: .8;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(140, 203, 255, .28);
  user-select: none;
}
.motion .footer__end { opacity: 0; translate: 0 30%; transition: opacity 1.2s var(--ease-q), translate 1.6s var(--ease); }
.motion .footer__end.is-in { opacity: 1; translate: 0 0; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 3rem; }
  .footer__disclaimer, .footer__copy { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- Barra WhatsApp mobile ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.sticky-cta .btn { box-shadow: 0 1px 1px rgba(11, 26, 43, .14), 0 18px 36px -12px rgba(6, 15, 26, .6); }
.sticky-cta[data-tone="dark"] .btn { --btn-bg: var(--white); --btn-bg-hover: #E3ECF7; --btn-fg: var(--ink); }
.sticky-cta.is-visible { transform: none; pointer-events: auto; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Consenso cookie ---------- */
.consent-banner {
  position: fixed;
  z-index: 70;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 440px;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 60px -24px rgba(6, 15, 26, .55), inset 0 0 0 1px var(--line);
  font-size: .9375rem;
  animation: banner-in .7s var(--ease) both;
}
.consent-banner__title { margin: 0 0 .35rem; font: 620 1rem/1.3 var(--font); letter-spacing: -.016em; }
.consent-banner p { margin: 0 0 1rem; color: var(--ink-2); line-height: 1.5; }
.consent-banner p a { color: var(--ink); font-weight: 560; }
.consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-banner .btn { min-height: 48px; font-size: .9375rem; }
@keyframes banner-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Rivelazioni ---------- */
.motion [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 1s var(--ease-q), translate 1.1s var(--ease);
}
.motion [data-reveal].is-in { opacity: 1; translate: 0 0; }
/* Parole in maschera (titoli di testa e titoli di sezione) */
.is-split .w,
.is-lines .w {
  display: inline-block;
  overflow: hidden;
  padding: .1em .02em .16em;
  margin: -.1em -.02em -.16em;
}
.is-split .w__i,
.is-lines .w__i {
  display: inline-block;
  transform: translateY(112%);
}
/* Titoli di sezione: le righe salgono, poi la parte in "rilascio" espira */
.motion [data-reveal="mask"] { opacity: 1; translate: none; }
.motion [data-reveal="mask"]:not(.is-lines):not(.is-in) { opacity: 0; }
.is-lines.is-in .w__i {
  transform: none;
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--l, 0) * 90ms);
}
.is-lines em .w { text-align: center; }
.is-lines em .w__i { transition: transform 1.15s var(--ease), font-stretch 1.4s var(--ease), font-weight 1.4s var(--ease), letter-spacing 1.4s var(--ease); }
.is-lines:not(.is-in) em .w__i { font-stretch: 84%; font-weight: 600; letter-spacing: -.045em; }
.is-lines.is-in em .w__i { transition-delay: calc(var(--l, 0) * 90ms), calc(var(--l, 0) * 90ms + 520ms), calc(var(--l, 0) * 90ms + 520ms), calc(var(--l, 0) * 90ms + 520ms); }

/* Hero: sequenza dei titoli di testa, una volta sola */
.motion .hero [data-hero-in] {
  opacity: 0;
  translate: 0 16px;
  animation: hero-in 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes hero-in { to { opacity: 1; translate: 0 0; } }
.hero__title.is-go .w__i {
  animation: word-in 1.1s var(--ease) forwards;
  animation-delay: calc(var(--l, 0) * 95ms);
}
.hero__title.is-go .h1-release .w__i { animation-delay: calc(var(--l, 0) * 95ms + 260ms); }
@keyframes word-in { to { transform: none; } }
/* Le parole del dolore entrano strette e pesanti, poi espirano */
.hero__title.is-split .pain { text-align: center; }
.hero__title.is-split .pain .w__i { font-stretch: 75%; font-weight: 820; }
.hero__title.is-measure .pain .w__i { font-stretch: 100%; font-weight: 600; }
.hero__title.is-go .pain .w__i {
  animation: word-in 1.1s var(--ease) forwards, exhale 1.5s var(--ease) forwards;
  animation-delay: calc(var(--l, 0) * 95ms), calc(var(--l, 0) * 95ms + 700ms);
}
@keyframes exhale { to { font-stretch: 100%; font-weight: 600; } }
.hero__title.is-split .pain::after { transform: scaleX(0); }
.hero__title.is-go .pain::after {
  animation: underline-in 1s var(--ease) forwards;
  animation-delay: calc(var(--l, 0) * 95ms + 1300ms);
}
@keyframes underline-in { to { transform: scaleX(1); } }
/* Ritratto: le luci dello studio si accendono */
.motion .hero__figure picture { animation: figure-in 1.8s var(--ease) .1s both; }
@keyframes figure-in {
  from { opacity: 0; transform: translateY(28px) scale(.98); filter: brightness(.72) saturate(.5); }
  to { opacity: 1; transform: none; filter: none; }
}
.motion .hero__halo { animation: halo-in 2.2s var(--ease) both; }
@keyframes halo-in { from { opacity: 0; transform: scale(.86); } }
.motion .hero__halo::before { animation: halo-breathe 9s var(--ease-io) 2.2s infinite alternate; }
@keyframes halo-breathe { to { transform: scale(1.05); opacity: .85; } }
.motion .hero__rings circle { stroke-dasharray: 1 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 50% 50%; animation: ring-draw 2.4s var(--ease) .3s forwards; }
.motion .hero__rings circle + circle { stroke-dasharray: .5 1.6; stroke-dashoffset: 0; transform: none; opacity: 0; animation: ring-fade 1.6s var(--ease-q) 1s forwards, ring-spin 140s linear 1s infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes ring-fade { to { opacity: 1; } }
.motion .hero__tag { opacity: 0; animation: hero-in 1s var(--ease) 1.4s forwards; translate: 0 12px; }
.hero__figure[data-parallax] { will-change: transform; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Pagine legali ---------- */
.legal { padding: calc(var(--header-h) + 2.5rem) 0 4rem; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); font-weight: 620; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.375rem; font-weight: 620; letter-spacing: -.025em; margin: 2.25rem 0 .75rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--ink); font-weight: 560; }
.legal .back { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; margin-bottom: 1rem; font-weight: 560; }
