﻿/* Altezza fissa per il carosello su desktop */
#homeCarousel .carousel-item {
    height: 700px;
    background-color: #000; 
}

/* Gestione immagine come background per mantenere il rapporto d'aspetto */
.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-size: cover;
    opacity:0.9; /* Opzionale: scurisce l'immagine per far risaltare il testo */
}

/* Posizionamento scritte */
.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    width: 100%;
}

    .carousel-caption-custom h1 {
        font-size: 3.5rem;
        font-weight: bold;
    }

/* Responsive: riduciamo l'altezza sui cellulari */
@media (max-width: 1024px) {
    #homeCarousel .carousel-item {
        height: 400px; /* Riduce l'altezza per schermi piccoli */
    }

    .carousel-caption-custom h1 {
        font-size: 2rem; /* Riduce la dimensione del titolo */
    }

    .carousel-caption-custom p {
        font-size: 1rem; /* Riduce la dimensione del sottotitolo */
    }
}
