/* --- Estilização do Header --- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Alterado de #2a0f0f para RGBA com 85% de opacidade */
    background-color: rgba(42, 15, 15, 0.85); 
    
    /* 🔥 O TRUQUE MODERNO: Cria um efeito de desfoque de vidro profissional no fundo */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Suporte para navegadores Safari/iOS */
    
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Sombra um pouco mais marcante para dar profundidade */
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* 1. Esquerda: Marca / Logo */
.logo {
    flex: 1; 
    text-align: left;
    display: flex;
    align-items: center;
}

.header img,
.header .logo-img,
.logo a img {
    height: 50px !important;
    width: auto !important; /* Mantém a proporção exata do novo arquivo 500x200 */
    display: inline-block !important;
    object-fit: contain !important;
}
/* 2. Centro: Menu Desktop */
.menu {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    flex: 2; /* Dá mais espaço para o menu centralizado */
}

/* --- Ajuste de Cores para Header com Fundo Vermelho Escuro --- */
.menu-item a {
    text-decoration: none;
    color: #f1f5f9; /* Texto padrão em Off-White (excelente contraste no vermelho) */
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

/* Mudança da cor do texto no Hover para Dourado Champagne */
.menu-item a:hover {
    color: #ff9a9a; /* Tom dourado elegante que combina perfeitamente com vermelho escuro */
}

/* Criação da linha embaixo do texto */
.menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff; /* Linha também em Dourado Champagne */
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Expansão da linha no Hover */
.menu-item a:hover::after {
    width: 100%;
    left: 0;
}

/* Oculta as redes sociais dentro do menu no modo Desktop */
.mobile-socials-item {
    display: none;
}
/* Estilização da linha de redes sociais dentro do menu mobile */
.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 25px; /* Espaço elegante entre os ícones */
    padding-top: 20px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Divisor sutil no menu */
}

.mobile-socials a {
    color: #cbd5e1; /* Cor cinza claro inicial */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Quando o usuário tocar ou passar o mouse no ícone dentro do menu mobile */
.mobile-socials a:hover {
    color: #ff4d6d; /* Destaque com o vermelho aceso da Focus */
    transform: scale(1.1);
}
/* 3. Direita: Redes Sociais no Desktop */
.header-socials {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex: 1; /* Alinha proporcionalmente à direita */
}

.header-socials a {
    color: #ffffff;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

.header-socials a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Controle do Menu Hambúrguer Oculto */
#menu-toggle {
    display: none;
}

/* Ícone do Hambúrguer (Mobile) */
.hamburger-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1010;
}

.hamburger-label span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Ajustes de Responsividade (Mobile) --- */
@media (max-width: 968px) {
    /* Esconde as redes sociais da direita no mobile */
    .header-socials {
        display: none;
    }

    /* Mostra o botão hambúrguer */
    .hamburger-label {
        display: flex;
    }

    /* Transforma o menu em lista vertical */
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2a0f0f;
        flex-direction: column;
        gap: 0;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }

    .menu-item {
        border-bottom: 1px solid #f1f5f9;
        width: 100%;
    }

    .menu-item a {
        display: block;
        padding: 18px;
    }

    /* Exibe as redes sociais de forma simplificada na última linha do menu mobile */
    .mobile-socials-item {
        display: block;
        padding: 15px;
        background-color: #831826;
    }

    .mobile-socials {
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .mobile-socials a {
        text-decoration: none;
        color: #ffb6b6;
        font-weight: 700;
        font-size: 14px;
    }

    /* Ação de abrir o menu */
    #menu-toggle:checked ~ .menu {
        max-height: 400px; /* Ajustado para caber o bloco de redes sociais também */
    }

    /* Animação do Hambúrguer para "X" */
    #menu-toggle:checked ~ .hamburger-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #menu-toggle:checked ~ .hamburger-label span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ .hamburger-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* --- BOTÃO FLUTUANTE WHATSAPP (Versão Ultra-Blindada) --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde oficial do WhatsApp */
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Fixado acima do header e de tudo */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 🔥 SOLUÇÃO DEFINITIVA PARA O ÍCONE: Caixa isolada que impede esmagamentos do Flexbox global */
.whatsapp-float .whatsapp-icon-inside {
    width: 34px !important;
    height: 34px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23FFF' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5c0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
}

/* Efeito Hover (Ao passar o mouse) */
.whatsapp-float:hover {
    background-color: #1EBE57; /* Um pouco mais escuro */
    transform: translateY(-5px); /* Sobe levemente */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Tooltip (Texto "Fale Conosco" que aparece ao lado) */
.whatsapp-float .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    
    /* Posicionamento */
    position: absolute;
    right: 75px; /* Ajustado para dar um respiro do botão */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Pequena setinha do tooltip */
.whatsapp-float .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px; /* Aponta para o botão */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

/* Mostra o texto ao passar o mouse */
.whatsapp-float:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Ajuste para Celulares (Mobile) */
@media (max-width: 768px) {
    
    .header img,
    .header .logo-img,
    .logo a img {
        height: 42px !important; /* Reduz ligeiramente para não estocar espaço na tela do celular */
        max-height: 42px !important;

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float .whatsapp-icon-inside {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* No celular o tooltip é escondido para não atrapalhar */
    .whatsapp-float .tooltip-text {
        display: none;
    }
    
    }
}
