/* Nicola Di Froscia — sito v2 (19/10/2026)
   Pietra chiara e nero lavico che si alternano, Archivo (largo, da incisione) + Instrument Serif corsivo per gli accenti. */

:root {
  --stone: #EAE6E0;
  --stone-2: #E1DBD2;
  --stone-3: #D4CCC0;
  --ink: #151311;
  --ink-2: #5D574F;
  --night: #0B0A09;
  --bone: #ECE7E0;
  --bone-2: rgba(236, 231, 224, .68);
  --bone-3: rgba(236, 231, 224, .36);
  --gold: #B08F5A;
  --line-l: rgba(21, 19, 17, .14);
  --line-d: rgba(236, 231, 224, .16);
  --f-sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --z-rail: 40; --z-menu: 45; --z-nav: 50; --z-tag: 60; --z-viewer: 80; --z-veil: 90; --z-skip: 100;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--stone); }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--f-sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, canvas, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, blockquote, figure { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.08em; }
strong { font-weight: 560; }
::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* lingua: si vede solo quella attiva */
[data-lang="it"] [lang="en"], [data-lang="en"] [lang="it"] { display: none !important; }

/* grana da carta fotografica su tutto il sito: i fondi non sono mai piatti */
body::after { content: ''; position: fixed; inset: 0; z-index: 35; pointer-events: none; opacity: .045; background: url(../img/grana.png) 0 0 / 192px 192px repeat; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: var(--z-skip); background: var(--ink); color: var(--bone); padding: 10px 14px; border-radius: 6px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .02em; color: var(--ink-2); }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .55; }
[data-tone="dark"] .kicker { color: var(--bone-2); }

.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 520; text-decoration: none; padding: 6px 0; }
.link-arrow::after { content: '→'; transition: transform .45s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(6px); }

/* comparse allo scorrimento (nascoste solo quando lo script è partito) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); }

/* ---------- nav ---------- */
/* il colore segue la sezione che sta sotto (data-tone, lo mette lo script); fuori dall'intro c'è una barra smerigliata:
   così i link non finiscono mai sopra i titoli delle sezioni */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
  display: flex; align-items: center; gap: 36px; padding-inline: var(--pad);
  color: var(--ink); pointer-events: none;
  transition: transform .55s var(--ease-out), color .35s ease, opacity .5s ease;
}
.nav[data-tone="dark"], .nav.is-menu { color: var(--bone); }
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s ease, background-color .35s ease;
  background: rgba(234, 230, 224, .86); border-bottom: 1px solid var(--line-l);
  -webkit-backdrop-filter: blur(14px) saturate(1.05); backdrop-filter: blur(14px) saturate(1.05);
}
.nav[data-tone="dark"]::before { background: rgba(11, 10, 9, .8); border-bottom-color: var(--line-d); }
.nav.is-bar::before { opacity: 1; }
.nav.is-menu::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-110%); }
.nav > * { pointer-events: auto; }
.nav__brand {                                              /* il logo di Nicola sempre visibile (prima compariva solo dopo l'apertura) */
  margin-right: auto; display: block; padding: 6px 0;
}
.nav__brand svg { display: block; height: 38px; width: auto; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { position: relative; font-size: 14px; text-decoration: none; padding: 8px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__lang { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.nav__lang span { opacity: .4; }
.nav__lang button { padding: 8px 3px; opacity: .45; transition: opacity .3s; }
.nav__lang button:hover, .nav__lang button[aria-pressed="true"] { opacity: 1; }
.nav__menu { display: none; font-size: 15px; padding: 10px 0 10px 12px; }
.nav__menu-close { display: none; }
.nav.is-menu .nav__menu-open { display: none; }
.nav.is-menu .nav__menu-close { display: inline; }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--night); color: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 4vh) var(--pad) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; gap: 2px; }
.menu__links a {
  font-size: clamp(26px, min(12.5vw, 8.6svh), 72px); font-weight: 520; font-variation-settings: 'wdth' 116;   /* telefono in orizzontale: ci stanno tutte */
  letter-spacing: -.035em; line-height: 1.12; text-decoration: none;
}
.menu__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: 14px; color: var(--bone-2); }
.menu__lang { display: flex; gap: 18px; }
.menu__lang button { padding: 10px 0; color: var(--bone-3); }
.menu__lang button[aria-pressed="true"] { color: var(--bone); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- binario sezioni ---------- */
.rail {
  position: fixed; right: max(16px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%);
  z-index: var(--z-rail); display: flex; flex-direction: column; align-items: flex-end; gap: 13px;
  color: #fff; mix-blend-mode: difference; transition: opacity .4s;
}
.rail.is-hidden { opacity: 0; pointer-events: none; }
.rail a {
  position: relative; display: block; width: 6px; height: 6px; border-radius: 6px;
  border: 1px solid currentColor; opacity: .5; transition: height .45s var(--ease-out), opacity .3s;
}
.rail a::after { content: ''; position: absolute; inset: -9px -12px; }
.rail a::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: currentColor;
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.rail a.is-active { opacity: 1; }
.rail a.is-active:not(.is-pinned)::before { transform: none; }
.rail a.is-active.is-pinned { height: 30px; }
.rail a span {
  position: absolute; right: 18px; top: 50%; transform: translate(6px, -50%); white-space: nowrap;
  font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* ---------- etichetta che segue il puntatore ---------- */
.tag { position: fixed; left: 0; top: 0; z-index: var(--z-tag); pointer-events: none; }
.tag__text {
  display: block; white-space: nowrap; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bone); font-size: 13px; font-weight: 500; line-height: 1;
  transform: scale(0); transition: transform .35s var(--ease-out);
}
.tag.is-on .tag__text { transform: scale(1); }
.tag.is-dark .tag__text { background: var(--bone); color: var(--ink); }

html.is-locked { overflow: hidden; }
.veil { position: fixed; inset: 0; z-index: var(--z-veil); background: var(--veil, #0B0A09); opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.veil.on { opacity: 1; pointer-events: auto; }

/* =========================================================
   1. INTRO: Nick → la firma su nero → dentro la firma → il marmo → il metallo
   (altezza in schermate: la calcola lo script dalle fasi; questi sono i valori di partenza)
   ========================================================= */
.intro { position: relative; height: calc(var(--intro-vh, 7.35) * 100vh); height: calc(var(--intro-vh, 7.35) * 100svh); background: var(--night); }
.intro__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--stone); }
.hero__light {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 54% at 50% 42%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 72%),
    radial-gradient(135% 115% at 50% 38%, rgba(70, 58, 44, 0) 52%, rgba(70, 58, 44, .16) 100%);
}
.hero__title { position: absolute; inset: 0; z-index: 1; pointer-events: none; font-weight: 400; }
/* la firma DFdesignlab, gigante, dietro la testa: lo script la porta al centro, bianca su nero */
.hero__mark { position: absolute; left: 0; right: 0; top: 7svh; display: flex; justify-content: center; color: var(--stone-3); }
.hero__mark-inner { display: block; width: min(82vw, 152svh); transform-origin: 0 0; will-change: transform; }
.hero__mark svg { display: block; width: 100%; height: auto; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__field--far { z-index: 2; }
.hero__field--near { z-index: 4; }
/* la larghezza la dà la foto (attributi width/height): cambiando foto non serve toccare il CSS */
.hero__person { position: absolute; left: 50%; bottom: 0; z-index: 3; transform: translateX(-50%); height: min(90svh, 104vw); }
.hero__nick { display: block; height: 100%; width: auto; max-width: none; transform-origin: 50% 100%; animation: nickIn 1.8s var(--ease-out) backwards; }
/* l'immagine dell'ombra ha un margine (15% ai lati, 10% sopra): si allarga di conseguenza; poi 8% a destra e 2% in basso */
/* velo di pietra in basso: il fondo della foto sfuma nella pagina e il nome si legge anche sopra il pullover nero */
.intro__stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 4; pointer-events: none; opacity: var(--foot, 1);
  background: linear-gradient(to top, rgba(234, 230, 224, .96) 0%, rgba(234, 230, 224, .78) 38%, rgba(234, 230, 224, 0) 100%); }
