@import url("./fonts.css?v=2");
@import url("./tokens.css?v=2");

/* ==========================================================================
   ASCENT TRACK — Social Up
   The page is built around one rising trajectory: the arrow inside the mark,
   unrolled down the whole scroll. It starts as a spark in the hero, becomes
   the spine of the method, and lands on the WhatsApp button.
   ========================================================================== */

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  background: var(--color-ink-0);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection { background: oklch(58% 0.270 330 / 0.45); color: var(--color-text); }

/* Skip link: CSS puro, nessun handler inline — la CSP della pagina
   non consente JavaScript inline. */
.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--color-ink-1);
  border: 1px solid var(--color-amber);
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--text-sm);
  text-wrap: nowrap;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform var(--dur-base) var(--ease-out);
}
/* :focus, non :focus-visible — lo skip link deve comparire a ogni messa a
   fuoco, che arrivi da tastiera o da navigazione assistita. */
.skip:focus { transform: translateY(0); }
.skip:nth-of-type(2):focus { transform: translateY(0) translateX(10.5rem); }

/* Atmospheric ground: two deep light sources, fixed, never animated. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58rem 42rem at 82% -8%, oklch(52% 0.250 292 / 0.20), transparent 62%),
    radial-gradient(46rem 40rem at 6% 34%, oklch(58% 0.270 330 / 0.13), transparent 60%),
    radial-gradient(52rem 30rem at 68% 108%, oklch(76% 0.180 62 / 0.10), transparent 62%);
}

/* ---- Layout primitives -------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: var(--shell-wide); }

main { position: relative; z-index: 1; }

.section { padding-block: var(--space-section); position: relative; }
.section--tall { padding-block: var(--space-section-lg); }
.section--tint {
  background: linear-gradient(180deg, transparent, oklch(14% 0.018 288 / 0.55) 18%, oklch(14% 0.018 288 / 0.55) 82%, transparent);
}

/* Section heading: label stacked above the title, never beside it. */
.sec-head { max-width: 46rem; margin-bottom: var(--space-2xl); }
.sec-head--wide { max-width: 56rem; }
.sec-head--center { margin-inline: auto; text-align: center; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-md);
}
.label::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-spectrum);
  flex: none;
}
.sec-head--center .label { justify-content: center; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}

.sec-title {
  font-size: var(--text-4xl);
  font-variation-settings: "wdth" 92;
}
.sec-sub {
  margin-top: var(--space-md);
  max-width: var(--measure);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-wrap: pretty;
}
.sec-head--center .sec-sub { margin-inline: auto; }

/* The one gradient device, used on three words in the whole page. */
.spark {
  background: var(--grad-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback for clients that drop background-clip */
  -webkit-text-fill-color: transparent;
}
@supports not (background-clip: text) {
  .spark { color: var(--color-pink); -webkit-text-fill-color: currentColor; }
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--surface-card-hi);
  --btn-fg: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.5rem;
  border: var(--rule-strong);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: -0.005em;
  line-height: 1.15;
  text-align: center;
  text-wrap: nowrap;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover, .btn.is-hover { transform: translateY(-2px); border-color: oklch(100% 0 0 / 0.26); }
.btn:active, .btn.is-active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* Primary: the spectrum rim. The only filled gradient control on the page. */
.btn--primary {
  border-color: transparent;
  background: var(--color-ink-0);
  color: var(--color-text);
  padding: 1.0625rem 1.75rem;
  font-size: var(--text-base);
  box-shadow: var(--glow-accent);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-spectrum);
  opacity: 0.16;
  z-index: -2;
  transition: opacity var(--dur-base) var(--ease-out);
}
.btn--primary:hover::after, .btn--primary.is-hover::after { opacity: 0.3; }

.btn--wa {
  border-color: oklch(72% 0.180 148 / 0.5);
  background: oklch(72% 0.180 148 / 0.13);
  color: oklch(88% 0.130 150);
}
.btn--wa:hover, .btn--wa.is-hover {
  background: oklch(72% 0.180 148 / 0.2);
  border-color: oklch(72% 0.180 148 / 0.75);
}

