/* Pietro Ripoli — bozza
   Bianco solo in apertura, poi sempre nero. Il colore sta nei video. */

:root {
  --bianco: #fff;
  --nero: #000;
  --testo: #f2f2f2;
  --tenue: #8e8e93;      /* il grigio delle etichette del cronometro */
  --titoli: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --corpo: "Instrument Sans", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --margine: clamp(18px, 2.6vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--nero); }

body {
  margin: 0;
  background: var(--nero);
  color: var(--testo);
  font-family: var(--corpo);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.solo-lettori {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Apertura: una scena ferma lunga cinque schermi ---------- */

.apertura {
  position: relative;
  height: 910vh;   /* TOTALE + 2 schermi: vedi SCHERMI in main.js (l'ultima resta ferma sotto gli attrezzi) */
}

.apertura__fermo {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--nero);
}

#scena, #nome {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#scena { z-index: 2; pointer-events: none; }
#nome  { z-index: 5; pointer-events: none; }

/* L'aura dietro il telefono: una tela piccola allargata (vedi muoviAura in main.js) */
.aura {
  position: absolute;
  left: -15%;
  top: -15%;
  width: 130%;
  height: 130%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  filter: saturate(1.25);
}

/* grana da pellicola sopra la scena */
.grana {
  position: absolute;
  inset: -50%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grana 0.5s steps(4) infinite;
}
@keyframes grana {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6%, 4%); }
  50%  { transform: translate(5%, -7%); }
  75%  { transform: translate(-3%, -4%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grana { animation: none; } }

/* Il nero dopo essere entrati nella fotocamera */
.buio {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--nero);
  opacity: 0;
  pointer-events: none;
}

/* Righe piccole sulla pagina bianca */
.bordo {
  position: absolute;
  z-index: 6;
  left: var(--margine);
  right: var(--margine);
  bottom: calc(var(--margine) + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--nero);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  pointer-events: none;
}

/* ---------- Dall'occhio al volto ---------- */

.ritratto {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  background: var(--nero);
  overflow: hidden;
}
/* il ritratto e lo zoom dall'occhio sono disegnati qui (main.js, dallOcchioAlVolto) */
.ritratto__tela {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Tipografia comune delle sezioni ---------- */

:root {
  --helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --linea: rgba(255, 255, 255, 0.14);
}

.titolo-sezione {
  margin: 0;
  font-family: var(--helvetica);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--bianco);
  text-wrap: balance;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--bianco); outline-offset: 3px; }

/* ---------- Barra in alto e "Skip intro" ---------- */

.barra {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: calc(14px + env(safe-area-inset-top)) var(--margine) 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.7), transparent);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease;
}
.barra.su { transform: none; opacity: 1; }
.barra__nome {
  font-family: var(--helvetica);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.barra__menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-size: 15px; }
