:root {
    --header-height: 108px;
    --celeste: #0C5374;
    --giallo: #F8DC31
}

/* Font declarations */
@font-face {
    font-family: 'Neue Montreal';
    src: url('../fonts/PPNeueMontreal-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('../fonts/PPNeueMontreal-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Montreal';
    src: url('../fonts/PPNeueMontreal-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    font-family: 'Neue Montreal', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    touch-action: pan-x pan-y;
}

/* Accessibility Utilities */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 20px;
}

/* Generic link style */
a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

a:not(.btn):not(:has(img))::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: currentColor;
    transition: width .5s ease;
}

a:not(.btn):not(:has(img)):hover::after,
a:not(.btn):not(:has(img)):focus::after {
    width: 100%;
}

/* Specific positioning for navigation links */
.nav-menu a:not(.btn):not(:has(img))::after {
    bottom: 4px;
}

/* Container */
.container {
    margin: 0 auto;
    padding: 0 50px;
}

/* Header */
.header {
    background: var(--celeste);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 68px;
    width: auto;
    z-index: 2;
    position: relative;
}

/* Navigation */
.nav-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    z-index: 101;
    position: relative;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #0c5374eb;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding-top: 100px;
}

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

.nav-menu li {
    border-bottom: 1px solid #fff;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 20px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: #333;
}

/* Hero Section */
.hero {
    background: white;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding: 0;
}

.hero-content .hero-text {
    position: absolute;
    bottom: 0;
    left: 50px;
}

.hero-content h2 {
    color: var(--giallo);
    font-size: 2rem;
    line-height: 2.8rem;
    margin-bottom: 1rem;
}

.hero-image img {
    width: 100%;
    display: block;
    height: calc(100vh - var(--header-height));
    object-fit: cover;
    object-position: bottom left;
}

/* Featured Movies */
.featured-movies {
    padding: 0;
}

.movie-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 0;
}

