/* Caratteri ospitati sul sito (nessuna richiesta a Google Fonts). Licenza SIL OFL. */
/* instrument-serif-latin-400-normal */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/instrument-serif-latin-400-normal.woff2) format('woff2');
}
/* instrument-serif-latin-ext-400-normal */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2');
}
/* instrument-serif-latin-400-italic */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/instrument-serif-latin-400-italic.woff2) format('woff2');
}
/* instrument-serif-latin-ext-400-italic */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2');
}
/* jost-latin-300-normal */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(../fonts/jost-latin-300-normal.woff2) format('woff2');
}
/* jost-latin-ext-300-normal */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(../fonts/jost-latin-ext-300-normal.woff2) format('woff2');
}
/* jost-latin-400-normal */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/jost-latin-400-normal.woff2) format('woff2');
}
/* jost-latin-ext-400-normal */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/jost-latin-ext-400-normal.woff2) format('woff2');
}
/* jost-latin-500-normal */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/jost-latin-500-normal.woff2) format('woff2');
}
/* jost-latin-ext-500-normal */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/jost-latin-ext-500-normal.woff2) format('woff2');
}
/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
}
/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');
}

/* ==========================================================================
   MAXIARREDO — Bozza Home · Design system
   Tutti i valori del progetto vivono qui come Custom Properties:
   in WordPress diventeranno la base del tema (o di theme.json).
   ========================================================================== */

:root {
  /* — Colore — */
  --c-paper: #F4F4F0;          /* sfondo off-white caldo */
  --c-paper-2: #EAE8E1;        /* superfici secondarie, card */
  --c-ink: #1A1A1A;            /* testo principale, antracite */
  --c-ink-soft: #4A4741;       /* testo secondario */
  --c-muted: #6B665D;          /* meta, didascalie (contrasto AA: 5.2:1 sulla carta) */
  --c-line: rgba(26, 26, 26, .14);
  --c-accent: #8A6E3B;         /* bronzo: preso dal documento del cliente */
  --c-accent-ink: #7A6036;     /* bronzo per testi piccoli (contrasto AA 5.4:1) */
  --c-dark: #1C1B19;           /* sezione showroom */
  --c-on-dark: #ECEAE3;

  /* — Tipografia — */
  --ff-serif: "Instrument Serif", "Times New Roman", serif;
  --ff-sans: "Jost", "Futura", "Helvetica Neue", sans-serif;   /* geometrico, dialoga col logo */
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;

  --fs-display: clamp(3rem, 1.1rem + 7.4vw, 9.25rem);
  --fs-h2: clamp(2.3rem, 1.2rem + 3.7vw, 5.5rem);
  --fs-h3: clamp(1.6rem, 1.15rem + 1.5vw, 2.6rem);
  --fs-lead: clamp(1.1rem, 1rem + .45vw, 1.45rem);
  --fs-body: clamp(1rem, .96rem + .18vw, 1.125rem);
  --fs-small: .875rem;
  --fs-meta: .72rem;

  /* — Spaziature — */
  --gutter: clamp(1.25rem, .6rem + 2.4vw, 3rem);
  --section-pad: clamp(5.5rem, 2.5rem + 8.5vw, 11.5rem);   /* ≥120px su desktop */
  --radius: 2px;

  /* — Movimento — un solo easing per CSS e GSAP (expo.out) — */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: .9s;

  --header-h: 84px;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--c-ink); color: var(--c-paper); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Utility ---------- */
.container { padding-inline: var(--gutter); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.section { padding-block: var(--section-pad); position: relative; }

.meta {
  font-family: var(--ff-mono);
  font-size: var(--fs-meta);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  display: inline-flex;
  gap: .9em;
  align-items: center;
}
.meta b { font-weight: 400; color: var(--c-ink); }
.meta--line::after {
  content: ""; width: 3.5rem; height: 1px; background: currentColor; opacity: .5;
}

.title {
  font-family: var(--ff-serif);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.015em;
}
.title em { font-style: italic; color: var(--c-accent); }
.title--display { font-size: var(--fs-display); }
.title--h2 { font-size: var(--fs-h2); }
.title--h3 { font-size: var(--fs-h3); line-height: 1.05; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--c-ink-soft); max-width: 34ch; }
.text { color: var(--c-ink-soft); max-width: 46ch; }
.text + .text { margin-top: 1.1em; }

.placeholder-note {
  font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-accent); border: 1px dashed currentColor; padding: .35em .7em; display: inline-block;
}