.hero__shadow { position: absolute; z-index: -1; left: -7%; top: -8%; width: 130%; height: 110%; max-width: none; opacity: .22; transform: scale(1.04); transform-origin: 50% 100%; pointer-events: none; }
@keyframes nickIn { from { transform: scale(1.035); } to { transform: none; } }
.hero__foot {
  position: absolute; z-index: 5; left: var(--pad); right: var(--pad); bottom: max(30px, env(safe-area-inset-bottom));
  bottom: calc(100lvh - 100svh + max(30px, env(safe-area-inset-bottom)));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; pointer-events: none;
}
.hero__id { max-width: 34ch; }
.hero__lab { font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 1.35vw, 22px); line-height: 1.2; color: var(--ink-2); }
.hero__name { margin: 2px 0 10px; font-weight: 600; font-variation-settings: 'wdth' 112; font-size: clamp(24px, 2.2vw, 36px); letter-spacing: -.025em; line-height: 1.02; color: var(--ink); }
.hero__claim { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.5; color: var(--ink-2); }
/* invito a scorrere: al centro in basso, una rotellina che scende e «Scorri giù» che respira */
.hero__cue {
  position: absolute; left: 0; right: 0; bottom: -6px; margin: 0 auto; width: max-content; padding: 6px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 520; color: var(--ink);
  pointer-events: auto; cursor: pointer;
}
.hero__cue:hover i { transform: translateY(2px); }
.hero__cue i { position: relative; display: block; width: 26px; height: 42px; border: 1.6px solid currentColor; border-radius: 14px; transition: transform .3s; }
.hero__cue i::before {
  content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: currentColor; animation: wheel 1.9s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 75%, 100% { transform: translateY(13px); opacity: 0; } }
