/* Flare, concept site by Davide Lo Bartolo */

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/host-grotesk-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/host-grotesk-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;
}

/* fallback metrics while Host Grotesk loads */
@font-face {
  font-family: "Host Grotesk ripiego";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  font-weight: 100 549;
  size-adjust: 104.5%;
  ascent-override: 97.6%;
  descent-override: 30.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Host Grotesk ripiego";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  font-weight: 550 1000;
  size-adjust: 96.8%;
  ascent-override: 105.4%;
  descent-override: 33.1%;
  line-gap-override: 0%;
}

:root {
  --grigio: #767676;
  --nero: #0b0b0b;
  --bianco: #f2f1ed;
  --verde: #2bd46b;
  --rosso: #ff2b2b;
  /* safe areas */
  --m: max(clamp(12px, 1.8vw, 28px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --sa-alto: env(safe-area-inset-top, 0px);
  --sa-basso: env(safe-area-inset-bottom, 0px);
  --alto: calc(48px + var(--sa-alto));
  --basso: calc(40px + var(--sa-basso));
  --esce: cubic-bezier(0.16, 1, 0.3, 1);
  --dentro: cubic-bezier(0.7, 0, 0.2, 1);
  --inchiostro: #000;
  --linea: rgba(11, 11, 11, 0.5);
  --righe: var(--bianco);
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
}
html[data-tema="nero"],
html[data-tema="immagine"] {
  --inchiostro: var(--bianco);
  --linea: rgba(242, 241, 237, 0.32);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--grigio);
  color: var(--inchiostro);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition: background-color 0.7s var(--esce), color 0.5s var(--esce);
}
body {
  margin: 0;
  font-family: "Host Grotesk", "Host Grotesk ripiego", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, label, select { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  a:active, button:active { opacity: 0.7; }
}
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
::selection { background: var(--verde); color: var(--nero); }

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.salta {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--nero);
  color: var(--bianco);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-200%);
}
.salta:focus { transform: none; }

/* projector and cursor */

