/* ==========================================================================
   TEATRO DELLA COOPERATIVA — Frontend styling
   Stile editoriale ispirato a Teatro di Roma
   Font: Manrope (sans grotesque) | Palette: nero/panna/rosso
   ========================================================================== */

/* Manrope viene caricato via wp_enqueue_style in PHP */

:root {
    --t-nero: #0A0A0A;
    --t-panna: #FFFFFF;   /* v2.4: era #FAF8F4 (giallino) -> bianco su richiesta cliente */
    --t-rosso: #C92A2A;
    --t-rosso-hover: #A82020;
    --t-grigio: #5C5852;
    --t-grigio-chiaro: #E8E4DD;
    --t-bianco: #FFFFFF;
    --t-font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============ HOME PAGE ============ */

.teatro-home {
    font-family: var(--t-font);
    color: var(--t-nero);
    background: var(--t-panna);
}

/* v2.5: stesso contenitore delle righe Divi (sezione 40px + riga 92% max 1280)
   cosi' slider, "In scena" e sezioni sotto condividono i margini laterali. */
.teatro-hero-wrap {
    padding: 32px 0 0;
}

/* ============ SLIDER HERO ============ */

.teatro-hero-slider {
    position: relative;
    /* 80% dello schermo (stessa larghezza dell'header), mai piu' stretto
       delle righe di contenuto sotto (92% - 74px, max 1280) */
    width: max(80%, min(92% - 74px, 1280px));
    max-width: none;
    margin: 0 auto;
    height: 68vh;
    min-height: 480px;
    max-height: 680px;
    overflow: hidden;
    background: var(--t-nero);
}

.teatro-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: flex-end;
}

.teatro-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.teatro-hero-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.teatro-hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Stato a riposo: leggermente zoomata e ferma */
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

/* Ken Burns: la slide attiva ingrandisce e si sposta lentamente.
   Quando la slide diventa attiva parte l'animazione di 18 secondi.
   Si ferma quando la slide non è più attiva (transform torna a scale(1.05)). */
.teatro-hero-slide.is-active .teatro-hero-slide-image img {
    animation: teatro-ken-burns 18s ease-out forwards;
}

@keyframes teatro-ken-burns {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    100% {
        transform: scale(1.18) translate(-2%, -1%);
    }
}

/* Rispetto accessibilità: disabilito animazione se l'utente preferisce ridurre i movimenti */
@media (prefers-reduced-motion: reduce) {
    .teatro-hero-slide.is-active .teatro-hero-slide-image img {
        animation: none;
        transform: scale(1.05);
    }
}

/* v3.3: slide "Stagione" con il manifesto: il taglio parte da in alto a sinistra,
   così logo e titolo del manifesto restano visibili anche su mobile (dove si vede
   solo la metà sinistra). Se il manifesto ha testo, lasciare vuoto stagione_titolo. */
.teatro-hero-slide--stagione .teatro-hero-slide-image img { object-position: left top; transform-origin: left top; }

/* Gradient nero che sfuma dal basso per leggibilità testo */
.teatro-hero-slide-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.teatro-hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 0 64px 72px;
    max-width: 1000px;
    width: 100%;
    color: var(--t-bianco);
}

.teatro-hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    margin-bottom: 18px;
    color: var(--t-bianco);
    opacity: 0.9;
}

.teatro-hero-titolo {
    font-size: clamp(40px, 6vw, 84px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0 0 24px;
    color: var(--t-bianco);
    max-width: 900px;
}

.teatro-hero-meta {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 36px;
    color: var(--t-bianco);
    opacity: 0.95;
}

.teatro-hero-bottone {
    display: inline-block;
    padding: 16px 38px;
    border: 1.5px solid var(--t-bianco);
    color: var(--t-bianco);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.teatro-hero-bottone:hover {
    background: var(--t-bianco);
    color: var(--t-nero);
}

/* Frecce navigazione */
.teatro-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: transparent;
    border: 0;
    color: var(--t-bianco);
    cursor: pointer;
    padding: 16px;
    transition: opacity 0.2s ease;
}

.teatro-hero-nav:hover {
    opacity: 0.7;
}

.teatro-hero-nav.prev { left: 30px; }
.teatro-hero-nav.next { right: 30px; }

.teatro-hero-nav svg {
    width: 32px;
    height: 32px;
}

/* Pallini paginazione — NASCOSTI su richiesta cliente.
   Restano nel DOM (il JS li aggiorna) ma non visibili. */
.teatro-hero-dots {
    display: none !important;
}

.teatro-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--t-bianco);
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.teatro-hero-dot.is-active {
    background: var(--t-bianco);
}

