:root {
  --carta: #f6f3ec;
  --carta-card: #fffdf8;
  --inchiostro: #1b1a17;
  --grigio: #77736a;
  --filo: #e4dfd3;
  --accento: #f2b42c;
  --evidenzia: rgba(242, 180, 44, 0.42);
  --vuota: #e2ddd1;
  --ombra: 0 1px 0 rgba(27, 26, 23, 0.04), 0 10px 26px -14px rgba(27, 26, 23, 0.22);
  --serif: "Fraunces Variable", Georgia, serif;
  --sans: "Mona Sans Variable", system-ui, sans-serif;
}

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

html { background: var(--carta); }

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

.testata {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(12px, 2.4vh, 22px) clamp(16px, 3vw, 36px);
  font-size: 13px;
  pointer-events: none;
}
.marchio { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; letter-spacing: -0.01em; }
.marchio svg { width: 17px; height: 17px; fill: none; stroke: var(--inchiostro); stroke-width: 1.5; stroke-linecap: round; }
.testata__voce { color: var(--grigio); }

/* opening */
.apertura {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2.2vh, 20px);
  padding: 0 20px;
}
.occhiello { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grigio); }
.titolo {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(28px, min(6.4vw, 9vh), 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 13em;
}
.titolo em { font-style: italic; font-weight: 420; background: linear-gradient(transparent 62%, var(--evidenzia) 62%, var(--evidenzia) 92%, transparent 92%); }
.invito { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--grigio); }
.invito svg { width: 10px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* the pinned stage */
.palco { position: relative; }
.palco__dentro {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: clamp(52px, 11vh, 104px);
}

.voto {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  padding-bottom: clamp(10px, 2.4vh, 22px);
  flex: none;
}
.voto__numero {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, min(7vw, 10vh), 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  min-width: 1.9em;
  text-align: right;
}
.voto__destra { display: flex; flex-direction: column; gap: 6px; }
.stelle { position: relative; height: clamp(14px, 2.4vh, 20px); width: calc(clamp(14px, 2.4vh, 20px) * 5 + 4 * 3px); }
.stelle__vuote, .stelle__piene { position: absolute; inset: 0; display: flex; gap: 3px; }
.stelle__piene { clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); }
.stelle svg { width: clamp(14px, 2.4vh, 20px); height: clamp(14px, 2.4vh, 20px); flex: none; }
.stelle__vuote svg { fill: var(--vuota); }
.stelle__piene svg { fill: var(--accento); }
.voto__conto { font-size: 12.5px; color: var(--grigio); }
.voto__conto b { color: var(--inchiostro); font-weight: 600; font-variant-numeric: tabular-nums; }

.finestra {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 9%, #000 86%, transparent);
}
.muro {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  columns: 3;
  column-gap: clamp(12px, 1.6vw, 20px);
  padding: clamp(16px, 4vh, 36px) 0 0;
}

.recensione { break-inside: avoid; padding-bottom: clamp(12px, 1.6vw, 20px); }
.recensione__dentro {
  background: var(--carta-card);
  border: 1px solid var(--filo);
  border-radius: 14px;
  padding: clamp(14px, 1.8vw, 20px);
  box-shadow: var(--ombra);
  transition: box-shadow 0.35s ease;
}
@media (hover: hover) {
  .recensione__dentro:hover { box-shadow: 0 1px 0 rgba(27, 26, 23, 0.05), 0 16px 34px -14px rgba(27, 26, 23, 0.3); }
}

.stelline { width: 68px; height: 12px; margin-bottom: 10px; }
.stelline i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accento) calc(var(--p, 0) * var(--voto) * 100%), var(--vuota) calc(var(--p, 0) * var(--voto) * 100%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M6 .8l1.5 3.15 3.42.42-2.52 2.36.65 3.4L6 8.47 2.95 10.13l.65-3.4L1.08 4.37l3.42-.42z'/%3E%3C/svg%3E") 0 0 / 14px 12px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M6 .8l1.5 3.15 3.42.42-2.52 2.36.65 3.4L6 8.47 2.95 10.13l.65-3.4L1.08 4.37l3.42-.42z'/%3E%3C/svg%3E") 0 0 / 14px 12px repeat-x;
}

.recensione__testo {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(15px, min(1.5vw, 2.4vh), 18px);
  line-height: 1.42;
  letter-spacing: -0.005em;
}
.evidenzia {
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(var(--evidenzia), var(--evidenzia));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: calc(var(--h, 0) * 100%) 62%;
  padding: 0 1px;
  border-radius: 2px;
}

.chi {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  margin-top: 14px;
}
.chi__iniziale {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--inchiostro);
  color: var(--carta);
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
}
.chi__iniziale b { font-weight: 600; display: block; }
.chi__nome { font-size: 13px; font-weight: 600; line-height: 1.2; }
.chi__ruolo { font-size: 12px; color: var(--grigio); line-height: 1.25; }

/* closing */
.chiusura {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  text-align: center;
}
.chiusura__frase { font-family: var(--serif); font-size: clamp(24px, min(4vw, 6vh), 44px); font-weight: 380; letter-spacing: -0.02em; }
.pillola {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--inchiostro);
  color: var(--carta);
  text-decoration: none;
  font-size: 14px;
  font-weight: 560;
  font-stretch: 100%;
  transition: font-stretch 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pillola svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .pillola:hover { font-stretch: 116%; transform: scale(1.03); }
}
.pillola:active { transform: scale(0.97); }

/* phones and narrow boxes */
@media (max-width: 900px) { .muro { columns: 2; } }
@media (max-width: 560px) {
  .muro { columns: 1; width: min(420px, calc(100% - 28px)); }
  .voto__numero { min-width: 1.7em; }
}

/* reduced motion: no pin, everything in place */
.ridotto .palco__dentro { height: auto; overflow: visible; }
.ridotto .finestra { -webkit-mask-image: none; mask-image: none; overflow: visible; }
.ridotto .stelle__piene { --p: 0.98; }
.ridotto .recensione { --p: 1; }
.ridotto .evidenzia { --h: 1; }