/* ---------- Pulsanti e link ---------- */
.btn {
  --btn-bg: var(--c-ink); --btn-fg: var(--c-paper);
  position: relative; display: inline-flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.6rem; border-radius: 999px; border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .82rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .6s var(--ease);
}
.btn::before {                     /* riempimento che sale dal basso */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c-accent); transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { color: var(--c-paper); border-color: var(--c-accent); }
.btn--light { --btn-bg: var(--c-on-dark); --btn-fg: var(--c-dark); }
.btn--light:hover { color: var(--c-on-dark); }
.btn__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 400;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: .3rem; transition: background-size .7s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { transition: transform .7s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- Media con reveal (clip-path + zoom interno) ---------- */
.media { position: relative; overflow: hidden; background: var(--c-paper-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__inner { position: absolute; inset: 0; }
.media__inner img { height: 100%; }
.js-anim [data-reveal] { clip-path: inset(100% 0 0 0); }
.js-anim [data-reveal] img { transform: scale(1.15); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-inline: var(--gutter);
  transition: transform .7s var(--ease), background-color .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(244, 244, 240, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--c-line);
}
.header.is-hidden { transform: translateY(-100%); }
.logo { display: block; width: clamp(150px, 12vw, 190px); color: var(--c-ink); }
.logo .logo__x { fill: var(--c-accent); }   /* solo la X in bronzo, come nel footer (richiesta cliente 26/11) */
.logo__svg { width: 100%; height: auto; display: block; }
.logo__sub { opacity: .55; }

.nav { display: flex; gap: clamp(1.2rem, 2.2vw, 2.4rem); }
.nav a {
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 400;
  position: relative; padding-block: .3rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { padding: .8rem 1.2rem; }
.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 26px; height: 1px; background: var(--c-ink); margin: 6px 0; }

/* ==========================================================================
   _01 HERO
   ========================================================================== */
/* L'apertura occupa esattamente lo schermo (desktop): la foto si allunga fino in
   fondo in qualsiasi formato, testo e pulsanti restano allineati al suo bordo. */
.hero { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3.5rem)); padding-bottom: clamp(3rem, 6vw, 6rem); }
.hero__top { display: flex; justify-content: space-between; margin-bottom: clamp(1.5rem, 3vw, 3rem); }
.hero__title { grid-column: 1 / 11; position: relative; z-index: 2; }
.hero__title .line-2 { padding-left: 12%; display: block; }
.hero__aside {
  grid-column: 1 / 5; grid-row: 2; align-self: end;
  display: flex; flex-direction: column; gap: 2rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__media {
  grid-column: 6 / 13; grid-row: 2; margin-top: clamp(1.2rem, 2.2vw, 2.2rem);
  aspect-ratio: 16 / 10; width: 100%; justify-self: end; position: relative;
}
@media (min-width: 901px) {
  .hero { min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 3.6rem; position: relative; }
  .hero > .grid { flex: 1; grid-template-rows: auto 1fr; }
  .hero__media { aspect-ratio: auto; height: auto; align-self: stretch; min-height: 260px; }
}
.hero__layer { position: absolute; inset: 0; overflow: hidden; }
.hero__layer picture { display: contents; }
.hero__layer img { width: 100%; height: 100%; object-fit: cover; }
.hero__layer--photo img { transform-origin: 50% 60%; }
.hero__tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 3;
  background: var(--c-paper); padding: .45rem .7rem; overflow: hidden; height: 1.95rem;
}
.hero__tag span { display: block; line-height: 1.1rem; }
/* Confronto disegno / realizzato (attivo con .is-ba, aggiunta da main.js) */
.hero__ba { position: absolute; top: 0; bottom: 0; left: var(--ba, 0%); width: 0; z-index: 4; opacity: 0; visibility: hidden; outline: none; }
.hero__ba-line { position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: var(--c-paper); box-shadow: 0 0 0 .5px rgba(26, 26, 26, .12); transform-origin: 50% 50%; }
.hero__ba-knob {
  position: absolute; left: 0; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: var(--c-paper); color: var(--c-ink); display: grid; place-items: center;
  box-shadow: 0 10px 30px -12px rgba(26, 26, 26, .45); transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.hero__ba-knob svg { width: 22px; height: 10px; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.hero__tag--r { left: auto; right: 1rem; }
.hero__media.is-ba { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero__media.is-ba .hero__ba { visibility: visible; }
.hero__media.is-dragging { cursor: grabbing; }
.hero__media.is-dragging .hero__ba-knob, .hero__ba:focus-visible .hero__ba-knob { transform: scale(.86); background: var(--c-accent); color: var(--c-paper); }
.hero__media.is-dragging .hero__ba-knob svg { transform: scaleX(1.25); }
.hero__ba:focus-visible .hero__ba-line { background: var(--c-accent); }
.hero__media.is-ba img { -webkit-user-drag: none; pointer-events: none; }
.js-anim .hero__layer--sketch { clip-path: inset(0 100% 0 0); }
.js-anim .hero__layer--photo { clip-path: inset(100% 0 0 0); }
.js-anim .hero__layer--photo img { transform: scale(1.15); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 1.25rem;
  display: flex; align-items: center; gap: .8rem;
}
.hero__scroll i { width: 54px; height: 1px; background: var(--c-line); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--c-ink);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ==========================================================================
   _02 METODO
   ========================================================================== */
.metodo__head { grid-column: 1 / -1; margin-bottom: clamp(3rem, 6vw, 6rem); }
.metodo__head .meta { margin-bottom: 1.8rem; }
.metodo__title { grid-column: 1 / 10; }
.metodo__media { grid-column: 1 / 7; aspect-ratio: 4 / 5; }
.metodo__body {
  grid-column: 8 / 12; align-self: end; display: flex; flex-direction: column; gap: 2.2rem;
  padding-bottom: 2rem;
}
.metodo__quote {
  font-family: var(--ff-serif); font-size: var(--fs-h3); line-height: 1.12; color: var(--c-ink);
}
/* "Non siamo…": le due definizioni vengono barrate da un tratto a matita */
.mq__l { display: block; }
.strike { position: relative; white-space: nowrap; transition: color .3s; }
.strike::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: 54%; height: 2px; border-radius: 2px;
  background: var(--c-accent); transform-origin: left center;
  transform: rotate(-1.6deg) scaleX(var(--s, 1));
}
.strike + .strike::after { transform-origin: left center; }
.mq__l:nth-child(2) .strike::after { transform: rotate(1.1deg) scaleX(var(--s, 1)); }
.strike.is-struck { color: var(--c-muted); }
.mq__yes { font-family: var(--ff-serif); font-size: clamp(1.3rem, 1rem + .9vw, 1.75rem); line-height: 1.25; color: var(--c-ink); max-width: 30ch; }
.mq__yes em { color: var(--c-accent); }

/* "Dove siamo": mappa schematica al tratto */
.mappa { margin: .4rem 0 0; display: grid; gap: 1rem; border-top: 1px solid var(--c-line); padding-top: 1.4rem; }
.mappa__svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.mappa__road { stroke: var(--c-ink); stroke-width: 1; stroke-linecap: round; }
.mappa__city circle { fill: var(--c-paper); stroke: var(--c-ink); stroke-width: 1; }
.mappa svg text { font-family: var(--ff-mono); font-size: 9px; letter-spacing: .08em; fill: var(--c-muted); text-transform: uppercase; }
.mappa__via { font-style: italic; fill: rgba(26, 26, 26, .35) !important; }
.mappa__dot { fill: var(--c-accent); }
.mappa__ring { fill: none; stroke: var(--c-accent); stroke-width: 1; opacity: .5; }
.mappa__home text { fill: var(--c-accent); }
.mappa figcaption { display: grid; gap: .45rem; }
.mappa__text { color: var(--c-ink-soft); max-width: 40ch; }

/* Fasi — scorrimento orizzontale "pinnato" */
/* — IL FILO: una linea continua attraversa le quattro fasi — */
.filo { margin-top: var(--section-pad); }
.filo__intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.filo__stage { position: relative; }
.filo__wire { display: none; }
.filo__phases { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; display: grid; gap: 2.8rem; }
.filo__phase { display: grid; grid-template-columns: 64px 1fr; column-gap: 1.3rem; align-items: start; align-content: start; }
.filo__node {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-paper); border: 1px solid var(--c-line); position: relative;
}
.filo__icon { width: 30px; height: 30px; stroke: var(--c-ink); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.filo__num { display: block; margin-bottom: .7rem; color: var(--c-accent-ink); }
.filo__name { font-family: var(--ff-serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1; margin-bottom: .9rem; }
.filo__text { color: var(--c-ink-soft); max-width: 32ch; }
.filo__get { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--c-line); font-size: var(--fs-small); max-width: 32ch; }
.filo__get .meta { display: block; margin-bottom: .35rem; color: var(--c-muted); }
/* mobile: linea verticale che scende lungo i nodi */
.filo__vline { position: absolute; left: 31.5px; top: 32px; bottom: 0; width: 1px; background: var(--c-line); z-index: 1; }
.filo__vline i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--c-ink); }
.filo__vline i::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c-accent); }

