/*
|--------------------------------------------------------------------------
| CARROSSEL
|--------------------------------------------------------------------------
*/

.section-carrossel {
    width: 100%;
    overflow: hidden;
    background: #111827;
}


.carrossel {
    position: relative;

    width: 100%;
    height: 480px;

    overflow: hidden;
}


.carrossel-slides {
    position: relative;

    width: 100%;
    height: 100%;
}


.carrossel-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .7s ease,
        visibility .7s ease;
}


.carrossel-slide.ativo {
    opacity: 1;
    visibility: visible;
}


.carrossel-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/*
|--------------------------------------------------------------------------
| GRADIENTE SOBRE A IMAGEM
|--------------------------------------------------------------------------
*/

.carrossel::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, .05),
            rgba(0, 0, 0, .20)
        );
}


/*
|--------------------------------------------------------------------------
| BOTÕES
|--------------------------------------------------------------------------
*/

.carrossel-anterior,
.carrossel-proximo {
    position: absolute;

    top: 50%;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;

    background: rgba(0, 0, 0, .30);

    color: #fff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background .2s ease,
        border-color .2s ease;
}


.carrossel-anterior:hover,
.carrossel-proximo:hover {
    background: rgba(0, 0, 0, .55);

    border-color: rgba(255, 255, 255, .65);
}


.carrossel-anterior {
    left: 20px;
}


.carrossel-proximo {
    right: 20px;
}


/*
|--------------------------------------------------------------------------
| INDICADORES
|--------------------------------------------------------------------------
*/

.carrossel-indicadores {
    position: absolute;

    left: 50%;
    bottom: 20px;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 7px;

    transform: translateX(-50%);
}


.carrossel-indicador {
    width: 8px;
    height: 8px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .55);

    cursor: pointer;

    transition:
        width .2s ease,
        background .2s ease;
}


.carrossel-indicador.ativo {
    width: 24px;

    border-radius: 10px;

    background: #fff;
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .carrossel {
        height: 390px;
    }

}


/*
|--------------------------------------------------------------------------
| CELULAR
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .carrossel {
        height: 280px;
    }


    .carrossel-anterior,
    .carrossel-proximo {
        width: 34px;
        height: 34px;

        font-size: 23px;
    }


    .carrossel-anterior {
        left: 10px;
    }


    .carrossel-proximo {
        right: 10px;
    }


    .carrossel-indicadores {
        bottom: 12px;
    }

}


/*
|--------------------------------------------------------------------------
| CELULAR PEQUENO
|--------------------------------------------------------------------------
*/

@media (max-width: 400px) {

    .carrossel {
        height: 230px;
    }


    .carrossel-anterior,
    .carrossel-proximo {
        width: 30px;
        height: 30px;

        font-size: 20px;
    }

}