@keyframes entrarCabecalho {
    from {
        opacity: 0;
        transform: translate3d(0, -18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.cabeçalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #070707 0%, #111111 58%, #1a1a1a 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid rgba(255, 167, 83, 0.16);
    animation: entrarCabecalho 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
         animation: headerSlideIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;

.cabeçalho::before,
.cabeçalho::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.cabeçalho::before {
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 177, 92, 0.08) 0%, rgba(255, 177, 92, 0) 28%, rgba(255, 177, 92, 0.06) 100%);
}

.cabeçalho::after {
    right: -36px;
    top: -54px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 122, 31, 0.14) 0%, rgba(232, 122, 31, 0) 72%);
}

.cabeçalho > * {
    position: relative;
    z-index: 1;
}

.logo-marca {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: white;
    text-decoration: none;
}

.logo-sigla {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(183, 88, 22, 0.96) 0%, rgba(232, 122, 31, 1) 52%, rgba(255, 177, 92, 0.98) 100%);
    box-shadow: 0 14px 30px rgba(232, 122, 31, 0.22);
    overflow: hidden;
}

.logo-sigla::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.92) 0%, rgba(38, 22, 10, 0.76) 100%);
}

.logo-letra {
    position: relative;
    z-index: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 2.15rem;
    line-height: 1;
    color: #fff6ee;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.logo-letra-m {
    transform: translateX(6px);
}

.logo-letra-b {
    margin-left: -10px;
    color: #ffbe79;
    transform: translateY(6px);
}

.logo-texto {
    display: grid;
    gap: 2px;
}

.logo-texto strong {
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo-texto small {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 214, 168, 0.82);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.nav-links a:hover {
    color: #ffb86f;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 184, 111, 0.18);
    transform: translateY(-2px);
}

.nav-links a.ativo-secao {
    color: #fff5e7;
    background: linear-gradient(135deg, rgba(183, 88, 22, 0.36) 0%, rgba(232, 122, 31, 0.22) 100%);
    border-color: rgba(255, 184, 111, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.menu-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 0 auto;
    background-color: white;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.menu-hamburger.ativo span:nth-child(2) {
    opacity: 0;
}

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

.whatsapp-flutuante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1c8f3c 0%, #25b85a 52%, #4bd07b 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(25, 116, 56, 0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    overflow: hidden;
}

.whatsapp-flutuante::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(77, 208, 123, 0.22);
    animation: entrarCabecalho 0.8s ease both, pulsoWhatsapp 3.8s ease-in-out infinite 1s;
    pointer-events: none;
}

.whatsapp-flutuante:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(25, 116, 56, 0.4);
    filter: saturate(1.04);
}

.whatsapp-flutuante__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
}

.whatsapp-flutuante__icone svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: white;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.whatsapp-flutuante__texto {
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes pulsoWhatsapp {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(77, 208, 123, 0.18);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(77, 208, 123, 0);
    }
}

@media (max-width: 768px) {
    .cabeçalho {
        flex-wrap: wrap;
    }

    .logo-sigla {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .logo-sigla::before {
        border-radius: 16px;
    }

    .logo-letra {
        font-size: 1.85rem;
    }

    .logo-texto strong {
        font-size: 0.92rem;
    }

    .logo-texto small {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .menu-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin: 16px 0 0;
        padding: 16px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        gap: 10px;
    }

    .nav-links.menu-aberto {
        display: flex;
    }

    .whatsapp-flutuante {
        right: 16px;
        bottom: 16px;
        padding-right: 12px;
    
    }

    .whatsapp-flutuante__texto {
        display: none;
    }
}
