/*!
 * L-Z Architects — foglio di stile del sito
 * Grammatica dell'originale (Neue Montreal, nero/bianco/giallo, rivelazioni riga per riga, wipe giallo)
 * resa fluida, responsive e accessibile.
 */

/* ============ 1. Font, variabili, reset ============ */
@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/PPNeueMontreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Carattere di riserva tarato sulle misure di Neue Montreal (larghezza media, ascendenti, discendenti):
   nell'attimo prima che arrivi quello vero le righe occupano già lo stesso spazio, e all'arrivo non si spostano. */
@font-face {
  font-family: "Neue Montreal Riserva";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 96.5%;
  ascent-override: 99.3%;
  descent-override: 25.1%;
  line-gap-override: 0%;
}

:root {
  --y: #FDEA00;
  --bg: #fff;
  --fg: #000;
  --muted: rgba(0, 0, 0, .55);
  --line: rgba(0, 0, 0, .16);
  --line-strong: #000;
  --menu-bg: var(--y);
  --menu-fg: #000;
  /* con la tacca di lato (telefono in orizzontale) il margine non scende sotto lo spazio che occupa */
  --pad: max(5vw, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --top: clamp(14px, 2vh, 22px);
  --bar-top: clamp(22px, 5vh, 45px);
  --fs-xl: clamp(26px, 3.34vw, 48px);
  --fs-lead: clamp(19px, 2.23vw, 32px);
  --fs-big: clamp(34px, 5vw, 72px);
  --fs-menu: clamp(54px, min(8.4vw, 12.5vh), 120px);
  --fs-body: clamp(16px, 1.15vw, 18px);
  --fs-small: 13px;
  --ease-expo: cubic-bezier(.19, 1, .22, 1);
  --ease-circ: cubic-bezier(.075, .82, .165, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --t-theme: .7s;
  --space-block: clamp(72px, 10vw, 168px);
  color-scheme: light;
}
html.theme-dark {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, .58);
  --line: rgba(255, 255, 255, .2);
  --line-strong: #fff;
  --menu-bg: #000;
  --menu-fg: #fff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; -webkit-tap-highlight-color: transparent; }
body {
  font-family: "Neue Montreal", "Neue Montreal Riserva", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--fg);
  background: transparent;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color var(--t-theme) ease-in-out;
  overflow-x: clip;
}
/* sfondo con "sipario" dark mode, come l'originale: il nero sale dal basso */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, #000 50%, #fff 50%);
  background-size: 100% 200%;
  background-position: 0 0;
  transition: background-position var(--t-theme) var(--ease-io);
}
html.theme-dark body::before { background-position: 0 100%; }
html.no-theme-anim body::before, html.no-theme-anim body { transition: none !important; }

img, svg, picture, video { display: block; max-width: 100%; }
img { -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, p, dl, dd, blockquote, figure { font-weight: 500; }
/* A capo curati: nei paragrafi mai una parola sola sull'ultima riga; su telefono i titoli vanno su righe di lunghezza simile.
   I testi d'apertura restano come sono scritti: le loro righe le decide lo studio. */
p, li, dd, figcaption { text-wrap: pretty; }
.lead { text-wrap: wrap; }
@media (max-width: 768px) { h1, h2, h3, .mobile-title { text-wrap: balance; } }
/* Fuoco da tastiera: un contorno nel colore del testo, nero sul chiaro e bianco sullo scuro. */
:focus-visible, .clip:has(> :focus-visible) { outline: 2px solid var(--fg); outline-offset: 3px; }
/* Dove un riquadro ritaglia il testo per farlo salire (barra in alto, filtri, frecce, contatti) il contorno
   resterebbe fuori dal ritaglio, invisibile: lo porta il riquadro. */
.clip > :focus-visible { outline: 0; }
/* la barra in alto inverte i propri colori sullo sfondo, l'avviso dei cookie ha i suoi: il contorno segue il loro testo */
.topbar .clip:has(> :focus-visible), .cookie-bar :focus-visible { outline-color: currentColor; }
/* le voci del menu sono ritagliate dalla loro riga: contorno appena all'interno */
.menu__nav a:focus-visible { outline-offset: -2px; }
::selection { background: var(--y); color: #000; }
.muted { color: var(--muted); }
.linklike { text-decoration: none; }
.skip-link { position: fixed; left: 8px; top: -60px; z-index: 2000; padding: 10px 14px; background: var(--y); color: #000; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* cursore nativo nascosto solo dove c'è il cursore personalizzato */
html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor [data-lb] { cursor: none; }

/* ============ 2. Rivelazioni ============ */
.clip { display: block; overflow: hidden; }
.clip .reveal-up { display: inline-block; }
html.js [data-reveal-group] .reveal-up {
  transform: translate3d(0, 110%, 0);
  transition: transform 1s var(--ease-expo);
  transition-delay: var(--d, 0s);
  will-change: transform;
}
html.js [data-reveal-group].is-in .reveal-up { transform: none; }
html.js [data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity .9s ease, transform 1.1s var(--ease-expo);
}
html.js [data-stagger] > .is-in, html.js [data-stagger].is-in > * { opacity: 1; transform: none; }
html.js .reveal-wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-expo); }
html.js .reveal-wipe picture img { transform: scale(1.08); transition: transform 1.6s var(--ease-expo); }
html.js .reveal-wipe.is-in { clip-path: inset(0 0 0 0); }
html.js .reveal-wipe.is-in picture img { transform: none; }

/* ============ 3. Cursore personalizzato ============ */
.cursor, .cursor2 { display: none; }
html.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0; top: 0;
  width: 35px; height: 35px;
  margin: -17.5px 0 0 -17.5px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3000;
  opacity: 0;
  transition: opacity .6s, width .25s var(--ease-circ), height .25s var(--ease-circ), margin .25s var(--ease-circ), background-color var(--cursor-fill, .2s), border-color var(--t-theme);
}
html.has-cursor .cursor2 {
  display: block;
  position: fixed;
  left: 0; top: 0;
  width: 15px; height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  z-index: 3001;
  opacity: 0;
  transition: opacity .6s, width .3s, height .3s, margin .3s, background-color var(--t-theme);
}
html.cursor-on .cursor, html.cursor-on .cursor2 { opacity: 1; }
/* sui link il giallo arriva in 0,4 s e se ne va in 0,2: la durata è quella dello stato verso cui si va */
.cursor.is-hover { background: var(--y); border-color: transparent; --cursor-fill: .4s; }
.cursor.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cursor2.is-down { width: 35px; height: 35px; margin: -17.5px 0 0 -17.5px; }
.cursor.is-media { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--y); border-color: transparent; mix-blend-mode: normal; }
.cursor2.is-media { opacity: 0 !important; }
/* Schermata d'ingresso con ingresso automatico: la circonferenza del cursore non c'è subito, si disegna mentre scorre
   il conto alla rovescia. La traccia l'svg, esattamente sopra il bordo (stesso diametro, stesso spessore), che nel
   frattempo resta trasparente. max-width: none perché l'svg è 2 px più largo del suo contenitore, e il limite di
   larghezza che vale per tutti gli svg lo stringerebbe e lo sposterebbe di lato. */
