/* BOZZA: stile ispirato ad auge-design.com, ma più leggibile.
   Si tiene: grigio/bianco/nero, titoli enormi stretti, didascalie editoriali, numeri in corsivo, footer nero.
   Si cambia: chi sei e cosa fai si capisce al primo schermo, ogni progetto ha testo e dati,
   menu con nomi chiari, niente testo animato parola per parola. */
:root {
  --gray: #C4C4C4; --paper: #fff; --ink: #0A0A0A; --mid: #6B6B6B; --line: rgba(0,0,0,.14);
  --accent: #1F3BFF; /* un solo colore, per "disponibile" e i link attivi */
  --wrap: 1360px; --gut: 36px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 500; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.cond { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; line-height: .86; }
.it { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }
.up { text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.u { border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.muted { color: var(--mid); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* segnaposto immagine: va sostituito con foto/mockup veri */
.ph { background: #D9D9D9; display: grid; place-items: center; color: #8a8a8a; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- menu: voci con nomi chiari, sempre visibili ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 20px var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transition: background .3s, color .3s; }
.nav.solid { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.mono { font-family: "Instrument Serif", serif; font-style: italic; font-size: 34px; line-height: 1; letter-spacing: -0.05em; }
.links { display: flex; gap: 28px; }
.links a { font-size: 15px; text-transform: uppercase; font-weight: 600; opacity: .55; transition: opacity .2s; }
.links a:hover, .links a.on { opacity: 1; }
/* voce attiva in corsivo, come "Works" su Auge */
.links a.on { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; text-transform: none; font-size: 19px; line-height: 15px; }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 24px; font-size: 15px; text-transform: uppercase; font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; font: inherit; font-family: "Archivo"; font-variation-settings: "wdth" 62; font-weight: 800; font-size: 22px; text-transform: uppercase; cursor: pointer; color: inherit; }

/* ---------- 1. apertura a tutto schermo, come la home di Auge ----------
   le tue schermate su sfondi fotografici si alternano a tagli veloci; sopra, il nome enorme in negativo.
   In basso resta scritto chi sei e quale progetto stai guardando. */
/* altezza = parte davvero visibile (svh): su iPhone e iPad 100vh conta anche lo spazio sotto le barre di Safari,
   e l'apertura, incollata in cima, nascondeva per sempre i pulsanti in fondo */
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #111; color: #fff; display: flex; flex-direction: column; padding-top: 84px; }
/* schermi bassi (telefono in orizzontale, finestre piccole): l'apertura scorre via normalmente, non resta incollata */
@media (max-height: 600px) { .hero { position: relative; height: auto; min-height: 100svh; } }
.name { position: relative; z-index: 3; display: block; white-space: nowrap; text-align: center; opacity: 0; transition: opacity .5s; }
.hero .name { color: #fff; mix-blend-mode: difference; } /* in negativo: cambia colore con quello che passa sotto */
.name.ok { opacity: 1; }

.reel { position: absolute; inset: 0; }
.scene { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .28s; }
.scene.on { opacity: 1; z-index: 1; }
.scene .bgi { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; }
.scene.on .bgi { animation: kb 3s linear both; }
@keyframes kb { from { scale: 1.14; translate: -1.5% 1% } to { scale: 1.02; translate: 0 0 } }
/* un telefono: posizione, altezza (in vh) e rotazione decise scena per scena */
.dev { position: absolute; left: var(--x); top: var(--y); height: calc(var(--h) * var(--k, 1) * 1svh); aspect-ratio: var(--ar, 390/844); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); filter: drop-shadow(0 3vh 4vh rgba(0,0,0,.35)); }
.dev.frame { background: #0d0d0d; padding: calc(var(--h) * var(--k, 1) * .016svh); border-radius: calc(var(--h) * var(--k, 1) * .075svh); box-shadow: inset 0 0 0 1px #333; }
.dev img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: calc(var(--h) * var(--k, 1) * .062svh); }
.dev.raw img { border-radius: calc(var(--h) * var(--k, 1) * .072svh); } /* anteprime che hanno già la cornice */
.scene.on .dev { animation: drift 3s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes drift { from { translate: 0 7vh; opacity: 0 } 18% { opacity: 1 } to { translate: 0 0; opacity: 1 } }

.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 42%), linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,0) 20%); }
.hero-foot { position: relative; z-index: 3; margin-top: auto; padding-bottom: 34px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.lead { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.08; letter-spacing: -0.02em; max-width: 21ch; }
.hero .ctas { margin-top: 24px; }
.hero .btn { border-color: #fff; }
.hero .btn.fill { background: #fff; color: var(--ink); }
.hero .btn:hover { background: #fff; color: var(--ink); }
.hero .btn.fill:hover { background: transparent; color: #fff; }
.now { text-align: right; display: grid; gap: 2px; font-size: 15px; text-transform: uppercase; }
.now .it { font-size: 20px; text-transform: none; opacity: .75; }
.now b { font-weight: 600; font-size: 17px; }
.now .bar { display: block; width: 180px; height: 2px; background: rgba(255,255,255,.3); margin: 10px 0 0 auto; position: relative; overflow: hidden; }
.now .bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.now .bar i.run { animation: bar 3s linear both; }
@keyframes bar { to { transform: scaleX(1) } }

/* chi sei, subito sotto l'apertura */
.facts-band { padding: 46px 0 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 16px; border-top: 1px solid var(--ink); }
.facts span { display: block; }
.facts .it { font-size: 18px; color: rgba(0,0,0,.55); margin-bottom: 4px; }
.facts b { font-weight: 500; font-size: 16px; line-height: 1.2; }
.ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-size: 15px; text-transform: uppercase; font-weight: 600; border: 1.5px solid var(--ink); transition: background .2s, color .2s; }
.btn.fill { background: var(--ink); color: #fff; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.fill:hover { background: transparent; color: var(--ink); }
/* sopra le foto il menu è bianco in negativo; diventa normale quando la pagina bianca lo raggiunge */
.nav:not(.solid) { color: #fff; mix-blend-mode: difference; }
.nav.open { mix-blend-mode: normal; color: var(--ink); background: #fff; }
/* telefono in verticale: schermate un po' più piccole */
/* schermo largo: composizioni spostate a destra, il testo resta libero a sinistra */
@media (min-aspect-ratio: 1/1) { .dev { left: calc(var(--x) + 12%); --k: .88; } }
/* schermo verticale (telefono, finestra stretta): tre fasce che non si pestano.
   In alto il nome, al centro le schermate (passano sotto il nome in negativo, non sotto il testo), in basso il testo su fondo scuro. */
@media (max-aspect-ratio: 1/1) {
  .dev { --k: .5; top: calc(13% + var(--y) * .5); }
  .hero-shade { background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.7) 26%, rgba(0,0,0,0) 48%), linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,0) 20%); }
  .hero .name .w, .foot .name .w { display: block; } /* nome su due righe, ognuna larga quanto lo schermo (anche nel footer) */
  .hero-foot { gap: 14px; padding-bottom: 22px; }
  .lead { font-size: clamp(17px, 4.6vw, 24px); max-width: 26ch; }
  .hero .ctas { margin-top: 14px; }
  .now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-align: left; font-size: 13px; }
  .now .it { font-size: 16px; } .now b { font-size: 13px; }
  .now .bar { flex-basis: 100%; width: auto; margin: 6px 0 0; }
}

.page { position: relative; z-index: 2; background: var(--paper); }
section { scroll-margin-top: 80px; }

/* titolo di sezione: numero corsivo + nome + conteggio, come "SELECTED WORKS (6)" */
.sec-head { display: grid; grid-template-columns: 60px 1fr auto; align-items: end; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 48px; }
.sec-head .it { font-size: 26px; line-height: 1; }
.sec-head h2 { font-size: clamp(56px, 7.5vw, 128px); }
.sec-head .up { text-align: right; }

/* ---------- 2. progetti, come la pagina Works di Auge ----------
   un progetto per riga, immagine a tutta larghezza; passando sopra le immagini scorrono a scatti (flipbook).
   In più rispetto ad Auge: una frase e il ruolo nella didascalia, così si capisce di cosa si tratta. */
.works { padding: 130px 0 60px; }
.works-intro { display: grid; grid-template-columns: 2fr 10fr; gap: 28px; align-items: start; margin-bottom: 64px; }
.works-intro .up { line-height: 1.15; padding-top: .6em; }
.works-intro h2 { font-size: clamp(56px, 7.8vw, 136px); }
.work { display: block; margin-bottom: 72px; }
/* la scheda intera (immagine + didascalia) deve stare in uno schermo: l'immagine non supera l'altezza
   disponibile sotto il menu, tolto lo spazio della didascalia. Le composizioni si adattano (sono misurate in cqh). */
.flip { position: relative; aspect-ratio: 16/10; max-height: calc(100svh - 230px); min-height: 280px; width: 100%; overflow: hidden; background: #D9D9D9; }
@media (max-width: 980px) { .flip { max-height: calc(100svh - 300px); } }
.flip > * { position: absolute; inset: 0; visibility: hidden; }
.flip > .on { visibility: visible; }
.flip .ph { width: 100%; height: 100%; }
.flip .ph:nth-child(2) { background: #CFCFCF; } .flip .ph:nth-child(3) { background: #E3E3E3; } .flip .ph:nth-child(4) { background: #C9C9C9; }
/* fotogramma con le schermate del telefono, sul colore del progetto */
.flip { container-type: size; }
.flip .ph.shots { background: var(--c); display: flex; align-items: center; justify-content: center; gap: 5cqw; }
.flip .shots img { width: auto; height: 82cqh; aspect-ratio: auto; object-fit: contain; border: 1.1cqh solid #0d0d0d; border-radius: 4.4cqh; background: #0d0d0d; box-shadow: 0 3cqh 7cqh rgba(0,0,0,.28); }
.flip .shots img:nth-child(2) { translate: 0 6cqh; }
.count { position: absolute; left: 16px; bottom: 14px; z-index: 2; visibility: visible; inset: auto auto 14px 16px; font-size: 13px; text-transform: uppercase; background: rgba(255,255,255,.9); padding: 5px 9px; border-radius: 99px; opacity: 0; transition: opacity .2s; }
.work:hover .count, .work.auto .count { opacity: 1; }
.cap { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; padding-top: 14px; }
.cap-l { display: flex; flex-direction: column; }
.cap-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cap b { font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.cap .yr { font-size: 15px; }
.cap .tag { font-size: 22px; color: var(--mid); }
.cap-r { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.cap .why { font-size: 18px; line-height: 1.3; max-width: 40ch; }
.cap .why small { display: block; color: var(--mid); font-size: 15px; margin-top: 6px; }
.read { flex: none; font-size: 15px; text-transform: uppercase; font-weight: 600; }
.read span { display: inline-block; transition: transform .25s; }
.work:hover .read span { transform: translateX(6px); }

/* ---------- 3. altri lavori: indice compatto (l'"archivio", ma con le parole) ---------- */
.index { padding: 40px 0 140px; }
.irow { display: grid; grid-template-columns: 60px 1.4fr 1fr 120px 30px; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .25s; }
.irow:hover { padding-left: 10px; }
.irow .it { font-size: 22px; }
.irow h4 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.01em; }
.irow .k { color: var(--mid); font-size: 16px; }
.irow .y { text-align: right; font-size: 20px; }
.irow .ar { text-align: right; }

/* ---------- 4. chi sono ---------- */
.about { padding: 0 0 140px; }
.about-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.about .ph { aspect-ratio: 4/5; }
.about-big { font-size: clamp(30px, 3.1vw, 50px); line-height: 1.06; letter-spacing: -0.022em; max-width: 24ch; }
.about-big .it { letter-spacing: -0.01em; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
.about-cols p { font-size: 17px; line-height: 1.5; font-weight: 400; max-width: 48ch; }
.brief div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.brief div:last-child { border-bottom: 1px solid var(--line); }
.brief span:first-child { color: var(--mid); }

/* ---------- 5. percorso ---------- */
.path { padding-bottom: 150px; }
.row { display: grid; grid-template-columns: 60px 1fr 1fr 180px; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row .it { font-size: 22px; }
.row h4 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.row .k { color: var(--mid); font-size: 16px; }
.row .d { text-align: right; font-size: 20px; }

/* ---------- 6. contatti: footer nero ---------- */
.foot { background: #000; color: #fff; padding: 110px 0 36px; overflow: hidden; }
.foot .up { color: rgba(255,255,255,.55); }
.foot-q { font-size: clamp(30px, 3.4vw, 56px); line-height: 1.04; letter-spacing: -0.025em; margin-top: 22px; max-width: 18ch; }
.mail { display: inline-block; margin-top: 40px; font-size: clamp(26px, 3.6vw, 60px); letter-spacing: -0.03em; border-bottom: 2px solid #fff; padding-bottom: 4px; transition: opacity .2s; }
.mail:hover { opacity: .6; }
.foot-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 110px; font-size: 15px; }
.foot-links div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-links .it { font-size: 19px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.foot .name { margin-top: 80px; color: #fff; }

/* ================= MOVIMENTO =================
   Le animazioni allo scroll sono legate alla posizione della pagina (scroll-driven), non a un "evento":
   non possono restare a metà né lasciare schermate bianche. Dove il browser non le supporta, il contenuto è semplicemente fermo.
   Niente effetti che seguono il cursore. */

/* sottolineature che si ridisegnano */
.u { border-bottom: 0; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; }
.u:hover { animation: reline .7s cubic-bezier(.7,0,.2,1); }
@keyframes reline { 0% { background-position: 100% 100%; background-size: 100% 1.5px } 45% { background-position: 100% 100%; background-size: 0 1.5px } 46% { background-position: 0 100%; background-size: 0 1.5px } 100% { background-position: 0 100%; background-size: 100% 1.5px } }

/* testo che "ruota": esce in alto, rientra dal basso (pulsanti, menu, email) */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; line-height: 1.15; }
.roll > span { grid-area: 1 / 1; transition: transform .55s cubic-bezier(.7,0,.2,1); }
.on > .roll { padding-right: .14em; } /* il corsivo sporge a destra: senza margine l'ultima lettera viene tagliata */
.roll > span + span { transform: translateY(110%); }
a:hover > .roll > span:first-child, button:hover > .roll > span:first-child { transform: translateY(-110%); }
a:hover > .roll > span + span, button:hover > .roll > span + span { transform: none; }
.btn { transition: background .35s, color .35s, border-color .35s; }

/* altri lavori: la riga si riempie di nero dal basso */
.irow { position: relative; isolation: isolate; transition: padding .45s cubic-bezier(.7,0,.2,1), color .3s; }
.irow::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -.5); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.irow:hover { color: #fff; padding-left: 14px; }
.irow:hover::before { transform: scaleY(1); }
.irow:hover .k { color: rgba(255,255,255,.6); }
.irow .ar { transition: transform .45s cubic-bezier(.7,0,.2,1); }
.irow:hover .ar { transform: rotate(-45deg); }

/* percorso: la riga indicata resta, le altre si attenuano */
.row { transition: opacity .35s; }
.path:hover .row { opacity: .3; }
.path .row:hover { opacity: 1; }

/* progetti: leggero zoom dell'immagine al passaggio */
.flip > * { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.work:hover .flip > :not(.count) { transform: scale(1.035); }
.cap b { transition: letter-spacing .5s cubic-bezier(.7,0,.2,1); }
.work:hover .cap b { letter-spacing: .01em; }

/* nome a lettere (preparato da JS) */
.name .ch { display: inline-block; }
.name .w { display: inline-block; white-space: nowrap; }
.hero .name { overflow: hidden; padding-bottom: .02em; }

@media (prefers-reduced-motion: no-preference) {
  /* apertura: le lettere del nome salgono una dopo l'altra, poi testo e pulsanti */
  .hero .name.ok .ch { animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 45ms + .1s); }
  @keyframes rise { from { transform: translateY(105%); } }
  .hero-foot > * { animation: fadeUp 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: .75s; }
  .hero-foot > * + * { animation-delay: .9s; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } }

  @supports (animation-timeline: view()) {
    /* la pagina bianca copre l'apertura: le foto si avvicinano e si scuriscono, il nome sale */
    .reel { animation: reelOut linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes reelOut { to { scale: 1.12; filter: brightness(.45); } }
    .hero .name { animation: nameOut linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes nameOut { to { translate: 0 -35%; } }
    .hero-foot { animation: footOut linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
    @keyframes footOut { to { opacity: 0; translate: 0 -60px; } }

    /* blocchi che salgono entrando */
    .facts > *, .rv, .cap, .foot-q, .foot .mail, .foot-links > * {
      animation: inUp linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    @keyframes inUp { from { opacity: 0; translate: 0 50px; } }
    .irow.rv, .row.rv { animation-name: inSide; }
    @keyframes inSide { from { opacity: 0; translate: -30px 0; } }

    /* titoli grandi: salgono da una maschera */
    .sec-head h2, .works-intro h2 { animation: lineUp linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    @keyframes lineUp { from { clip-path: inset(0 0 100% 0); translate: 0 .35em; } to { clip-path: inset(0 0 -10% 0); } }
    .sec-head.rv, .works-intro { animation: none; }

    /* linee che si disegnano */
    .sec-head, .facts { border-color: transparent; background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1px no-repeat; }
    .facts { background-position: left top; }
    .sec-head, .facts { animation: draw linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes draw { from { background-size: 0 1px; } }

    /* immagini dei progetti: si aprono dai bordi, con un po' di profondità */
    .flip { animation: open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes open { from { clip-path: inset(10% 7% 10% 7%); } to { clip-path: inset(0); } }
    .flip > :not(.count) { animation: depth linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes depth { from { scale: 1.06; translate: 0 -1.5%; } to { scale: 1; translate: 0 1.5%; } } /* leggero: i bordi della composizione restano visibili */
    .about .ph { animation: open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }

    /* footer: il nome gigante sale lettera per lettera */
    .foot .name { overflow: hidden; view-timeline: --fname block; }
    .foot .name .ch { animation: rise linear both; animation-timeline: --fname; animation-range: entry calc(var(--i) * 4%) entry calc(55% + var(--i) * 4%); } /* è l'ultima cosa della pagina: deve finire mentre entra */
  }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } .roll > span { transition: none; } }

/* scorrimento morbido (Lenis) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- tablet / telefono ---------- */
@media (max-width: 980px) {
  .links { display: none; } .nav-cta .hide-s { display: none; }
  .menu-btn { display: block; }
  .nav { grid-template-columns: 1fr auto; }
  .nav.open .links { display: flex; flex-direction: column; position: fixed; inset: 70px 0 auto; background: #fff; padding: 24px var(--gut) 32px; gap: 18px; }
  .nav.open .links a { font-size: 28px; opacity: 1; font-family: "Archivo"; font-variation-settings: "wdth" 62; font-weight: 800; }
  /* voce attiva nel menu aperto: corsivo come su computer, ma più grande e con l'interlinea giusta */
  .nav.open .links a.on { font-family: "Instrument Serif", serif; font-variation-settings: normal; font-weight: 400; font-style: italic; text-transform: none; font-size: 34px; line-height: 1.1; }
  .about-grid, .about-cols, .cap, .works-intro { grid-template-columns: 1fr; }
  .hero-foot { grid-template-columns: 1fr; }
  .now { text-align: left; } .now .bar { margin-left: 0; }
  .work { margin-bottom: 56px; }
  .cap-r { flex-direction: column; gap: 12px; }
  .about .ph { max-width: 360px; }
  .foot-links { grid-template-columns: 1fr 1fr; }
}
/* iPad in verticale e tablet: c'è spazio per due colonne, non serve impilare tutto */
@media (min-width: 641px) and (max-width: 980px) {
  #worksList { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 20px; }
  .work { margin-bottom: 0; }
  .work .flip { aspect-ratio: 4/3; max-height: none; min-height: 0; }
  .cap b { font-size: 21px; } .cap .tag { font-size: 18px; } .cap .why { font-size: 16px; }
  .about-grid { grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
  .about .ph { max-width: none; }
  .about-big { font-size: 30px; }
  .index, .about, .path { padding-bottom: 100px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .nav { padding: 14px var(--gut); }
  .hero { padding-top: 70px; }
  .hero .ctas .btn { padding: 12px 16px; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .sec-head { grid-template-columns: 36px 1fr; }
  .sec-head .up { grid-column: 2; text-align: left; }
  .irow { grid-template-columns: 36px 1fr auto; }
  .irow .k, .irow .ar { display: none; }
  .row { grid-template-columns: 36px 1fr; }
  .row .k, .row .d { grid-column: 2; text-align: left; }
  .works { padding-top: 64px; }
  /* aree toccabili di almeno ~44px, senza cambiare l'aspetto */
  .menu-btn { padding: 11px 0 11px 20px; margin: -11px 0; }
  .mono { display: inline-block; padding: 5px 10px 5px 0; }
  .foot-links .u { display: inline-block; padding: 12px 0; background-origin: content-box; background-clip: content-box; margin: -12px 0; }
  /* meno vuoto tra le sezioni: su un telefono 140px sono un sesto di schermo */
  .index, .about, .path { padding-bottom: 72px; }
  .index { padding-top: 24px; }
  .foot-links { margin-top: 64px; }
  /* i fatti in alto restano affiancati, in piccolo */
  .facts { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .facts .it { font-size: 14px; }
  .facts b { font-size: 13.5px; line-height: 1.25; }
  /* il percorso scorre di lato: la scheda dopo si intravede */
  #pathList { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  #pathList::-webkit-scrollbar { display: none; }
  #pathList > * { scroll-snap-align: start; animation: none !important; }
  #pathList .row { grid-template-columns: 30px 1fr; align-content: start; border: 1px solid var(--line); padding: 16px 14px; }
  .path:hover .row { opacity: 1; }
  /* chi sono: foto piccola con il testo a fianco */
  .about-grid { grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
  .about .ph { max-width: none; }
  .about-big { font-size: 20px; line-height: 1.2; }
  .about-grid > div:not(.ph) { display: contents; } /* frase accanto alla foto, biografia e tabella sotto a tutta larghezza */
  .about-cols { grid-column: 1 / -1; margin-top: 12px; }
}
