/* ============================================================
   TILA Luxury Flooring — design system
   Palette (exact, no deviations):
   Black #252525 · Umber #443A35 · Classic Taupe #C5B49D
   Soft Dune #E4DDCC · Vanilla #F8F4EE
   ============================================================ */

/* ---------- fonts (variable woff2, self-hosted) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-300i.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Inter-400.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  /* Palette v2 (lug 2026, richiesta cliente): bianchi caldi + nero, niente marrone.
     I nomi delle variabili restano quelli storici per compatibilità:
     --black = nero caldo (testo, da logo) · --umber = nero sezioni scure
     --taupe = accento greige neutro · --dune = bianco caldo secondario · --vanilla = bianco caldo primario */
  --black: #1A1A1A;
  --umber: #21201E;
  --taupe: #A8A196;
  --dune: #EFEBE4;
  --vanilla: #F8F4EE;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --section: clamp(6rem, 16vh, 11rem);
  --maxw: 100rem;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .9s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(.9375rem, .55vw + .78rem, 1.0625rem);
  line-height: 1.75;
  color: var(--black);
  background: var(--vanilla);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--black); color: var(--vanilla); }

/* Transizione fra pagine: un sipario copre il cambio di documento.
   Sfumare il body lasciava intravedere la pagina vuota durante il caricamento e
   poi l'hero compariva gia formato: era quello lo scatto. Il sipario entra in
   uscita e si dissolve in entrata, cosi le due pagine non si vedono mai nude.
   Al primo ingresso resta invisibile perche il preloader (z-index piu alto) lo copre. */
.page-veil {
  position: fixed; inset: 0; z-index: 90;
  background: var(--black);
  pointer-events: none;
  opacity: 0;
  animation: veilOut .55s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes veilOut { from { opacity: 1; } to { opacity: 0; } }
body.is-leaving .page-veil {
  animation: none;
  opacity: 1;
  transition: opacity .3s ease;
}
html.reduced .page-veil { animation-duration: .01s; }

/* ---------- typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 340;
  line-height: 1.1;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .serif em { font-style: italic; font-weight: 320; }

/* i titoli non superano mai una lunghezza di riga editoriale: vanno a capo
   naturalmente in IT e in EN senza righe infinite su schermi larghi */
.t-display { font-size: clamp(2.75rem, 8.2vw, 7rem); line-height: 1.05; letter-spacing: -.022em; max-width: 22ch; }
.t-xl      { font-size: clamp(2.25rem, 5.4vw, 4.6rem); max-width: 20ch; }
.t-lg      { font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: 1.12; }
.t-md      { font-size: clamp(1.65rem, 2.7vw, 2.45rem); line-height: 1.2; }
.cta-band h2, .footer-cta h2, .next-coll h2 { margin-inline: auto; }

.label {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  line-height: 1;
  color: color-mix(in srgb, currentColor 62%, transparent);
}
.label--accent { color: var(--taupe); }
/* sopra le fotografie l'accento taupe non tiene il contrasto: passa al bianco caldo */
.hero .label--accent, .banner .label--accent, .footer-cta .label--accent {
  color: var(--vanilla);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .35);
}

/* niente parole orfane sull'ultima riga (IT ed EN, desktop e mobile).
   Il fallback per i browser senza text-wrap: pretty e in main.js */
p, li, dd, dt, figcaption, .lead, .measure, .muted, blockquote { text-wrap: pretty; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.65; }
.muted { color: color-mix(in srgb, currentColor 72%, transparent); }
.measure { max-width: 34em; }
.measure-narrow { max-width: 26em; }

/* logo (SVG inline, fill: currentColor).
   Il lockup e largo 3.72:1, quindi va tenuto piu largo del wordmark precedente
   perche la riga "LUXURY FLOORING" resti leggibile (sotto i 160px sparisce). */
