:root {
    --primary-color: #dd0021; /* Rosso CRI */
    --secondary-color: #2b2d42; /* Blu scuro per contrasto */
    --accent-color: #edf2f4; /* Grigio chiaro per sfondi/elementi */
    --text-color: #333;
    --light-text-color: #fff;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base per rem */
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f8f9fa;
}

a {
    color: #dd0021;
}

/* --- Logo --- */
.logo-container {
    text-align: center;
}

#logo-img {
    max-width: 350px; /* Adatta alla dimensione del tuo logo */
    height: auto;
    margin-bottom: 1rem; /* Spazio tra logo e inizio hero */
    margin-top: 1rem; /* Spazio tra logo e inizio hero */
}

/* --- Hero Section --- */
.hero {
    /*
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('http://cricrema.it/wp-content/uploads/2025/06/copertinav2.jpeg') no-repeat center center/cover;
    */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('http://cricrema.it/wp-content/uploads/2025/06/copertinav2.jpeg') no-repeat center center/cover;

    /* Sostituisci 'https://via.placeholder.com/...' con una tua immagine di sfondo adeguata */
    color: var(--light-text-color);
    min-height: 100vh; /* OCCUPA L'INTERA ALTEZZA DELLO SCHERMO */
    display: flex; /* USA FLEXBOX PER CENTRARE IL CONTENUTO */
    flex-direction: column; /* ELEMENTI IN COLONNA */
    justify-content: center; /* CENTRA VERTICALMENTE */
    align-items: center; /* CENTRA ORIZZONTALMENTE */
    text-align: center;
    padding: 2rem 1rem; /* Padding interno per non far toccare i bordi */
    position: relative; /* Per posizionare elementi figli in modo assoluto se necessario */
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Aggiunto per migliorare la centratura verticale del blocco */
    max-width: 900px; /* Limita la larghezza massima del contenuto */
    width: 100%;
    flex-grow: 1; /* Permette al wrapper di crescere per occupare lo spazio disponibile in .hero */
}

.hero-content {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero h2 {
    font-family: var(--font-secondary);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.event-dates {
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #dd0021; /* Giallo per evidenziare le date */
}

.event-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: var(--box-shadow);
}

.cta-button:hover {
    background-color: #dd0021; /* Rosso più scuro */
    transform: translateY(-2px);
}

/* --- Sticky Navigation --- */
.sticky-nav {
    background-color: #dd0021;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow-x: auto; /* Per mobile se ci sono troppi link */
    white-space: nowrap; /* Per mobile */
}

.sticky-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem; /* Per dare spazio ai lati su mobile */
}

.sticky-nav li {
    margin: 0 0.75rem; /* Ridotto per più link */
}

