/* ==========================================================================
   /tour — «Dall'idea all'azienda» (sessione #211). Regia in scripts/tour.js.
   Copia servita: dist/static/tour.css (identica: quando cambi questo file
   ricopialo).

   ⛔ Niente `transition` né `animation` su ciò che dipende dal tempo del
   racconto (didascalie, bisogno, scheda, voci del menù, barra): lo stato lo
   scrive tour.js a ogni fotogramma da `t`. Una transizione CSS farebbe
   «scivolare» i pezzi quando si torna indietro o si salta.
   Tono: quello della home — molto nero e bianco, il rosso Crybu unico accento.
   ========================================================================== */
.tour-pagina { padding-top: 72px; }
.tour { --tr-bordo: rgba(0,0,0,.28); --tr-luce: #c8e8ff; --tr-fasi: 46px; --tr-com: 58px; position: relative; display: flex; flex-direction: column;
  padding: 0; max-width: none; margin: 0; /* il sito dà a ogni <section> margini e larghezza massima: qui il palco va da bordo a bordo */ }
html[data-theme="light"] .tour { --tr-bordo: rgba(40,50,70,.5); --tr-luce: #3896e6; }
.tour-difese { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- le quattro fasi ---------- */
.tour-fasi { list-style: none; margin: 0; padding: 0 24px; height: var(--tr-fasi); display: flex; align-items: center; justify-content: center; gap: 10px; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.tour-fasi li { display: flex; align-items: center; gap: 10px; opacity: .55; white-space: nowrap; }
.tour-fasi li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.tour-fasi li + li::after { content: ''; order: -1; width: clamp(14px, 5vw, 64px); height: 1px; background: var(--border); }
.tour-fasi li.fatta { opacity: .9; color: var(--text); }
.tour-fasi li.fatta::before { background: currentColor; }
.tour-fasi li.on { opacity: 1; color: var(--text); }
.tour-fasi li.on::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(247,60,28,.18); }
.tour:not(.tour-on) .tour-fasi li { opacity: .9; }

/* La striscia delle parole chiave (29/11): con JS l'elenco diventa una riga che scorre e tiene al
   centro la parola in corso; le parole non ancora dette non si vedono. Lo scorrimento lo scrive
   tour.js da `t` (niente transizioni). */
.tour-striscia { height: var(--tr-fasi); overflow: hidden; border-bottom: 1px solid var(--border); position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tour-on .tour-fasi { position: relative; width: max-content; justify-content: flex-start; border-bottom: 0; padding: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; will-change: transform; }
.tour-on .tour-fasi li { opacity: 0; cursor: pointer; }
.tour-on .tour-fasi li::before { border-color: var(--pc, currentColor); }
.tour-on .tour-fasi li.fatta { opacity: .62; }
.tour-on .tour-fasi li.fatta::before { background: var(--pc, currentColor); }
.tour-on .tour-fasi li.fatta:hover { opacity: 1; }
.tour-on .tour-fasi li.on { opacity: 1; }
.tour-on .tour-fasi li.on::before { background: var(--pc, var(--red)); border-color: var(--pc, var(--red)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc, var(--red)) 22%, transparent); }
/* la parola chiave in grande al centro: stesso carattere della striscia, così quando si posa combacia */
.tour-parola { position: absolute; left: 50%; top: 0; z-index: 6; visibility: hidden; pointer-events: none; white-space: nowrap; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 1; font-size: clamp(34px, 7.4vw, 104px); color: var(--text); will-change: transform, opacity;
  text-shadow: 0 2px 24px var(--bg), 0 0 70px var(--bg), 0 0 120px var(--bg); }

/* ---------- il palco ---------- */
.tour-palco, .tour-comandi { display: none; }
.tour-on .tour-palco { display: block; position: relative; height: calc(100vh - 72px - var(--tr-fasi) - var(--tr-com)); height: calc(100svh - 72px - var(--tr-fasi) - var(--tr-com)); min-height: 440px; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 90% at 60% 40%, rgba(120,150,210,.07), transparent 60%), var(--bg); }
/* il fondo della Plancia: quasi nero, con un alone viola-blu */
html:not([data-theme="light"]) .tour-on .tour-palco { background: radial-gradient(90% 70% at 55% 45%, rgba(99,82,255,.13), transparent 62%), radial-gradient(60% 50% at 82% 78%, rgba(236,72,153,.06), transparent 70%), #05060a; }
.tour-tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* il menù dei reparti */
.tour-menu { position: absolute; left: 0; top: 0; bottom: 0; width: 212px; padding: 18px 10px 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 2px; z-index: 3; }
.tour-voce { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--muted); cursor: default; white-space: nowrap; }
.tour-voce i { width: 3px; height: 14px; border-radius: 2px; flex-shrink: 0; opacity: .35; }
.tour-voce small { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9.5px; letter-spacing: .06em; opacity: 0; }
.tour-voce.via { visibility: hidden; }
.tour-voce.tracciata { opacity: .5; }
.tour-voce.accesa { color: var(--text); }
.tour-voce.accesa i { opacity: 1; }
.tour-voce.accesa small { opacity: .5; }
.tour-voce:not(:disabled) { cursor: pointer; }
.tour-voce.accesa:not(:disabled):hover, .tour-voce:focus-visible { background: var(--surface); outline: 1px solid var(--border); }
.tour-voce.corrente { background: var(--surface); outline: 1px solid var(--border); }
.tour-voce.corrente span { color: var(--text); }

/* le didascalie degli atti */
.tour-did { position: absolute; left: 240px; bottom: 34px; max-width: 460px; z-index: 2; visibility: hidden; pointer-events: none; }
.tour-did h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 10px; color: var(--text); }
.tour-did p { font-size: clamp(15px, 1.25vw, 17.5px); line-height: 1.5; color: var(--muted); margin: 0; }
.tour-did-idea { left: 0; right: 0; bottom: auto; top: 24%; max-width: none; text-align: center; padding: 0 24px; }
.tour-did-idea h2 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 14px; }
.tour-did-fine { left: 0; right: 0; bottom: auto; top: 50%; margin-top: -110px; max-width: none; text-align: center; padding: 0 24px; }
.tour-did-fine h2 { font-size: clamp(28px, 3.6vw, 48px); }
.tour-did-fine p { max-width: 560px; margin: 0 auto 26px; color: var(--text); }
/* il finale coi tre punti (titolare 29/11): centrato in altezza, punti allineati a sinistra */
.tour-did-fine { margin-top: 0; transform: translateY(-50%); }
.tour-did-fine h2 { margin-bottom: 22px; }
.tour-did-fine ul { list-style: none; margin: 0 auto 28px; padding: 0; max-width: 660px; text-align: left; display: grid; gap: 14px; }
.tour-did-fine li { font-size: clamp(14.5px, 1.2vw, 17px); line-height: 1.5; color: var(--muted); padding-left: 16px; border-left: 2px solid var(--red); }
.tour-did-fine li b { color: var(--text); font-weight: 600; }
.tour-stretto .tour-did-fine h2 { font-size: 24px; margin-bottom: 14px; }
.tour-stretto .tour-did-fine ul { gap: 10px; margin-bottom: 18px; }
.tour-stretto .tour-did-fine li { font-size: 13.5px; line-height: 1.4; padding-left: 12px; }
.tour-did .btn { transition: background .2s, box-shadow .2s; }

