/* =================================================================
   MoodHera — Pagina Eventi  (events-page.css)
   Loaded only on page-eventi.php template
   ================================================================= */

/* ── Page wrapper ── */
.mhev-page {
    background: #f5f4f8;
    min-height: 100vh;
}

/* ================================================================
   HEADER BAND  (sostituisce l'hero inutile)
   Una banda compatta con titolo + filtri + contatore
   ================================================================ */
.mhev-header {
    background: linear-gradient(135deg, #1a0033 0%, #3B0764 60%, #5B1E6D 100%);
    padding: 3.5rem 1.5rem 0;
    position: relative;
    overflow: hidden;
}
.mhev-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 300px at 80% -20%, rgba(237,41,122,.35) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at -10% 120%, rgba(0,180,232,.2) 0%, transparent 70%);
    pointer-events: none;
}
.mhev-header__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}
.mhev-header__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}
.mhev-header__label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(237,41,122,.18);
    border: 1px solid rgba(237,41,122,.4);
    border-radius: 100px;
    padding: .3em 1em;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #f9a8d4;
    margin-bottom: .8rem;
}
.mhev-header__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 .3rem;
    letter-spacing: -.03em;
    line-height: 1.1;
}
.mhev-header__title span {
    background: linear-gradient(90deg, #ED297A, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mhev-header__count {
    font-size: .9rem;
    color: rgba(255,255,255,.55);
    font-weight: 500;
}
.mhev-header__count strong {
    color: #a78bfa;
    font-weight: 800;
}

/* ── Filter tabs dentro l'header ── */
.mhev-filters {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: .8rem 0;
}
.mhev-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .4em 1.1em;
    border-radius: 100px;
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,.2);
    background: transparent;
    color: rgba(255,255,255,.65);
    transition: all .18s;
}
.mhev-filter-btn:hover,
.mhev-filter-btn.is-active {
    background: rgba(237,41,122,.25);
    border-color: #ED297A;
    color: #fff;
}

/* ================================================================
   STATS STRIP  — orizzontale sotto l'header
   ================================================================ */
.mhev-strip {
    background: #fff;
    border-bottom: 1px solid #ede9f5;
    padding: .9rem 1.5rem;
}
.mhev-strip__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.mhev-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .3rem 2rem;
    text-align: center;
    flex: 1;
    min-width: 100px;
}
.mhev-stat strong {
    font-size: 1.35rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ED297A, #5B1E6D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.mhev-stat span {
    font-size: .72rem;
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .1rem;
}
.mhev-stat__sep {
    width: 1px;
    height: 32px;
    background: #E5E7EB;
    flex-shrink: 0;
}

/* ================================================================
   EVENTS GRID
   ================================================================ */
.mhev-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

/* Override plugin grid dentro questo contesto */
.mhev-body .mh-events-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 1.6rem !important;
    padding: 0 !important;
}

/* ── Event card ── */
.mhev-body .mh-event-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: none !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(91,30,109,.08) !important;
    transition: transform .28s cubic-bezier(.165,.84,.44,1), box-shadow .28s !important;
    cursor: pointer;
    position: relative;
}
.mhev-body .mh-event-card:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 18px 48px rgba(91,30,109,.18) !important;
}

/* Immagine con badge data sovrapposto */
.mhev-body .mh-card-img {
    position: relative !important;
    width: 100% !important;
    height: 210px !important;
    flex: none !important;
    overflow: hidden;
    background: linear-gradient(135deg, #5B1E6D 0%, #ED297A 100%) !important;
}
.mhev-body .mh-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.mhev-body .mh-event-card:hover .mh-card-img img {
    transform: scale(1.05);
}
/* overlay scuro sfumato in basso sull'immagine */
.mhev-body .mh-card-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(26,0,51,.55) 0%, transparent 100%);
    pointer-events: none;
}
.mhev-body .mh-card-img--placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.mhev-body .mh-card-img--placeholder::after { display: none; }
.mhev-body .mh-card-img--placeholder .mh-card-icon {
    font-size: 4rem;
    opacity: .55;
}