.cursor__ring { position: absolute; inset: -1px; width: calc(100% + 2px); max-width: none; height: calc(100% + 2px); transform: rotate(-90deg); fill: none; stroke: var(--fg); stroke-width: 1; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
html.has-cursor .cursor.is-timing { border-color: transparent; }
.cursor.is-timing .cursor__ring { opacity: 1; }

/* ============ 4. Transizioni di pagina ============ */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: var(--y);
  transform: scaleY(0);
  transform-origin: 50% 0;
  pointer-events: none;
}
html.is-leaving .wipe { transform: scaleY(1); transition: transform .32s var(--ease-io); pointer-events: auto; }
html.is-entering .wipe { transform: scaleY(1); transform-origin: 50% 100%; }
html.is-entering.is-ready .wipe { transform: scaleY(0); transition: transform .38s var(--ease-io); }

/* preloader solo al primo accesso: linea nera su giallo, poi sale (≈0,6 s) */
.preloader { display: none; }
html.js.is-first .preloader {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2400;
  align-items: center;
  justify-content: center;
  background: var(--y);
  transform-origin: 50% 0;
  transition: transform .45s var(--ease-io);
}
.preloader__line { display: block; width: 0; height: 10.81px; background: #000; transition: width .5s var(--ease-io); }
html.is-first.is-loading .preloader__line { width: min(200px, 30vw); }
html.is-first.is-ready .preloader { transform: scaleY(0); }

/* ============ 5. Barra in alto ============ */
.topbar {
  position: fixed;
  top: var(--bar-top);
  right: var(--pad);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  font-size: 16px;
  line-height: 1.2;
  color: #000;
  filter: invert(1);
  mix-blend-mode: difference;
  transition: transform .45s var(--ease-io);
}
html.bar-hidden:not(.menu-open) .topbar { transform: translate3d(0, calc(-100% - var(--bar-top) - 10px), 0); }
html.menu-open .topbar { mix-blend-mode: normal; filter: none; color: var(--menu-fg); transition: color .3s, transform .45s var(--ease-io); }
html[data-theme-lock] .topbar { mix-blend-mode: normal; filter: none; color: var(--fg); }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch .clip { display: inline-block; }
.lang-switch a { opacity: .62; transition: opacity .3s; padding: 4px 2px; }
.lang-switch a.is-current, .lang-switch a:hover { opacity: 1; }
.lang-switch__sep { opacity: .62; }
.topbar > .clip { display: inline-block; }
.theme-toggle, .clip .theme-toggle { display: inline-flex; align-items: center; gap: 10px; }
.theme-toggle__bullet { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transition: transform .5s var(--ease-expo); }
.menu-toggle span { display: inline-block; min-width: 3.2em; text-align: right; }

/* ============ 6. Menu a tutto schermo ============ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--menu-bg);
  color: var(--menu-fg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io), background-color var(--t-theme), color var(--t-theme);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--bar-top) + 50px) var(--pad) 5vh;
  overflow: auto;
}
html.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__nav ul { display: flex; flex-direction: column; }
.menu__nav li {
  overflow: hidden;
  font-size: calc(clamp(min(54px, calc(60vh / var(--n, 5))), min(8.4vw, calc(64vh / var(--n, 5))), 120px) * var(--menu-scale, 1));
  /* mai più alto dello schermo, qualunque sia l'impostazione del backend (numero di voci, dimensione, interlinea, spazio) */
  font-size: min(calc(clamp(min(54px, calc(60vh / var(--n, 5))), min(8.4vw, calc(64vh / var(--n, 5))), 120px) * var(--menu-scale, 1)), calc((100vh - 180px) / (var(--n, 5) * (var(--menu-lh, 1.12) + var(--menu-gapn, 0)) + .14)));
  font-size: min(calc(clamp(min(54px, calc(60svh / var(--n, 5))), min(8.4vw, calc(64svh / var(--n, 5))), 120px) * var(--menu-scale, 1)), calc((100svh - 180px) / (var(--n, 5) * (var(--menu-lh, 1.12) + var(--menu-gapn, 0)) + .14)));
  line-height: var(--menu-lh, 1.12);
  padding-bottom: .14em;
  margin-bottom: calc(var(--menu-gap, 0em) - .14em);
}
.menu__nav li:last-child { margin-bottom: 0; }
.menu__nav a {
  position: relative;
  display: inline-block;
  letter-spacing: -.02em;
  transform: translate3d(0, 125%, 0);
  transition: transform .8s var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 60ms);
}
html.menu-open .menu__nav a { transform: none; transition-delay: calc(.25s + var(--i, 0) * 70ms); }
.menu__label { position: relative; }
.menu__label::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: max(6px, .085em);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease-out;
}
.menu__nav a:hover .menu__label::after, .menu__nav a.is-current .menu__label::after { transform: scaleX(1); transform-origin: left; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; opacity: 0; transition: opacity .4s; }
html.menu-open .menu__foot { opacity: 1; transition-delay: .6s; }
html.menu-open main { opacity: .0; transition: opacity .4s; }
main { transition: opacity .5s .2s; }

