* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f4ef;
    color: #1f1f1f;
}

.cabecalho {
    width: 100%;
    padding: 18px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(245, 244, 239, 0.95);
    border-bottom: 1px solid #ddd7c8;
}

.logo {
    font-weight: bold;
    color: #2b2b2b;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.logo img {
    height: 4rem;
    width: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu a {
    text-decoration: none;
    color: #4f4f4f;
    font-size: 15px;
    transition: 0.3s;
}

.menu a:hover {
    color: #355c4b;
}

#abrir-login {
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    color: #ffffff;
    background: #355c4b;
    cursor: pointer;
    transition: 0.3s;
}

#abrir-login:hover {
    background: #2b4a3c;
}

/* Adicione isso ao container/botão que envolve os spans */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px; /* Define o espaço exato entre as três linhas */
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

/* O seu código original, intacto */
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #355c4b;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span + span {
    margin-top: 6px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu {
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

@media (max-width: 768px) {
    .cabecalho {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo img {
        height: 2.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        background: rgba(245, 244, 239, 0.98);
        border-radius: 0 0 12px 12px;
    }

    .menu.active {
        max-height: 360px;
        opacity: 1;
        padding: 12px 16px 16px;
    }

    .menu a {
        display: block;
        width: 100%;
        padding: 14px 0;
        font-size: 14px;
        color: #355c4b;
        border-bottom: 1px solid rgba(53, 92, 75, 0.14);
    }

    .menu a:last-child {
        border-bottom: none;
    }

    #abrir-login {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 14px;
        margin-top: 4px;
    }
}
