.nav-bar {
    padding: 1rem .5rem;
    display: flex;
    justify-content: center;
}

.logo {
    display: block;
    width: 140px;
}

.logo img {
    display: block;
    width: 100%;
    margin: auto;
}

.links {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 25%);
    align-items: center;
    margin-left: 1rem;
    min-width: 500px;
}

.links a {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #bebebe;
    text-align: center;
    text-decoration: none;
    transition: all 0.5s;
    white-space: nowrap;
}

.links a:hover {
    color: white;
}


.links .line {
    --items: 4;
    background-color: var(--azul--claro);
    height: 1px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(1, 2, 0.2, 0.6);
    position: absolute;
    bottom: 15px;
    left: var(--left, calc(100%/var(--items) * (var(--index) - 1)));
    width: var(--width, calc(100% / var(--items)));
    --index: 0;
}

.links a:hover~.line {
    opacity: 1;
}

.links a:nth-of-type(1):hover~.line {
    --index: 1;
}

.links a:nth-of-type(2):hover~.line {
    --index: 2;
}

.links a:nth-of-type(3):hover~.line {
    --index: 3;
}

.links a:nth-of-type(4):hover~.line {
    --index: 4;
}

.botaoAgencia {
    height: fit-content;
    margin: auto 0 auto .8rem;
}

.header__sociais {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.header__sociais--burguer a {
    margin-left: .2rem;
}

@media (max-width: 796px) {  
    .header__sociais {
        display: none;
    }

    .nav-bar {
        display: flex;
        justify-content: space-between;
    }
    
    .logo {
        max-width: 180px;
    }

    .botaoAgencia {
        display: none;
    }
}