.proiettore {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
main { position: relative; z-index: 1; }
.gl .quadro > img,
.gl .quadro > video { opacity: 0; }

.af {
  --x: -100px;
  --y: -100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 30px;
  height: 22px;
  pointer-events: none;
  transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%);
  transition: width 0.35s var(--esce), height 0.35s var(--esce), opacity 0.3s;
  background:
    linear-gradient(var(--bianco), var(--bianco)) 0 0 / 7px 1px,
    linear-gradient(var(--bianco), var(--bianco)) 0 0 / 1px 7px,
    linear-gradient(var(--bianco), var(--bianco)) 100% 0 / 7px 1px,
    linear-gradient(var(--bianco), var(--bianco)) 100% 0 / 1px 7px,
    linear-gradient(var(--bianco), var(--bianco)) 0 100% / 7px 1px,
    linear-gradient(var(--bianco), var(--bianco)) 0 100% / 1px 7px,
    linear-gradient(var(--bianco), var(--bianco)) 100% 100% / 7px 1px,
    linear-gradient(var(--bianco), var(--bianco)) 100% 100% / 1px 7px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
  opacity: 0;
}
.af.is-vivo { opacity: 1; }
.af.is-quadro { width: 58px; height: 42px; }
.af.is-link { width: 18px; height: 18px; }
.af.is-caccia { animation: caccia 0.36s var(--esce); }
@keyframes caccia {
  30% { transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%) scale(1.25); }
  60% { transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%) scale(0.9); }
}
.af__testo {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  color: var(--bianco);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.85);
  transform: translateX(-50%);
}
@media (hover: none), (pointer: coarse) {
  .af { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  html.anima.af-vivo,
  html.anima.af-vivo * { cursor: none; }
}

/* viewfinder */

.mirino {
  --fw: 70vw;
  --fh: 60vh;
  --mx: 50%;
  --my: 50%;
  position: fixed;
  inset: 0;
  z-index: 20;
  color: var(--righe);
  pointer-events: none;
  transition: opacity 0.35s var(--esce);
}
.mirino.is-spento { opacity: 0; }
.mirino.is-legato .mirino__sicuro { display: none; }
.mirino__angolo {
  position: absolute;
  top: var(--my);
  left: var(--mx);
  width: 20px;
  height: 20px;
  border: 0 solid currentColor;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}
.mirino__angolo--1 { border-width: 1px 0 0 1px; transform: translate(calc(var(--fw) / -2), calc(var(--fh) / -2)); }
.mirino__angolo--2 { border-width: 1px 1px 0 0; transform: translate(calc(var(--fw) / 2 - 100%), calc(var(--fh) / -2)); }
.mirino__angolo--3 { border-width: 0 0 1px 1px; transform: translate(calc(var(--fw) / -2), calc(var(--fh) / 2 - 100%)); }
.mirino__angolo--4 { border-width: 0 1px 1px 0; transform: translate(calc(var(--fw) / 2 - 100%), calc(var(--fh) / 2 - 100%)); }
.mirino__sicuro {
  position: absolute;
  top: var(--my);
  left: var(--mx);
  width: calc(var(--fw) * 0.9);
  height: calc(var(--fh) * 0.9);
  outline: 1px dashed currentColor;
  opacity: 0.14;
  transform: translate(-50%, -50%);
}
.mirino__croce {
  position: absolute;
  top: var(--my);
  left: var(--mx);
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: 0.8;
  transform: translate(-50%, -50%);
}

/* header and status bar */

.testata,
.dati {
  position: fixed;
  right: 0;
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 var(--m);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.5s var(--esce), border-color 0.5s var(--esce);
}
.testata { top: 0; height: var(--alto); padding-top: var(--sa-alto); border-bottom: 1px solid var(--linea); }
.dati { bottom: 0; height: var(--basso); padding-bottom: var(--sa-basso); border-top: 1px solid var(--linea); pointer-events: none; font-variant-numeric: tabular-nums; }
.dati { grid-template-columns: 1fr auto; }
.testata,
.dati { background: transparent; transition: color 0.5s var(--esce), border-color 0.5s var(--esce), background-color 0.7s var(--esce); }
html:not([data-tema]) .testata,
html:not([data-tema]) .dati,
html[data-tema="grigio"] .testata,
html[data-tema="grigio"] .dati { background: var(--grigio); }
html[data-tema="nero"] .testata,
html[data-tema="nero"] .dati { background: var(--nero); }
.testata__logo { position: relative; display: flex; align-items: baseline; gap: 10px; justify-self: start; text-decoration: none; }
.testata__logo::before { content: ""; position: absolute; inset: -14px -12px; }
.testata__logo b { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.testata__logo span { opacity: 0.75; }
.testata__piano { display: flex; gap: 10px; justify-self: center; white-space: nowrap; }
.testata__n { opacity: 0.7; font-variant-numeric: tabular-nums; }
.testata__nav { display: flex; gap: clamp(12px, 1.6vw, 24px); justify-self: end; }
.testata__nav a { position: relative; text-decoration: none; }
.testata__nav a::before { content: ""; position: absolute; inset: -16px -6px; }
.testata__nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--esce);
}
@media (hover: hover) {
  .testata__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
}
.dati__tc { justify-self: start; white-space: nowrap; }
.dati__rec {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--rosso);
  vertical-align: 0;
  animation: rec 1.2s steps(2, jump-none) infinite;
}
@keyframes rec { 50% { opacity: 0.15; } }
.dati__formato { display: flex; gap: 14px; justify-self: end; white-space: nowrap; }
@media (max-width: 760px) {
  .testata__logo span { display: none; }
  .testata__nav { display: none; }
  .testata__logo { padding: 14px 12px; margin: -14px -12px; }
  .testata__logo::before { content: none; }
}
@media (max-width: 400px) {
  .dati__formato span:nth-child(2) { display: none; }
}

/* phone menu */

