:root {
    --branco: #fff;
    --cinza: #f0f0f0;
    --vermelho: #e62d32;
    --preto: #222222;
}

.preto {
    color: var(--preto) !important;
}

.branco {
    color: var(--branco);
}

.vermelho {
    color: var(--vermelho);
}

.bgVermelho {
    background-color: var(--vermelho);
}

.bgCinza {
    background-color: var(--cinza);
}

.bgBranco {
    background-color: var(--branco);
}

.btnVermelho {
    background-color: var(--vermelho);
    color: var(--branco);
    border-radius: 5px;
    transition: .5s;
}

.btnVermelho:hover {
    background-color: #f84046;
    color: var(--branco);
}

.logoNavBar {
    width: 80px;
    height: auto;
}

.bgBranco .nav-link {
    color: var(--preto) !important;
}

.bgBranco .nav-link:hover {
    color: var(--preto) !important;
}

nav {
    background-color: transparent;
    transition: .5s;
    font-weight: 600;
}

nav .nav-link {
    color: var(--branco);
    font-weight: 600;
    position: relative;
}

nav .nav-link:hover {
    color: var(--branco);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 0%;
    height: 2px;
    background-color: var(--vermelho);
    transition: .5s;
}

.nav-link:hover::before {
    width: 100%;
}


.containerInicio {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%), url(../img/banners/banner_inicio.jpg) no-repeat;
    background-size: cover;
    height: 95dvh;
}

.tituloPrincipal {
    color: var(--branco);
    font-size: 1.5rem;
}

.textoPrincipal {
    color: var(--branco);
}

.containerBannerPiscina {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%), url(../img/imagens/bg_equipe.jpg) no-repeat;
    background-size: cover;
    background-position: top;
    background-attachment: scroll;
    height: 65vh;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.containerWhatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    background: #4fce5d;
    text-decoration: none;
    border-radius: 999px;
    position: fixed;
    bottom: 1.5rem;
    right: .7rem;
    z-index: 99999;
    transition: .5s;
}

.btnWhatsapp {
    color: #fff;
    text-decoration: none;
}

.btnWhatsapp:hover {
    color: #fff;
}

.containerWhatsapp:hover {
    transform: translateY(-10px);
}

.simulaMsg {
    background: #c40f0f !important;
    position: absolute;
    top: 0;
    right: 0;
    color: var(--branco);
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 576px) {

    .tituloPrincipal {
        font-size: 2rem;
    }

    .textoPrincipal {
        font-size: 1rem;
    }

    .containerInicio {
        height: 100vh;
        background-position: center;
    }

    .containerBannerPiscina {
        height: 60vh;
    }

    .btnVermelho {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .logoNavBar {
        width: 60px;
    }

    footer .nav-link {
        font-size: 0.875rem;
        /* Reduz o tamanho da fonte em telas menores */
    }
}

@media (max-width: 320px) {
    .tituloPrincipal {
        font-size: 1.5rem;
    }

    .textoPrincipal {
        font-size: 0.875rem;
    }

    .containerInicio {
        height: 100vh;
        background-position: center;
    }

    .containerBannerPiscina {
        height: 50vh;
    }

    .btnVermelho {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .img-fluid {
        max-width: 100%;
        height: auto;
    }

    .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .gap-2 {
        gap: 0.5rem;
    }
}

/* TIMELINE */
.timeline {
    position: relative;
    margin: 0 auto;
    width: 90%;
}

.timeline::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 3px;
    left: 50%;
    background-color: var(--preto);
    z-index: -1;
}

.timeline ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 50px;
    list-style-type: none;
}

.timeline ul li .content {
    width: 50%;
    padding: 0 20px;
}

.timeline ul li:nth-child(odd) .content {
    padding-left: 0;
}

.timeline ul li:nth-child(odd) .date {
    padding-right: 0;
}

.timeline ul li:nth-child(even) .content {
    padding-right: 0;
}

.timeline ul li:nth-child(even) .date {
    padding-left: 0;
}

.timeline ul li .date {
    width: 50%;
    padding: 0 20px;
    font-weight: normal;
}

.timeline ul li .date h4 {
    float: left;
}

.timeline ul li:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline ul li:nth-child(even) .date h4 {
    float: right;
}

.timeline ul li .content h3 {
    padding: 10px 20px;
    background-color: var(--vermelho);
    color: var(--branco);
    margin-bottom: 0;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 1.5rem;
}

.timeline ul li .content p {
    padding: 10px 20px;
    background-color: var(--cinza);
    margin-top: 0;
    text-align: center;
}

.timeline ul li .date h4 {
    font-size: 1.2rem;
    background-color: var(--cinza);
    text-align: center;
    padding: 5px 10px;
    border-radius: 10px;
}

.point {
    min-width: 20px;
    height: 20px;
    background-color: var(--vermelho);
    border-radius: 100%;
    z-index: 2;
    border: 3px var(--preto) solid;
    position: relative;
    right: 14px;
}

.containerCarouselLT {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: var(--cinza);
}

@media (max-width: 800px) {
    .point {
        min-width: 15px;
        height: 15px;
    }

}

@media (max-width: 650px) {

    .point {
        min-width: 12px;
        height: 12px;
    }

}

@media (max-width: 450px) {

    p {
        padding: 10px !important;
    }
}

/* Adicionando regras para responsividade da linha do tempo */
@media (max-width: 768px) {
    .timeline {
        width: 100%;
        /* Garante que a linha do tempo ocupe toda a largura disponível */
        padding: 0 10px;
        /* Adiciona padding lateral para evitar que o conteúdo encoste nas bordas */
    }

    .timeline ul {
        padding: 0;
        /* Remove padding padrão da lista */
    }

    .timeline ul li {
        flex-direction: column;
        /* Muda a direção para coluna em dispositivos móveis */
        align-items: center;
        /* Alinha os itens ao centro */
        margin-bottom: 30px;
        /* Adiciona espaço entre os itens */
        width: 100%;
        /* Faz com que cada item ocupe 100% da largura */
    }

    .timeline ul li .content,
    .timeline ul li .date {
        width: 100%;
        /* Faz com que o conteúdo e a data ocupem 100% da largura */
        padding: 10px;
        /* Adiciona um padding para melhor espaçamento */
        text-align: center;
        /* Centraliza o texto */
    }

    .timeline ul li .content h3 {
        font-size: 1.5rem;
        /* Ajusta o tamanho do título */
        margin-bottom: 10px;
        /* Adiciona espaço abaixo do título */
    }

    .timeline ul li .content p {
        font-size: 1rem;
        /* Ajusta o tamanho do texto */
        line-height: 1.5;
        /* Melhora a legibilidade do texto */
    }

    .timeline ul li .date {
        display: flex;
        /* Usa flexbox para centralizar */
        justify-content: center;
        /* Centraliza horizontalmente */
        width: 100%;
        /* Garante que a data ocupe 100% da largura */
        margin-top: 5px;
        /* Adiciona espaço acima da data */
    }

    .point {
        display: none;
        /* Oculta o ponto */
    }

    .containerCarouselLT {
        width: 100%;
        /* Garante que o carrossel ocupe toda a largura disponível */
        overflow: hidden;
        /* Evita que o conteúdo transborde */
    }

    .containerCarouselLT .carousel-inner img {
        width: 100%;
        /* Garante que as imagens do carrossel sejam responsivas */
        height: auto;
        /* Mantém a proporção das imagens */
    }

    .timeline ul li:nth-child(even) {
        flex-direction: column;
    }
}