* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

:root {
    --primary-color: #0069B3;
    --azul-escuro: #0A446D;
    --vermelho-escuro: #B80000;
    --fonte-padrao: "Inter", sans-serif;
    --fonte-destaque: "IM Fell English SC", sans-serif;
    --corpo-texto: "Poppins", sans-serif;
    --nome-santo: "Imbue", sans-serif;
    font-size: 62.5%;

    --slides: 5;
    --clones: 3;
    --total-slides: calc(var(--slides) + var(--clones));
    --tempo-por-slide: 10s;
    --tempo-animacao-total: calc(var(--total-slides) * var(--tempo-por-slide));
}

.fundo-azul {
    background-image: url("/img/padrao.png");
    background-repeat: repeat;
    background-color: #0069B3;

}

.corpo-pagina {
    background-color: white;
    margin: 3rem 3rem;
    min-height: calc(100vh - 8rem);
    box-shadow: 0 0 15em rgb(0, 0, 0, 0, 1);
}

.topo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.logo-totus {
    width: 15rem;
    height: 15rem;
    margin-right: 5px;

}

.botao-mural {
    width: 15rem;
    background-color: #0A446D;
    font-family: var(--fonte-padrao);
    font-optical-sizing: auto;
    font-weight: 70rem;
    font-style: normal;
    border: none;
    padding: 0.7rem 3rem;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 2rem;
    font-weight: 50rem;
}

.botao-link {
    text-decoration: none;
    color: white;
}

.carrossel {
    width: 80%;
    max-width: 100rem;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border: 1px solid #ccc;
}

.carrossel__interior {
    width: calc(100%*var(--total-slides));
    display: flex;
}

.carrossel__slide {
    flex-shrink: 0;
}

.carrossel__slide img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes slide__automatico {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 8 * var(--total-slides)));
    }
}

.carrossel__interior {
    animation: slide__automatico var(--tempo-animacao-total) infinite linear;
    animation-play-state: running;
}

.carrossel__interior:hover {
    animation-play-state: paused;
}

.texto {
    margin: 2rem 2rem;
}

h2 {
    font-family: var(--fonte-destaque);
    font-size: 5rem;
    text-align: center;
    margin: 2rem auto;
}

p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: justify;
    font-size: 2rem;
    margin: auto 6rem;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-family: var(--fonte-padrao);
    font-weight: 900;
    color: var(--vermelho-escuro);
    font-size: 10rem;
    text-align: center;
}

.mural {
    display: grid;
    margin: auto 3rem;
    margin-top: 1rem 5rem;
    gap: 15rem;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    align-items: center;
}


.mural__retrato img {
    width: 35rem;
}

.mural__retrato h4 {
    text-align: center;
    font-family: var(--nome-santo);
    font-size: 4rem;
}

.mural__retrato--animacao {
    text-decoration: none;
    color: black;
    padding-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.mural__retrato--animacao:hover {
    color: var(--vermelho-escuro);
}

.mural__retrato--animacao::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.3rem;
    background-color: var(--vermelho-escuro);
    width: 0;
    transition: width 0.3s ease;
}

.mural__retrato--animacao:hover::after {
    width: 100%;
}

footer,
footer p {
    margin: 2rem;
    background-color: black;
    color: #333;
    font-family: var(--corpo-texto);
    font-size: 2rem;
    text-align: center;
    padding-top: 1rem;
    padding-block-end: 1rem;
    padding-inline-end: 1rem;
}


@media screen and (max-width: 500px) {

    .fundo-azul {
        background-image: none;
        background-color: white;
    }

    .corpo-pagina {
        margin: 1rem 0.5rem;
        box-shadow: none;
        min-height: 100vh;
    }

    .topo-nav {
        justify-content: center;
        padding: 0.5rem 0;
    }

    .logo-totus {
        width: 8rem;
        height: 8rem;
    }

    .botao-mural {
        width: 10rem;
        padding: 0.5rem 0.5rem;
        font-size: 1.1rem;
    }

    h1 {
        font-size: 3.5rem;
        margin-top: 1rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    p {
        margin: auto 0.5rem;
        font-size: 1.6rem;
    }

    .carrossel {
        width: 95%;
        margin-top: 1rem;
    }

    .mural {
        gap: 1rem;
        grid-template-columns: 1fr;
        margin: 1rem 0;
    }

    .mural__retrato img {
        width: 90%;
        max-width: 25rem;
    }

    .mural__retrato h4 {
        font-size: 2.5rem;
    }

    footer,
    footer p {
        font-size: 1.4rem;
        margin: 0.5rem;
        padding: 0.5rem;
    }
}

@media screen and (max-width: 768px) {

    .corpo-pagina {
        margin: 1.5rem 1rem;
        min-height: calc(100vh - 4rem);
    }

    .topo-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-totus {
        width: 10rem;
        height: 10rem;
        margin-bottom: 1rem;
    }

    .botao-mural {
        width: 12rem;
        padding: 0.7rem 1rem;
        font-size: 1.2rem;
    }

    .carrossel {
        width: 100%;
    }

    h1 {
        font-size: 5rem;
        margin-top: 2rem;
    }

    h2 {
        font-size: 3rem;
    }

    p {
        margin: auto 1rem;
        font-size: 1.8rem;
    }

    .mural {
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        margin: 1rem 1rem;
    }

    .mural__retrato img {
        width: 100%;
        max-width: 18rem;
        display: block;
        margin: 0 auto;
    }

    .mural__retrato h4 {
        font-size: 3rem;
    }

    footer,
    footer p {
        margin: 1rem;
        font-size: 1.6rem;
    }
}