@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


/* Reset CSS */
*, 
*:after,
*:before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

:root {
    --fonte-primaria: 'Open Sans', sans-serif;
    --cor-primaria: #38b3e5;
    --cor-secundaria: #3d3d3d;
    --cor-terciaria: #1f1f1f;
    --cor-fundo: #ededed;
}

body, a{
    font-size: 100%;
    list-style-type: none;
    background-color: var(--cor-fundo);
    color: var(--cor-secundaria);
    font-family: var(--fonte-primaria);
}


/* TELA DE CARREGAMENTO */
#tela-carregamento {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

body.carregando #tela-carregamento {
    display: flex;
}

body:not(.carregando) #tela-carregamento {
    display: none;
}

/* HEADER */
.cabecalho {
    padding: 0.3% 0% 0.5% 0%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    max-width: 80%;
    margin: 0 auto;
    position: relative;
}

.cabecalho-container-links {
    display: flex;
    justify-content: center;
    margin-right: 2.6%;
    padding-top: 0.1%;
    flex-grow: 1;
}

/* Icone Hamburguer (oculto por padrão em telas grandes) */
.cabecalho-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: 1px solid var(--cor-secundaria);
    padding: 1%;
    border-radius: 10%;
    box-shadow: 0 2px 3px rgba(117, 205, 210, 1);
    opacity: 50%;
    transition: background-color 0.3s, opacity 0.3s;
}
.cabecalho-hamburger:hover {
    background-color: var(--cor-primaria);
    opacity: 100%;
}
  
.cabecalho-hamburger span {
    width: 25px;
    height: 1px;
    background-color: var(--cor-secundaria);
}
  
/* Botao X para sair da NavBar */
.cabecalho-btn-sidebar {
    display: none;
}

#cabecalho-titulo {
    margin-left: 0;
    padding: 0.5% 3% 0.4% 13.2%;
}

.cabecalho-titulo {
    font-size: 32px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.cabecalho-titulo:hover {
    opacity: 75%;
}

.cabecalho-link {
    font-weight: 500;
    font-size: 15px;
    padding: 0px 15px 0px 15px;
    transition: color 0.3s ease;
}

.cabecalho-link:hover {
    color: var(--cor-primaria);
}

.cabecalho-idiomas {
    display: flex;
    position: relative;
    justify-content: flex-end;
}

.cabecalho-idiomas-botao {
    background: none;
    border: none;
    cursor: pointer;
}

.cabecalho-idiomas-img {
    width: 36px;
    height: auto;
}

.cabecalho-idiomas-conteudo {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 10;
    transform: translateX(-50%);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
    width: fit-content;
}

body:not(.carregando) .cabecalho-idiomas-conteudo {
    max-height: 0;
}

.cabecalho-idiomas-conteudo button {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    margin: 0;
    border: 1px solid var(--cor-secundaria);
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.5s ease, box-shadow 0.5s ease, transform 0.3s ease;
    overflow: visible;
}

.cabecalho-idiomas-conteudo button:hover {
    background: linear-gradient(45deg, rgba(56, 179, 229, 0.8), rgba(0, 123, 255, 0.8));
    border: 1px solid transparent;
    box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    z-index: 1000;
}

.cabecalho-idiomas:hover .cabecalho-idiomas-conteudo {
    max-height: 300px;
    padding: 10px 0;
}

/* FOOTER */
.rodape {
    display: flex;
    flex-direction: column;
}

.rodape-container {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.rodape-cartao {
    padding: 10px;
    margin: 1.5% 1% 1.5% 1%;
    text-align: center;
    width: 13%;
}

.rodape-cartao p {
    font-size: 14px;
    color: #3C4858;
    opacity: 70%;
}

#rodape-cartao-email {
    padding: 10px;
    margin-top: 1.5%;
    text-align: center;
}

#rodape-email {
    display: block;
    font-size: 14px;
    color: #3C4858;
    opacity: 70%;
    word-wrap: break-word;
    transition: opacity 0.5s ease;
}

#rodape-email:hover {
    opacity: 50%;
}

.rodape-cartao-icon {
    width: 35px;
}

.rodape-cartao-icon-redes {
    width: 32px;
    border-radius: 50% 50% 50% 50%;
    padding: 2.5%;
    position: relative;
    margin: 2%;
    transition: background-color 0.5s ease;
}

.rodape-cartao-icon-redes:hover{
    background-color: #7ACFD0;
}

.rodape-cartao-titulo {
    font-size: 18px;
    font-weight: 600;
    padding: 1rem 0rem;
}

.rodape-titulo-principal{
    display: flex;
    font-size: 37px;
    font-weight: 600;
    width: 68%;
    margin: 0 auto;
    flex-basis: auto;
    flex-grow: 1;
    flex-shrink: 1;
    align-self: auto;
    padding: 0% 1.5% 0.5% 2.5%;
}

#icon-youtube {
    width: 34px;
}

#icon-instagram {
    width: 36px;
}