.logo { display: block; height: auto; }
.header-brand .logo { width: clamp(150px, 14vw, 190px); transition: width .5s var(--ease); }
.site-header.is-solid .header-brand .logo { width: clamp(134px, 12vw, 164px); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--flush-b { padding-bottom: 0; }

.theme-dark { background: var(--umber); color: var(--vanilla); }
.theme-black { background: var(--black); color: var(--vanilla); }
.theme-dune { background: var(--dune); color: var(--black); }
.theme-vanilla { background: var(--vanilla); color: var(--black); }

.hairline { border: 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4.5rem); }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: clamp(1.1rem, 2.6vh, 1.8rem) var(--gutter);
  transition: background .5s ease, color .4s ease, padding .5s ease, box-shadow .5s ease;
  color: var(--black);
}
/* logo e menu allineati al container dei contenuti (stessa larghezza utile di .wrap,
   che ha il gutter come padding interno al max-width) */
.header-inner {
  width: 100%; max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.site-header a { transition: opacity .3s ease; }
[data-header='light'] .site-header:not(.is-solid):not(.nav-open) { color: var(--vanilla); }
.site-header.is-solid {
  background: rgba(248, 244, 238, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--black);
  padding-block: .85rem;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.nav-open {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--vanilla);
}
.site-header { transition: background .5s ease, color .4s ease, padding .5s ease, transform .5s var(--ease); }


.header-side { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.lang-switch { display: flex; gap: .55em; font-size: .6875rem; letter-spacing: .18em; font-weight: 500; }
.lang-switch a { opacity: .45; }
.lang-switch a.is-active, .lang-switch a:hover { opacity: 1; }
.lang-switch span { opacity: .3; }

.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 7px;
  padding: .6rem 0; width: 2.6rem; align-items: stretch;
}
.menu-toggle span {
  height: 1px; background: currentColor; display: block;
  transition: transform .45s var(--ease), opacity .3s, width .45s var(--ease);
  transform-origin: center;
}
.menu-toggle span:nth-child(2) { width: 70%; align-self: flex-end; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); width: 100%; }

.menu-label {
  font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500;
  display: inline-block; margin-right: .9rem;
}
@media (max-width: 640px) { .menu-label { display: none; } }

/* ---------- nav overlay ---------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: var(--umber); color: var(--vanilla);
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(clamp(1.1rem, 2.6vh, 1.8rem) * 2 + 3rem) var(--gutter) clamp(1.5rem, 4vh, 2.5rem);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  pointer-events: none;
}
.nav-overlay.is-open { pointer-events: auto; }
.nav-overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--taupe) 12%, transparent), transparent 60%);
}
.nav-overlay nav { display: flex; align-items: center; height: 100%; min-height: 0; }
.nav-list { display: flex; flex-direction: column; justify-content: center; gap: clamp(.1rem, 1vh, .6rem); max-width: calc(var(--maxw) - 2 * var(--gutter)); width: 100%; margin-inline: auto; }
.nav-list a {
  display: inline-flex; align-items: baseline; gap: 1.4rem;
  font-family: var(--serif); font-weight: 340;
  font-size: clamp(2rem, 5.8vh, 3.6rem); line-height: 1.18;
  width: fit-content;
  transition: color .35s ease, transform .55s var(--ease);
}
.nav-list a i {
  font-style: normal; font-family: var(--sans); font-size: .65rem;
  letter-spacing: .2em; opacity: .4; transform: translateY(-1em); display: inline-block;
}
.nav-list a:hover { color: var(--taupe); transform: translateX(.35em); }
.nav-list .nav-line { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.nav-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  max-width: calc(var(--maxw) - 2 * var(--gutter)); width: 100%; margin-inline: auto;
  font-size: .8125rem; opacity: .75;
}
.nav-foot .label { font-size: .625rem; }
@media (max-width: 640px) { .nav-foot { flex-direction: column; align-items: flex-start; gap: .8rem; } }

/* ---------- buttons & links ---------- */
.btn {
  --btn-c: currentColor;
  position: relative; display: inline-flex; align-items: center; gap: .9em;
  padding: 1.15em 2.6em;
  font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--btn-c) 35%, transparent);
  border-radius: 999px;
  overflow: hidden;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--black);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  border-radius: inherit;
}
.btn:hover { color: var(--vanilla); border-color: var(--black); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(.35em); }