/* ============ 7. Logo ============ */
.lz-logo { display: inline-block; color: var(--fg); transition: color var(--t-theme); }
.lz-logo svg { height: 100%; width: auto; overflow: visible; fill: currentColor; }
.lz-logo .lz-dash { transform-box: fill-box; transform-origin: 0 50%; transition: transform 1s var(--ease-circ); }
.lz-logo .lz-zg { transform: translate(188.1px, -3.8px); transition: transform 1s var(--ease-circ); }
.lz-logo--screen { height: clamp(32px, 3.5vw, 50px); }
.lz-logo--foot { height: clamp(32px, 3.5vw, 50px); }
/* ingresso: L, Z e "Architects" salgono dal suolo (bordo inferiore dell'SVG), il trattino si allunga */
html.js .lz-logo:not(.is-settled) svg { overflow: hidden; }
html.js .lz-logo .lz-l path, html.js .lz-logo .lz-z, html.js .lz-logo .lz-r, html.js .lz-logo .lz-arch { transform: translateY(92px); transition: transform 1s var(--ease-expo); }
html.js .lz-logo .lz-dash { transform: scaleX(0); }
html.js .lz-logo.is-in .lz-l path, html.js .lz-logo.is-in .lz-z, html.js .lz-logo.is-in .lz-r, html.js .lz-logo.is-in .lz-arch { transform: none; }
html.js .lz-logo.is-in .lz-z { transition-delay: .1s; }
html.js .lz-logo.is-in .lz-arch { transition-delay: .18s; }
html.js .lz-logo.is-in .lz-r { transition-delay: .3s; }
html.js .lz-logo.is-in .lz-dash { transform: scaleX(1); transition: transform 1s var(--ease-expo) .05s; }
html.js .lz-logo.is-in.is-settled .lz-dash { transition: transform 1s var(--ease-circ); }
/* hover: il trattino si allunga e spinge Z e "Architects", come nel sito originale */
@media (hover: hover) {
  html .lz-logo.is-settled:hover .lz-dash, html.no-js .lz-logo:hover .lz-dash { transform: scaleX(3.6); transition: transform 1s var(--ease-circ); }
  html .lz-logo.is-settled:hover .lz-zg, html.no-js .lz-logo:hover .lz-zg { transform: translate(487.6px, -3.8px); }
}

/* ============ 8. Testi d'apertura ============ */
.lead { font-size: var(--fs-lead); line-height: 1.25; letter-spacing: -.005em; }
.lead--xl { font-size: var(--fs-xl); line-height: 1.146; }
.lead .lines { display: block; }
.lines--desk .clip { white-space: nowrap; }
.lines--desk.is-wrap .clip { white-space: normal; }
.lines--mob { display: none !important; }
.mobile-title { display: none; }

/* ============ 9. Pagine a schermo singolo ============ */
.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--top) var(--pad) 0;
}
.screen .lead { width: auto; max-width: 100%; }
.screen__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 0 5vh;
}
/* titolo della pagina in basso a destra: fermo nel piè di pagina, accanto al logo (come il sito di prima) */
.foot-label { margin: 0; font-size: clamp(22px, 2.23vw, 32px); line-height: 1; overflow: hidden; text-align: right; }
.foot-label span { display: inline-block; }
html.js .foot-label span { transform: translateY(110%); transition: transform 1s var(--ease-expo) .5s; }
html.js.is-ready .foot-label span { transform: none; }

/* home */
.screen--home .latest { position: absolute; right: var(--pad); bottom: 40%; width: 35%; z-index: 3; }
.latest__link {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 6px;
  font-size: var(--fs-big);
  line-height: 1.05;
  border-bottom: 1px solid var(--line);
}
.latest__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  border-bottom: 1px solid var(--line-strong);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1s var(--ease-circ);
}
.latest__link:hover::after { transform: scaleX(1); transform-origin: left; }
/* margine a destra: la freccia scorre di 10px all’hover dentro il riquadro che la ritaglia, senza perdere la punta */
.latest__arrow { padding-right: 14px; }
/* le discendenti (la «g» di «Progetti») non vanno tagliate dal riquadro che fa salire il testo */
.latest__link .clip { padding-bottom: .16em; margin-bottom: -.16em; }
.latest__arrow .arrow { overflow: visible; height: .9em; width: .9em; fill: currentColor; transition: transform 1s var(--ease-circ); }
.latest__link:hover .latest__arrow .arrow { transform: translateX(10px); }
.latest__peek { position: absolute; right: 0; bottom: calc(100% + 18px); display: flex; gap: 10px; pointer-events: none; }
.latest__peek-item { width: clamp(84px, 7vw, 120px); aspect-ratio: 4 / 5; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease-expo); transition-delay: calc(var(--i) * 70ms); }
.latest__peek-item img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .latest__link:hover + .latest__peek .latest__peek-item { clip-path: inset(0 0 0 0); } }

.contacts { display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 6px clamp(20px, 2.6vw, 40px); font-size: clamp(14px, 1.2vw, 18px); line-height: 1.32; justify-content: end; }
address.contacts__col { font-style: normal; }
.contacts__col { display: flex; flex-direction: column; }
.contacts a, .contacts .linklike { transition: opacity .3s; text-align: left; padding: 3px 0; }
.contacts a:hover, .contacts .linklike:hover { opacity: .55; }

/* clienti */
.logos { display: grid; grid-template-columns: repeat(var(--cols, 7), 1fr); margin-top: clamp(28px, 4.5vh, 48px); max-width: 1370px; }
.logos__item { aspect-ratio: 560 / 393; display: flex; align-items: center; justify-content: center; }
.logos__item img { width: 100%; height: auto; transition: filter var(--t-theme) ease-in-out; }
html.theme-dark .logos__item img { filter: invert(1); }

