/* Drawing Doors · A · Segno
   Il nero è il muro, il bianco è ciò che c'è oltre la porta. Nessun colore d'accento. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/bricolage-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/bricolage-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plexmono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/plexmono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/plexmono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/plexmono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 400; font-display: swap; src: url('/assets/fonts/newsreader-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 400; font-display: swap; src: url('/assets/fonts/newsreader-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 400; font-display: swap; src: url('/assets/fonts/newsreader-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 400; font-display: swap; src: url('/assets/fonts/newsreader-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --wall: #000;
  --paper: #fff;
  --ink-2: #262626;
  --ink-3: #4a4a4a;
  --gutter: clamp(20px, 3.2vw, 44px);
  /* Ritmo verticale delle sezioni sul foglio bianco: un solo passo, che cresce con larghezza e altezza. */
  --section-pad: clamp(64px, calc(5vw + 4vh), 124px);
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--paper); color: var(--wall); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.mono { font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.logo { font: 800 17px/1 var(--sans); letter-spacing: -.035em; }

/* Sottolineature e filetti: il tratto li disegna (site.js); senza JS resta un filo semplice. */
[data-ink] { position: relative; display: inline-block; }
.ink-line { position: absolute; left: 0; width: 100%; height: 10px; overflow: visible; pointer-events: none; }
[data-ink="under"] > .ink-line { top: calc(100% + 1px); }
[data-ink="rule"] > .ink-line { top: -5px; }
html:not(.js) [data-ink="under"] { border-bottom: 1px solid currentColor; }
html:not(.js) [data-ink="rule"] { border-top: 1px solid currentColor; }

/* Lingua */
.lang a { opacity: .55; padding: 6px 0; }
.lang a[aria-current] { opacity: 1; }
.lang a:hover { opacity: 1; }

/* ── 0 · Soglia ─────────────────────────────────────────── */
.hero-wrap { position: relative; height: 100vh; height: 100svh; }
.js .hero-wrap { height: 210vh; }
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; background: var(--wall); }
.hero-stage { position: absolute; inset: 0; }
.hero-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.js .ink-static { display: none; }

.hero-frame {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: max(clamp(18px, 2.6vw, 32px), env(safe-area-inset-top)) var(--gutter) max(clamp(40px, 8vh, 84px), env(safe-area-inset-bottom));
  pointer-events: none;
}
.hero-frame a { pointer-events: auto; }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
/* Logo nell'header: la linea di base della scritta (y = 0 nel viewBox, al 79,19% dell'altezza)
   cade sulla linea di base di PARLIAMONE, 15 px sotto la cima della riga. Sotto i 340 px
   la scritta scenderebbe sotto i 20 px di corpo o toccherebbe la nav: resta il simbolo,
   con la soglia della porta (96,97%) sulla stessa linea. */