@media (max-width: 980px) {
    .teatro-hero-slider {
        height: 62vh;
        min-height: 440px;
    }
    .teatro-hero-slide-content {
        padding: 0 24px 60px;
    }
    .teatro-hero-titolo {
        font-size: clamp(32px, 9vw, 56px);
        letter-spacing: -1px;
    }
    .teatro-hero-eyebrow {
        font-size: 13px;
    }
    .teatro-hero-meta {
        font-size: 16px;
    }
    .teatro-hero-nav.prev { left: 8px; }
    .teatro-hero-nav.next { right: 8px; }
    .teatro-hero-nav svg { width: 24px; height: 24px; }
}

/* ============ SEZIONE "IN SCENA" ============ */

.teatro-inscena {
    background: var(--t-panna);
    padding: 90px 40px 80px;
}

.teatro-inscena-inner {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.teatro-inscena-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    gap: 30px;
}

.teatro-inscena-titolo {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    margin: 0;
    color: var(--t-nero);
}

.teatro-inscena-link {
    color: var(--t-rosso);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.teatro-inscena-link:hover {
    color: var(--t-rosso-hover);
}

.teatro-inscena-link::after {
    content: ' →';
}

.teatro-inscena-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* CARD spettacolo (stile editoriale: foto + testo nudi, niente cornici) */
.teatro-card {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* v2.5: la scatola dell'ombra e' un livello sotto la card, allargata di 20px
   per lato: il contenuto resta allineato alla griglia ma l'ombra ha respiro. */
.teatro-card::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--t-bianco);
    box-shadow: 0 22px 44px -14px rgba(201, 42, 42, 0.40);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.teatro-card:hover {
    transform: translateY(-8px);
    z-index: 2;
}

.teatro-card:hover::before {
    opacity: 1;
}

.teatro-card-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--t-grigio-chiaro);
    margin-bottom: 18px;
}

.teatro-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.teatro-card:hover .teatro-card-thumb img {
    transform: scale(1.07);
}

.teatro-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    gap: 12px;
}

.teatro-card-eyebrow {
    color: var(--t-rosso);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.teatro-card-data {
    color: var(--t-nero);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.teatro-card-titolo {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin: 0 0 10px;
    color: var(--t-nero);
}

.teatro-card-compagnia {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--t-grigio);
    margin: 0 0 12px;
    font-style: italic;
}

.teatro-card-descrizione {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--t-nero);
    margin: 0 0 16px;
    /* Limita a 3 righe via clamp */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.teatro-card-link {
    color: var(--t-rosso);
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
}

.teatro-card-link::after {
    content: ' →';
    transition: margin-left 0.2s ease;
}

.teatro-card:hover .teatro-card-link::after {
    margin-left: 4px;
}

@media (max-width: 1100px) {
    .teatro-inscena-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .teatro-inscena {
        padding: 60px 24px 50px;
    }
    .teatro-hero-wrap {
        padding: 20px 24px 0;
    }
    .teatro-hero-slider {
        width: 100%;
    }
    .teatro-inscena-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }
    .teatro-inscena-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .teatro-card-titolo { font-size: 22px; }
}

/* ============ NESSUN EVENTO ============ */
.teatro-no-eventi {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--t-grigio);
    font-size: 16px;
}

/* ============ PAGINA SINGOLO EVENTO ============ */

.teatro-evento-page {
    font-family: var(--t-font);
    color: var(--t-nero);
    background: var(--t-panna);
}

