/* ══ L'ESPERIENZA · v98 ═══════════════════════════════════════════════════
   Sta dove prima c'erano i Cerchi, subito prima dei biglietti.
   1. «Metti il visore» (canvas) con le etichette dei due tempi
   2. «La discesa»: il mosaico dei sei atti
   ══════════════════════════════════════════════════════════════════════ */
.esp { background: var(--black); padding: clamp(3.5rem,7vw,5.5rem) 0 0; }
.esp-testa { padding: 0 1.2rem; }
.esp [hidden] { display: none !important; }

/* ── 1 · metti il visore ── */
.mv-stage { position: relative; margin: 0 auto; overflow: hidden; background: #000;
  width: min(1200px, calc(100% - 2.4rem), calc((100vh - 200px) * 16 / 9));
  aspect-ratio: 16 / 9; outline: 1px solid rgba(182,9,27,.4);
  cursor: default; user-select: none; -webkit-user-select: none; }
.mv-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mv-stage:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.mv-mondo { position: absolute; top: clamp(10px,2vw,22px); z-index: 3; pointer-events: none;
  background: rgba(10,6,8,.78); backdrop-filter: blur(4px);
  padding: clamp(7px,1.1vw,12px) clamp(10px,1.6vw,18px); max-width: 46%; }
.mv-mondo strong { display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(13px,2vw,24px); letter-spacing: .14em; line-height: 1.1;
  text-transform: uppercase; white-space: nowrap; color: var(--white); }
.mv-mondo small { display: block; font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: clamp(10px,1vw,12.5px); color: var(--bone); opacity: .75; margin-top: 4px; }
.mv-mondo.sx { left: clamp(10px,2vw,22px); border-left: 4px solid var(--white); }
.mv-mondo.dx { right: clamp(10px,2vw,22px); border-right: 4px solid var(--red-bright); text-align: right; }
.mv-seq { position: absolute; right: clamp(10px,2vw,22px); bottom: clamp(10px,2vw,20px); z-index: 3;
  display: flex; gap: 4px; pointer-events: none; }
.mv-seq span { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; padding: 5px 10px;
  border-radius: 999px; background: rgba(0,0,0,.6); color: rgba(255,255,255,.55); transition: all .3s; }
.mv-seq span.ora { background: var(--red); color: #fff; }
.mv-hint { position: absolute; left: 50%; bottom: clamp(10px,2vw,20px); transform: translateX(-50%);
  z-index: 3; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12.5px; color: var(--white);
  background: rgba(0,0,0,.7); padding: 7px 13px; border-radius: 999px; pointer-events: none;
  transition: opacity .4s; white-space: nowrap; }
.mv-hint.via { opacity: 0; }
.mv-nota { text-align: center; font-size: .98rem; color: var(--bone); opacity: .8; margin: .9rem 1.2rem 0; }

/* ── le etichette dei due tempi: tour teatrale → realtà virtuale ──
   data-et sulla sezione: 1 due tempi (barra sotto), 2 sottotitolo, 3 interruttore */
.mv-seq { opacity: 0; transition: opacity .5s; }
.esp.vr-on .mv-seq { opacity: 1; }
.mv-mondo, .mv-cap, .mv-tempi { display: none; }

/* 1 · due tempi */
.esp[data-et="1"] .mv-tempi { display: flex; }
.mv-tempi { align-items: center; gap: clamp(10px,2vw,22px); margin: 14px auto 0;
  width: min(1200px, calc(100% - 2.4rem), calc((100vh - 200px) * 16 / 9)); }
.mv-t { display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 6px 0;
  cursor: pointer; color: var(--bone); text-align: left; opacity: .45; transition: opacity .4s; }
.mv-t.t2 { flex-direction: row-reverse; text-align: right; }
.mv-t .n { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; border: 2px solid rgba(240,232,224,.5);
  transition: all .4s; }
.mv-t strong { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: clamp(13px,1.6vw,19px); color: var(--white); white-space: nowrap; }
.mv-t small { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; margin-top: 3px; opacity: .8; }
.mv-t.on { opacity: 1; }
.mv-t.t1.on .n { background: var(--white); color: var(--black); border-color: var(--white); }
.mv-t.t2.on .n { background: var(--red); color: #fff; border-color: #ff6b5e; box-shadow: 0 0 0 6px rgba(182,9,27,.25); }
.esp[data-et="1"] .mv-stage, .mv-tempi { width: min(1200px, calc(100% - 2.4rem), calc((100vh - 300px) * 16 / 9)); }
.mv-linea { flex: 1; height: 2px; background: rgba(240,232,224,.18); position: relative; min-width: 40px; }
.mv-linea i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--white), var(--red-bright)); }
.mv-linea i::after { content: ''; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); }

