/* ═══════════════════════════════════════════════════════════════
   1. Sezione .tickets — contenitore e componenti base
   ═══════════════════════════════════════════════════════════════ */

.tickets {
    /* font-family: news-gothic-std, sans-serif; */
    padding: 20px 0 40px;
}
@media only screen and (min-width: 768px) {
    .tickets {
        padding: 75px 0 150px;
    }
}

.tickets__intro h1,
.tickets__intro h2 {
    font-family: AmerigoBT, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
}
@media only screen and (min-width: 768px) {
    .tickets__intro h1,
    .tickets__intro h2 {
        white-space: nowrap;
        font-size: 42px;
    }
}

.tickets__body {
    padding: 0 7.5% 7.5% 7.5%;
}

/* ── Singola produzione ── */
.tickets__production {
    color: #fff;
    margin-bottom: 10px;
}
.tickets__production--black {
    color: #000;
}
.tickets__production--has-badge {
    position: relative;
    margin-top: 47px;
}
@media only screen and (min-width: 768px) {
    .tickets__production--has-badge {
        margin-top: 0;
    }
    .tickets__production--mobile {
        display: none;
    }
}

.tickets__badge {
    content: "";
    position: absolute;
    display: block;
    height: 150px;
    width: 150px;
    top: -48px;
    right: 10px;
}

/* ── Griglia produzioni (base tema) ── */
.tickets__productions {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media only screen and (min-width: 768px) {
    .tickets__productions {
        -ms-grid-columns: calc(50% - 15px) calc(50% - 15px);
        grid-template-columns: calc(50% - 15px) calc(50% - 15px);
        gap: 30px;
    }
}

.tickets__productions-col {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
@media only screen and (min-width: 768px) {
    .tickets__productions-col {
        max-width: 526px;
        gap: 75px;
    }
}
.tickets__productions-col:nth-child(2) {
    display: none;
}
@media only screen and (min-width: 768px) {
    .tickets__productions-col:nth-child(2) {
        margin-top: 250px;
        justify-self: end;
        display: -ms-flexbox;
        display: flex;
    }
}

/* ── Copy e azioni ── */
.tickets__copy {
    color: currentColor;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    min-height: 120px;
}
.tickets__copy a {
    color: currentColor;
    text-decoration: underline;
    transition-property: color, filter;
    transition-duration: .1s;
}
.tickets__copy a:hover {
    filter: brightness(80%);
}

.tickets__actions {
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-family: TradeGothic, sans-serif;
    height: 48px;
}

/* ── Poster ── */
.tickets__poster {
    position: relative;
}
.tickets__poster img {
    width: 100%;
}
.tickets__poster-media {
    min-height: 260px;
}
.tickets__poster-spacer {
    height: 80px;
}
@media (max-width: 767px) {
    .tickets__poster-media {
        min-height: 250px;
    }
    .tickets__poster-spacer {
        height: 70px;
    }
}

/* ── Testi e metadata ── */
.tickets__title {
    font-family: AmerigoBT, serif;
    font-size: 45px;
    font-weight: 400;
    margin: 0 0 10px 0;
    transform: translateY(-25px);
    line-height: 1;
}
.tickets__haze {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 67px;
}
.tickets__dates {
    margin: 0;
    letter-spacing: 1.8px;
}
.tickets__stage {
    margin: 0;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* ── Action buttons ── */
.tickets__action {
    height: 100%;
    width: 50%;
    max-width: 230px;
}
.tickets__action--primary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.tickets__production--black .tickets__action--primary {
    color: #231f20;
    border: 2px solid #231f20;
}
.tickets__action--secondary {
    color: #231f20;
}


/* ═══════════════════════════════════════════════════════════════
   2. Griglia home — #cms-productions (home.php)
   ═══════════════════════════════════════════════════════════════ */

#cms-productions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}
#cms-productions > .tickets__productions-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-width: none !important;
    margin-top: 0 !important;
    justify-self: auto !important;
    width: 100% !important;
}
@media only screen and (max-width: 767px) {
    #cms-productions {
        grid-template-columns: 1fr !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   3. Pannello eventi calendario — #cal-events-panel
   ═══════════════════════════════════════════════════════════════ */

#cal-events-panel .tickets__title {
    font-size: 35px;
    margin: revert;
}
#cal-events-panel .ecs__poster {
    flex: 0 0 200px;
}


/* ═══════════════════════════════════════════════════════════════
   4. Card orizzontale evento — .event-cal-small (calendario.php)
   ═══════════════════════════════════════════════════════════════ */

.event-cal-small {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    height: 180px;
    margin-bottom: 15px;
}
.ecs__poster {
    position: relative;
    flex: 0 0 160px;
    overflow: hidden;
}
.ecs__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.event-cal-small:hover .ecs__poster img {
    transform: scale(1.04);
}
.ecs__haze {
    position: absolute;
    inset: 0;
}
.ecs__body {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ecs__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px !important;
}
.ecs__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ecs__meta {
    flex: 1;
    min-width: 0;
}
.ecs__meta .tickets__dates,
.ecs__meta .tickets__stage {
    margin: 0;
}
.event-cal-small .tickets__copy {
    display: none;
}
.event-cal-small .tickets__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin: 0 !important;
    white-space: nowrap;
}
.event-cal-small .tickets__actions .tickets__action {
    min-width: 150px;
    text-align: center;
}

