:root {
  --carta: #f6f4ef;
  --inchiostro: #14121a;
  --grigio: #8a8692;
  --riga: rgba(20, 18, 26, 0.14);
  --accento: #4b3bff;
  --font: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--carta);
  color: var(--inchiostro);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.palco {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(14px, 3.2vh, 34px) clamp(16px, 5vw, 72px);
  overflow: hidden;
}

.testa {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(11px, 1.6vh, 14px);
  letter-spacing: 0.01em;
}
.marchio { font-weight: 640; font-variation-settings: "wdth" 110; }
.sotto { color: var(--grigio); text-align: right; }

.servizi {
  align-self: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* the heading, letter by letter from the right, each letter in its own mask */
.titolo {
  display: flex;
  align-items: center;
  gap: 0.42em;
  font-size: clamp(13px, 2.1vh, 18px);
  font-weight: 560;
  font-variation-settings: "wdth" 92;
  color: var(--grigio);
  margin-bottom: clamp(6px, 1.6vh, 18px);
}
.titolo__icona { display: inline-flex; width: 1.5em; color: var(--accento); }
.titolo__icona svg { width: 100%; height: auto; display: block; }
.titolo__testo { display: inline-flex; white-space: pre; }
.lettera { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.lettera > span { display: inline-block; }

.elenco { list-style: none; }

.voce {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: clamp(5px, 1.25vh, 14px) 0;
  font-size: min(7.6vw, 6.2vh, 68px);
  line-height: 1.12;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.voce:focus-visible .voce__nome { outline: 1.5px solid var(--accento); outline-offset: 4px; border-radius: 4px; }

.voce__nome {
  display: block;
  font-weight: 600;
  font-variation-settings: "wdth" 84;
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-width: 0;
}

/* a word: a mask with the ink word and the indigo copy stacked in it */
.parola { position: relative; display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.parola__a, .parola__b { display: inline-block; }
.parola__b { position: absolute; left: 0; top: 0; color: var(--accento); }
.parola__entrata { display: inline-block; }

.voce__conto {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: clamp(11px, 1.7vh, 15px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--grigio);
  white-space: nowrap;
}
.voce__freccia { width: 1.25em; height: 1.25em; color: var(--accento); opacity: 0; }

.voce__riga {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--riga);
  transform-origin: 0 50%;
}
.voce__luce {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accento);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
