:root {
  --fondo: #f7f4ee;
  --inchiostro: #16140f;
  --grigio: #77726a;
  --linea: rgba(22, 20, 15, 0.12);
  --accento: #c2410c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(14px, 3.4vh, 32px) clamp(16px, 4vw, 48px);
  overflow: hidden;
}

/* a barely visible warm glow behind the sentence, so the white is not flat */
.stage::before {
  content: "";
  position: absolute;
  inset: 20% 15%;
  background: radial-gradient(closest-side, rgba(194, 65, 12, 0.07), transparent 70%);
  pointer-events: none;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marchio {
  color: var(--inchiostro);
  text-decoration: none;
  font-weight: 700;
  font-stretch: 112%;
  font-size: 15px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.marchio__sub { font-weight: 450; font-stretch: 100%; color: var(--grigio); font-size: 12.5px; }

.nav {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--linea);
  box-shadow: 0 6px 18px -12px rgba(22, 20, 15, 0.35);
}

.nav__ind {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  width: 40px;
  border-radius: 999px;
  background: var(--inchiostro);
  box-shadow: 0 4px 10px -4px rgba(22, 20, 15, 0.5);
}

.nav__item {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 560;
  color: var(--grigio);
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.35s ease;
}

.nav__item.is-on { color: #fff; }
.nav__item:focus-visible, .freccia:focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }

@media (hover: hover) {
  .nav__item:not(.is-on):hover { color: var(--inchiostro); }
  .freccia:hover { background: #fff; }
}

/* the page: real perspective, so the letters can go far into the depth and come back */
.pagina {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 980px);
  text-align: center;
  perspective: 900px;
  perspective-origin: 50% 45%;
}

.etichetta {
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accento);
  margin-bottom: clamp(10px, 2.2vh, 20px);
}

.frase {
  font-weight: 640;
  font-stretch: 108%;
  font-size: clamp(28px, min(8.4vw, 10.5vh), 104px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  transform-style: preserve-3d;
}

.frase__riga { display: block; white-space: nowrap; transform-style: preserve-3d; }
.parola { display: inline-block; white-space: nowrap; transform-style: preserve-3d; }
.parola.is-chiave { color: var(--accento); }
.lettera { display: inline-block; will-change: transform, opacity, filter; transform-style: preserve-3d; }

.riga {
  display: block;
  width: min(220px, 40vw);
  height: 1px;
  margin: clamp(14px, 3vh, 26px) auto clamp(12px, 2.4vh, 22px);
  background: var(--inchiostro);
  opacity: 0.25;
  transform-origin: 0 50%;
}

.testo {
  max-width: 46ch;
  margin: 0 auto;
  font-size: clamp(13.5px, min(1.9vw, 2.3vh), 17px);
  line-height: 1.55;
  color: var(--grigio);
}

.testo__riga { display: block; }

.piede {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--grigio);
}

.frecce { display: flex; gap: 6px; }

.freccia {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--linea);
  background: rgba(255, 255, 255, 0.6);
  color: var(--inchiostro);
  cursor: pointer;
  transition: background 0.3s ease;
}

.freccia svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.puntatore {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
}

.puntatore path { fill: #111; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }

@media (max-width: 520px) {
  .marchio__sub { display: none; }
  .nav__item { padding: 6px 10px; font-size: 12px; }
  .piede__nota { display: none; }
  .piede { justify-content: flex-end; }
}

@media (max-height: 460px) {
  .testo__riga:nth-child(n+3) { display: none; }
}
