/* =========================================================
   ACERVO ACOLHE
   BANNER / CARROSSEL PRINCIPAL
   ========================================================= */


/* =========================================================
   ÁREA DO BANNER
   ========================================================= */

.banner-principal {
    width: 100%;

    padding: 35px 0 10px;

    overflow: hidden;
}


/* =========================================================
   CONTAINER DO CARROSSEL
   ========================================================= */

#livrosprincipais {
    position: relative;

    width: min(1000px, 88%);

    aspect-ratio: 2 / 1;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 20px;

    background-color: var(--azul-claro);

    box-shadow:
        0 10px 28px rgba(23, 59, 87, 0.10);
}


/* =========================================================
   ÁREA DOS SLIDES
   ========================================================= */

#principal {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;
}


/* =========================================================
   SLIDES
   ========================================================= */

#principal a {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    opacity: 0;
    visibility: hidden;

    z-index: 1;

    pointer-events: none;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}


#principal a.slide-ativo {
    opacity: 1;

    visibility: visible;

    z-index: 3;

    pointer-events: auto;
}


/* =========================================================
   IMAGENS
   ========================================================= */

#principal a img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center;
}


/* =========================================================
   SETAS
   ========================================================= */

.seta {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 20;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.88);

    color: var(--azul-escuro);

    font-size: 1rem;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(23, 59, 87, 0.14);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.seta:hover {
    background-color: var(--branco);

    box-shadow:
        0 6px 16px rgba(23, 59, 87, 0.18);

    transform:
        translateY(-50%)
        scale(1.05);
}


.seta.esquerda {
    left: 14px;
}


.seta.direita {
    right: 14px;
}


/* =========================================================
   INDICADORES
   ========================================================= */

.indicadores {
    position: absolute;

    left: 50%;
    bottom: 12px;

    transform: translateX(-50%);

    z-index: 20;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    border-radius: 30px;

    background-color: rgba(255, 255, 255, 0.78);

    backdrop-filter: blur(5px);
}


.indicadores span {
    width: 6px;
    height: 6px;

    display: block;

    border-radius: 50%;

    background-color: #AABBC5;

    cursor: pointer;

    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}


.indicadores span.ativo {
    width: 18px;

    border-radius: 8px;

    background-color: var(--azul-escuro);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .banner-principal {
        padding: 30px 0 10px;
    }


    #livrosprincipais {
        width: 90%;

        aspect-ratio: 2 / 1;

        border-radius: 18px;
    }


    .seta {
        width: 36px;
        height: 36px;

        font-size: 0.95rem;
    }


    .seta.esquerda {
        left: 10px;
    }


    .seta.direita {
        right: 10px;
    }


    .indicadores {
        bottom: 10px;

        padding: 5px 9px;
    }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

    .banner-principal {
        padding: 20px 0 8px;
    }


    #livrosprincipais {
        width: 92%;

        aspect-ratio: 2 / 1;

        border-radius: 15px;
    }


    #principal a img {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }


    .seta {
        width: 31px;
        height: 31px;

        font-size: 0.8rem;
    }


    .seta.esquerda {
        left: 7px;
    }


    .seta.direita {
        right: 7px;
    }


    .indicadores {
        bottom: 7px;

        gap: 5px;

        padding: 5px 8px;
    }


    .indicadores span {
        width: 5px;
        height: 5px;
    }


    .indicadores span.ativo {
        width: 15px;
    }

}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 400px) {

    .banner-principal {
        padding-top: 17px;
    }


    #livrosprincipais {
        width: 93%;

        aspect-ratio: 2 / 1;

        border-radius: 13px;
    }


    .seta {
        width: 28px;
        height: 28px;

        font-size: 0.72rem;
    }


    .seta.esquerda {
        left: 6px;
    }


    .seta.direita {
        right: 6px;
    }

}