/* ============================================================
   2Tickets.it - Main Stylesheet
   ============================================================ */

:root {
    --bg-body: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-input: #f1f3f5;
    --bg-dark: #1a1a1a;
    --border-color: #e5e5e7;
    --border-hover: #d1d1d6;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-light: rgba(249, 115, 22, 0.1);
    --accent-lighter: rgba(249, 115, 22, 0.05);
    --success: #16a34a;
    --success-light: rgba(22, 163, 74, 0.1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

    .logo img {
        height: 42px;
        width: auto;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login,
.btn-user {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .btn-login:hover,
    .btn-user:hover {
        border-color: var(--accent);
        background: var(--accent);
    }

    .btn-login svg,
    .btn-user svg {
        width: 18px;
        height: 18px;
    }

.btn-login-text {
    display: inline;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
}

.header-actions .dropdown-toggle {
    color: white !important; /* o var(--accent) per l'arancione */
}

.header-actions .dropdown-toggle:hover {
    color: var(--accent) !important;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-container {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-nav {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .main-nav::-webkit-scrollbar {
        display: none;
    }

.nav-item {
    padding: 0.85rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

    .nav-item:hover {
        color: var(--text-primary);
        background: var(--bg-input);
    }

    .nav-item.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

    .mobile-menu.active {
        transform: translateX(0);
    }

.mobile-menu-header {
    padding: 1rem 1.25rem;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .mobile-menu-header img {
        height: 36px;
    }

.mobile-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        background: var(--accent-lighter);
        color: var(--accent);
        border-left-color: var(--accent);
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
        color: var(--text-muted);
    }

    .mobile-nav-item.active svg,
    .mobile-nav-item:hover svg {
        color: var(--accent);
    }

.mobile-menu-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

    .mobile-menu-footer .btn-login {
        width: 100%;
        justify-content: center;
        background: var(--accent);
        border-color: var(--accent);
        color: white;
    }

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

    .search-bar:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-light);
    }

    .search-bar svg {
        width: 20px;
        height: 20px;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .search-bar input {
        flex: 1;
        border: none;
        background: none;
        font-size: 1rem;
        color: var(--text-primary);
        outline: none;
    }

        .search-bar input::placeholder {
            color: var(--text-muted);
        }

/* ============================================================
   AD BANNERS
   ============================================================ */

.ad-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
}

    .ad-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
    }

.ad-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.ad-content p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.ad-cta {
    padding: 0.6rem 1.25rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1;
    white-space: nowrap;
}

    .ad-cta:hover {
        transform: scale(1.05);
    }

.ad-label {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* ============================================================
   EVENTS GRID
   ============================================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Event Card */
.event-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--border-hover);
    }

.event-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

    .event-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.event-card:hover .event-poster img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.25rem 0.6rem;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

    .event-badge.teatro {
        background: #8b5cf6;
    }

    .event-badge.musica {
        background: #ec4899;
    }

    .event-badge.sport {
        background: #22c55e;
    }

    .event-badge.fiere {
        background: #3b82f6;
    }

.venue-count {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

    .venue-count svg {
        width: 12px;
        height: 12px;
    }

.event-info {
    padding: 0.85rem;
}

.event-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

    .event-meta-item svg {
        width: 12px;
        height: 12px;
        color: var(--text-muted);
    }

.event-cta {
    width: 100%;
    padding: 0.6rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .event-cta:hover {
        background: var(--accent-hover);
    }

/* Load More */
.load-more {
    text-align: center;
    margin: 2rem 0;
}

.btn-load-more {
    padding: 0.85rem 2.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-load-more:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-poster {
    width: 100px;
    height: 150px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.modal-info {
    flex: 1;
}

.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

    .modal-meta-item svg {
        width: 16px;
        height: 16px;
        color: var(--accent);
    }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .modal-close:hover {
        background: var(--border-color);
        color: var(--text-primary);
    }

.modal-body {
    padding: 1.5rem;
}

.modal-section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .modal-section-title svg {
        width: 20px;
        height: 20px;
        color: var(--accent);
    }

/* Venue List */
.venue-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.venue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.75rem;
}

    .venue-item:hover {
        border-color: var(--accent);
        background: var(--accent-lighter);
    }

.venue-info {
    flex: 1;
    min-width: 0;
}

    .venue-info h4 {
        font-weight: 600;
        margin-bottom: 0.15rem;
        font-size: 0.95rem;
    }

    .venue-info p {
        font-size: 0.85rem;
        color: var(--text-secondary);
    }

.venue-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.venue-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.time-chip {
    padding: 0.3rem 0.55rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.venue-arrow {
    color: var(--accent);
    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--bg-dark);
    color: white;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: white;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}

    .footer-col a:hover {
        color: var(--accent);
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

    .footer-links a {
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        font-size: 0.85rem;
    }

        .footer-links a:hover {
            color: var(--accent);
        }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        display: none;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .header-top {
        padding: 0.5rem 1rem;
    }

    .logo img {
        height: 36px;
    }

    .btn-login-text {
        display: none;
    }

    .btn-login {
        padding: 0.5rem;
    }

    .main-content {
        padding: 1rem;
    }

    .ad-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .ad-content h3 {
        font-size: 1.25rem;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .event-info {
        padding: 0.65rem;
    }

    .event-title {
        font-size: 0.85rem;
    }

    .event-meta {
        display: none;
    }

    .event-cta {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }

    .modal-poster {
        width: 100px;
        height: 150px;
    }

    .modal-body {
        padding: 1rem;
    }

    .venue-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .venue-right {
        width: 100%;
        justify-content: space-between;
    }

    .venue-times {
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 380px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.hidden {
    display: none !important;
}


/* ============================================
   DETTAGLIO EVENTO - STILI
   ============================================ */

/* Card principale */
.detail-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.detail-poster {
    width: 100% !important;
    max-width: 300px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.detail-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 2.5rem !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
    text-decoration: underline !important;
    text-decoration-color: #f7941d !important;
    text-underline-offset: 8px !important;
}

.detail-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    color: #666 !important;
    font-size: 0.95rem !important;
}

.meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

    .meta-item i {
        color: #f7941d !important;
    }

/* Badge titolo (VM, 3D, VO, ATMOS) */
.detail-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.badge-vm, .badge-3d, .badge-vo, .badge-atmos {
    display: inline-block !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
}

.badge-vm {
    background: #dc3545 !important;
    color: white !important;
}

.badge-3d {
    background: #0d6efd !important;
    color: white !important;
}

.badge-vo {
    background: #6f42c1 !important;
    color: white !important;
}

.badge-atmos {
    background: #20c997 !important;
    color: white !important;
}

.detail-credits {
    margin-bottom: 0.5rem !important;
    color: #555 !important;
}

.detail-plot {
    color: #666 !important;
    line-height: 1.6 !important;
    text-align: justify !important;
}

/* Sezione Cinema e Orari */
.showtimes-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.showtimes-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.5rem !important;
    color: #f7941d !important;
    margin-bottom: 1rem !important;
}

/* Legenda disponibilità */
.availability-legend {
    display: flex !important;
    gap: 1.5rem !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    padding: 0.75rem 1rem !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
}

    .availability-legend span {
        display: flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
    }

/* Riga cinema */
/* Riga cinema - LAYOUT MIGLIORATO */
.cinema-row {
    display: flex;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    gap: 1.5rem;
}

    .cinema-row:last-child {
        border-bottom: none;
    }

/* Colonna sinistra - Info cinema */
.cinema-info {
    flex: 0 0 280px;
    min-width: 200px;
}

.cinema-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.cinema-location {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

    .cinema-location i {
        color: #f7941d;
        margin-top: 2px;
    }

.cinema-phone {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .cinema-phone i {
        color: #f7941d;
    }

/* Colonna destra - Orari */
.showtimes-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Gruppo per data */
.date-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: #f7941d;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    min-width: 90px;
    text-align: center;
}

/* Riga orari */
.times-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

/* Chip orario con semaforo */
.showtime-chip {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 75px;
    min-height: 50px;
    border: 2px solid transparent;
}

    /* SEMAFORO - Colori più distinti */
    .showtime-chip.available {
        background: #d4edda;
        border-color: #28a745;
        color: #155724;
    }

        .showtime-chip.available:hover {
            background: #28a745;
            color: white;
            transform: scale(1.05);
        }

    .showtime-chip.limited {
        background: #fff3cd;
        border-color: #ffc107;
        color: #856404;
    }

        .showtime-chip.limited:hover {
            background: #ffc107;
            color: #333;
            transform: scale(1.05);
        }

    .showtime-chip.soldout {
        background: #f8d7da;
        border-color: #dc3545;
        color: #721c24;
        opacity: 0.8;
    }

    .showtime-chip.disabled {
        pointer-events: none;
        cursor: not-allowed;
    }

    /* Pallino semaforo */
    .showtime-chip::before {
        content: '';
        position: absolute;
        top: 4px;
        right: 4px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 1px solid rgba(0,0,0,0.2);
    }

    .showtime-chip.available::before {
        background: #28a745;
    }

    .showtime-chip.limited::before {
        background: #ffc107;
    }

    .showtime-chip.soldout::before {
        background: #dc3545;
    }

.showtime-hour {
    font-size: 1.1rem;
    font-weight: 700;
}

.showtime-sala {
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mini badge (3D, VO, ATM) */
.showtime-badges {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.25rem;
}

.mini-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

    .mini-badge.vo {
        background: #6f42c1;
    }

    .mini-badge.treD {
        background: #0d6efd;
    }

    .mini-badge.atmos {
        background: #20c997;
    }

/* Responsive */
@media (max-width: 768px) {
    .cinema-row {
        flex-direction: column;
    }

    .cinema-info {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }

    .showtimes-container {
        min-width: 100%;
    }

    .date-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}