:root {
    --bg-dark: #121418;
    --bg-card: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-gold: #d4af37;

    /* Dynamic theme defaults (Garden Tiffany) */
    --accent-color: #0abab5;
    --accent-color-dark: #089e9a;
    --accent-color-light: #a8f0ee;
    --accent-rgb: 10, 186, 181;
    --bg-gradient: linear-gradient(135deg, #0c1836 0%, #001462 100%);

    /* Card & schedule theme variables */
    --card-hover-shadow: rgba(10, 186, 181, 0.25);
    --film-title-color: #0c1836;
    --schedule-bg: rgba(255, 255, 255, 0.6);
    --schedule-border-color: rgba(10, 186, 181, 0.2);
    --time-slot-hover-color: #0c1836;
    --btn-trama-bg: linear-gradient(135deg, #0abab5, #089e9a);
    --btn-trama-color: white;
}

body.theme-garden {
    --accent-color: #0abab5;
    --accent-color-dark: #089e9a;
    --accent-color-light: #a8f0ee;
    --accent-rgb: 10, 186, 181;
    --bg-gradient: linear-gradient(135deg, #0c1836 0%, #001462 100%);
    --bg-card: aliceblue;
    --card-hover-shadow: rgba(10, 186, 181, 0.25);
    --film-title-color: #0c1836;
    --schedule-bg: rgba(255, 255, 255, 0.6);
    --schedule-border-color: rgba(10, 186, 181, 0.2);
    --time-slot-hover-color: #0c1836;
    --btn-trama-bg: linear-gradient(135deg, #0abab5, #089e9a);
    --btn-trama-color: white;
}

body.theme-iride {
    --accent-color: #ff6b8b;
    --accent-color-dark: #e03a5a;
    --accent-color-light: #ffc2cd;
    --accent-rgb: 255, 107, 139;
    --bg-gradient: linear-gradient(135deg, #1d0f22 0%, #3a0018 100%);
    --bg-card: #ffffff;
    --card-hover-shadow: rgba(255, 107, 139, 0.25);
    --film-title-color: #3a0018;
    --schedule-bg: rgba(255, 255, 255, 0.6);
    --schedule-border-color: rgba(255, 107, 139, 0.2);
    --time-slot-hover-color: #3a0018;
    --btn-trama-bg: linear-gradient(135deg, #ff6b8b, #e03a5a);
    --btn-trama-color: white;
}

body {
    background-color: var(--bg-dark);
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.5s ease;
}

/* MARQUEE */
.marquee-container {
    background: #0c1836;
    border-bottom: 2px solid #0abab5;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

.marquee-content {
    display: flex;
    /*inline-block;*/
    animation: marquee 30s linear infinite;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
}

.marquee-content span {
    margin: 0 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.marquee-content i {
    color: var(--accent-gold);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* VIDEO HERO BACKGROUND */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    object-fit: cover;
    transform: scale(1.02);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(18, 20, 24, 0.3) 0%, rgba(18, 20, 24, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

/* HEADER */
.main-header {
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid #0abab5;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    z-index: 90;
    transition: border-color 0.5s ease;
}

.main-header .subtitle {
    color: white;
    font-weight: 800;
    letter-spacing: 5px;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    transition: color 0.5s ease;
}

/* CINEMA SELECTOR */
.cinema-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.cinema-option {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.45;
    transform: scale(0.92);
    text-align: center;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.cinema-option:hover {
    opacity: 0.85;
    transform: scale(0.98);
}

.cinema-option.active {
    opacity: 1;
    transform: scale(1.08);
    z-index: 10;
}

.logo-img-btn {
    height: 115px;
    width: auto;
    border-radius: 18px;
    border: 4px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: #fff;
}

.cinema-option.active .logo-img-btn {
    border-color: #0abab5;
    box-shadow: 0 10px 25px rgba(10, 186, 181, 0.5);
}

.cinema-label {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: white;
    margin-top: 10px;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.cinema-option.active .cinema-label {
    color: #089e9a;
}

/* Attention ring animation */
@keyframes pulse-attention {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
        transform: scale(0.92);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(var(--accent-rgb), 0);
        transform: scale(0.95);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
        transform: scale(0.92);
    }
}

.attention-pulse {
    animation: pulse-attention 2s infinite;
    border-radius: 22px;
}

/* NAVBAR */
.public-navbar {
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-navbar .nav-link {
    color: #e0e0e0 !important;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 8px 20px !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.public-navbar .nav-link:hover {
    color: #0abab5 !important;
    background: rgba(255, 255, 255, 0.05);
}

.public-navbar .nav-link.active {
    color: #000000 !important;
    background: #0abab5 !important;
}

.public-navbar .navbar-brand {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.25rem;
    color: white !important;
    transition: color 0.4s ease;
}

/* SECTION TITLE */
.section-title {
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 40px 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0abab5;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
    color: var(--text-primary);
    text-align: center;
    max-width: 100%;
}

.section-title i {
    color: #0abab5;
    margin-right: 10px;
}

/* FILM CARD */
.film-card {
    background: var(--bg-card);
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #333;
}

.film-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--card-hover-shadow);
    border-color: var(--accent-color);
}

.film-poster {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 15px;
}

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

.badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #000;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: background 0.5s ease;
}

.badge-age {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    z-index: 10;
}

.film-info {
    padding: 25px;
}

.film-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--film-title-color);
    line-height: 1.3;
    transition: color 0.5s ease;
}

.film-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.film-meta-item {
    background: rgba(var(--accent-rgb), 0.15);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-color-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}

.film-meta-item i {
    color: var(--accent-color-dark);
    font-size: 0.8rem;
    transition: color 0.5s ease;
}

.film-meta-item.film-location {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: var(--accent-gold) !important;
}

.film-meta-item.film-location i {
    color: var(--accent-gold) !important;
}

.schedule-box {
    background: var(--schedule-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--schedule-border-color);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.schedule-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.5s ease;
}

.schedule-grid {
    margin-left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-slot {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.1));
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    color: var(--accent-color-dark);
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background: var(--accent-color);
    color: var(--time-slot-hover-color);
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.giorno-film {
    color: var(--accent-color-dark);
    min-width: 150px;
    transition: color 0.5s ease;
}

.giorno-orari {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* META BADGES */
.film-meta-item.vm14 {
    background: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
    color: #ff6b6b !important;
}

.film-meta-item.tutti {
    background: rgba(40, 167, 69, 0.2) !important;
    border-color: rgba(40, 167, 69, 0.4) !important;
    color: #089e9a !important;
}

/* SPECIAL NOTES */
.special-note {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #e03a5a;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.special-note.info {
    background: rgba(10, 186, 181, 0.15);
    border-color: rgba(10, 186, 181, 0.4);
    color: var(--bg-dark);
}

.special-note.gold {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--accent-gold);
}

/* BUTTONS */
.btn-custom {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
}

.btn-trama {
    background: var(--btn-trama-bg);
    color: var(--btn-trama-color);
    transition: background 0.5s ease, transform 0.3s ease;
}

.btn-trama:hover {
    background: var(--accent-color-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #000;
}

.btn-scheda {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: color 0.5s ease, border-color 0.5s ease, background 0.5s ease, transform 0.3s ease;
}

.btn-scheda:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* CLOSED CARD */
.closed-card {
    background: white;
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.1);
}

.closed-card h3 {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.closed-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* MODAL */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    color: var(--text-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: border-color 0.5s ease;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
}

.modal-title {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.3rem;
    transition: color 0.5s ease;
}

.modal-body {
    padding: 25px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-body strong {
    color: var(--accent-color-dark);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 25px;
}

.btn-close-custom {
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 700;
    transition: background 0.5s ease;
}

.btn-close-custom:hover {
    background: var(--accent-color-light);
    color: #000;
}

/* FOOTER */
.main-footer {
    background: white;
    border-top: 2px solid #0abab5;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0c1836;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--bg-dark);
    font-size: 0.95rem;
}

.footer-item i {
    color: #0c1836;
    font-size: 1.1rem;
    width: 20px;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(10, 186, 181, 0.2);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* PROMO SPACE */
.promo-space {
    border: 2px dashed var(--accent-color);
    border-radius: 10px;
    padding: 2px;
    transition: border-color 0.5s ease;
}

.promo-space img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* UNSELECTED PROMPT */
.unselected-prompt-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ANIMATIONS */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid #0abab5;
    padding: 18px 24px;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #0abab5;
}

.cookie-banner-text p {
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-banner-text a {
    color: #0abab5;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-text a:hover {
    color: #fff;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner-actions .btn {
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-banner-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.cookie-banner-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.cookie-banner-actions .btn-garden {
    background: #0abab5;
    border-color: #0abab5;
    color: #fff;
}

.cookie-banner-actions .btn-garden:hover {
    background: #089e9a;
    border-color: #089e9a;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: var(--accent-color-light);
    color: #000;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 12px;
        margin-top: 10px;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .public-navbar .nav-link {
        padding: 12px 20px !important;
        min-height: 48px;
        border-radius: 8px;
        margin-bottom: 4px;
    }

    .public-navbar .nav-link:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {

    /* Marquee */
    .marquee-content {
        font-size: 0.8rem;
        animation-duration: 20s;
    }

    .marquee-content span {
        margin: 0 20px;
    }

    .section-title-wrap {
        flex-direction: column;
        gap: 0;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin: 25px 0 20px;
        padding-bottom: 10px;
    }

    .giorno-orari {
        align-items: start;
        flex-direction: column;
    }

    .giorno-film {
        margin-bottom: 5px;
    }

    .schedule-grid {
        margin-left: 0;
    }

    .cinema-selector-container {
        gap: 25px;
    }

    .logo-img-btn {
        height: 90px;
    }

    .btn-custom {
        padding: 10px 18px;
        font-size: 0.80rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner-actions .btn {
        flex: 1;
        max-width: 200px;
    }

    /* Hero */
    .main-header {
        min-height: 45vh;
        padding: 30px 0;
    }

    .main-header .subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }

    /* Film card - STACKED LAYOUT */
    .film-card .row {
        flex-direction: column;
    }

    .film-card .col-md-3,
    .film-card .col-md-9 {
        width: 100%;
        max-width: 100%;
    }

    .film-card .col-md-3 {
        padding: 0 !important;
    }

    .film-poster {
        height: auto;
        max-height: 450px;
        min-height: unset;
        border-radius: 20px 20px 0 0;
        box-shadow: none;
    }

    .film-poster img {
        border-radius: 20px 20px 0 0;
        max-height: 450px;
    }

    .film-info {
        padding: 20px 16px;
    }

    /* Buttons - full width stacked */
    .film-info .d-flex.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }

    .btn-custom {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    /* Poster placeholder */
    .film-poster>div[style*="background: #222"] {
        height: 280px !important;
        border-radius: 20px 20px 0 0 !important;
    }
}