.tickets__excerpt-inner p {
   font-size: 20px;
   
   
}



/* .th_1 .tickets__haze { background: linear-gradient(0deg, #fdb714 19.4%, rgba(0,0,0,0) 100%) }
.th_2 .tickets__haze { background: linear-gradient(0deg, #34b5b0 19.4%, rgba(0,0,0,0) 100%) }
.th_3 .tickets__haze { background: linear-gradient(0deg, #7b3f6e 19.4%, rgba(0,0,0,0) 100%) }
.th_4 .tickets__haze { background: linear-gradient(0deg, #2e6b4f 19.4%, rgba(0,0,0,0) 100%) }
.th_5 .tickets__haze { background: linear-gradient(0deg, #8e5222 19.4%, rgba(0,0,0,0) 100%) }
.th_6 .tickets__haze { background: linear-gradient(0deg, #f7941e 19.4%, rgba(0,0,0,0) 100%) } */

/* ═══════════════════════════════════════════════════════════════
   5. Colori per teatro — linea superiore 3px
      ID → colore primario del teatro (da iat_teatri)
   ═══════════════════════════════════════════════════════════════ */


  /*  COLORI TESSERE 2b6194
   e30613
   f18900
   5b9551
   fcc000
   3fb7ab */




.th_1  .tickets__poster-media::after { background: linear-gradient(180deg, #fdb714 19.4%, rgba(0,0,0,0) 100%) } /* L=0.575 */
   .th_2  .tickets__poster-media::after { background: linear-gradient(180deg, #34b5b0 40%,   rgba(0,0,0,0) 100%) } /* L=0.400 */
   .th_3  .tickets__poster-media::after { background: linear-gradient(180deg, #7b3f6e 79%,   rgba(0,0,0,0) 100%) } /* L=0.106 */
   .th_4  .tickets__poster-media::after { background: linear-gradient(180deg, #1a5276 80%,   rgba(0,0,0,0) 100%) } /* L=0.096 ✓ */
   .th_5  .tickets__poster-media::after { background: linear-gradient(180deg, #8e5222 74%,   rgba(0,0,0,0) 100%) } /* L=0.142 */
   .th_6  .tickets__poster-media::after { background: linear-gradient(180deg, #1a5276 80%,   rgba(0,0,0,0) 100%) } /* L=0.096 */
   .th_7  .tickets__poster-media::after { background: linear-gradient(180deg, #8e5222 74%,   rgba(0,0,0,0) 100%) } /* L=0.142 */
   .th_8  .tickets__poster-media::after { background: linear-gradient(180deg, #4a235a 85%,   rgba(0,0,0,0) 100%) } /* L=0.048 */
   .th_9  .tickets__poster-media::after { background: linear-gradient(180deg, #6e2f1a 83%,   rgba(0,0,0,0) 100%) } /* L=0.068 */
   .th_10 .tickets__poster-media::after { background: linear-gradient(180deg, #1abc9c 40%,   rgba(0,0,0,0) 100%) } /* L=0.411 */
   .th_11 .tickets__poster-media::after { background: linear-gradient(180deg, #2c3e50 85%,   rgba(0,0,0,0) 100%) } /* L=0.059 */
   .th_12 .tickets__poster-media::after { background: linear-gradient(180deg, #717d7e 64%,   rgba(0,0,0,0) 100%) } /* L=0.222 */
   .th_13 .tickets__poster-media::after { background: linear-gradient(180deg, #d81b60 70%,   rgba(0,0,0,0) 100%) } /* L=0.173 */
   .th_14 .tickets__poster-media::after { background: linear-gradient(180deg, #1e8449 67%,   rgba(0,0,0,0) 100%) } /* L=0.198 */
   .th_15 .tickets__poster-media::after { background: linear-gradient(180deg, #5b2c6f 84%,   rgba(0,0,0,0) 100%) } /* L=0.067 */
   .th_16 .tickets__poster-media::after { background: linear-gradient(180deg, #e74c3c 61%,   rgba(0,0,0,0) 100%) } /* L=0.244 */
   .th_17 .tickets__poster-media::after { background: linear-gradient(180deg, #21618c 76%,   rgba(0,0,0,0) 100%) } /* L=0.128 */
   .th_18 .tickets__poster-media::after { background: linear-gradient(180deg, #fdb714 19.4%, rgba(0,0,0,0) 100%) } /* L=0.575 */




/* Stato normale — qui va la transition */
   /* .th_1 {
     transition: background-color 0.3s ease;
   }
   
   .th_1 .tickets__haze {
     transition: background 0.3s ease;
   }
    */
   /* Hover — invariato */
   /* .th_1:hover {
     background-color: #fdb714 !important;
   }
   
   .th_1:hover .tickets__haze {
     background: linear-gradient(0deg, #fdb714 19.4%, rgba(0,0,0,0) 100%) !important;
   } */

/* LINEA TOP
.theatre   { border-top: 10px solid;  } 
.th_1   { border-color: #fdb714;   } 
.th_2  { border-color: #34b5b0; } 
.th_3  { border-color: #7b3f6e; } 
.th_4  { border-color: #2e6b4f; } 
.th_5  { border-color: #8e5222; } 
.th_6  { border-color: #f7941e; } 
.th_7  { border-color: #1a5276; } 
.th_8  { border-color: #4a235a; } 
.th_9  { border-color: #6e2f1a; } 
.th_10  { border-color: #1abc9c; } 
.th_11  { border-color: #2c3e50; } 
.th_12  { border-color: #717d7e; } 
.th_13  { border-color: #d81b60; } 
.th_14  { border-color: #1e8449; } 
.th_15  { border-color: #5b2c6f; }
.th_16  { border-color: #e74c3c; } 
.th_17  { border-color: #21618c; } 
*/


/*  CORNICE
.theatre img  { border: 10px solid;  } 
.th_1 img  { border-left-color: #fdb714; border-top-color: #fdb714; border-right-color: #fdb714;  } 
.th_2 img { border-left-color: #34b5b0; } 
.th_3 img { border-left-color: #7b3f6e; } 
.th_4 img { border-left-color: #2e6b4f; } 
.th_5 img { border-left-color: #8e5222; } 
.th_6 img { border-left-color: #ff0000; border-top-color: #ff0000; border-right-color: #ff0000; } 
.th_7 img { border-left-color: #1a5276; } 
.th_8 img { border-left-color: #4a235a; } 
.th_9 img { border-left-color: #6e2f1a; } 
.th_10 img { border-left-color: #1abc9c; } 
.th_11 img { border-left-color: #2c3e50; } 
.th_12 img { border-left-color: rgb(86, 120, 179); border-top-color: rgb(86, 120, 179); border-right-color: rgb(86, 120, 179); } 
.th_13 img { border-left-color: #d81b60; } 
.th_14 img { border-left-color: #1e8449; } 
.th_15 img { border-left-color: #5b2c6f; } 
.th_16 img { border-left-color: #e74c3c; } 
.th_17 img { border-left-color: #21618c; }  */