.movie-card {
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.today-card {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.tomorrow-card {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #333;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-content {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.movie-poster img {
    width: 120px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.movie-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.movie-director {
    font-size: 0.9rem;
    opacity: 0.8;
}

.movie-description {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}

.btn-primary {
    background: white;
    color: #333;
    border: 1px solid #333;
}

.btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 600;
}

.btn-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-icon {
    fill: currentColor;
    flex-shrink: 0;
}

.btn-newsletter {
    background: #e74c3c;
    color: white;
    padding: 0.75rem 2rem;
}

.btn-newsletter:hover {
    background: #c0392b;
}

/* Program Section */
.program {
    background: #fff;
    padding: 4rem 0;
}

.program h2 {
    font-size: 2.3rem;
    margin: 0 0 3rem;
    text-align: left;
    color: #333;
}

.program-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.odd .movie-date,
.odd .movie-info-bar {
    background: var(--giallo);
    color: #000;
}

.odd .movie-label {
    background: var(--celeste);
    color: white;
}
.odd .movie-label.free-entry {
    background: #f8dc31;
    color: black;
}
.program-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.program-date {
    text-align: center;
    flex-shrink: 0;
    width: 100px;
}

.program-date-day {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.program-date-month {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-movie {
    flex: 1;
}

.program-movie h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #333;
}

.program-director {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.program-time {
    font-size: 0.9rem;
    color: #666;
    margin-left: auto;
    padding-right: 1rem;
}

.btn-load-more {
    display: block;
    margin: 0 auto;
    background: var(--celeste);
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-top: 2rem
}

.btn-load-more:hover {
    background: var(--giallo);
    color: #000;
}

/* Newsletter */
.newsletter {
    background: var(--celeste);
    color: #000;
    padding: 4rem 0;
}

.error-message {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--celeste);
    color: #fff;
    padding: 40px 0;
    font-size: 0.875rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    align-items:center
}

.footer-address p,
.footer-phone p,
.footer-info p {
    margin: 0 0 10px;
}

.footer-address p:first-child,
.footer-phone p:first-child {
    font-weight: bold;
}

.footer-info {
    max-width: 400px;
}

.footer-bottom {
    border-top: 1px solid #fff;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

/* Modal */
.movie-modal {
    border: none;
    padding: 0;
    max-width: 900px;
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.movie-modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: white;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.movie-card-v2 {
    cursor: pointer;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.movie-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.movie-card-v2:hover .movie-img-wrapper img {
    transform: scale(1.05);
}

.movie-img-wrapper {
    position: relative;
    overflow: hidden;
}

.movie-img-wrapper img {
    width: 100%;
    display: block;
    height: 290px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Etichette */
.movie-date {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--celeste);
    color: white;
    font-size: 20px;
    font-weight: 400;
    padding: 0.4rem 0.6rem;
}

.movie-label {
    position: absolute;
    background: #f6cb00;
    color: black;
    font-size: 20px;
    font-weight: 400;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
}

.movie-label.ingresso {
    top: 2.8rem;
    left: 0;
}

.movie-label.venue {
    bottom: 0;
    left: 0;
}

.movie-label.free-entry {
    bottom: 0;
    right: 0;
    background: var(--celeste);
    color: white;
    font-weight: 400;
}

.movie-label.acquista {
    right: 8px;
    text-transform: uppercase;
}

.movie-label.price-label {
    background: #ffe600;
    color: #222;
    font-weight: bold;
    padding: 0.2em 0.7em;
    border-radius: 6px;
    font-size: 1rem;
    display: inline-block;
    margin-top: 0.5em;
}

/* Barra info in fondo */
.movie-info-bar {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #1a1a1a;
}

.movie-info-bar .movie-title {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.movie-info-bar .movie-director {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    margin-top: auto;
}

.movie-info-bar {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--celeste);
    color: white;
}

.movie-card-v2.odd .movie-info-bar {
    background-color: var(--giallo);
    color: #1a1a1a;
}

.movie-card-v2.odd .movie-label.acquista {
    background-color: var(--celeste);
    color: white;
}

.movie-info-bar .movie-title {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.movie-info-bar .movie-director {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    margin-top: auto;
}

.btn-buy-ticket {
    display: inline-block;
    padding: 8px 12px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    flex-shrink: 0;
    background-color: var(--giallo);
    color: #1a1a1a;
}

.movie-card-v2.odd .btn-buy-ticket {
    background-color: var(--celeste);
    color: white;
}

.movie-card-v2:hover .movie-img-wrapper img {
    transform: scale(1.05);
}

/* Fix label positioning during hover to eliminate gaps */
.movie-card-v2:hover .movie-label.free-entry {
    bottom: -1px;
    right: -1px;
}

.movie-card-v2:hover .movie-date {
    top: -1px;
    left: -1px;
}
.abbonamento {
    margin: 3rem 0;
}
.abbonamento-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.abbonamento-colonna {
    flex: 1 1 0;
}
.abbonamento-img {
    display: flex;
    justify-content: center;
    align-items: center;
}
.abbonamento-img img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.abbonamento-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.abbonamento-descrizione {
    font-size: 1.2rem;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .abbonamento-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .abbonamento-title {
        font-size: 1.4rem;
    }
    .abbonamento-descrizione {
        font-size: 1rem;
    }
}
/* MAILERLITE */
#mlb2-6096397.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
    max-width: 700px !important;
    width: 100% !important;
    overflow: hidden !important;
}

#mlb2-6096397.ml-form-embedContainer .ml-form-embedWrapper {
    background-color: transparent !important;
}

#mlb2-6096397.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent h4,
#mlb2-6096397.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4 {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-align: left;
    word-break: break-word;
}

#mlb2-6096397.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow input {
    border-radius: 0px !important
}

#mlb2-6096397.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button[type=submit] {
    background-color: var(--giallo) !important;
    border-color: var(--giallo) !important;
    border-radius: 0 !important;
    color: #000 !important;
}

#mlb2-6096397.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button[type=submit]:hover {
    background-color: var(--celeste) !important;
    color: var(--giallo) !important;
    box-shadow: inset 0 0 0 2px;
}

/* DESKTOP */
@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        background: transparent;
        width: auto;
        padding-top: 0;
        display: flex;
        gap: 2rem;
    }

    .nav-menu.active {
        /* override active state on desktop */
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 0.5rem 0;
        /* a bit of padding for easier clicking */
        display: inline-block;
        /* to respect padding */
    }

    .nav-menu a:hover,
    .nav-menu a:focus {
        background-color: transparent;
    }

    .nav-menu a:hover::after,
    .nav-menu a:focus::after {
        background-color: white;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .container {
        padding: 1rem 20px;
    }

    .header-content {
        padding: 0
    }

    .hero-content .hero-text {
        left: 20px;
        top: 2rem;
    }

    .movie-cards-container {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .program-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .program-time {
        margin-left: 0;
        padding-right: 0;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .modal-poster{
        text-align: center;
    }
    .modal-poster img {
        height: 250px!important;
        width: 165px !important;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .program-list {
        grid-template-columns: 1fr;
    }

    .footer-info {
        flex-basis: 100%;
    }
}

.movie-card-screenshot.blue-bg {
    background: #0056a6;
}
.movie-card-screenshot.blue-bg .movie-card-date,
.movie-card-screenshot.blue-bg .movie-card-arena,
.movie-card-screenshot.blue-bg .movie-card-title,
.movie-card-screenshot.blue-bg .movie-card-director {
    color: #fff;
}
.movie-card-screenshot.yellow-bg {
    background: #ffe600;
}
.movie-card-screenshot.yellow-bg .movie-card-date,
.movie-card-screenshot.yellow-bg .movie-card-arena,
.movie-card-screenshot.yellow-bg .movie-card-title,
.movie-card-screenshot.yellow-bg .movie-card-director {
    color: #222;
}