/* Front styles */
/* ═══════════════════════════════════════════════════════════
   Biglietti – Elenco
   ═══════════════════════════════════════════════════════════ */

.lba-tickets {
    --lba-accent: var(--nectar-accent-color, #D9302C);
    --lba-text:   #1A1A1A;
    --lba-muted:  #595959;
    --lba-border: #EEEEEE;
    --lba-radius: 14px;
    --lba-gap:    24px;
    color: var(--lba-text);
}

.lba-tickets .lba-tickets__count {
    margin: 0 0 20px;
    padding: 0;
    font-size: 14px;
    color: var(--lba-muted);
}

.lba-tickets .lba-tickets__empty {
    margin: 0;
    padding: 48px 24px;
    border-radius: var(--lba-radius);
    background: #F7F7F7;
    color: var(--lba-muted);
    text-align: center;
}

/* Griglia — reset degli stili lista di Salient */
.lba-tickets .lba-tickets__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: var(--lba-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lba-tickets .lba-tickets__grid > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lba-tickets .lba-tickets__grid > li::before {
    content: none;
}

/* ── Card ─────────────────────────────────────────────────── */

.lba-tickets .lba-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--lba-radius);
    background: #FFFFFF;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    color: var(--lba-text);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.lba-tickets .lba-card__link:hover {
    color: var(--lba-text);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.lba-tickets .lba-card__link:focus-visible {
    outline: 3px solid var(--lba-accent);
    outline-offset: 3px;
}

/* Immagine */
.lba-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E6E6E6;
}

.lba-tickets .lba-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .5s ease;
}

.lba-card__link:hover .lba-card__media img {
    transform: scale(1.04);
}

/* Badge data */
.lba-card__date {
    position: absolute;
    top: 14px;
    left: 14px;
    min-width: 60px;
    padding: 8px 10px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    text-align: center;
    line-height: 1;
}
.lba-card__label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lba-muted);
}

.lba-card__day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--lba-accent);
}

.lba-card__month {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lba-text);
}

/* Badge esaurito */
.lba-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--lba-text);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* Corpo */
.lba-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
    padding: 20px;
}

.lba-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lba-card__tag {
    padding: 4px 10px;
    border-radius: 6px;
    background: #F0F0F0;
    color: #333333;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.lba-card__tag--tipo {
    background: var(--lba-accent);
    color: #FFFFFF;
}

.lba-tickets .lba-card__title {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lba-text);
}

.lba-tickets .lba-card__when {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lba-muted);
}

/* Footer card: prezzo + CTA */
.lba-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--lba-border);
}

.lba-card__price {
    font-size: 14px;
    color: var(--lba-muted);
}

.lba-card__price .amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--lba-text);
}

.lba-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--lba-accent);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: filter .2s ease;
}

.lba-card__link:hover .lba-card__cta {
    filter: brightness(.9);
}

/* Esaurito */
.lba-card.is-soldout .lba-card__media img {
    filter: grayscale(1);
    opacity: .75;
}

.lba-card.is-soldout .lba-card__cta {
    background: var(--lba-muted);
}
.lba-tickets [hidden] {
    display: none !important;
}

/* ── Responsive / accessibilità ───────────────────────────── */

@media (max-width: 690px) {
    .lba-tickets {
        --lba-gap: 16px;
    }
    .lba-card__body {
        padding: 16px;
    }
    .lba-tickets .lba-card__title {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lba-tickets .lba-card__link,
    .lba-tickets .lba-card__media img {
        transition: none;
    }
    .lba-tickets .lba-card__link:hover,
    .lba-card__link:hover .lba-card__media img {
        transform: none;
    }
}


/* ── Barra filtri ─────────────────────────────────────────── */

.lba-tickets .lba-tickets__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 24px;
    margin: 0 0 32px;
    padding: 20px 24px;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.lba-tickets .lba-filter {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.lba-tickets .lba-filter--tipo {
    flex: 1 1 320px;
}

.lba-tickets .lba-filter__label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--lba-muted);
}