@media (min-width: 901px) {
  .filo__vline { display: none; }
  .filo__wire { display: block; position: relative; height: 140px; }
  .filo__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .filo__path { fill: none; stroke-width: .95; stroke-linecap: round; }   /* niente non-scaling-stroke: con pathLength sfalsa il disegno */
  .filo__path--ghost { stroke: rgba(26, 26, 26, .22); stroke-dasharray: 2.5 6; }
  .filo__path--ink { stroke: var(--c-ink); }
  .filo__ref { position: absolute; left: 100%; top: 50%; z-index: 3; width: 0; height: 0; }
  .filo__ref i { position: absolute; left: -5.5px; top: -5.5px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 5px rgba(139, 109, 59, .15); }
  .filo__ref span { position: absolute; left: 0; bottom: 16px; transform: translateX(calc(var(--shift, .5) * -100%)); white-space: nowrap; color: var(--c-accent); background: var(--c-paper); padding: .2em .5em; }
  .filo__phases { grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: -102px; }
  .filo__phase { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-inline: clamp(.6rem, 1.5vw, 1.6rem); }
  .filo__body { margin-top: 1.8rem; display: flex; flex-direction: column; align-items: center; }
  .filo__get { text-align: center; }
}
/* Numeri: quattro grandi con contatore a rulli + tre piccoli in lettere con disegno */
.facts { margin-top: var(--section-pad); border-top: 1px solid var(--c-ink); padding-top: 1.4rem; }
.facts__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.6rem; align-items: start; margin-top: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.facts__title { grid-column: 1 / 7; }
.facts__intro { grid-column: 8 / 13; display: flex; flex-direction: column; align-items: start; gap: 1.1rem; }
.facts__big { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.fact { padding-right: 1rem; }
.fact + .fact { border-left: 1px solid var(--c-line); padding-left: clamp(1rem, 2.5vw, 2.5rem); }
.fact__num { display: flex; align-items: flex-start; font-family: var(--ff-serif); font-size: clamp(3.4rem, 1.4rem + 4.6vw, 7.6rem); line-height: .9; letter-spacing: -.02em; }
.fact__unit { font-size: .38em; line-height: 1; margin-left: .08em; margin-top: .12em; color: var(--c-accent); font-style: italic; }
.fact__unit--m { font-size: .3em; margin-left: .18em; margin-top: .2em; color: var(--c-accent-ink); }
.fact__label { margin-top: 1.1rem; color: var(--c-ink-soft); max-width: 24ch; }
.fact__label b { font-weight: 500; color: var(--c-ink); }
/* contatore a rulli: ogni cifra è una colonna 0-9 che scorre (costruita da JS) */
.roll { display: inline-flex; align-items: flex-start; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.roll__col { display: flex; flex-direction: column; will-change: transform; }
.roll__col span, .roll__sep { display: block; height: 1em; line-height: 1; }
.roll__sep { width: .22em; text-align: center; }

.facts__small { list-style: none; margin: clamp(3rem, 6vw, 5.5rem) 0 0; padding: 1.8rem 0 0; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.fsm { display: grid; grid-template-columns: 56px auto; grid-template-rows: auto auto; column-gap: 1.1rem; align-items: center; }
.fsm__ico { grid-row: 1 / 3; width: 56px; height: 56px; stroke: var(--c-ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.fsm__word { font-family: var(--ff-serif); font-style: italic; font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem); line-height: 1; color: var(--c-accent); }
.fsm__label { color: var(--c-ink-soft); font-size: var(--fs-small); }

/* ==========================================================================
   _03 PROGETTI
   ========================================================================== */
.pr-band { margin: 0 calc(-1 * var(--gutter)) clamp(3rem, 6vw, 6rem); overflow: hidden; pointer-events: none; }
.pr-band__track { display: flex; align-items: baseline; gap: .35em; width: max-content; white-space: nowrap; font-family: var(--ff-serif); font-size: clamp(4.5rem, 2rem + 11vw, 15rem); line-height: 1; padding-left: var(--gutter); }
.pr-band__track span { color: transparent; -webkit-text-stroke: 1px rgba(26, 26, 26, .35); }
.pr-band__track em { color: var(--c-accent); font-style: italic; }
.pr-band__track i { font-style: normal; color: rgba(26, 26, 26, .25); }
.pr__img { transform-origin: 50% 100%; }
.pr__title .split-line { padding-bottom: .06em; }
.progetti__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: clamp(4rem, 9vw, 9rem); }
.progetti__head > div:first-child { grid-column: 1 / 8; }
.progetti__head .meta { margin-bottom: 1.8rem; }
.progetti__aside { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 1.2rem; align-items: start; }

/* — Progetto: griglia a 12 colonne propria, impaginato diverso per ciascuno — */
.pr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); position: relative; color: inherit; text-decoration: none; }
.pr + .pr { margin-top: clamp(6rem, 13vw, 13rem); }
.pr__media { margin: 0; position: relative; z-index: 1; }
.pr__img { position: relative; overflow: hidden; background: var(--c-paper-2); aspect-ratio: 4 / 3; }
.pr__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: filter 1s var(--ease); }
.pr:hover .pr__img img { filter: brightness(1.04) saturate(1.05); }