.btn--ghost { background: transparent; color: var(--color-text-muted); }
.btn--ghost:hover, .btn--ghost.is-hover { color: var(--color-text); background: oklch(100% 0 0 / 0.05); }

.btn--lg { padding: 1.125rem 2rem; font-size: var(--text-lg); }
.btn--block { width: 100%; }

.btn__icon { width: 1.05em; height: 1.05em; flex: none; }

/* Text CTA that closes each section */
.cta-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent-line);
  padding-bottom: 2px;
  text-wrap: nowrap;
  transition: border-color var(--dur-base) var(--ease-out), gap var(--dur-base) var(--ease-out);
}
.cta-text:hover { border-color: var(--color-amber); gap: 0.85em; }
.cta-text::after { content: "↗"; font-size: 0.85em; color: var(--color-amber); }

/* ---- Promo bar + nav (banner + retract) --------------------------------- */
.promo {
  position: relative;
  z-index: 60;
  background: var(--color-ink-1);
  border-bottom: var(--rule-hairline);
  overflow: hidden;
}
.promo::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--grad-spectrum);
  opacity: 0.55;
}
.promo__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  padding-block: 0.6rem;
  text-align: center;
}
.promo__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: -0.005em;
}
.promo__text b { color: var(--color-text); font-weight: 700; }
.promo__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding-block: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: oklch(88% 0.130 150);
  border-bottom: 1px solid oklch(72% 0.180 148 / 0.45);
  text-wrap: nowrap;
  transition: border-color var(--dur-base) var(--ease-out);
}
.promo__link:hover { border-color: oklch(72% 0.180 148 / 0.9); }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(10% 0.014 288 / 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.nav.is-stuck {
  border-bottom-color: oklch(100% 0 0 / 0.09);
  background: oklch(10% 0.014 288 / 0.9);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.brand__mark { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 88;
}
.brand__word i { font-style: normal; }
.brand__word .up { color: var(--color-amber); }

.nav__links { display: none; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.75rem); }
.nav__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-wrap: nowrap;
  padding-block: 0.65rem;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.nav__link:hover { color: var(--color-text); border-bottom-color: var(--color-accent-line); }
.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  cursor: pointer;
}
.nav__toggle span { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav__drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-in-out);
  border-top: 1px solid transparent;
}
.nav__drawer[data-open="true"] { grid-template-rows: 1fr; border-top-color: oklch(100% 0 0 / 0.09); }
.nav__drawer > div { overflow: hidden; }
.nav__drawer ul { list-style: none; padding: 0 0 var(--space-md); display: grid; gap: 0.25rem; }
.nav__drawer a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: var(--rule-hairline);
}
.nav__drawer a:hover { color: var(--color-text); }

@media (min-width: 62rem) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__drawer { display: none; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 8rem);
  overflow: clip;
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; max-width: 40rem; }

.hero h1 {
  font-size: var(--text-display);
  font-weight: 900;
  line-height: var(--leading-display);
  letter-spacing: -0.045em;
  font-variation-settings: "wdth" 86;
  margin-bottom: var(--space-lg);
}
.hero__sub {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 34rem;
  text-wrap: pretty;
  margin-bottom: var(--space-xl);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); }
.hero__reassure {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  max-width: 30rem;
}
.hero__reassure svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.28rem; color: var(--color-wa); }

.hero__media { position: relative; z-index: 2; }
.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--rule-hairline);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 16 / 11;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(190deg, oklch(10% 0.014 288 / 0.05), oklch(10% 0.014 288 / 0.72)),
    linear-gradient(90deg, oklch(45% 0.255 280 / 0.28), transparent 55%, oklch(76% 0.180 62 / 0.18));
}

/* The trajectory: a rising arc, drawn once on load, behind everything.
   It is atmosphere, not a foreground line — it must never cross a face
   or a word at full strength. */