.theme-dark .btn::before, .theme-black .btn::before, .btn--light::before { background: var(--vanilla); }
.theme-dark .btn:hover, .theme-black .btn:hover, .btn--light:hover { color: var(--umber); border-color: var(--vanilla); }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: .5em;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; opacity: .35;
  transform-origin: right; transition: transform .5s var(--ease);
}
.link-line:hover::after { transform: scaleX(.3); }

.arr { display: inline-block; }

/* ---------- slideshow (dissolvenza incrociata) ---------- */
.slideshow { position: absolute; inset: 0; }
.slideshow .slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.37, 0, .2, 1);
  will-change: opacity;
}
.slideshow .slide.is-active { opacity: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; }
/* nell'hero le slide restano piu alte del contenitore per il parallasse */
.hero-media .slideshow .slide { inset: -6% 0; }

/* Ken Burns: deriva lenta e costante, appena percettibile.
   La classe .kb e separata da .is-active e viene tolta solo a dissolvenza finita:
   se l'animazione sparisse insieme all'opacita, la slide uscente tornerebbe di
   colpo a scala 1 mentre e ancora visibile, ed e quello lo scalino. */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.035); } }
.hero .hero-media img { transform-origin: 50% 55%; }
.hero .hero-media .slide.kb img { animation: kenburns 14s linear both; }
.hero .hero-media > picture img { animation: kenburns 30s linear both; }
html.reduced .hero .hero-media img { animation: none; }
html.no-js .slideshow .slide:first-child { opacity: 1; }

/* ---------- media / reveals ---------- */
.media { position: relative; overflow: hidden; background: var(--dune); }
.media picture { height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--frame { aspect-ratio: 4 / 3; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1; }
.theme-dark .media, .theme-black .media { background: color-mix(in srgb, var(--black) 55%, var(--umber)); }

[data-reveal] { opacity: 0; transform: translateY(2.4rem); }
/* la rivelazione delle foto usa solo opacita e scala: sono le due proprieta che il
   browser compone sulla GPU. Il clip-path di prima ridisegnava l'immagine a ogni
   fotogramma ed e quello che faceva scattare la griglia dei progetti in ingresso. */
[data-reveal-img] { opacity: 0; }
[data-reveal-img] img { transform: scale(1.06); }
html.no-js [data-reveal], html.reduced [data-reveal] { opacity: 1; transform: none; }
html.no-js [data-reveal-img], html.reduced [data-reveal-img] { opacity: 1; }
html.no-js [data-reveal-img] img, html.reduced [data-reveal-img] img { transform: none; }

.split-mask { opacity: 0; }
html.no-js .split-mask, html.reduced .split-mask { opacity: 1; }
/* padding-bottom + margine negativo: la maschera non taglia le discendenti (g, p, q) */
.split-mask .word {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.split-mask .word > span { display: inline-block; will-change: transform; }

/* ---------- hero (image) ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--vanilla);
  background: var(--umber);
  overflow: clip;
}
.banner { background: var(--umber); }
.hero-media { position: absolute; inset: 0; }
.hero-media picture { position: absolute; inset: -6% 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* l'immagine dell'hero entra in dissolvenza come il testo: senza questo
   comparirebbe gia a piena opacita e si percepirebbe uno stacco secco */
.hero .hero-media { opacity: 0; }
html.no-js .hero .hero-media, html.reduced .hero .hero-media { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(16,15,14,.34), rgba(16,15,14,.12) 40%, rgba(16,15,14,.62) 88%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 9vh, 6.5rem); }
.hero-content .label { margin-bottom: 1.6rem; }
.hero-sub { margin-top: 2rem; max-width: 32em; }
.hero-cta { margin-top: 2.6rem; }
.hero-foot {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(3rem, 9vh, 6.5rem);
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
}
.scroll-hint { width: 1px; height: 4.2rem; background: color-mix(in srgb, currentColor 35%, transparent); position: relative; overflow: hidden; }
.scroll-hint::after {
  content: ""; position: absolute; inset: 0; background: currentColor;
  animation: hint 2.4s var(--ease) infinite;
}
@keyframes hint { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(101%); } }
html.reduced .scroll-hint::after { animation: none; }
@media (max-width: 900px) { .hero-foot { display: none; } }