/* Body card */
.mhev-body .mh-card-body {
    padding: 1.3rem 1.4rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: .5rem !important;
    flex: 1 !important;
}

.mhev-body .mh-card-title {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}
.mhev-body .mh-card-title a {
    color: #1a0033 !important;
    text-decoration: none !important;
}
.mhev-body .mh-card-title a:hover { color: #ED297A !important; }

.mhev-body .mh-card-date {
    font-size: .82rem !important;
    font-weight: 700 !important;
    color: #ED297A !important;
    display: flex;
    align-items: center;
    gap: .3em;
}
.mhev-body .mh-card-location {
    font-size: .82rem !important;
    color: #6B7280 !important;
    display: flex;
    align-items: center;
    gap: .3em;
}
.mhev-body .mh-card-desc {
    font-size: .87rem !important;
    color: #4B5563 !important;
    line-height: 1.55 !important;
    flex: 1 !important;
    margin: 0 !important;
}

/* Bottone nella card */
.mhev-body .mh-card-body .mh-btn--primary {
    align-self: flex-start !important;
    margin-top: .6rem !important;
    background: linear-gradient(135deg, #ED297A, #5B1E6D) !important;
    color: #fff !important;
    border-radius: 100px !important;
    font-size: .83rem !important;
    font-weight: 700 !important;
    padding: .5em 1.4em !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(237,41,122,.28) !important;
    transition: transform .18s, box-shadow .18s !important;
    text-decoration: none !important;
}
.mhev-body .mh-card-body .mh-btn--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(237,41,122,.42) !important;
    color: #fff !important;
}

/* No results */
.mhev-body .mh-no-events {
    text-align: center;
    padding: 4rem 1rem;
    color: #9CA3AF;
    font-size: 1.05rem;
    grid-column: 1/-1;
}

/* ================================================================
   EVENT DETAIL  (quando ?mh_event=slug)
   ================================================================ */
.mhev-detail-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

/* Back link */
.mhev-back {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    color: #6B7280;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.8rem;
    transition: color .18s;
}
.mhev-back:hover { color: #ED297A; }
.mhev-back svg { flex-shrink: 0; }

/* Override detail styles dal plugin */
.mhev-detail-wrap .mh-event-detail {
    max-width: 100%;
    background: transparent;
}
.mhev-detail-wrap .mh-back { display: none; } /* usiamo il nostro */

.mhev-detail-wrap .mh-detail-img {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 40px rgba(91,30,109,.15);
}
.mhev-detail-wrap .mh-detail-img img {
    width: 100%; height: 100%; object-fit: cover;
}

.mhev-detail-wrap .mh-detail-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #1a0033;
    letter-spacing: -.03em;
    margin: 0 0 .75rem;
}

.mhev-detail-wrap .mh-detail-desc {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Occurrences */
.mhev-detail-wrap .mh-occurrences h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a0033;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 3px solid #ED297A;
    padding-bottom: .5rem;
    margin-bottom: 1.2rem;
}
.mhev-detail-wrap .mh-occ-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.mhev-detail-wrap .mh-occ-item {
    border: 1.5px solid #ede9f5 !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(91,30,109,.06);
}
.mhev-detail-wrap .mh-occ-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .8rem !important;
    padding: .9rem 1.3rem !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: background .16s !important;
}
.mhev-detail-wrap .mh-occ-header:hover,
.mhev-detail-wrap .mh-occ-header[aria-expanded="true"] {
    background: #fdf4f8 !important;
}
/* Left block: date + venue stacked */
.mhev-detail-wrap .mh-occ-header__main {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1;
    min-width: 0;
}
.mhev-detail-wrap .mh-occ-date {
    font-weight: 700 !important;
    font-size: .98rem !important;
    color: #1a0033 !important;
}
.mhev-detail-wrap .mh-occ-venue {
    font-size: .82rem !important;
    color: #6B7280 !important;
}
/* Right block: ticket badge + toggle */
.mhev-detail-wrap .mh-occ-header__meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}
/* Ticket badges in accordion header */
.mhev-detail-wrap .mh-occ-tkt-badge {
    display: inline-flex;
    align-items: center;
    font-size: .74rem;
    font-weight: 700;
    border-radius: 100px;
    padding: .22em .8em;
    white-space: nowrap;
}
.mhev-detail-wrap .mh-occ-tkt-badge--avail {
    background: linear-gradient(135deg, rgba(237,41,122,.12), rgba(91,30,109,.08));
    color: #5B1E6D;
    border: 1px solid rgba(237,41,122,.25);
}
.mhev-detail-wrap .mh-occ-tkt-badge--soldout {
    background: #f3f4f6;
    color: #9CA3AF;
    border: 1px solid #e5e7eb;
}
.mhev-detail-wrap .mh-occ-tkt-badge--soon {
    background: rgba(251,191,36,.12);
    color: #92400e;
    border: 1px solid rgba(251,191,36,.3);
}
.mhev-detail-wrap .mh-occ-toggle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    color: #6B7280;
    transition: transform .2s, background .16s;
    flex-shrink: 0;
}
.mhev-detail-wrap .mh-occ-header[aria-expanded="true"] .mh-occ-toggle {
    transform: rotate(180deg);
    background: #fce7f3;
    color: #ED297A;
}
.mhev-detail-wrap .mh-occ-body {
    padding: 2.2rem 1.5rem 2rem !important;
    background: #faf8fd !important;
    border-top: 1px solid #ede9f5;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
/* Critical: CSS display:flex must not override HTML hidden attribute */
.mhev-detail-wrap .mh-occ-body[hidden] { display: none !important; }

/* ================================================================
   TICKET CARDS  (modern row-card layout replacing the old table)
   ================================================================ */
.mhev-detail-wrap .mh-tickets-section {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.mhev-detail-wrap .mh-tickets-label {
    margin: 0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9CA3AF;
}
.mhev-detail-wrap .mh-ticket-cards {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.mhev-detail-wrap .mh-ticket-card {
    display: flex !important;
    flex-direction: column !important;
    gap: .55rem !important;
    background: #fff;
    border-radius: 1.1rem;
    padding: .9rem 1.2rem 1rem;
    border: 1.5px solid #e8e0f5;
    border-left: 4px solid #ED297A;
    box-shadow: 0 2px 10px rgba(91,30,109,.07);
    transition: box-shadow .2s, transform .2s;
}
/* Name: top row */
.mhev-detail-wrap .mh-tc-name {
    font-size: .98rem;
    font-weight: 800;
    color: #1a0033;
    line-height: 1.2;
    display: block;
}
/* Bottom row: stepper+button left, price right */
.mhev-detail-wrap .mh-tc-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .6rem !important;
    flex-wrap: nowrap !important;
}
.mhev-detail-wrap .mh-ticket-card:hover {
    box-shadow: 0 6px 24px rgba(91,30,109,.14);
    transform: translateY(-2px);
}
.mhev-detail-wrap .mh-ticket-card--soldout {
    border-left-color: #D1D5DB;
    opacity: .65;
    pointer-events: none;
}

.mhev-detail-wrap .mh-tc-info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.mhev-detail-wrap .mh-tc-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1a0033;
    line-height: 1.2;
}
.mhev-detail-wrap .mh-tc-zone {
    font-size: .78rem;
    color: #9CA3AF;
    font-style: italic;
}

/* Price — bottom-right */
.mhev-detail-wrap .mh-tc-price {
    flex-shrink: 0 !important;
    font-size: 1.1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ED297A, #5B1E6D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    text-align: right;
}
.mhev-detail-wrap .mh-tc-currency {
    font-size: .75rem;
    font-weight: 700;
}

/* Action — left side of bottom row */
.mhev-detail-wrap .mh-tc-action {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.mhev-detail-wrap .mh-tc-action .mh-add-cart-wrap {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    align-items: flex-start;
}
.mhev-detail-wrap .mh-tc-action .mh-qty-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
/* Qty stepper */
.mhev-detail-wrap .mh-qty-stepper {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    border: 1.5px solid #e0d8f5 !important;
    border-radius: .55rem !important;
    overflow: hidden !important;
    background: #f9f8ff !important;
    height: 30px !important;
}
.mhev-detail-wrap .mh-qty-btn {
    all: unset !important;
    box-sizing: border-box !important;
    width: 28px !important;
    height: 30px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #5B1E6D !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s !important;
    background: transparent !important;
}
.mhev-detail-wrap .mh-qty-btn:hover { background: #ede9f5 !important; }
.mhev-detail-wrap .mh-qty-val {
    min-width: 26px !important;
    text-align: center !important;
    font-size: .85rem !important;
    font-weight: 800 !important;
    color: #1a0033 !important;
    padding: 0 .25em !important;
    border-left: 1px solid #e0d8f5 !important;
    border-right: 1px solid #e0d8f5 !important;
    line-height: 30px !important;
    user-select: none !important;
}
.mhev-detail-wrap .mh-tc-action .mh-btn--primary.mh-add-to-cart-btn {
    background: linear-gradient(135deg, #ED297A, #5B1E6D) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 100px !important;
    font-size: .8rem !important;
    font-weight: 700 !important;
    padding: 0 1.1em !important;
    box-shadow: 0 3px 10px rgba(237,41,122,.25) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: transform .18s, box-shadow .18s !important;
    height: 30px !important;
    line-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: .35em !important;
}
.mhev-detail-wrap .mh-tc-action .mh-btn--primary.mh-add-to-cart-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(237,41,122,.45) !important;
}
.mhev-detail-wrap .mh-tc-action .mh-cart-msg { font-size: .78rem; }

/* In-cart state */
.mhev-detail-wrap .mh-tc-action .mh-in-cart-info {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    align-items: flex-start;
}
.mhev-detail-wrap .mh-tc-action .mh-in-cart-badge {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    background: #d1fae5;
    color: #065f46;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 100px;
    padding: .2em .8em;
}
.mhev-detail-wrap .mh-tc-action .mh-hold-timer {
    font-size: .75rem;
    color: #6B7280;
}
.mhev-detail-wrap .mh-tc-action .mh-timer-countdown {
    color: #ED297A;
    font-weight: 800;
}
.mhev-detail-wrap .mh-tc-action .mh-btn--cart {
    background: #f3e8ff !important;
    color: #5B1E6D !important;
    border: none !important;
    border-radius: 100px !important;
    font-size: .8rem !important;
    font-weight: 700 !important;
    padding: .35em 1em !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}
.mhev-detail-wrap .mh-tc-action .mh-sold-out-label {
    color: #9CA3AF;
    font-size: .82rem;
    font-style: italic;
}

/* Mobile: button full width */
@media (max-width: 480px) {
    .mhev-detail-wrap .mh-ticket-card { padding: .85rem 1rem !important; }
    .mhev-detail-wrap .mh-tc-action .mh-btn--primary.mh-add-to-cart-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Badge disponibilità */
.mhev-detail-wrap .mh-badge--available {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    background: #d1fae5;
    color: #065f46;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 100px;
    padding: .25em .85em;
}
.mhev-detail-wrap .mh-badge--available::before { content: '●'; font-size: .5em; color: #10b981; }
.mhev-detail-wrap .mh-badge--soldout {
    display: inline-flex;
    align-items: center;
    background: #fee2e2;
    color: #991b1b;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 100px;
    padding: .25em .85em;
}

/* ================================================================
   CTA BOTTOM
   ================================================================ */
.mhev-cta {
    background: linear-gradient(135deg, #1a0033 0%, #5B1E6D 50%, #ED297A 100%);
    padding: 4.5rem 1.5rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.mhev-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 700px 400px at 50% 50%, rgba(255,255,255,.04) 0%, transparent 70%);
}
.mhev-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.mhev-cta__title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 900;
    margin: 0 0 .8rem;
    letter-spacing: -.02em;
}
.mhev-cta__sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.65;
    margin: 0 0 2rem;
}
.mhev-cta .mhp-btn--cta {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    background: #fff;
    color: #1a0033;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1rem;
    padding: .8em 2.2em;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    transition: transform .2s, box-shadow .2s;
}
.mhev-cta .mhp-btn--cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(0,0,0,.3);
    color: #1a0033;
    text-decoration: none;
}

/* ================================================================
   DARK MODE
   ================================================================ */
[data-theme="dark"] .mhev-page { background: #0a0014; }
[data-theme="dark"] .mhev-strip { background: #1E293B; border-bottom-color: #334155; }
[data-theme="dark"] .mhev-stat span { color: #64748B; }
[data-theme="dark"] .mhev-stat__sep { background: #334155; }

[data-theme="dark"] .mhev-body .mh-event-card { background: #1a1030 !important; box-shadow: 0 4px 20px rgba(0,0,0,.35) !important; }
[data-theme="dark"] .mhev-body .mh-card-title a { color: #f3e8ff !important; }
[data-theme="dark"] .mhev-body .mh-card-desc { color: #94A3B8 !important; }
[data-theme="dark"] .mhev-body .mh-card-location { color: #64748B !important; }

[data-theme="dark"] .mhev-detail-wrap .mh-detail-title { color: #f3e8ff; }
[data-theme="dark"] .mhev-detail-wrap .mh-occ-item { background: #1a1030; border-color: #2d1b4e !important; }
[data-theme="dark"] .mhev-detail-wrap .mh-occ-header { background: #1a1030 !important; }
[data-theme="dark"] .mhev-detail-wrap .mh-occ-header:hover,
[data-theme="dark"] .mhev-detail-wrap .mh-occ-header[aria-expanded="true"] { background: #2d1b4e !important; }
[data-theme="dark"] .mhev-detail-wrap .mh-occ-body { background: #120d24 !important; border-top-color: #2d1b4e; }
[data-theme="dark"] .mhev-detail-wrap .mh-ticket-table { background: #1a1030; }
[data-theme="dark"] .mhev-detail-wrap .mh-ticket-table thead tr { background: #2d1b4e; }
[data-theme="dark"] .mhev-detail-wrap .mh-ticket-table thead th { color: #c4b5fd; border-bottom-color: #3b1f5e; }
[data-theme="dark"] .mhev-detail-wrap .mh-ticket-table tbody td { color: #f3e8ff; border-bottom-color: #2d1b4e; }
[data-theme="dark"] .mhev-detail-wrap .mh-ticket-table tbody tr:hover td { background: #2d1b4e; }
[data-theme="dark"] .mhev-detail-wrap .mh-qty-input { background: #120d24; border-color: #3b1f5e; color: #f3e8ff; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .mhev-header { padding: 2rem 1rem 0; }
    .mhev-header__title { font-size: 1.9rem; }
    .mhev-body { padding: 1.5rem 1rem 4rem; }
    .mhev-body .mh-events-list { grid-template-columns: 1fr !important; }
    .mhev-strip__inner { gap: .25rem; }
    .mhev-stat { padding: .3rem .8rem; }
    .mhev-stat__sep { display: none; }
    .mhev-detail-wrap { padding: 1.5rem 1rem 4rem; }
    .mhev-detail-wrap .mh-qty-row { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .mhev-body .mh-events-list { gap: 1rem !important; }
    .mhev-detail-wrap .mh-ticket-table thead th:nth-child(2),
    .mhev-detail-wrap .mh-ticket-table tbody td:nth-child(2) { display: none; }
}

/* ================================================================
   SINGLE-EVENT OCCURRENCE BODY (no accordion)
   ================================================================ */
.mhev-detail-wrap .mh-occ-item--single {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.mhev-detail-wrap .mh-occ-item--single .mh-occ-body {
    padding: 0 !important;
    background: transparent !important;
    border-top: none !important;
    gap: 1.5rem;
}
.mhev-detail-wrap .mh-occ-single-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 2.5rem;
    background: #f8f5ff;
    border: 1.5px solid #ede9f5;
    border-radius: .9rem;
    padding: 1rem 1.4rem;
}
.mhev-detail-wrap .mh-occ-single-date,
.mhev-detail-wrap .mh-occ-single-venue {
    margin: 0;
    font-size: .93rem;
    font-weight: 700;
    color: #1a0033;
}
.mhev-detail-wrap .mh-occ-single-date { color: #ED297A; }
.mhev-detail-wrap .mh-occ-single-venue { color: #6B7280; font-weight: 600; }

/* Description inside body */
.mhev-detail-wrap .mh-occ-desc {
    font-size: .93rem;
    color: #4B3A6B;
    line-height: 1.7;
    margin: 0;
    padding: .85rem 1.1rem .85rem 1.1rem;
    border-left: 3px solid #ED297A;
    border-radius: 0 .6rem .6rem 0;
    background: rgba(237,41,122,.05);
    font-style: italic;
}

/* ================================================================
   GOOGLE MAPS EMBED
   ================================================================ */
.mhev-detail-wrap .mh-occ-map {
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1.5px solid #e8e0f5;
    background: #f8f5ff;
    box-shadow: 0 3px 14px rgba(91,30,109,.07);
}
.mhev-detail-wrap .mh-occ-map__frame {
    position: relative;
    line-height: 0;
}
.mhev-detail-wrap .mh-occ-map__frame iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: none;
}
.mhev-detail-wrap .mh-occ-map__addr {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(26,0,51,.70);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255,255,255,.95);
    font-size: .7rem;
    font-weight: 500;
    padding: .18em .55em;
    border-radius: .3rem;
    pointer-events: none;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    z-index: 2;
}

/* ================================================================
   FEATURED FIRST CARD (spans 2 cols on wider grids)
   ================================================================ */
@media (min-width: 900px) {
    .mhev-body .mh-events-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .mhev-body .mh-events-list .mh-event-card:first-child {
        grid-column: span 2;
    }
    .mhev-body .mh-events-list .mh-event-card:first-child .mh-card-img {
        height: 280px !important;
    }
    .mhev-body .mh-events-list .mh-event-card:first-child .mh-card-title {
        font-size: 1.3rem !important;
    }
}

/* ================================================================
   EMPTY STATE CARD
   ================================================================ */
.mhev-body .mh-no-events {
    background: #fff;
    border-radius: 1.25rem;
    padding: 4rem 2rem !important;
    box-shadow: 0 2px 12px rgba(91,30,109,.06);
    font-size: .95rem !important;
    color: #9CA3AF !important;
}

/* ================================================================
   OCCURRENCES SECTION HEADER SPACING FIX
   ================================================================ */
.mhev-detail-wrap .mh-occurrences h2:only-child,
.mhev-detail-wrap .mh-occurrences h2 + h2 { display: none; } /* safety: hide any accidental duplicate */
.mhev-detail-wrap .mh-occurrences { margin-top: 2rem; }

/* ================================================================
   NOTICE BOX (biglietti non ancora disponibili)
   ================================================================ */
.mhev-detail-wrap .mh-notice-box--info {
    background: #eff6ff !important;
    border: 1.5px solid #bfdbfe !important;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}
.mhev-detail-wrap .mh-notice-content strong {
    display: block;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: .3rem;
}
.mhev-detail-wrap .mh-notice-content p {
    margin: 0;
    font-size: .88rem;
    color: #3b82f6;
    line-height: 1.55;
}