/* persone (Studio → Team e blocchi «persone» delle pagine aggiunte) */
.team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 225px));
  gap: 0 20px;
  margin-top: clamp(32px, 6vh, 62px);
}
.team__item { overflow: hidden; }
.team__item--break { grid-column-start: 1; }
.team__photo { overflow: hidden; aspect-ratio: 1; background: #111; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.team__item:hover .team__photo img { transform: scale(1.04); }
.team__txt { margin: 12px 0 30px; font-size: var(--fs-small); line-height: 1.18; }
.team__name { letter-spacing: .01em; }
.team__txt a { text-decoration: underline; text-underline-offset: 2px; }

/* gallerie a scorrimento (stile «scorrimento» dei blocchi galleria) e loro frecce */
.slider { position: relative; margin-top: clamp(24px, 6vh, 70px); }
.slider__nav { position: absolute; right: 0; top: -58px; display: flex; gap: 18px; }
.slider__nav .clip { display: inline-block; }
.slider__btn { display: inline-flex; padding: 4px; }
.slider__btn .arrow { width: 28px; height: 28px; fill: currentColor; transition: transform .6s var(--ease-circ), opacity .3s; }
.slider__btn:hover .arrow { transform: translateX(4px); }
.slider__btn:hover .arrow--left { transform: rotate(180deg) translateX(4px); }
.slider__btn[disabled] .arrow { opacity: .25; }
.arrow--left { transform: rotate(180deg); }
/* tasto pausa: misura, spessore e movimento delle frecce (al passaggio le barre si scostano); a galleria ferma, il triangolo «riprendi» */
.slider__btn .pause { width: 28px; height: 28px; fill: currentColor; overflow: visible; }
.pause__bar, .pause__play { transition: transform .6s var(--ease-circ); }
.pause__play { display: none; }
[aria-pressed="true"] > .pause .pause__bar { display: none; }
[aria-pressed="true"] > .pause .pause__play { display: inline; }
.slider__btn:hover .pause__bar { transform: translateX(-28px); }
.slider__btn:hover .pause__bar + .pause__bar { transform: translateX(28px); }
.slider__btn:hover .pause__play { transform: translateX(64px); }
html.no-js .carousel__pause { display: none; }
.slider__track {
  display: flex;
  gap: 50px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 calc((100% - (var(--per, 2) - 1) * 50px) / var(--per, 2)); scroll-snap-align: start; }
.slider__slide img { width: 100%; height: auto; max-height: 50vh; object-fit: cover; aspect-ratio: var(--ar, 1624 / 1080); }
.slider__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.slider__track.is-dragging * { pointer-events: none; }

/* ============ 10. Pagine lunghe: testata, footer ============ */
.page-head { padding: var(--top) var(--pad) clamp(56px, 13vh, 150px); }
.page-head .lead { width: auto; }
.site-foot { margin-top: var(--space-block); padding: 0 var(--pad) 5vh; }
.site-foot__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.site-foot--label .site-foot__row { border-top: 0; padding-top: 0; min-height: 60px; }

/* filtri */
.filters { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 0 var(--pad); margin: 0 0 40px; font-size: 16px; }
.filters .clip { display: inline-block; }
.filters__btn { position: relative; padding: 4px 0; opacity: .6; transition: opacity .3s; }
.filters__btn sup { font-size: 10px; margin-left: 2px; }
.filters__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-circ); }
.filters__btn:hover, .filters__btn.is-active { opacity: 1; }
.filters__btn.is-active::after { transform: scaleX(1); transform-origin: left; }

/* tile progetti */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) 20px; padding: 0 var(--pad); }
.tile { transition: opacity .5s, transform .5s; }
.tile.is-hidden { display: none; }
.tile__link { display: block; }
.tile__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(127, 127, 127, .12); }
.tile__media picture, .tile__media img { width: 100%; height: 100%; }
.tile__media img { object-fit: cover; transition: transform 1.4s var(--ease-expo), filter .8s; }
.tile__veil { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--y); transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease-circ); }
.tile__meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); position: relative; }
.tile__meta::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; border-bottom: 1px solid var(--line-strong); transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease-circ); }
.tile__title { grid-column: 1; grid-row: 1; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.15; letter-spacing: -.005em; }
.tile__idx { grid-column: 2; grid-row: 1; font-size: var(--fs-small); color: var(--muted); padding-top: 4px; }
.tile__sub { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--muted); }
.tile__cat { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--muted); text-align: right; }
@media (hover: hover) {
  .tile__link:hover .tile__media img { transform: scale(1.045); }
  .tile__link:hover .tile__veil { transform: scaleX(1); transform-origin: left; }
  .tile__link:hover .tile__meta::after { transform: scaleX(1); transform-origin: left; }
}

/* ============ 11. Pagina progetto ============ */
.project { position: relative; }
.preview-flag { position: fixed; left: 12px; bottom: 12px; z-index: 2600; background: var(--y); color: #000; font-size: 13px; padding: 4px 10px; }
.p-head { padding: var(--top) var(--pad) clamp(28px, 5vh, 56px); }
.p-head__kicker { display: flex; justify-content: flex-start; align-items: center; gap: 28px; font-size: 16px; min-height: 30px; }
.p-head__kicker .clip { display: inline-block; }
.backlink, .clip .backlink { display: inline-flex; align-items: center; gap: 10px; }
.backlink .arrow { width: 16px; height: 16px; fill: currentColor; transition: transform .6s var(--ease-circ); }
.backlink:hover .arrow { transform: rotate(180deg) translateX(5px); }
/* al passaggio del mouse la freccia scivola di 5 px a sinistra: la cornice che ritaglia la comparsa del link le lascia
   quello spazio (margine negativo e rientro uguali: il link resta dov'è) */
.clip:has(> .backlink) { margin-left: -6px; padding-left: 6px; }
.p-head__num { color: var(--muted); font-variant-numeric: tabular-nums; }
.p-head__title { font-size: clamp(46px, 8.6vw, 138px); line-height: .96; letter-spacing: -.025em; margin-top: clamp(18vh, 24vh, 260px); max-width: 15ch; }
.p-head__title .clip { padding-bottom: .06em; }
.p-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 22px; }
.p-head__meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-lead); line-height: 1.2; }
.p-head__meta .clip { display: inline-block; }
.p-head__tagline { max-width: 32ch; font-size: 16px; color: var(--muted); text-align: right; }
.dash { display: inline-block; width: 1.6em; height: .14em; background: currentColor; vertical-align: .3em; margin: 0 .45em; }