.hero__track {
  position: absolute;
  z-index: 0;
  left: -8%;
  right: -8%;
  bottom: -6%;
  height: 74%;
  pointer-events: none;
  overflow: visible;
  opacity: 0.5;
  mix-blend-mode: screen;
}
.hero__track path {
  fill: none;
  stroke: url(#suSpectrum);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 22px oklch(58% 0.270 330 / 0.5));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.4s var(--ease-out) 0.25s forwards;
}
@media (min-width: 60rem) { .hero__track { opacity: 0.7; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5rem 0.9rem;
  border: var(--rule-hairline);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-wrap: nowrap;
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-spectrum); flex: none; }

@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero__frame { aspect-ratio: 4 / 5; }
}

/* ---- Problem cards ------------------------------------------------------ */
.problem__lead {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: var(--measure);
  text-wrap: pretty;
}
.problems {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.problem-card {
  position: relative;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  border: var(--rule-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  overflow: hidden;
}
.problem-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-spectrum);
  opacity: 0.4;
  transform-origin: left;
  transform: scaleX(0.18);
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
.problem-card:hover::before { transform: scaleX(1); opacity: 0.85; }
.problem-card__n {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  color: var(--color-text-dim);
  display: block;
  margin-bottom: var(--space-md);
}
.problem-card h3 { font-size: var(--text-2xl); margin-bottom: var(--space-xs); font-variation-settings: "wdth" 95; }
.problem-card p { color: var(--color-text-muted); text-wrap: pretty; }

/* ---- Service grid ------------------------------------------------------- */
.services {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border: var(--rule-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.svc:hover { background: var(--surface-card-hi); border-color: oklch(100% 0 0 / 0.16); transform: translateY(-3px); }
.svc__ico {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid oklch(58% 0.270 330 / 0.28);
  background: var(--color-accent-soft);
  margin-bottom: var(--space-2xs);
}
.svc__ico svg { width: 1.25rem; height: 1.25rem; stroke: var(--color-pink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: var(--text-xl); font-variation-settings: "wdth" 96; }
.svc p { font-size: var(--text-sm); color: var(--color-text-muted); text-wrap: pretty; }
.badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--grad-spectrum);
  color: oklch(15% 0.02 300);
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Feature card with photo: breaks the grid rhythm on purpose. */
.svc--feature { grid-column: 1 / -1; padding: 0; overflow: hidden; }
.svc--feature .svc__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs); }
.svc--feature .svc__photo { position: relative; min-height: 13rem; }
.svc--feature .svc__photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.svc--feature .svc__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(10% 0.014 288 / 0.15), oklch(10% 0.014 288 / 0.55)),
              linear-gradient(90deg, oklch(58% 0.270 330 / 0.22), transparent 60%);
}
@media (min-width: 48rem) {
  .svc--feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }
  .svc--feature .svc__body { padding: var(--space-xl); justify-content: center; }
  .svc--feature .svc__photo { min-height: 100%; }
}

/* ---- Digital line ------------------------------------------------------- */
.digital {
  position: relative;
  border: var(--rule-hairline);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, oklch(45% 0.255 280 / 0.14), transparent 46%),
    var(--surface-glass);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  overflow: hidden;
}
.digital::before {
  content: "";
  position: absolute;
  inset-inline: 0; top: 0;
  height: 2px;
  background: var(--grad-spectrum);
  opacity: 0.7;
}
.digital__grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  margin-top: var(--space-xl);
}
/* Five cards resolve as 3 + 2, never 4 + 1 orphan. */
@media (min-width: 58rem) {
  .digital__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .digital__grid > :nth-child(-n+3) { grid-column: span 2; }
  .digital__grid > :nth-child(n+4) { grid-column: span 3; }
}
.dcard {
  padding: var(--space-md);
  border: var(--rule-hairline);
  border-radius: var(--radius-sm);
  background: oklch(10% 0.014 288 / 0.5);
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.dcard:hover { border-color: oklch(76% 0.180 62 / 0.35); background: oklch(14% 0.018 288 / 0.7); }
.dcard h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); font-variation-settings: "wdth" 98; }
.dcard p { font-size: var(--text-sm); color: var(--color-text-muted); text-wrap: pretty; }
.dcard__k {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  color: var(--color-amber);
  display: block;
  margin-bottom: var(--space-xs);
}
.digital__note {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  justify-content: space-between;
}
.digital__note p { color: var(--color-text-muted); max-width: 42ch; font-size: var(--text-sm); text-wrap: pretty; }