/* il bisogno e la scheda del dipendente virtuale */
.tour-bisogno { position: absolute; left: 240px; top: 9%; z-index: 2; visibility: hidden; pointer-events: none; }
.tour-bisogno span { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.01em; color: var(--text); padding-left: 16px; border-left: 3px solid var(--red); }
.tour-scheda { position: absolute; right: 30px; top: 50%; width: 370px; margin-top: -170px; z-index: 4; visibility: hidden; cursor: default; transform-origin: 0 55%;
  padding: 20px 22px 22px; border-radius: 16px; border: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.tour-sch-testa { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.tour-sch-fig { flex-shrink: 0; width: 86px; height: 84px; border-radius: 12px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tr-rep) 14%, transparent)); border: 1px solid var(--border); }
.tour-desk { width: 78px; height: auto; display: block; }
.tour-sch-rep { display: flex; align-items: center; gap: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tour-sch-rep i { width: 12px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.tour-sch-rep em { margin-left: auto; padding-left: 10px; font-style: normal; text-transform: none; letter-spacing: 0; opacity: .75; white-space: nowrap; }
.tour-sch-testa > div { flex: 1; min-width: 0; }
.tour-figura { height: 74px; width: auto; display: block; margin-bottom: 4px; }
.tour-scheda h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; margin: 5px 0 4px; color: var(--text); }
.tour-sch-mod { font-size: 12px; line-height: 1.35; color: var(--muted); }
.tour-sch-fa { font-size: 15px; line-height: 1.5; color: var(--text); margin: 0 0 10px; }
.tour-sch-ott { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 0 0 18px; padding-top: 10px; border-top: 1px solid var(--border); }
.tour-sch-ott b { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 2px; }
.tour-sch-azioni { display: flex; gap: 10px; }
.tour-sch-azioni .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13.5px; transition: background .2s, border-color .2s, box-shadow .2s; }