.hero__cue span { animation: nudge 1.9s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.js .hero__id, .js .hero__cue { animation: fadeUp 1.2s var(--ease-out) .5s backwards; }
.js .hero__cue { animation-delay: .9s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* la scena su canvas (la firma, il marmo, il metallo) e le due frasi sopra */
.intro__logo { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.intro__words { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.intro__say {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad); opacity: 0; visibility: hidden;
}
.intro__say > * { max-width: min(46vw, 780px); }
.intro__say--marmo { color: var(--ink); }
.intro__say--metallo { color: var(--bone); }
.intro__quote { font-weight: 500; font-variation-settings: 'wdth' 108; font-size: clamp(34px, 4.1vw, 68px); line-height: 1.04; letter-spacing: -.028em; text-wrap: balance; }
.intro__quote .w { opacity: .14; }
.intro__coda { margin-top: 30px; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4; color: var(--bone-2); opacity: 0; }
.intro__coda em { color: var(--bone); }
.intro__anchor { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }

/* =========================================================
   1b. IL FILM (modalità cinema): scendendo il riquadro cresce fino a tutto schermo, con le bande nere; il menu si spegne
   ========================================================= */
.cinema { position: relative; height: 320vh; height: 320svh; background: var(--night); color: var(--bone); }
.cinema__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.cinema__head {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 5svh); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  opacity: calc(1 - var(--cp, 0) * 2.4); transform: translateY(calc(var(--cp, 0) * -28px));
}
.cinema__title { font-weight: 520; font-variation-settings: 'wdth' 114; font-size: clamp(28px, 3vw, 46px); letter-spacing: -.03em; line-height: 1.05; }
.cinema__title em { color: var(--bone-2); }
.cinema__frame {
  position: relative; width: min(100vw, 177.78svh); aspect-ratio: 16 / 9; background: #000; overflow: hidden;
  transform: translateY(calc((1 - var(--cp, 0)) * 7svh)) scale(var(--cs, .62)); border-radius: calc(14px * (1 - var(--cp, 0)));
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .85); will-change: transform;
}
.cinema__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cinema__sound {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px; background: rgba(236, 231, 224, .92); color: var(--ink); font-size: 14px; font-weight: 520;
  opacity: var(--cp, 0); transition: background .3s;
}
.cinema__sound::before { content: ''; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.cinema__sound:hover { background: #fff; }
.cinema__sound[hidden] { display: none; }
.is-cinema .nav, .is-cinema .rail { opacity: 0; pointer-events: none; }
@media (orientation: portrait) {                           /* telefono e tablet in verticale: il film verticale */
  .cinema__frame { width: min(100vw, 56.25svh); aspect-ratio: 9 / 16; }
}

/* =========================================================
   2. CHI SONO
   ========================================================= */
.about { position: relative; background: radial-gradient(90% 60% at 18% 0%, #1A1712 0%, var(--night) 70%); color: var(--bone); padding: clamp(110px, 15vw, 210px) 0 clamp(110px, 13vw, 190px); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(56px, 7vw, 96px); }
.about__head { grid-column: 1 / span 8; }
.about__title {
  margin-top: 24px; font-weight: 500; font-variation-settings: 'wdth' 114;
  font-size: clamp(42px, 5.6vw, 92px); line-height: .98; letter-spacing: -.035em; text-wrap: balance;
}
.about__title em { color: var(--bone-2); }
/* anno e testo in un blocco loro: l'anno resta fermo solo finché c'è il testo, poi se ne va (non copre i dati sotto) */
.about__body { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.about__year { grid-column: 1 / span 6; align-self: start; position: sticky; top: calc(var(--nav-h) + 8vh); }
.year {
  display: inline-block; white-space: nowrap;
  font-weight: 800; font-variation-settings: 'wdth' 125; font-size: clamp(110px, 15vw, 250px);
  line-height: .8; letter-spacing: -.045em; padding-bottom: .04em;
  background: url(../img/marmo.jpg) 50% var(--my, 50%) / 140% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__year-cap { margin-top: 22px; max-width: 30ch; font-size: 15px; color: var(--bone-2); }
/* Nick chino sul «1965», come se lo stesse lavorando (foto Homo Faber, ingrandita e scontornata) */
.about__year { padding-top: clamp(60px, 9vw, 150px); }
.about__worker { position: absolute; z-index: 2; left: 44%; top: 0; width: clamp(150px, 18vw, 270px); height: auto; filter: contrast(1.06) brightness(.98); pointer-events: none; }
.about__text { grid-column: 8 / span 5; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.75; color: var(--bone-2); }
.about__text p + p { margin-top: 1.15em; }
.about__text strong { color: var(--bone); font-weight: 520; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; margin: 12px 0 0; padding-top: 40px; border-top: 1px solid var(--line-d); }
.facts dt { margin-bottom: 6px; font-size: 13px; color: var(--bone-3); }
.facts dd { margin: 0; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.35; color: var(--bone); }

/* =========================================================
   3. OPERE
   ========================================================= */
.works { position: relative; background: radial-gradient(120% 75% at 50% 0%, #F3F0EB 0%, var(--stone) 62%); }
.works__intro .kicker { margin-bottom: 22px; }
.works__title {
  font-weight: 540; font-variation-settings: 'wdth' 118; font-size: clamp(50px, 6.2vw, 104px);
  line-height: .92; letter-spacing: -.04em;
}
.works__title > span { display: block; margin-top: .3em; font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: .42em; color: var(--ink-2); }
.works__lead { margin-top: 30px; max-width: 44ch; font-size: 16px; line-height: 1.72; color: var(--ink-2); }
.works__row { display: contents; }                         /* sul computer le opere stanno direttamente nella fila */
.work { display: flex; flex-direction: column; align-items: center; text-align: center; }
.work__open { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; cursor: pointer; }
.work__open:focus-visible { outline-offset: -2px; }
.work__float { position: relative; z-index: 1; width: 60%; animation: levitate 6.4s ease-in-out infinite; }
.work__float--wide { width: 94%; }
.work__float--tall { width: 56%; }
.work__float img { width: 100%; height: auto; will-change: transform; }
.work[data-work="cantus"] .work__shadow { bottom: 15%; width: 80%; }
.work[data-work="materico"] .work__shadow { bottom: 29%; width: 86%; }
.work__kind { margin-top: 16px; font-size: 12.5px; letter-spacing: .02em; color: var(--ink-2); }
.work__shadow {
  position: absolute; left: 50%; bottom: 8%; width: 50%; height: 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52, 42, 30, .24), rgba(52, 42, 30, 0));
  transform: translateX(-50%); animation: levShadow 6.4s ease-in-out infinite;
}
.work:nth-of-type(2) .work__float, .work:nth-of-type(2) .work__shadow { animation-delay: -2.1s; }
.work:nth-of-type(3) .work__float, .work:nth-of-type(3) .work__shadow { animation-delay: -4.3s; }
@keyframes levitate { 0%, 100% { transform: translateY(-3%); } 50% { transform: translateY(2.5%); } }
@keyframes levShadow { 0%, 100% { transform: translateX(-50%) scale(.78); opacity: .6; } 50% { transform: translateX(-50%) scale(1); opacity: 1; } }
.work__name { margin-top: 6px; font-weight: 560; font-variation-settings: 'wdth' 112; font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -.02em; line-height: 1.1; }
.work__mat { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.works__end { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.works__end p { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -.01em; max-width: 18ch; margin-bottom: 18px; font-variation-settings: 'wdth' 108; }

@media (min-width: 761px) and (min-height: 521px), (min-width: 761px) and (pointer: fine) {
  .works { height: var(--works-h, 320vh); }
  .works__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
  .works__track { display: flex; align-items: center; gap: clamp(40px, 5vw, 110px); padding: 0 14vw 0 var(--pad); will-change: transform; }
  .works__intro { flex: 0 0 min(560px, 40vw); margin-right: 2vw; }
  .work { flex: 0 0 clamp(280px, min(29vw, 52svh), 470px); }
  .work:nth-of-type(2) { flex-basis: clamp(320px, min(36vw, 62svh), 580px); margin-top: 6vh; }
  .work:nth-of-type(3) { margin-top: -5vh; }
  .works__end { flex: 0 0 min(340px, 26vw); }
}

/* =========================================================
   4. DETTAGLI
   ========================================================= */
.moving { position: relative; height: 740vh; height: 740svh; background: #BEBEBC; }
.moving__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.moving__canvas { position: absolute; inset: 0; width: 100%; height: 100%; background: #BEBEBC url(../seq/rawedge-d/000.webp) 50% 50% / contain no-repeat; }
.moving__caps { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(44px, 10vh, 104px); width: min(640px, 82vw); height: 3.2em; font-size: clamp(32px, 4.1vw, 68px); }
.moving__cap {
  position: absolute; left: 0; bottom: 0; max-width: 10.5em; font-weight: 520; font-variation-settings: 'wdth' 112; font-size: 1em;
  line-height: 1.02; letter-spacing: -.035em; color: var(--ink); text-wrap: balance;
  opacity: 0; transform: translateY(-14px); transition: opacity .28s ease, transform .4s ease;
}
/* chi esce sparisce in fretta, chi entra aspetta: le due frasi non si vedono mai insieme */
.moving__cap.is-on { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) .3s, transform 1s var(--ease-out) .3s; }
.moving__names { position: absolute; z-index: 2; left: var(--pad); top: calc(var(--nav-h) + 14px); color: var(--ink); font-size: 14px; transition: color .5s; }
.moving__names.on-dark { color: var(--bone); }
.moving__names > span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transition: opacity .25s; }
.moving__names > span.is-on { opacity: 1; transition: opacity .6s .3s; }
.moving__bars { position: absolute; z-index: 2; right: calc(var(--pad) + 28px); bottom: clamp(52px, 10vh, 112px); display: flex; gap: 6px; }
.moving__bars i { display: block; width: 46px; height: 2px; background: rgba(21, 19, 17, .18); overflow: hidden; }
.moving__bars b { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* =========================================================
   4b. COME NASCE (Nick salda il telaio della Linea Chair)
   ========================================================= */
.making { position: relative; background: radial-gradient(110% 70% at 70% 0%, #F3F0EB 0%, var(--stone) 62%); padding: clamp(100px, 13vw, 180px) 0; }
.making__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.making__text { grid-column: 2 / span 5; }
.making__title { margin-top: 24px; font-weight: 520; font-variation-settings: 'wdth' 114; font-size: clamp(38px, 4.4vw, 74px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.making__title em { color: var(--ink-2); }
.making__lead { margin-top: 26px; max-width: 40ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.7; color: var(--ink-2); }
.making__link { margin-top: 22px; }
.making__media { grid-column: 8 / span 4; position: relative; margin: 0; }
.making__video {
  display: block; width: min(100%, calc(min(78svh, 800px) * 9 / 16)); height: auto; aspect-ratio: 9 / 16; margin: 0 auto; object-fit: cover; border-radius: 3px;
  background: #2A2622; box-shadow: 0 40px 80px -40px rgba(38, 30, 20, .55);
}
.making__media figcaption { width: min(100%, calc(min(78svh, 800px) * 9 / 16)); margin: 12px auto 0; font-size: 13px; color: var(--ink-2); }
.making__play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); white-space: nowrap; padding: 14px 22px; border-radius: 999px; background: rgba(234, 230, 224, .92); color: var(--ink); font-size: 14px; font-weight: 520; }
.making__play[hidden] { display: none; }

/* =========================================================
   5. LO STUDIO (DFdesignlab)
   ========================================================= */
.studio { position: relative; overflow: hidden; background: radial-gradient(90% 60% at 82% 0%, #1A1712 0%, var(--night) 70%); color: var(--bone); padding: clamp(110px, 14vw, 200px) 0 clamp(90px, 11vw, 160px); }
.studio__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(48px, 6vw, 88px); }
.studio__head { grid-column: 1 / span 7; }
.studio__title { margin-top: 28px; font-weight: 400; }
.studio__logo { display: block; width: min(520px, 86%); height: auto; color: var(--bone); }
.studio__sub { display: block; margin-top: 26px; font-weight: 500; font-variation-settings: 'wdth' 112; font-size: clamp(30px, 3.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.studio__sub em { color: var(--bone-2); }
.studio__text { grid-column: 8 / span 5; align-self: end; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.75; color: var(--bone-2); }
.studio__text p + p { margin-top: 1.1em; }
/* «Nel laboratorio»: foto vere di Nick al lavoro, in bianco e nero */
.lab { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
.lab__head { grid-column: 1 / -1; margin: 0 0 6px; font-weight: 400; }
.lab__f { margin: 0; min-height: 0; }
.lab__f img { display: block; width: 100%; height: auto; border-radius: 3px; }
.lab__f picture { display: contents; }
.lab__f figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--bone-2); }
@media (min-width: 761px) and (max-width: 1100px) { .lab__f figcaption { min-height: 3.2em; } }   /* tablet: le didascalie vanno su 2 righe, le foto restano allineate in basso */
.lab__f--banco { grid-column: 1; grid-row: 2 / span 2; }
.lab__f--piano { grid-column: 2; grid-row: 2; }
.lab__f--marmo { grid-column: 2; grid-row: 3; }
.lab__f--lastre { grid-column: 3; grid-row: 2 / span 2; }
.lab__f--banco, .lab__f--lastre { display: flex; flex-direction: column; }
.lab__f--banco img, .lab__f--lastre img { flex: 1 1 0; min-height: 0; height: 100%; object-fit: cover; }

/* i tre principi: righe numerate, non tre box uguali */
.pillars { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; counter-reset: pil; border-bottom: 1px solid var(--line-d); }
.pillars li {
  counter-increment: pil; display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr); column-gap: 24px; row-gap: 10px;
  padding: clamp(26px, 3vw, 40px) 0; border-top: 1px solid var(--line-d);
}
.pillars li::before { content: '0' counter(pil); font-size: 13px; color: var(--bone-3); padding-top: .55em; }
.pillars h3 { font-weight: 540; font-variation-settings: 'wdth' 114; font-size: clamp(24px, 2.3vw, 38px); line-height: 1.05; letter-spacing: -.025em; }
.pillars p { max-width: 50ch; line-height: 1.7; color: var(--bone-2); }
.pillars .link-arrow { grid-column: 3; justify-self: start; color: var(--bone); }
/* i progetti su misura: fila da trascinare */
.projects { position: relative; margin-top: clamp(64px, 8vw, 120px); }
.projects__track {
  display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 0 var(--pad) 6px; scroll-padding-inline: var(--pad); scrollbar-width: none; cursor: grab; will-change: transform;
}
.projects__track::-webkit-scrollbar { display: none; }
.projects__track.is-grabbing { cursor: grabbing; }
.project { flex: 0 0 auto; width: clamp(250px, 25vw, 400px); margin: 0; }
.project--wide { width: clamp(300px, 34vw, 540px); }
.project img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.project--wide img { aspect-ratio: 5 / 4; }
.project figcaption { margin-top: 12px; font-size: 14px; color: var(--bone-2); }
.projects__hint { padding: 20px var(--pad) 0; font-size: 13px; color: var(--bone-3); }
/* la barra sotto la striscia si riempie scorrendo di lato: si capisce che c'è altro a destra */
.projects__bar { height: 2px; margin: 18px var(--pad) 0; background: rgba(236, 231, 224, .14); border-radius: 2px; overflow: hidden; }
.projects__bar i { display: block; height: 100%; width: 100%; background: var(--bone-2); transform-origin: 0 50%; transform: scaleX(var(--pr, .2)); transition: transform .15s linear; }
.projects__hint-tel { display: none; }
@media (hover: none) { .projects__track { scroll-snap-type: x mandatory; cursor: auto; } .project { scroll-snap-align: start; } }

/* =========================================================
   6. COLLEZIONI
   ========================================================= */
.collections { position: relative; background: linear-gradient(180deg, #F2EFEA 0%, var(--stone) 38%); padding: clamp(110px, 14vw, 190px) 0 clamp(90px, 11vw, 150px); }
.collections__title { margin-top: 24px; font-weight: 520; font-variation-settings: 'wdth' 116; font-size: clamp(38px, 4.8vw, 80px); line-height: 1; letter-spacing: -.038em; max-width: 15ch; text-wrap: balance; }
.collections__title em { color: var(--ink-2); }
.collections__lead { margin-top: 22px; max-width: 52ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
/* intestazione: a destra la finestra con l'animazione di NaiveE (non a tutto schermo) */
.collections__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 88px); align-items: end; }
.pietre { margin: 0; }
.pietre__open { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: #DCDBD8; box-shadow: 0 34px 60px -40px rgba(38, 30, 20, .5); }
.pietre__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pietre__open:hover .pietre__video { transform: scale(1.025); }
.pietre figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pietre figcaption b { color: var(--ink); font-weight: 560; }
@media (max-width: 900px) { .collections__head { grid-template-columns: minmax(0, 1fr); } .pietre { margin-top: 10px; } }
/* filtri per famiglia */
.cat__filters { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(40px, 5vw, 64px) 0 clamp(26px, 3vw, 40px); }
.cat__filter {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border: 1px solid var(--line-l); border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1.2; transition: background .3s, color .3s, border-color .3s;
}
.cat__filter i { font-style: normal; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: color .3s; }
.cat__filter:hover { border-color: var(--ink); }
.cat__filter[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.cat__filter[aria-pressed="true"] i { color: var(--bone-2); }
.cat__filter:active { transform: translateY(1px); }
/* griglia: foto quadrate del negozio, nome, tipo e versioni */
.cat__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(30px, 3.2vw, 48px) clamp(14px, 1.6vw, 24px); }
.cat__item[hidden] { display: none; }
/* la foto sta NEL flusso e dà lei l'altezza al riquadro: su Safari 18 (iOS 18) un riquadro con aspect-ratio dentro un <button>
   flex, con la foto in position: absolute, restava alto 0 e il catalogo sembrava una lista di soli nomi (22/10) */
.cat__open { display: block; width: 100%; text-align: left; }
.cat__img { position: relative; display: block; overflow: hidden; border-radius: 3px; background: var(--stone-2); margin-bottom: 14px; }
.cat__img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity .5s ease; }
.cat__img .cat__img2 { position: absolute; inset: 0; height: 100%; opacity: 0; }
.cat__open:hover .cat__img img { transform: scale(1.035); }
.cat__open:hover .cat__img .cat__img2[src] { opacity: 1; }
.cat__name { display: block; font-weight: 540; font-variation-settings: 'wdth' 116; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.15; letter-spacing: -.02em; }
.cat__meta { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 1100px) { .cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =========================================================
   7. PERCORSO
   ========================================================= */
/* sfondo fermo e contenuto nella stessa cella di griglia: lo sfondo si stacca alla fine della sezione */
.journey { position: relative; display: grid; background: var(--night); color: var(--bone); }
.journey__bg, .journey__grid { grid-area: 1 / 1; }
.journey__bg { position: sticky; top: 0; align-self: start; height: 100vh; height: 100lvh; overflow: hidden; }
.journey__bg picture { display: contents; }
.journey__video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.journey__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 9, .9) 0%, rgba(11, 10, 9, .45) 38%, rgba(11, 10, 9, .55) 70%, rgba(11, 10, 9, .92) 100%); }
.journey__grid { position: relative; z-index: 1; display: grid; width: 100%; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-block: clamp(120px, 18vh, 200px) clamp(130px, 22vh, 240px); }
.journey__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--nav-h) + 9vh); }
.journey__title { margin-top: 22px; font-weight: 500; font-variation-settings: 'wdth' 112; font-size: clamp(36px, 4.1vw, 68px); line-height: 1.02; letter-spacing: -.033em; text-wrap: balance; }
.journey__title em { color: var(--bone-2); }
.journey__steps { grid-column: 7 / span 6; position: relative; display: flex; flex-direction: column; gap: clamp(90px, 20vh, 190px); padding: 8vh 0 14vh 46px; }
.journey__steps::before, .journey__steps::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; }
.journey__steps::before { background: var(--line-d); }
.journey__steps::after { background: var(--bone); transform-origin: top; transform: scaleY(var(--jp, 0)); }
.step { position: relative; opacity: .3; transition: opacity .7s var(--ease-out); }
.step.is-on { opacity: 1; }
.step::before {
  content: ''; position: absolute; left: -51px; top: .5em; width: 11px; height: 11px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--bone-3); transition: background .5s, border-color .5s, transform .5s var(--ease-out);
}
.step.is-on::before { background: var(--bone); border-color: var(--bone); transform: scale(1.15); }
.step h3 { font-weight: 560; font-variation-settings: 'wdth' 112; font-size: clamp(23px, 2vw, 31px); line-height: 1.1; letter-spacing: -.02em; }
.step p { margin-top: 14px; max-width: 46ch; line-height: 1.72; color: var(--bone-2); }

/* =========================================================
   8. IN MOSTRA + DOVE TROVARLO
   ========================================================= */
.press { position: relative; background: radial-gradient(100% 70% at 15% 0%, #E9E4DC 0%, var(--stone-2) 65%); padding: clamp(100px, 13vw, 180px) 0 clamp(90px, 11vw, 150px); }
.press__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 120px); align-items: start; }
.news__date { margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.news__title { margin-top: 8px; max-width: 15ch; font-weight: 540; font-variation-settings: 'wdth' 120; font-size: clamp(34px, 4vw, 66px); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
/* sotto l'articolo, la mostra: un blocco più piccolo */
.news__mostra { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid var(--line-l); }
.news__label { font-size: 13px; letter-spacing: .02em; color: var(--ink-2); }
.news__evento { margin-top: 8px; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.3; }
.news__evento b { font-weight: 560; }
.news__mostra .news__text { margin-top: 12px; }
.news__text { margin-top: 26px; max-width: 54ch; line-height: 1.72; color: var(--ink-2); }
.news__quote { margin: 36px 0 24px; padding-left: 24px; border-left: 1px solid var(--ink); }
.news__quote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.18; text-wrap: balance; }
.news__quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; color: var(--ink-2); }
.where__list { margin: 26px 0 0; display: grid; gap: 0; }
.where__list div { padding: 20px 0; border-top: 1px solid var(--line-l); }
.where__list dt { margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }
.where__list dd { margin: 0; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; }
.where__list a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(21, 19, 17, .35); transition: text-decoration-color .3s; }
.where__list a:hover { text-decoration-color: currentColor; }
.where__note { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line-l); font-size: 15px; color: var(--ink-2); max-width: 50ch; }

/* =========================================================
   9. CONTATTI + FOOTER
   ========================================================= */
.contact { position: relative; overflow: hidden; background: radial-gradient(100% 70% at 85% 0%, #F3F0EB 0%, var(--stone) 60%); padding: clamp(120px, 18vh, 210px) 0 clamp(100px, 14vh, 160px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact__title { margin-top: 24px; font-weight: 520; font-variation-settings: 'wdth' 118; font-size: clamp(46px, 6.2vw, 108px); line-height: .94; letter-spacing: -.045em; max-width: 10ch; }
.contact__title em { color: var(--ink-2); }
.contact__sub { margin-top: 30px; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); }
.contact__direct { margin-top: clamp(40px, 6vh, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.contact__social { margin-top: 24px; display: flex; gap: 24px; font-size: 15px; }
.contact__social a { text-decoration: none; color: var(--ink-2); transition: color .3s; }
.contact__social a:hover { color: var(--ink); }
.contact__mail {
  display: inline-block; text-decoration: none; padding-bottom: 6px;
  font-weight: 520; font-variation-settings: 'wdth' 108; font-size: clamp(22px, 2.4vw, 38px); letter-spacing: -.025em; line-height: 1.1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out);
  overflow-wrap: anywhere;
}
.contact__mail:hover, .contact__mail:focus-visible { background-size: 100% 1px; }
.contact__copy { font-size: 14px; padding: 12px 20px; border: 1px solid var(--line-l); border-radius: 999px; transition: background .3s, color .3s, border-color .3s, transform .15s; }
.contact__copy:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.contact__copy:active { transform: scale(.97); }

/* =========================================================
   PIÈ DI PAGINA (20/10/2026): nero e lungo, la firma gigante di Nicola; dietro, molto opacizzato, il video di Nick col tavolo.
   Computer (orizzontale, alto almeno 641 px): la scena (alta uno schermo) resta ferma mentre si scende; la firma sale dal nero,
   poi arrivano i testi. Le variabili --q, --qn, --pi le scrive site.js (0 = arrivati).
   Senza script o con «riduci movimento»: la composizione finale, ferma. Telefono e verticale: tutto in colonna.
   ========================================================= */
.pf {
  position: relative; z-index: 1; background: var(--night); color: var(--bone); container-type: inline-size;
  --bone-dim: rgba(236, 231, 224, .54);                        /* etichette: ~5:1 sul nero (--bone-3 del sito non basta) */
  /* la firma: grande, ma sopra lascia ~340 px per i testi (2,517 = 1 / (0,94 × 0,42271)) */
  --nw: min(.9 * (100cqw - 2 * var(--pad)), 136svh, (100svh - 340px) * 2.517);
  --nh: calc(var(--nw) * .42271);                              /* proporzioni della firma senza margini: 494,2 × 208,9 */
  --cut: .09;                                                  /* quanto della firma resta sotto il bordo */
}
.pf a { color: inherit; text-decoration: none; }
.pf :where(ul, dl, dd, p) { list-style: none; margin: 0; padding: 0; }   /* :where = specificità bassa: non schiaccia margini e spazi dei blocchi qui sotto */
.pf__track { position: relative; }
.pf__stage { position: relative; overflow: clip; }   /* clip (non hidden): lo sfondo sticky funziona anche in colonna */

/* ---------- lo sfondo: il video di Nick dietro a tutto, molto opacizzato (Giuliano: «che si veda appena») ---------- */
.pf { --fondo: .24; }
.pf__fondo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pf__fondo-in { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }   /* in colonna resta nello schermo mentre si scende */
.pf__fondo-in::after {                                          /* il nero sale dal basso dietro la firma e dai bordi: i testi restano leggibili */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--night) 0, rgba(11, 10, 9, 0) 18%, rgba(11, 10, 9, 0) 55%, rgba(11, 10, 9, .7) 100%);
}
.pf__still, .pf__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--fondo); }
.pf__still { display: block; }
.pf__video { opacity: 0; transition: opacity 1.4s ease; }
.pf__video.is-on { opacity: var(--fondo); }

/* ---------- testi ---------- */
.pf__info, .pf__indice, .pf__fine { position: relative; z-index: 2; }
.pf__lead { font-weight: 500; font-variation-settings: 'wdth' 112; line-height: 1.02; letter-spacing: -.03em; color: var(--bone); text-wrap: balance; }
.pf__lead em { display: block; color: var(--bone-2); }
.pf__cols { display: grid; align-items: start; border-top: 1px solid var(--line-d); }
.pf__label { margin: 0 0 8px; font-family: var(--f-serif); font-style: italic; font-size: 17px; line-height: 1.2; letter-spacing: 0; color: var(--bone-dim); }
.pf__list, .pf__text { font-size: 15px; line-height: 1.6; color: var(--bone-2); }
.pf__dim { color: var(--bone-dim); }
.pf__list a {
  display: inline-block; padding: 1px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .3s ease, background-size .5s var(--ease-out);
}
.pf__list a:hover, .pf__list a:focus-visible { color: var(--bone); background-size: 100% 1px; }
.pf__list i, .pf__top i { font-style: normal; display: inline-block; transition: transform .45s var(--ease-out); }
.pf__list a:hover i { transform: translate(2px, -2px); }
.pf__mail { white-space: nowrap; }
.pf__lang { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--bone-dim); }
.pf__lang button { padding: 6px 4px; color: var(--bone-dim); transition: color .3s ease; }
.pf__lang button:hover, .pf__lang button[aria-pressed="true"] { color: var(--bone); }
.pf__corto { display: none; }
.pf__top { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--bone-2); transition: color .3s ease; }
.pf__top:hover, .pf__top:focus-visible { color: var(--bone); }
.pf__top:hover i { transform: translateY(-4px); }
.pf a, .pf button { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ---------- la firma ---------- */
.pf__name { position: relative; z-index: 1; }
.pf__firma { display: block; width: 100%; height: auto; overflow: visible; }
/* le lettere salgono una dopo l'altra, legate allo scorrimento (24 = unità della firma, uguali per tutte) */
.pf__firma path { transform: translateY(calc(clamp(0, var(--qn, 0) * 1.6 - (1 - var(--i) / 14) * .6, 1) * 24px)); }

/* =========================================================
   TELEFONO E VERTICALE: una colonna (testi, indice, la firma, l'ultima riga; dietro il video)
   ========================================================= */
.pf__stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "indice" "name" "fine"; }
.pf__sign { display: contents; }
.pf__info { grid-area: info; padding: calc(var(--nav-h) + clamp(48px, 10svh, 104px)) var(--pad) 0; }
.pf__lead { font-size: clamp(32px, 8.6cqw, 56px); }
.pf__cols { margin-top: 30px; grid-template-columns: minmax(0, 1fr); }
.pf__col { padding: 16px 0 18px; }
.pf__col + .pf__col { border-top: 1px solid var(--line-d); }
.pf__list a, .pf__mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.pf__indice { grid-area: indice; margin: 0 var(--pad); padding-top: 18px; border-top: 1px solid var(--line-d); }
.pf__indice .pf__list a { min-height: 48px; font-size: 21px; color: var(--bone); width: 100%; border-bottom: 1px solid var(--line-d); }
.pf__indice li:last-child a { border-bottom: 0; }
.pf__name { grid-area: name; justify-self: center; width: calc(100cqw - 2 * clamp(14px, 3.4cqw, 40px)); margin-top: clamp(64px, 22svh, 220px); }
.pf__name { transform: translateY(calc(var(--qn, 0) * 18%)); opacity: calc(1 - var(--qn, 0) * .45); }
.pf__fine {
  grid-area: fine; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 22px;
  padding: 22px var(--pad) max(26px, env(safe-area-inset-bottom));
}
.pf__fine::before { content: '© 2026'; font-size: 14px; color: var(--bone-dim); order: -1; }
.pf__lang { order: 2; }
.pf__lang button { min-height: 44px; min-width: 44px; padding: 0 8px; font-size: 15px; }
.pf__top { order: 1; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-d); border-radius: 999px; }
@media (min-width: 600px) {
  .pf__cols { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(32px, 6cqw, 72px); padding-top: 22px; }
  .pf__col { padding: 0 0 26px; }
  .pf__col + .pf__col { border-top: 0; }
  .pf__list a, .pf__mail { min-height: 0; font-size: 15px; }
  .pf__indice .pf__list--2 { columns: 2; column-gap: 32px; }
  .pf__indice .pf__list a { min-height: 44px; font-size: 19px; }
}