.sticky-nav a {
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.25rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.sticky-nav a:hover, .sticky-nav a:focus {
    color: var(--light-text-color);
    border-bottom: 2px solid #fff;
}

/* --- Main Content --- */
main {
    padding: 0; /* No padding on main, sections will handle it */
}

.content-section {
    padding: 3rem 1.5rem;
    max-width: 960px;
    margin: 0 auto; /* Centra il contenuto */
    background-color: var(--light-text-color);
    margin-bottom: 1px; /* Sottile linea di separazione */
}

.content-section:nth-child(even) { /* Alterna leggermente i colori di sfondo delle sezioni */
    background-color: #fdfdfd;
}

.content-section h2 {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.content-section h2::after { /* Sottolineatura decorativa */
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

.section-divider {
    font-size: 1.8rem !important;
    color: var(--secondary-color) !important;
    margin-top: 3rem !important;
}
.section-divider::after {
    background-color: var(--secondary-color) !important;
}


/* Programma Giornaliero */
.day-schedule {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-color);
}

.day-schedule h3 {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.day-schedule p {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.day-schedule ul {
    list-style: none;
    padding-left: 0;
}

.day-schedule li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
    font-size: 1rem;
}
.day-schedule li:last-child {
    border-bottom: none;
}
.day-schedule li strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}


/* Supportaci Section */
.highlighted-section {
    background-color: var(--accent-color);
}

.support-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.support-card {
    background-color: var(--light-text-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    flex-basis: 300px; /* Base width, allows wrapping */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-icon {
    width: 80px; /* Reduced size */
    height: 80px; /* Reduced size */
    margin-bottom: 1rem;
    border-radius: 50%; /* Make icons circular if they are square */
    object-fit: cover; /* Ensures icon fits well if it's an image */
}

.support-card h3 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.cta-button-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none; /* Per il bottone di condivisione */
    cursor: pointer; /* Per il bottone di condivisione */
    font-size: 0.9rem;
    margin-top: auto; /* Pushes button to bottom of card */
}

.support-card-text {
    /* ...altri stili se ne ha... */
    margin-bottom: 1.5rem; /* O il valore che preferisci, es. 20px */
}

.cta-button-secondary:hover {
    background-color: #1a1b2f; /* Blu più scuro */
    transform: translateY(-2px);
}

/* Map Container */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    .hero h2 {
        font-size: 1.3rem;
    }

    .sticky-nav ul {
        justify-content: flex-start; /* Permette lo scroll orizzontale */
    }
    .sticky-nav li {
        margin: 0 0.5rem;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .day-schedule h3 {
        font-size: 1.4rem;
    }

    .support-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero h2 {
        font-size: 1.1rem;
    }
    .event-dates, .event-intro {
        font-size: 1.5rem;
    }
    .cta-button, .cta-button-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .sticky-nav a {
        font-size: 0.8rem;
    }
}

/* --- Sezione Locandine --- */
.locandine-container {
    display: flex; /* Attiva Flexbox per affiancare gli elementi */
    flex-wrap: wrap; /* Permette agli elementi di andare a capo su schermi piccoli */
    gap: 2rem; /* Spazio tra le locandine */
    justify-content: center; /* Centra le locandine se non occupano tutta la larghezza */
    align-items: flex-start; /* Allinea le locandine in alto se hanno altezze diverse prima del crop */
    margin-top: 1.5rem; /* Spazio dal titolo della sezione "Le Nostre Locandine" */
}

.locandina-item {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis. Permette di crescere e restringersi, con una base di 300px.
                       Questo fa sì che su schermi larghi possano occupare più spazio, 
                       e su schermi stretti (sotto i ~640px + gap) andranno a capo. */
    max-width: 45%; /* Su schermi larghi, limita la larghezza di ogni locandina a poco meno della metà per mantenere lo spazio */
                     /* Puoi anche usare un valore fisso es. max-width: 400px; se preferisci */
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden; /* Importante per contenere l'immagine se usi object-fit */
    text-align: center;
    display: flex; /* Per centrare la caption se necessario o per altri layout interni */
    flex-direction: column;
}

.locandina-item img {
    width: 100%; /* L'immagine occupa tutta la larghezza del .locandina-item */
    height: auto; /* Mantiene le proporzioni originali dell'immagine */
    /* Se le immagini hanno proporzioni DIVERSE e vuoi FORZARLE ad avere la stessa altezza visiva: */
    /* height: 400px;  /* O l'altezza che desideri */
    /* object-fit: cover; /* Ritaglia l'immagine per riempire lo spazio senza distorcerla */
    /* object-position: center top; /* O 'center center', a seconda di quale parte dell'immagine vuoi mantenere visibile */
    display: block; /* Rimuove eventuale spazio sotto l'immagine */
    border-bottom: 1px solid #eee; /* Opzionale: linea di separazione tra img e caption */
}

.locandina-caption {
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--accent-color); /* Sfondo leggermente diverso per la caption */
    margin-top: auto; /* Spinge la caption in basso se l'immagine è alta e c'è spazio */
}

/* Media Query per schermi più piccoli, dove le locandine andranno una sotto l'altra */
@media (max-width: 680px) { /* Aggiusta questo breakpoint in base al tuo design e al gap */
    .locandina-item {
        flex-basis: 100%; /* Ogni locandina occupa tutta la larghezza disponibile */
        max-width: 100%; /* Permette di occupare tutta la larghezza */
    }
}

/* Stile per il titolo della sezione (opzionale, se non già coperto da .content-section h2) */
#locandine h2 { /* Se hai già uno stile per .content-section h2, questo potrebbe non essere necessario */
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 4vw, 2.2rem); /* Usa clamp per responsive font size */
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem; /* Spazio sotto il titolo della sezione */
    position: relative;
}

#locandine h2::after { /* Sottolineatura decorativa per il titolo della sezione */
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

#informazioni{
    text-align:center;
}

/* --- Sezione Parallasse --- */

.parallax-container {
    /* ----- Proprietà Chiave per il Parallasse ----- */
    background-image: url('http://cricrema.it/wp-content/uploads/2025/06/copertinav2.jpeg'); /* Sostituisci con la tua immagine */
    background-attachment: fixed; /* L'immagine di sfondo è fissa rispetto al viewport */
    background-position: center;  /* Centra l'immagine */
    background-repeat: no-repeat; /* Non ripetere l'immagine */
    background-size: cover;       /* L'immagine copre l'intera area del div, potrebbe essere ritagliata */

    /* ----- Dimensioni del DIV ----- */
    height: 400px; /* O l'altezza che desideri per il tuo div */
    width: 100%;   /* O una larghezza specifica */

    /* ----- Opzionale: per contenuto sovrapposto ----- */
    position: relative; /* Necessario se vuoi posizionare contenuto figlio in modo assoluto */
    display: flex; /* Esempio per centrare contenuto figlio */
    align-items: center;
    justify-content: center;
}

/* Opzionale: Stile per il contenuto dentro il div parallax */
.parallax-content {
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Sfondo semi-trasparente per leggibilità */
    padding: 20px;
    border-radius: 5px;
}

.parallax-content h2 {
    font-size: 2.5em;
    margin: 0;
}