.teatro-evento-hero {
    width: 100%;
    height: 60vh;
    min-height: 450px;
    max-height: 720px;
    position: relative;
    overflow: hidden;
    background: var(--t-nero);
}

.teatro-evento-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teatro-evento-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
}

.teatro-evento-body {
    padding: 0 40px 100px;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}
.teatro-evento-card-bianca {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

.teatro-evento-card-bianca {
    background: var(--t-bianco);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 64px;
    box-shadow: 0 -10px 40px -20px rgba(0,0,0,0.18);
}

.teatro-evento-main h1 {
    font-family: var(--t-font);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0 0 14px;
    color: var(--t-nero);
}


.teatro-evento-compagnia {
    font-size: 18px;
    font-weight: 500;
    color: var(--t-grigio);
    font-style: italic;
    margin: 0 0 32px;
    line-height: 1.4;
}

.teatro-evento-descrizione {
    font-family: var(--t-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--t-nero);
    margin-bottom: 40px;
}
/* chiude eventuali immagini flottanti (alignleft/alignright) prima dei blocchi successivi */
.teatro-evento-descrizione::after { content: ''; display: block; clear: both; }

.teatro-evento-descrizione p {
    margin: 0 0 18px;
}
/* Immagini inserite nel testo (come in un blog): sempre staccate da ciò che segue */
.teatro-evento-descrizione img,
.teatro-evento-descrizione figure {
    max-width: 100%;
    height: auto;
    margin-bottom: 28px;
}
.teatro-evento-descrizione figure img { margin-bottom: 0; }
.teatro-evento-descrizione figure figcaption {
    font-size: 13px;
    color: var(--t-grigio);
    margin-top: 8px;
}
.teatro-evento-descrizione > *:last-child { margin-bottom: 0; }

/* Blocchi Rassegna stampa / Crediti: separati nettamente dal testo (e dalle foto) sopra */
.teatro-evento-blocco {
    clear: both;
    margin-top: 72px;
    padding-top: 36px;
    border-top: 3px solid var(--t-nero);
    font-family: var(--t-font);
}
.teatro-evento-blocco + .teatro-evento-blocco {
    margin-top: 48px;
    border-top-width: 1px;
    border-top-color: var(--t-grigio-chiaro);
}
.teatro-evento-eyebrow {
    margin: 0 0 18px !important;
    font-family: var(--t-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--t-rosso);
}
/* Crediti: riquadro bianco con cornice rossa sottile, ben staccato da foto e testo */
.teatro-evento-crediti,
.teatro-evento-blocco + .teatro-evento-crediti {
    margin-top: 72px;
    padding: 30px 34px;
    border: 1.5px solid var(--t-rosso);
    background: var(--t-bianco);
}
.teatro-evento-crediti .teatro-evento-eyebrow { margin-bottom: 14px !important; }
/* stesso carattere, stesso corpo del testo dello spettacolo */
.teatro-evento-crediti-testo {
    font-family: var(--t-font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--t-nero);
}
.teatro-evento-crediti-testo strong,
.teatro-evento-crediti-testo b { font-weight: 700; color: var(--t-nero); }
.teatro-evento-crediti-testo a { color: var(--t-rosso); font-weight: 600; text-decoration: none; }
.teatro-evento-crediti-testo a:hover { text-decoration: underline; }
.teatro-evento-rassegna-testo { font-size: 16px; line-height: 1.7; }
.teatro-evento-rassegna-testo p { margin: 0 0 14px; }
.teatro-evento-rassegna-testo a { color: var(--t-rosso); font-weight: 600; text-decoration: none; }
.teatro-evento-rassegna-testo a:hover { text-decoration: underline; }
.teatro-evento-rassegna-testo blockquote {
    margin: 0 0 18px;
    padding: 0 0 0 20px;
    border-left: 3px solid var(--t-rosso);
    font-style: italic;
    color: var(--t-grigio);
}

/* Link alla biglietteria sotto il bottone */
.teatro-link-biglietteria {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}
.teatro-link-biglietteria:hover { color: var(--t-bianco) !important; }

/* ============ GRAFICA SOSTITUTIVA "EVENTO SENZA FOTO" ============ */
/* Pannello rosso con il titolo: usato in slider, card, hero pagina. */
.teatro-novisual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 28px;
    background: var(--t-rosso);
    color: var(--t-bianco);
    overflow: hidden;
    font-family: var(--t-font);
}
.teatro-card-thumb .teatro-novisual {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* stesso zoom leggero delle foto in hover */
.teatro-card:hover .teatro-card-thumb .teatro-novisual { transform: scale(1.04); }
.teatro-novisual-frame {
    position: absolute;
    inset: 14px;
    border: 1.5px solid rgba(255,255,255,0.35);
    pointer-events: none;
}
.teatro-novisual-titolo {
    position: relative;
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    word-break: break-word;
}
.teatro-novisual-sub {
    position: relative;
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.85;
}
.teatro-novisual-brand {
    position: absolute;
    top: 24px;
    left: 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
}
/* Modalita' "bg" (slider e hero): il titolo vero e' stampato altrove,
   qui diventa una texture tipografica gigante */
.teatro-novisual--bg { justify-content: center; align-items: flex-end; padding: 0; }
.teatro-novisual--bg .teatro-novisual-titolo {
    font-size: clamp(80px, 16vw, 260px);
    line-height: 0.9;
    opacity: 0.16;
    text-align: right;
    padding: 0 3% 2% 0;
}
.teatro-novisual--bg .teatro-novisual-frame { display: none; }
.teatro-novisual--bg .teatro-novisual-brand { top: 32px; left: 40px; opacity: 0.55; }
.teatro-hero-slide-image .teatro-novisual,
.teatro-evento-hero .teatro-novisual { position: absolute; inset: 0; height: 100%; }

/* Sidebar info box */
.teatro-evento-sidebar {
    background: var(--t-nero);
    color: var(--t-bianco);
    padding: 40px 36px;
    height: fit-content;
    position: sticky;
    top: 40px;
}

.teatro-evento-sidebar h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--t-bianco);
    opacity: 0.7;
    margin: 0 0 22px;
}

