.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--primaria);
    border-bottom: 2px solid var(--secundaria);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 769px) {
    .header-hidden { transform: translateY(0) !important; }
}
@media (max-width: 768px) {
    .header-hidden { transform: translateY(-100%); }
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 15px;
}

.nav-links {
    display: flex;
    height: 100%;
    gap: 0;
    margin: 0 auto;
    align-items: center;
}

.nav-item {
    color: var(--contraste);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
    border-bottom: 4px solid transparent;
}

.nav-item:hover {
    background: var(--secundaria);
}

.nav-item.active {
    border-bottom: 4px solid var(--acentuacao);
}

.user-actions {
    position: absolute;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.login-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0 20px;
    height: 70px;
    transition: background 0.2s;
}

.login-wrapper:hover {
    background: var(--secundaria);
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primaria);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-text {
    font-weight: 700;
    color: var(--contraste);
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        position: static;
    }
    .user-actions {
        position: static;
    }
    .nav-links {
        margin: 0;
        flex: 1;
        justify-content: center;
    }
    .nav-item {
        padding: 0 10px;
        font-size: 0.95rem;
        height: 70px;
    }
    .login-wrapper {
        padding: 0 10px;
        height: 70px;
    }
    .login-text {
        display: none;
    }
}