.logo-link { --logo-h: clamp(28px, 2.2vw, 32px); display: block; flex: none; align-self: flex-start; margin-top: calc(15px - var(--logo-h) * .7919); line-height: 0; }
.logo-link img { display: block; height: var(--logo-h); width: auto; }
@media (max-width: 339px) { .logo-link { margin-top: calc(15px - var(--logo-h) * .9697); } }
.hero-nav { display: flex; align-items: baseline; gap: clamp(16px, 2.4vw, 28px); }
.hero-nav .link { padding: 6px 0; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.payoff { font: 300 clamp(28px, 3.4vw, 52px)/1.05 var(--serif); letter-spacing: -.022em; }
.payoff > span { display: block; }
.enter { display: inline-flex; padding: 6px 0 10px; font: 500 16px/1 var(--sans); }
.enter-row { display: inline-flex; align-items: center; gap: 12px; }
.enter-row .mono { font: 400 13px/1 var(--mono); letter-spacing: 0; text-transform: none; }
.hero-white { position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }

/* Con JS i testi della soglia entrano sulla timeline del disegno. */
.js .hero [data-t]:not([data-ink]) { opacity: 0; }

/* ── Tre porte ──────────────────────────────────────────── */
.porte {
  position: relative; background: var(--paper); color: var(--wall);
  padding: var(--section-pad) var(--gutter);
  display: flex; flex-direction: column; gap: clamp(56px, 7vw, 104px);
}
.porte-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.title { font: 300 clamp(34px, 5vw, 72px)/1.02 var(--serif); letter-spacing: -.025em; max-width: 13ch; text-wrap: pretty; }
.lead { max-width: 36ch; font: 400 15px/1.65 var(--sans); color: var(--ink-2); text-wrap: pretty; }

.porte-grid {
  position: relative; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
}
.porte-stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.porta { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.porta-slot { position: relative; height: clamp(240px, 26vw, 360px); margin-bottom: 18px; }
.porta-slot svg.ink-static { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; overflow: visible; }
.porta .label { color: var(--ink-3); }
.porta-name { font: 800 28px/1 var(--sans); letter-spacing: -.035em; }
.porta-role { font: italic 300 19px/1.3 var(--serif); color: var(--ink-2); }
.porta-text { font: 400 14.5px/1.6 var(--sans); color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }
.porta-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 6px; }
/* Porta cliccabile: il nome del prodotto è il link e la sua area copre l'intera stanza.
   URL testuali e riga informativa stanno sopra: i link restano link, la nota resta nota. */
.porta { position: relative; }
.porta-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.porta-links a, .porta-links .porta-note { position: relative; z-index: 2; }
@supports selector(:has(*)) {
  .porta-link:focus-visible { outline: none; }
  .porta:has(.porta-link:focus-visible) { outline: 1px solid currentColor; outline-offset: 14px; }
}
.porta-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 0;
  font: 500 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: none;
}
.porta-links a span { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.porta-links a:hover span, .porta-links a:focus-visible span { transform: translateX(4px); }

@media (max-width: 860px) {
  .porte-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(64px, 14vw, 96px) 0; }
  .porta-slot { height: clamp(220px, 58vw, 300px); }
}

/* ── Manifesto · Corridoio · Principi · Adesso ─────────────
   Stesso foglio bianco, nessun separatore: la pagina è un'unica inquadratura. */
main { background: var(--paper); color: var(--wall); }
.porta-links .porta-note { display: inline-flex; padding: 7px 0; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: none; }

/* Primo frame dopo la soglia: apertura più ampia, poi l'altezza la decide il contenuto. */
.manifesto {
  padding: clamp(96px, calc(8vw + 6vh), 176px) var(--gutter) var(--section-pad);
  display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px);
}
.manifesto-text { font: 300 clamp(30px, 4.4vw, 68px)/1.08 var(--serif); letter-spacing: -.022em; max-width: 21ch; text-wrap: pretty; }
.manifesto-lead { align-self: flex-end; }

.corridoio { position: relative; }
.corridoio-stage {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(32px, 5vw, 80px); padding: var(--section-pad) var(--gutter);
}
.corridoio-text { display: flex; flex-direction: column; gap: 28px; }
.corridoio-art { position: relative; height: min(64vh, 620px); }
.corridoio-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.js .corridoio { height: 190vh; }
.js .corridoio-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.room-name { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; }
.room-role { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.07em; }

