/* Teatro Vittoria — stile degli shortcode nel single "spettacolo".
   Colori allineati alla palette del sito (blu istituzionale + arancio). */

:root {
    --tv-blu: #1f4e6b;
    --tv-arancio: #e8752a;
    --tv-bordo: #d9d9d9;
}

/* ---- Calendario repliche: tabelle affiancate come nella reference ---- */
.tv-calendario-repliche {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 50px;
    justify-content: center;
    align-items: flex-start;
}
.tv-repliche-mese {
    flex: 0 1 360px;
}
.tv-repliche-mese__titolo {
    color: var(--tv-blu);
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 .4em;
}
/* box "card" attorno alla tabella: bordo leggero + ombra, niente griglia interna */
.tv-repliche-tabella {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    overflow: hidden;
    background: #fff;
}
.tv-repliche-tabella th,
.tv-repliche-tabella td {
    border: 0;
    padding: 9px 22px;
}
.tv-repliche-tabella thead th {
    color: var(--tv-blu);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .78rem;
    padding-top: 16px;
    padding-bottom: 12px;
}
/* colonne: GIORNO a sinistra, DATA centrata e grande, ORARIO a sinistra */
.tv-repliche-tabella th:first-child,
.tv-repliche__giorno { text-align: left; }
.tv-repliche-tabella th:nth-child(2),
.tv-repliche__data   { text-align: center; }
.tv-repliche-tabella th:last-child,
.tv-repliche__orario { text-align: left; white-space: nowrap; }

.tv-repliche__giorno { font-weight: 600; color: #333; }
.tv-repliche__data   { font-weight: 700; font-size: 1.15rem; color: #1a1a1a; }
.tv-repliche__orario { color: #777; }

/* Domenica in arancio (giorno + numero), come nella reference */
.tv-repliche__riga--dom .tv-repliche__giorno,
.tv-repliche__riga--dom .tv-repliche__data {
    color: var(--tv-arancio);
}

/* ---- Foto di scena: griglia responsiva ---- */
.tv-foto-scena {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.tv-foto-scena__item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}
.tv-foto-scena__item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .3s ease;
}
.tv-foto-scena__item:hover img { transform: scale(1.05); }

/* ---- Spettacoli inclusi: griglia di poster con titolo ---- */
.tv-spettacoli-inclusi {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.tv-spettacoli-inclusi__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.tv-spettacoli-inclusi__item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
}
.tv-spettacoli-inclusi__titolo {
    margin-top: 6px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
}

/* ---- Video trailer: facade (thumbnail + play), poi iframe ---- */
.tv-video-trailer {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.tv-video-trailer iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Reset degli stili che tema/Elementor mettono sui <button> (Hello Elementor
   colora l'hover/focus di #c36). Neutralizziamo su tutti i button degli shortcode. */
.tv-video-trailer button,
.tv-video-trailer button:hover,
.tv-video-trailer button:focus,
.tv-video-trailer button:active {
    box-shadow: none;
    text-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.tv-video-trailer__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
}
.tv-video-trailer .tv-video-trailer__poster:hover,
.tv-video-trailer .tv-video-trailer__poster:focus,
.tv-video-trailer .tv-video-trailer__poster:active {
    background: #000 !important;
    color: inherit !important;
}
.tv-video-trailer__poster img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;      /* ritaglia le barre nere della hqdefault nel box 16:9 */
    display: block;
    transition: transform .3s ease;
}
.tv-video-trailer__poster:hover img { transform: scale(1.03); }
.tv-video-trailer__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--tv-arancio);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
    transition: transform .2s ease, background .2s ease;
}
.tv-video-trailer__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent #fff;
}
.tv-video-trailer__poster:hover .tv-video-trailer__play {
    transform: translate(-50%, -50%) scale(1.1);
}
.tv-video-trailer__cookie {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px 14px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: .85rem;
    text-align: center;
    z-index: 2;
}
.tv-video-trailer .tv-video-trailer__cookie-btn,
.tv-video-trailer .tv-video-trailer__cookie-btn:hover,
.tv-video-trailer .tv-video-trailer__cookie-btn:focus,
.tv-video-trailer .tv-video-trailer__cookie-btn:active {
    margin-left: 6px;
    padding: 4px 10px;
    border: 0;
    border-radius: 4px;
    background: var(--tv-arancio) !important;
    color: #fff !important;
    font-size: .8rem;
    cursor: pointer;
    text-decoration: none;
}
.tv-video-trailer .tv-video-trailer__cookie-btn:hover {
    background: #cf6420 !important; /* arancio leggermente più scuro */
}

/* ---- Crew / crediti tecnici ---- */
.tv-crew__riga {
    margin: 0 0 .4em;
    line-height: 1.35;
}
.tv-crew__label {
    color: #555;
}