/* hero (text only) */
.hero-text {
  padding-top: calc(var(--section) + clamp(3.5rem, 8vh, 6rem));
  padding-bottom: var(--section);
}
.hero-text .label { margin-bottom: 2rem; }
.hero-text p.lead { margin-top: 2.4rem; }

/* numeri di supporto ai titoli: stessa resa dei numeri nel menu di navigazione,
   quindi sans e non serif corsivo */
.why-item .num, .coll-row .num, .hub-card .num, .block .num, .scheda .num {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .2em;
  font-style: normal;
  opacity: .45;
}

/* ---------- home: perché tila ---------- */
.why-item { padding-top: 2.2rem; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.why-item .num { display: block; margin-bottom: 2.6rem; }
.why-item h3 { margin-bottom: 1.1rem; }
.why-item p { color: color-mix(in srgb, currentColor 74%, transparent); font-size: .9375rem; }

/* ---------- marquee ---------- */
.marquee { overflow: clip; padding-block: clamp(1.5rem, 3vh, 2.5rem); }
.marquee-track { display: flex; gap: 4rem; width: max-content; will-change: transform; }
.marquee-track span {
  font-family: var(--serif); font-weight: 330; white-space: nowrap;
  font-size: clamp(3rem, 7vw, 6rem); line-height: 1.1;
  color: color-mix(in srgb, currentColor 22%, transparent);
}
.marquee-track span em { font-style: italic; }

/* ---------- home: collections index ---------- */
.coll-index { position: relative; }
.coll-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.6rem, 3.4vh, 2.6rem);
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  position: relative;
  transition: padding-left .5s var(--ease);
}
.coll-row:last-of-type { border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.coll-row .num {}
.coll-row h3 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); transition: transform .55s var(--ease); }
.coll-row p { font-size: .875rem; max-width: 38em; color: color-mix(in srgb, currentColor 65%, transparent); }
.coll-row .arr { font-family: var(--serif); font-size: 1.6rem; opacity: .35; transition: opacity .4s, transform .5s var(--ease); }
.coll-row:hover .arr { opacity: 1; transform: translateX(.3em); }
.coll-row:hover h3 { transform: translateX(.15em); }
.coll-thumb { display: none; }
@media (max-width: 900px) {
  .coll-row { grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; }
  .coll-row h3 { grid-column: 2; }
  .coll-row p { grid-column: 2; grid-row: 2; }
  .coll-row .num { grid-row: 1 / 3; align-self: start; padding-top: .6rem; }
  .coll-thumb { display: block; grid-column: 1 / -1; grid-row: 3; margin-top: 1.2rem; }
  .coll-thumb .media { aspect-ratio: 16 / 10; }
}
.coll-preview {
  position: fixed; z-index: 5; width: min(26vw, 24rem); aspect-ratio: 4 / 5;
  pointer-events: none; overflow: hidden;
  opacity: 0; visibility: hidden;
  top: 0; left: 0;
}
.coll-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.coll-preview img.is-active { opacity: 1; }
@media (max-width: 900px), (hover: none) { .coll-preview { display: none; } }

/* ---------- editorial split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 8rem); align-items: center; }
.split--offset .split-media { margin-top: clamp(2rem, 6vh, 5rem); }
.split-media .media { width: 100%; }
.split-copy .label { margin-bottom: 1.8rem; display: block; }
.split-copy h2 { margin-bottom: 1.6rem; }
.split-copy .btn, .split-copy .link-line { margin-top: 2.4rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--offset .split-media { margin-top: 0; }
  .split--rev .split-media { order: -1; }
}

/* full-bleed banner */
.banner { position: relative; min-height: clamp(30rem, 88vh, 52rem); display: flex; align-items: flex-end; color: var(--vanilla); overflow: clip; }
.banner .hero-media::after {
  background: linear-gradient(to bottom, rgba(16,15,14,.30), rgba(16,15,14,.52) 45%, rgba(16,15,14,.78) 95%);
}
.banner-content { position: relative; z-index: 2; width: 100%; padding-block: clamp(2.5rem, 7vh, 5rem); }
.banner-content .label { margin-bottom: 1.4rem; }
.banner-content h2 { max-width: 14em; }
.banner-content p { max-width: 30em; margin-top: 1.4rem; }
.banner-content .btn, .banner-content .link-line { margin-top: 2.2rem; }

