/* ==========================================================================
   filippoazzali.it — design system "Dopo il clic"
   Indice
   01 Font            08 Header e nav       15 Cosa faccio
   02 Token           09 Hero e annuncio    16 Lavori (segnaposto)
   03 Reset e base    10 Il filo (SVG)      17 Metodo e offerta
   04 Tipografia      11 Il percorso        18 FAQ (accordion)
   05 Layout          12 Telefono           19 Appunti
   06 Grafismi        13 Marquee            20 Tocca a te / split-flap
   07 Bottoni e link  14 Storia e foto      21 Footer
                                            22 Cursore, stati JS, motion
   ========================================================================== */

/* 01 — Font (self-hosted, subset latin) ---------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-opsz.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque-latin-opsz.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 02 — Token -------------------------------------------------------------- */
:root {
  /* palette (brief §3) */
  --paper: #F4F1EA;
  --paper-2: #ECE7DC;
  --paper-3: #FBFAF6;
  --ink: #10131F;
  --ink-soft: #4A4E5C;
  --blue: #05089C;
  --night: #070A2E;
  --night-2: #10144A;
  --signal: #FF5A1F;
  --rule: rgba(16, 19, 31, .12);
  --rule-strong: rgba(16, 19, 31, .8);
  --rule-night: rgba(244, 241, 234, .16);
  --paper-soft: rgba(244, 241, 234, .72);
  --tbc-bg: rgba(255, 90, 31, .12);
  --tbc-ink: #8A2E0B;
  --focus: #C93D0B;            /* arancio scuro: contrasto ≥ 3:1 sia su --paper sia su --night (QA) */

  /* tipografia */
  --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-mono: .75rem;
  --fs-small: .9375rem;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.3vw, 2.375rem);
  --fs-h2: clamp(2.35rem, 1.35rem + 4vw, 5.25rem);
  --fs-display: clamp(3.2rem, 1.35rem + 7.6vw, 9.25rem);

  /* spazio e misure */
  --gutter: clamp(1rem, .5rem + 2.6vw, 3rem);
  --max: 1360px;
  --gap: clamp(1rem, .6rem + 1.6vw, 2rem);
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3rem, 2rem + 4vw, 5rem);
  --space-section: clamp(6rem, 3.6rem + 9vw, 12rem);
  --header-h: 68px;
  --lane: clamp(2.75rem, 1.5rem + 4vw, 5.5rem);   /* corsia del filo nel percorso */
  --node-x: calc(var(--lane) * .32);              /* asse del filo dentro la corsia */
  --radius: 14px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .6s;
}

/* 03 — Reset e base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* grana leggera della carta */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, h4, figure, dl, dd, blockquote { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: .75rem;
  z-index: 200;
  padding: .7em 1em;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 04 — Tipografia ---------------------------------------------------------- */
.display, .h2, .h3 {
  font-family: var(--font-sans);
  font-weight: 640;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: var(--fs-display);
  line-height: .9;
  letter-spacing: -.048em;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: .96;
  letter-spacing: -.038em;
}
.h3 { font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -.028em; }
/* l'accento umano: 1–3 parole in Instrument Serif corsivo */
.display em, .h2 em, .h3 em, .step__big em, .offer__title em, .footer__claim em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.012em;
  font-size: 1.07em;
  line-height: 0;
  color: var(--blue);
  padding-right: .04em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
  text-wrap: pretty;
}
.prose p + p { margin-top: 1em; }
.prose { max-width: 58ch; text-wrap: pretty; }
strong { font-weight: 640; color: var(--ink); }

/* annotazione tecnica a margine: TAV. 01 — Il clic */
.annot {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.annot__num { color: var(--blue); }
.annot__rule { display: inline-block; width: 2.5rem; height: 1px; background: currentColor; opacity: .5; }
.annot--inv, .annot--inv .annot__num { color: var(--paper-soft); }

/* segnaposto da confermare: deve saltare all'occhio */
.tbc {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--tbc-ink);
  background: var(--tbc-bg);
  padding: .1em .4em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
p.tbc { display: inline-block; margin-top: .75rem; }

/* 05 — Layout -------------------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
main > section, .thread-scope > section { position: relative; }
/* griglie a una colonna su mobile: la traccia non deve mai allargarsi oltre il contenitore */
.hero__grid, .page-hero__grid, .cta-band__grid, .case--featured, .case--photo, .cases-grid,
.page-hero__foot, .esperienza__grid { grid-template-columns: minmax(0, 1fr); }
.sec-head { margin-bottom: var(--space-5); }
.sec-head .h2 { max-width: 17ch; }
.sec-head .lead { margin-top: var(--space-3); }
.sec-head--split, .sec-head--row { display: grid; gap: var(--space-3); }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--gap); }
  .sec-head--split .lead { margin-top: 0; padding-bottom: .5rem; }
  .sec-head--row { grid-template-columns: 1fr auto; align-items: end; }
}

/* 06 — Grafismi: griglia millimetrata, croci di registro, quote ---------- */
.paper-grid { isolation: isolate; }
.paper-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16,19,31,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,19,31,.055) 1px, transparent 1px),
    linear-gradient(rgba(16,19,31,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,19,31,.03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
}
.reg {
  position: absolute;
  width: 21px;
  height: 21px;
  pointer-events: none;
  color: var(--ink);
  opacity: .5;
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    radial-gradient(circle, transparent 5px, currentColor 5.5px, currentColor 6.2px, transparent 6.7px);
}
.reg--tl { top: 1.25rem; left: max(.5rem, calc(var(--gutter) * .5 - 10px)); }
.reg--tr { top: 1.25rem; right: max(.5rem, calc(var(--gutter) * .5 - 10px)); }
.hero > .reg--tl, .hero > .reg--tr { top: calc(var(--header-h) + 1.5rem); }
.reg--br { bottom: -10px; right: -10px; }
.photo .reg--tl { top: -10px; left: -10px; }

/* quota di misura: |←— label —→| */
.dim {
  --c: var(--ink-soft);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c);
}
.dim--h {
  height: 11px;
  border-inline: 1px solid var(--c);
  background: linear-gradient(var(--c), var(--c)) center / 100% 1px no-repeat;
}
.dim--h::before, .dim--h::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  border: solid var(--c);
  border-width: 1px 0 0 1px;
}
.dim--h::before { left: 1px; transform: translateY(-50%) rotate(-45deg); }
.dim--h::after { right: 1px; transform: translateY(-50%) rotate(135deg); }
.dim span { background: var(--paper); padding: 0 .7em; position: relative; }
.dim--v {
  width: 11px;
  border-block: 1px solid var(--c);
  background: linear-gradient(var(--c), var(--c)) center / 1px 100% no-repeat;
  writing-mode: vertical-rl;
}
.dim--v span { padding: .7em 0; }

/* 07 — Bottoni e link ----------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-fill: var(--blue);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85em;
  min-height: 3.5rem;
  padding: 1em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  will-change: transform;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 150%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, 0) scale(0);
  transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -55%) scale(1); }
.btn__label, .btn__arrow { position: relative; display: inline-block; }
.btn__arrow { transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--blue); --btn-fill: var(--night); }
.btn--ink { --btn-bg: var(--ink); --btn-fill: var(--blue); }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-fill: var(--signal); }
.btn--paper:hover { color: var(--ink); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-fill: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--paper); }
.btn--small { min-height: 2.75rem; padding: .7em 1.15em; font-size: .9375rem; gap: .6em; }

/* puntino "disponibile" */
.live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-top: var(--space-4);
  font-weight: 560;
  text-decoration: none;
  padding-bottom: .3em;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { color: var(--blue); background-size: 0 1px; background-position: right bottom; }
.link-arrow__icon { transition: transform .45s var(--ease); }
.link-arrow:hover .link-arrow__icon { transform: translateX(5px); }

.link-follow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: .6em 0;
}
.link-follow span { display: inline-block; transition: transform .45s var(--ease); }
.link-follow:hover { color: var(--ink); }
.link-follow:hover span { transform: translateY(4px); }

