.carousel {
    position: relative;
    width: 100%;
    height: 75vh;
    background: url('../../images/background-banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    padding-left: 18%;
}

.carousel__container {
    max-width: 600px;
}

.carousel__titulo {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: var(--font-texto);
}

.carousel__titulo span{
    font-weight: 700;
}

.carousel__subtitulo {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: var(--font-texto);
}

/* Estilo dos botões */
.carousel__container button {
    font-size: 1rem;
    padding: 0.75rem 2.5rem;
    margin-right: 1rem;
    border: 2px solid white;
    background-color: transparent;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.carousel__container button:hover {
    background-color: white;
    color: #007bff;
}

.carousel__titulo, 
.carousel__subtitulo, 
.carousel__container button {
    opacity: 0; /* Começa invisível */
    transform: translateY(50px); /* Começa 50px abaixo */
    animation: surgirDeBaixo 1s ease-out forwards;
}

@keyframes surgirDeBaixo {
    to {
        opacity: 1;
        transform: translateY(0); /* Final na posição normal */
    }
}

/* Setas de navegação (se forem usadas) */
.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0 1rem;
}

.carousel__arrow--left {
    left: 0;
}

.carousel__arrow--right {
    right: 0;
}


@media (max-width:1600px) and (min-width:900px) {
        .carousel{
            height: 70vh;
            padding-left: 15%;
            height: 80vh;
        }
}


@media (max-width:700px) {
    .carousel{
        height: 60vh;
        justify-content: center;
        padding-left: 5%;
    }
    .carousel__titulo {
        font-size: 2rem;
        font-weight: 400;
        margin-bottom: 0.5rem;
    }
    
    .carousel__titulo span{
        font-weight: 700;
    }
    
    .carousel__subtitulo {
        font-size: 3rem;
        font-weight: 500;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
}

@media (max-width:500px) {
    .carousel__subtitulo {
        font-size: 2rem;
    }
}