/* Righello della pagina (assets/js/x3-righello.js): striscia a destra al posto della barra di scorrimento */
html.x3-rg-on { scrollbar-width: none; }
html.x3-rg-on::-webkit-scrollbar { width: 0; height: 0; }
.x3-rg { position: fixed; top: 0; bottom: 0; right: 0; width: 60px; z-index: 900; overflow: hidden; cursor: crosshair; user-select: none; touch-action: none;
  --rg-ink: #111; --rg-acc: #111; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.x3-rg-fondo { position: absolute; inset: 0; background: color-mix(in srgb, #fff 60%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to left, #000 40%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.15) 80%, transparent 100%); mask-image: linear-gradient(to left, #000 40%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.15) 80%, transparent 100%); }
.x3-rg-nastro { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.x3-rg-t { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.x3-rg-t > span { position: absolute; right: 0; top: 0; width: 10px; height: 1px; background: var(--rg-ink); opacity: .4; transform-origin: right center; transition: transform .12s ease-out, opacity .12s; }
.x3-rg-t.gr > span { width: 20px; opacity: .8; }
.x3-rg-t > em { position: absolute; right: 25px; top: 0; transform: translateY(-50%); font-style: normal; font-size: 11px; letter-spacing: .08em; color: var(--rg-ink); opacity: .5; }
/* fascia della parte visibile (si vede passando sopra) */
.x3-rg-fascia { position: absolute; right: 0; width: 60px; top: 0; background: rgba(17,17,17,.07); opacity: 0; transition: opacity .2s; pointer-events: none; }
.x3-rg-fascia > i { position: absolute; left: 0; right: 0; height: 1px; background: var(--rg-ink); opacity: .5; }
.x3-rg-fascia > i:first-child { top: 0; } .x3-rg-fascia > i:last-child { bottom: 0; }
.x3-rg.su .x3-rg-fascia { opacity: 1; }
/* riga della posizione con la percentuale */
.x3-rg-riga { position: absolute; right: 0; width: 60px; top: 0; height: 0; pointer-events: none; }
.x3-rg-riga > b { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rg-acc); box-shadow: 0 0 5px rgba(17,17,17,.35); }
.x3-rg-num { position: absolute; right: 3px; top: 5px; font-size: 12px; letter-spacing: .08em; color: var(--rg-acc); font-weight: 600; white-space: nowrap; }
.x3-rg-cif { display: inline-flex; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; margin-right: 1px; }
.x3-rg-col { display: flex; flex-direction: column; transition: transform .28s cubic-bezier(.2,.9,.2,1); }
.x3-rg-col > span { display: block; height: 1em; }
/* titoli principali accanto alla mappa: testo libero con l'alone, quello in cui sei più marcato */
.x3-rg-nomi { position: absolute; inset: 0; pointer-events: none; }
.x3-rg-nomi > a { position: absolute; right: 64px; top: 0; font: 700 15px/1.1 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: #6b675f; white-space: nowrap; opacity: 0; transition: opacity .2s, color .15s; cursor: pointer; text-decoration: none;
  text-shadow: 0 0 3px #ECEAE5, 0 0 8px #ECEAE5, 0 0 14px #ECEAE5; }
.x3-rg-nomi > a.qui { color: #111; }
.x3-rg-nomi > a:hover { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.x3-rg.su { width: 460px; }
.x3-rg.su .x3-rg-nomi { pointer-events: auto; }
.x3-rg.su .x3-rg-nomi > a { opacity: 1; }
.x3-rg.su .x3-rg-fondo { background: color-mix(in srgb, #DEDBD4 90%, transparent);
  -webkit-mask-image: linear-gradient(to left, #000 25%, rgba(0,0,0,.85) 50%, rgba(0,0,0,.4) 78%, transparent 100%); mask-image: linear-gradient(to left, #000 25%, rgba(0,0,0,.85) 50%, rgba(0,0,0,.4) 78%, transparent 100%); }
/* passaggio da fermo a mappa e ritorno, animato */
.x3-rg.anim .x3-rg-nastro, .x3-rg.anim .x3-rg-t, .x3-rg.anim .x3-rg-riga, .x3-rg.anim .x3-rg-fascia { transition: transform .38s cubic-bezier(.2,.9,.2,1); }
/* senza titoli: resta stretto anche aperto, solo la mappa da 0 a 100 */
.x3-rg.nt.su { width: 60px; }
.x3-rg.nt .x3-rg-nomi { display: none; }
.x3-rg.nt.su .x3-rg-fondo { -webkit-mask-image: linear-gradient(to left, #000 40%, rgba(0,0,0,.5) 75%, transparent 100%); mask-image: linear-gradient(to left, #000 40%, rgba(0,0,0,.5) 75%, transparent 100%); }
/* in negativo sul fondo (foto della home): tacche e numeri sempre leggibili, niente velo */
.x3-rg.auto { --rg-ink: #fff; --rg-acc: #fff; mix-blend-mode: difference; }
.x3-rg.auto .x3-rg-fondo { display: none; }
.x3-rg.auto .x3-rg-fascia { background: rgba(255,255,255,.12); }
.x3-rg.auto .x3-rg-riga > b { box-shadow: none; }
/* stretto (pagine dei tool): 14 px che non coprono i riquadri dei dati, tacche corte, niente numeri e niente percentuale finché il mouse non è sopra */
.x3-rg.st { width: 14px; transition: width .18s ease-out; }
.x3-rg.st .x3-rg-fascia, .x3-rg.st .x3-rg-riga { width: 14px; }
.x3-rg.st .x3-rg-t > span { width: 5px; }
.x3-rg.st .x3-rg-t.gr > span { width: 9px; }
.x3-rg.st .x3-rg-t > em, .x3-rg.st .x3-rg-num { display: none; }
.x3-rg.st .x3-rg-fondo { -webkit-mask-image: none; mask-image: none; background: color-mix(in srgb, #fff 75%, transparent); border-left: 1px solid rgba(17,17,17,.08); }
.x3-rg.st.su { width: 60px; }
.x3-rg.st.su .x3-rg-fascia, .x3-rg.st.su .x3-rg-riga { width: 60px; }
.x3-rg.st.su .x3-rg-t > span { width: 10px; } .x3-rg.st.su .x3-rg-t.gr > span { width: 20px; }
.x3-rg.st.su .x3-rg-t > em, .x3-rg.st.su .x3-rg-num { display: block; }
.x3-rg.st.su .x3-rg-num { display: inline; }
@media print { .x3-rg { display: none; } }