.testata__menu { display: none; }
@media (max-width: 760px) {
  .testata__menu { display: block; justify-self: end; padding: 16px 12px; margin: -16px -12px; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 500; line-height: 1.2; color: inherit; cursor: pointer; }
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  align-content: space-between;
  padding: calc(var(--alto) + var(--s4)) var(--m) calc(var(--basso) + var(--s3));
  background: var(--nero);
  color: var(--bianco);
}
.menu[hidden] { display: none; }
.menu ol { margin: 0; padding: 0; list-style: none; }
.menu li { border-top: 1px solid rgba(242, 241, 237, 0.32); }
.menu li:last-child { border-bottom: 1px solid rgba(242, 241, 237, 0.32); }
.menu li a {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  min-height: 64px;
  padding: 18px 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.menu li a span { width: 3.2em; font-size: 11px; font-weight: 500; letter-spacing: 0; opacity: 0.55; font-variant-numeric: tabular-nums; }
.menu__nota { max-width: 30ch; font-size: 13px; line-height: 1.5; opacity: 0.7; }
.menu__nota a { position: relative; padding: 14px 0; }
html.menu-aperto { overflow: hidden; }
html.menu-aperto .testata,
html.menu-aperto .dati { background: var(--nero); color: var(--bianco); }
html.menu-aperto .testata { border-bottom-color: rgba(242, 241, 237, 0.32); }
html.menu-aperto .dati { border-top-color: rgba(242, 241, 237, 0.32); }

/* shot timeline */

.linea { display: none; }
.anima .linea {
  position: fixed;
  top: calc(var(--alto) + 22px);
  right: calc(var(--m) - 2px);
  bottom: calc(var(--basso) + 22px);
  z-index: 26;
  display: block;
  width: 40px;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.linea::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--linea);
}
.linea ol { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; opacity: var(--sigle, 1); }
.linea.is-muta ol { pointer-events: none; }
.linea:focus-within ol { opacity: 1; pointer-events: auto; }
.linea li { position: absolute; right: 0; top: calc(var(--pos, 0) * 100%); transform: translateY(-50%); }
.linea a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.linea a::after { content: ""; width: 7px; height: 1px; background: currentColor; }
.linea a.is-ora { opacity: 1; }
@media (hover: hover) {
  .linea a:hover { opacity: 1; }
}
.linea__testina {
  position: absolute;
  top: calc(var(--p, 0) * 100%);
  right: -3px;
  width: 7px;
  height: 2px;
  background: var(--rosso);
  pointer-events: none;
}
@media (max-width: 760px), (max-height: 560px), (max-width: 900px) and (min-height: 501px), (max-aspect-ratio: 1/1) {
  .anima .linea { display: none; }
}
html.anima { scrollbar-width: none; }
html.anima::-webkit-scrollbar { display: none; }

/* loader */

