/* Ravaldino — stile "Comunità": bianco, rosso e colori allegri */

:root {
  --rosso: #C8102E;
  --rosso-scuro: #9E0C24;
  --rosa: #FCE9EC;
  --crema: #FFF8F3;
  --inchiostro: #1d1d1f;
  --grigio: #5f5f66;
  --linea: #ececec;
  --raggio: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--inchiostro); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rosso); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -.01em; margin: 0; }

.contenitore { width: min(1200px, 100% - 32px); margin-inline: auto; }
.contenitore--stretto { width: min(780px, 100% - 32px); }
.nascosto, .salta:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.salta:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- bottoni ed etichette ---------- */
.bottone {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; background: var(--rosso); color: #fff; border: 2px solid var(--rosso);
  transition: transform .15s, background .15s;
}
.bottone:hover { transform: translateY(-2px); background: var(--rosso-scuro); border-color: var(--rosso-scuro); }
.bottone--vuoto { background: transparent; color: var(--inchiostro); border-color: var(--inchiostro); }
.bottone--vuoto:hover { background: var(--inchiostro); color: #fff; border-color: var(--inchiostro); }
.bottone--bianco { background: #fff; color: var(--rosso); border-color: #fff; }
.bottone--bianco:hover { background: var(--rosa); border-color: var(--rosa); }

.etichetta {
  display: inline-block; background: var(--rosa); color: var(--rosso); font-weight: 600; font-size: 13px;
  padding: 4px 11px; border-radius: 999px; text-decoration: none; line-height: 1.5;
}
.etichetta--attiva, a.etichetta:hover { background: var(--rosso); color: #fff; }
.occhiello { color: var(--rosso); font-weight: 700; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }

/* ---------- barra orari e testata ---------- */
.barra-orari { background: var(--rosso); color: #fff; font-size: 13px; }
.barra-orari .contenitore { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.barra-orari p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.barra-orari b { font-weight: 600; }
.barra-orari a { color: #fff; text-decoration: none; }

.testata { border-bottom: 1px solid var(--linea); background: #fff; position: sticky; top: 0; z-index: 5; }
.testata__riga { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.marchio img { height: 78px; width: auto; margin: -8px 0; }
.menu { display: flex; gap: 6px; align-items: center; }
.menu a { color: var(--inchiostro); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.menu a:hover { background: var(--crema); }
.menu a[aria-current="page"] { color: var(--rosso); background: var(--rosa); }
.menu-apri { display: none; }

/* ---------- home ---------- */
.eroe { background: var(--crema); overflow: hidden; }
.eroe__griglia { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 72px 0 84px; }
.eroe h1 { font-weight: 800; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 22px; }
.eroe h1 em {
  font-style: normal; color: var(--rosso);
  background: linear-gradient(var(--rosso), var(--rosso)) 0 92% / 100% 5px no-repeat;
}
.eroe__testo { font-size: 19px; color: #444; max-width: 520px; margin: 0; }
.eroe__azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.illustrazione { width: 100%; height: auto; }

.evidenza { margin-top: -40px; position: relative; }

/* ---------- schede articolo ---------- */
.griglia-schede { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 28px; }
.scheda { display: flex; flex-direction: column; }
.scheda__immagine { display: block; aspect-ratio: 16 / 10; border-radius: var(--raggio); overflow: hidden; background: var(--rosa); margin-bottom: 16px; }
.scheda__immagine img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.scheda:hover .scheda__immagine img { transform: scale(1.04); }
.scheda__segnaposto { display: grid; place-items: center; height: 100%; font: 800 72px var(--serif); color: var(--rosso); }
.scheda__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--grigio); margin: 0; }
.scheda__titolo { font-size: 23px; margin: 10px 0 6px; }
.scheda__titolo a { color: inherit; text-decoration: none; }
.scheda__titolo a:hover { color: var(--rosso); }
.scheda__riassunto { color: #555; font-size: 15.5px; margin: 0; }

.scheda--evidenza {
  flex-direction: row; align-items: center; gap: 36px; background: var(--rosso); color: #fff;
  border-radius: 30px; padding: 24px 40px 24px 24px; box-shadow: 0 22px 50px -24px rgba(200, 16, 46, .6);
}
.scheda--evidenza .scheda__immagine { flex: 0 0 46%; margin: 0; border-radius: 20px; background: #fff; aspect-ratio: auto; }
.scheda--evidenza .scheda__immagine img { height: auto; max-height: 360px; object-fit: contain; }
.scheda--evidenza .scheda__meta { color: rgba(255, 255, 255, .85); }
.scheda--evidenza .etichetta { background: #fff; }
.scheda--evidenza .scheda__titolo { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 10px; }
.scheda--evidenza .scheda__titolo a:hover { color: #fff; text-decoration: underline; }
.scheda--evidenza .scheda__riassunto { color: rgba(255, 255, 255, .92); font-size: 16.5px; margin-bottom: 20px; }

/* ---------- sezioni ---------- */
.sezione { padding-top: 88px; }
.sezione--attaccata { padding-top: 40px; }
.sezione__testa { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 30px; }
.sezione__testa h2 { font-size: clamp(30px, 3.4vw, 42px); }
.sezione__testa a { font-weight: 600; text-decoration: none; white-space: nowrap; }

.realta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.realta__voce {
  display: flex; flex-direction: column; border: 1.5px solid var(--linea); border-radius: var(--raggio);
  overflow: hidden; color: var(--inchiostro); text-decoration: none; transition: border-color .2s, transform .2s;
}
.realta__voce:hover { border-color: var(--rosso); transform: translateY(-3px); }
.realta__voce img { aspect-ratio: 3.7 / 1; width: 100%; object-fit: cover; }
.realta__testo { padding: 20px 22px 22px; color: var(--grigio); font-size: 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.realta__testo b { font: 700 21px var(--serif); color: var(--inchiostro); }
.realta__azione { margin-top: auto; padding-top: 8px; color: var(--rosso); font-weight: 600; }

.info-pratiche { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; background: var(--crema); border-radius: 30px; padding: 44px; }
.info-pratiche h3 { font-size: 23px; margin-bottom: 12px; }
.info-pratiche p { margin: 0; line-height: 1.85; color: #444; }
.info-pratiche b { color: var(--inchiostro); font-weight: 600; }

/* ---------- pagine e articoli ---------- */
.intestazione { background: var(--crema); padding: 64px 0 52px; margin-bottom: 44px; }
.intestazione h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.02em; }
.intestazione__meta { display: flex; gap: 12px; align-items: center; color: var(--grigio); font-size: 14px; margin: 0 0 16px; }
.intestazione__sotto { font-size: 19px; color: #555; margin: 14px 0 0; max-width: 620px; }
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }

.copertina { margin: 0 0 36px; border-radius: var(--raggio); overflow: hidden; }

.prosa { font-size: 18px; line-height: 1.75; }
.prosa > :first-child { margin-top: 0; }
.prosa h2 { font-size: 30px; margin: 48px 0 14px; }
.prosa h3 { font-size: 23px; margin: 36px 0 10px; }
.prosa ul { padding-left: 1.2em; }
.prosa li { margin: 6px 0; }
.prosa li::marker { color: var(--rosso); }
.prosa img { border-radius: 16px; margin: 0 auto; }
.prosa p:has(> img), .prosa p:has(> a > img) { margin: 28px 0; }
.prosa a:has(img) { display: block; }
.prosa a:has(img[src$=".png"]):hover img { outline: 3px solid var(--rosso); outline-offset: 4px; }
.prosa blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--rosso); font-family: var(--serif); font-size: 21px; }

.galleria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.galleria p { margin: 0 !important; }
.galleria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: opacity .2s; }
.galleria a:hover img { opacity: .85; }

.embed { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--linea); margin: 24px 0; }
.embed--mappa { aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video { margin: 0 0 28px; }
.video__cornice { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video__cornice iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-top: 10px; }

.orari { border-top: 2px solid var(--inchiostro); margin-bottom: 28px; }
.orari__riga { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.orari__riga small { display: block; color: var(--grigio); font-size: 15px; }
.orari__riga b { font: 800 30px var(--serif); color: var(--rosso); white-space: nowrap; }

.sfoglia { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--linea); }
.sfoglia__link { text-decoration: none; color: var(--inchiostro); font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.3; }
.sfoglia__link small { display: block; font-family: var(--sans); color: var(--rosso); font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.sfoglia__link--dx { text-align: right; }

.paginazione { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 48px; color: var(--grigio); }
.paginazione a { font-weight: 600; text-decoration: none; }

/* ---------- piè di pagina ---------- */
.piede { margin-top: 96px; background: var(--inchiostro); color: #b9b9be; font-size: 14.5px; }
.piede a { color: #fff; text-decoration: none; }
.piede a:hover { text-decoration: underline; }
.piede__griglia { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.piede p { margin: 0; line-height: 1.9; }
.piede__nome { font: 800 26px var(--serif); color: #fff; margin-bottom: 6px !important; }
.piede__titolo { color: #fff; font-weight: 600; margin-bottom: 6px !important; }
.piede__fondo { border-top: 1px solid #333; padding: 18px 0 26px; font-size: 13px; color: #8a8a90; }

/* ---------- tablet e smartphone ---------- */
@media (max-width: 1199px) {
  .menu-apri {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px;
    border: 0; border-radius: 12px; background: var(--rosa); cursor: pointer; padding: 0 12px;
  }
  .menu-apri span { height: 2.5px; background: var(--rosso); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-aperto .menu-apri span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-aperto .menu-apri span:nth-child(2) { opacity: 0; }
  .menu-aperto .menu-apri span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--linea);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
  }
  .menu a { padding: 12px 14px; font-size: 17px; }
  .menu-aperto .menu { display: flex; }
  .barra-orari__contatti { display: none !important; }
}

@media (max-width: 860px) {
  .eroe__griglia { grid-template-columns: 1fr; padding: 48px 0 70px; gap: 28px; }
  .illustrazione { max-width: 460px; margin-inline: auto; }
  .scheda--evidenza { flex-direction: column; align-items: stretch; padding: 16px 16px 26px; gap: 18px; }
  .scheda--evidenza .scheda__immagine { flex: none; }
  .scheda--evidenza .scheda__testo { padding: 0 10px; }
  .realta, .info-pratiche { grid-template-columns: 1fr; }
  .info-pratiche { padding: 30px 24px; gap: 24px; }
  .piede__griglia { grid-template-columns: 1fr 1fr; }
  .sezione { padding-top: 64px; }
}

@media (max-width: 520px) {
  .marchio img { height: 58px; }
  .griglia-schede { grid-template-columns: 1fr; }
  .sezione__testa { flex-direction: column; align-items: start; }
  .prosa { font-size: 17px; }
  .sfoglia { grid-template-columns: 1fr; }
  .sfoglia__link--dx { text-align: left; }
  .piede__griglia { grid-template-columns: 1fr; }
  .orari__riga b { font-size: 24px; }
}

/* ---------- percorso d'arte: schede dei QR code (/qr01/ …) ---------- */
.opera [id] { scroll-margin-top: 120px; }
/* le icone hanno width/height 24 come riserva senza CSS; qui conta solo la larghezza */
.opera svg, .lettore-mini svg { height: auto; }

.opera-eroe { --scorrimento: 0; position: relative; background: var(--crema); overflow: hidden; }
.opera-eroe__griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 28px 0 96px; }
.opera-eroe__cornice {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 74vh; padding: 0; border: 0;
  border-radius: 30px; overflow: hidden; background: var(--rosa); cursor: zoom-in;
  box-shadow: 0 34px 60px -34px rgba(60, 20, 20, .55);
  transform: translateY(calc(var(--scorrimento) * 60px)) scale(calc(1 - var(--scorrimento) * .08));
  opacity: calc(1 - var(--scorrimento) * .6);
}
.opera-eroe__cornice img { width: 100%; height: 100%; object-fit: cover; animation: opera-avvicina 2.4s cubic-bezier(.2, .7, .2, 1) both; transition: transform .6s; }
.opera-eroe__cornice:hover img { transform: scale(1.03); }
.opera-eroe__lente {
  position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
}
.opera-eroe__lente svg { width: 22px; fill: var(--rosso); }
.opera-eroe__cornice--vuota { display: grid; place-content: center; text-align: center; cursor: default; color: var(--rosso); }
.opera-eroe__cornice--vuota span { font: 800 140px/1 var(--serif); opacity: .35; }
.opera-eroe__cornice--vuota p { margin: 8px 0 0; font-weight: 600; }

.opera-eroe h1 { font-weight: 800; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.02em; }
.opera-eroe__sotto { font-size: 19px; color: #555; margin: 18px 0 0; max-width: 480px; }
.opera-eroe__autore { font: 600 24px/1.25 var(--serif); color: var(--rosso); margin: 16px 0 0; }
.opera-eroe__tecnica { font-size: 15.5px; color: var(--grigio); margin: 6px 0 0; }
.opera-eroe__autore + .opera-eroe__tecnica + .opera-eroe__sotto, .opera-eroe__tecnica + .opera-eroe__sotto { margin-top: 14px; }

/* frecce per passare da un'opera all'altra */
.opera-passi { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; }
.opera-passi .occhiello { margin: 0; text-align: center; }
.opera-passi__freccia {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--rosso); border: 1.5px solid var(--linea); transition: background .15s, color .15s, transform .15s;
}
.opera-passi__freccia:hover { background: var(--rosso); color: #fff; border-color: var(--rosso); }
.opera-passi__freccia:first-child:hover { transform: translateX(-2px); }
.opera-passi__freccia:last-child:hover { transform: translateX(2px); }
.opera-passi__freccia svg { width: 22px; fill: currentColor; }
.opera-eroe__azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.opera-eroe__azioni .bottone { display: inline-flex; align-items: center; gap: 9px; }
.opera-eroe__azioni svg { width: 19px; height: 19px; fill: currentColor; }


/* comparsa all'apertura e allo scorrimento */
.entra { animation: opera-sale .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--ritardo, 0) * 110ms + 150ms); }
.js .rivela { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rivela.visibile { opacity: 1; transform: none; }

@keyframes opera-sale { from { opacity: 0; transform: translateY(26px); } }
@keyframes opera-avvicina { from { transform: scale(1.14); filter: saturate(.4) blur(3px); } }

.opera-sezione { padding-top: 64px; }
#ascolta { margin-top: -40px; padding-top: 0; position: relative; }

/* lettore audio */
.lettore {
  --avanzamento: 0%; display: flex; align-items: center; gap: 22px; padding: 22px 26px 22px 22px;
  background: var(--rosso); color: #fff; border-radius: 30px; box-shadow: 0 22px 50px -24px rgba(200, 16, 46, .6);
}
.lettore audio { display: none; }
.lettore:not(.lettore--pronto) { flex-wrap: wrap; }
.lettore:not(.lettore--pronto) audio { display: block; width: 100%; }
.lettore:not(.lettore--pronto) :is(.lettore__play, .lettore__barra, .lettore__tempi, .lettore__salti) { display: none; }
.lettore__play {
  flex: none; display: grid; place-items: center; width: 68px; height: 68px; border: 0; border-radius: 50%;
  background: #fff; color: var(--rosso); cursor: pointer; transition: transform .15s;
}
button.lettore__play:hover { transform: scale(1.06); }
.lettore__play svg { width: 30px; fill: currentColor; }
.icona-pausa, .audio-in-corso .icona-play { display: none; }
.audio-in-corso .icona-pausa { display: block; }
.audio-in-corso .lettore__play { animation: opera-pulsa 2s ease-out infinite; }
@keyframes opera-pulsa { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }

.lettore__corpo { flex: 1; min-width: 0; }
.lettore__titolo { margin: 0 0 8px; font: 700 21px/1.2 var(--serif); }
.lettore__nota { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .9); }
.lettore__barra {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(#fff, #fff) 0 0 / var(--avanzamento) 100% no-repeat, rgba(255, 255, 255, .3);
}
.lettore__barra::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.lettore__barra::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.lettore__barra:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.lettore__tempi { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.lettore__salti { display: flex; gap: 8px; }
.lettore__salti button {
  border: 1.5px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; border-radius: 999px;
  font: 600 14px var(--sans); padding: 8px 12px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.lettore__salti button:hover { background: #fff; color: var(--rosso); }
.lettore--vuoto { background: var(--rosa); color: var(--inchiostro); box-shadow: none; }
.lettore--vuoto .lettore__nota { color: var(--grigio); }
.lettore--errore :is(.lettore__barra, .lettore__tempi, .lettore__salti, .lettore__play) { opacity: .45; pointer-events: none; }

/* mini lettore fisso in basso, mentre si legge */
.lettore-mini {
  --avanzamento: 0%; position: fixed; left: 50%; bottom: 16px; z-index: 6; width: min(560px, 100% - 24px);
  display: flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px; overflow: hidden;
  background: var(--inchiostro); color: #fff; border-radius: 999px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.lettore-mini--visibile { transform: translate(-50%, 0); }
.lettore-mini__play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--rosso); color: #fff; cursor: pointer; }
.lettore-mini__play svg { width: 20px; fill: currentColor; }
.lettore-mini__titolo { flex: 1; min-width: 0; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lettore-mini__tempo { font-size: 13px; color: #b9b9be; font-variant-numeric: tabular-nums; }
.lettore-mini__avanzamento { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--avanzamento); background: var(--rosso); }

/* testo, con capolettera */
.opera-testo > p:first-child::first-letter { float: left; font: 800 4.4em/.82 var(--serif); color: var(--rosso); margin: 6px 12px 0 0; }

.opera-testo blockquote { font-size: 17px; line-height: 1.6; letter-spacing: .03em; }

/* tappe del percorso */
.tappe { margin-top: 64px; padding: 28px; border-radius: var(--raggio); background: var(--crema); text-align: center; }
.tappe__titolo { margin: 0 0 16px; font: 700 20px var(--serif); }
.tappe__elenco { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tappe__punto {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 700; text-decoration: none;
  background: #fff; color: var(--rosso); border: 2px solid var(--rosso); transition: background .15s, color .15s;
}
a.tappe__punto:hover, .tappe__punto--attuale { background: var(--rosso); color: #fff; }
.tappe__punto--vuoto { border-color: var(--linea); color: #b0b0b6; }

/* immagine ingrandita */
.ingrandimento { max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; padding: 16px; border: 0; background: transparent; cursor: zoom-out; }
.ingrandimento[open] { display: grid; place-items: center; animation: opera-sale .35s ease both; }
.ingrandimento::backdrop { background: rgba(20, 16, 16, .92); }
.ingrandimento img { max-width: 100%; max-height: calc(100vh - 32px); width: auto; border-radius: 12px; }
.ingrandimento__chiudi { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--inchiostro); font-size: 28px; line-height: 1; cursor: pointer; }

@media (max-width: 860px) {
  .opera-eroe__griglia { grid-template-columns: 1fr; gap: 28px; padding: 20px 0 84px; }
  .opera-eroe__cornice { aspect-ratio: 4 / 4.4; max-height: 62vh; border-radius: 24px; }
  #ascolta { margin-top: -52px; }
}

@media (max-width: 520px) {
  .opera-eroe__sotto { font-size: 17px; }
  .opera-passi__percorso { display: none; }
  .opera-eroe__azioni .bottone { flex: 1; justify-content: center; }
  .lettore { flex-wrap: wrap; gap: 16px; padding: 18px; border-radius: 24px; }
  .lettore__corpo { flex-basis: calc(100% - 86px); }
  .lettore__play { width: 60px; height: 60px; }
  .lettore__salti { width: 100%; }
  .lettore__salti button { flex: 1; }
  .tappe { padding: 22px 14px; }
  .tappe__punto { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .entra, .opera-eroe__cornice img, .audio-in-corso .lettore__play { animation: none; }
  .js .rivela { opacity: 1; transform: none; transition: none; }
  .lettore-mini { transition-duration: .01s; }
}
