/* Hero Section - Full Screen Responsive */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    min-height: 500px; /* Minimo per schermi molto piccoli */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    font-family: var(--font-heading);
    margin-bottom: 0;
    overflow: hidden;
}

/* Container per le immagini */
.hero-banner,
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden; /* Previene overflow */
}

/* Stile immagini - full screen e centrate */
.hero-banner img,
.hero-slide img {
    width: 100% !important; /* Force full width */
    height: 100% !important; /* Force full height */
    max-width: 100% !important; /* Override Bootstrap */
    object-fit: cover;
    object-position: center; /* Centra l'immagine */
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

/* Overlay scuro per leggibilità testo */
.hero-section::before {
    background-color: rgba(0, 0, 0, 0.5); /* Overlay leggero come da specifiche */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none; /* Permette click attraverso l'overlay */
}

/* Contenuto hero - responsivo */
.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1200px;
    padding: 40px 20px;
    pointer-events: none; /* Il contenuto non cattura eventi mouse */
}

/* Titolo H1 - Responsivo */
.hero-content h1 {
    font-size: clamp(2rem, 5vw, var(--font-size-6xl)); /* Scala fluida tra 32px e 60px */
    font-weight: var(--font-weight-bold);
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px var(--shadow-dark);
    line-height: var(--line-height-normal);
    text-transform: uppercase;
    text-align: center;
}

/* Titolo H2 - Responsivo */
.hero-content h2 {
    font-size: clamp(1.5rem, 3.5vw, var(--font-size-4xl)); /* Scala fluida tra 24px e 36px */
    font-weight: var(--font-weight-bold);
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px var(--shadow-dark);
    line-height: var(--line-height-normal);
    text-transform: capitalize;
}

/* HR - Separatore */
.hero-content hr {
    border: none;
    border-top: 12px solid rgba(243,51,38,1);
    margin: 20px auto 30px auto;
    padding: 0;
    max-width: 100%;
}

/* Paragrafi - Responsivo */
.hero-content p {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, var(--font-size-xl)); /* Scala fluida tra 16px e 20px */
    font-weight: var(--font-weight-normal);
    margin-bottom: 30px;
    line-height: var(--line-height-relaxed);
}

/* === SLIDER FUNCTIONALITY === */
/* Hero Slider per immagini multiple */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Controlli slider */
.hero-slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
    pointer-events: auto; /* I controlli devono essere cliccabili */
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.hero-slider-dot:focus {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.hero-slider-dot.active,
.hero-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* === RESPONSIVE BREAKPOINTS === */

/* Tablet - da 768px a 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content {
        width: 85%;
        padding: 50px 30px;
    }

    .hero-content h1 {
        margin-bottom: 25px;
    }

    .hero-content hr {
        margin: 25px auto 35px auto;
    }
}

/* Desktop - da 992px in su */
@media (min-width: 992px) {
    .hero-content {
        width: 75%;
        max-width: 1200px;
        padding: 60px 40px;
    }

    .hero-content h1 {
        margin-bottom: 30px;
    }

    .hero-content hr {
        margin: 30px auto 40px auto;
    }
}

/* Mobile - fino a 767px */
@media (max-width: 767px) {
    .hero-section {
        min-height: 400px;
        height: 100vh; /* Mantiene full screen anche su mobile */
    }

    .hero-content {
        width: 95%;
        padding: 30px 15px;
    }

    .hero-content h1 {
        margin-bottom: 15px;
    }

    .hero-content h2 {
        margin-bottom: 15px;
    }

    .hero-content hr {
        margin: 15px auto 20px auto;
    }

    .hero-content p {
        margin-bottom: 20px;
    }

    /* Controlli slider più piccoli su mobile */
    .hero-slider-controls {
        bottom: 20px;
        gap: 8px;
    }

    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Mobile molto piccoli - fino a 480px */
@media (max-width: 480px) {
    .hero-section {
        min-height: 350px;
    }

    .hero-content {
        padding: 20px 10px;
    }
}

/* Landscape mode su mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-content h1 {
        margin-bottom: 10px;
    }

    .hero-content h2 {
        margin-bottom: 10px;
    }

    .hero-content hr {
        margin: 10px auto 15px auto;
    }

    .hero-content p {
        margin-bottom: 15px;
    }
}