.pr__num {                                         /* numero grande a contorno, viaggia a velocità diversa */
  position: absolute; z-index: 0; pointer-events: none;
  font-family: var(--ff-serif); font-size: clamp(8rem, 4rem + 14vw, 20rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(26, 26, 26, .2);
}
.pr__info { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .9rem; align-items: start; }
.pr__title { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(1.8rem, 1.1rem + 1.9vw, 3.3rem); line-height: 1.02; }
.pr__sub { color: var(--c-ink-soft); max-width: 36ch; }
.pr__more { display: inline-flex; align-items: center; gap: .7rem; margin-top: .6rem; padding-bottom: .35rem; position: relative; }
.pr__more::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(.25); transform-origin: left; transition: transform .9s var(--ease); }
.pr__more svg { transition: transform .9s var(--ease); }
.pr:hover .pr__more::after { transform: scaleX(1); }
.pr:hover .pr__more svg { transform: translateX(6px); }

/* 01: orizzontale grande a sinistra, verticale più in basso a destra */
.pr--1 .pr__media--main { grid-column: 1 / 9; grid-row: 1; }
.pr--1 .pr__media--side { grid-column: 10 / 13; grid-row: 1 / 3; margin-top: 46%; }
.pr--1 .pr__media--side .pr__img { aspect-ratio: 3 / 4; }
.pr--1 .pr__media--main img { object-position: 40% 50%; }   /* foto molto larga: tiene isola e colonne */
.pr--1 .pr__media--side img { object-position: 50% 30%; }   /* foto molto alta: lampadario e tavolo */
.pr--1 .pr__info { grid-column: 1 / 7; grid-row: 2; margin-top: 2rem; }
.pr--1 .pr__num { right: 0; top: -.32em; }
/* 02: testo a sinistra in basso, foto grande a destra */
.pr--2 .pr__info { grid-column: 1 / 5; grid-row: 1; align-self: end; padding-bottom: 1rem; }
.pr--2 .pr__media { grid-column: 6 / 13; grid-row: 1; }
.pr--2 .pr__img { aspect-ratio: 5 / 4; }
.pr--2 .pr__num { left: 0; top: -.1em; }
/* 03: foto grande rientrata a sinistra, testo a destra */
.pr--3 .pr__media { grid-column: 2 / 10; grid-row: 1; }
.pr--3 .pr__img { aspect-ratio: 16 / 10; }
.pr--3 .pr__info { grid-column: 10 / 13; grid-row: 1; align-self: center; }
.pr--3 .pr__num { right: 0; bottom: -.25em; }

/* ==========================================================================
   _04 SERVIZI
   ========================================================================== */
.servizi__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-bottom: clamp(3rem, 6vw, 5rem); }
.servizi__head .meta { grid-column: 1 / -1; margin-bottom: .6rem; }
.servizi__head .title { grid-column: 1 / 9; }
.servizi__head .text { grid-column: 9 / 13; align-self: end; }
/* — Elenco in tre famiglie + pannello foto fermo (desktop) — */
.sx { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); position: relative; }
.sx__panel { display: none; }
.sx__list { grid-column: 1 / -1; }
.sx__group + .sx__group { margin-top: clamp(4rem, 8vw, 7rem); }
.sx__ghead { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; padding-bottom: 1.2rem; border-bottom: 1px solid var(--c-ink); }
.sx__ghead .meta { color: var(--c-ink); }
.sx__glead { font-family: var(--ff-serif); font-style: italic; color: var(--c-muted); font-size: 1.1rem; }

