:root {
  --fondo: #ffffff;
  --inchiostro: #111114;
  --grigio: #6b6f78;
  --linea: rgba(17, 17, 20, 0.08);
  --accento: #6a5cff;
  --evidenzia: #ece8ff;
  --evidenzia-2: #e0f1ff;
  --stella: #111114;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.review {
  width: min(720px, 100%);
  display: grid;
  gap: clamp(12px, min(3vw, 3.4vh), 26px);
}

.review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review__label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--grigio);
  font-variation-settings: "wght" 520;
}
.review__nav { display: flex; gap: 8px; }
.arrow {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--linea);
  background: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--inchiostro);
  box-shadow: 0 1px 2px rgba(17, 17, 20, 0.05);
  transition: border-color .2s, box-shadow .2s;
}
.arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.arrow:focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }
@media (hover: hover) {
  .arrow:hover { border-color: rgba(17, 17, 20, 0.18); box-shadow: 0 4px 12px rgba(17, 17, 20, 0.08); }
}

.review__marks { display: flex; align-items: center; justify-content: space-between; }
.quote { width: clamp(28px, min(6vw, 7vh), 44px); height: auto; overflow: visible; }
.quote path { stroke: var(--accento); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.quote .q-dot { fill: var(--accento); }
.quote .q-tail { fill: none; }
.stars { display: flex; gap: 3px; }
.stars svg { width: clamp(13px, min(2.4vw, 3vh), 17px); height: auto; overflow: visible; }
.star__line { fill: none; stroke: var(--stella); stroke-width: 1.3; stroke-linejoin: round; opacity: .28; }
.star__fill { fill: var(--stella); transform-origin: 50% 55%; }

.review__text {
  margin: 0;
  font-size: clamp(18px, min(4.4vw, 5.6vh), 36px);
  line-height: 1.28;
  letter-spacing: -0.012em;
  font-variation-settings: "wght" 400;
  min-height: calc(3 * 1.28em);
}
.w {
  display: inline-block;
  position: relative;
  white-space: pre;
}
.w__t { position: relative; z-index: 1; display: inline-block; }
.w__hl {
  position: absolute;
  z-index: 0;
  left: -0.12em; right: -0.12em;
  top: 0.1em; bottom: 0.02em;
  border-radius: 0.22em;
  background: var(--evidenzia);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
/* lo spazio dopo una parola evidenziata non prende il fondo */
.w--key + .sp { display: inline; }

.review__who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: clamp(10px, 2vh, 18px);
  border-top: 1px solid var(--linea);
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 13px;
  color: #fff;
  font-variation-settings: "wght" 640;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(17, 17, 20, 0.12);
}
.who { display: grid; gap: 2px; min-width: 0; }
.who__name { font-size: 14px; font-variation-settings: "wght" 620; }
.who__role { font-size: 12.5px; color: var(--grigio); }
.logo { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--inchiostro); flex: none; }
.logo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.logo b { font-size: 13px; font-variation-settings: "wght" 640; letter-spacing: -0.01em; font-weight: normal; }

.review__bars { display: flex; gap: 6px; }
.bar { flex: 1; height: 2px; border-radius: 2px; background: var(--linea); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--inchiostro); transform-origin: 0 50%; transform: scaleX(0); }

.cursor {
  position: fixed; left: 0; top: 0;
  width: 22px; height: 22px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
}
.cursor path { fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }

@media (max-width: 480px) {
  .who__role { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo b { display: none; }
}