/* =========================================================
   COMPUTER: la scena ferma, alta uno schermo
   ========================================================= */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 641px) {
  .pf.is-film .pf__track { height: 165vh; height: 165svh; }
  .pf__stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; }
  .pf__fine::before { content: none; }
  .pf__corto { display: inline; } .pf__lungo { display: none; }
  .pf__lang button { min-height: 0; min-width: 0; padding: 6px 4px; font-size: 14px; }
  .pf__top { min-height: 0; padding: 4px 0; border: 0; border-radius: 0; }

  /* i testi in alto, dal margine della pagina (lo stesso bordo dell'indice: un solo allineamento) */
  .pf__info { position: absolute; padding: 0; left: var(--pad); top: calc(var(--nav-h) + clamp(24px, 4.6svh, 60px)); width: min(52rem, 100cqw - 2 * var(--pad)); }
  .pf__info { container: pfinfo / inline-size; }
  .pf__lead { font-size: clamp(30px, min(3vw, 5svh), 54px); }
  .pf__cols { margin-top: clamp(22px, 4.2svh, 48px); padding-top: clamp(16px, 2svh, 22px); grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(26px, 2.8vw, 56px); }
  .pf__col { padding: 0; }
  .pf__col + .pf__col { border-top: 0; }
  .pf__list, .pf__text, .pf__list a, .pf__mail { font-size: clamp(14px, min(1.7svh, .98vw), 16px); }
  .pf__list a, .pf__mail { min-height: 0; display: inline-block; }

  /* la firma, ancorata al bordo basso; a sinistra di «Nicola» l'indice, a destra lingua e «Torna su» */
  .pf__sign { display: block; position: absolute; z-index: 1; left: calc(50cqw - var(--nw) / 2); width: var(--nw); height: var(--nh); bottom: calc(-1 * var(--cut) * var(--nh)); transform: translateY(calc(var(--qn, 0) * var(--rise, 0) * 1px)); }
  .pf__name { width: 100%; margin: 0; transform: none; opacity: calc(.38 + .62 * (1 - var(--qn, 0))); }
  .pf__indice, .pf__fine { position: absolute; margin: 0; padding: 0; border: 0; bottom: calc(66.74% - .5em); }
  .pf__indice { left: calc(var(--pad) - (50cqw - var(--nw) / 2)); width: calc(.192 * var(--nw) + (50cqw - var(--nw) / 2) - var(--pad) - 24px); }   /* dal margine fino alla «N» */
  .pf__indice .pf__list a { min-height: 0; font-size: 14px; width: auto; border: 0; color: var(--bone-2); }
  .pf__indice .pf__list--2 { columns: 2; column-gap: 14px; }
  .pf__fine { right: 0; width: 14.5%; flex-direction: column; justify-content: flex-start; align-items: flex-end; gap: 4px; }
  .pf__lang { order: 0; } .pf__top { order: 1; }

  /* i testi arrivano mentre la firma sale; prima non si vedono e non si toccano */
  .pf.is-film .pf__info, .pf.is-film .pf__indice, .pf.is-film .pf__fine { opacity: var(--pi, 1); transform: translateY(calc((1 - var(--pi, 1)) * -12px)); }
  .pf.is-film:not(.is-testi) .pf__info, .pf.is-film:not(.is-testi) .pf__indice, .pf.is-film:not(.is-testi) .pf__fine { visibility: hidden; }
}
/* portatili bassi: la frase su una riga, così la firma ha più spazio */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 641px) and (max-height: 800px) {
  .pf { --nw: min(.9 * (100cqw - 2 * var(--pad)), 136svh, (100svh - 300px) * 2.517); }
  .pf__lead em { display: inline; }
}
/* computer stretto: tre colonne non ci stanno, «Dal 1965» va sotto */
@container pfinfo (max-width: 600px) {
  .pf__cols { grid-template-columns: auto auto; column-gap: clamp(24px, 6cqw, 40px); row-gap: 14px; }
  .pf__cols > :last-child { grid-column: 1 / -1; }
}
.is-piede .rail { opacity: 0; pointer-events: none; }        /* il binario a puntini non va sopra il piè di pagina */
@media (prefers-reduced-motion: reduce) {
  .pf__firma path, .pf__name, .pf__sign { transform: none !important; }
  .pf__name { opacity: 1 !important; }
}

