:root {
  --fondo: #fafafa;
  --inchiostro: #0a0a0a;
  --grigio: #8a8a93;
  --riga: #ececef;
  --guida: #dcdce1;
  --pezzo: #0a0a0a;
  --pezzo-alto: #2a2a30;
  --accento: #4f46e5;
  --accento-chiaro: #8b80ff;
  /* the mark is sized on the shorter side, so it stays large in the phone's short box */
  --marchio: clamp(40px, min(12vw, 19vh), 116px);
}

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

html, body { height: 100%; }

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

/* ---- the mark and the name: every size in em of the mark, so the big one and the small one match ---- */
.marchio { display: block; width: 1em; height: 1em; overflow: visible; }
.nome {
  font-size: 0.7em;
  font-weight: 620;
  font-variation-settings: 'wght' 620;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

/* ---- the intro ---- */
.intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}
.intro__gruppo { display: grid; justify-items: center; gap: calc(var(--marchio) * 0.32); }
.lockup {
  display: flex;
  align-items: center;
  gap: 0.24em;
  font-size: var(--marchio);
  transform-origin: 0 0;
  will-change: transform;
}
.lockup__marchio { position: relative; width: 1em; height: 1em; }
.marchio--grande { width: 1.16em; height: 1.16em; margin: -0.08em; }
.lockup .nome { display: inline-flex; }
.lockup .nome .lettera { display: inline-block; will-change: transform; }
.guida { fill: none; stroke: var(--guida); stroke-width: 0.8; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ombra {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 70, 229, 0.22), rgba(10, 10, 10, 0.06) 60%, transparent);
  filter: blur(6px);
  opacity: 0;
}
.sotto {
  font-size: clamp(12px, calc(var(--marchio) * 0.17), 18px);
  color: var(--grigio);
  letter-spacing: 0.005em;
}

/* ---- the page underneath ---- */
.pagina { position: fixed; inset: 0; padding: clamp(14px, 3.4vh, 28px) clamp(16px, 4vw, 48px); }
.testata {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 36px);
  position: relative;
  padding-bottom: clamp(12px, 2.6vh, 22px);
}
.testata__riga { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--riga); }
.testata__logo {
  display: flex;
  align-items: center;
  gap: 0.24em;
  font-size: clamp(20px, 3.4vh, 28px);
  visibility: hidden;
}
.testata__voci { display: flex; gap: clamp(10px, 2.2vw, 26px); margin-left: auto; font-size: 13px; color: var(--grigio); }
.testata__cta {
  font-size: 13px;
  font-weight: 560;
  color: #fff;
  background: var(--inchiostro);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}
.eroe { display: grid; gap: clamp(10px, 2.2vh, 18px); justify-items: start; padding-top: clamp(26px, 9vh, 90px); max-width: 640px; }
.linea { display: block; height: clamp(12px, 3.4vh, 30px); border-radius: 8px; background: var(--riga); width: min(560px, 82vw); }
.linea--titolo.corta { width: min(380px, 56vw); }
.linea--testo { height: clamp(8px, 1.6vh, 12px); width: min(420px, 64vw); margin-top: 6px; }
.eroe__pulsante { width: 116px; height: 34px; border-radius: 999px; background: var(--accento); margin-top: 8px; }

.replay {
  position: fixed;
  right: clamp(12px, 2.4vw, 24px);
  bottom: clamp(12px, 2.4vh, 24px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 12px;
  color: var(--grigio);
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 999px;
  padding: 6px 12px 6px 9px;
  cursor: pointer;
  opacity: 0;
  z-index: 3;
  transition: color 0.2s, border-color 0.2s;
}
.replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .replay:hover { color: var(--inchiostro); border-color: rgba(10, 10, 10, 0.16); }
}

@media (max-width: 520px) {
  .testata__voci { display: none; }
}
