/*
 * Giro guidato: velo sulla pagina, "buco" sull'elemento di cui si sta parlando e fumetto
 * con la spiegazione. Il velo e' realizzato con l'ombra enorme del buco: cosi' l'elemento
 * evidenziato resta cliccabile e nitido, senza ritagliare immagini.
 */

.tour-scena {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10050;
    /* Lascia passare i clic sulla pagina: il velo vero e' l'ombra del buco. */
    pointer-events: none;
}

/* Passo "al centro": nessun elemento evidenziato, velo pieno che intercetta i clic. */
.tour-scena.tour-velo-pieno {
    background: rgba(17, 24, 39, .55);
    pointer-events: auto;
}

.tour-buco {
    position: fixed;
    border-radius: 6px;
    box-shadow: 0 0 0 9999px rgba(17, 24, 39, .55);
    outline: 2px solid #1e7bc4;
    outline-offset: 2px;
    transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
    pointer-events: none;
}

.tour-fumetto {
    position: fixed;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    padding: 14px 16px 12px;
    pointer-events: auto;
    transition: top .2s ease, left .2s ease;
}

.tour-fumetto-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tour-conta {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tour-chiudi {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 2px;
}
.tour-chiudi:hover { color: #333; }

.tour-titolo {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: bold;
    color: #1a2337;
}

.tour-testo {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

.tour-azioni {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* I pulsanti nella barra in alto: nascosti finche' la pagina non ha un giro / un video. */
#tour-avvia,
#video-apri {
    display: none;
    margin-right: 10px;
    cursor: pointer;
}

/* Riproduttore del video della pagina, sopra il portale. */
.video-scena {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10060;
    background: rgba(17, 24, 39, .75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-riquadro {
    width: min(1000px, calc(100vw - 40px));
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.video-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.video-titolo {
    font-weight: bold;
    font-size: 14px;
    color: #1a2337;
}