/* =========================================================
   VISORE
   ========================================================= */
.viewer { position: fixed; inset: 0; z-index: var(--z-viewer); }
.viewer[hidden] { display: none; }
.viewer__backdrop { position: absolute; inset: 0; background: rgba(11, 10, 9, .62); }
.viewer__panel {
  position: absolute; inset: clamp(0px, 2.2vw, 30px); overflow: hidden; background: var(--stone);
  border-radius: clamp(0px, 1vw, 14px); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
}
.viewer__stage { position: relative; isolation: isolate; background: #C4C4C2; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.viewer__stage.is-grabbing { cursor: grabbing; }
.viewer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer__video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* il video si disegna nel canvas (con i bordi) e sta SOTTO, a tutta grandezza: Safari ferma i video che considera nascosti (22/10) */
.viewer__hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 999px; background: rgba(234, 230, 224, .82); font-size: 13px; color: var(--ink);
  transition: opacity .5s;
}
.viewer__hint i { width: 22px; height: 1px; background: currentColor; position: relative; animation: hintDrag 2s ease-in-out infinite; }
@keyframes hintDrag { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.viewer__hint.is-gone { opacity: 0; }
.viewer__info { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 72px); }
.viewer__title { font-weight: 540; font-variation-settings: 'wdth' 116; font-size: clamp(38px, 4.2vw, 68px); line-height: .98; letter-spacing: -.035em; }
.viewer__mat { font-size: 17px; color: var(--ink-2); }
.viewer__cta { margin-top: 18px; align-self: flex-start; }
.viewer__nav { margin-top: auto; padding-top: 32px; display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.viewer__nav button { padding: 8px 0; }
.viewer__nav button:hover { color: var(--ink); }
.viewer__close {
  position: absolute; right: 18px; top: 16px; z-index: 2; font-size: 14px; padding: 10px 16px;
  border-radius: 999px; background: var(--stone); border: 1px solid var(--line-l);
}
.viewer__close:hover { background: var(--ink); color: var(--bone); }
.is-viewer .rail, .is-viewer .nav { opacity: 0; pointer-events: none; }

/* telefono: «Scorri» che ricompare a ogni pausa, col nome della sezione che viene dopo (21/10) */
.scorri { display: none; }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  .scorri {
    position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: var(--z-rail);
    display: flex; align-items: center; gap: 9px; padding: 9px 15px 9px 13px; border-radius: 999px;
    background: rgba(21, 19, 17, .8); box-shadow: 0 0 0 1px rgba(236, 231, 224, .14), 0 6px 22px rgba(11, 10, 9, .18);
    color: var(--bone); font-size: 13px; line-height: 1; white-space: nowrap;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .45s, transform .45s var(--ease-out);
  }
  .scorri.is-on { opacity: 1; transform: translate(-50%, 0); }
  .scorri i { position: relative; width: 1.5px; height: 16px; border-radius: 1px; background: rgba(236, 231, 224, .28); overflow: hidden; }
  .scorri i::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 7px; background: var(--bone); animation: scorriGiu 1.6s cubic-bezier(.65, 0, .35, 1) infinite; }
  .scorri__dopo { color: var(--bone-2); }
  .scorri__dopo:not(:empty)::before { content: '·'; margin-right: 8px; color: var(--bone-3); }
  @keyframes scorriGiu { from { transform: translateY(-8px); } to { transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) { .scorri i::before { animation: none; } }

/* la galleria dei progetti su misura: la foto grande, sul nero */
.galleria { position: fixed; inset: 0; z-index: var(--z-viewer); color: var(--bone); touch-action: none; }
.galleria[hidden] { display: none; }
.galleria__fondo { position: absolute; inset: 0; background: rgba(11, 10, 9, .97); }
.galleria__foto {
  position: absolute; inset: clamp(70px, 10vh, 104px) clamp(88px, 9vw, 150px) clamp(96px, 13vh, 132px); margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none;
}
.galleria__foto img {
  display: block; max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; min-height: 0; object-fit: contain;
  border-radius: 3px; pointer-events: auto; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
.galleria__dida { font-size: 14px; line-height: 1.4; color: var(--bone-2); text-align: center; max-width: 60ch; text-wrap: balance; }
.galleria__freccia {
  position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; color: var(--bone); border: 1px solid rgba(236, 231, 224, .26); transition: background .25s, color .25s, border-color .25s;
}
.galleria__freccia:hover, .galleria__freccia:focus-visible { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.galleria__freccia--prima { left: clamp(14px, 2.4vw, 40px); }
.galleria__freccia--dopo { right: clamp(14px, 2.4vw, 40px); }
.galleria__conta {
  position: absolute; left: 50%; bottom: clamp(26px, 4.5vh, 44px); transform: translateX(-50%); margin: 0;
  font-size: 13px; letter-spacing: .08em; color: var(--bone-3); font-variant-numeric: tabular-nums;
}
.galleria__chiudi {
  position: absolute; right: 18px; top: 16px; font-size: 14px; padding: 10px 16px; border-radius: 999px; color: var(--bone);
  border: 1px solid rgba(236, 231, 224, .26); transition: background .25s, color .25s;
}
.galleria__chiudi:hover, .galleria__chiudi:focus-visible { background: var(--bone); color: var(--ink); }
.is-galleria .rail, .is-galleria .nav { opacity: 0; pointer-events: none; }
.project:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .project img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
  .project:hover img { transform: scale(1.015); }
}
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  .galleria__foto { inset: 64px 10px 100px; }
  .galleria__freccia { top: auto; bottom: 22px; margin-top: 0; width: 48px; height: 48px; }
  .galleria__freccia--prima { left: 16px; }
  .galleria__freccia--dopo { right: 16px; }
  .galleria__conta { bottom: 38px; }
  .galleria__chiudi { top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; padding: 12px 18px; }
}

/* =========================================================
   TELEFONO
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
}
@media (max-width: 900px) {
  .nav__links, .nav__lang { display: none; }
  .nav__menu { display: block; }
}
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .rail { display: none; }                                  /* sul telefono finirebbe sopra i testi */

  .intro { height: calc(var(--intro-vh, 6.35) * 100vh); height: calc(var(--intro-vh, 6.35) * 100svh); }
  .hero__mark { top: 15svh; }
  .hero__mark-inner { width: 96vw; }
  .hero__lab { font-size: 16px; }
  .hero__name { font-size: 24px; margin-bottom: 6px; }
  .hero__foot { bottom: max(22px, env(safe-area-inset-bottom)); bottom: calc(100lvh - 100svh + max(22px, env(safe-area-inset-bottom))); }
  .hero__claim { font-size: 13.5px; max-width: 30ch; }
  /* la foto è larga (spalle): si regola sull'altezza e le spalle escono dai lati dello schermo.
     21/10: più in alto (la testa davanti a «Di Froscia», come al computer) e agganciata allo schermo VISIBILE:
     con le barre di Safari aperte il fondo del palco (100lvh) finisce sotto la barra e la foto sembrava troppo in basso.
     Il fondo del busto sfuma, così il taglio della foto non si vede. */
  .hero__person { width: auto; height: 60svh; bottom: 12vh; bottom: calc(100lvh - 100svh + 12svh); }
  .hero__nick { width: auto; height: 100%; }
  .hero__nick, .hero__shadow { -webkit-mask-image: linear-gradient(#000 72%, transparent 97%); mask-image: linear-gradient(#000 72%, transparent 97%); }
  .hero__claim-b { display: none; }
  .hero__cue { left: auto; right: -8px; bottom: -4px; margin: 0; flex-direction: column-reverse; gap: 8px; font-size: 13px; }
  .hero__cue i { width: 1.5px; height: 56px; border: 0; border-radius: 0; background: rgba(21, 19, 17, .22); overflow: hidden; }
  .hero__cue i::before { left: 0; top: 0; width: 1.5px; height: 22px; margin: 0; border-radius: 0; animation: cueline 1.9s cubic-bezier(.65, 0, .35, 1) infinite; }
  .hero__lab, .hero__claim { color: #3E3A35; }
  .hero__claim { text-wrap: pretty; }
  /* sotto la barra di stato dell'iPhone (con viewport-fit=cover la pagina ci passa sotto e lì il tocco non arriva) */
  .viewer__close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; padding: 12px 18px; }
  .viewer__dots { top: calc(env(safe-area-inset-top, 0px) + 18px); }
  .viewer__hint { white-space: nowrap; }
  @keyframes cueline { from { transform: translateY(-20px); opacity: 1; } to { transform: translateY(46px); opacity: 1; } }
  .intro__say { justify-content: flex-end; padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px)); padding-bottom: calc(100lvh - 100svh + max(60px, env(safe-area-inset-bottom) + 40px)); }
  .intro__say > * { max-width: none; }
  .intro__quote { font-size: clamp(30px, 8.6vw, 40px); }
  .intro__coda { margin-top: 18px; font-size: 17px; }

  .about__grid { row-gap: 48px; }
  .about__head, .about__year, .about__text { grid-column: 1 / -1; }
  .about__body { row-gap: 40px; }
  .about__year { position: relative; top: auto; padding-top: 110px; }
  .about__worker { left: 46%; width: 150px; }

  .works { padding: 110px 0 90px; }
  .works__track { display: flex; flex-direction: column; }
  .works__intro, .works__end { padding-inline: var(--pad); }
  .works__intro { margin-bottom: 44px; }
  /* le opere: striscia da scorrere di lato (22/10, Giuliano: «mi piaceva che mi potessi spostare da sx verso dx»); la dopo si intravede */
  .works__row { gap: 14px; }
  .work { flex: 0 0 min(64vw, 300px); scroll-snap-align: start; }
  .work__open { aspect-ratio: 1 / 1; }
  .work__float { width: 76%; }
  .work__float--wide { width: 100%; }
  .work__float--tall { width: 66%; }
  .works__end { text-align: left; align-self: stretch; margin-top: 52px; }

  .moving { height: 600vh; height: 600svh; }
  .moving__canvas { background-image: url(../seq/rawedge-m/000.webp); }
  .moving__caps { font-size: clamp(30px, 8.4vw, 40px); bottom: max(78px, calc(env(safe-area-inset-bottom) + 56px)); bottom: calc(100lvh - 100svh + max(78px, env(safe-area-inset-bottom) + 56px)); }
  .moving__bars { left: var(--pad); right: auto; bottom: max(40px, env(safe-area-inset-bottom)); bottom: calc(100lvh - 100svh + max(40px, env(safe-area-inset-bottom))); }
  .moving__bars i { width: 34px; }

  .journey__grid { row-gap: 40px; }
  .journey__head, .journey__steps { grid-column: 1 / -1; }
  .journey__head { position: static; }
  .journey__steps { padding: 4vh 0 10vh 34px; gap: 72px; }
  .step::before { left: -39px; }

  .studio__head, .studio__text { grid-column: 1 / -1; }
  .studio__logo { width: min(330px, 84%); }
  .pillars li { grid-template-columns: 40px minmax(0, 1fr); }
  .pillars p, .pillars .link-arrow { grid-column: 2; }
  .project { width: 74vw; }
  .project--wide { width: 84vw; }
  .projects__hint { display: none; }
  .projects__hint-tel {
    display: flex; align-items: center; gap: 12px; padding: 14px var(--pad) 0; font-size: 14px; color: var(--bone-2);
  }
  .projects__hint-tel i { position: relative; flex: 0 0 34px; height: 1.5px; background: rgba(236, 231, 224, .25); overflow: hidden; border-radius: 1px; }
  .projects__hint-tel i::before { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 100%; background: var(--bone); animation: lato 1.6s cubic-bezier(.65, 0, .35, 1) infinite; }
  .projects__hint-tel i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1.5px solid var(--bone-2); border-right: 1.5px solid var(--bone-2); transform: rotate(45deg); }
  @keyframes lato { from { transform: translateX(-14px); } to { transform: translateX(34px); } }
  .works__row {
    display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 0 var(--pad) 4px; scroll-padding-inline: var(--pad); scrollbar-width: none;
  }
  .works__row::-webkit-scrollbar { display: none; }
  /* striscia delle opere: l'opera dopo sfuma appena sul bordo destro, finché c'è altro (22/10, Giuliano: la sfocatura vera era
     troppa e su Safari usciva come una fascia netta; niente backdrop-filter) */
  .works__row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), rgba(0, 0, 0, .4)); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), rgba(0, 0, 0, .4)); }
  .works__row.is-fine { -webkit-mask-image: none; mask-image: none; }

  .collections__lead { font-size: 16px; }
  .cat__filters { gap: 8px; }
  .cat__filter { padding: 8px 14px; font-size: 14px; }
  /* il catalogo: 2 colonne di foto quadrate col nome, come sul computer, una famiglia alla volta (22/10, Giuliano: «togli quella
     con tutti sennò diventa lunga… parti da Neorganica… fai 2 colonne») */
  .cat__filter[data-fam=""] { display: none; }
  .cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .cat__img { margin-bottom: 10px; }
  .cat__name { font-size: 17px; }
  .cat__meta { font-size: 13px; }
  .collections__note { margin-top: 52px; }
  /* NaiveE (le pietre in stop motion) a tutta larghezza (22/10, Giuliano) */
  .pietre { margin-inline: calc(-1 * var(--pad)); }
  .pietre__open { border-radius: 0; }
  .pietre figcaption { padding-inline: var(--pad); }

  .press__grid { grid-template-columns: 1fr; }

  .making__text, .making__media { grid-column: 1 / -1; }
  .making__media { margin-top: 40px; }
  .making__video, .making__media figcaption { width: min(100%, calc(min(74svh, 620px) * 9 / 16)); }
  .lab { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lab__f--banco, .lab__f--lastre { display: block; grid-row: 2; }
  .lab__f--banco { grid-column: 1; } .lab__f--lastre { grid-column: 2; }
  .lab__f--banco img, .lab__f--lastre img { height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
  .lab__f--piano { grid-column: 1 / -1; grid-row: 3; }
  .lab__f--marmo { grid-column: 1 / -1; grid-row: 4; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__mail { font-size: clamp(22px, 6.4vw, 30px); }
  .facts { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .form__row { grid-template-columns: 1fr; }

  .viewer__panel { inset: 0; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: 60svh auto; overflow-y: auto; }
  .viewer__info { justify-content: flex-start; padding: 26px var(--pad) max(28px, env(safe-area-inset-bottom)); }
  .viewer__nav { padding-top: 22px; }
}

/* meno movimento: niente voli, niente fluttuazioni */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .project img { transition: none; }
}

/* =========================================================
   MODULO (contatti)
   ========================================================= */
.form {
  position: relative; display: grid; gap: 24px; padding: clamp(24px, 3vw, 44px);
  background: rgba(255, 255, 255, .45); border: 1px solid var(--line-l); border-radius: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(21, 19, 17, .26); border-radius: 0; padding: 10px 0; outline: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23151311' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field.is-error input, .field.is-error textarea { border-bottom-color: #8A6A3A; }
/* «Ti interessa»: la scelta con le miniature (la select vera resta nascosta, per l'invio) */
.field--opera { position: relative; }
.scelta__nativa { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; }
.scelta {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 6px 30px 6px 0;
  text-align: left; font-size: 16px; color: var(--ink); border-bottom: 1px solid rgba(21, 19, 17, .26); transition: border-color .3s;
}
.scelta:focus-visible, .scelta[aria-expanded="true"] { outline: none; border-bottom-color: var(--ink); }
.scelta i {
  position: absolute; right: 4px; top: 50%; width: 12px; height: 8px; margin-top: -4px; transition: transform .3s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23151311' stroke-width='1.4'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
}
.scelta[aria-expanded="true"] i { transform: rotate(180deg); }
.scelta__mini:empty { display: none; }
.scelta__mini img { display: block; width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.scelta.is-vuota .scelta__v { color: var(--ink-2); }
.scelta__lista {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: min(420px, 62vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 8px 10px; background: var(--stone); border: 1px solid var(--line-l); border-radius: 14px; box-shadow: 0 18px 50px rgba(21, 19, 17, .16);
}
.scelta__lista[hidden], .scelta__velo[hidden] { display: none; }
.scelta__testa { display: none; }
.scelta__gruppo { margin: 12px 10px 6px; font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }
.scelta__voce { display: flex; align-items: center; gap: 14px; width: 100%; padding: 7px 10px; border-radius: 10px; text-align: left; transition: background .2s; }
.scelta__voce:hover, .scelta__voce:focus-visible { outline: none; background: rgba(21, 19, 17, .06); }
.scelta__voce[aria-selected="true"] { background: rgba(21, 19, 17, .1); }
.scelta__voce img, .scelta__vuoto { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--stone-2); }
.scelta__vuoto { display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--ink-2); }
.scelta__voce b { display: block; font-size: 15.5px; font-weight: 520; }
.scelta__voce small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  /* sul telefono la lista sale dal basso, sopra un velo */
  .scelta__velo { position: fixed; inset: 0; z-index: var(--z-viewer); background: rgba(11, 10, 9, .45); }
  .scelta__lista {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: calc(var(--z-viewer) + 1); max-height: 80svh;
    padding: 0 8px max(16px, env(safe-area-inset-bottom)); border: 0; border-radius: 18px 18px 0 0;
  }
  .scelta__testa {
    position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center;
    padding: 16px 10px 10px; background: var(--stone); font-size: 16px; font-weight: 520;
  }
  .scelta__testa button { font-size: 14px; font-weight: 400; padding: 9px 15px; border: 1px solid var(--line-l); border-radius: 999px; }
  .scelta__voce { padding: 8px 10px; }
}
.field__err { min-height: 0; font-size: 13px; font-style: italic; font-family: var(--f-serif); color: #7A5C30; }
.field__err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span span { display: inline; }
.chips label > span {
  display: inline-block; padding: 9px 15px; font-size: 14px; border: 1px solid var(--line-l); border-radius: 999px;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.chips label > span:hover { border-color: rgba(21, 19, 17, .45); }
.chips input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.form__consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__send {
  padding: 15px 28px; border-radius: 999px; background: var(--ink); color: var(--bone); font-weight: 520;
  transition: background .3s, transform .15s, opacity .3s;
}
.form__send:hover { background: #2B2723; }
.form__send:active { transform: scale(.98); }
.form__send[disabled] { opacity: .55; cursor: progress; }
.form__status { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.is-sent .form__send { display: none; }

/* =========================================================
   VISORE: foto, puntini, testi
   ========================================================= */
.viewer__photos { position: absolute; inset: 0; }
.viewer__photos figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .55s var(--ease-out); overflow: hidden; background: var(--ph-bg, #DCDBD9); }
.viewer__photos figure.is-on { opacity: 1; }
.viewer__photos .fg {                                     /* foto piena, bordi netti (scelta di Giuliano: niente sfumature ai lati) */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 50%);
}
.viewer__photos figure.is-intera { background: var(--ph-fill, var(--ph-bg, #DCDBD9)); }
.viewer__photos figure.is-intera .fg { object-fit: contain; }
.viewer__dots { position: absolute; z-index: 2; left: 50%; top: 18px; transform: translateX(-50%); display: flex; gap: 6px; }
.viewer__dots button { width: 30px; height: 18px; position: relative; }
.viewer__dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; background: rgba(21, 19, 17, .22); transition: background .3s; }
.viewer__dots button[aria-selected="true"]::before { background: var(--ink); }
.viewer__dots button span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.viewer__desc { margin-top: 4px; max-width: 46ch; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.viewer__dims { font-size: 14px; color: var(--ink-2); }
.viewer__variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.viewer__variants[hidden] { display: none; }
.viewer__variants button {
  padding: 7px 13px; border: 1px solid var(--line-l); border-radius: 999px; font-size: 13.5px; line-height: 1.2;
  transition: background .3s, color .3s, border-color .3s;
}
.viewer__variants button:hover { border-color: var(--ink); }
.viewer__variants button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.viewer__dims:empty { display: none; }
.viewer__ctas { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 12px; }
.viewer__cta { margin-top: 0; }

/* schermi in verticale più larghi del telefono (tablet in piedi): come sul telefono, frasi dell'intro in basso
   e velo di pietra dietro il nome, che altrimenti cade sul braccio di Nick */
@media (orientation: portrait) and (min-width: 761px) {
  .making__text, .making__media { grid-column: 2 / span 10; }
  .making__media { margin-top: 56px; }
  .intro__say { justify-content: flex-end; padding-bottom: max(80px, 8vh); }
  .intro__say > * { max-width: 30ch; }
  .intro__quote { font-size: clamp(40px, 6.2vw, 72px); }
}

/* telefono: regole che devono venire dopo quelle del modulo */
@media (max-height: 520px) and (pointer: coarse) and (orientation: landscape) {
  .moving__caps { width: 40vw; font-size: 26px; }
}
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  .viewer__dots { left: var(--pad); transform: none; gap: 4px; flex-wrap: wrap; max-width: calc(100% - var(--pad) - 96px); }   /* non va sotto «Chiudi», anche con 9 foto */
  .viewer__dots button { width: 26px; height: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .form { gap: 22px; padding: 22px 18px; }
}