.barra__menu a { text-decoration: none; color: var(--tenue); }
.barra__menu a:hover { color: var(--bianco); }
.barra__menu .barra__wa {
  color: var(--nero);
  background: var(--bianco);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
@media (max-width: 760px) {
  .barra__menu a:not(.barra__wa) { display: none; }
}

.salta {
  position: fixed;
  z-index: 40;
  right: var(--margine);
  bottom: calc(var(--margine) + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--tenue);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.salta.su { opacity: 1; pointer-events: auto; }
.salta:hover { color: var(--bianco); }

/* ---------- Lavori: il carosello col telefono ---------- */

.lavori {
  position: relative;
  z-index: 10;
  height: 460vh;            /* circa mezzo schermo di scroll per lavoro */
  margin-top: -100vh;       /* si sovrappone all'ultimo schermo dell'apertura: il passaggio è senza stacco */
}
:root {
  --schermo-h: min(80svh, 150vw);
  --schermo-ar: var(--ar-modello, 0.465);      /* le proporzioni dello schermo vero dell'iPhone */
  --schermo-w: calc(var(--schermo-h) * var(--schermo-ar));
}
.lavori__fermo {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--nero);
  opacity: 0;               /* compare solo quando prende il posto dell'apertura (sezioni.js) */
}
.misura-schermo { position: absolute; width: var(--schermo-w); height: var(--schermo-h); visibility: hidden; pointer-events: none; }
.cornice.cornice--apertura { z-index: 7; opacity: 0; }   /* sopra l'inquadratura e il nero, durante il ritiro */
.lavori__titolo {
  position: absolute;
  z-index: 5;
  top: calc(var(--margine) + 64px);
  left: var(--margine);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}
.lavori__palco {
  position: absolute;
  inset: 0;
  perspective: 1600px;
  perspective-origin: 50% 50%;
}
.lavoro {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--schermo-w);
  height: var(--schermo-h);
  margin: calc(var(--schermo-h) / -2) 0 0 calc(var(--schermo-w) / -2);
  border-radius: calc(var(--schermo-w) * var(--tel-raggio, 0.075));
  overflow: hidden;
  background: #111;
  will-change: transform, opacity;
  cursor: pointer;
}
.lavoro video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lavoro--ritratto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.lavoro--ritratto .ritratto__foto-carta { filter: contrast(1.14) brightness(0.42); transform: scale(var(--dolly-fine, 1.4)); }
.lavoro--ritratto .ritratto__sagoma-carta { filter: contrast(1.14) brightness(0.9); }
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .lavoro--ritratto img { object-position: 58% 50%; }
}
.lavori__titolo, .lavori__info, .lavori__conto, .lavori__suono { opacity: var(--testi, 1); }
.lavori__info.senza-tempo .lavori__etichetta,
.lavori__info.senza-tempo .lavori__tempo { visibility: hidden; }
.lavoro::after {                 /* scurisce quelli ai lati */
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--ombra, 0);
  pointer-events: none;
}

/* la cornice del telefono attorno al lavoro al centro */
/* La cornice è lo stesso iPhone 3D dell'apertura, fotografato di fronte al caricamento
   (main.js, fotografaTelefono): lo schermo è trasparente e coincide con il lavoro al centro.
   --tel-kw/--tel-kh: quanto il telefono è più grande dello schermo; --tel-dx/--tel-dy: lo
   spostamento del centro del telefono rispetto a quello dello schermo. */
.cornice {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: calc(var(--schermo-w) * var(--tel-kw, 1.07));
  height: calc(var(--schermo-h) * var(--tel-kh, 1.03));
  transform: translate(calc(-50% + var(--schermo-w) * var(--tel-dx, 0)), calc(-50% + var(--schermo-h) * var(--tel-dy, 0))) scale(var(--tel-s, 1));
  background: var(--telefono) center / 100% 100% no-repeat;
  pointer-events: none;
  visibility: hidden;
}
.con-telefono .cornice { visibility: visible; }

.lavori__info {
  position: absolute;
  z-index: 5;
  left: var(--margine);
  bottom: calc(var(--margine) + 8px);
  width: calc(50vw - var(--schermo-w) / 2 - var(--margine) - 32px);
}
.lavori__info p { margin: 0; }
.lavori__etichetta { font-size: 15px; color: var(--tenue); }
.lavori__tempo {
  font-family: var(--titoli);
  font-weight: 900;
  font-size: clamp(4rem, 8.6vw, 10rem);
  line-height: 0.84;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--bianco);
  margin: 6px 0 18px !important;
}
.lavori__minuti[data-da-confermare] { color: #4a4a4d; text-decoration: none; }
.lavori__nome {
  font-family: var(--helvetica);
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -0.025em;
}
.lavori__genere { color: var(--tenue); margin-top: 4px !important; }
.lavori__conto {
  position: absolute;
  z-index: 5;
  right: var(--margine);
  bottom: calc(var(--margine) + 8px);
  margin: 0;
  font-size: 15px;
  color: var(--tenue);
  font-variant-numeric: tabular-nums;
}
.lavori__suono {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc((100svh - var(--schermo-h)) / 2 - 34px);
  transform: translateX(-50%);
  margin: 0;
  font-size: 13px;
  color: var(--tenue);
  white-space: nowrap;
}

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  :root { --schermo-h: min(64svh, 136vw); --schermo-ar: 0.5625; }   /* sul telefono niente cornice: video interi 9:16 */
  .cornice { display: none; }               /* sul telefono la cornice sarebbe un telefono nel telefono */
  .lavori__titolo { top: calc(var(--margine) + 52px); }
  .lavori__info {
    width: auto;
    right: 30%;
    bottom: calc(var(--margine) + 4px);
  }
  .lavori__tempo { font-size: clamp(3.6rem, 19vw, 5rem); margin: 2px 0 8px !important; }
  .lavori__nome { font-size: 1.15rem; }
  .lavori__suono { display: none; }
}