@media (max-width: 1600px) {
    .cabecalho {
        max-width: 90%;
    }
    #cabecalho-titulo {
        padding: 0.5% 3% 0.4% 5%;
    }
}

@media (max-width: 1445px) {
    #rodape-cartao-icon-facebook {
        top: 2%;
    }
}

@media (max-width: 1200px) {
    #cabecalho-titulo {
        padding: 0.5% 2.5% 0.4% 2.5%;
    }
    .cabecalho-link {
        padding: 0px 9px 0px 9px;
    }
}

@media (max-width: 1140px) {
    .rodape-cartao {
        width: 22%;
    }
    .rodape-titulo-principal {
        margin: unset;
    }
}

@media (max-width: 1061px) {
    #cabecalho-titulo {
        padding: 0.5% 0.5% 0.4% 1%;
    }
}

@media (max-width: 1024px) {
    /* HEADER */
    .cabecalho {
        justify-content: space-around;
        max-width: unset;
        padding: 2% 0%;
    }
    #cabecalho-titulo {
        padding: 0% 0% 1%;
    }
    .cabecalho-container-links {
        padding: 1%;
        flex-direction: column;
        justify-content: flex-start;
        top: 0;
        left: -100%;
        width: 45%;
        height: 100vh;
        z-index: 1000;
        background-color: var(--cor-fundo);
        position: fixed;
        transition: left 0.4s ease;
        visibility: visible;
    }

    .cabecalho-link {
        padding: 10px 10px 14px 5px;
        display: block;
    }
    
    /* BOTAO DA SIDEBAR */
    .cabecalho-btn-sidebar {
        display: flex;
        justify-content: center;
        align-self: end;
        padding: 14px 16px;
        border-radius: 8%;
        border: 1px solid var(--cor-secundaria);
        align-items: flex-end;
        cursor: pointer;
        margin-bottom: 15px;
        transition: background-color 0.3s, box-shadow 0.3s;
    }

    .cabecalho-btn-sidebar img {
        width: 13px;
    }
    
    .cabecalho-btn-sidebar:hover {
        background-color: #75cdd2;
        box-shadow: 0 4px 12px rgba(117, 205, 210, 1);
    }
    .cabecalho-idiomas {
        margin-left: 40%;
    }
    .cabecalho-hamburger {
        display: flex;
    }
    
    /* AlTERAÇÕES DA CLASSE ACTIVE QUE PERMITE A VISUALIZAÇÃO DA NAVBAR */
    .cabecalho.active .cabecalho-container-links {
        display: flex;
        left: 0;
    }
    .cabecalho:not(.active) .cabecalho-container-links {
        left: -100%; /* Volta para fora da tela quando o cabecalho é fechado */
    }

    /* CAMADA DE OPACIDADE QUE ACOMPANHA NAVBAR */
    .cabecalho-opacidade-bg {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0);
        z-index: 999;
        transition: background-color 0.3s ease, right 0.2s ease;
        visibility: hidden; 
    }
    .cabecalho-opacidade-bg.active{
        background-color: rgba(0, 0, 0, 0.8); 
        visibility: visible; 
        right: 0;
    }
    .cabecalho:not(.active) .cabecalho-opacidade-bg {
        background-color: rgba(0, 0, 0, 0); 
        visibility: hidden; 
        right: -100%;
    }

}

@media (max-width: 769px) {  
    #icon-instagram {
        width: 35px;
    }
}

@media (max-width: 767px) {
    .cabecalho-container-links {
        width: 55%;
    }
    .cabecalho-idiomas {
        margin-left: 20%;
    }
    .cabecalho-hamburger {
        padding: 8px;
    }
    /* RODAPE */
    .rodape {
        margin-top: 10%;
    }
    .rodape-titulo-principal {
        font-size: 27px;
        padding: 0% 1.5% 2% 2.5%;
    }
    .rodape-cartao {
        flex-grow: 1;
        width: unset;
    }
    .rodape-container {
        flex-direction: column;
        align-items: unset;
    }
    .rodape-cartao-icon-redes {
        padding: 0.5%;
        margin: 1%;
        width: 30px;
    }
    #icon-youtube {
        width: 30px;
    }
    #icon-instagram {
        width: 30px;
    }
    .rodape-container-2 {
        display: flex;
    }
    .rodape-titulo-principal {
        justify-content: center;
    }

}

@media (max-width: 628px) {
    .cabecalho-idiomas {
        margin-left: 10%;
    }
    .rodape {
        margin-top: 12%;
    }
}

@media (max-width: 472px) {
    .cabecalho-container-links {
        width: 65%;
    }
    .cabecalho-titulo {
        font-size: 26px;
    }
    .cabecalho-idiomas {
        margin-left: unset;
    }
    .rodape {
        margin-top: 15%;
    }
    .rodape-titulo-principal {
        width: unset;
    }
}

@media (max-width: 386px) {
    .cabecalho-titulo {
        font-size: 21px;
    }
    .cabecalho-container-links {
        width: 75%;
    }
}
