.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    display: flex;
    align-items: center;
}

.navbar a:not(.ui-button) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin: 0 8px;
    font-family: var(--fonte1);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.navbar a.ui-button {
    margin: 0 8px;
}

.navbar a:not(.btn-cta):not(.btn-entrar)::after {
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 0;
    height: 2px;
    background: var(--amarelo);
    content: "";
    transition: width 0.2s ease;
}

.navbar a:not(.btn-cta):not(.btn-entrar):hover::after,
.navbar a.is-active:not(.btn-cta):not(.btn-entrar)::after {
    width: 100%;
}

.btn-cta {
    margin-left: 10px;
}

.btn-entrar {
    margin-right: 0;
}

.navbar .menu-icon {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.navbar .menu-icon span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 0 auto;
    background: #333333;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 980px) {
    .navbar {
        position: static;
    }

    .navbar .menu-icon {
        position: relative;
        z-index: 12;
        display: flex;
    }

    .navbar ul {
        position: absolute;
        z-index: 20;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        width: 100%;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        padding: 10px 16px 14px;
        border-top: 1px solid var(--borda);
        border-bottom: 1px solid var(--borda);
        background: #ffffff;
        box-shadow: 0 18px 28px rgba(0, 0, 0, 0.14);
    }

    .site-header.is-open .navbar ul {
        display: grid;
        gap: 6px;
    }

    .navbar li,
    .navbar a {
        width: 100%;
    }

    .navbar a:not(.ui-button) {
        justify-content: center;
        min-height: 44px;
        margin: 0;
        padding: 0 14px;
        border-radius: 6px;
        color: #000000;
        font-size: 14px;
        background: #f8fafc;
    }

    .navbar a.ui-button {
        width: 100%;
        margin: 0;
    }

    .navbar a:not(.btn-cta):not(.btn-entrar)::after {
        display: none;
    }

    .btn-cta,
    .btn-entrar {
        margin: 0;
        min-height: 46px;
    }

    .site-header.is-open .bar1 {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    .site-header.is-open .bar2 {
        opacity: 0;
    }

    .site-header.is-open .bar3 {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}