/* ---------- I tre settori: slider a tessere (una larga, due a capsula) ---------- */

.settori {
  position: relative;
  height: 340vh;                 /* uno schermo abbondante di scroll per settore */
}
.settori__fermo {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: calc(var(--margine) + 64px) var(--margine) calc(var(--margine) + 8px);
}
.settori__titolo { text-align: center; font-size: clamp(1.6rem, 3vw, 2.8rem); }
.settori__palco { position: relative; flex: 1; min-height: 0; margin-top: clamp(14px, 3vh, 32px); }

.settore {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vh, 28px);
  opacity: 0;
  filter: blur(14px);
  transform: translateX(4vw);
  transition: opacity .7s ease, filter .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.settore.prima { transform: translateX(-4vw); }   /* quelli già visti escono a sinistra */
.settore.attivo { opacity: 1; filter: none; transform: none; pointer-events: auto; }

.settore__testa {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.settore__testa h3 {
  margin: 0;
  font-family: var(--helvetica);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  line-height: .95;
  letter-spacing: -0.04em;
  color: var(--bianco);
}
.settore__testa sup {
  font-size: .24em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: top;
  margin-right: .5em;
  color: var(--tenue);
  font-variant-numeric: tabular-nums;
}
.settore__testa p { margin: 0; max-width: 36ch; color: var(--tenue); text-align: right; }

.settore__tessere {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: clamp(10px, 1.2vw, 18px);
}
.settore__tessere > .tessera { flex: 1 1 0; min-width: 0; transition: flex-grow .7s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), opacity .6s ease; }
.settore__tessere > .tessera--larga { flex-grow: 2.2; }
/* col mouse: la tessera sotto il cursore diventa quella larga, le altre si stringono */
@media (hover: hover) {
  .settore__tessere:hover > .tessera { flex-grow: 1; }
  .settore__tessere:hover > .tessera:hover { flex-grow: 2.4; }
}
.tessera {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #111;
  border-radius: clamp(48px, 9vw, 170px);      /* strette = capsule, larga = rettangolo molto arrotondato */
}
/* entrano una dopo l'altra */
.settore .tessera { transform: translateY(3vh); opacity: 0; }
.settore.attivo .tessera { transform: none; opacity: 1; }
.settore.attivo .tessera:nth-child(2) { transition-delay: 0s, .08s, .08s; }   /* solo l'entrata è sfalsata, non l'allargamento */
.settore.attivo .tessera:nth-child(3) { transition-delay: 0s, .16s, .16s; }

