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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #ff6b35 75%, #ffd93d 100%);
    color: #333;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b35, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
}

.nav-links a:hover {
    background: linear-gradient(45deg, #ff6b35, #ffd93d);
    color: white;
    transform: translateY(-2px);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, rgba(30, 60, 114, 0.9), rgba(42, 82, 152, 0.8), rgba(255, 107, 53, 0.7)),
    url('./immagini/oratoriolaterale.jpg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ff6b35;stop-opacity:0.4" /><stop offset="100%" style="stop-color:%232a5298;stop-opacity:0.2" /></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23grad1)" /></svg>') center/cover;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff6b35, #ffd93d);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.section:nth-of-type(2) {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url('./immagini/oratoriofrontale.jpg') center/cover no-repeat;
}

.book-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #ff6b35, #ffd93d);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ff6b35, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;  
    /* color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: black; */
}

.programmazione-container {
    display: flex;
    flex-wrap: wrap;       /* <-- Aggiunto (permetti ai film di andare a capo) */
    justify-content: center;
    gap: 2rem;
    justify-content: center;
}

.film-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-basis: 380px;  /* La nostra larghezza minima (sostituisce il 'min' di minmax) */
    flex-grow: 1;       /* Permetti di crescere (sostituisce '1fr' di minmax) */
    flex-shrink: 0;
    max-width: 380px;   /* Evita che un film singolo diventi GIGANTE */
}

.film-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.film-poster {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ff6b35, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.film-poster[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.film-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.3), rgba(42, 82, 152, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.film-poster:hover::before {
    opacity: 1;
}

.film-info {
    padding: 1.5rem;
}

.film-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.film-details {
    color: #666;
    margin-bottom: 1rem;
}

.schedule-container {
    margin: 1rem 0;
}

.schedule-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin: 0.3rem 0;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ff6b35;
}

.schedule-date {
    font-weight: bold;
    color: #2a5298;
    font-size: 0.9rem;
}

.schedule-times {
    display: flex;
    gap: 0.5rem;
}

.schedule-time {
    /* background: webkit-radial-Gradient(50deg, #ff6b35, #ffd93d); */
    /* background: linear-gradient(-80deg, #ff6b35, #ffd93d); */
    background-color: rgba(255, 166, 0, 0.712);
    color: #2a5298;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.no-showings {
    color: #ff6b35;      
    font-style: normal;   
    text-align: center;
    padding: 3.3rem 1rem; 
    font-size: 1.75rem;    
    font-weight: bold;    
}

.contact-info {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: #ff6b35;
}

.contact-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.contact-info a {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff6b35;
}

.info-section {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffd93d;
}

.info-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-section a {
    color: #ffd93d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-section a:hover {
    color: #ff6b35;
}

.footer {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    display: none !important;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(255, 217, 61, 0.1));
    animation: float 6s ease-in-out infinite;
    display: none !important;
}

.floating-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    display: none !important;
}

.floating-circle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    display: none !important;
}

.floating-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    display: none !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* --- Stili per Badge Prima Visione --- */
.premiere-badge {
    position: absolute;
    top: 340px;
    left: 15px;
    background: linear-gradient(45deg, #ff6b35, #ffd93d);
    color: white;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(-8deg);
    border-radius: 10px;
}

/* --- Stili per Pulsante Download Locandina --- */
.download-poster-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #2a5298, #1e3c72); /* Colore blu coordinato */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    margin: 0 auto 2.5rem auto; /* Centra e distanzia */
    display: block; /* Per centrarlo */
    width: fit-content;
}

.download-poster-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.4);
}

/* --- Stili per Sezione Tariffe --- */
.price-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.price-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.price-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.price-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2a5298;
}

.price-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.price-list li {
    font-size: 1.1rem;
    color: #333;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ddd;
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list li strong {
    color: #ff6b35;
}

.price-note {
    font-size: 1rem;
    color: #777;
    font-style: italic;
    margin-top: 1rem;
}

/* --- Stili per il Menu Dropdown (Desktop) --- */
.dropdown {
    position: relative; /* Contenitore per il menu */
}

.dropdown-toggle span {
    font-size: 0.7rem; /* Stile per la freccetta */
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle span {
    transform: rotate(180deg); /* Ruota la freccia in hover */
}

.dropdown-menu {
    display: none; /* Nascosto di default */
    position: absolute;
    top: 100%; /* Appare subito sotto */
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block; /* Visibile in hover sul genitore .dropdown */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem; /* Più padding per i link del dropdown */
    color: #333;
    border-radius: 0;
    width: 100%;
    text-align: left;
}

.dropdown-menu a:hover {
    background: linear-gradient(45deg, #ff6b35, #ffd93d); /* Usa lo stesso hover dei nav-links */
    color: white;
    transform: none; /* Rimuove il translateY(-2px) */
}


/* --- Stili per la Nuova Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene le proporzioni e riempie lo spazio */
    object-position: center;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 100%;
        right: 2rem;
        width: 200px;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        z-index: 1001;
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

     .header {
        padding: 1rem 2rem;
    }

    .hero {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        overflow: hidden;
        background: 
        linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(42, 82, 152, 0.8), rgba(255, 107, 53, 0.7)),
        url('./immagini/oratoriolaterale.jpg') center/cover no-repeat;
        /* display: none !important; */
    }

    .film-card {
        /* Sblocca le dimensioni rigide del desktop */
        flex-basis: auto; 
        flex-shrink: 1; /* La card può rimpicciolirsi */
        
        /* Definisci una larghezza per il telefono */
        width: 90%;       /* Occupa il 90% dello spazio disponibile */
        max-width: 330px; /* Non diventare mai troppo gigante */
        
        /* Centra la card */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem; /* Spazio tra una card e l'altra */
    }

    .container {
        padding: 0 1rem;
    }
}

.contributi-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contributi-table th,
.contributi-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.contributi-table thead {
  background: linear-gradient(45deg, #ff6b35, #ffd93d);
  color: white;
}

.contributi-table tr:last-child td {
  border-bottom: none;
}

.contributi-table td strong {
  color: #2a5298;
}

.date-location {
  text-align: right;
  margin-top: 2rem;
  font-style: oblique;
  font-weight: 500;
  color: black;
}