/* The headline whose asterisk leads to the fine print: one promise, one asterisk, one line of small print. */
:root {
  --fondo: #f5f2ec;      /* warm white paper */
  --inchiostro: #191814; /* the promise */
  --accento: #e2481f;    /* the one accent: the asterisk */
  --piccolo: #8a8479;    /* the fine print */
  --filo: #d9d3c8;       /* the thin rule above the fine print */
  --aiuto: #b1ab9f;      /* the small line at the bottom */
}

* { box-sizing: border-box; margin: 0; padding: 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;
}

.scena {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.palco {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

/* sized on the width and on the height of the box: two short lines and the fine print */
.titolo {
  --wd: 100;
  font-size: clamp(30px, min(14vw, 15vh), 128px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
}

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

.riga + .riga { margin-top: 0.04em; }

/* each letter: GSAP writes its weight in --w and moves the inner span */
.lettera {
  --w: 700;
  display: inline-block;
  font-variation-settings: 'wght' var(--w), 'wdth' var(--wd);
}

.lettera > span { display: inline-block; will-change: transform; }

/* the asterisk sits in the line: its box opens and the letters make room for it */
.ast {
  display: inline-block;
  width: 0;
  height: 1em;
  position: relative;
  vertical-align: top;
}

.ast-dentro {
  position: absolute;
  left: 0.05em;
  top: 0.07em;
  width: 0.34em;
  height: 0.34em;
  color: var(--accento);
  will-change: transform;
}

.ast-dentro svg { display: block; width: 100%; height: 100%; overflow: visible; }

.nota-piede {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(18px, 5.5vh, 46px);
}

.filo {
  display: block;
  width: clamp(36px, 9vw, 64px);
  height: 1px;
  background: var(--filo);
  transform: scaleX(0);
}

.clausola {
  margin-top: clamp(9px, 2vh, 14px);
  font-size: clamp(12px, min(3.6vw, 3.4vh), 17px);
  font-variation-settings: 'wght' 420, 'wdth' 96;
  letter-spacing: 0.005em;
  color: var(--piccolo);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.clausola .parola { display: inline-block; will-change: transform; }

.clausola .mini {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  color: var(--accento);
  align-self: flex-start;
  margin-top: 0.12em;
}

.clausola .mini svg { display: block; width: 100%; height: 100%; overflow: visible; }

.aiuto {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(12px, 4vh, 30px);
  text-align: center;
  font-size: 12px;
  font-variation-settings: 'wght' 450, 'wdth' 100;
  letter-spacing: 0.02em;
  color: var(--aiuto);
}

@media (max-height: 330px) { .aiuto { display: none; } }