/* 08 — Header e nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  view-transition-name: site-header;
  transition: transform .5s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 241, 234, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  padding: .35rem 0;
}
.brand__mark { width: 34px; height: auto; color: var(--blue); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; gap: .2rem; }
.brand__word { font-weight: 640; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1; }
.brand__sub { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1; }
@media (max-width: 380px) { .brand__sub { display: none; } }
.is-nav-open .brand__sub { color: var(--paper-soft); }

.nav__list { display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .4em;
  padding: .5rem 0;
  font-size: .975rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.nav__idx { font-family: var(--font-mono); font-size: .62rem; color: var(--ink-soft); letter-spacing: .05em; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; }
.nav__panel-foot { display: none; }
.header-cta { margin-left: clamp(.5rem, 2vw, 2rem); }
.header-link {
  margin-left: clamp(1rem, 2.5vw, 2.5rem);
  padding: .55rem .9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background-color .3s, color .3s;
}
.header-link:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 899.98px) { .header-link { display: none; } }

@media (max-width: 899.98px) {
  :root { --header-h: 62px; }
  .brand__mark { width: 30px; }
  .header-cta { display: none; }
  .nav { order: 3; }
  .nav__toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    padding: .5rem .25rem .5rem .9rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .nav__toggle-icon { position: relative; width: 22px; height: 10px; }
  .nav__toggle-icon span {
    position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform .45s var(--ease), top .45s var(--ease);
  }
  .nav__toggle-icon span:first-child { top: 0; }
  .nav__toggle-icon span:last-child { top: 8.5px; }
  .nav__toggle[aria-expanded="true"] { color: var(--paper); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-icon span:first-child { top: 4.25px; transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-icon span:last-child { top: 4.25px; transform: rotate(-45deg); }

  .nav__panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
    background: var(--night);
    color: var(--paper);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav__panel.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  html:not(.js) .nav__toggle, html:not(.js) .nav__panel { display: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__panel .nav__link {
    color: var(--paper);
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.1;
    padding: .2rem 0;
  }
  .nav__panel .nav__idx { color: var(--signal); font-size: .75rem; }
  .nav__panel-foot {
    display: flex; flex-direction: column; gap: .5rem;
    font-family: var(--font-mono); font-size: .85rem;
    border-top: 1px solid var(--rule-night);
    padding-top: 1.25rem;
  }
  .nav__panel-foot a { color: var(--paper-soft); text-decoration: none; padding: .35rem 0; }
  .nav__panel-foot .nav__panel-cta { display: inline-flex; align-items: center; gap: .7rem; color: var(--paper); font-family: var(--font-sans); font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
  .nav__panel.is-open .nav__list li { animation: nav-in .7s var(--ease) both; }
  .nav__panel.is-open .nav__list li:nth-child(2) { animation-delay: .06s; }
  .nav__panel.is-open .nav__list li:nth-child(3) { animation-delay: .12s; }
  .nav__panel.is-open .nav__list li:nth-child(4) { animation-delay: .18s; }
  .is-nav-open .brand { color: var(--paper); position: relative; z-index: 2; }
  .is-nav-open .brand__mark { color: var(--paper); }
  .is-nav-open .site-header::before { opacity: 0; }
  .is-nav-open .site-header { transform: none; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.is-nav-open { overflow: hidden; }

/* 09 — Hero ---------------------------------------------------------------- */
.hero {
  padding-bottom: var(--space-3);
  margin-top: calc(var(--header-h) * -1);
  padding-block-start: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 6.5rem));
  min-height: min(100svh, 1000px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__grid { display: grid; gap: var(--space-5); align-items: center; }
.hero__title em { display: inline-block; }
/* H1 già diviso in righe nell'HTML: animazione solo CSS, parte al primo paint (LCP) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line-inner { animation: line-up 1.15s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
}
@keyframes line-up { from { transform: translateY(115%); } to { transform: none; } }
.hero__lead {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  max-width: 44ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: var(--space-5);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
  .hero__text { grid-column: 1 / 8; }
}

/* 10 — Il filo (SVG legato allo scroll) ------------------------------------ */
.thread-scope { position: relative; }
.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  display: none;
}
.js-ready .thread { display: block; }
.thread__track { fill: none; stroke: #8E91A3; stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 2 6; }
.thread__line { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thread__head { fill: var(--signal); }
.thread-bend { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* 11 — Il percorso ---------------------------------------------------------- */
.percorso { padding-top: var(--space-section); }
.percorso__head { padding-left: var(--lane); }
.percorso__head .h2 { max-width: 13ch; }
.percorso__head .lead { margin-top: var(--space-3); }
.percorso__body { position: relative; display: grid; margin-top: var(--space-5); }

.steps { position: relative; padding-left: var(--lane); counter-reset: step; }
/* filo statico di riserva (senza JS) */
.steps::before {
  content: "";
  position: absolute;
  left: var(--node-x);
  top: 0; bottom: 30%;
  width: 0;
  border-left: 1px dashed rgba(142,145,163,.8);
}
.js-ready .steps::before { display: none; }
.step {
  position: relative;
  padding-block: clamp(3rem, 2rem + 8vh, 9rem);
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step > p:not(.step__time):not(.step__tag):not(.step__note):not(.step__where), .step__phase > p:not(.step__time):not(.step__tag):not(.step__big):not(.step__note) {
  max-width: 36ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.step__time {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.step__time time { font-size: 1rem; font-weight: 500; letter-spacing: .04em; color: var(--blue); }
.step__title {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  font-weight: 640;
  line-height: .95;
  letter-spacing: -.04em;
  margin-bottom: 1.25rem;
}
.step__tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.step__tag::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.step__node {
  position: absolute;
  left: calc(var(--node-x) - var(--lane) - 7px);
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid #8E91A3;
  z-index: 4;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
}
.step__node::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--signal);
  opacity: 0;
}
.step__node.is-lit { background: var(--signal); border-color: var(--signal); transform: scale(1.15); }
.step__node.is-lit::after { animation: node-ping 1.1s var(--ease) 1; }
@keyframes node-ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.step__node--end { width: 22px; height: 22px; margin-top: -11px; left: calc(var(--node-x) - var(--lane) - 11px); }

/* capitolo notte: "La risposta" */
.step--night {
  color: var(--paper);
  z-index: 1;
  background: var(--night);
  box-shadow: 0 0 0 100vmax var(--night);
  clip-path: inset(0 -100vmax);
  padding-block: clamp(4rem, 3rem + 10vh, 11rem);
  gap: clamp(6rem, 20vh, 14rem);
}
.step--night .step__node { top: clamp(4rem, 3rem + 10vh, 11rem); margin-top: 1.1rem; background: var(--night); border-color: rgba(244,241,234,.5); }
.step--night .step__node.is-lit { background: var(--signal); border-color: var(--signal); }
.step--night .step__title { color: var(--paper); }
.step--night .step__time { color: var(--paper-soft); }
.step--night .step__time time { color: var(--paper); }
.step--night .step__time--late time { color: var(--signal); }
.step--night .step__phase > p:not(.step__time):not(.step__tag):not(.step__big):not(.step__note) { color: var(--paper-soft); }
.step--night .step__tag { color: var(--paper); }
.step__big {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 15ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.step--night .step__big em { color: var(--signal); }
.step--last { padding-bottom: clamp(4rem, 3rem + 10vh, 10rem); }

/* colonna del dispositivo */
.percorso__device {
  --pw: clamp(140px, 24vw, 210px);
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: .75rem var(--gutter);
  background: var(--paper);
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.percorso__device::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 28px;
  background: linear-gradient(var(--paper), transparent);
  pointer-events: none;
  transition: opacity .6s;
}
@media (max-width: 899.98px) {
  .percorso__device { transition: background-color .6s var(--ease), color .6s var(--ease), transform .5s var(--ease); }
  .header-hidden .percorso__device { transform: translateY(calc(var(--header-h) * -1)); }
}
.percorso.is-night .percorso__device { background: var(--night); color: var(--paper); }
.percorso.is-night .percorso__device::after { background: linear-gradient(var(--night), transparent); }
.phone-caption {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.phone-caption__time { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); font-weight: 500; letter-spacing: 0; color: var(--signal); line-height: 1; }
html:not(.js) .percorso__device { position: relative; top: 0; }

@media (min-width: 900px) {
  .percorso__body { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .steps { grid-column: 1 / 8; grid-row: 1; }
  .percorso__device {
    --pw: min(270px, calc((100svh - 200px) / 2.1));
    grid-column: 9 / 13;
    grid-row: 1;
    align-self: start;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    background: none;
    top: calc(var(--header-h) + (100svh - var(--header-h) - var(--pw) * 2.074 - 3rem) / 2);
  }
  .percorso__device::after { display: none; }
  .percorso.is-night .percorso__device { background: none; }
  .phone-caption {
    flex-direction: row; align-items: baseline; gap: .9rem;
    padding: .55rem 1rem .5rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper-soft);
    box-shadow: inset 0 0 0 1px rgba(244,241,234,.14);
  }
  .phone-caption__time { font-size: .9rem; }
}

/* 12 — Telefono stilizzato -------------------------------------------------- */
/* tutte le misure interne in em: 1em = 16px quando il telefono è largo 270px */
.phone {
  flex: none;
  width: var(--pw);
  aspect-ratio: 270 / 560;
  font-size: calc(var(--pw) / 16.875);
  padding: .55em;
  border-radius: 2.9em;
  background: #0B0E1F;
  box-shadow:
    inset 0 0 0 .1em #2B3050,
    inset 0 0 0 .3em #0B0E1F,
    0 2.5em 5em -2em rgba(7,10,46,.45),
    0 .1em .2em rgba(7,10,46,.2);
  position: relative;
  transition: box-shadow .6s var(--ease);
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: .2em; border-radius: .1em; background: #1B1F38;
}
.phone::before { left: -.15em; top: 22%; height: 9%; }
.phone::after { right: -.15em; top: 28%; height: 14%; }
.percorso.is-night .phone { box-shadow: inset 0 0 0 .1em #3B4170, inset 0 0 0 .3em #0B0E1F, 0 0 0 1px rgba(244,241,234,.08), 0 2em 6em -1em rgba(255,90,31,.18); }
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 2.4em;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.25;
}
.phone__island {
  position: absolute; z-index: 10; top: .6em; left: 50%;
  width: 5.2em; height: 1.45em; margin-left: -2.6em;
  border-radius: 1em; background: #05060F;
}
.screen {
  position: absolute;
  inset: 0;
  padding: 3em 1em 1.2em;
  display: flex;
  flex-direction: column;
  gap: .75em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.2em) scale(.98);
  transition: opacity .45s var(--ease), transform .7s var(--ease), visibility 0s .7s;
}
.screen.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.scr-status {
  position: absolute; top: .85em; left: 1.6em; right: 1.4em;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78em; font-weight: 640; letter-spacing: -.01em;
}
.scr-icons { width: 2.6em; height: .75em; background:
  linear-gradient(currentColor, currentColor) 0 100% / .22em 40% no-repeat,
  linear-gradient(currentColor, currentColor) .35em 100% / .22em 60% no-repeat,
  linear-gradient(currentColor, currentColor) .7em 100% / .22em 80% no-repeat,
  linear-gradient(currentColor, currentColor) 1.05em 100% / .22em 100% no-repeat;
  position: relative;
}
.scr-icons::after { content: ""; position: absolute; right: 0; top: 0; width: 1.3em; height: .75em; border: .09em solid currentColor; border-radius: .2em; box-shadow: inset .7em 0 0 -.1em currentColor; }

/* feed con annuncio */
.screen--feed { background: #F6F5F1; }
.feed-skel { display: flex; flex-direction: column; gap: .4em; padding: .2em .1em; }
.feed-skel i { display: block; height: .55em; border-radius: .3em; background: #E6E3DA; }
.feed-skel i:nth-child(2) { width: 78%; }
.feed-skel i:nth-child(3) { width: 52%; }
.mini-ad { background: #fff; border-radius: .9em; padding: .65em; box-shadow: 0 .3em 1em -.4em rgba(16,19,31,.25); }
.mini-ad__top { display: flex; gap: .5em; align-items: center; margin-bottom: .55em; }
.mini-ad__top b { display: block; font-size: .72em; }
.mini-ad__top small { display: block; font-size: .6em; color: var(--ink-soft); }
.mini-ad__av { width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--paper-2); flex: none; }
.mini-ad__media { aspect-ratio: 1.15; border-radius: .55em; background: linear-gradient(135deg, #DCD6C8, #ECE7DC); display: grid; place-items: center; }
.mini-ad__media span { font-family: var(--font-serif); font-style: italic; font-size: 1.25em; color: var(--ink-soft); }
.mini-ad__foot { display: flex; justify-content: space-between; align-items: center; margin-top: .55em; font-size: .62em; color: var(--ink-soft); }
.mini-ad__cta { position: relative; background: var(--ink); color: #fff; padding: .45em .8em; border-radius: .5em; font-weight: 600; }
.tap {
  position: absolute; left: 50%; top: 50%;
  width: 2.2em; height: 2.2em; margin: -1.1em 0 0 -1.1em;
  border-radius: 50%; background: rgba(255,90,31,.35); border: .12em solid var(--signal);
  opacity: 0;
}
.screen.is-active .tap { animation: tap 2.4s var(--ease) .6s infinite; }
@keyframes tap {
  0% { opacity: 0; transform: scale(.4); }
  12% { opacity: 1; transform: scale(.8); }
  40%, 100% { opacity: 0; transform: scale(1.8); }
}

/* landing */
.screen--page { background: #fff; gap: .6em; }
.scr-url { align-self: center; font-family: var(--font-mono); font-size: .58em; padding: .4em .9em; background: #F1EFEA; border-radius: 1em; color: var(--ink-soft); }
.lp { display: flex; flex-direction: column; gap: .7em; padding: .8em .2em 0; }
.lp__kicker { font-family: var(--font-mono); font-size: .58em; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.lp__title { font-size: 1.5em; font-weight: 680; letter-spacing: -.04em; line-height: 1; }
.lp__line { display: block; height: .5em; border-radius: .3em; background: #EAE7DF; }
.lp__line--s { width: 70%; }
.lp__btn { margin-top: .5em; display: block; text-align: center; padding: .85em; border-radius: .7em; background: var(--blue); color: #fff; font-size: .72em; font-weight: 600; }
.lp__proof { display: flex; gap: .3em; margin-top: .3em; }
.lp__proof i { width: 1.4em; height: 1.4em; border-radius: 50%; background: #E3DFD5; border: .12em solid #fff; margin-left: -.5em; }
.lp__proof i:first-child { margin-left: 0; }
.screen--page.is-active .lp > * { animation: lp-in .7s var(--ease) both; }
.screen--page.is-active .lp > :nth-child(2) { animation-delay: .08s; }
.screen--page.is-active .lp > :nth-child(3) { animation-delay: .14s; }
.screen--page.is-active .lp > :nth-child(4) { animation-delay: .2s; }
.screen--page.is-active .lp > :nth-child(5) { animation-delay: .26s; }
.screen--page.is-active .lp > :nth-child(6) { animation-delay: .32s; }
@keyframes lp-in { from { opacity: 0; transform: translateY(.8em); } to { opacity: 1; transform: none; } }

/* modulo che si compila */
.screen--form { background: #fff; gap: .7em; }
.form-mock { display: flex; flex-direction: column; gap: .7em; padding-top: .6em; }
.form-mock__title { font-size: 1.25em; font-weight: 680; letter-spacing: -.035em; line-height: 1.05; margin-bottom: .3em; }
.fm-field { display: flex; flex-direction: column; gap: .25em; }
.fm-field small { font-size: .6em; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.fm-field b {
  display: block;
  font-weight: 500;
  font-size: .8em;
  padding: .7em .75em;
  border: .09em solid #DDD8CC;
  border-radius: .55em;
  white-space: nowrap;
  overflow: hidden;
}
.screen--form.is-active .fm-type { animation: type-in .75s steps(14, end) var(--d, 0s) both; }
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.fm-send { position: relative; margin-top: .4em; text-align: center; padding: .85em; border-radius: .7em; background: var(--ink); color: #fff; font-size: .72em; font-weight: 600; }
.screen--form.is-active .fm-send { animation: send 3.2s var(--ease) 1.9s both; }
.screen--form.is-active .fm-send .tap { animation: tap 3.2s var(--ease) 1.9s infinite; }
@keyframes send { 0%, 20% { background: var(--ink); } 30%, 100% { background: var(--blue); } }

/* lock screen */
.screen--lock {
  color: #fff;
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(5,8,156,.9), transparent 70%),
    radial-gradient(90% 60% at 100% 100%, rgba(255,90,31,.25), transparent 70%),
    var(--night);
  align-items: stretch;
  gap: .6em;
}
.lock { display: flex; flex-direction: column; align-items: center; padding: .6em 0 1em; }
.lock__day { font-size: .72em; font-weight: 500; opacity: .85; }
.lock__time { font-size: 3.6em; font-weight: 620; letter-spacing: -.04em; line-height: 1; }
.notif {
  display: flex; flex-direction: column; gap: .15em;
  padding: .75em .85em;
  border-radius: 1.1em;
  background: rgba(244,241,234,.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .72em;
  line-height: 1.3;
}
.notif b { font-weight: 640; }
.notif__app { display: flex; align-items: center; gap: .45em; font-size: .85em; opacity: .75; margin-bottom: .2em; }
.notif__app i { width: 1.1em; height: 1.1em; border-radius: .3em; background: var(--signal); }
.screen--lock.is-active .notif { animation: notif-in .7s var(--ease) .35s both; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-1.6em) scale(.96); } to { opacity: 1; transform: none; } }
.screen--late { background: radial-gradient(100% 60% at 50% 0%, rgba(16,20,74,1), transparent 70%), #04061C; }
.late-tag { align-self: center; font-family: var(--font-mono); font-size: .62em; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); margin-top: -.6em; }
.notif--old { opacity: .5; }
.screen--late.is-active .notif--old { animation: none; }
.notif--msg { border-left: .2em solid var(--signal); }
.notif--msg .notif__app i { background: var(--paper); }
.screen--late.is-active .notif--msg { animation-delay: .9s; }

/* chiamata */
.screen--call {
  align-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, var(--night-2), var(--night));
  padding-top: 3.6em;
  gap: .5em;
}
.call__meta { font-family: var(--font-mono); font-size: .58em; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.call__avatar {
  margin-top: 1.2em;
  width: 4.6em; height: 4.6em;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: 1.15em;
  font-style: italic;
  box-shadow: 0 0 0 .5em rgba(244,241,234,.08), 0 0 0 1.1em rgba(244,241,234,.04);
}
.call__name { font-size: 1.5em; font-weight: 620; letter-spacing: -.03em; margin-top: .5em; }
.call__state { font-size: .72em; opacity: .75; }
.call__wave { display: flex; align-items: center; gap: .25em; height: 2em; margin-top: .8em; }
.call__wave i { width: .25em; height: 100%; border-radius: .2em; background: var(--paper); opacity: .7; transform: scaleY(.3); }
.screen--call.is-active .call__wave i { animation: wave 1.1s var(--ease-in-out) infinite alternate; }
.call__wave i:nth-child(2n) { animation-delay: .15s !important; }
.call__wave i:nth-child(3n) { animation-delay: .3s !important; }
.call__wave i:nth-child(5n) { animation-delay: .45s !important; }
@keyframes wave { to { transform: scaleY(1); } }
.call__btns { display: flex; gap: 1em; margin-top: auto; }
.call__btns i { width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(244,241,234,.14); }
.call__btns i.end { background: var(--signal); }

/* 13 — Marquee strumenti ------------------------------------------------- */
.bancone { padding-top: var(--space-section); }
.bancone__head { margin-bottom: var(--space-5); }
.bancone__head .lead { margin-top: var(--space-3); }
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: clamp(1.25rem, 1rem + 1.4vw, 2.25rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; }
.marquee__group li { display: flex; align-items: center; }
.marquee__group li::after {
  content: "";
  width: .32em; height: .32em;
  margin-inline: clamp(1.25rem, .8rem + 2vw, 2.75rem);
  border-radius: 50%;
  border: 1.5px solid var(--signal);
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.5rem);
}
.marquee__group a {
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.5rem);
  font-weight: 520;
  letter-spacing: -.035em;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  transition: color .3s;
}
.marquee__group a:hover, .marquee__group a:focus-visible { color: var(--blue); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 14 — Foto --------------------------------------------------------------------- */
.photo { position: relative; width: min(100%, 420px); }
.photo__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 367 / 388;
  background: var(--paper-2);
  isolation: isolate;
}
.photo__img {
  width: 100%;
  height: 112%;
  margin-top: -2%;
  object-fit: cover;
  object-position: 50% 0;
  mix-blend-mode: multiply;
  filter: contrast(1.04);
}
.photo__cap {
  display: flex;
  gap: 1rem;
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.photo__cap span:first-child { color: var(--blue); }
.photo__cap .tbc { font-size: .68rem; text-transform: none; }

/* 21 — Footer "notte" ---------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: var(--paper);
  padding-top: var(--space-5);
  padding-bottom: 1.5rem;
}
.footer__claim {
  font-size: clamp(2rem, 1rem + 3.6vw, 5rem);
  font-weight: 640;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}
.footer__claim em { color: var(--paper); }
.footer__claim > span { display: block; }
.footer__sub { margin-top: 1.5rem; color: var(--paper-soft); font-size: var(--fs-lead); max-width: 40ch; }
.footer__cookie {
  padding: .15rem 0; border: 0; background: none; cursor: pointer; color: var(--paper);
  font: inherit; text-align: left;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
}
.footer__cookie:hover { color: var(--signal); }
.footer__clock { color: var(--paper-soft); }
.footer__grid { display: grid; gap: 2.5rem var(--gap); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--rule-night); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__h { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-soft); margin-bottom: 1rem; }
.footer__col li + li { margin-top: .35rem; }
.footer__col a, .footer__bottom a {
  color: var(--paper);
  text-decoration: none;
  display: inline-block;
  padding: .15rem 0;
  background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.footer__col a:hover, .footer__bottom a:hover { background-size: 100% 1px; background-position: left bottom; }
.footer__col a { word-break: break-word; }
.footer__cartiglio {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule-night);
  border-left: 1px solid var(--rule-night);
  align-self: start;
}
.footer__cartiglio > div { padding: .6rem .75rem; border-right: 1px solid var(--rule-night); border-bottom: 1px solid var(--rule-night); }
.footer__cartiglio .fc-wide { grid-column: 1 / -1; }
.footer__cartiglio dt { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-soft); }
.footer__cartiglio dd { font-family: var(--font-mono); font-size: .8rem; margin-top: .15rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--space-5); padding-top: 1.25rem; border-top: 1px solid var(--rule-night); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--paper-soft); }
.footer__bottom a { color: var(--paper-soft); }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .footer__grid.footer__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 56rem; }
}
@media (min-width: 1200px) {
  .footer__grid { grid-template-columns: 2fr 2fr 2fr 2.4fr 3.6fr; }
  .footer__cartiglio { grid-column: auto; }
}

/* ==========================================================================
   FASE B — pagine interne e componenti nuovi
   23 Pagine interne (hero, breadcrumb, indice, CTA)   28 Chi sono
   24 Home: aggiunte (telefono chat, marquee, offerta)  29 Contatti e modulo
   25 Servizi e galleria                               30 Grazie e 404
   26 Simulatore dell'imbuto                           31 Modalità revisione
   27 Lavori
   ========================================================================== */

/* 23 — Pagine interne ------------------------------------------------------ */
.page-hero {
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 5vw, 5.5rem));
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
}
.page-hero > .reg--tl, .page-hero > .reg--tr { top: calc(var(--header-h) + 1.5rem); }
.page-hero__title { font-size: clamp(2.6rem, 1.2rem + 5.6vw, 7rem); max-width: 16ch; padding-bottom: .06em; }
/* titolo delle pagine interne: animazione solo CSS, parte al primo paint (LCP) */
@media (prefers-reduced-motion: no-preference) {
  .js .page-hero__title { animation: title-in 1.2s var(--ease) .1s both; }
}
@keyframes title-in { from { clip-path: inset(0 -6% 100% -6%); transform: translateY(.35em); } to { clip-path: inset(-12% -6% -16% -6%); transform: none; } }
.page-hero__foot { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.page-hero__foot .lead { max-width: 52ch; }
.page-hero__grid { display: grid; gap: var(--space-5); align-items: center; }
.page-hero__text .lead { margin-top: var(--space-3); max-width: 46ch; }
.page-hero__text .link-follow { margin-top: var(--space-3); }
.page-hero--full { min-height: min(100svh, 920px); display: flex; align-items: center; }
.page-hero--full > .wrap { width: min(100% - 2 * var(--gutter), var(--max)); }
@media (min-width: 900px) {
  .page-hero__foot { grid-template-columns: 7fr 5fr; align-items: start; gap: var(--gap); }
  .page-hero--split .page-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
  .page-hero--split .page-hero__text { grid-column: 1 / 8; }
  .page-hero--split .page-hero__grid > :last-child { grid-column: 9 / 13; justify-self: end; }
}

.breadcrumb { margin-bottom: var(--space-4); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumb a { text-decoration: none; padding: .3rem 0; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); }

.toc { border-top: 1px solid var(--rule-strong); padding-top: 1rem; }
.toc__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .75rem; }
.toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.toc a, .e404__links a {
  display: flex; align-items: baseline; gap: .6rem; padding: .45rem 0;
  border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 520;
  transition: color .3s, padding .45s var(--ease);
}
.toc a span, .e404__links a span { font-family: var(--font-mono); font-size: .66rem; color: var(--blue); }
.toc a:hover, .e404__links a:hover { color: var(--blue); padding-left: .35rem; }

.note-box { padding: 1.1rem 1.25rem; background: var(--paper-2); border-left: 2px solid var(--blue); font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft); }
.note-box__k { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .4rem; }

.cta-band { padding-block: var(--space-section); border-top: 1px solid var(--rule); }
.cta-band__grid { display: grid; gap: var(--space-4); align-items: end; }
.cta-band__title { font-size: clamp(2.5rem, 1.2rem + 5vw, 6.5rem); max-width: 14ch; }
.cta-band .lead { max-width: 44ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-4); }
.cta-band .link-arrow { margin-top: var(--space-3); }
@media (min-width: 900px) { .cta-band__grid { grid-template-columns: 7fr 5fr; gap: var(--gap); } }
.cta-note { margin-top: .9rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft); }
.cta-note::before { content: "↳ "; color: var(--blue); }
.cta-alt { margin-top: var(--space-3); color: var(--ink-soft); }
.cta-alt a { color: var(--ink); text-underline-offset: 3px; }
.cta-alt a:hover { color: var(--blue); }
@media (max-width: 599.98px) { .cta-band__actions .btn { width: 100%; justify-content: space-between; text-align: left; } }

/* 24 — Home v2 -------------------------------------------------------------- */
/* hero */
.hero__title { max-width: none; font-size: clamp(2.3rem, .8rem + 4.8vw, 5.6rem); }
.hero__role { color: var(--ink); }
.now {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .9rem;
  margin-top: var(--space-3); max-width: 40rem;
  padding: .8rem 1.1rem;
  background: var(--paper-3);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
}
.now__k { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.now__k .live-dot { transform: translateY(-1px); }
.now__v { font-weight: 560; line-height: 1.4; }
.hero__photo { width: min(100%, 420px); }
@media (max-width: 899.98px) { .hero__photo { width: min(78%, 320px); } }
@media (min-width: 900px) {
  .hero--v2 .hero__photo { grid-column: 9 / 13; justify-self: end; }
}
.hero__meta .link-follow { padding: 0; }

/* competenze: tappe numerate */
.step__time .step__num { font-size: 1rem; font-weight: 500; letter-spacing: .04em; color: var(--blue); }
.step__title { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 3.3rem); max-width: 17ch; }
.step__where {
  margin-top: 1.5rem; max-width: 46ch;
  padding: .85rem 1rem; background: var(--paper-2); border-left: 2px solid var(--blue);
  font-size: var(--fs-small); line-height: 1.5; color: var(--ink);
}
.step__where-k { display: block; margin-bottom: .3rem; font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.step > p.step__where { font-size: var(--fs-small); color: var(--ink); }
.percorso__note { padding-left: var(--lane); padding-bottom: var(--space-3); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--ink-soft); }

/* telefono: schermate v2 */
.mini-ad__text { font-size: .66em; line-height: 1.35; margin: -.1em 0 .55em; }
.mini-ad__media { aspect-ratio: 1.6; }
.mini-ad__media--physio { position: relative; overflow: hidden; background: radial-gradient(80% 90% at 30% 40%, #DCE3F5, #C9D2EC 55%, #AEB9DE); }
.mini-ad__media--physio span { position: absolute; left: 50%; top: 18%; width: 22%; aspect-ratio: 1; margin-left: -11%; border-radius: 50%; background: rgba(5,8,156,.25); box-shadow: 0 2.4em 0 1.1em rgba(5,8,156,.18); }
.lp__sub { font-size: .7em; line-height: 1.4; color: var(--ink-soft); }
.lp__days { display: flex; gap: .35em; }
.lp__days i { font-style: normal; font-size: .6em; font-weight: 600; padding: .55em .7em; border-radius: .5em; border: .1em solid #DDD8CC; color: var(--ink-soft); }
.lp__days i.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.screen--reel { background: #0B0E1F; color: #fff; gap: .7em; }
.reel { position: relative; flex: 1; border-radius: .9em; overflow: hidden; padding: .8em; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(70% 50% at 70% 25%, rgba(255,90,31,.35), transparent 70%), linear-gradient(165deg, #2A2F6B, #10144A 55%, #070A2E); }
.reel__type { position: absolute; top: .8em; left: .8em; font-family: var(--font-mono); font-size: .55em; letter-spacing: .08em; opacity: .8; }
.reel__play { position: absolute; left: 50%; top: 42%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; background: rgba(255,255,255,.18); }
.reel__play::after { content: ""; position: absolute; left: 1.02em; top: .78em; border-style: solid; border-width: .52em 0 .52em .8em; border-color: transparent transparent transparent #fff; }
.reel__caption { font-size: .74em; font-weight: 600; line-height: 1.3; margin-bottom: .6em; }
.reel__bar { display: block; height: .18em; border-radius: .1em; background: rgba(255,255,255,.25); overflow: hidden; }
.reel__bar i { display: block; height: 100%; background: #fff; transform: scaleX(.15); transform-origin: left; }
.screen--reel.is-active .reel__bar i { animation: reel-bar 6s linear infinite; }
@keyframes reel-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pod { display: flex; align-items: center; gap: .6em; padding: .55em; border-radius: .8em; background: #fff; color: var(--ink); }
.pod__cover { flex: none; width: 2.4em; height: 2.4em; border-radius: .45em; background: linear-gradient(135deg, var(--blue), #3B3FD6); }
.pod__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pod__txt small { font-family: var(--font-mono); font-size: .5em; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.pod__txt b { font-size: .64em; }
.pod__wave { display: flex; align-items: center; gap: .15em; height: 1.4em; margin-left: auto; }
.pod__wave i { width: .18em; height: 100%; border-radius: .1em; background: var(--blue); transform: scaleY(.35); }
.screen--reel.is-active .pod__wave i { animation: wave 1s var(--ease-in-out) infinite alternate; }
.pod__wave i:nth-child(2) { animation-delay: .2s !important; } .pod__wave i:nth-child(3) { animation-delay: .4s !important; } .pod__wave i:nth-child(4) { animation-delay: .1s !important; }
@keyframes wave { to { transform: scaleY(1); } }
.screen.is-active .pod { animation: lp-in .6s var(--ease) .5s both; }
.notif--mail b { display: block; }
.reminder { align-self: center; margin-top: .3em; padding: .5em .9em; border-radius: 2em; background: rgba(244,241,234,.16); font-family: var(--font-mono); font-size: .56em; letter-spacing: .04em; }
.screen--lock.is-active .notif--mail { animation-delay: 1s; }
.screen--lock.is-active .reminder { animation: lp-in .6s var(--ease) 1.7s both; }
.screen--data { background: #fff; }
.dash { display: flex; flex-direction: column; gap: .6em; padding-top: .6em; }
.dash__title { font-size: 1.15em; font-weight: 680; letter-spacing: -.035em; line-height: 1.05; }
.dash__period { font-family: var(--font-mono); font-size: .55em; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .3em; }
.dash__row { display: grid; grid-template-columns: 4.6em 1fr; align-items: center; gap: .5em; }
.dash__row small { font-size: .6em; font-weight: 600; color: var(--ink-soft); }
.dash__row i { display: block; height: .75em; border-radius: .4em; background: var(--blue); transform: scaleX(var(--w, .5)); transform-origin: left; }
.dash__row:first-of-type i { background: var(--signal); }
.screen--data.is-active .dash__row i { animation: bar-in 1s var(--ease) both; }
/* 06 · AI e automazioni: un flusso che si compone passo dopo passo */
.screen--ai { color: #fff; background: radial-gradient(110% 60% at 80% 0%, rgba(5,8,156,.85), transparent 70%), var(--night); gap: .7em; }
.ai__title { font-family: var(--font-mono); font-size: .55em; letter-spacing: .08em; text-transform: uppercase; opacity: .7; padding-top: .4em; }
.ai__flow { list-style: none; margin: 0; padding: 0 0 0 1.1em; display: flex; flex-direction: column; gap: .55em; position: relative; }
.ai__flow::before { content: ""; position: absolute; left: .32em; top: .9em; bottom: .9em; width: 1px; background: rgba(244,241,234,.3); }
.ai__flow li { position: relative; display: flex; flex-direction: column; gap: .1em; padding: .6em .75em; border-radius: .9em; background: rgba(244,241,234,.12); font-size: .7em; line-height: 1.25; }
.ai__flow li::before { content: ""; position: absolute; left: -1.45em; top: 50%; width: .62em; height: .62em; margin-top: -.31em; border-radius: 50%; background: var(--paper); }
.ai__flow b { font-weight: 640; }
.ai__flow small { font-size: .82em; opacity: .72; }
.ai__flow li.ai__flow--ai { background: rgba(255,90,31,.2); box-shadow: inset 0 0 0 1px rgba(255,90,31,.55); }
.ai__flow li.ai__flow--ai::before { background: var(--signal); box-shadow: 0 0 0 .3em rgba(255,90,31,.25); }
.ai__chip { align-self: flex-start; margin-top: .2em; padding: .5em .9em; border-radius: 2em; background: rgba(244,241,234,.16); font-family: var(--font-mono); font-size: .56em; letter-spacing: .04em; }
.ai__chip::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .5em; border-radius: 50%; background: #3ddc84; vertical-align: -.05em; }
.screen--ai.is-active .ai__flow li { animation: notif-in .6s var(--ease) both; }
.screen--ai.is-active .ai__flow li:nth-child(2) { animation-delay: .35s; }
.screen--ai.is-active .ai__flow li:nth-child(3) { animation-delay: .7s; }
.screen--ai.is-active .ai__flow li:nth-child(4) { animation-delay: 1.05s; }
.screen--ai.is-active .ai__chip { animation: lp-in .6s var(--ease) 1.5s both; }
.screen--data.is-active .dash__row:nth-of-type(2) i { animation-delay: .1s; }
.screen--data.is-active .dash__row:nth-of-type(3) i { animation-delay: .2s; }
.screen--data.is-active .dash__row:nth-of-type(4) i { animation-delay: .3s; }
@keyframes bar-in { from { transform: scaleX(0); } }
.dash__spark { display: flex; align-items: flex-end; gap: .25em; height: 3.2em; margin-top: .8em; padding-top: .5em; border-top: .08em solid #EAE7DF; }
.dash__spark i { flex: 1; border-radius: .15em .15em 0 0; background: #DCDDF3; height: 40%; }
.dash__spark i:nth-child(2) { height: 55%; } .dash__spark i:nth-child(3) { height: 35%; } .dash__spark i:nth-child(4) { height: 60%; } .dash__spark i:nth-child(5) { height: 72%; }
.dash__spark i:nth-child(6) { height: 50%; } .dash__spark i:nth-child(7) { height: 80%; } .dash__spark i:nth-child(8) { height: 66%; } .dash__spark i:nth-child(9) { height: 88%; } .dash__spark i:nth-child(10) { height: 95%; background: var(--blue); }

/* marquee strumenti: pulsante pausa e voci di testo */
.marquee { position: relative; -webkit-mask-image: none; mask-image: none; }
.marquee__toggle {
  position: absolute; z-index: 2; right: var(--gutter); top: -1.4rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: var(--paper); cursor: pointer;
  display: grid; place-items: center;
}
.marquee__toggle-icon { width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.marquee__toggle[aria-pressed="true"] .marquee__toggle-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.tools { padding-top: var(--space-section); }
.tools__head .annot { margin-bottom: var(--space-3); font-size: var(--fs-mono); font-weight: 500; }
.marquee--tools .marquee__group li { font-size: clamp(1.35rem, 1rem + 1.8vw, 2.6rem); font-weight: 520; letter-spacing: -.03em; line-height: 1.2; white-space: nowrap; color: var(--ink); }

/* foto ritagliata (sfondo neutralizzato) */
.photo--cutout .photo__frame {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(rgba(16,19,31,.05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(16,19,31,.05) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--paper-2);
}
.photo--cutout .photo__img { mix-blend-mode: normal; height: 106%; margin-top: 0; object-fit: cover; object-position: 50% 0; filter: none; }
.photo--hero { width: min(100%, 440px); }

/* esperienza */
.esperienza { padding-top: var(--space-section); }
.esperienza__grid { display: grid; gap: var(--space-4); }
.esperienza .sec-head .link-arrow { margin-top: var(--space-3); }
.xp { position: relative; }
.xp::before { content: ""; position: absolute; left: 5px; top: .6rem; bottom: 1rem; border-left: 1px dashed rgba(142,145,163,.8); }
.xp__item { position: relative; padding: 0 0 clamp(2rem, 1.5rem + 2vw, 3.25rem) 2.25rem; }
.xp__item:last-child { padding-bottom: 0; }
.xp__node { position: absolute; left: 0; top: .35rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid #8E91A3; }
.xp__item--now .xp__node { background: var(--signal); border-color: var(--signal); }
.xp__item--now .xp__node::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--signal); animation: pulse 2.2s var(--ease) infinite; }
.xp__years { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.xp__org { margin: .35rem 0 .3rem; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 640; letter-spacing: -.035em; line-height: 1.05; }
.xp__role { font-weight: 560; }
.xp__text { margin-top: .6rem; max-width: 58ch; color: var(--ink-soft); }
@media (min-width: 900px) {
  .esperienza__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
  .esperienza .sec-head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 2rem); }
  .xp { grid-column: 6 / 13; }
}

/* lavori in evidenza */
.featured { padding-top: var(--space-section); }
.cards { display: grid; gap: 1px; background: var(--rule-strong); border: 1px solid var(--rule-strong); }
.card { background: var(--paper); }
.card__link { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: .45rem; height: 100%; min-height: 15rem; padding: 1.5rem; text-decoration: none; color: inherit; }
.card__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-2); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.card__link:hover::before, .card__link:focus-visible::before { transform: scaleY(1); }
.card__n { font-family: var(--font-mono); font-size: .7rem; color: var(--blue); margin-bottom: .6rem; }
.card__name { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); font-weight: 620; letter-spacing: -.03em; line-height: 1.1; }
.card__meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.5; }
.card__line { margin-top: .4rem; color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.5; }
.card__go { margin-top: auto; padding-top: 1rem; font-size: 1.2rem; transition: transform .45s var(--ease); }
.card__link:hover .card__go { transform: translateX(6px); color: var(--blue); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* profilo */
.profilo { padding-top: var(--space-section); }
.profilo__grid { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
.profilo__text { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.8rem); line-height: 1.45; letter-spacing: -.015em; color: var(--ink); max-width: 40ch; text-wrap: pretty; }
@media (min-width: 900px) { .profilo__grid { grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: start; } .profilo__text { padding-top: 2.4rem; } }

/* contatti */
.contact { margin-top: var(--space-section); padding-block: var(--space-section); border-top: 1px solid var(--rule-strong); }
.contact__grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); align-items: end; }
.contact__title { font-size: clamp(3.6rem, 1.8rem + 8vw, 10rem); margin-bottom: var(--space-3); }
.contact .lead { max-width: 36ch; }
.contact__list { border-top: 1px solid var(--rule-strong); }
.contact__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule-strong); }
.contact__k { width: 100%; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.contact__row a { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 560; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: .1rem; overflow-wrap: anywhere; }
.contact__row a:hover { color: var(--blue); }
.contact__row--main a.contact__email { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.7rem); font-weight: 640; letter-spacing: -.03em; background-size: 100% 2px; }
.contact__copy { min-height: 36px; padding: .35rem .85rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; cursor: pointer; transition: background .3s, color .3s; }
.contact__copy:hover, .contact__copy.is-done { background: var(--ink); color: var(--paper); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 6fr 6fr; gap: var(--gap); } }

/* lavori: chiusura pagina */
.lavori-end { padding-block: var(--space-5) var(--space-section); }
.lavori-end__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; padding-top: var(--space-4); border-top: 1px solid var(--rule-strong); }
.lavori-end__text { font-size: var(--fs-lead); }
.lavori-end__text a { color: var(--blue); text-underline-offset: 3px; }
.link-arrow--back { margin-top: 0; }
.link-arrow--back:hover .link-arrow__icon { transform: translateX(-5px); }
.footer__sign { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-soft); }
.e404__lead { margin-top: var(--space-3); }
.legal-intro { font-size: var(--fs-lead); color: var(--ink); line-height: 1.5; margin-bottom: 1rem; }

/* 25 — Galleria foto (Lavori) ------------------------------------------- */
.gallery { display: grid; gap: .6rem; }
.gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-4); }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery .photo__frame { aspect-ratio: 3 / 2; background: var(--paper-2); }
.gallery .photo__img { mix-blend-mode: normal; filter: grayscale(.9) contrast(1.05); transition: filter .7s var(--ease); }
.gallery__item:hover .photo__img { filter: grayscale(0); }

/* 27 — Lavori ---------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: 1rem; border-block: 1px solid var(--rule); position: sticky; top: var(--header-h); z-index: 6; background: rgba(244,241,234,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: top .5s var(--ease); }
.header-hidden .filters { top: 0; }
.filters__btn { min-height: 40px; padding: .5rem 1rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.filters__btn:hover { background: var(--paper-2); }
.filters__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.group { padding-top: var(--space-section); scroll-margin-top: calc(var(--header-h) + 4rem); }
.group[hidden] { display: none; }
.group__head { display: grid; gap: .75rem; margin-bottom: var(--space-4); }
.group__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); }
.group__sub { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.group__intro { max-width: 60ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); }
.group__logos { display: flex; gap: 2rem; align-items: center; margin-top: .5rem; }
.group__logos img { height: 52px; width: auto; opacity: .8; }
.group--night { margin-top: var(--space-section); padding-bottom: var(--space-section); background: var(--night); color: var(--paper); }
.group--night .group__sub, .group--night .group__intro { color: var(--paper-soft); }
.group--night .group__logos img { filter: invert(1) grayscale(1) brightness(1.4); opacity: .85; }
.group--night .h2 { color: var(--paper); }
.group--night + .group { padding-top: var(--space-section); }

.cases-grid { display: grid; gap: var(--gap); margin-top: var(--gap); }
@media (min-width: 900px) { .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case--wide { grid-column: 1 / -1; } }
.case { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.25rem, 1rem + 1.2vw, 2.25rem); border: 1px solid var(--rule-strong); background: var(--paper-3); scroll-margin-top: calc(var(--header-h) + 5rem); }
.case:target { outline: 2px solid var(--signal); outline-offset: 4px; }
.case__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.case__tag { width: 100%; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.case__name { flex: 1 1 auto; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 640; letter-spacing: -.035em; line-height: 1.02; }
.case__logo { width: auto; height: 56px; mix-blend-mode: multiply; opacity: .85; }
.case__logo--wide { height: 30px; }
.case__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule); }
.case__meta > div { padding: .55rem .7rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.case__meta > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.case__meta dt { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.case__meta dd { font-size: .92rem; line-height: 1.4; margin-top: .15rem; }
.case__story { color: var(--ink-soft); max-width: 64ch; }
.case__learned { display: grid; gap: .3rem; padding: .9rem 1rem; background: var(--paper-2); border-left: 2px solid var(--signal); font-size: var(--fs-small); }
.case__learned > span:first-child, .case__learned h4, .case__numbers-k { font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.case__numbers { font-size: var(--fs-small); color: var(--ink-soft); }
.case__numbers-k { display: block; margin-bottom: .3rem; }
.case__link { align-self: flex-start; margin-top: auto; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; text-decoration: none; padding: .35rem 0; border-bottom: 1px solid currentColor; }
.case__link:hover { color: var(--blue); }
.case--small { background: transparent; border-style: dashed; }

.case--featured { display: grid; gap: 1.5rem; margin-top: var(--gap); }
.case--featured .case__body { display: grid; gap: 1.25rem; }
.case__part h4 { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .4rem; }
.case__part p { color: var(--ink-soft); }
.case__part.case__learned { border-left: 2px solid var(--signal); }
.case__part.case__learned h4 { color: var(--ink-soft); }
.case__part.case__learned p { color: var(--ink); }
.case__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr)); gap: 1px; margin-bottom: .9rem; background: var(--rule); border: 1px solid var(--rule); }
.case__stats li { display: flex; flex-direction: column; padding: .6rem .7rem; background: var(--paper-3); }
.case__stats b { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 640; letter-spacing: -.04em; line-height: 1; }
.case__stats span { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-soft); margin-top: .25rem; }
.case__fig { margin: 0; }
.case__fig img { width: 100%; border: 1px solid var(--rule-strong); background: #fff; }
.case__fig figcaption { display: flex; gap: .75rem; margin-top: .6rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; color: var(--ink-soft); }
.case__fig figcaption span { color: var(--blue); }
@media (min-width: 1000px) {
  .case--featured { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto auto 1fr; column-gap: var(--gap); row-gap: 1.5rem; }
  .case--featured > .case__head { grid-column: 1 / -1; }
  .case--featured > .case__meta { grid-column: 1 / 6; grid-row: 2; align-self: start; }
  .case--featured > .case__body { grid-column: 7 / 13; grid-row: 2 / -1; }
  .case--featured > .case__fig { grid-column: 1 / 6; grid-row: 3; }
  .case--featured > .case__link { grid-column: 1 / 6; grid-row: 4; }
  .case--featured .case__meta { grid-template-columns: 1fr; }
}
.group--night .case { background: var(--night-2); border-color: var(--rule-night); color: var(--paper); }
.group--night .case__meta, .group--night .case__meta > div { border-color: var(--rule-night); }
.group--night .case__meta dt, .group--night .case__story, .group--night .case__part p, .group--night .case__numbers, .group--night .case__fig figcaption, .group--night .case__learned > span:first-child, .group--night .case__numbers-k, .group--night .case__part.case__learned h4 { color: var(--paper-soft); }
.group--night .case__tag, .group--night .case__part h4, .group--night .case__fig figcaption span { color: #9EA3FF; }
.group--night .case__learned { background: rgba(244,241,234,.06); }
.group--night .case__part.case__learned p { color: var(--paper); }
.group--night .case__stats { background: var(--rule-night); border-color: var(--rule-night); }
.group--night .case__stats li { background: var(--night); }
.group--night .case__stats span { color: var(--paper-soft); }
.group--night .case--small { background: transparent; }
.group--night .case__link:hover { color: var(--signal); }
.case--photo { display: grid; gap: 1.5rem; margin-top: var(--gap); }
@media (min-width: 1000px) { .case--photo { grid-template-columns: 5fr 7fr; align-items: start; } }
.case__text { display: flex; flex-direction: column; gap: 1.1rem; }

/* Fase E — esperienza con elenco, GAM in evidenza, progetti in corso, screenshot */
.xp__list { display: grid; gap: .3rem; margin-top: .7rem; max-width: 58ch; color: var(--ink-soft); }
.xp__list li { position: relative; padding-left: 1.1rem; }
.xp__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55rem; border-top: 1px solid var(--blue); }
.xp__list b { font-weight: 600; color: var(--ink); }
.xp__edu { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; font-weight: 560; }

.community { display: grid; gap: 1rem; padding: clamp(1.1rem, .9rem + 1vw, 1.75rem); background: var(--paper-2); border-left: 2px solid var(--signal); }
.community__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.community__total b { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); font-weight: 660; letter-spacing: -.05em; line-height: .95; color: var(--blue); }
.community__total span { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.community__k { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.community__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.community__list li { display: flex; flex-direction: column; gap: .3rem; padding: .75rem .85rem; background: var(--paper-3); }
.community__list b { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 640; letter-spacing: -.04em; line-height: 1; }
.community__list span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.community__note { font-size: var(--fs-small); color: var(--ink-soft); max-width: 64ch; }
@media (min-width: 700px) { .community__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.community--compact .community__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.community--compact .community__list li:first-child { grid-column: 1 / -1; }
@media (min-width: 700px) { .community--compact .community__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.case--main { margin-top: var(--gap); gap: 1.5rem; }
.case__cols { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .case__cols { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .case__cols > .case__meta { grid-column: 1 / 6; grid-template-columns: 1fr; }
  .case__cols > .case__body { grid-column: 6 / 13; }
}
.case__quote { font-size: var(--fs-lead); line-height: 1.4; font-weight: 520; letter-spacing: -.01em; color: var(--ink) !important; max-width: 40ch; }
.case__list { display: grid; margin-top: 1rem; border-top: 1px solid var(--rule-strong); }
.case__list li { display: grid; gap: .1rem .75rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.case__list b { font-weight: 620; }
.case__list span { font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 600px) { .case__list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; } }

.case--project { display: grid; gap: 1.5rem; margin-top: var(--gap); }
@media (min-width: 1000px) {
  .case--project { grid-template-columns: 5fr 7fr; column-gap: var(--gap); align-items: start; }
  .case--project .case__meta { grid-template-columns: 1fr; }
}
.case__side { min-width: 0; }
.group--night .community { background: rgba(244,241,234,.06); }
.group--night .community__list { background: var(--rule-night); border-color: var(--rule-night); }
.group--night .community__list li { background: var(--night); }
.group--night .community__list span, .group--night .community__note { color: var(--paper-soft); }
.group--night .community__k, .group--night .community__total b { color: #9EA3FF; }

/* screenshot: desktop + smartphone affiancati. Lo smartphone è assoluto, così l'altezza
   della riga la decidono gli screenshot desktop e i due lati restano allineati. */
.shots { margin: 0; }
.shots__grid { display: grid; gap: .75rem; }
.shots picture { display: block; min-width: 0; }
.shots img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--rule-strong); }
.shots__mob img { border-radius: 14px; }
.shots figcaption { display: flex; gap: .75rem; margin-top: .6rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; color: var(--ink-soft); }
.shots figcaption span { color: var(--blue); flex: none; }
.group--night .shots img { border-color: var(--rule-night); }
.group--night .shots figcaption { color: var(--paper-soft); }
.group--night .shots figcaption span { color: #9EA3FF; }
.shots--pair .shots__m { display: none; }
.shots--trio .shots__m { width: min(62%, 300px); justify-self: center; }
@media (min-width: 560px) {
  .shots--trio .shots__grid { grid-template-columns: 1.7fr 1fr; grid-template-areas: "a m" "b m"; }
  .shots--trio .shots__a { grid-area: a; }
  .shots--trio .shots__b { grid-area: b; }
  .shots--trio .shots__m, .shots--pair .shots__m { display: block; position: relative; width: auto; justify-self: stretch; grid-area: m; }
  .shots--pair .shots__grid { grid-template-columns: 3.3fr 1fr; grid-template-areas: "a m"; }
  .shots--pair .shots__a { grid-area: a; }
  .shots__m img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 0; }
}

/* 30 — 404 ------------------------------------------------------------------- */
.e404__log { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.5rem; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); }
.e404__cut { width: 4rem; height: 1px; background: linear-gradient(90deg, var(--signal) 50%, transparent 50%) 0 0 / 8px 1px; position: relative; }
.e404__cut::after { content: "×"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); color: var(--signal); font-size: 1rem; background: var(--paper); padding: 0 .2rem; }
.e404__grid { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.e404__strong { color: var(--ink); margin-top: 1rem; }
.e404__foot { margin-top: var(--space-5); max-width: 60ch; font-family: var(--font-mono); font-size: .76rem; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 900px) { .e404__grid { grid-template-columns: 7fr 4fr; gap: var(--gap); align-items: start; } }

/* 30.1 — Pagine legali ------------------------------------------------------- */
.page-legal .page-hero { padding-bottom: var(--space-4); }
.legal-body { max-width: 68ch; padding-bottom: var(--space-section); font-size: var(--fs-body); line-height: 1.65; color: var(--ink-soft); }
.legal-body h2 { margin: 2.5rem 0 .75rem; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); font-weight: 620; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 1.5rem 0 .4rem; font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.legal-body p + p { margin-top: .9rem; }
.legal-body a { color: var(--blue); text-underline-offset: 3px; }
.is-review .legal-body[data-confirm] { background-image: none; outline-offset: 8px; }

/* 31 — Modalità revisione (?revisione) -------------------------------------- */
.is-review [data-confirm] {
  background-image: linear-gradient(transparent 62%, rgba(255, 205, 0, .55) 62%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  outline: 1px dashed rgba(200, 150, 0, .9); outline-offset: 2px;
}
.is-review [data-confirm]:not(.live-dot):not(.case__learned):not(.case__meta)::after {
  content: attr(data-confirm);
  display: inline-block; margin-left: .35em; padding: .1em .4em; vertical-align: .15em;
  border-radius: 3px; background: #FFCD00; color: #10131F;
  font: 600 .62rem/1.3 var(--font-mono); letter-spacing: 0; text-transform: none;
  position: static; width: auto; height: auto; transform: none; opacity: 1;
}
.is-review .case__learned[data-confirm], .is-review .case__meta[data-confirm], .is-review .live-dot[data-confirm] { position: relative; }
.is-review .case__learned[data-confirm]::before, .is-review .case__meta[data-confirm]::before {
  content: attr(data-confirm); position: absolute; right: .4rem; top: -.6rem; z-index: 2; padding: .1em .4em; border-radius: 3px; background: #FFCD00; color: #10131F; font: 600 .62rem/1.3 var(--font-mono);
}
.is-review .live-dot[data-confirm] { box-shadow: 0 0 0 3px #FFCD00; }
.review-pill {
  position: fixed; z-index: 150; left: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .6rem .55rem .9rem; border-radius: 999px;
  background: #FFCD00; color: #10131F; box-shadow: 0 8px 24px rgba(7,10,46,.25);
  font: 500 .72rem/1.2 var(--font-mono);
}
.review-pill a { padding: .3rem .6rem; border-radius: 999px; background: #10131F; color: #FFCD00; text-decoration: none; }

/* 22 — Cursore, stati iniziali JS, motion --------------------------------- */
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 120;
  pointer-events: none;
  width: 0; height: 0;
  opacity: 0;
  transition: opacity .3s;
}
.cursor.is-visible { opacity: 1; }
.cursor__ring {
  position: absolute;
  left: -16px; top: -16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  transition: transform .45s var(--ease), background-color .35s var(--ease), border-color .35s;
}
.cursor__label {
  position: absolute;
  left: 18px; top: 12px;
  padding: .3em .65em .25em;
  border-radius: 999px;
  background: var(--signal);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-4px, 4px) scale(.85);
  transform-origin: 0 0;
  transition: opacity .25s, transform .45s var(--ease);
}
.cursor.is-on-dark .cursor__ring { border-color: var(--paper); }
.cursor.is-link .cursor__ring { transform: scale(.55); background: var(--ink); }
.cursor.is-on-dark.is-link .cursor__ring { background: var(--paper); }
.cursor.is-clic .cursor__ring { transform: scale(1.45); border-color: var(--signal); background: rgba(255, 90, 31, .1); }
.cursor.is-clic .cursor__label { opacity: 1; transform: none; }
.cursor.is-down .cursor__ring { transform: scale(.8); }
.cursor.is-clic.is-down .cursor__ring { transform: scale(1.05); background: rgba(255, 90, 31, .25); }

/* stati iniziali nascosti: solo con .js e senza reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-fade] { opacity: 0; transform: translateY(26px); }
  .js [data-fade].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js [data-reveal="lines"] { visibility: hidden; }
  .js [data-reveal="lines"].is-split { visibility: visible; }
  .js .photo__frame { clip-path: inset(100% 0 0 0); }
}
.line-mask { display: block; overflow: hidden; padding: .04em 0 .16em; margin: -.04em 0 -.16em; }
.line-inner { display: block; will-change: transform; }

/* View Transitions cross-document (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* QA 25/11/2026 — intro dell'hero solo in CSS: lead, CTA e note in alto non aspettano main.js
   (prima restavano a opacity 0 finché l'IntersectionObserver non partiva: LCP a 2,9–4,2 s su mobile).
   Parte da opacity .01 e non da 0, così Chrome li conta come LCP al primo paint. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-fade], .js .page-hero [data-fade],
  .js .hero [data-fade].is-in, .js .page-hero [data-fade].is-in {
    opacity: 1; transform: none; transition: none;
    animation: intro-in .9s var(--ease) both;
    animation-delay: .3s;
  }
  .js .hero [data-fade] + [data-fade], .js .page-hero [data-fade] + [data-fade] { animation-delay: .42s; }
  .js .hero .hero__meta[data-fade] { animation-delay: .55s; }
}
@keyframes intro-in { from { opacity: .01; transform: translateY(18px); } }
@media (prefers-reduced-motion: no-preference) {
  .js .page-hero .photo__frame, .js .hero .photo__frame { clip-path: inset(0 0 0 0); animation: photo-in 1.4s var(--ease-in-out) .25s both; }
}
@keyframes photo-in { from { clip-path: inset(99% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* QA — la barra filtri di /lavori/ occupa già il suo spazio prima di JS (niente CLS) */
.js .filters[data-filters][hidden] { display: flex !important; visibility: hidden; }

/* QA — area di tocco ≥ 44 px su touch senza cambiare l'impaginazione */
@media (pointer: coarse) {
  .footer__col li + li { margin-top: .9rem; }
  .footer__col a, .footer__bottom a, .footer__cookie, .breadcrumb a { position: relative; }
  .footer__col a::after, .footer__bottom a::after, .footer__cookie::after, .breadcrumb a::after {
    content: ""; position: absolute; inset: -7px -4px;
  }
  .breadcrumb a::after { inset: -12px -6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; }
  .marquee__group { flex-wrap: wrap; row-gap: .5rem; padding-inline: var(--gutter); }
  .marquee__group[aria-hidden="true"] { display: none; }
  .live-dot::after, .xp__node::after { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .cursor { display: none; }
}

/* stampa: essenziale */
@media print {
  .site-header, .cursor, .thread, .marquee, body::after { display: none !important; }
  body { background: #fff; }
}
