.hero-wrapper {
    /* 1. Occupa l'intera altezza dello schermo */
    height: calc(100vh + 4px); 

    /* 2. Tira su l'intera sezione per posizionarla dietro l'header */
    margin-top: -80px;

    /* 3. Spinge il contenuto interno giù per renderlo visibile sotto l'header */
    padding-top: 80px;

    /* 4. Assicura che il padding non aumenti l'altezza totale (FONDAMENTALE) */
    box-sizing: border-box;

    /* 5. Mantiene il layout flex per distribuire lo spazio tra hero e countdown */
    display: flex;
    flex-direction: column;
}

/* Questa regola rimane invariata ma è importante per il layout */
.hero-container {
    flex-grow: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}


/* ----- TUTTO IL RESTO DEL FILE RIMANE IDENTICO ----- */
/* (countdown-simple, hero-banner, hero-overlay, etc...) */

.countdown-simple {
    flex-shrink: 0;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-container .container {
    z-index: 3;
    position: relative;
    width: 100%;
}

/* Stile per il sottotitolo della hero nelle pagine Big Events */
.hero-event-subtext {
    max-width: 650px; /* Limita la larghezza per una migliore leggibilità */
}

    /* Simplified Countdown Styles */
    .countdown-simple {
        background-color: var(--secondary-color);
        color: white;
    }

    .countdown-simple-item {
        text-align: center;
        padding: 0 15px;
        position: relative;
    }

    .countdown-simple-item:not(:last-child):after {
        content: ":";
        position: absolute;
        right: -5px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .countdown-simple-number {
        font-size: 1.8rem;
        font-weight: 700;
        font-family: "Josefin Sans", sans-serif;
        display: block;
        line-height: 1;
    }

    .countdown-simple-label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.9;
    }

    .emotional-card img {
        aspect-ratio: 5 / 4;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

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

    .emotional-overlay h3 {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .emotional-overlay p {
        font-size: 0.95rem;
    }

    /* Event Details images */
    .event-detail img {
        transition: transform 0.4s ease;
    }

    .event-detail img:hover {
        transform: scale(1.05) rotate(0deg);
    }

    .event-detail p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Event Details images - resized */
    .more-details img {
        height: 100%;
        aspect-ratio: 5 / 4;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .more-details img:first-child {
        transform: rotate(-5deg);
        position: relative;
        z-index: 2;
    }

    .more-details img:last-child {
        transform: rotate(5deg);
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 1;
    }

    /* Animazione per le immagini della sezione Event Details */
    .more-details .col-md-6.position-relative {
        perspective: 1000px;
    }

    .more-details .img-animation-container {
        position: relative;
        width: 100%;
        height: 300px;
    }

    .more-details .img-animation-container img {
        position: absolute;
        transition: all 0.7s ease;
        backface-visibility: hidden;
    }

    .more-details .img-animation-container .img-front {
        transform: rotate(-5deg) translateZ(0);
        z-index: 2;
    }

    .more-details .img-animation-container .img-back {
        transform: rotate(5deg) translateZ(0);
        z-index: 1;
        top: 20px;
        left: 20px;
    }

    .more-details .col-md-6.position-relative:hover .img-front {
        transform: rotate(5deg) translateX(20px) translateY(20px) translateZ(0);
        z-index: 1;
    }

    .more-details .col-md-6.position-relative:hover .img-back {
        transform: rotate(-5deg) translateX(-20px) translateY(-20px) translateZ(0);
        z-index: 2;
    }

    .emotional-compact-section {}

    .em-compact-text {
      width: 100%;
      padding: 12px 20px;
    }

    .em-compact-wrapper {
      width: 100%;
      max-width: 560px;
      min-height: var(--em-min-height);
      max-height: var(--em-max-height);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border-radius: 4px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    }

    .em-compact-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      max-width: 100%;
      max-height: 100%;
      transition: transform 0.35s ease;
    }

    .em-compact-wrapper:hover .em-compact-img {
      transform: scale(1.02);
    }

    /* =================================================================
       FIX RESPONSIVE PER LA SEZIONE "MORE DETAILS"
       ================================================================= */
    @media (max-width: 991.98px) {
        /* Nasconde la seconda immagine (quella dietro) su mobile */
        .more-details .img-animation-container .img-back {
            display: none;
        }

        /* Controlla la dimensione e la forma del contenitore dell'immagine */
        .more-details .img-animation-container {
            height: auto; /* Rimuoviamo l'altezza fissa precedente */
            aspect-ratio: 5 / 4; /* Mantiene una proporzione 5:4 (l'immagine non sarà mai troppo alta o bassa) */
            max-width: 400px;    /* Imposta una larghezza massima per un look pulito su tablet */
            margin: 0 auto 2rem auto; /* Centra il contenitore e aggiunge spazio sotto */
        }

        /* Assicura che l'immagine singola riempia il suo nuovo contenitore proporzionato */
        .more-details .img-animation-container .img-front {
            position: relative !important;
            transform: none !important;
            width: 100%;
            height: 100%;
            max-width: 100%;
            margin: 0;
            left: 0;
            top: 0;
            display: block;
        }
    }