:root {
  --carta: #f8f1e7;          /* the cream paper of the page */
  --limone: #f6e3a4;         /* the pale lemon skin, a sunnier paper */
  --inchiostro: #3a1f1c;     /* the bordeaux-brown ink of the type and the lines */
  --fumo: #8a716a;           /* the soft ink of the small notes */
  --accento: #e8642c;        /* the one citrus orange */
  --accento-chiaro: #f08d55; /* the mandarin, a lighter orange */
  --scuro-accento: #9c3a17;  /* the pores and the navel of the orange */
  --melograno: #6e2a26;      /* the pomegranate, a lighter ink */
  --foglia: #6f7253;         /* the one neutral: the grey olive of the leaves */
  --m: min(100vw, 100vh);    /* the short side of the screen: the stage is measured on it */
  --frutto: clamp(54px, calc(var(--m) * 0.2), 190px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--carta); color: var(--inchiostro); }
html.lenis, html.lenis body { height: auto; }
body {
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.testa {
  position: fixed; inset: 0 0 auto; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(12px, 2.4vh, 22px) clamp(14px, 3vw, 32px);
  font-size: clamp(10px, 1.6vh, 12.5px); letter-spacing: 0.02em;
  pointer-events: none;
}
.testa p { margin: 0; display: flex; align-items: center; gap: 0.5em; }
.testa__marca { font-weight: 600; }
.testa__marca svg { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.testa__marca svg path:last-child { fill: var(--foglia); stroke: none; }
.testa__voce { color: var(--fumo); }

.apertura {
  min-height: 74vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 12vh 7vw 6vh;
  gap: clamp(8px, 2vh, 18px);
}
.occhiello { margin: 0; font-size: clamp(10px, min(1.8vw, 1.9vh), 13px); color: var(--fumo); letter-spacing: 0.04em; }
.apertura__titolo {
  margin: 0; max-width: 15ch;
  font-family: "Fraunces Variable", Georgia, serif; font-weight: 380; font-variation-settings: "opsz" 120, "SOFT" 60;
  font-size: clamp(26px, min(7vw, 8.4vh), 78px); line-height: 1.02; letter-spacing: -0.02em;
}
.apertura__titolo em, .frase em { font-style: italic; color: var(--accento); font-variation-settings: "opsz" 120, "SOFT" 100, "WONK" 1; }
.apertura__frase { margin: 0; max-width: 34ch; font-size: clamp(11px, min(2vw, 2.1vh), 15px); line-height: 1.45; color: var(--fumo); }
.invito { margin: clamp(6px, 2vh, 20px) 0 0; display: flex; align-items: center; gap: 0.5em; font-size: clamp(10px, 1.6vh, 12px); color: var(--fumo); }
.invito svg { width: 0.8em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; animation: invito 2.4s cubic-bezier(.45,0,.2,1) infinite; }
@keyframes invito { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.pausa { position: relative; }
.palco {
  position: relative; height: 100vh; overflow: clip;
}
.palco__sopra {
  position: absolute; left: 0; right: 0; top: clamp(44px, 9vh, 90px); margin: 0; text-align: center;
  font-size: clamp(10px, min(1.8vw, 1.9vh), 13px); color: var(--fumo); letter-spacing: 0.04em;
}
.frase {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; max-width: 86vw;
  text-align: center; z-index: 10; pointer-events: none;
  font-family: "Fraunces Variable", Georgia, serif; font-weight: 380; font-variation-settings: "opsz" 120, "SOFT" 60;
  font-size: clamp(22px, min(6.2vw, 7.4vh), 72px); line-height: 1.04; letter-spacing: -0.02em;
  opacity: 0; visibility: hidden;
}

.frutto {
  position: absolute; left: 50%; top: 50%;
  width: var(--frutto); height: var(--frutto);
  margin: calc(var(--frutto) / -2) 0 0 calc(var(--frutto) / -2);
  will-change: transform;
}
.frutto__giro, .frutto__corpo { position: absolute; inset: 0; }
.frutto__corpo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.frutto__ombra {
  position: absolute; left: 14%; right: 14%; bottom: -2%; height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58, 31, 28, 0.32), rgba(58, 31, 28, 0));
  filter: blur(3px);
  opacity: 0;
}
.frutto__nota {
  position: absolute; left: 50%; top: calc(100% + clamp(6px, 1.4vh, 12px)); margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(9px, min(1.6vw, 1.7vh), 12px); letter-spacing: 0.02em; color: var(--fumo);
  min-height: 1.3em;
}
.frutto__nota .cursore { display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -0.12em; background: var(--accento); }

.chiusura {
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 8vh 8vw 12vh; gap: clamp(10px, 2.4vh, 20px);
}
.chiusura__frase {
  margin: 0; max-width: 24ch;
  font-family: "Fraunces Variable", Georgia, serif; font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: clamp(18px, min(4.2vw, 4.8vh), 38px); line-height: 1.14;
}
.chiusura__nota { margin: 0; font-size: clamp(10px, min(1.8vw, 1.9vh), 13px); color: var(--fumo); }

html.ridotto .frase { opacity: 0; visibility: visible; transition: opacity 0.9s ease; }
html.ridotto .frase.vista { opacity: 1; }
html.ridotto .frutto__ombra { opacity: 1; }