/* in pausa: un segno discreto in alto a destra */
.tour-pausa .tour-palco::after { content: 'In pausa'; position: absolute; right: 22px; top: 16px; z-index: 5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--nav-bg); }

/* ---------- i comandi ---------- */
.tour-on .tour-comandi { display: flex; align-items: center; gap: 8px; height: var(--tr-com); padding: 0 108px 0 22px; border-top: 1px solid var(--border); background: var(--bg); }
.tour-b { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 9px; border-radius: 9px; color: var(--text); cursor: pointer; font-family: var(--font-display); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tour-b:hover { background: var(--surface); }
.tour-b:focus-visible, .tour-barra:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.tour-b:disabled { opacity: .35; cursor: default; }
.tour-play { background: var(--text); color: var(--bg); border-radius: 50%; width: 36px; padding: 0; }
.tour-play:hover { background: var(--text); opacity: .88; }
.tour-vel { min-width: 50px; border: 1px solid var(--border); }
.tour-salta { border: 1px solid var(--border); padding: 0 13px; }
.tour-barra { flex: 1; display: flex; gap: 2px; height: 28px; align-items: center; margin: 0 8px; cursor: pointer; touch-action: none; border-radius: 6px; min-width: 60px; }
.tour-tratto { flex: 1 1 0; min-width: 4px; height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; position: relative; }
/* versione spot: le parti saltate sono «tagliate» dalla barra */
.tour-tratto b { display: none; position: absolute; top: 0; bottom: 0; background: var(--bg); opacity: .82; }
.tour-spot .tour-tratto b { display: block; }
/* versione spot / completa, e la voce */
.tour-vers { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; padding: 2px; gap: 2px; margin-left: 4px; }
.tour-vers .tour-b { height: 30px; min-width: 0; padding: 0 10px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.tour-vers .tour-b small { font-size: 11px; font-weight: 500; opacity: .75; margin-left: 4px; }
.tour-vers .tour-b[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.tour-voce-b { border: 1px solid var(--border); color: var(--muted); }
.tour-voce-b.on { color: var(--bg); background: var(--text); border-color: var(--text); }   /* acceso = bianco, come la versione scelta (titolare 29/11) */
.tour-voce-b span { display: none; }
/* la prima pagina: al centro la scelta della versione, l'audio e il play. Sono gli stessi pulsanti
   della barra: al via tour.js li rimette sotto e li fa scendere al loro posto. */
.tour-inizio { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center; padding: 24px; cursor: default;
  background: radial-gradient(70% 65% at 50% 50%, color-mix(in srgb, var(--bg) 86%, transparent), color-mix(in srgb, var(--bg) 40%, transparent)); transition: opacity .45s; }
.tour-inizio.via { opacity: 0; pointer-events: none; }
/* Il logo Crybu in testa alla prima pagina (titolare 29/11: «un'animazione più elegante»): lento e
   sobrio. La barra si stende dal centro, l'asta del segno si scopre dal basso, la gamba corta la
   segue, le lettere si accostano al segno mettendosi a fuoco; un filo sottile si apre sotto e il
   resto della pagina sale piano. Poi restano solo un alone appena percettibile e, ogni tanto, un
   riflesso sottile. Niente lampeggi, niente rimbalzi. */
.tour-in-logo { position: relative; width: clamp(190px, 24vw, 340px); aspect-ratio: 583 / 240; --tl: cubic-bezier(.16, 1, .3, 1); }
.tour-in-logo::before { content: ''; position: absolute; left: 50%; top: 50%; width: 60%; height: 130%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(247,60,28,.3), rgba(247,60,28,0)); filter: blur(30px); opacity: 0; animation: tlAlone 9s ease-in-out 1.2s infinite; }
.tour-in-logo img, .tour-in-logo svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
html[data-theme="light"] .tour-in-logo img { filter: brightness(0); }
.tour-in-logo path { transform-box: fill-box; transform-origin: 50% 50%; }
.tour-in-logo .tl-barra { opacity: 0; animation: tlBarra 1.1s var(--tl) .15s forwards; }
.tour-in-logo .tl-asta { opacity: 0; animation: tlScopri 1.3s var(--tl) .45s forwards; }
.tour-in-logo .tl-gamba { opacity: 0; animation: tlScopri 1s var(--tl) .95s forwards; }
.tour-in-logo .tl-l { fill: var(--text); opacity: 0; animation: tlLettera 1.5s var(--tl) forwards; animation-delay: calc(.85s + var(--i, 0) * .16s); }
.tour-in-logo i { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url(/images/logoTestoBianco.svg) center / contain no-repeat; mask: url(/images/logoTestoBianco.svg) center / contain no-repeat;
  background: linear-gradient(100deg, transparent 46%, rgba(255,255,255,.55) 50%, transparent 54%) no-repeat; background-size: 300% 100%; background-position: 150% 0; animation: tlLama 8s cubic-bezier(.4, 0, .2, 1) 3.2s infinite; }
.tour-in-filo { display: block; width: clamp(120px, 15vw, 220px); height: 1px; margin: -6px 0 -4px; background: linear-gradient(90deg, transparent, var(--text), transparent); opacity: .35; transform: scaleX(0); animation: tlFilo 1.4s cubic-bezier(.16, 1, .3, 1) 1.5s forwards; }
.tour-inizio .tour-in-k, .tour-inizio h2, .tour-inizio .tour-in-scelte, .tour-inizio .tour-in-play { opacity: 0; animation: tlSale 1.1s cubic-bezier(.16, 1, .3, 1) forwards; }
.tour-inizio .tour-in-k { animation-delay: 1.7s; }
.tour-inizio h2 { animation-delay: 1.85s; }
.tour-inizio .tour-in-scelte { animation-delay: 2.1s; }
.tour-inizio .tour-in-play { animation-delay: 2.3s; }
@keyframes tlBarra { from { opacity: 0; transform: scaleX(0); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes tlScopri { from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(6px); } 25% { opacity: 1; } to { opacity: 1; clip-path: inset(-2% -2% -2% -2%); transform: none; } }
@keyframes tlLettera { from { opacity: 0; filter: blur(7px); transform: translateX(calc(var(--dx, 1) * 26px)); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes tlFilo { to { transform: scaleX(1); } }
@keyframes tlSale { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }
@keyframes tlAlone { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes tlLama { 0% { background-position: 150% 0; } 22%, 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .tour-in-logo *, .tour-in-logo::before, .tour-in-filo, .tour-inizio .tour-in-k, .tour-inizio h2, .tour-inizio .tour-in-scelte, .tour-inizio .tour-in-play { animation: none !important; opacity: 1 !important; transform: none !important; } .tour-in-logo::before { transform: translate(-50%, -50%) !important; } .tour-in-logo i { display: none; } .tour-in-filo { opacity: .35 !important; } }
/* su /tour Cuby non c'è (titolare 29/11): la pagina può restare a schermo in attesa di partire */
.tour-pag #cuby-root { display: none !important; }
.tour-pag .tour-on .tour-comandi { padding-right: 22px; }
@media (max-width: 860px) { .tour-pag .tour-on .tour-comandi { padding-right: 8px; } }
.tour-in-k { margin: 0 0 -14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.tour-inizio h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5.6vw, 72px); line-height: 1.05; letter-spacing: -.01em; color: var(--text); }
.tour-in-scelte { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.tour-inizio .tour-vers { margin: 0; border: 1px solid var(--border); padding: 3px; border-radius: 12px; background: var(--bg); }
.tour-inizio .tour-vers .tour-b { display: inline-flex !important; height: 42px; padding: 0 18px; font-size: 14.5px; border: 0; border-radius: 9px; color: var(--muted) !important; }
.tour-inizio .tour-vers .tour-b[aria-pressed="true"] { background: var(--text) !important; color: var(--bg) !important; }
.tour-inizio .tour-vers .tour-b small { display: inline; font-size: 12.5px; }
.tour-inizio .tour-voce-b { height: 50px; padding: 0 18px; gap: 9px; border-radius: 12px; font-size: 14px; background: var(--bg); }
.tour-inizio .tour-voce-b.on { background: var(--text); }
.tour-inizio .tour-voce-b span { display: inline; }
.tour-in-play { all: unset; box-sizing: border-box; width: 92px; height: 92px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding-left: 5px; cursor: pointer; background: var(--red); color: #fff; box-shadow: 0 0 0 10px rgba(247,60,28,.14), 0 18px 50px -10px rgba(247,60,28,.6); transition: transform .2s, box-shadow .2s; }
.tour-in-play:hover { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(247,60,28,.16), 0 18px 60px -8px rgba(247,60,28,.7); }
.tour-in-play:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.tour-inizio-on.tour-pausa .tour-palco::after { display: none; }
.tour-barra:hover .tour-tratto { height: 7px; }
.tour-tratto i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.tour-tempo { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tour-capitolo { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; min-width: 150px; padding-left: 10px; border-left: 1px solid var(--border); }

/* Cuby, la mascotte fissa in basso a destra, coprirebbe i comandi: su schermo largo sta sopra la
   barra. Dove `:has` non c'è resta al suo posto e i comandi le lasciano spazio a destra. */
@supports selector(:has(*)) {
  @media (min-width: 861px) {
    body:has(.tour-on) #cuby-root { bottom: calc(var(--tr-com, 58px) + 16px); }
    .tour-on .tour-comandi { padding-right: 22px; }
  }
}
body:has(.tour-on) { --tr-com: 58px; }

/* ---------- il racconto scritto (sempre nella pagina: per chi non vede l'animazione e per i motori di ricerca) ---------- */
.tour-racconto { max-width: 800px; margin: 0 auto; padding: 72px 24px 90px; }
.tour-racconto .kicker { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.tour-racconto h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin: 0 0 16px; }
.tour-racconto > p { color: var(--muted); font-size: 17px; margin: 0 0 34px; }
.tour-racconto ol { list-style: none; margin: 0 0 36px; padding: 0; counter-reset: passo; }
.tour-racconto li { counter-increment: passo; padding: 20px 0 20px 54px; border-top: 1px solid var(--border); position: relative; }
.tour-racconto li::before { content: counter(passo, decimal-leading-zero); position: absolute; left: 0; top: 23px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--red); }
.tour-racconto h2 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 5px; }
.tour-racconto li p { margin: 0; color: var(--muted); }
.tour-racconto li p.tour-mod { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--border); font-size: 15px; }
.tour-racconto .tour-mod a { color: var(--text); font-weight: 600; text-decoration: none; }
.tour-racconto .tour-mod a:hover { color: var(--red); }
.tour-racconto .tour-mod span { display: block; font-size: 13.5px; opacity: .8; }
.tour-racconto .tour-fase { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }

/* ---------- schermi stretti ---------- */
@media (max-width: 1280px) { .tour-capitolo { display: none; } }
@media (max-width: 1040px) { .tour-vers .tour-b small { display: none; } }
.tour-stretto .tour-menu { top: 0; bottom: auto; left: 0; right: 0; width: auto; flex-direction: row; justify-content: flex-start; gap: 4px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.tour-stretto .tour-menu::-webkit-scrollbar { display: none; }
.tour-stretto .tour-voce { flex-shrink: 0; padding: 5px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 999px; }
.tour-stretto .tour-voce small { display: none; }
.tour-stretto .tour-voce.via { display: none; }
.tour-stretto.tour-pausa .tour-palco::after { top: auto; bottom: 10px; right: 12px; }
.tour-stretto .tour-did { left: 18px; right: 18px; bottom: 22px; max-width: none; }
.tour-stretto .tour-did-idea, .tour-stretto .tour-did-fine { left: 0; right: 0; }
.tour-stretto .tour-did-idea { top: 20%; }
.tour-stretto .tour-bisogno { left: 18px; right: 18px; top: 58px; }
.tour-stretto .tour-bisogno span { font-size: clamp(22px, 6.4vw, 30px); padding-left: 12px; }
.tour-stretto .tour-scheda { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; margin-top: 0; padding: 14px 16px 16px; transform-origin: 50% 100%; }
.tour-stretto .tour-sch-fig { width: 64px; height: 62px; }
.tour-stretto .tour-desk { width: 58px; }
.tour-stretto .tour-figura { height: 54px; }
.tour-stretto .tour-scheda h3 { font-size: 19px; }
.tour-stretto .tour-sch-testa { margin-bottom: 10px; }
.tour-stretto .tour-sch-fa { font-size: 14px; margin-bottom: 8px; }
.tour-stretto .tour-sch-ott { font-size: 13px; margin-bottom: 12px; padding-top: 8px; }
@media (max-width: 860px) {
  .tour { --tr-fasi: 40px; --tr-com: 54px; }
  .tour-fasi { font-size: 11px; gap: 6px; padding: 0 10px; letter-spacing: 0; }
  .tour-fasi li { gap: 6px; }
  .tour-fasi li + li::after { width: 8px; }
  .tour-on .tour-comandi { padding: 0 76px 0 8px; gap: 2px; }
  .tour-tempo, .tour-salta, .tour-prec { display: none; }
  .tour-vers { border: 0; padding: 0; margin: 0; }
  .tour-vers .tour-b { height: 36px; padding: 0 8px; font-size: 12px; border: 1px solid var(--border); background: none !important; color: var(--text) !important; }
  .tour-vers .tour-b[aria-pressed="false"] { display: none; }
  .tour-on .tour-fasi { font-size: 11px; }
  .tour-barra { margin: 0 6px; }
  .tour-vel { min-width: 44px; }
  .tour-racconto { padding: 48px 20px 70px; }
}

/* «Solo il palco» (/tour?solo=1#Mxxx): il tour incorniciato nel Control Center. Resta il palco con i comandi. */
.tour-solo #siteNav, .tour-solo #mobileMenu, .tour-solo footer, .tour-solo .tour-racconto, .tour-solo #cuby-root,
.tour-solo #crybuCookieBanner, .tour-solo #crybuCookieDialog, .tour-solo .tour-sch-azioni, .tour-solo .tour-did .btn { display: none !important; }
.tour-solo .tour-pagina { padding-top: 0; }
.tour-solo .tour-on .tour-palco, .tour-solo.tour-solo .tour-palco { height: calc(100vh - var(--tr-fasi) - var(--tr-com)); height: calc(100svh - var(--tr-fasi) - var(--tr-com)); min-height: 0; }