/* l'indice dei tre capitoli: sempre visibile, la barra del capitolo in corso si riempie con lo scroll */
.capitoli {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: clamp(10px, 1.6vw, 24px);
  margin-top: clamp(18px, 3.5vh, 36px);
}
.capitolo {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tenue);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.capitolo__barra { display: block; height: 2px; background: var(--linea); overflow: hidden; }
.capitolo__barra i { display: block; height: 100%; width: calc(var(--riempi, 0) * 100%); background: var(--bianco); }
.capitolo__nome {
  font-family: var(--helvetica);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  letter-spacing: -0.02em;
  transition: color .3s ease;
}
.capitolo__nome sup { font-size: .6em; font-weight: 500; margin-right: .4em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.capitolo:hover .capitolo__nome, .capitolo.attivo .capitolo__nome { color: var(--bianco); }
.capitoli__frecce { display: flex; gap: 8px; }
.freccia {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: transparent;
  color: var(--bianco);
  cursor: pointer;
}
.freccia svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.freccia:hover { border-color: var(--bianco); }
.freccia:disabled { opacity: .3; cursor: default; }

@media (max-width: 760px) {
  .capitoli { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .capitoli__frecce { display: none; }
  .capitolo__nome { font-size: 13px; }
  .settore__testa { flex-direction: column; align-items: flex-start; gap: 8px; }
  .settore__testa p { text-align: left; font-size: 15px; }
  .settore__tessere { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.6fr 1fr; }
  .tessera { border-radius: 40px; }
  .tessera--larga { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .settore, .settore .tessera { transition: opacity .3s ease; filter: none; transform: none; }
}

/* ---------- Archivio a storie ---------- */

.archivio { padding: 22vh var(--margine) 10vh; text-align: center; }
.archivio__sotto { margin: 12px 0 0; color: var(--tenue); }
.archivio__cerchi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  max-width: 1100px;
  margin: clamp(32px, 5vh, 56px) auto 0;
}
.archivio__anche { margin: clamp(32px, 5vh, 52px) 0 0; color: var(--tenue); }
.cerchio {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--testo);
  font: inherit;
  cursor: pointer;
}
.cerchio__foto {
  width: clamp(96px, 11vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 4px;
  border: 1.5px solid rgba(255,255,255,.8);
  overflow: hidden;
}
.cerchio__foto img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.cerchio:hover .cerchio__foto { border-color: var(--bianco); }
.cerchio__nome { font-weight: 600; }
.cerchio__quanti { color: var(--tenue); font-size: 14px; margin-top: -8px; }

/* il visore */
.storie {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
}
.storie[hidden] { display: none; }
.storie__sfondo {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(.35);
}
.storie__cornice {
  position: relative;
  height: min(92svh, calc(100vw * 16 / 9));
  aspect-ratio: 9 / 16;
  max-width: 100vw;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}
.storie__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.storie__barre {
  position: absolute;
  z-index: 2;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  gap: 4px;
}
.storie__barra { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.storie__barra i { display: block; height: 100%; width: 0; background: #fff; }
.storie__testa {
  position: absolute;
  z-index: 2;
  top: 22px; left: 14px; right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.storie__chiudi {
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.storie__zona {
  position: absolute;
  z-index: 1;
  top: 70px; bottom: 0;
  width: 35%;
  border: 0;
  background: none;
  cursor: pointer;
}
.storie__zona--prima { left: 0; }
.storie__zona--dopo { right: 0; width: 65%; }
@media (max-width: 760px) {
  .storie__cornice { height: 100svh; border-radius: 0; }
}

/* ---------- Contatto e piede ---------- */

.contatto {
  padding: 20vh var(--margine) 18vh;
  text-align: center;
}
.contatto__titolo {
  margin: 0 auto;
  max-width: 12ch;
  font-family: var(--helvetica);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--bianco);
}
.contatto__wa {
  display: inline-block;
  margin-top: clamp(32px, 6vh, 56px);
  padding: 20px 34px;
  border-radius: 999px;
  background: var(--bianco);
  color: var(--nero);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  text-decoration: none;
}
.contatto__altro {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  color: var(--tenue);
}
.contatto__altro a { text-decoration: none; }
.contatto__altro a:hover { color: var(--bianco); }
[data-da-confermare] { text-decoration: underline dashed rgba(255,255,255,.35); text-underline-offset: 5px; }
.contatto__wa[data-da-confermare] { text-decoration: none; }

.piede {
  display: flex;
  justify-content: space-between;
  padding: 24px var(--margine) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea);
  color: var(--tenue);
  font-size: 14px;
}
.piede p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .barra, .salta { transition: none; }
}

/* ------------------------------------------------------------------ */
/* "One phone.": gli attrezzi che diventano il telefono                */
/* ------------------------------------------------------------------ */
.uno {
  position: relative;
  margin-top: -200vh;      /* si posa sopra l'apertura ferma sul ritratto: stesso fotogramma, niente stacco */
  height: 1500vh;          /* la vera altezza la calcola oggetti.js (dipende dal numero di lavori) */
}
.uno__fermo {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--nero);
}
.uno__tela {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.uno__prima {
  position: absolute;
  left: 0; right: 0;
  bottom: 7vh;
  margin: 0;
  text-align: center;
  font-family: var(--helvetica);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--bianco);
  opacity: 0;
  pointer-events: none;
  padding: 0 var(--margine);
}
.uno__voce {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--helvetica);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.uno__titolo {
  position: absolute;
  left: 0; right: 0;
  bottom: 9vh;
  text-align: center;
  font-size: clamp(2.6rem, 7vw, 7rem);
  opacity: 0;
  pointer-events: none;
}
.uno__nero {
  position: absolute;
  inset: 0;
  background: var(--nero);
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Il caricamento                                                      */
/* ------------------------------------------------------------------ */
.sta-caricando, .sta-caricando body { overflow: hidden; }
.carica {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: #fff;
  color: #000;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.carica.via { opacity: 0; visibility: hidden; }
.carica__crono {
  margin: 0;
  font-family: var(--helvetica);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.carica__barra {
  display: block;
  width: 120px;
  height: 2px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.carica__barra i {
  display: block;
  height: 100%;
  background: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.uno__lampo {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #fff8ec 0%, rgba(255, 244, 228, 0.5) 30%, rgba(255, 240, 220, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.uno__dato {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.uno__dato i {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  order: 0;
}
.uno__dato.a-sinistra { flex-direction: row-reverse; }
.uno__conto {
  position: absolute;
  left: var(--margine);
  bottom: var(--margine);
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 760px) {
  .uno__dato { font-size: 0.62rem; gap: 6px; }
  .uno__dato i { width: 18px; }
}

/* ------------------------------------------------------------------ */
/* I lavori recenti, dentro la scena "One phone." (oggetti.js)         */
/* ------------------------------------------------------------------ */
.uno__ancora { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.uno__lavori {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
/* un'ombra dietro i testi, così si leggono sopra la parete di video */
.uno__lavori::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0) 26%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0, rgba(0, 0, 0, 0) 42%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0) 40%);
  pointer-events: none;
}
.uno__lavori > * { position: absolute; }
.uno__lavori-titolo {
  position: absolute;
  top: calc(var(--margine) + 64px);
  left: var(--margine);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}
.uno__info {
  position: absolute;
  left: var(--margine);
  bottom: calc(var(--margine) + 8px);
  max-width: 30vw;
}
.uno__info p { margin: 0; }
.uno__etichetta { font-size: 15px; color: var(--tenue); }
.uno__tempo {
  font-family: var(--titoli);
  font-weight: 900;
  font-size: clamp(4rem, 8.6vw, 10rem);
  line-height: 0.84;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--bianco);
  margin: 6px 0 18px !important;
}
.uno__minuti[data-da-confermare] { color: #4a4a4d; }
.uno__nome {
  font-family: var(--helvetica);
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -0.025em;
}
.uno__genere { color: var(--tenue); margin-top: 4px !important; }
.uno__conto-lavori {
  position: absolute;
  right: var(--margine);
  bottom: calc(var(--margine) + 8px);
  margin: 0;
  font-size: 15px;
  color: var(--tenue);
  font-variant-numeric: tabular-nums;
}
.uno__suono {
  position: absolute;
  left: 50%;
  bottom: calc(var(--margine) + 8px);
  transform: translateX(-50%);
  margin: 0;
  font-size: 13px;
  color: var(--tenue);
  white-space: nowrap;
}
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .uno__lavori-titolo { top: calc(var(--margine) + 52px); }
  .uno__info { max-width: none; right: 30%; bottom: calc(var(--margine) + 4px); }
  .uno__tempo { font-size: clamp(3.6rem, 19vw, 5rem); margin: 2px 0 8px !important; }
  .uno__nome { font-size: 1.15rem; }
  .uno__suono { display: none; }
}