.rullo { display: none; }
.carica .rullo {
  --Q: 250px;
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
  overflow: hidden;
  background: var(--grigio);
  color: var(--nero);
}
.rullo.is-via { opacity: 0; transition: opacity 0.6s var(--esce); }
.rullo__alto {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  height: var(--alto);
  padding: var(--sa-alto) var(--m) 0;
  border-bottom: 1px solid transparent;
}
.rullo__logo { display: flex; align-items: baseline; gap: 10px; }
.rullo__logo b { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.rullo__logo span { font-size: 11px; font-weight: 500; opacity: 0.75; }
.rullo__segue { position: absolute; inset: 0; z-index: 1; will-change: transform; }
.rullo__quadro {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: var(--Q);
  height: var(--Q);
  overflow: hidden;
  background: var(--nero);
  transform: translate(-50%, -50%);
}
.rullo__quadro img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
  will-change: transform;
}
.rullo__quadro img.is-su,
.rullo__quadro:not(.is-vivo) img:first-child { visibility: visible; }
.rullo__quadro .rullo__ultimo { object-position: 56% 52%; }
.rullo__buio { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; }
.rullo__angoli {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: calc(var(--Q) + 20px);
  height: calc(var(--Q) + 20px);
  color: var(--bianco);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.rullo__angoli i { position: absolute; width: 20px; height: 20px; border: 0 solid currentColor; }
.rullo__angoli i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.rullo__angoli i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.rullo__angoli i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.rullo__angoli i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.rullo__dida {
  position: absolute;
  top: calc(50% - var(--Q) / 2 - 34px);
  left: calc(50% - var(--Q) / 2);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  width: var(--Q);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rullo__dida span:first-child { font-weight: 700; }
.rullo__conta {
  position: absolute;
  top: calc(50% + var(--Q) / 2 + 24px);
  left: calc(50% - var(--Q) / 2);
  z-index: 2;
  margin-left: -0.045em;
  font-size: clamp(40px, 3.6vw, 56px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.rullo__zeri { opacity: 0.24; }
.rullo__conta small { margin-left: 0.06em; font-size: 0.3em; font-weight: 600; letter-spacing: 0; vertical-align: top; }
@media (max-width: 760px) {
  .rullo__logo span { display: none; }
}

/* frames */

.quadro { position: relative; margin: 0; overflow: hidden; background: rgba(0, 0, 0, 0.12); }
.gl .quadro { background: transparent; }
.quadro > img,
.quadro > video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* scenes */

.scena { position: relative; }
.palco { position: relative; min-height: 100vh; }
.anima .scena { height: var(--altezza, 300vh); }
.anima .palco { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }

/* extreme long shot */

.apertura { --altezza: 290vh; }
.quadro--pieno { position: absolute; inset: 0; }
.bande span {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  height: var(--banda, 0px);
  background: var(--nero);
}
.bande span:first-child { top: 0; }
.bande span:last-child { bottom: 0; }

.marchio {
  position: absolute;
  top: 50%;
  right: var(--m);
  left: var(--m);
  z-index: 2;
  color: var(--bianco);
  filter: blur(calc(var(--marchio-sfoco, 0) * 1px));
  opacity: var(--marchio-alfa, 1);
  transform: translateY(-54%);
}
.marchio__riga {
  --H: calc((100vw - 2 * var(--m) - 4 * 6px) / 8.35);
  display: flex;
  justify-content: center;
  gap: 6px;
  transform: scaleX(var(--squeeze, 1));
  transform-origin: 50% 50%;
}
.marchio__formato {
  position: relative;
  flex: none;
  width: calc(var(--H) * var(--r));
  height: var(--H);
  border: 1px solid currentColor;
}
.marchio__formato i {
  position: absolute;
  top: 5px;
  left: 6px;
  z-index: 1;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.marchio__formato b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: calc(var(--H) * 1.05);
  font-weight: 800;
  line-height: 1;
}
.marchio__formato canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.marchio__formato.is-disegnato b { visibility: hidden; }

.apertura__sotto,
.apertura__giu,
.apertura__dopo {
  position: absolute;
  z-index: 3;
  color: var(--bianco);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.apertura__sotto {
  top: calc(50% + var(--H-marchio, 15vw) / 2 + 18px);
  left: var(--m);
  max-width: 32ch;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 450;
  text-wrap: balance;
  opacity: var(--marchio-alfa, 1);
}
.apertura__giu {
  bottom: calc(var(--basso) + 18px);
  left: 50%;
  font-size: 11px;
  font-weight: 500;
  opacity: var(--marchio-alfa, 1);
  transform: translateX(-50%);
}
.apertura__giu::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  margin: 8px auto 0;
  background: currentColor;
  transform-origin: 50% 0;
  animation: scendi 1.6s var(--esce) infinite;
}
@keyframes scendi {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: 50% 0; }
  51% { transform-origin: 50% 100%; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}
.apertura__dopo {
  right: var(--m);
  bottom: calc(var(--basso) + 7vh);
  max-width: 16ch;
  font-size: clamp(30px, 4.4vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-align: right;
  opacity: var(--dopo, 0);
  transform: translateY(calc((1 - var(--dopo, 0)) * 24px));
}

@media (max-aspect-ratio: 4/5) {
  .marchio__formato i { display: none; }
}
@media (max-width: 900px) and (min-height: 501px), (max-aspect-ratio: 1/1) {
  .anima .apertura__dopo { top: var(--dopo-y, calc(50% + 50vw / 2.39 + 22px)); bottom: auto; font-size: clamp(34px, 4.4vw, 72px); }
  .rullo__quadro .rullo__ultimo { object-position: 72% 100%; }
}
@media (min-aspect-ratio: 1001/1000) and (max-height: 500px) {
  .marchio__formato i { display: none; }
}

/* long shot */

.indice { padding: calc(var(--alto) + 14vh) var(--m) 22vh; }
.indice__testa {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--m);
  align-items: end;
  margin-bottom: 10vh;
}
.indice__t {
  grid-column: 1 / 8;
  font-size: clamp(76px, 17vw, 290px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.055em;
}
.indice__n { grid-column: 8 / 9; align-self: start; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.indice__nota { grid-column: 10 / 13; max-width: 28ch; font-size: 15px; font-weight: 450; }
.colonne { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--m); align-items: start; }
.colonna { display: grid; gap: 16vh; }
.colonna:nth-child(2) { margin-top: 22vh; }
.colonna:nth-child(3) { margin-top: 9vh; }
.tessera { display: block; color: inherit; text-decoration: none; }
.tessera .quadro { aspect-ratio: var(--r, 1.78); }
.tessera__dida {
  display: grid;
  grid-template-columns: 2.2em 1fr auto auto;
  gap: 14px;
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--linea);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.tessera__dida span:nth-child(2) { font-weight: 700; }
.tessera__dida span:nth-child(3) { opacity: 0.7; }
.lavoro { display: block; }
.tessera__piu,
.tessera__piega { display: none; }
@media (max-width: 900px) and (min-height: 501px), (max-aspect-ratio: 1/1) {
  .indice { padding: calc(var(--alto) + var(--s5)) var(--m) var(--s6); }
  .indice__testa { grid-template-columns: 1fr; gap: var(--s2); margin-bottom: var(--s5); }
  .indice__t,
  .indice__nota { grid-column: 1 / -1; }
  .indice__n,
  .indice__nota [data-solo-largo] { display: none; }
  .colonne { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--s5) var(--s3); }
  .colonna { display: contents; }
  .tessera .quadro { aspect-ratio: var(--rc, var(--r, 1.78)); }
  .tessera__dida { grid-template-columns: 2.2em 1fr auto auto; gap: var(--s1) var(--s2); margin-top: var(--s2); padding-top: 0; border-top: 0; font-size: 12px; }
  .tessera[data-vai-progetto] .tessera__dida { grid-template-columns: 2.2em 1fr auto auto 12px; }
  .tessera__piu {
    display: block;
    width: 12px;
    height: 12px;
    align-self: center;
    background:
      linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
      linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
    transition: transform 0.4s var(--esce);
  }
  .lavoro.is-aperta .tessera__piu { transform: rotate(45deg); }
  .colonna:nth-child(1) > :nth-child(1) { order: 1; }
  .colonna:nth-child(2) > :nth-child(1) { order: 2; }
  .colonna:nth-child(3) > :nth-child(1) { order: 3; }
  .colonna:nth-child(1) > :nth-child(2) { order: 4; }
  .colonna:nth-child(2) > :nth-child(2) { order: 5; }
  .colonna:nth-child(3) > :nth-child(2) { order: 6; }
  .colonna:nth-child(1) > :nth-child(3) { order: 7; }
  .colonna:nth-child(2) > :nth-child(3) { order: 8; }
  .js .tessera__piega:not([hidden]) { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--esce); }
  .lavoro.is-aperta .tessera__piega { grid-template-rows: 1fr; }
  .tessera__piega-dentro { overflow: hidden; }
  .lavoro .tessera__piega .scheda { max-height: none; padding: var(--s2) 0 var(--s1); overflow: visible; transition: none; }
  .lavoro .tessera__piega .scheda > div { display: grid; grid-template-columns: 5.6em 1fr; gap: 10px; font-size: 13px; line-height: 1.5; }
  .lavoro .tessera__piega .scheda dd { text-wrap: pretty; }
}

/* medium shot: projection */

.proiezione { --altezza: 460vh; }
.proiezione .palco {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--m);
  padding: calc(var(--alto) + 5vh) var(--m) calc(var(--basso) + 5vh);
}
.elenco { grid-column: 1 / 5; align-self: center; list-style: none; }
.progetto { padding: 10px 0; border-top: 1px solid var(--linea); }
.progetto:last-child { border-bottom: 1px solid var(--linea); }
.progetto__t {
  font-size: clamp(20px, 1.9vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.5;
  transition: opacity 0.4s var(--esce);
}
.progetto__t button {
  all: unset;
  display: flex;
  gap: 14px;
  align-items: baseline;
  width: 100%;
  cursor: pointer;
}
.progetto__t button:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
@media (hover: hover) {
  .progetto:not(.is-ora) .progetto__t:hover { opacity: 0.8; }
}
.progetto__t > * > span { width: 2.2em; font-size: 11px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.progetto.is-ora .progetto__t { opacity: 1; }
.scheda {
  max-height: 0;
  overflow: hidden;
  padding-left: 2.9em;
  transition: max-height 0.6s var(--esce), padding 0.6s var(--esce);
}
.scheda > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.progetto.is-ora .scheda { max-height: 16em; padding-top: 10px; padding-bottom: 4px; }
.scheda dt { opacity: 0.65; }
.schermo {
  position: relative;
  grid-column: 5 / 13;
  display: grid;
  place-items: center;
  height: calc(100svh - var(--alto) - var(--basso) - 14vh);
  align-self: center;
}
.quadro--schermo { width: var(--sw, 100%); height: var(--sh, 100%); }
.quadro--schermo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(242, 241, 237, 0.18);
  pointer-events: none;
}
.numeri { display: none; }
html:not(.js) .scheda { max-height: none; padding-top: 10px; }

@media (max-width: 900px) and (min-height: 501px), (max-aspect-ratio: 1/1), (min-aspect-ratio: 1001/1000) and (max-height: 500px) {
  .proiezione .palco { align-content: stretch; }
  .schermo { height: auto; min-height: 0; padding-bottom: 0; align-self: stretch; }
  .elenco { display: grid; }
  .progetto,
  .progetto:last-child { padding: 0; border: 0; }
  .js .progetto { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--esce), visibility 0s 0.3s; }
  .js .progetto.is-ora { opacity: 1; visibility: visible; transition: opacity 0.5s var(--esce) 0.12s, visibility 0s; }
  html:not(.js) .progetto + .progetto { margin-top: 28px; }
  .progetto__t { font-size: 28px; opacity: 1; }
  .progetto__t > * > span { display: none; }
  .scheda,
  .progetto.is-ora .scheda { max-height: none; padding: 10px 0 0; overflow: visible; }
  .scheda > div { grid-template-columns: 5.6em 1fr; font-size: 13px; line-height: 1.5; }
  .scheda dd { text-wrap: pretty; }
  .scheda > div:nth-child(2) { display: none; }
  .js .numeri { display: grid; grid-template-columns: repeat(6, 1fr); }
  .numeri button {
    all: unset;
    box-sizing: border-box;
    height: 44px;
    padding-top: 10px;
    border-top: 1px solid var(--linea);
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s var(--esce), border-color 0.3s var(--esce);
  }
  .numeri button.is-ora { border-top: 2px solid currentColor; padding-top: 9px; font-weight: 700; opacity: 1; }
  .numeri button:focus-visible { outline: 2px solid var(--verde); outline-offset: -2px; }
}
@media (max-width: 900px) and (min-height: 501px), (max-aspect-ratio: 1/1) {
  .js .proiezione { display: none; }
  .proiezione .palco { grid-template-rows: minmax(0, 1fr) auto auto auto minmax(0, 1fr); padding: calc(var(--alto) + var(--s3)) var(--m) calc(var(--basso) + var(--s3)); }
  .schermo { grid-column: 1 / -1; grid-row: 2; align-self: start; }
  .elenco { grid-column: 1 / -1; grid-row: 3; margin-top: var(--s3); }
  .scheda,
  .progetto.is-ora .scheda { padding-top: var(--s1); }
  .numeri { grid-column: 1 / -1; grid-row: 4; margin-top: var(--s3); }
}
@media (min-aspect-ratio: 1001/1000) and (max-height: 500px) {
  .proiezione .palco { grid-template-rows: minmax(0, 1fr) auto; padding: calc(var(--alto) + 14px) var(--m) calc(var(--basso) + 12px); }
  .schermo { grid-column: 6 / 13; grid-row: 1 / span 2; margin-bottom: 28px; }
  .elenco { grid-column: 1 / 6; grid-row: 1; align-self: end; }
  .numeri { grid-column: 1 / 6; grid-row: 2; margin-top: 14px; }
  .progetto__t { font-size: 24px; }
}

/* close-up */

.luce { --altezza: 400vh; }
.luce .palco {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 var(--m);
  padding: calc(var(--alto) + 4vh) var(--m) calc(var(--basso) + 3vh);
}
.luce__t {
  grid-column: 1 / 7;
  font-size: clamp(34px, 4.6vw, 76px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.quadro--luce {
  grid-column: 1 / 10;
  grid-row: 2;
  align-self: center;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1.85;
  margin-top: 3vh;
}
.strumenti {
  grid-column: 10 / 13;
  grid-row: 2;
  align-self: center;
  display: grid;
  gap: 0;
  list-style: none;
}
.strumenti li { padding: 12px 0; border-top: 1px solid var(--linea); opacity: 0.55; transition: opacity 0.4s var(--esce); }
.strumenti li:last-child { border-bottom: 1px solid var(--linea); }
.strumenti li.is-ora { opacity: 1; }
.strumenti button { all: unset; display: block; width: 100%; cursor: pointer; }
.strumenti button:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; }
.strumenti__t { display: flex; gap: 10px; align-items: baseline; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.strumenti__t span { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; font-size: 11px; font-weight: 600; }
.strumenti__p { display: block; max-width: 30ch; margin-top: 6px; font-size: 14px; text-wrap: pretty; }
@media (hover: hover) {
  .strumenti li:not(.is-ora):hover { opacity: 0.8; }
}
@media (max-width: 900px) and (min-height: 501px), (max-aspect-ratio: 1/1), (min-aspect-ratio: 1001/1000) and (max-height: 500px) {
  .strumenti li { padding: 0; }
  .strumenti button { box-sizing: border-box; min-height: 52px; padding: 16px 0 15px; }
  .strumenti__t span { font-size: 11px; }
  .strumenti__p { display: none; max-width: 42ch; font-size: 14px; }
  .strumenti li.is-ora .strumenti__p { display: block; margin-bottom: 2px; }
}
@media (max-width: 900px) and (min-height: 501px), (max-aspect-ratio: 1/1) {
  .luce .palco { grid-template-rows: auto auto auto; align-content: center; padding: calc(var(--alto) + var(--s3)) var(--m) calc(var(--basso) + var(--s3)); }
  .luce__t { grid-column: 1 / -1; text-wrap: balance; }
  .quadro--luce { grid-column: 1 / -1; grid-row: 2; margin-top: var(--s4); aspect-ratio: var(--r-tel, 1.85); }
  .strumenti { grid-column: 1 / -1; grid-row: 3; align-self: start; min-height: calc(4 * 53px + 2 * 14px * 1.35 + 8px); margin-top: var(--s3); }
}
@media (min-aspect-ratio: 1001/1000) and (max-height: 500px) {
  .luce .palco { grid-template-rows: auto auto minmax(0, 1fr); padding: calc(var(--alto) + 12px) var(--m) calc(var(--basso) + 12px); }
  .luce__t { grid-column: 1 / -1; }
  .quadro--luce { grid-column: 1 / 7; grid-row: 2; align-self: start; margin-top: 12px; }
  .strumenti { grid-column: 8 / 13; grid-row: 2 / 4; align-self: start; margin-top: 12px; }
}

/* detail */

.grana { --altezza: 300vh; }
.grana .palco {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--m);
  align-items: center;
  padding: calc(var(--alto) + 4vh) var(--m) calc(var(--basso) + 4vh);
}
.quadro--macro {
  grid-column: 7 / 13;
  grid-row: 1;
  width: min(100%, calc(100svh - var(--alto) - var(--basso) - 8vh));
  aspect-ratio: 1;
  justify-self: end;
}
.manifesto { position: relative; z-index: 2; grid-column: 1 / 7; grid-row: 1; }
.manifesto__t { margin-bottom: 18px; font-size: 12px; font-weight: 500; }
.manifesto__testo {
  font-size: clamp(24px, 2.7vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}
.bandiere { position: absolute; inset: -4vh 0; z-index: 3; overflow: hidden; pointer-events: none; }
.bandiera { position: absolute; left: 0; display: block; background: var(--nero); }
.bandiera--1 { top: 12%; width: 58%; height: 15%; margin-left: -58%; }
.bandiera--2 { top: 38%; width: 34%; height: 22%; margin-left: -34%; }
.bandiera--3 { top: 70%; width: 46%; height: 10%; margin-left: -46%; }
@media (max-width: 900px) and (min-height: 501px), (max-aspect-ratio: 1/1) {
  .grana .palco { align-content: center; gap: var(--s4) var(--m); padding-top: calc(var(--alto) + var(--s3)); padding-bottom: calc(var(--basso) + var(--s3)); }
  .quadro--macro { grid-column: 1 / -1; grid-row: 1; width: min(100%, var(--lato, 36svh)); justify-self: start; }
  .manifesto { grid-column: 1 / -1; grid-row: 2; }
  .manifesto__t { margin-bottom: var(--s2); }
  .manifesto__testo { font-size: clamp(22px, 6vw, 32px); }
}
.quadro--macro .bandiere { inset: 0; z-index: 1; }
.quadro--macro .bandiera {
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 11, 11, 0), rgba(11, 11, 11, 0.86) 28%, rgba(11, 11, 11, 0.86) 72%, rgba(11, 11, 11, 0));
}

/* reverse shot */

.controcampo {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5vh var(--m);
  min-height: 100vh;
  padding: calc(var(--alto) + 14vh) var(--m) calc(var(--basso) + 12vh);
  align-content: center;
}
.controcampo__t {
  grid-column: 1 / -1;
  font-size: clamp(54px, 13.5vw, 230px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.055em;
  text-align: right;
}
.controcampo__t span { display: inline-block; transform: scaleX(var(--specchio, 1)); }
.controcampo__testo { grid-column: 1 / 7; align-self: end; display: grid; gap: 4vh; }
.controcampo__invito { max-width: 24ch; font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
.controcampo__set { grid-column: 8 / 13; }
.controcampo__foto { aspect-ratio: var(--r, 1.78); }
.controcampo__dida { margin-top: 8px; font-size: 12px; font-weight: 500; opacity: 0.7; }
.controcampo__mail {
  justify-self: start;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  font-size: clamp(28px, 4.6vw, 84px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-decoration: none;
  transition: background-size 0.6s var(--esce);
}
.controcampo__mail:focus-visible { background-size: 100% 2px; outline: none; }
@media (hover: hover) {
  .controcampo__mail:hover { background-size: 100% 2px; }
}
.controcampo__dati {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--m);
  padding-top: 14px;
  border-top: 1px solid var(--linea);
}
.controcampo__dati dt { margin-bottom: 6px; font-size: 12px; font-weight: 500; opacity: 0.75; }
.controcampo__dati dd { font-size: 15px; font-weight: 450; text-wrap: pretty; }
@media (max-width: 900px) {
  .controcampo__testo,
  .controcampo__set { grid-column: 1 / -1; }
  .controcampo__t { order: 1; }
  .controcampo__testo { order: 2; }
  .controcampo__set { order: 4; }
  .controcampo__dati { order: 5; }
}
@media (max-width: 520px) {
  .controcampo__dati { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .controcampo { min-height: 0; gap: var(--s5) var(--m); padding: calc(var(--alto) + var(--s6)) var(--m) var(--s6); }
  .controcampo__dati dd { font-size: 16px; }
  .controcampo__testo { gap: var(--s3); }
  .controcampo__dida { margin-top: var(--s1); }
  .controcampo__dati { gap: var(--s3) var(--m); padding-top: var(--s2); }
  .controcampo__dati dt { margin-bottom: var(--s1); }
}
@media (min-aspect-ratio: 1001/1000) and (max-height: 500px) {
  .controcampo__set { width: min(100%, calc((100svh - var(--alto) - var(--basso) - 64px) * 1.7778)); }
}

.titoli { padding: 26vh var(--m) calc(var(--basso) + 10vh); text-align: center; }
.titoli__lista { display: grid; gap: 4px; }
.titoli__lista div { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 14px; line-height: 1.9; }
.titoli__lista dt { text-align: right; opacity: 0.6; }
.titoli__lista dd { text-align: left; font-weight: 600; }
.titoli__lista .titoli__stacco { margin-top: 3.2em; }
.titoli__lista a { text-decoration: none; }
.titoli__fine { margin-top: 32vh; font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.02em; }
.titoli__legale { margin-top: 14vh; font-size: 13px; opacity: 0.7; }
.titoli__legale a { position: relative; }
.titoli__legale a::before { content: ""; position: absolute; inset: -14px -10px; }
@media (max-width: 760px) {
  .titoli { padding: var(--s5) var(--m) calc(var(--basso) + var(--s6)); }
  .titoli__lista { grid-template-columns: 1.1fr 0.9fr; gap: 0 var(--s2); }
  .titoli__lista div { display: contents; }
  .titoli__lista dt,
  .titoli__lista dd { line-height: 1.6; }
  .titoli__lista .titoli__stacco > * { margin-top: var(--s3); }
  .titoli__foto + .titoli__foto > dt { position: absolute; }
  .titoli__foto + .titoli__foto:nth-child(even) > dd { text-align: right; }
  .titoli__fine { margin-top: var(--s6); }
  .titoli__legale { margin-top: var(--s3); max-width: 30ch; margin-right: auto; margin-left: auto; font-size: 13px; line-height: 1.5; }
  .titoli__legale a { padding: 14px 0; }
}

/* reduced motion */

html:not(.anima) .apertura .palco { height: 100vh; min-height: 560px; overflow: hidden; }
html:not(.anima) .apertura__dopo { opacity: 1; transform: none; }
html:not(.anima) .proiezione .palco,
html:not(.anima) .luce .palco,
html:not(.anima) .grana .palco { min-height: 100vh; }
html:not(.anima) .schermo { height: 70vh; }
html:not(.anima) .proiezione .palco { align-content: center; }
html:not(.anima) .bandiera { display: none; }

@media (prefers-reduced-motion: reduce) {
  .dati__rec,
  .apertura__giu::after { animation: none; }
  html { transition: none; }
}