.principi { padding: var(--section-pad) var(--gutter); display: flex; flex-direction: column; gap: clamp(44px, 6vw, 80px); }
.principi-list { list-style: none; padding: 0; margin: 0; }
.principio {
  display: grid; grid-template-columns: 64px minmax(0, 6fr) minmax(0, 5fr); gap: 12px clamp(20px, 3vw, 48px);
  align-items: baseline; padding: clamp(24px, 3vw, 36px) 0; width: 100%;
}
.principio .num { color: var(--ink-3); }
.principio h3 { font: 300 clamp(22px, 2.4vw, 34px)/1.15 var(--serif); letter-spacing: -.015em; text-wrap: pretty; }
.principio p { font: 400 15px/1.6 var(--sans); color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.principio[data-ink] { display: grid; }

.adesso { padding: var(--section-pad) var(--gutter); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.adesso-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adesso .label { color: var(--ink-3); }
.adesso-list { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 30px); }
.adesso-list li { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); gap: 8px 32px; align-items: baseline; }
.adesso-name { font: 800 20px/1.2 var(--sans); letter-spacing: -.03em; }
.adesso-text { font: 300 clamp(20px, 2vw, 28px)/1.3 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
html:not(.js) .adesso-text a { border-bottom: 1px solid currentColor; }

/* ── Ritorno al muro ────────────────────────────────────── */
.exit-wrap { position: relative; height: 170vh; background: var(--paper); }
html:not(.js) .exit-wrap { display: none; }
.exit { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; background: var(--paper); }
.exit-stage { position: absolute; inset: 0; }
.exit-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.exit-black { position: absolute; inset: 0; background: var(--wall); opacity: 0; pointer-events: none; }

/* ── Parliamone ─────────────────────────────────────────── */
.contatto {
  min-height: 100vh; min-height: 100svh; background: var(--wall); color: var(--paper);
  padding: clamp(96px, 14vw, 200px) var(--gutter) max(40px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 96px;
}
.contatto-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.contatto .lead { color: rgba(255, 255, 255, .78); }
.email { align-self: flex-start; margin-top: 16px; font: 300 clamp(28px, 4.2vw, 60px)/1.1 var(--serif); letter-spacing: -.015em; padding-bottom: 8px; overflow-wrap: anywhere; }
.contatto-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.contatto-id, .contatto-meta { display: flex; flex-direction: column; gap: 10px; }
.contatto-meta { align-items: flex-end; }
.contatto .small { font: 400 11px/1.4 var(--mono); letter-spacing: .02em; text-transform: none; color: rgba(255, 255, 255, .62); }
.contatto .lang { letter-spacing: .2em; text-transform: uppercase; color: var(--paper); }

@media (max-width: 860px) {
  .corridoio-stage { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 28px; }
  .corridoio-text { gap: 18px; }
  .corridoio-text .lead { font-size: 14px; line-height: 1.55; }
  .corridoio-art { height: min(42vh, 380px); }
  .principio { grid-template-columns: 40px minmax(0, 1fr); }
  .principio p { grid-column: 2; }
  .adesso-list li { grid-template-columns: minmax(0, 1fr); }
  .contatto-meta { align-items: flex-start; }
}

/* ── Privacy (foglio bianco) e 404 (muro) ───────────────── */
.contatto a.plain { color: inherit; }
.contatto a.plain:hover { color: var(--paper); }
.doc { background: var(--paper); color: var(--wall); }
.doc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: clamp(18px, 2.6vw, 32px) var(--gutter); }
.doc-main { max-width: 760px; padding: clamp(56px, 8vw, 112px) var(--gutter) 48px; display: flex; flex-direction: column; gap: 20px; }
.doc-main .label { color: var(--ink-3); letter-spacing: .12em; }
.doc-body { display: flex; flex-direction: column; gap: 32px; padding-top: 28px; }
.doc-body h2 { font: 300 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); letter-spacing: -.01em; margin-bottom: 8px; }
.doc-body p { font: 400 15.5px/1.7 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.doc-body a { border-bottom: 1px solid currentColor; }
.doc-foot { padding: 48px var(--gutter) 72px; }
.doc-foot a { font-size: 11.5px; letter-spacing: .04em; text-transform: none; }

.lost { background: var(--wall); color: var(--paper); }
.lost-main { background: var(--wall); color: var(--paper); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 48px var(--gutter); text-align: center; }
.lost-door { width: auto; height: min(42vh, 320px); overflow: visible; }
.lost-text { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lost-en { color: rgba(255, 255, 255, .62); }
.lost-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding-top: 24px; }
.lost-links a { font-size: 11.5px; letter-spacing: .04em; text-transform: none; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .45); }

@media (prefers-reduced-motion: reduce) {
  .porta-links a span { transition: none; }
}