/* Chip (radio) */
.lba-tickets .lba-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lba-tickets .lba-chip {
    position: relative;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.lba-tickets .lba-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.lba-tickets .lba-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1.5px solid #DDDDDD;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--lba-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.lba-tickets .lba-chip:hover span {
    border-color: var(--lba-text);
}

.lba-tickets .lba-chip input:checked + span {
    border-color: var(--lba-text);
    background: var(--lba-text);
    color: #FFFFFF;
}

.lba-tickets .lba-chip input:focus-visible + span {
    outline: 3px solid var(--lba-accent);
    outline-offset: 2px;
}

/* Select */
.lba-tickets .lba-filter select {
    height: 44px;
    min-width: 200px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: var(--lba-text);
    font: inherit;
    font-size: 14px;
}

.lba-tickets .lba-filter select:focus-visible {
    outline: 3px solid var(--lba-accent);
    outline-offset: 2px;
}

/* Azioni */
.lba-tickets .lba-tickets__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
}

.lba-tickets .lba-tickets__submit {
    height: 44px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--lba-accent);
    color: #FFFFFF;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lba-tickets.is-js .lba-tickets__submit {
    display: none;
}

.lba-tickets .lba-tickets__reset {
    font-size: 14px;
    font-weight: 500;
    color: var(--lba-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lba-tickets .lba-tickets__reset:hover {
    color: var(--lba-accent);
}

/* Caricamento */
.lba-tickets .lba-tickets__grid {
    transition: opacity .2s ease;
}

.lba-tickets.is-loading .lba-tickets__grid {
    opacity: .45;
    pointer-events: none;
}

/* Carica altri */
.lba-tickets .lba-tickets__more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.lba-tickets .lba-tickets__more-btn {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1.5px solid var(--lba-text);
    border-radius: 8px;
    color: var(--lba-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.lba-tickets .lba-tickets__more-btn:hover {
    background: var(--lba-text);
    color: #FFFFFF;
}

.lba-tickets.is-loading .lba-tickets__more-btn {
    opacity: .6;
    pointer-events: none;
}

@media (max-width: 690px) {
    .lba-tickets .lba-tickets__filters {
        padding: 16px;
    }
    .lba-tickets .lba-filter--spazio,
    .lba-tickets .lba-filter--mese {
        flex: 1 1 100%;
    }
    .lba-tickets .lba-filter select {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lba-tickets .lba-chip span,
    .lba-tickets .lba-tickets__grid,
    .lba-tickets .lba-tickets__more-btn {
        transition: none;
    }
}


/* ── Scheda biglietto ─────────────────────────────────────── */

/* ── Scheda biglietto: blocco acquisto ────────────────────── */

.lba-is-ticket .product form.cart,
.lba-is-ticket .ppc-button-wrapper,
.lba-is-ticket .lba-price-note {
    max-width: 420px;
}

.lba-is-ticket .product form.cart .single_add_to_cart_button {
    width: 100%;
    min-height: 52px;
    margin: 0;
    border-radius: 8px;
}

/* Contenitore PayPal (solo opzione B) */
.lba-is-ticket .ppc-button-wrapper {
    margin: 12px 0 0;
}

.lba-is-ticket .ppc-button-wrapper iframe {
    border-radius: 8px;
}

/* Nota soci */
.lba-price-note {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: #F2F2F2;
    color: #4A4A4A;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

/* Tipologia / spazio: staccati dal blocco acquisto */
.lba-is-ticket .product_meta.lba-ticket-meta {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #E6E6E6;
}

.lba-tickets.lba-related {
    clear: both;
    width: 100%;
    margin: 64px 0 0;
}

.lba-tickets .lba-related__title {
    margin: 0 0 24px;
    padding: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.lba-is-ticket .product form.cart .quantity {
    margin-bottom: 12px!important;
}