/* 2 · sottotitolo */
.esp[data-et="2"] .mv-cap { display: block; }
.mv-cap { position: absolute; z-index: 3; left: clamp(12px,2.4vw,28px); bottom: clamp(12px,2.4vw,28px); pointer-events: none;
  padding: clamp(8px,1.2vw,14px) clamp(12px,1.8vw,20px); background: rgba(10,6,8,.78); backdrop-filter: blur(4px);
  border-left: 4px solid var(--white); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; max-width: 70%; }
.mv-cap.on { transition: opacity .45s .2s, transform .45s .2s; }
.mv-cap.vr { border-left-color: var(--red-bright); }
.mv-cap.annuncio { border-left-color: var(--red-bright); background: rgba(10,6,8,.6); }
.mv-cap.on { opacity: 1; transform: none; }
.mv-cap strong { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: clamp(14px,2.2vw,26px); line-height: 1.1; color: var(--white); white-space: nowrap; }
.mv-cap small { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: clamp(10.5px,1vw,13px); color: var(--bone); opacity: .8; margin-top: 4px; }
.esp[data-et="2"] .mv-hint { bottom: auto; top: clamp(10px,2vw,20px); }
.esp[data-et="2"] .mv-seq { bottom: auto; top: clamp(10px,2vw,20px); }

/* 3 · interruttore */
.esp[data-et="3"] .mv-mondo { display: block; transition: opacity .45s, filter .45s; }
.esp[data-et="3"] .mv-mondo:not(.on) { opacity: .38; filter: grayscale(1); }
.esp[data-et="3"] .mv-mondo:not(.on) strong { font-size: clamp(11px,1.4vw,16px); }
.esp[data-et="3"] .mv-mondo.dx.on { background: rgba(122,6,18,.82); }
.esp[data-et="3"] .mv-mondo.sx.on { background: rgba(10,6,8,.85); }

/* ── passaggio alla discesa ── */
.esp-lead { text-align: center; padding: clamp(3rem,7vw,5rem) 1.2rem clamp(1.6rem,3vw,2.4rem); }
.esp-lead-k { font-family: var(--font-display); font-size: .78rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--red-bright); margin-bottom: .6rem; }
.esp-lead-t { font-family: var(--font-body); font-style: italic; font-size: clamp(1.15rem,2.2vw,1.5rem);
  color: var(--white); max-width: 36ch; margin: 0 auto; line-height: 1.4; }

/* ── parti comuni ── */
.dsc { position: relative; padding: 0 1.2rem; }
.dsc-stack { position: relative; overflow: hidden; background: #000; }
.dsc-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease; }
.dsc-stack img.on { opacity: 1; }
.dsc-chip { position: absolute; z-index: 3; left: 12px; top: 12px; font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px;
  background: rgba(10,6,8,.78); border: 1px solid rgba(182,9,27,.55); color: var(--bone); }
.dsc-chip.pp { background: var(--red); border-color: var(--red); color: #fff; }
.dsc-k { font-family: var(--font-display); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--red-bright); margin: 0 0 .35rem; }
.dsc h3 { font-family: var(--font-display); font-weight: 700; color: var(--white); letter-spacing: .04em;
  font-size: clamp(1.4rem,2.6vw,2.1rem); line-height: 1.1; margin: 0 0 .45rem; }
