:root {
  --fondo: #e5e5e5;
  --fondo-bordo: #c6c7cf;
  --inchiostro: #191919;
  --grigio: #717170;
  --filo: rgba(25, 25, 25, 0.16);
  --accento: #b4462b;
  --peso: 520;
  --larghezza: 112;
}

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

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.pagina {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 16px;
  background: radial-gradient(120% 90% at 50% 42%, #f1f1f1 0%, var(--fondo) 42%, var(--fondo-bordo) 100%);
}

.apertura {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2.4vh, 22px);
  max-width: 100%;
  margin-top: -4vh;
}

.marchio {
  font-size: clamp(10px, 1.6vh, 12px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 118;
  font-weight: 560;
  color: var(--grigio);
  opacity: 0;
}

.titolo {
  font-size: clamp(28px, min(10.5vw, 11vh), 112px);
  line-height: 0.98;
  font-weight: var(--peso);
  font-variation-settings: 'wdth' var(--larghezza);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 1.96em;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.riga {
  display: block;
  perspective: 1000px;
  white-space: nowrap;
}

/* one element for GSAP's entrance (.ch), its child for the ruffle under the pointer (.ch__in) */
.ch {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  --s: 0;
}

.ch__in {
  display: inline-block;
  transform-origin: 50% 60%;
  text-shadow: 0 calc(var(--s) * 0.2em) calc(var(--s) * 0.14em) rgba(25, 25, 25, calc(var(--s) * 0.26));
}

.sotto {
  max-width: 30ch;
  font-size: clamp(12px, 1.9vh, 15px);
  line-height: 1.45;
  color: var(--grigio);
  font-variation-settings: 'wdth' 100;
  min-height: 2.9em;
  opacity: 0;
}

.pillola {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px 0 20px;
  border: 1px solid var(--filo);
  border-radius: 999px;
  color: var(--inchiostro);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 560;
  font-variation-settings: 'wdth' 108;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 6px 18px -12px rgba(25, 25, 25, 0.35);
  transition: font-variation-settings 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, background 0.3s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}

.pillola__freccia {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--accento);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillola:active { transform: scale(0.96); }

@media (hover: hover) {
  .pillola:hover {
    font-variation-settings: 'wdth' 122;
    border-color: rgba(25, 25, 25, 0.34);
    background: rgba(255, 255, 255, 0.5);
  }
  .pillola:hover .pillola__freccia { transform: translateX(3px); }
}

.indice {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 6vh, 56px);
  transform: translateX(-50%);
  display: flex;
  gap: clamp(18px, 5vw, 44px);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 540;
  font-variation-settings: 'wdth' 112;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--filo);
  opacity: 0;
}

.indice__voce {
  color: var(--grigio);
  transition: color 0.6s ease;
}

.indice__voce.attiva { color: var(--inchiostro); }

.indice__riga {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 10px;
  background: var(--accento);
}