.p-hero { position: relative; margin: 0; }
.p-hero__frame { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.p-hero--tall .p-hero__frame { height: 82svh; }
.p-hero--medium .p-hero__frame { height: 64svh; }
.p-hero--contained { padding: 0 var(--pad); }
.p-hero--contained .p-hero__frame { height: auto; aspect-ratio: var(--ar); margin: 0 auto 0 0; }
.p-intro__facts { min-width: 0; align-self: stretch; }
.p-intro__text { max-width: 40em; }
.p-intro__text p:first-child { font-size: var(--fs-lead); line-height: 1.28; letter-spacing: -.005em; margin-bottom: 1.1em; }
.p-hero picture, .p-hero img { width: 100%; height: 100%; }
.p-hero img { object-fit: cover; }
html.js .p-hero .reveal-wipe::after { content: ""; position: absolute; inset: 0; background: var(--y); transform-origin: 50% 0; transition: transform 1s var(--ease-io); z-index: 1; }
html.js .p-hero .reveal-wipe.is-in::after { transform: scaleY(0); }
html.js .p-hero .reveal-wipe { clip-path: none; }

.b { margin-top: var(--space-block); padding: 0 var(--pad); }
.b-label { display: flex; align-items: center; gap: 14px; font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.b-label::before { content: ""; width: 38px; height: 4px; background: currentColor; }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 1em; }
.rich ul li { position: relative; padding-left: 1.4em; }
.rich ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .8em; height: 2px; background: currentColor; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich strong { font-weight: 500; background: linear-gradient(transparent 62%, var(--y) 62%); color: inherit; }
html.theme-dark .rich strong { color: #fff; background: linear-gradient(transparent 62%, rgba(253, 234, 0, .45) 62%); }

/* scheda + primo testo */
.p-intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 6vw; align-items: start; }
.p-intro .facts { position: sticky; top: 110px; }
.facts { display: grid; font-size: 15px; line-height: 1.3; }
.facts__row { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts__row:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.b-facts-intro .facts { max-width: 720px; }

.b-text__body { max-width: 40em; }
.b-text--body .b-text__body, .b-text--body .b-label { margin-left: 33.333%; }
.b-text--intro .b-text__body { margin-left: 33.333%; max-width: 24em; font-size: var(--fs-lead); line-height: 1.32; letter-spacing: -.005em; }
.b-text--lead .b-text__body { max-width: 24em; font-size: var(--fs-lead); line-height: 1.28; letter-spacing: -.005em; }
.b-text--columns .b-text__body { max-width: none; columns: 2; column-gap: 5vw; }
.b-text--columns .b-text__body p { break-inside: avoid; }
.b-text--narrow .b-text__body { margin: 0 auto; max-width: 30em; }
.p-intro .b-text__body { margin-left: 0; }
.p-intro .b-text__body p:first-child { font-size: var(--fs-lead); line-height: 1.28; letter-spacing: -.005em; margin-bottom: 1.2em; }

.fig { position: relative; margin: 0; }
.fig__frame { position: relative; overflow: hidden; aspect-ratio: var(--ar, auto); background: rgba(127, 127, 127, .1); }
.fig__frame picture, .fig__frame img { width: 100%; height: 100%; }
.fig__frame img { object-fit: cover; }
.fig figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); max-width: 60ch; }
.b-image--full { padding: 0; }
.b-image--full figcaption { padding: 0 var(--pad); }
.b-image--medium .fig { width: 64%; }
.b-image--small .fig { width: 40%; }
.b-image.align-center .fig { margin-left: auto; margin-right: auto; }
.b-image.align-right .fig { margin-left: auto; }

.b-it { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 6vw; align-items: center; }
.b-it--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.b-it--reverse .b-it__media { order: 2; }
.b-it__txt { max-width: 34em; }

.b-grid__items { display: grid; gap: 20px; align-items: start; }
.b-grid--2 .b-grid__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-grid--3 .b-grid__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-grid--2.b-grid--offset .fig:nth-child(2) { margin-top: 14vh; }
.b-grid--3.b-grid--offset .fig:nth-child(2) { margin-top: 10vh; }

.b-gallery { padding-right: 0; }
.b-gallery__head { display: flex; justify-content: space-between; align-items: center; padding-right: var(--pad); margin-bottom: 18px; }
.b-gallery__head .b-label { margin: 0; }
.b-gallery__nav { display: flex; align-items: center; gap: 18px; }
.b-gallery__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.b-gallery__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: var(--pad); }
.b-gallery__track::-webkit-scrollbar { display: none; }
.b-gallery__slide { flex: 0 0 auto; width: min(64vw, 1100px); scroll-snap-align: start; }

.b-quote { position: relative; max-width: 22em; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.14; letter-spacing: -.01em; margin-left: auto; margin-right: auto; }
.b-quote__dash { display: block; width: 115px; height: 10.81px; background: var(--y); margin-bottom: 28px; }
.b-quote cite { display: block; margin-top: 22px; font-style: normal; font-size: 15px; color: var(--muted); }

.b-video__frame { position: relative; aspect-ratio: var(--ar, 16/9); background: #111; overflow: hidden; }
.b-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-video__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; padding: 20px; }
.b-video__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--y); position: relative; transition: transform .6s var(--ease-circ); }
.b-video__icon::after { content: ""; position: absolute; left: 34px; top: 27px; border-left: 22px solid #000; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.b-video__play:hover .b-video__icon { transform: scale(1.08); }
.b-video__note { font-size: 12px; opacity: .6; max-width: 40ch; }
.b-video figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }

.b-spacer { height: 6vh; }
.b-spacer--m { height: 12vh; }
.b-spacer--l { height: 22vh; }

/* progetto successivo */
.p-next { margin-top: var(--space-block); padding: 0 var(--pad); display: flex; flex-direction: column; align-items: flex-end; }
.p-next__link { position: relative; display: block; width: min(100%, 980px); }
.p-next__label { display: block; font-size: 16px; color: var(--muted); margin-bottom: 10px; }
.p-next__title { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: var(--fs-big); line-height: 1.05; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.p-next__title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; border-bottom: 1px solid var(--line-strong); transform: scaleX(0); transform-origin: right; transition: transform 1s var(--ease-circ); }
.p-next__title .arrow { width: .8em; height: .8em; flex: none; fill: currentColor; transition: transform 1s var(--ease-circ); }
.p-next__media { position: absolute; left: -300px; bottom: 0; width: 240px; aspect-ratio: 4/5; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease-expo); pointer-events: none; }
.p-next__media img { width: 100%; height: 100%; object-fit: cover; }
/* su desktop l’anteprima della copertina (300px d’altezza) sale sopra il link: lo spazio sopra deve contenerla */
@media (hover: hover) and (min-width: 769px) { .p-next { margin-top: max(var(--space-block), 300px); } }
@media (hover: hover) {
  .p-next__link:hover .p-next__title::after { transform: scaleX(1); transform-origin: left; }
  .p-next__link:hover .arrow { transform: translateX(10px); }
  .p-next__link:hover .p-next__media { clip-path: inset(0 0 0 0); }
}
.p-next__all { align-self: flex-end; margin-top: 22px; font-size: 16px; border-bottom: 1px solid currentColor; }

/* ============ 12. Visualizzatore foto ============ */
.lb { position: fixed; inset: 0; z-index: 2200; background: var(--bg); color: var(--fg); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s, background-color var(--t-theme); }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--bar-top) var(--pad) 12px; font-size: 16px; }
.lb__count { font-variant-numeric: tabular-nums; }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 var(--pad); overflow: hidden; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; transition: opacity .3s, transform .5s var(--ease-expo); }
.lb__stage img.is-loading { opacity: 0; transform: translateY(16px); }
.lb__half { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; }
.lb__half--prev { left: 0; } .lb__half--next { right: 0; }
.lb__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 12px var(--pad) 4vh; min-height: 64px; }
.lb__caption { font-size: 14px; color: var(--muted); max-width: 70ch; }
.lb__nav { display: flex; gap: 18px; }