/* ---- Method: the spine -------------------------------------------------- */
.method { position: relative; }
.track {
  position: relative;
  margin-top: var(--space-2xl);
  padding-left: clamp(2.75rem, 6vw, 5rem);
}
.track__rail {
  position: absolute;
  left: clamp(0.9rem, 2vw, 1.5rem);
  top: 0.6rem;
  bottom: 4rem;
  width: 2px;
  border-radius: 2px;
  background: oklch(100% 0 0 / 0.1);
  overflow: hidden;
}
.track__fill {
  position: absolute;
  inset: 0;
  background: var(--grad-spectrum-v);
  box-shadow: 0 0 18px oklch(58% 0.270 330 / 0.65);
  transform-origin: top center;
  transform: scaleY(0);
  will-change: transform;
}
.step {
  position: relative;
  padding-bottom: var(--space-2xl);
}
.step:last-of-type { padding-bottom: var(--space-xl); }
.step__node {
  position: absolute;
  left: calc(clamp(2.75rem, 6vw, 5rem) * -1 + clamp(0.9rem, 2vw, 1.5rem) - 6px);
  top: 0.45rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-ink-0);
  border: 2px solid oklch(100% 0 0 / 0.22);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.step.is-active .step__node {
  border-color: transparent;
  background: var(--grad-spectrum);
  box-shadow: 0 0 0 5px oklch(58% 0.270 330 / 0.16), 0 0 22px oklch(58% 0.270 330 / 0.7);
  transform: scale(1.12);
}
.step__head { display: flex; align-items: baseline; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-xs); }
.step__n {
  font-family: var(--font-display);
  font-size: var(--text-numeral);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variation-settings: "wdth" 78;
  color: oklch(100% 0 0 / 0.13);
  transition: color var(--dur-slow) var(--ease-out);
}
.step.is-active .step__n {
  background: var(--grad-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.step__meta {
  font-family: var(--font-label);
  font-size: var(--text-2xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  padding: 0.35rem 0.7rem;
  border: var(--rule-hairline);
  border-radius: var(--radius-pill);
  text-wrap: nowrap;
}
.step.is-active .step__meta { color: var(--color-amber); border-color: oklch(76% 0.180 62 / 0.4); }
.step h3 { font-size: var(--text-3xl); margin-bottom: var(--space-2xs); font-variation-settings: "wdth" 92; }
.step p { color: var(--color-text-muted); max-width: 46ch; font-size: var(--text-lg); text-wrap: pretty; }

.method__close {
  margin-top: var(--space-lg);
  padding: var(--space-lg) 0 0;
  border-top: var(--rule-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  justify-content: space-between;
}
.method__close p { font-size: var(--text-xl); max-width: 34ch; text-wrap: pretty; }

/* ---- Credits ------------------------------------------------------------ */
.credits-panel {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border: var(--rule-hairline);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(30rem 22rem at 88% 12%, oklch(76% 0.180 62 / 0.12), transparent 62%),
    var(--surface-glass);
}
.credits-panel h2 { font-size: var(--text-4xl); font-variation-settings: "wdth" 90; margin-bottom: var(--space-md); }
.credits-panel > div > p { color: var(--color-text-muted); max-width: var(--measure); font-size: var(--text-lg); text-wrap: pretty; }
.credit-list { list-style: none; padding: 0; display: grid; gap: var(--space-md); }
.credit-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  padding: var(--space-md);
  border: var(--rule-hairline);
  border-radius: var(--radius-sm);
  background: oklch(10% 0.014 288 / 0.55);
}
.credit-list b { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); letter-spacing: var(--tracking-snug); margin-bottom: 0.15rem; }
.credit-list span { font-size: var(--text-sm); color: var(--color-text-muted); }
.credit-list .tick { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--grad-spectrum); display: grid; place-items: center; flex: none; margin-top: 0.15rem; }
.credit-list .tick svg { width: 0.8rem; height: 0.8rem; stroke: var(--color-ink-0); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 56rem) { .credits-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }

/* ---- Why us ------------------------------------------------------------- */
.why {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  border: var(--rule-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.why > div {
  padding: var(--space-lg);
  border-right: var(--rule-hairline);
  border-bottom: var(--rule-hairline);
  transition: background-color var(--dur-base) var(--ease-out);
}
.why > div:hover { background: oklch(100% 0 0 / 0.03); }
/* Six cells: 2 x 3 on desktop, no empty ruled boxes. */
@media (min-width: 58rem) { .why { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); font-variation-settings: "wdth" 98; }
.why p { font-size: var(--text-sm); color: var(--color-text-muted); text-wrap: pretty; }
.why__k { font-family: var(--font-label); font-size: var(--text-2xs); letter-spacing: 0.14em; color: var(--color-violet-text); display: block; margin-bottom: var(--space-sm); }

/* ---- Formats gallery ---------------------------------------------------- */
.formats {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
@media (min-width: 58rem) { .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fmt {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--rule-hairline);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.fmt img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--dur-slow) var(--ease-out);
}
.fmt::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, oklch(10% 0.014 288 / 0.05) 22%, oklch(7% 0.014 288 / 0.72) 58%, oklch(6% 0.012 288 / 0.97) 92%),
    linear-gradient(190deg, oklch(45% 0.255 280 / 0.14), transparent 45%);
}
.fmt:hover img { transform: scale(1.07); }
.fmt__body { padding: var(--space-md); }
.fmt h3 { font-size: var(--text-xl); margin-bottom: 0.2rem; font-variation-settings: "wdth" 96; }
.fmt p { font-size: var(--text-sm); color: var(--color-text-muted); text-wrap: pretty; }

/* ---- Founders ----------------------------------------------------------- */
.founders { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: var(--space-2xl); }
.founder {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg);
  border: var(--rule-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}
.mono-avatar {
  width: 4.5rem; height: 4.5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-spectrum);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--color-ink-0);
  letter-spacing: -0.03em;
  flex: none;
  box-shadow: 0 0 26px -6px oklch(58% 0.270 330 / 0.6);
}
.founder h3 { font-size: var(--text-xl); font-variation-settings: "wdth" 98; }
.founder__role { font-family: var(--font-label); font-size: var(--text-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-dim); display: block; margin-bottom: var(--space-2xs); }
.founder p { font-size: var(--text-sm); color: var(--color-text-muted); text-wrap: pretty; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { border-top: var(--rule-hairline); }
.faq details { border-bottom: var(--rule-hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-snug);
  transition: color var(--dur-base) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-pink); }