/* ---------- projects strip (home) ---------- */
.proj-strip { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.proj-strip .col:nth-child(2) { margin-top: clamp(2rem, 6vh, 4.5rem); }
.proj-card { display: block; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.proj-card:last-child { margin-bottom: 0; }
.proj-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.1rem; }
.proj-card .t { font-family: var(--serif); font-size: 1.35rem; }
.proj-card .m { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; opacity: .55; white-space: nowrap; }
.proj-card .media img { transition: transform 1.1s var(--ease); }
.proj-card:hover .media img { transform: scale(1.045); }
@media (max-width: 900px) {
  .proj-strip { grid-template-columns: 1fr; }
  .proj-strip .col:nth-child(2) { margin-top: 0; }
  /* titolo su una riga e descrizione sotto, entrambi a bandiera sinistra */
  .proj-card figcaption, .proj-item figcaption {
    flex-direction: column; align-items: flex-start; gap: .25rem;
  }
  .proj-card .t, .proj-item .t { font-size: 1.15rem; }
  .proj-card .m, .proj-item .m { white-space: normal; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .label { margin-bottom: 2rem; }
.cta-band h2 { max-width: 16em; margin-inline: auto; }
.cta-band .btn { margin-top: 3rem; }
.cta-band p.lead { max-width: 30em; margin: 1.6rem auto 0; }

/* ---------- bespoke phases ---------- */
.phases { position: relative; }
.phases-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 7rem); }
.phases-visual { position: relative; }
.phases-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.phases-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 78vh; overflow: hidden; }
.phases-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease; will-change: opacity;
}
.phases-frame img.is-active { opacity: 1; }
.phase-count {
  position: absolute; right: 1.4rem; bottom: 1.1rem; z-index: 2; color: var(--vanilla);
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; letter-spacing: .08em;
  text-shadow: 0 0 24px rgba(0,0,0,.5);
}
.phase {
  min-height: 88svh; display: flex; flex-direction: column; justify-content: center;
  padding-block: 12svh;
}
.phase .phase-num {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.15rem); letter-spacing: .22em; line-height: 1;
  color: color-mix(in srgb, currentColor 45%, transparent);
  display: block; margin-bottom: 1.6rem;
}
.phase h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 1.3rem; }
.phase p { max-width: 30em; color: color-mix(in srgb, currentColor 78%, transparent); }
.phase-mobile-media { display: none; }
@media (max-width: 900px) {
  .phases-grid { grid-template-columns: 1fr; }
  .phases-visual { display: none; }
  .phase { min-height: 0; padding-block: clamp(2.5rem, 6vh, 4rem); }
  .phase-mobile-media { display: block; margin-bottom: 1.6rem; }
  .phase .phase-num { font-size: 4rem; }
}

/* ---------- collections template ---------- */
.coll-hero { min-height: 86svh; }
.block-list { display: flex; flex-direction: column; gap: clamp(5rem, 12vh, 9rem); }
.block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.block:nth-child(even) .block-media { order: 2; }
.block .num { display: block; margin-bottom: 1.6rem; }
.block h3 { margin-bottom: 1.2rem; }
.block p { color: color-mix(in srgb, currentColor 75%, transparent); }
@media (max-width: 900px) {
  .block { grid-template-columns: 1fr; }
  .block:nth-child(even) .block-media { order: -1; }
  .block-media { order: -1; }
}

