/* Stili specifici per il componente Hero */
.hero {
    height: 650px; /* Altezza fissa per il banner come su dbagroup.it */
    max-height: 650px;
    position: relative;
    margin-top: 0;
    padding-top: 80px;
    overflow: hidden;
}

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

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 58, 104, 0.7), rgba(0, 58, 104, 0.9));
    z-index: 1;
}

.carousel-item .container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: #ffffff;
    margin-left: 30px;
    padding-top: 60px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* Stili per i controlli del carosello */
.carousel-control-prev,
.carousel-control-next {
    z-index: 5;
    width: 5%;
}

.carousel-indicators {
    z-index: 5;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background-size: 50%;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    margin: 0 6px;
}

.carousel-indicators .active {
    background-color: #ffffff;
}

/* Aggiunta di un'animazione fade migliorata */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 600px; /* Leggermente più piccolo su mobile ma sempre con altezza fissa */
    }
    
    .carousel-item {
        text-align: center;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }
    
    .hero-content {
        margin-left: 0;
    }
}