.teatro-info-riga {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
}

.teatro-info-riga strong {
    display: block;
    color: var(--t-bianco);
    opacity: 0.7;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.teatro-info-riga span,
.teatro-info-riga {
    color: var(--t-bianco);
}

.teatro-orari-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.teatro-orari-lista li {
    padding: 3px 0;
    font-size: 14px;
    color: var(--t-bianco);
    opacity: 0.95;
}

.teatro-bottone-biglietti {
    display: block;
    text-align: center;
    background: var(--t-rosso);
    color: var(--t-bianco);
    padding: 16px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 30px;
    transition: background 0.2s ease;
}

.teatro-bottone-biglietti:hover {
    background: var(--t-rosso-hover);
    color: var(--t-bianco);
}

@media (max-width: 980px) {
    .teatro-evento-body {
        margin-top: -60px;
        padding: 0 20px 60px;
    }
    .teatro-evento-card-bianca {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 40px;
        width: 100%;
    }
    .teatro-evento-sidebar {
        position: static;
    }
    .teatro-evento-blocco {
        margin-top: 48px;
        padding-top: 26px;
    }
    .teatro-evento-crediti,
    .teatro-evento-blocco + .teatro-evento-crediti {
        margin-top: 48px;
        padding: 22px 20px;
    }
    .teatro-evento-crediti-testo { font-size: 16px; }
}

/* ============ ARCHIVIO EVENTI (shortcode) ============ */

.teatro-archivio-shortcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 36px;
}