.dsc-p { margin: 0; color: var(--white); font-size: clamp(1rem,1.5vw,1.15rem); line-height: 1.45; }
.dsc-ico { background: rgba(10,6,8,.62); border: 1px solid rgba(240,232,224,.28); color: var(--bone);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.dsc-ico:hover { border-color: var(--red-bright); }
.dsc-ico svg { width: 20px; height: 20px; fill: currentColor; }

/* ── D · il mosaico ── */
.dD { max-width: 1200px; margin: 0 auto; }
.dD-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dD-tile { position: relative; aspect-ratio: 4 / 3; cursor: default; border: none; padding: 0; background: #000; overflow: hidden; }
.dD-tile .dsc-stack { position: absolute; inset: 0; }
.dD-tile .dsc-stack img { transition: opacity 1.1s ease, transform 6s ease; }
/* v117: niente zoom al passaggio del mouse, le tessere non sono cliccabili */
.dD-tag { position: absolute; z-index: 3; left: 10px; top: 10px; font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; color: var(--bone);
  background: rgba(10,6,8,.72); border: 1px solid rgba(182,9,27,.5); transition: background .6s, color .6s; }
.dD-tag.pp { background: var(--red); border-color: var(--red); color: #fff; }
.dD-tag:empty { display: none; }
.dD-lbl { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; text-align: left;
  background: linear-gradient(transparent, rgba(5,2,3,.88)); }
.dD-lbl b { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; color: #f2b6ac; display: block; }
.dD-lbl span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.dD-open { display: none; grid-template-columns: 1.6fr 1fr; margin-top: 6px; background: #0f080a; border: 1px solid rgba(182,9,27,.25); }
.dD-open.on { display: grid; }
.dD-ostack { aspect-ratio: 16 / 10; }
.dD-txt { padding: 22px 24px; position: relative; }
.dD-x { position: absolute; right: 12px; top: 10px; background: none; border: none; color: var(--red-bright); font-size: 20px; cursor: pointer; }
.dD-th { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.dD-th button { width: 64px; height: 40px; border: 1px solid rgba(240,232,224,.25); padding: 0; background-size: cover;
  background-position: center; cursor: pointer; opacity: .6; }
.dD-th button.on { opacity: 1; border-color: var(--red-bright); }

/* ── chiusura ── */
.esp-fine { text-align: center; padding: clamp(3.5rem,8vw,5.5rem) 1.2rem clamp(3.5rem,7vw,5rem); }
.esp-fine blockquote { margin: 0 auto 2rem; max-width: 34rem; }
.esp-fine blockquote p { font-family: var(--font-body); font-style: italic; font-size: clamp(1.4rem,2.8vw,2rem);
  color: var(--white); line-height: 1.3; margin: 0 0 .6rem; }
.esp-fine cite { font-style: normal; font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bone); opacity: .7; }
.esp-fine .richiamo-nota { margin-top: 1rem; }

/* ── telefono ── */
@media (max-width: 760px) {
  .mv-stage { aspect-ratio: 4 / 3; cursor: default; }
  .mv-mondo { max-width: 48%; padding: 6px 8px; }
  .mv-mondo strong { letter-spacing: .06em; font-size: 12px; }
  .mv-mondo small { display: none; }
  .mv-seq span { font-size: 10.5px; padding: 4px 7px; }
  .mv-hint { bottom: auto; top: 54px; font-size: 11.5px; }
  .esp[data-et="2"] .mv-hint { top: 10px; }
  .esp[data-et="2"] .mv-seq { display: none; }
  .mv-tempi { gap: 8px; width: calc(100% - 2.4rem); }
  .mv-t { gap: 8px; }
  .mv-t .n { width: 30px; height: 30px; font-size: 13px; }
  .mv-t strong { letter-spacing: .05em; font-size: 12px; }
  .mv-t small { display: none; }
  .mv-cap { max-width: 82%; }
  .dD-grid { grid-template-columns: repeat(2, 1fr); }
  .dD-open { grid-template-columns: 1fr; }
  .dD-lbl span { font-size: 1rem; }
  .dD-tag { left: 6px; top: 6px; font-size: 9px; letter-spacing: .06em; padding: 3px 6px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .dsc-stack img, .dD-tile .dsc-stack img { transition: none; } }

/* ── la barra dell'anteprima, in alto (solo nella prova delle etichette) ── */
.simbar { position: fixed; top: 0; left: 0; right: 0; z-index: 400; height: 44px; display: flex; align-items: center;
  justify-content: center; gap: .5rem; padding: 0 .8rem; background: #f0e8e0; color: #120608;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; box-shadow: 0 2px 14px rgba(0,0,0,.5); }
.simbar > span { letter-spacing: .1em; text-transform: uppercase; margin-right: .2rem; white-space: nowrap; }
.simbar button { font: inherit; background: #fff; color: #120608; border: 1px solid #b6091b; padding: .35rem .65rem; cursor: pointer; white-space: nowrap; }
.simbar button.on { background: #b6091b; color: #fff; }
.simbar a { color: #b6091b; margin-left: .4rem; white-space: nowrap; }
body.sim nav { top: 44px; }
body.sim { padding-top: 0; }
@media (max-width: 760px) {
  .simbar { gap: .3rem; font-size: 11px; }
  .simbar .lungo { display: none; }
  .simbar a { display: none; }
}

/* v119: titoli lunghi degli atti III e VI (solo pagina scuole) */
.dD-lbl.lungo { padding-top: 26px; }
.dD-lbl.lungo span { display: block; line-height: 1.2; }
@media (max-width: 760px) {
  .dD-lbl.lungo { padding: 18px 10px 9px; }
  .dD-lbl.lungo b { font-size: 10px; }
  .dD-lbl.lungo span { font-size: .8rem; line-height: 1.18; }
}