.next-coll { display: block; text-align: center; padding-block: clamp(4rem, 10vh, 7rem); }
.next-coll .label { margin-bottom: 1.6rem; }
.next-coll h2 { transition: letter-spacing .6s var(--ease); }
.next-coll:hover h2 { letter-spacing: .035em; }

/* hub cards */
.hub-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 5rem); }
.hub-card { display: block; }
/* le collezioni si mostrano in formato quadrato: le quadrotte e i moduli
   geometrici sono disegni chiusi, un taglio panoramico li mutilerebbe */
.hub-card .media { aspect-ratio: 1; }
.hub-card .media img { transition: transform 1.1s var(--ease); }
.hub-card:hover .media img { transform: scale(1.045); }
.hub-card .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.hub-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.hub-card .num {}
.hub-card p { margin-top: .6rem; font-size: .9375rem; color: color-mix(in srgb, currentColor 70%, transparent); max-width: 30em; }
.hub-card .link-line { margin-top: 1.2rem; }
.hub-card:nth-child(even) { transform: translateY(clamp(0rem, 6vh, 4rem)); }
@media (max-width: 900px) {
  .hub-list { grid-template-columns: 1fr; }
  .hub-card:nth-child(even) { transform: none; }
}

/* ---------- projects page ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem) clamp(1.2rem, 2.5vw, 2.5rem); }
.proj-item { grid-column: span 5; }
.proj-item:nth-child(4n+1) { grid-column: span 7; }
.proj-item:nth-child(4n+2) { grid-column: 9 / span 4; align-self: end; }
.proj-item:nth-child(4n+3) { grid-column: 2 / span 4; }
.proj-item:nth-child(4n+4) { grid-column: 7 / span 6; }
.proj-item figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; }
.proj-item .t { font-family: var(--serif); font-size: 1.3rem; }
.proj-item .m { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; opacity: .55; }
@media (max-width: 900px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-item, .proj-item:nth-child(4n+1), .proj-item:nth-child(4n+2), .proj-item:nth-child(4n+3), .proj-item:nth-child(4n+4) { grid-column: 1 / -1; }
}

.sheet-steps { counter-reset: sheet; }
.sheet-step { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding-block: 2.2rem; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.sheet-step:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.sheet-step .num { font-family: var(--serif); font-style: italic; font-size: 1.05rem; opacity: .5; min-width: 3.5rem; padding-top: .5rem; }
.sheet-step h3 { margin-bottom: .7rem; }
.sheet-step p { max-width: 34em; color: color-mix(in srgb, currentColor 75%, transparent); }

/* ---------- chi siamo ---------- */
.story-quote {
  font-family: var(--serif); font-weight: 330; font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.4;
  max-width: 26em;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dl { display: flex; flex-direction: column; gap: 2rem; margin-top: 2.8rem; }
.contact-info dt { margin-bottom: .55rem; }
.contact-info dd { font-size: 1rem; }
.contact-info dd a { border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: border-color .3s; }
.contact-info dd a:hover { border-color: currentColor; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 2rem; }
.form .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .7rem; }
.field label { font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  padding: .55em 0; border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; }
.field option { color: var(--black); }
.field textarea { resize: vertical; min-height: 6.5em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: currentColor; }
.form .btn { justify-self: start; margin-top: .6rem; }
.form-note { font-size: .8125rem; opacity: .6; align-self: center; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--vanilla); padding-top: clamp(6rem, 15vh, 10rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); padding-bottom: clamp(4rem, 9vh, 6rem); }
.footer-brand .logo { width: 200px; }
.footer-essence { margin-top: 1.8rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; opacity: .65; }
.footer-top .label { display: block; margin-bottom: 1.4rem; color: var(--taupe); }
.footer-top li { margin-bottom: .55rem; }
.footer-top a { opacity: .78; font-size: .9375rem; transition: opacity .3s; }
.footer-top a:hover { opacity: 1; }
.footer-top p { opacity: .78; font-size: .9375rem; }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--vanilla) 14%, transparent);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.6rem;
  font-size: .75rem; opacity: .55;
}
.footer-legal { text-align: right; }
@media (max-width: 640px) { .footer-legal { text-align: left; } }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* big CTA above footer */
.footer-cta { background: var(--black); color: var(--vanilla); text-align: center; padding-block: clamp(6rem, 15vh, 10rem) 0; }
.footer-cta .label { margin-bottom: 2rem; }
.footer-cta h2 { max-width: 13em; margin-inline: auto; }
.footer-cta .btn { margin-top: 3rem; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--vanilla); color: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.preloader .logo {
  width: clamp(220px, 34vw, 380px);
  clip-path: inset(-8% 100% -8% 0);
}
html.no-js .preloader { display: none; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; z-index: 200; top: 0; left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--taupe);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), opacity .3s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor.is-active { width: 52px; height: 52px; }
@media (hover: none), (max-width: 900px) { .cursor { display: none; } }