@media (max-width: 600px) {
    .teatro-archivio-shortcode-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============ SEZIONE NEWS ============ */
/* Design volutamente DIVERSO da "In scena" per non confondere le due sezioni:
   - "In scena" = card verticali, foto grande, e' il cartellone
   - "News"     = card ORIZZONTALI, blocco data a sinistra, foto piccola
   Cliccabili entrambe, ma leggibili a colpo d'occhio come cose diverse. */

.teatro-news {
    background: var(--t-panna);
    padding: 80px 40px;
}

.teatro-news-inner {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .teatro-news { padding: 56px 24px; }
}
/* v3.3: archivio News dentro una pagina Divi: niente padding doppio, 100% della riga */
.teatro-news--archivio { padding: 0; }
.teatro-news--archivio .teatro-news-inner { width: 100%; max-width: none; }
.teatro-news--archivio .teatro-news-head { margin-bottom: 0; }
.teatro-news-pag {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
    font-family: var(--t-font);
}
.teatro-news-pag .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 10px 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--t-nero) !important;
    border: 1.5px solid var(--t-grigio-chiaro);
    text-decoration: none !important;
    transition: border-color .18s, color .18s, background .18s;
}
.teatro-news-pag a.page-numbers:hover { border-color: var(--t-rosso); color: var(--t-rosso) !important; }
.teatro-news-pag .page-numbers.current { background: var(--t-rosso); border-color: var(--t-rosso); color: #fff !important; }
.teatro-news-pag .page-numbers.dots { border-color: transparent; }



.teatro-news-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--t-nero);
}

.teatro-news-titolo {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--t-nero);
    margin: 0;
}

.teatro-news-tutte {
    font-size: 14px;
    font-weight: 700;
    color: var(--t-rosso) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.18s ease;
}
.teatro-news-tutte:hover { color: var(--t-rosso-hover) !important; }

.teatro-news-lista {
    display: flex;
    flex-direction: column;
}

/* CARD ORIZZONTALE — l'opposto della card verticale di "In scena" */
.teatro-news-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--t-grigio-chiaro);
    text-decoration: none !important;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.teatro-news-card:hover {
    background: rgba(0,0,0,0.02);
    padding-left: 12px;
}

/* Blocco DATA: elemento identitario delle news, assente in "In scena" */
.teatro-news-data {
    flex: 0 0 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-right: 2px solid var(--t-rosso);
    padding-right: 16px;
}

.teatro-news-giorno {
    font-size: 28px;
    font-weight: 800;
    color: var(--t-nero);
    letter-spacing: -1px;
}

.teatro-news-mese {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--t-rosso);
    margin-top: 5px;
}

.teatro-news-anno {
    font-size: 11px;
    font-weight: 500;
    color: var(--t-grigio);
    margin-top: 3px;
}

/* Thumbnail PICCOLA (in "In scena" la foto e' grande e verticale) */
.teatro-news-thumb {
    flex: 0 0 120px;
    height: 84px;
    overflow: hidden;
    background: var(--t-grigio-chiaro);
}

.teatro-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.teatro-news-card:hover .teatro-news-thumb img {
    transform: scale(1.06);
}

.teatro-news-testo {
    flex: 1 1 auto;
    min-width: 0;
}

.teatro-news-card-titolo {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    color: var(--t-nero);
    margin: 0 0 6px;
    transition: color 0.18s ease;
}

.teatro-news-card:hover .teatro-news-card-titolo {
    color: var(--t-rosso);
}

.teatro-news-estratto {
    font-size: 14px;
    line-height: 1.6;
    color: var(--t-grigio);
    margin: 0 0 8px;
}

.teatro-news-leggi {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--t-rosso);
}

.teatro-news-leggi span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.teatro-news-card:hover .teatro-news-leggi span {
    transform: translateX(5px);
}

@media (max-width: 780px) {
    .teatro-news { padding: 56px 24px; }

    .teatro-news-card {
        flex-wrap: wrap;
        gap: 14px;
        align-items: flex-start;
    }
    .teatro-news-data {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
        border-right: 0;
        border-left: 3px solid var(--t-rosso);
        padding-right: 0;
        padding-left: 10px;
    }
    .teatro-news-giorno { font-size: 18px; }
    .teatro-news-mese   { margin-top: 0; }
    .teatro-news-anno   { margin-top: 0; }

    .teatro-news-thumb { display: none; }

    .teatro-news-testo { flex: 1 1 100%; }
}

