/* Grafici che si disegnano */
:root {
  --fondo: #eef3ef;
  --carta: #f6f7f3;
  --inchiostro: #07201f;
  --tenue: #5b706d;
  --uno: #ff8a3d;
  --due: #86cfc4;
  --tre: #146662;
  --spento: #dfe7e3;
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
}
body {
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  color: var(--inchiostro);
  background: var(--fondo);
  overflow-x: clip;
}
.sopra {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 620;
  color: var(--tenue);
}
.grande {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.apertura {
  min-height: 70vh;
  padding: 12vh clamp(18px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.apertura--fine {
  justify-content: center;
}

.capitolo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  min-height: 110vh;
  padding: 0 clamp(18px, 5vw, 72px);
}
.capitolo--rovescio .testo {
  order: 2;
}
.testo h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.testo p {
  max-width: 36ch;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.45;
  color: var(--tenue);
}

.carta {
  margin: 0;
  padding: clamp(18px, 2.4vw, 32px);
  border-radius: 24px;
  background: var(--carta);
  box-shadow: 0 0 0 1px rgba(7, 32, 31, 0.08);
  will-change: transform;
}
.carta svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.carta figcaption {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tenue);
}

/* barre: crescono dal basso. L'origine la dà GSAP (negli SVG non va messa anche nel CSS: si somma) */
.b1 { fill: var(--uno); }
.b2 { fill: var(--due); }
.b3 { fill: var(--tre); }
.base {
  stroke: var(--inchiostro);
  stroke-width: 2;
}
.valori {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 560;
}
.valori b {
  display: block;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

/* ciambella: un cerchio col tratto tagliato */
.anello-fondo,
.anello {
  fill: none;
  stroke-width: 30;
}
.anello-fondo {
  stroke: var(--spento);
}
.anello {
  stroke: var(--uno);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 150px 115px;
}
.centro {
  font-size: 44px;
  font-weight: 780;
  text-anchor: middle;
  fill: var(--inchiostro);
  font-variant-numeric: tabular-nums;
}

/* punti */
.punto {
  fill: var(--spento);
}
.punto.acceso {
  fill: var(--tre);
}
.grande-numero {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 560;
}
.grande-numero b {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .capitolo {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 18vh;
  }
  .capitolo--rovescio .testo {
    order: 0;
  }
}
