:root {
  --muro: #f2dfc0;
  --riga: #e8cfa6;
  --zoccolo: #5b2b2e;
  --marmo: #efe6d6;
  --marmo-scuro: #24433a;
  --ottone: #d29c3c;
  --ottone-scuro: #8a5a1a;
  --tappeto: #9e2a35;
  --inchiostro: #2b1d15;
  --cuoio: #8d5530;
  --rosso: #d2452f;
  --verdeacqua: #1f8784;
  --blu: #283e6b;
  --giallo: #f1b434;
  --crema: #f7ecd6;
  --verde: #3c7a4e;
  --rosa: #e88f9a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--muro); }
body {
  background: var(--muro);
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.carico { position: relative; height: 560lvh; }
.palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
}
.scena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }

.testata {
  position: absolute;
  top: clamp(14px, 3vh, 28px);
  left: clamp(16px, 3vw, 36px);
  right: clamp(16px, 3vw, 36px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  pointer-events: none;
}
.marchio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces Variable', Georgia, serif;
  font-weight: 650;
  font-size: clamp(14px, min(2.2vw, 3vh), 19px);
  letter-spacing: 0.01em;
}
.marchio svg { width: 1.3em; height: 1.3em; fill: none; stroke: var(--ottone-scuro); stroke-width: 2.2; stroke-linecap: round; }
.sotto { font-size: clamp(10px, min(1.5vw, 2vh), 13px); font-weight: 500; opacity: 0.7; text-align: right; }

.targa {
  position: absolute;
  left: 50%;
  top: clamp(46px, 11vh, 96px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 16px 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #e9bd5f, var(--ottone) 55%, #b27f2a);
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, 0.7), 0 2px 0 var(--ottone-scuro), 0 6px 14px rgba(60, 30, 10, 0.25);
  color: #3a2408;
  pointer-events: none;
  white-space: nowrap;
}
.targa__su { font-size: clamp(8px, min(1.1vw, 1.6vh), 10px); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.targa__nome { font-family: 'Fraunces Variable', Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(13px, min(2vw, 2.8vh), 18px); }

.finale {
  position: absolute;
  left: 50%;
  top: clamp(40px, 9vh, 90px);
  width: min(92%, 640px);
  transform: translateX(-50%);
  text-align: center;
  visibility: hidden;
  opacity: 0;
}
.finale__titolo {
  font-family: 'Fraunces Variable', Georgia, serif;
  font-weight: 700;
  font-size: clamp(26px, min(6vw, 8vh), 68px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.finale__titolo em { color: var(--tappeto); font-style: italic; font-weight: 600; }
.finale__testo { margin: 10px auto 0; max-width: 30em; font-size: clamp(12px, min(1.7vw, 2.3vh), 16px); font-weight: 500; line-height: 1.4; }
.tasto {
  display: inline-block;
  margin-top: clamp(10px, 2vh, 18px);
  padding: 0.75em 1.5em;
  border-radius: 999px;
  background: var(--tappeto);
  color: var(--crema);
  font-weight: 650;
  font-size: clamp(12px, min(1.6vw, 2.2vh), 15px);
  text-decoration: none;
  font-variation-settings: 'wdth' 100;
  box-shadow: 0 3px 0 #6a1720;
  transition: font-variation-settings 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .tasto:hover { font-variation-settings: 'wdth' 120; transform: scale(1.04); }
}

.cenno {
  position: absolute;
  left: 50%;
  bottom: clamp(10px, 2.5vh, 24px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(10px, min(1.4vw, 2vh), 12px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crema);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(43, 29, 21, 0.78);
  pointer-events: none;
  white-space: nowrap;
}
.cenno svg { width: 10px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.dopo {
  min-height: 60vh;
  padding: clamp(40px, 10vh, 120px) clamp(20px, 6vw, 80px);
  background: var(--marmo-scuro);
  color: var(--crema);
}
.dopo__marchio { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--ottone); }
.dopo__titolo { margin-top: 14px; font-family: 'Fraunces Variable', Georgia, serif; font-size: clamp(28px, 5vw, 60px); font-weight: 650; line-height: 1.02; letter-spacing: -0.02em; }
.dopo__testo { margin-top: 14px; max-width: 34em; font-size: 16px; line-height: 1.5; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .tasto { transition: none; }
}
