:root {
    --fonte-logo: "Lobster", sans-serif;
    --fonte-textos: "Open Sans", sans-serif;
    --fonte-titulos: "Cormorant", serif;
    --azul-textos: #10284D;
    --fundo-cinza: #F0F2F4;
    --destaque-azul: #0287CF;
    --azul-hover: #409cce;
    --branco: #FFFFFF;
    --cinza-azulado: #788AA5;
}

.cabecalho, .cabecalho ul {
    display: flex;
}

.cabecalho {
    justify-content: space-around;
    align-items: center;
    margin: 2em 0;
}

.cabecalho__logo {
    font-family: var(--fonte-logo);
    font-size: 44px;
    color: var(--azul-textos);
}

.cabecalho__lista {
    list-style: none;
    gap: 20px;
    font-family: var(--fonte-textos);
}

.cabecalho__lista-link {
    font-size: 16px;
    text-decoration: none;
    color: var(--azul-textos);
    transition: color 0.3s ease;
}

.cabecalho__lista-link:hover {
    color: var(--destaque-azul);
}

.cabecalho__lista-div {
    flex-direction: column;
    display: none;
    position: absolute;
    top: 100%;
    left: 66.5%; 
    padding: 1em;
    transform: translateX(-15%);
    background-color: var(--branco);
    gap: .5em;
    z-index: 10;
    min-width: 20em; 
    text-align: left;
}

.cabecalho__lista-div a {
    color: var(--azul-textos);
    transition: color ease 0.3s;
}

.cabecalho__lista-div a:hover {
    color: var(--destaque-azul);
}

#servicos-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1em;
}

#servicos-img {
    display: none;
    width: 18px;
    height: 20px;
    cursor: pointer;
}

/* HAMBURGUER -------------------*/
.cabecalho-menu-hamburguer {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 1%;
    position: relative;
    z-index: 10000;
}
.cabecalho-menu-hamburguer span {
    width: 25px;
    height: 2px;
    background-color: var(--azul-textos);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Transformação no estado "ativo" */
.cabecalho-menu-hamburguer.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
  
.cabecalho-menu-hamburguer.active span:nth-child(2) {
    opacity: 0; /* Oculta o meio */
}
  
.cabecalho-menu-hamburguer.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* BANNER CABECALHO */
.cabecalho__banner {
    background-color: var(--azul-textos);
    font-family: var(--fonte-titulos);
    color: white;
    display: flex;
    justify-content: center;
    padding: 1.5em;
    margin: 0 1.8em 2em;
    font-size: 46px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    /* HEADER */
    .cabecalho__logo {
        font-size: 38px;
    }

    #servicos-link {
        margin-left: 2.2em;
    }

    #servicos-img {
        display: flex;
    }

    .cabecalho__lista-div {
        left: 50%;
        background-color: unset;
        padding: 0em 1em 1em;
        margin-top: .5em;
    }

    .cabecalho__lista a {
        color: var(--branco);
    }

    .cabecalho__lista {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-color: var(--azul-textos);
        padding-top: 5em;
        top: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        margin: 0;
        position: fixed;
        transition: left 0.4s ease;
    }
    .cabecalho li {
        display: block;
        font-size: 18px;
    }

    .cabecalho-menu-hamburguer {
        display: flex;
        margin-left: 0;
        transition: all 0.5s ease;
    }

    .cabecalho-menu-hamburguer.active {
        position: fixed;
        margin-left: 40em;
    }

    .cabecalho.ativo .cabecalho__lista {
        display: flex;
        left: 0;
    }

    .cabecalho.ativo .cabecalho-menu-hamburguer span {
        background-color: var(--destaque-azul);
    }

    .cabecalho:not(.ativo) .cabecalho-menu-hamburguer span {
        background-color: var(--azul-textos);
    }


    .cabecalho:not(.ativo) .cabecalho__lista {
        left: -100%;
    }

    /* APARECE E DESAPARECE A DIV COM CONTEUDO EXTRA */

    #servicos-img.teste .cabecalho__lista-div {
        display: flex;
    }
    
    #servicos-img.teste #valores-link {
        margin-top: 7em;
    }
    
    #servicos-img:not(.teste) .cabecalho__lista-div {
        display: none;
    }
    
    #servicos-img:not(.teste) #valores-link {
        margin-top: unset;
    }

}

@media (max-width: 768px) {
    .cabecalho__lista-div {
        transform: translateX(-70%);
        display: flex;
        left: 100%;
        text-align: center;
    }

    .cabecalho-menu-hamburguer.active {
        margin-left: 33em;
    }

    .cabecalho__banner {
        margin: 0 0 1em;
    }
}

@media (max-width: 620px) {
    .cabecalho-menu-hamburguer.active {
        margin-left: 24em;
    }
}

@media (max-width: 460px) {
    .cabecalho__lista a {
        font-size: 15px;
    }

    .cabecalho__lista-div {
        transform: translateX(-68%);
        padding: 0;
    }

    .cabecalho-menu-hamburguer.active {
        margin-left: 18em;
    }

    .cabecalho__banner {
        padding: 1em;
        font-size: 38px;
    }
}

@media (max-width: 360px) {
    .cabecalho-menu-hamburguer.active {
        margin-left: 15em;
    }
}