.slide-default {
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1;
}

.carousel-item {
    height: 90vh;
    min-height: 300px;
    background: no-repeat center center scroll;
    background-size: cover;
}

.img-slide {
    width: 100%;
    height: 100%;
    object-fit: cover; /* A imagem cobrirá o slide sem distorcer */
}
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.carousel-caption h5 {
    font-size: 3em;
}

.carousel-caption p {
    font-size: 1em;
}

/* Ajuste do tamanho da fonte em telas médias (tablets) */
@media (max-width: 992px) {
    .carousel-caption h5 {
        font-size: 2.5em;
    }

    .carousel-caption p {
        font-size: 1em;
    }
    .carousel-item {
        height: 70vh;
    }
}

/* Ajuste do tamanho da fonte em telas pequenas (smartphones) */
@media (max-width: 768px) {
    .carousel-caption {
        width: 50%;
    }
    .carousel-caption h5 {
        font-size: 1.8em;
    }

    .carousel-caption p {
        font-size: 0.9em;
    }

    .carousel-item {
        height: 60vh;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        width: 60%;
    }

    .carousel-caption h5 {
        font-size: 1.5em;
    }

    .carousel-caption p {
        font-size: 0.8em;
    }

    .carousel-item {
        height: 50vh;
    }
}
