/* ==========================================================
   COMPASS PIPA - HOME / CARROSSEL
   CSS exclusivo da página inicial
========================================================== */

/* ==========================================================
   VARIÁVEIS DO CARROSSEL
========================================================== */

:root {

    --carousel-yellow:#e0d214;
    --carousel-blue:#40a0c6;
}

/* ==========================================================
   FUNDO ESPECÍFICO DA HOME
========================================================== */

html,
body {

    overflow-x:hidden;
}

/* ==========================================================
   CARROSSEL
========================================================== */

.carousel {
    width:100%;
    height:100vh;
    margin-top:0;
    overflow:hidden;
    position:relative;
}

/* ==========================================================
   LISTA E ITENS DO CARROSSEL
========================================================== */

.carousel .list {

    width:100%;
    height:100%;
    position:relative;
}

.carousel .list .item {

    width:180px;
    height:250px;
    position:absolute;
    top:80%;
    left:70%;
    transform:translateY(-70%);
    border-radius:20px;
    box-shadow:
    0 25px 50px rgba(0,0,0,.3);
    background-position:center;
    background-size:cover;
    z-index:100;
    transition:1s;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ==========================================================
   SLIDE PRINCIPAL
========================================================== */

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2) {

    top:0;
    left:0;
    transform:translate(0,0);
    width:100%;
    height:100%;
    border-radius:0;
}

/* ==========================================================
   POSIÇÃO DOS PRÓXIMOS SLIDES
========================================================== */

.carousel .list .item:nth-child(3) {

    left:67%;
}

.carousel .list .item:nth-child(4) {

    left:calc(67% + 200px);
}


.carousel .list .item:nth-child(5) {

    left:calc(67% + 400px);
}

.carousel .list .item:nth-child(6) {

    left:calc(67% + 600px);
}

.carousel .list .item:nth-child(n+7) {

    left:calc(67% + 800px);
    opacity:0;
}

/* ==========================================================
   IMAGENS DE FUNDO DOS SLIDES
========================================================== */

.carousel .list .item:nth-child(1) {

    background-image:url("images/foto1.jpg");
}

.carousel .list .item:nth-child(2) {

    background-image:url("images/foto2.jpg");
}

.carousel .list .item:nth-child(3) {

    background-image:url("images/foto3.jpg");
}

.carousel .list .item:nth-child(4) {

    background-image:url("images/foto4.jpg");
}

.carousel .list .item:nth-child(5) {

    background-image:url("images/foto5.jpg");
}

.carousel .list .item:nth-child(6) {

    background-image:url("images/foto6.jpg");
}

/* ==========================================================
   CONTEÚDO DOS SLIDES
========================================================== */


.list .item .content {

    position:absolute;
    top:50%;
    left:100px;
    transform:translateY(-50%);
    width:600px;
    text-align:left;
    color:#fff;
    display:none;
}

/* Mostra o conteúdo do slide ativo */

.list .item:nth-child(2) .content {

    display:block;
}

/* ==========================================================
   TÍTULO PRINCIPAL
========================================================== */

.content .title {

    font-size:100px;
    text-transform:uppercase;
    color:var(--carousel-yellow);
    font-weight:700;
    line-height:1;
    opacity:0;
    animation:
    animate 1s ease-in-out .3s forwards;
}

/* ==========================================================
   SUBTÍTULO
========================================================== */

.content .name {

    font-size:50px;
    text-transform:uppercase;
    font-weight:700;
    line-height:1;
    text-shadow:
    3px 4px 4px rgba(255,255,255,.8);
    opacity:0;
    animation:
    animate 1s ease-in-out .6s forwards;
}

/* ==========================================================
   DESCRIÇÃO
========================================================== */

.content .des {

    margin:10px 0 20px 5px;
    font-size:18px;
    line-height:1.5;
    opacity:0;
    animation:
    animate 1s ease-in-out .9s forwards;
}

/* ==========================================================
   BOTÕES DO SLIDE
========================================================== */

.content .btn {

    margin-left:5px;
    opacity:0;
    animation:
    animate 1s ease-in-out 1.2s forwards;
}

.content .btn button {

    padding:10px 20px;
    border-radius:3px;
    cursor:pointer;
    font-size:16px;
    border:2px solid #fff;
    font-family:inherit;
}

/* Primeiro botão */

.content .btn button:nth-child(1) {

    background:#fff;
    color:#006491;
    margin-right:15px;
}

/* Segundo botão */

.content .btn button:nth-child(2) {

    background:transparent;
    color:var(--carousel-blue);
    transition:.3s;
}

.content .btn button:nth-child(2):hover {

    background:var(--carousel-yellow);
    color:#fff;
    border-color:var(--carousel-blue);
}

/* ==========================================================
   SETAS DO CARROSSEL
========================================================== */

.arrows {

    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    z-index:100;
    display:flex;
    gap:10px;
}

.arrows button {

    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--carousel-yellow);
    color:#fff;
    border:none;
    font-size:20px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.arrows button:hover {

    background:#fff;
    color:#000;
}

/* ==========================================================
   ANIMAÇÃO DOS TEXTOS
========================================================== */

@keyframes animate {

    from {

        opacity:0;
        transform:translateY(100px);
        filter:blur(33px);
    }

    to {

        opacity:1;
        transform:translateY(0);
        filter:blur(0);
    }
}

/* ==========================================================
   BARRA DE TEMPO
========================================================== */

.carousel .timeRunning {

    position:absolute;
    z-index:1000;
    top:0;
    left:0;
    width:0%;
    height:4px;
    background:var(--carousel-yellow);
    animation:
    runningTime 7s linear forwards;
}

@keyframes runningTime {

    from {

        width:0%;
    }

    to {

        width:100%;
    }
}

/* ==========================================================
   RESPONSIVO - HOME MOBILE
========================================================== */

@media(max-width:999px){

    .list .item .content {

        left:50px;
    }

    .content .title,
    .content .name {

        font-size:70px;
    }

    .content .des {

        font-size:16px;
    }
}

/* ==========================================================
   TABLET / CELULAR
========================================================== */

@media(max-width:768px){

    .carousel {

        /*height:calc(100vh - 75px);*/
        height:100vh;
    }

    .list .item .content {

        left:20px;
        width:
        calc(100% - 40px);
        text-align:center;
    }

    .content .title {

        font-size:32px;
        line-height:1.2;
    }

    .content .name {

        font-size:30px;
        line-height:1.2;
    }

    .content .des {

        font-size:14px;
        margin:10px auto;
        max-width:90%;
    }

    .content .btn {

        display:flex;
        justify-content:center;
        margin-left:0;
        margin-top:15px;
    }

    .content .btn button {

        padding:10px 15px;
        font-size:14px;
    }

    /*
       Miniaturas dos próximos slides
    */

    .carousel .list .item {

        width:120px;
        height:180px;
        left:50%;
        transform:
        translateX(-50%)
        translateY(-70%);
    }

    /*
       Oculta barra de tempo no celular
    */

    .carousel .timeRunning {

        display:none;
    }

    /*
       Ajuste das setas
    */

    .arrows {

        bottom:15px;
    }

    .arrows button {

        width:45px;
        height:45px;
        font-size:18px;
    }
}