.faq summary span:first-child { min-width: 0; overflow-wrap: anywhere; }
.faq__sign {
  position: relative;
  width: 1.5rem; height: 1.5rem;
  flex: none;
  border-radius: 50%;
  border: var(--rule-strong);
  display: grid; place-items: center;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute;
  background: currentColor;
  transition: opacity var(--dur-base) var(--ease-out);
}
.faq__sign::before { width: 0.6rem; height: 1.5px; }
.faq__sign::after { width: 1.5px; height: 0.6rem; }
.faq details[open] .faq__sign { transform: rotate(180deg); border-color: oklch(58% 0.270 330 / 0.6); }
.faq details[open] .faq__sign::after { opacity: 0; }
.faq__body { padding-bottom: var(--space-lg); }
.faq__body p { color: var(--color-text-muted); max-width: var(--measure); text-wrap: pretty; }

/* ---- Final CTA + form --------------------------------------------------- */
.close {
  position: relative;
  border-radius: var(--radius-xl);
  border: var(--rule-hairline);
  overflow: hidden;
  background:
    radial-gradient(38rem 26rem at 18% 0%, oklch(52% 0.250 292 / 0.22), transparent 64%),
    radial-gradient(34rem 26rem at 92% 100%, oklch(76% 0.180 62 / 0.16), transparent 62%),
    var(--surface-glass);
  padding: clamp(2rem, 5vw, 4.5rem);
}
.close__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.close h2 { font-size: var(--text-display-s); font-weight: 900; font-variation-settings: "wdth" 86; letter-spacing: -0.04em; margin-bottom: var(--space-md); }
.close__sub { font-size: var(--text-xl); color: var(--color-text-muted); max-width: 34ch; text-wrap: pretty; margin-bottom: var(--space-xl); }
.close__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); }
.close__micro { font-size: var(--text-sm); color: var(--color-text-dim); max-width: 36ch; }
.close__direct { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hairline); display: grid; gap: var(--space-sm); }
.close__direct a { display: inline-flex; align-items: center; gap: 0.6rem; padding-block: 4px; font-size: var(--text-sm); color: var(--color-text-muted); text-wrap: nowrap; }
.close__direct a:hover { color: var(--color-text); }
.close__direct svg { width: 1rem; height: 1rem; flex: none; color: var(--color-text-dim); }