/* ---------- social ---------- */
.social { display: flex; gap: 1.1rem; align-items: center; }
.social a { display: inline-flex; opacity: .6; transition: opacity .3s ease, transform .35s var(--ease); }
.social a:hover { opacity: 1; transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; display: block; }
.nav-foot .social { margin-top: 1rem; }
.site-footer .social { margin-top: 1.4rem; }

/* ---------- pagine documento (privacy) ---------- */
.doc { max-width: 46em; }
.doc-blocco { padding-block: clamp(2rem, 4vh, 2.8rem); border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.doc-blocco:first-child { border-top: 0; padding-top: 0; }
.doc-blocco h2 { margin-bottom: 1.4rem; }
.doc-testo p { margin-bottom: 1rem; color: color-mix(in srgb, currentColor 80%, transparent); }
.doc-testo p:last-child { margin-bottom: 0; }
.doc-testo a { border-bottom: 1px solid color-mix(in srgb, currentColor 32%, transparent); transition: border-color .3s; }
.doc-testo a:hover { border-color: currentColor; }
.doc-testo b { font-weight: 500; }
.nota-doc { margin-top: clamp(2.5rem, 6vh, 4rem); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; opacity: .45; }

/* consenso privacy nel form */
.consenso label { display: flex; gap: .75rem; align-items: flex-start;
  font-size: .8125rem; line-height: 1.55; letter-spacing: 0; text-transform: none;
  font-weight: 400; opacity: .85; cursor: pointer; padding: .3rem 0; }
/* il flex si applica ai due figli diretti: casella e testo. Il testo sta dentro
   uno span, altrimenti il link diventerebbe un terzo elemento con spazio ai lati. */
.consenso label > span { flex: 1 1 auto; }
/* la casella va sottratta all'azzeramento previsto per gli altri campi del form,
   che le toglierebbe la forma nativa lasciando un trattino */
.field .consenso input[type="checkbox"],
.consenso input[type="checkbox"] {
  -webkit-appearance: checkbox; appearance: checkbox;
  width: 1.05rem; height: 1.05rem; min-width: 1.05rem;
  margin: .18rem 0 0; padding: 0; border: 0; border-radius: 0;
  flex: 0 0 auto; accent-color: var(--black); cursor: pointer;
}
.consenso a { border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); }

/* campo esca per i bot: invisibile ma non display:none, che alcuni bot ignorano */
.esca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-esito { grid-column: 1 / -1; font-size: .875rem; line-height: 1.6; margin-top: -.6rem; }
.form-esito.ok { color: var(--black); }
.form-esito.ko { color: #8a3b3b; }

.link-privacy { margin-left: 1.2rem; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.link-privacy:hover { border-color: currentColor; }

/* ---------- misc ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(3rem, 7vh, 5rem); }
.label--block { display: block; margin-bottom: clamp(2.5rem, 5vh, 3.5rem); }
.section-head .label { display: block; margin-bottom: 1.6rem; }
.section-head h2 { max-width: 14em; }
.section-head .link-line { flex-shrink: 0; margin-bottom: .4rem; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: flex-start; } }

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 300;
  background: var(--black); color: var(--vanilla);
  padding: .8em 1.4em; font-size: .8rem;
  transition: top .3s;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