/* ============ 13. Cookie ============ */
.cookie-bar { position: fixed; left: var(--pad); bottom: 3vh; z-index: 1900; max-width: min(440px, 90vw); background: var(--y); color: #000; padding: 18px 20px; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 40px rgba(0, 0, 0, .12); transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease-expo), opacity .4s; }
.cookie-bar.is-visible { transform: none; opacity: 1; }
.cookie-bar a { text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-bar button { padding: 8px 16px; border: 1px solid #000; }
.cookie-bar button.is-primary { background: #000; color: var(--y); }

/* ============ 14. Splash ============ */
.page-splash { overflow: hidden; }
.splash { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; color: var(--fg); }
.splash__enter { display: flex; flex-direction: column; align-items: center; gap: 6vh; padding: 6vh 4vw; }
.splash__logo { display: block; width: min(72vw, 430px); color: currentColor; }
.splash__logo svg { width: 100%; height: auto; overflow: visible; }
.splash__hint { font-size: 15px; color: currentColor; opacity: 0; transition: opacity .3s; }
/* con il mouse (o la tastiera) sul logo compare l'invito a entrare; il fondo resta quello del tema */
.splash__enter:hover .splash__hint, .splash__enter:focus-visible .splash__hint { opacity: 1; }
.hint--touch { display: none; }
@media (hover: none) {
  .splash__hint { opacity: .55; }
  .hint--pointer { display: none; }
  .hint--touch { display: inline; }
}
.splash__noscript { position: fixed; bottom: 5vh; left: 0; right: 0; text-align: center; }

/* ============ 15. Blocchi delle pagine del sito ============ */
/* gallerie a immagine singola, a nastro e a griglia (Studio → Spazio e pagine aggiunte) */
.carousel--single, .carousel--marquee, .carousel--grid { margin-top: clamp(24px, 6vh, 70px); }
.b .carousel, .b .slider, .b .logos, .b .team { margin-top: 0; }
.carousel__stage { position: relative; width: 100%; aspect-ratio: var(--ar, 3/2); max-height: 64vh; max-height: 64svh; overflow: hidden; background: rgba(127, 127, 127, .1); }
.carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--speed, .9s) ease; }
.carousel__slide.is-active { opacity: 1; z-index: 1; }
.carousel__slide picture, .carousel__slide img { width: 100%; height: 100%; }
.carousel__slide img { object-fit: cover; }
.carousel--slide .carousel__slide { opacity: 1; transform: translate3d(100%, 0, 0); transition: transform var(--speed, .9s) var(--ease-io); }
.carousel--slide .carousel__slide.is-active { transform: none; }
.carousel--slide .carousel__slide.is-before { transform: translate3d(-100%, 0, 0); }
.carousel--slide.is-back .carousel__slide:not(.is-active):not(.is-before) { transition: none; }
.carousel--wipe .carousel__slide { transition: none; }
.carousel--wipe .carousel__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--y); transform: scaleY(0); transform-origin: 50% 100%; pointer-events: none; }
.carousel--wipe .carousel__stage.is-cover::after { transform: scaleY(1); transition: transform calc(var(--speed, .9s) * .5) var(--ease-io); }
.carousel--wipe .carousel__stage.is-uncover::after { transform: scaleY(0); transform-origin: 50% 0; transition: transform calc(var(--speed, .9s) * .5) var(--ease-io); }
.carousel__bar { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 14px; }
.carousel__bar .clip { display: inline-block; }
.carousel__count { font-size: 14px; font-variant-numeric: tabular-nums; }
.carousel__progress { position: relative; flex: 0 0 clamp(60px, 10vw, 140px); height: 2px; background: var(--line); overflow: hidden; }
.carousel__progress span { position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; }
.carousel--single:not([data-autoplay="1"]) .carousel__progress { display: none; }
.carousel--marquee { overflow: hidden; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
.carousel--marquee:not(.is-auto) { overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad); }
.carousel--marquee::-webkit-scrollbar { display: none; }
.marquee__track { display: flex; width: max-content; }
.carousel--marquee.is-auto .marquee__track { animation: lz-marquee var(--dur, 40s) linear infinite; }
.carousel--marquee.is-auto:hover .marquee__track, .carousel--marquee.is-paused .marquee__track, .carousel--marquee.is-stopped .marquee__track { animation-play-state: paused; }
.carousel--marquee.is-auto:has(:focus-visible) .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 20px; padding-right: 20px; }
.marquee__slide { flex: none; height: clamp(200px, 44vh, 480px); aspect-ratio: var(--ar, 3/2); overflow: hidden; background: rgba(127, 127, 127, .1); }
.marquee__slide picture, .marquee__slide img { width: 100%; height: 100%; }
.marquee__slide img { object-fit: cover; }
@keyframes lz-marquee { to { transform: translate3d(-50%, 0, 0); } }
.carousel--grid { display: grid; grid-template-columns: repeat(var(--per, 3), minmax(0, 1fr)); gap: 20px; }
.carousel__cell picture, .carousel__cell img { width: 100%; }
.carousel__cell img { height: auto; aspect-ratio: var(--ar, 3/2); object-fit: cover; }
/* link grande con freccia (come «Progetti» nella home) */
.b-link { display: flex; }
.b-link--right { justify-content: flex-end; }
.b-link .latest__link { width: auto; min-width: min(100%, 35vw); max-width: 100%; }
@media (min-width: 769px) { .b-link .latest__link > .clip:first-child { white-space: nowrap; } }
/* pagine aggiunte */
.page-head--page { padding-bottom: clamp(36px, 8vh, 100px); }
.p-body--page > :first-child { margin-top: 0; }
.b-contacts .contacts { justify-content: start; }

/* progetti per tipologia e domande frequenti (pagine aggiunte) */
.b-projects { margin-top: var(--space-block); }
.b-projects__label { padding: 0 var(--pad); }
.b-faq__list { max-width: 52em; margin-left: 33.333%; }
.b-faq .b-label { margin-left: 33.333%; }
.b-faq__item { border-top: 1px solid var(--line); }
.b-faq__item:last-child { border-bottom: 1px solid var(--line); }
.b-faq__q { font-size: clamp(19px, 1.55vw, 24px); line-height: 1.2; letter-spacing: -.005em; }