.form { display: grid; gap: var(--space-md); }
.form h3 { font-size: var(--text-2xl); font-variation-settings: "wdth" 94; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-label); font-size: var(--text-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-dim); }
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: var(--rule-strong);
  border-radius: var(--radius-sm);
  background: oklch(8% 0.012 288 / 0.7);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: oklch(64% 0.020 292); }
.field input:hover, .field textarea:hover { border-color: oklch(100% 0 0 / 0.22); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: oklch(58% 0.270 330 / 0.7);
  box-shadow: 0 0 0 3px oklch(58% 0.270 330 / 0.18);
}
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--color-coral); }
.form__error {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-coral);
}
.form__error[data-show="true"] { display: flex; }
.form__note { font-size: var(--text-xs); color: var(--color-text-dim); }
.form__ok {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: oklch(84% 0.130 150);
}
.form__ok[data-show="true"] { display: flex; }
@media (min-width: 62rem) { .close__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); } }

/* ---- Footer (statement) ------------------------------------------------- */
.footer { border-top: var(--rule-hairline); margin-top: var(--space-section); padding-block: var(--space-2xl) var(--space-xl); position: relative; z-index: 1; }
.footer__statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  max-width: 22ch;
  margin-bottom: var(--space-2xl);
  text-wrap: balance;
}
.footer__cols { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer__cols h4 { font-family: var(--font-label); font-size: var(--text-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-dim); font-weight: 600; margin-bottom: var(--space-sm); }
.footer__cols ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer__cols a, .footer__cols li { font-size: var(--text-sm); color: var(--color-text-muted); }
/* padding verticale per portare il bersaglio sopra i 24px richiesti da WCAG 2.5.8 */
.footer__cols a { display: inline-block; text-wrap: nowrap; padding-block: 3px; }
.footer__cols a:hover { color: var(--color-text); }
.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-dim);
}
.footer__bottom a { text-wrap: nowrap; }
.footer__bottom a:hover { color: var(--color-text-muted); }

/* ---- Mobile action bar -------------------------------------------------- */
.dock {
  position: fixed;
  z-index: 70;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: oklch(10% 0.014 288 / 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid oklch(100% 0 0 / 0.1);
  transform: translateY(110%);
  transition: transform var(--dur-base) var(--ease-out);
}
.dock[data-show="true"] { transform: translateY(0); }
.dock .btn { width: 100%; }
@media (min-width: 62rem) { .dock { display: none; } }
@media (max-width: 61.99rem) { body { padding-bottom: 4.5rem; } }

/* ---- Reveal ------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; transition: opacity 120ms linear; }
  .hero__track path { stroke-dashoffset: 0; }
  .fmt img { transform: none; }
}

/* ---- Print -------------------------------------------------------------- */
@media print {
  body::before, .dock, .nav, .promo, .hero__track { display: none; }
  body { background: #fff; color: #000; }
}

/* ---- Legal pages -------------------------------------------------------- */
.doc { max-width: 46rem; padding-block: var(--space-2xl) var(--space-3xl); }
.doc h1 { font-size: var(--text-4xl); margin-bottom: var(--space-md); font-variation-settings: "wdth" 90; }
.doc h2 { font-size: var(--text-2xl); margin-top: var(--space-xl); margin-bottom: var(--space-xs); }
.doc p, .doc li { color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.doc ul { padding-left: 1.25rem; }
.doc a { color: var(--color-pink); border-bottom: 1px solid var(--color-accent-line); }