/* ============ NEWSLETTER BANNER ============ */
/* v2.2: era nero -> ora ROSSO con scritte bianche, fascia piu bassa,
   form ad alto contrasto (input bianco pieno) per renderlo ben visibile. */
.teatro-newsletter-banner {
    background: var(--t-rosso);
    color: var(--t-bianco);
    padding: 48px 40px;
    text-align: center;
}

.teatro-newsletter-titolo {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: var(--t-bianco);
}

.teatro-newsletter-sub {
    font-size: 15px;
    color: var(--t-bianco);
    opacity: 0.9;
    margin: 0 auto 24px;
    max-width: 560px;
    line-height: 1.5;
}

.teatro-newsletter-form {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

/* Input BIANCO PIENO: massimo contrasto sul rosso, non piu "nascosto" */
.teatro-newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px 18px;
    border: 0;
    background: var(--t-bianco);
    color: var(--t-nero);
    font-family: inherit;
    font-size: 15px;
    border-radius: 0;
}

.teatro-newsletter-form input[type="email"]::placeholder {
    color: var(--t-grigio);
}

.teatro-newsletter-form input[type="email"]:focus {
    outline: 2px solid var(--t-nero);
    outline-offset: 0;
}

/* Bottone NERO sul rosso: si stacca nettamente */
.teatro-newsletter-form button {
    padding: 15px 30px;
    background: var(--t-nero);
    color: var(--t-bianco);
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.teatro-newsletter-form button:hover {
    background: #2A2A2A;
}

@media (max-width: 600px) {
    .teatro-newsletter-banner {
        padding: 40px 24px;
    }
    .teatro-newsletter-form {
        flex-direction: column;
    }
}

/* ============ GLOBAL OVERRIDES — applicate sull'intero sito ============ */
/* Apply Manrope font globalmente via body class teatro-site */
body.teatro-site,
body.teatro-site .et_pb_module,
body.teatro-site p,
body.teatro-site h1,
body.teatro-site h2,
body.teatro-site h3,
body.teatro-site h4,
body.teatro-site h5,
body.teatro-site h6,
body.teatro-site a,
body.teatro-site button {
    font-family: var(--t-font);
}

/* ==========================================================================
   ANIMAZIONI - Reveal al scroll + interazioni
   ========================================================================== */

/* Stato pre-reveal: elemento traslato in basso e invisibile */
.teatro-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Stato post-reveal: elemento in posizione finale */
.teatro-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal con stagger: le card della griglia "In scena" entrano una dopo l'altra */
.teatro-inscena-grid .teatro-card.teatro-reveal {
    transition-delay: 0s;
}
.teatro-inscena-grid .teatro-card.teatro-reveal:nth-child(2) {
    transition-delay: 0.1s;
}
.teatro-inscena-grid .teatro-card.teatro-reveal:nth-child(3) {
    transition-delay: 0.2s;
}
.teatro-inscena-grid .teatro-card.teatro-reveal:nth-child(4) {
    transition-delay: 0.3s;
}
.teatro-inscena-grid .teatro-card.teatro-reveal:nth-child(5),
.teatro-inscena-grid .teatro-card.teatro-reveal:nth-child(6),
.teatro-inscena-grid .teatro-card.teatro-reveal:nth-child(7),
.teatro-inscena-grid .teatro-card.teatro-reveal:nth-child(8) {
    transition-delay: 0.4s;
}

/* Disabilita animazione per chi preferisce ridurre i movimenti */
@media (prefers-reduced-motion: reduce) {
    .teatro-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hover card più ricco: oltre al translateY già esistente, animo il link "Scopri lo spettacolo →" */
.teatro-card-link {
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}

.teatro-card-link::after {
    /* La freccia → si sposta di più al hover */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.teatro-card:hover .teatro-card-link {
    color: var(--t-rosso-hover);
}

.teatro-card:hover .teatro-card-link::after {
    transform: translateX(6px);
}


/* ============ HOME: RIGHE FOTO + TESTO (v2.4) ============ */
/* Desktop: testo a sinistra, foto a destra (ordine DOM).
   Mobile: la foto va SOPRA il testo -> inverto l'ordine delle colonne. */
@media (max-width: 980px) {
    .et_pb_row.tc-row-flip {
        display: flex !important;
        flex-direction: column-reverse;
    }
    .et_pb_row.tc-row-flip .et_pb_column {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    .et_pb_row.tc-row-flip .et_pb_column:first-child {
        margin-top: 28px;
    }
    .et_pb_row.tc-row-flip .et_pb_image {
        margin-bottom: 0 !important;
    }
}

/* ============ TOURNÉE: cartina cliccabile + elenco date (v3.2) ============ */
.tc-tour {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
    font-family: var(--t-font);
}
.tc-tour-mappa { position: sticky; top: 110px; }
.tc-tour-mappa svg { width: 100%; height: auto; display: block; }
.tc-reg path {
    fill: var(--t-grigio-chiaro);
    stroke: var(--t-bianco);
    stroke-width: 2;
    stroke-linejoin: round;
    transition: fill 0.2s ease;
}
.tc-reg.has { cursor: pointer; }
.tc-reg.has path { fill: var(--t-rosso); }
.tc-reg.has:hover path,
.tc-reg.has:focus path { fill: var(--t-rosso-hover); }
.tc-reg.has.is-active path { fill: var(--t-nero); }
.tc-reg.has:focus { outline: none; }
.tc-reg-dot { fill: var(--t-bianco); pointer-events: none; }
.tc-reg-n { fill: var(--t-nero); font-family: var(--t-font); font-size: 17px; font-weight: 800; pointer-events: none; }
.tc-tour-hint { margin: 14px 0 0; font-size: 13px; color: var(--t-grigio); text-align: center; }

.tc-tour-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.tc-tour-h { margin: 0 !important; font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: var(--t-nero); }
.tc-tour-reset {
    background: none; border: 1.5px solid var(--t-nero); padding: 8px 14px; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 700; color: var(--t-nero); transition: background .18s, color .18s;
}
.tc-tour-reset:hover { background: var(--t-nero); color: var(--t-bianco); }
.tc-tour-ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.tc-tour-riga {
    display: flex; gap: 22px; padding: 22px 0 !important; margin: 0 !important;
    border-top: 1px solid var(--t-grigio-chiaro);
}
.tc-tour-riga::before { display: none !important; }
.tc-tour-riga:last-child { border-bottom: 1px solid var(--t-grigio-chiaro); }
.tc-tour-riga[hidden] { display: none; }
.tc-tour-data {
    flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 8px 0; background: var(--t-nero); color: var(--t-bianco); line-height: 1;
}
.tc-tour-data .g { font-size: 26px; font-weight: 800; }
.tc-tour-data .m { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; color: var(--t-rosso); filter: brightness(1.6); }
.tc-tour-data .a { font-size: 11px; opacity: 0.6; margin-top: 4px; }
.tc-tour-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-tour-tit { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; }
.tc-tour-tit a { color: var(--t-nero) !important; text-decoration: none !important; border-bottom: 2px solid var(--t-rosso); transition: color .18s; }
.tc-tour-tit a:hover { color: var(--t-rosso) !important; }
.tc-tour-luogo { font-size: 15px; color: var(--t-grigio); }
.tc-tour-luogo em { font-style: normal; color: var(--t-rosso); font-weight: 600; }
.tc-tour-note { font-size: 13px; color: var(--t-grigio); font-style: italic; }
.tc-tour-scheda { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--t-rosso) !important; text-decoration: none !important; }
.tc-tour-scheda:hover { text-decoration: underline !important; }
.tc-tour-vuoto { color: var(--t-grigio); }

@media (max-width: 900px) {
    .tc-tour { grid-template-columns: 1fr; gap: 36px; }
    .tc-tour-mappa { position: static; max-width: 420px; margin: 0 auto; }
    .tc-tour-h { font-size: 24px; }
}