/* voci richiudibili (colonne di punti, domande frequenti, testo di approfondimento) */
.fold__head { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.fold__head::-webkit-details-marker { display: none; }
.fold__icon { position: relative; flex: none; width: 14px; height: 14px; }
.fold__icon::before, .fold__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .6s var(--ease-expo); }
.fold__icon::after { transform: rotate(90deg); }
/* aperta: la barra verticale ruota e si sovrappone a quella orizzontale, il “+” diventa “−” (stessa lunghezza) */
.fold[open]:not(.is-closing) > .fold__head .fold__icon::after { transform: rotate(0deg); }
.fold__body { overflow: hidden; }
html.has-cursor summary { cursor: none; }
.b-points__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6vw; }
.b-points--1 .b-points__cols { grid-template-columns: minmax(0, 1fr); max-width: 60em; }
.b-points--3 .b-points__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 4vw; }
.b-points__title { font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -.005em; margin-bottom: 20px; }
.b-points__it { border-top: 1px solid var(--line); }
.b-points__it:last-child { border-bottom: 1px solid var(--line); }
.b-points__it > .fold__head { padding: 15px 0; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.25; }
.b-points__d { padding: 0 0 20px; color: var(--muted); max-width: 36em; font-size: 15px; line-height: 1.5; }
.b-faq__item > .fold__head { padding: 22px 0; }
.b-faq__item .b-faq__q { margin: 0; }
.b-faq__a { padding: 0 0 26px; max-width: 40em; }
.about-note { margin-top: clamp(28px, 5vh, 56px); max-width: 46em; font-size: 13px; color: var(--muted); }
.about-note > .about-note__head { display: inline-flex; justify-content: flex-start; gap: 10px; padding: 4px 0; }
.about-note .fold__icon { width: 9px; height: 9px; }
.about-note__body { padding-top: 10px; font-size: 13px; line-height: 1.55; }
.about-note__body ul li { padding-left: 0; }
.about-note__body ul li::before { content: none; }
.about-note__body ul li + li { margin-top: .35em; }
.screen--home .about-note { max-width: min(46em, calc(65% - 80px)); }
@media (max-width: 1100px) { .screen--home .about-note { max-width: calc(54% - 64px); } }
@media (max-width: 768px) { .screen--home .about-note { max-width: none; } }
.about-wrap { padding: 0 var(--pad); }
.about-wrap .about-note { margin-top: var(--space-block); }
/* sfondo della home (immagine o video a tutto schermo) */
.home-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.home-bg::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--dim, .25); }
.home-bg picture, .home-bg img, .home-bg video { display: block; width: 100%; height: 100%; }
.home-bg img, .home-bg video { object-fit: cover; }
html.js .home-bg img, html.js .home-bg video { opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 3s var(--ease-expo); }
html.js .home-bg.is-on img, html.js .home-bg.is-on video { opacity: 1; transform: none; }
.screen--home.has-bg .latest__link { border-bottom-color: currentColor; }

/* pagina non trovata */
.screen--404 .nf { display: flex; flex-direction: column; gap: clamp(16px, 3vh, 32px); margin-top: clamp(12px, 4vh, 40px); }
.nf__code { font-size: clamp(88px, 15vw, 240px); line-height: .86; letter-spacing: -.04em; }
.nf__code .clip { display: inline-block; padding-bottom: .04em; }
.nf__dash { display: block; width: clamp(80px, 8vw, 115px); height: clamp(7px, .75vw, 10.81px); background: var(--y); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease-expo) .35s; }
html.no-js .nf__dash, .nf__code.is-in + .nf__dash { transform: none; }
.screen--404 .latest { width: min(40%, 560px); margin: clamp(40px, 9vh, 110px) 0 0 auto; display: flex; flex-direction: column; gap: 22px; }
.screen--404 .latest__link { font-size: var(--fs-xl); }
.screen--404 .latest__link--small { font-size: var(--fs-lead); }
/* ============ 16. Tablet ============ */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-auto-flow: row; grid-template-columns: repeat(2, auto); gap: 14px 32px; }
  .screen--home .latest { width: 46%; }
  .logos { grid-template-columns: repeat(5, 1fr); }
}

