/* Guida al primo accesso (js/tour-guida.js): schermo scurito con un "buco" sul punto spiegato e un fumetto */
.tg-radice { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10060; }
.tg-schermo { position: absolute; inset: 0; background: rgba(0, 25, 50, .74); }
.tg-spot { position: fixed; border-radius: 14px; outline: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 25, 50, .74); pointer-events: none; transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease; }
.tg-spot[hidden], .tg-schermo[hidden], .tg-freccia[hidden], .tg-btn[hidden] { display: none; }
.tg-troncato { border-bottom: 3px dashed #fff; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }

.tg-tip { position: fixed; width: min(340px, calc(100vw - 24px)); box-sizing: border-box; background: #fff; color: #24384d; border-radius: 18px; padding: 16px 16px 12px; box-shadow: 0 14px 40px rgba(0, 20, 45, .45); outline: none; transition: top .25s ease, left .25s ease; }
.tg-freccia { position: absolute; width: 14px; height: 14px; margin-left: -7px; background: #fff; transform: rotate(45deg); }
.tg-tip[data-lato="sotto"] .tg-freccia { top: -7px; }
.tg-tip[data-lato="sopra"] .tg-freccia { bottom: -7px; }
.tg-testa { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tg-ico { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #003366; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.tg-titolo { margin: 0; font-size: 1.08rem; line-height: 1.2; color: #003366; }
.tg-testo { margin: 0 0 12px; font-size: .92rem; line-height: 1.5; }
.tg-progresso { height: 4px; border-radius: 2px; background: #e3e9f0; overflow: hidden; margin-bottom: 10px; }
.tg-barra { display: block; height: 100%; background: #0f4c81; border-radius: 2px; transition: width .25s ease; }
.tg-piede { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tg-conta { margin-right: auto; font-size: .75rem; color: #64748b; }
.tg-btn { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid #b9d2ec; background: #fff; color: #0f4c81; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.tg-avanti { background: #0f4c81; color: #fff; border-color: #0f4c81; }
.tg-salta { border-color: transparent; color: #64748b; font-weight: 600; padding: 0 8px; }
.tg-btn:focus-visible { outline: 3px solid #f39c12; outline-offset: 2px; }

/* Mentre la guida e' aperta il fumetto proattivo di AlBas non deve coprirla */
body.tg-attiva .albas-bolla { display: none; }

@media (prefers-reduced-motion: reduce) {
    .tg-spot, .tg-tip, .tg-barra { transition: none; }
}