.sx__item { display: grid; grid-template-columns: 4rem 1fr; column-gap: 1.2rem; row-gap: .7rem; padding-block: clamp(1.8rem, 3vw, 2.8rem); border-bottom: 1px solid var(--c-line); color: inherit; text-decoration: none; position: relative; }
.sx__num { grid-column: 1; grid-row: 2; padding-top: .9rem; }
.sx__name { grid-column: 2; grid-row: 2; font-family: var(--ff-serif); font-weight: 400; font-size: clamp(2rem, 1.2rem + 2.8vw, 4.2rem); line-height: 1; }
.sx__desc { grid-column: 2; color: var(--c-ink-soft); max-width: 46ch; }
.sx__more { grid-column: 2; display: inline-flex; align-items: center; gap: .7rem; justify-self: start; }
.sx__more svg { transition: transform .8s var(--ease); }
.sx__item:hover .sx__more svg { transform: translateX(6px); }
.sx__m { grid-column: 1 / -1; grid-row: 1; margin-bottom: 1.2rem; overflow: hidden; }
.sx__m img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Segnaposto foto: campitura a righe + cosa fotografare */
.ph {
  position: relative; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem; padding: clamp(1rem, 2vw, 1.8rem);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(26, 26, 26, .045) 14px 15px),
    linear-gradient(160deg, #E4E1D8, #D6D2C6);
  color: var(--c-ink); overflow: hidden;
}
.ph__tag { color: var(--c-accent-ink); }
.ph__n { position: absolute; top: .1em; right: .15em; font-family: var(--ff-serif); font-size: clamp(5rem, 3rem + 7vw, 11rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(26, 26, 26, .22); }
/* un tono per ogni segnaposto, così il cambio di foto si vede */
.ph--02, .ph--05 { background-color: #CFC9BA; background-image: repeating-linear-gradient(45deg, transparent 0 14px, rgba(26, 26, 26, .05) 14px 15px), linear-gradient(160deg, #DAD4C5, #C8C1B0); }
.ph--03, .ph--06 { background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(26, 26, 26, .045) 18px 19px), linear-gradient(160deg, #E6E2D9, #D9D3C4); }
.ph--04, .ph--07 { background-image: repeating-linear-gradient(0deg, transparent 0 16px, rgba(26, 26, 26, .05) 16px 17px), linear-gradient(160deg, #D3CDBE, #C4BCA9); }
.ph__need { font-family: var(--ff-serif); font-size: clamp(1.1rem, .9rem + .7vw, 1.6rem); line-height: 1.15; max-width: 22ch; }

/* — Desktop: pannello fermo a sinistra, elenco a destra — */
@media (min-width: 901px) {
  .sx__panel {
    display: block; grid-column: 1 / 6; grid-row: 1; position: sticky; top: 12vh; height: 76vh; align-self: start;
  }
  .sx__stage { position: absolute; inset: 0 0 4.2rem 0; overflow: hidden; background: #D6D2C6; }
  .sx__layer { position: absolute; inset: 0; }
  .sx__layer .ph { aspect-ratio: auto; height: 100%; }
  .sx__layer { overflow: hidden; }
  .sx__layer img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .sx__hud { position: absolute; left: 0; right: 0; bottom: 0; height: 3.2rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .6rem 1rem; }
  .sx__fam { position: relative; height: 1.6rem; overflow: hidden; font-family: var(--ff-serif); font-size: 1.5rem; line-height: 1.1; }
  .sx__fam span { position: absolute; left: 0; top: 0; }
  .sx__count b { color: var(--c-ink); font-weight: 500; }
  .sx__bar { grid-column: 1 / -1; height: 1px; background: var(--c-line); position: relative; }
  .sx__bar i { position: absolute; inset: 0; background: var(--c-ink); transform-origin: left; transform: scaleX(0); }

  .sx__list { grid-column: 7 / 13; grid-row: 1; padding-bottom: 18vh; }
  .sx__m { display: none; }
  .sx__item { grid-template-columns: 4.5rem 1fr; min-height: 34vh; align-content: center; }
  .sx__num { grid-row: 1; }
  .sx__name { grid-row: 1; }
  /* stato "spento" / "acceso" (lo scroll porta --on da 0 a 1) */
  .js-anim .sx__item { --on: 0; }
  .js-anim .sx__name { color: rgba(26, 26, 26, calc(.08 + var(--on) * .92)); -webkit-text-stroke: 1px rgba(26, 26, 26, calc(.55 - var(--on) * .55)); }
  .js-anim .sx__desc, .js-anim .sx__more { opacity: calc(.25 + var(--on) * .75); transform: translateY(calc((1 - var(--on)) * 12px)); }
  .js-anim .sx__num { opacity: calc(.4 + var(--on) * .6); }
}

/* ==========================================================================
   _05 SHOWROOM — sezione scura
   Base (mobile / movimento ridotto): colonna semplice.
   .is-pinned (aggiunta da JS su desktop): sezione bloccata + parallasse
   a più velocità.
   ========================================================================== */
.showroom { background: var(--c-dark); color: var(--c-on-dark); overflow: hidden; }
.showroom .meta { color: rgba(236, 234, 227, .55); }
.showroom .meta b { color: var(--c-on-dark); }
.showroom .text { color: rgba(236, 234, 227, .7); }
.showroom .title em { color: #C9A96E; }

.showroom__copy { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 1.8rem; align-items: start; }
.floor-index { list-style: none; margin: 1rem 0 0; padding: 0; width: 100%; max-width: 30rem; }
.floor-index li {
  display: grid; grid-template-columns: 5.5rem 1fr; column-gap: 1rem; align-items: baseline;
  padding-block: 1.1rem; border-top: 1px solid rgba(236, 234, 227, .16);
  transition: opacity .6s var(--ease);
}
.floor-index strong { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + .9vw, 2rem); line-height: 1; }
.floor-index p { grid-column: 2; margin-top: .55rem; font-size: var(--fs-small); color: rgba(236, 234, 227, .62); max-width: 36ch; }
.showroom__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.5rem; margin-top: .6rem; }

.showroom__visuals { grid-column: 1 / -1; margin-top: 4rem; }
.showroom__track { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
.sv { margin: 0; }
.sv__img { overflow: hidden; background: #2a2926; aspect-ratio: 4 / 5; }
.sv--sq .sv__img { aspect-ratio: 1; }
.sv__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv figcaption { --line: 1; position: relative; margin-top: .8rem; padding-top: .8rem; display: flex; flex-direction: column; gap: .3rem; overflow: hidden; }
.sv figcaption::before {                       /* linea che si disegna all'ingresso */
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: rgba(236, 234, 227, .28); transform: scaleX(var(--line)); transform-origin: left;
}
.sv[data-col="r"] figcaption::before { transform-origin: right; }
/* numero progressivo sulla foto */
.showroom__track { counter-reset: sv; }
.sv { counter-increment: sv; }
.sv__img { position: relative; }
.sv__img::after {
  content: counter(sv, decimal-leading-zero) " / 10"; position: absolute; top: .9rem; left: .9rem; z-index: 2;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em; color: #fff; mix-blend-mode: difference;
}
.sv__img { transform-origin: 50% 50%; will-change: clip-path, transform; }
.sv__desc { font-size: var(--fs-small); line-height: 1.35; color: rgba(236, 234, 227, .78); }
/* mobile: la foto principale di ogni piano (e la terza piccola delle Proposte) a tutta larghezza */
.showroom__track > .sv--main,
.showroom__track > .sv--main + .sv:not(.sv--main) + .sv:not(.sv--main) + .sv:not(.sv--main) { grid-column: 1 / -1; }
.showroom__track > .sv--main .sv__img,
.showroom__track > .sv--main + .sv:not(.sv--main) + .sv:not(.sv--main) + .sv:not(.sv--main) .sv__img { aspect-ratio: 4 / 3; }
.showroom__num { display: none; }

/* — Versione bloccata (desktop) — */
.showroom.is-pinned { padding-block: 0; }
.is-pinned .showroom__stage { position: relative; height: 100svh; overflow: hidden; }
.is-pinned .showroom__inner { height: 100%; align-items: center; position: relative; z-index: 2; pointer-events: none; }
.is-pinned .showroom__copy { grid-column: 1 / 6; gap: 1.5rem; pointer-events: auto; }
.is-pinned .showroom__copy .title { font-size: clamp(2.2rem, 1rem + 3vw, 4.4rem); }
.is-pinned .floor-index li { opacity: .38; padding-block: .85rem; transition: opacity .6s var(--ease); }
.is-pinned .floor-index li.is-active { opacity: 1; }
/* nella versione bloccata si apre solo la descrizione del piano attivo */
.is-pinned .floor-index p { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden;
  transition: max-height .7s var(--ease), margin-top .7s var(--ease), opacity .5s var(--ease); }
.is-pinned .floor-index li.is-active p { max-height: 7em; margin-top: .55rem; opacity: 1; }
.is-pinned .showroom__copy { padding-top: calc(var(--header-h) * .6); }
.is-pinned .showroom__visuals {
  position: absolute; top: 0; bottom: 0; left: 42%; right: var(--gutter); margin: 0; z-index: 1; pointer-events: auto;
}
/* due colonne: principale 52% della zona foto, piccole 34%, mai sovrapposte */
.is-pinned .showroom__track { display: block; position: absolute; inset: 0; }
.is-pinned .sv { position: absolute; top: 0; will-change: transform; grid-column: auto; }
.is-pinned .sv[data-col="l"] { left: 0; }
.is-pinned .sv[data-col="r"] { right: 0; }
.is-pinned .sv--main { width: 52%; }
.is-pinned .sv:not(.sv--main) { width: 34%; }
.is-pinned .sv[data-col="l"]:not(.sv--main) { left: 6%; }
.is-pinned .sv[data-col="r"]:not(.sv--main) { right: 6%; }
.is-pinned .showroom__track > .sv .sv__img { aspect-ratio: 4 / 5; }
.is-pinned .showroom__track > .sv--sq .sv__img { aspect-ratio: 1; }
.is-pinned .sv__img img { transform: scale(1.16); }      /* margine per il parallasse interno */
.is-pinned .sv__desc { font-size: .82rem; }

.is-pinned .showroom__num {
  display: block; position: absolute; right: 1vw; bottom: -6vw; z-index: 0;
  font-family: var(--ff-serif); font-size: 36vw; line-height: .8; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 234, 227, .2);
  height: 30vw; width: 50vw; overflow: hidden;
}
.is-pinned .showroom__num span { position: absolute; right: 0; bottom: 0; }

/* ==========================================================================
   _06 CHIUSURA + FORM
   ========================================================================== */
.contact__title { grid-column: 1 / 11; margin-bottom: clamp(3rem, 6vw, 5rem); }
.contact__title .meta { margin-bottom: 1.8rem; display: flex; }
.contact__intro { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 2.5rem; }
.contact__info { display: grid; gap: 1.4rem; }
.contact__info dt { margin-bottom: .2rem; }
.contact__info dd { margin: 0; color: var(--c-ink-soft); }
.orari__per { display: block; color: var(--c-ink); margin-top: .7rem; }
.orari__per:first-child { margin-top: 0; }
.orari__per small { color: var(--c-muted); font-size: .85em; }
.orari__note { display: block; margin-top: .3rem; color: var(--c-muted); font-size: .85em; }
/* — Form a scheda: riconoscibile come modulo, sempre leggero — */
.form {
  grid-column: 6 / 13; display: grid; gap: 2rem;
  background: #FBFAF7; border: 1px solid rgba(26, 26, 26, .1); border-radius: 6px;
  padding: clamp(1.4rem, 3vw, 2.8rem); box-shadow: 0 30px 60px -40px rgba(26, 26, 26, .25);
}
.form__head { display: grid; gap: .5rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--c-line); }
.form__title { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.05; }
.form__sub { color: var(--c-ink-soft); font-size: var(--fs-small); }
.form__req { display: block; margin-top: .3rem; color: var(--c-muted); font-size: .8rem; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
.step__head { display: flex; align-items: center; gap: .75rem; padding: 0; margin-bottom: .2rem; font-weight: 500; font-size: 1.02rem; color: var(--c-ink); }
.step__n {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; flex: none;
  border: 1px solid var(--c-accent); color: var(--c-accent); font-family: var(--ff-mono); font-size: .75rem; font-weight: 400;
}
.step__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem var(--gutter); }
.field { display: flex; flex-direction: column; gap: .45rem; position: relative; }
.field--full { grid-column: 1 / -1; }
.field > label { font-size: .9rem; color: var(--c-ink); }
.req { color: var(--c-accent); }
.opt { color: var(--c-muted); font-weight: 400; font-size: .85em; }
.field input, .field textarea {
  width: 100%; background: var(--c-paper); border: 1px solid rgba(26, 26, 26, .2); border-radius: 4px;
  padding: .85rem 1rem; font-size: 1rem; color: var(--c-ink); outline: none;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field input { min-height: 3.1rem; }
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(26, 26, 26, .38); }
.field input:hover, .field textarea:hover { border-color: rgba(26, 26, 26, .4); }
.field input:focus, .field textarea:focus { border-color: var(--c-ink); background: #fff; box-shadow: 0 0 0 4px rgba(138, 110, 59, .14); }
.field__err { display: none; font-size: .8rem; color: #A2412E; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #A2412E; box-shadow: 0 0 0 4px rgba(162, 65, 46, .1); }
.field.is-invalid .field__err, .form__foot.is-invalid .field__err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; padding: .7rem 1.1rem; background: var(--c-paper);
  border: 1px solid rgba(26, 26, 26, .2); border-radius: 999px; font-size: .92rem; cursor: pointer; transition: all .35s var(--ease);
}
.chip span::before { content: ""; width: 0; height: .45rem; margin-right: 0; border-radius: 50%; background: var(--c-paper); transition: width .35s var(--ease), margin .35s var(--ease); }
.chip:hover span { border-color: rgba(26, 26, 26, .45); }
.chip input:checked + span { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.chip input:checked + span::before { width: .45rem; margin-right: .55rem; background: var(--c-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.form__foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem 1.5rem; padding-top: 1.6rem; border-top: 1px solid var(--c-line); }
.form__foot .field__err { grid-column: 1; }
.check { display: flex; gap: .75rem; align-items: start; font-size: var(--fs-small); color: var(--c-ink-soft); max-width: 42ch; cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border: 1px solid rgba(26, 26, 26, .4); border-radius: 3px; background: var(--c-paper); display: grid; place-items: center; transition: all .25s; }
.check__box::after { content: ""; width: .35rem; height: .65rem; border: solid var(--c-paper); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .25s var(--ease); }
.check input:checked + .check__box { background: var(--c-ink); border-color: var(--c-ink); }
.check input:checked + .check__box::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.form__foot.is-invalid .check__box { border-color: #A2412E; }
.check a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }
.btn--wide { grid-column: 2; grid-row: 1 / 3; justify-self: end; padding-inline: 1.6rem; }
.form__note { grid-column: 1 / -1; font-size: .8rem; color: var(--c-muted); }
.form__msg { font-family: var(--ff-mono); font-size: .75rem; color: var(--c-accent-ink); min-height: 1em; }
.form__msg:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: var(--section-pad) var(--gutter) 2rem; border-top: 1px solid var(--c-line); }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); margin-bottom: clamp(4rem, 9vw, 9rem); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__cols h2 { margin: 0 0 1.2rem; font-weight: 400; }
/* link del footer: area di tocco di almeno 24 px (accessibilità e agenti) */
.footer__cols li a { display: inline-block; min-height: 24px; line-height: 24px; }
.footer__claim { font-family: var(--ff-serif); font-size: var(--fs-h3); line-height: 1.1; max-width: 18ch; }
.footer__logo { color: var(--c-ink); }
.footer__logo .logo__svg { width: 100%; }
.footer__logo .logo__x { fill: var(--c-accent); }   /* la X come "chiavi" nella hero */
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ==========================================================================
   CURSORE + BOX PRENOTAZIONE
   ========================================================================== */
/* Il cursore e' la X del marchio, in bronzo */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 22px; height: 27px; margin: -13.5px 0 0 -11px; color: var(--c-accent);
  opacity: 0; filter: drop-shadow(0 0 1.5px rgba(244, 244, 240, .7));
}
.cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cursor__badge {
  position: fixed; left: 0; top: 0; z-index: 101; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--c-ink); color: var(--c-paper); display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  transform: scale(0);
}
@media (hover: none), (pointer: coarse) { .cursor, .cursor__badge, .follower { display: none !important; } }

.booking {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 45;
  display: flex; align-items: center; gap: .9rem;
  background: var(--c-ink); color: var(--c-paper); border-radius: 999px;
  padding: .55rem .55rem .55rem 1.3rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45);
  transform: translateY(160%); transition: transform .9s var(--ease);
}
.booking.is-visible { transform: translateY(0); }
.booking__text { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.booking__text small { display: block; font-family: var(--ff-mono); font-size: .6rem; opacity: .6; letter-spacing: .08em; }
.booking__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); display: grid; place-items: center; transition: transform .6s var(--ease); }
.booking:hover .booking__icon { transform: rotate(-45deg); }

/* Banner bozza */
.draft-flag {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 45;
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--c-paper); border: 1px solid var(--c-line); padding: .45rem .7rem; color: var(--c-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero__title { grid-column: 1 / -1; }
  .hero__title .line-2 { padding-left: 0; }
  .hero__media { grid-column: 1 / -1; grid-row: auto; margin-top: 2rem; aspect-ratio: 4 / 5; max-height: none; }
  .hero__aside { grid-column: 1 / -1; grid-row: auto; margin-top: 2rem; }
  .hero__scroll { display: none; }
  .hero__top .meta:last-child { display: none; }

  .metodo__title, .metodo__media, .metodo__body { grid-column: 1 / -1; }
  .metodo__body { margin-top: 2.5rem; padding-bottom: 0; }
  .filo__intro { flex-direction: column; align-items: start; }
  .facts__title, .facts__intro { grid-column: 1 / -1; }
  .facts__big { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .fact + .fact { border-left: 0; padding-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--c-line); padding-left: 1rem; }
  .fact__num { font-size: clamp(3rem, 1rem + 9vw, 4.6rem); }
  .facts__small { grid-template-columns: 1fr; row-gap: 1.6rem; }

  .progetti__head > div:first-child, .progetti__aside { grid-column: 1 / -1; }
  .progetti__aside { margin-top: 2rem; }
  .pr .pr__media, .pr .pr__info { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0; padding: 0; }
  .pr--1 .pr__media--side { width: 62%; justify-self: end; margin-top: 1rem !important; }
  .pr .pr__info { margin-top: 1.6rem !important; }
  .pr--2 .pr__info { order: 2; }
  .pr__num { font-size: 7rem; top: -.45em !important; bottom: auto !important; right: 0 !important; left: auto !important; }

  .servizi__head .title, .servizi__head .text { grid-column: 1 / -1; }
  .sx__item { grid-template-columns: 3rem 1fr; }


  .contact__title, .contact__intro, .form { grid-column: 1 / -1; }
  .form { margin-top: 3rem; }
  .step__grid { grid-template-columns: 1fr; }
  .form__foot { grid-template-columns: 1fr; }
  .btn--wide { grid-column: 1; grid-row: auto; justify-self: stretch; justify-content: center; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > :first-child { grid-column: 1 / -1; }
  .draft-flag { display: none; }
  .booking__text small { display: none; }
  .booking { padding: .4rem .4rem .4rem 1rem; gap: .7rem; }
  .booking__text { font-size: .72rem; }
  .booking__icon { width: 36px; height: 36px; }
}

/* Movimento ridotto: tutto visibile, nessuna animazione */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   APERTURA — il marchio si disegna, poi vola nel menu e il fondo si alza
   (visibile solo con html.intro, impostata in <head> alla prima visita)
   ========================================================================== */
.loader { display: none; }
html { scrollbar-gutter: stable; }   /* la larghezza non cambia quando lo scroll si blocca/sblocca */
html.intro { overflow: hidden; }
html.intro .loader { display: block; position: fixed; inset: 0; z-index: 200; cursor: pointer; }
html.intro .header .logo { opacity: 0; }
.loader__bg { position: absolute; inset: 0; background: var(--c-paper); }
.loader__mark { position: absolute; left: 50%; top: 50%; width: min(70vw, 760px); transform: translate(-50%, -50%); }
.loader__svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--c-ink); }
.ld-g { stroke: var(--c-accent); stroke-width: .5; stroke-dasharray: 0 99999; }   /* invisibili finché JS non misura le linee */
.ld-l { fill: var(--c-ink); fill-opacity: 0; stroke: var(--c-ink); stroke-width: .55; stroke-dasharray: 0 99999; }
.ld-s { fill: var(--c-ink); opacity: 0; }
.ld-x { fill: var(--c-accent); stroke: var(--c-accent); }   /* nell'apertura la X resta in bronzo */
.loader__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.loader__count { font-variant-numeric: tabular-nums; color: var(--c-ink); font-size: .8rem; }
@media (max-width: 900px) {
  .loader__mark { width: 84vw; }
  .loader__foot .meta:first-child { max-width: 60%; }
}

/* Showroom bloccato su schermi bassi: titolo e spazi più compatti, tutto resta visibile */
@media (min-width: 901px) and (max-height: 820px) {
  .is-pinned .showroom__copy { gap: 1rem; padding-top: calc(var(--header-h) * .45); }
  .is-pinned .showroom__copy .title { font-size: clamp(2rem, .8rem + 2.4vw, 3.4rem); }
  .is-pinned .floor-index { margin-top: .4rem; }
  .is-pinned .floor-index li { padding-block: .6rem; }
}

/* ==========================================================================
   COMUNI A TUTTE LE PAGINE — transizione, menu mobile, voce di menu attiva
   ========================================================================== */
/* Velo di transizione: sotto lo schermo (attesa) → copre (is-in / pt-enter) → sopra (is-out) */
.pt {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  background: var(--c-paper); display: grid; place-items: center;
  transform: translateY(101%); transition: transform .75s cubic-bezier(.76, 0, .24, 1);
}
.pt__x { width: 46px; color: var(--c-accent); opacity: 0; transition: opacity .3s .25s; }
.pt__x svg { display: block; width: 100%; height: auto; }
.pt.is-in, html.pt-enter .pt { transform: translateY(0); }
.pt.is-in .pt__x, html.pt-enter .pt .pt__x { opacity: 1; }
html.pt-enter .pt { transition: none; }
.pt.is-out { transform: translateY(-101%); }
.pt.is-out .pt__x { opacity: 0; transition-delay: 0s; }

.nav a.is-current::after { transform: scaleX(1); }

/* Menu mobile */
.mmenu { display: none; }
@media (max-width: 1100px) {
  .burger { position: relative; z-index: 2; }
  .burger span { transition: transform .5s var(--ease); }
  html.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  html.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  html.menu-open .header { transform: none; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.menu-open { overflow: hidden; }
  .mmenu {
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    position: fixed; inset: 0; z-index: 49; background: var(--c-paper);
    padding: calc(var(--header-h) + 2rem) var(--gutter) calc(var(--gutter) + 1rem);
    clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.76, 0, .24, 1); pointer-events: none;
  }
  html.menu-open .mmenu { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .mmenu__list { list-style: none; margin: 0; padding: 0; }
  .mmenu__list li { overflow: hidden; border-bottom: 1px solid var(--c-line); }
  .mmenu__list a { display: flex; align-items: baseline; gap: 1rem; padding: .55rem 0; transform: translateY(105%); transition: transform .8s var(--ease); }
  html.menu-open .mmenu__list a { transform: none; }
  html.menu-open .mmenu__list li:nth-child(2) a { transition-delay: .05s; }
  html.menu-open .mmenu__list li:nth-child(3) a { transition-delay: .1s; }
  html.menu-open .mmenu__list li:nth-child(4) a { transition-delay: .15s; }
  html.menu-open .mmenu__list li:nth-child(5) a { transition-delay: .2s; }
  html.menu-open .mmenu__list li:nth-child(6) a { transition-delay: .25s; }
  .mmenu__n { font-family: var(--ff-mono); font-size: .7rem; color: var(--c-accent-ink); }
  .mmenu__t { font-family: var(--ff-serif); font-size: clamp(2.2rem, 1rem + 6vw, 3.6rem); line-height: 1.05; }
  .mmenu__foot a { display: block; min-height: 24px; line-height: 24px; }
  .mmenu__foot { display: grid; gap: .3rem; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .06em; color: var(--c-ink-soft); }
}

/* Occhiello sopra il titolo del singolo progetto */
.pp-kicker { display: block; margin-bottom: 1.4rem; color: var(--c-accent-ink); }
