header {
    width: 100%;
    padding: 20px 4%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: 0.5s;
}

header.scroll {
    background-color: #2B4739;
    padding: 5px 4%;
}

header.scroll a,
header.scroll .icon {
    color: #F6EFDD;
}

.icon {
    width: 38px;
    height: 38px;
    transition: color 0.3s ease;
}


.nav-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: auto;
    padding: 10px 0;
}

header ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

header .nav-box ul li {
    display: inline-block;
    margin: 0 30px;
}

header ul li a.link-nav {
    position: relative;
    color: #dcdcdc;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

header ul li a.link-nav::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #F6EFDD;
    transition: width 0.3s ease;
}

header ul li a.link-nav:hover {
    color: #F6EFDD;
}

header ul li a.link-nav:hover::after {
    width: 100%;
}

.button-contato {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.button-nav {
    display: inline-block;
    padding: 10px 24px;
    background-color: #a3ab98;
    color: #F6EFDD;
    font-weight: 500;
    border: 1px solid #bcbcbc;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

.button-nav:hover {
    color: #F6EFDD;
    transform: scale(1.05);
    box-shadow: 0 0 12px #a3ab98;
    text-decoration: none;
}

/*  Menu Responsivo  */
.abrir-menu {
    display: none;
    font-size: 2.4rem;
    color: #F6EFDD;
    cursor: pointer;
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 101;
    transition: transform 0.2s ease, color 0.2s ease;
}

.abrir-menu:hover {
    transform: scale(1.15) rotate(5deg);
    color: #ffffff;
}

.menu-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    backdrop-filter: blur(10px);
    background: rgba(45, 45, 45, 0.85);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 8rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 0 8px;
}

.menu-mobile.aberto {
    transform: translateX(0);
}

.btn-fechar {
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    font-size: 2.4rem;
    color: #F6EFDD;
    cursor: pointer;
    z-index: 102;
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn-fechar:hover {
    transform: scale(1.15) rotate(-5deg);
    color: #ffffff;
}

.menu-mobile nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-mobile nav ul li {
    margin: 3rem 0;
}

.menu-mobile nav ul li a {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    font-size: 1.7rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.menu-mobile nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #F6EFDD;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-mobile nav ul li a:hover {
    color: #F6EFDD;
    transform: scale(1.05);
}

.menu-mobile nav ul li a:hover::after {
    width: 60%;
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay-menu.aberto {
    opacity: 1;
    visibility: visible;
}