/* ============ 17. Mobile ============ */
@media (max-width: 768px) {
  :root { --bar-top: 20px; --space-block: 72px; }
  .topbar { left: var(--pad); right: var(--pad); justify-content: space-between; font-size: 15px; }
  .topbar .lang-switch { order: 2; }
  .topbar > .clip:first-of-type { order: 1; }
  .topbar > .clip:last-of-type { order: 3; }
  .lines--desk { display: none !important; }
  .lines--mob { display: block !important; }
  .screen { padding-top: 92px; }
  .screen .lead, .page-head .lead { width: 100%; }
  .lead { font-size: 15.5px; line-height: 1.3; }
  .lead--xl { font-size: 19px; line-height: 1.25; }
  .mobile-title { display: block; order: -1; font-size: 32px; line-height: 1.1; margin-bottom: 16px; }
  .page-head .mobile-title { margin-top: 0; }
  .foot-label { display: none; }
  .screen--home .latest { position: static; width: 60%; margin: 40px 0 0 auto; }
  .latest__link { font-size: 26px; }
  .latest__peek { display: none; }
  .screen__foot { flex-direction: column-reverse; align-items: flex-start; padding-bottom: 32px; gap: 40px; }
  .contacts { grid-auto-flow: row; grid-template-columns: 1fr; gap: 18px; font-size: 16px; justify-content: start; }
  .lz-logo--screen, .lz-logo--foot { height: 34px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
  .site-foot--label .site-foot__row { min-height: 0; }
  .team { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .slider { margin-top: 20px; }
  .slider__nav { display: none; }
  .slider__track { flex-direction: column; gap: 14px; overflow: visible; }
  .slider__slide img { max-height: none; }
  .page-head { padding-top: 92px; min-height: 0; padding-bottom: 28px; display: flex; flex-direction: column; }
  .filters { gap: 4px 18px; font-size: 15px; margin-bottom: 26px; }
  .tiles { grid-template-columns: 1fr; gap: 42px; }
  .site-foot__row { flex-direction: column-reverse; align-items: flex-start; }
  .p-head { padding-top: 80px; }
  .p-head__title { margin-top: 13vh; font-size: clamp(40px, 12.5vw, 64px); }
  .p-head__row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .p-head__meta { font-size: 17px; }
  .p-head__tagline { text-align: left; font-size: 15px; }
  .p-hero__frame { height: auto; aspect-ratio: 4 / 5; }
  .p-hero--tall .p-hero__frame, .p-hero--medium .p-hero__frame { height: auto; }
  .p-intro, .b-it, .b-it--reverse { grid-template-columns: 1fr; gap: 28px; }
  .b-it--reverse .b-it__media { order: 0; }
  .p-intro .facts { position: static; }
  .b-text--body .b-text__body, .b-text--body .b-label, .b-text--intro .b-text__body { margin-left: 0; }
  .b-text--intro .b-text__body { font-size: 15.5px; line-height: 1.4; }
  .b-faq__list, .b-faq .b-label { margin-left: 0; }
  .b-points__cols, .b-points--3 .b-points__cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .b-text--columns .b-text__body { columns: 1; }
  .b-image--medium .fig, .b-image--small .fig { width: 100%; }
  .b-image--wide { padding: 0; }
  .b-image--wide figcaption { padding: 0 var(--pad); }
  .b-grid--land .b-grid__items { grid-template-columns: 1fr !important; }
  .b-grid--3 .b-grid__items { grid-template-columns: 1fr 1fr; }
  .b-grid--3 .fig:nth-child(3) { grid-column: 1 / -1; }
  .b-grid--offset .fig:nth-child(2) { margin-top: 0 !important; }
  .b-gallery__slide { width: 84vw; }
  .b-gallery__track { gap: 12px; }
  .b-gallery__head .slider__btn { display: none; }
  .p-next { align-items: stretch; }
  .p-next__media { display: none; }
  .p-next__title { font-size: 30px; }
  .lb__stage img { max-height: calc(100svh - 150px); }
  .lb__half { display: none; }
  .cookie-bar { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .carousel__stage { max-height: none; }
  .carousel--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .carousel--grid[style*="--per:1"] { grid-template-columns: 1fr; }
  .marquee__slide { height: 52vw; }
  .b-link .latest__link { width: 100%; }
  .screen--404 .latest { width: 100%; margin: 48px 0 0; }
  .nf__code { font-size: 30vw; }
}
@media (max-width: 480px) {
  .lead--xl { font-size: 18px; }
  .tile__title { font-size: 20px; }
}

/* ============ 18. Movimento ridotto ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
  html.js [data-reveal-group] .reveal-up, html.js [data-stagger] > * { transform: none; opacity: 1; }
  html.js .reveal-wipe { clip-path: none; }
  .carousel--marquee.is-auto .marquee__track { animation: none; }
  .carousel--marquee.is-auto { overflow-x: auto; }
  .carousel__pause { display: none; }
  html.js .home-bg img, html.js .home-bg video { opacity: 1; transform: none; }
  html.js .lz-logo .lz-l path, html.js .lz-logo .lz-z, html.js .lz-logo .lz-r, html.js .lz-logo .lz-arch, html.js .lz-logo .lz-dash { transform: none; }
}

/* ============ 19. Studio (Spazio, Studio e Team in una pagina) ============ */
/* titoli di sezione (Spazio, Studio, Domande frequenti, Team): misura e colore dell'etichetta in basso a destra, allineati a sinistra */
.p-body--studio .b-label { margin: 0 0 clamp(22px, 3vh, 34px); font-size: clamp(22px, 2.23vw, 32px); line-height: 1.05; letter-spacing: 0; text-transform: none; color: var(--fg); }
.p-body--studio .b-label::before { content: none; }
.p-body--studio .b-faq .b-label { margin-left: 0; }
@media (max-width: 768px) { .p-body--studio .b-label { font-size: 26px; } }
/* «Hanno collaborato con noi»: stessa riga piccola del testo di approfondimento, nomi su più colonne */
.about-wrap--studio .alumni { margin-top: clamp(32px, 5vh, 56px); }
.about-wrap--studio .alumni + .about-note { margin-top: 18px; }
.alumni__list { padding-top: 10px; columns: 4 11em; column-gap: 32px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.alumni__list li { break-inside: avoid; }

/* ============ 20. Stampa ============ */
/* Sulla carta: tema chiaro, tutto il contenuto presente (anche ciò che a schermo entra scorrendo; le voci
   richiudibili le apre site.js un attimo prima), nessun comando. Il foglio è stretto quanto un telefono,
   quindi vale l'impaginato mobile: qui si rimettono in griglia solo gli elenchi di immagini. */
@page { margin: 16mm 14mm; }
@media print {
  :root, html.theme-dark {
    --bg: #fff;
    --fg: #000;
    --muted: rgba(0, 0, 0, .62);
    --line: rgba(0, 0, 0, .22);
    --line-strong: #000;
    --pad: 0px;
    --space-block: 44px;
    color-scheme: light;
  }
  *, *::before, *::after { transition: none !important; animation: none !important; }

  /* fuori dalla carta: sfondi, comandi, navigazione */
  body::before, .home-bg, .topbar, .menu, .cursor, .cursor2, .wipe, .preloader, .skip-link, .cookie-bar, .preview-flag, .lb,
  .filters, .backlink, .slider__nav, .carousel__bar, .b-gallery__nav, .fold__icon, .b-video, .p-next, [data-cookie-prefs] { display: none !important; }

  /* tutto ciò che a schermo entra con un'animazione è già al suo posto */
  main { opacity: 1 !important; }
  html.js [data-reveal-group] .reveal-up, html.js [data-stagger] > *, html.js .foot-label span, .nf__dash,
  html.js .lz-logo .lz-l path, html.js .lz-logo .lz-z, html.js .lz-logo .lz-r, html.js .lz-logo .lz-arch, html.js .reveal-wipe picture img { opacity: 1 !important; transform: none !important; }
  html.js .lz-logo .lz-dash { transform: scaleX(1) !important; }
  html.js .reveal-wipe { clip-path: none !important; }
  html.js .p-hero .reveal-wipe::after { content: none; }
  html.theme-dark .logos__item img { filter: none; }
  html.theme-dark .rich strong { color: inherit; }

  /* niente altezze prese dallo schermo né spazio lasciato alla barra in alto */
  body, .screen { min-height: 0; }
  .screen, .page-head, .p-head { padding-top: 0; }
  .p-head__title { margin-top: 0; }
  .p-head__kicker { gap: 0; }
  .p-hero__frame, .p-hero--tall .p-hero__frame, .p-hero--medium .p-hero__frame { height: auto; aspect-ratio: 3 / 2; }
  .carousel__stage { max-height: none; }

  /* elenchi di immagini: in griglia, non in colonna né in scorrimento */
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(5, 1fr); }
  .slider__track, .b-gallery__track, .marquee__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; padding: 0; }
  .b-gallery__slide { width: auto; }
  .carousel--marquee, .carousel--marquee:not(.is-auto) { overflow: visible; margin: 0; padding: 0; }
  .marquee__track { display: block; width: auto; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__slide { height: auto; }

  /* interruzioni di pagina: mai dentro una foto o una voce, mai subito dopo un titolo */
  figure, .tile, .team__item, .logos__item, .slider__slide, .b-gallery__slide, .marquee__slide,
  .b-points__it, .b-faq__item, .facts__row, .site-foot, .screen__foot { break-inside: avoid; }
  .mobile-title, .b-label, .b-points__title, .fold__head, .p-head__title { break-after: avoid; }
}
