/* === CONFIGURAÇÕES GLOBAIS E VARIÁVEIS === */
:root {
    --dark-blue: #000;
    --yellow: #0e4d60;
    --gray: #f8f8f8;
    --text-color: #333;
}
body { font-family: sans-serif; margin: 0; color: var(--text-color); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
.page-section { padding: 2rem 0; }
.clear{ clear: both;}

/* === CABEÇALHO (TOPO E MENU) === */
 /* Container Principal do Cabeçalho */
        header {
            position: relative; /* Necessário para posicionar o logo */
            width: 100%;
            background-color: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        /* --- PARTE SUPERIOR (BUSCA E SOCIAL) --- */
        .top-bar {
            display: flex;
            justify-content: space-between; /* Espalha itens nas pontas */
            align-items: center;
            height: 90px; /* Altura da parte branca antes do menu */
            padding: 15px 0;
            max-width: 1000px;
            margin: 0 auto;
        }

        /* Força as 3 colunas do topo a terem o mesmo tamanho */
        .top-bar > * {
            flex: 1;
        }

        /* Busca */
        .search-box {
            display: flex;
            align-items: center;
            justify-content: flex-start; /* Alinha o formulário à esquerda da coluna */
        }
        .search-box form{
            background: #eee;
            border-radius: 20px; /* Borda arredondada */
            padding: 5px 15px;
            display: flex;
            align-items: center;
            width: 150px;
        }
        .search-box input {
            border: none;
            background: transparent;
            outline: none;
            width: 100%;
            color: #555;
        }
        .search-box i {
            color: #555;
            cursor: pointer;
        }

        /* Redes Sociais */
        .social-icons { display: flex; justify-content: flex-end; }

        .social-icons a {
            text-decoration: none;
            color: #0e4d60;
            font-size: 22px;
            margin-left: 15px;
            transition: color 0.3s;
        }
        .social-icons a:hover { color: #5bbdc0; }

        /* --- LOGÓTIPO CENTRAL (FLUTUANTE) --- */
        .logo-wrapper {
            position: relative; /* Para o z-index e a sobreposição funcionarem */
            padding: 30px 30px 15px 30px;
            z-index: 10; /* Fica por cima da barra verde */
            text-align: center;
            margin-bottom: -15px; /* Puxa a logo para baixo, sobrepondo o menu */
        }

        .logo-wrapper img {
            display: block;
            margin: 0 auto 5px auto;
            width: auto; /* Garante que a imagem não estique além do seu tamanho original */
        }

        /* --- BARRA DE NAVEGAÇÃO (VERDE) --- */
        .nav-bar {
            background-color: #0e4d60; /* Verde Petróleo Escuro */
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .nav-container {
            width: 100%;
            max-width: 1000px;
            display: flex;
            justify-content: center;
        }

        .nav-menu {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
        }

        /* Divide o menu em dois blocos: Esquerda e Direita */
        .menu-left, .menu-right {
            display: flex;
        }

        /* Alinha a esquerda para a direita (perto do logo) */
        .menu-left {
            justify-content: flex-start;
        }

        /* Alinha a direita para a esquerda (perto do logo) */
        .menu-right {
            justify-content: flex-end;
        }

        /* Estilo dos Links */
        .nav-menu li {
            position: relative;
        }

        .nav-menu a {
            text-decoration: none;
            color: white;
            font-weight: 400;
            font-size: 16px;
            padding: 0 20px;
            border-right: 1px solid rgba(255,255,255,0.2);
            display: block;
            line-height: 20px;
        }

        .nav-menu li:last-child a { border-right: none; }
        .nav-menu a:hover { color: #5dbfc8; }

        /* --- DROPDOWN (SUBMENU) --- */
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #0e4d60; /* Azul mais claro */
            min-width: 180px;
            top: 20px; /* Posição abaixo do menu, ajustada para fechar o gap */
            left: 0;
            z-index: 20;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .dropdown-content a {
            color: white;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            text-align: left;
            border-right: none;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .dropdown-content a:hover { background-color: #5dbfc8; color: white; }
        .dropdown:hover .dropdown-content { display: block; }

        /* --- MENU MOBILE --- */
        .mobile-menu-toggle {
            display: none; /* Escondido por padrão */
            background: none;
            border: none;
            color: #0e4d60;
            font-size: 28px;
            cursor: pointer;
            z-index: 999;
        }

        .mobile-nav {
            position: fixed;
            top: 0;
            right: -300px; /* Começa fora da tela */
            width: 280px;
            height: 100%;
            background-color: #0e4d60;
            box-shadow: -2px 0 10px rgba(0,0,0,0.3);
            z-index: 1001;
            transition: right 0.4s ease-in-out;
            padding-top: 60px;
            overflow-y: auto;
        }

        .mobile-nav.active {
            right: 0; /* Puxa para dentro da tela */
        }

        .mobile-nav-header {
            padding: 20px 20px 0 20px; /* Adicionado padding para alinhar */
            text-align: right;
        }

        .mobile-nav-close {
            background: none;
            border: none;
            color: white;
            font-size: 30px;
            cursor: pointer;
        }

        .mobile-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .mobile-nav a {
            display: block;
            padding: 15px 20px;
            color: white;
            text-decoration: none;
            font-size: 16px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            text-transform: uppercase;
        }

        .mobile-nav a:hover {
            background-color: #5bbdc0;
        }

        /* Estilo da busca dentro do menu mobile */
        .mobile-nav .search-box {
            display: flex; /* Garante que a busca apareça no menu mobile */
            padding: 20px; /* Espaçamento interno */
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .mobile-nav .search-box form {
            width: 100%;
            background: transparent; /* Fundo transparente */
            border: 1px solid rgba(255,255,255,0.3);
        }

        .mobile-nav .search-box input {
            color: white;
        }

        .mobile-nav .search-box input::placeholder {
            color: rgba(255,255,255,0.7);
        }

        .mobile-nav .search-box i { color: white; }

        .mobile-nav-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
        }

        .mobile-nav-overlay.active {
            display: block;
        }

        /* --- RESPONSIVIDADE --- */
        @media (max-width: 768px) {
            /* Revertemos a mudança que fixava o header inteiro */
            header { position: relative; }
            body { padding-top: 0; }

            .top-bar { 
                display: block; /* Desativa o flexbox no mobile */
                padding: 15px 20px; 
                position: relative; /* Para posicionar o botão do menu */
                height: auto; /* Altura automática para se ajustar ao conteúdo */
            }
            .search-box, .social-icons { display: none; } /* Esconde busca e ícones sociais */
            .logo-wrapper {
                margin-bottom: 0; 
                padding: 10px 0; 
                margin: 0 auto; /* Centraliza o logo */
                max-width: 75%;
                background: none;

            }
            .nav-bar { display: none; } /* Esconde o menu de desktop */
            .mobile-menu-toggle { 
                display: block; 
                position: fixed; /* Apenas o botão fica fixo */
                top: 25px; /* Distância do topo da tela */
                right: 20px; /* Distância da direita da tela */
                z-index: 999; /* Garante que fique acima de outros elementos */
            }
        }
/* === PAGINA HOME === */
/* TITULO */
.section-title-bar { background-color: var(--dark-blue); color: #fff; padding: 20px 0; text-align: center; text-transform: uppercase; }
.section-title-bar h2 { margin: 0; font-size: 36px; font-weight: 600; }

.title-bar { background-color: var(--yellow); color: #fff; padding: 5px 0; text-align: center; text-transform: uppercase; }
.title-bar h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--dark-blue); }

.parallax-title-bar { padding: 150px 20px; position: relative;background-size: cover; background-position: center center; background-repeat: no-repeat; background-attachment: fixed; }
#projetos-title-section { background-image: url('../../uploads/projetos-parallax-bg.jpg'); }

/* BANNER */
.hero-slider { position: relative; width: 100%; min-height: 250px; background-color: #f0f0f0; }
.hero-slider ,img{ width: 100%;}
.hero-slider .splide__slide { line-height: 0; }
.hero-slider .splide__arrow { background: rgba(10, 29, 58, 0.7); width: 3rem; height: 3rem; }
.hero-slider .splide__arrow svg { fill: #fff; }
.hero-slider .splide__pagination { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero-slider .splide__pagination__page { background: rgba(255, 255, 255, 0.7); width: 12px; height: 12px; margin: 0 6px; opacity: 1; border: 1px solid rgba(0,0,0,0.2); }
.hero-slider .splide__pagination__page.is-active { background: var(--yellow); transform: scale(1.1); border: 1px solid rgba(0,0,0,0.4); }

/* INTRO HOME */
.intro-section { background-color: #FFF; background-image: url('../../uploads/introbg.png'); background-repeat: repeat; }
.intro-section .container {
    max-width: 800px;
}
.intro-content h2 {
    font-weight: 400;
    color: var(--yellow);
    margin-bottom: 1.5rem;
    text-align: center;
}
.intro-text a {
    display: inline-block;
    margin-top: 2rem;
    background-color: var(--dark-blue);
    color: var(--gray);
    padding: 10px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}
.intro-text a:hover { color: var(--yellow); }
.btn-main { background-color: var(--dark-blue); color: #fff; padding: 0.8rem 2rem; text-decoration: none; font-weight: bold; }
@media (max-width: 768px) { .intro-content h2 { font-size: 2rem; } }


/* Estilos para a seção de advogados */
.advogados-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas */
    /* O gap foi removido daqui para juntar as imagens */
}

.advogado-item {
    display: flex;
    flex-direction: column;
}

.advogado-texto {
    padding: 1rem; /* Adiciona espaamento interno ao texto */
    padding-top: 0; /* Remove o padding de cima para controlar o espao com a imagem */
    margin-top: 1rem; /* Adiciona espao entre a imagem e o texto */
}

.advogado-imagem img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.advogado-texto h3 {
    margin-top: 0;
    margin-bottom: 1rem; /* Adiciona espao abaixo do nome */
}

/* Em telas menores, passa para uma coluna */
@media (max-width: 768px) {
    .advogados-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para o carrossel de soluções */
.solucoes-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
}

.solucoes-carousel {
    width: 80%;
    margin: 0 auto;
}

.solucao-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border: 1px solid #000000;
}

.solucao-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Faz a imagem ser quadrada */
    object-fit: cover;
    display: block;
}

.solucao-nome {
    background: #fff;
    color: #333;
    padding: 10px;
    text-align: center;
    font-weight: 400;
    font-size: 14px;
}

@media (max-width: 768px) {
    .solucoes-carousel {
        width: 100%;
    }
}

/* === RODAPÉ (FOOTER) === */
.site-footer { color: #fff; }
.footer-title-bar { background-color: #0c546c; padding: 1rem 0; text-align: center; text-transform: uppercase; }
.footer-title-bar h2 { margin: 0; font-size: 1.5rem; font-weight: 400; padding-top: 20px; }
.footer-main { background-color: #0c546c; color: #fff; padding: 3rem 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 2rem; }

.footer-col-info { flex: 2; }
.footer-col-form { flex: 3; }

.footer-logo-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    max-width: 243px;
    flex-shrink: 0;
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col { flex: 1; min-width: 300px; }

.site-footer .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background-color: #fff;
    color: #0c546c;
    font-size: 1.4rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-footer .social-icons a:hover {
    opacity: 0.8;
}

.contact-info .whatsapp-link, .contact-info .social-icons { margin-bottom: 1rem; }
.contact-info img {
    width: auto; /* Permite que a imagem use sua largura original */
    max-width: 100%; /* Garante que não ultrapasse o contêiner */
    margin-bottom: 1.5rem; /* Adiciona um espaço abaixo da logo */
}
.btn-footer { display: inline-block; background-color: var(--dark-blue); color: #fff; padding: 0.8rem 1.5rem; text-decoration: none; font-weight: bold; border-radius: 5px; margin-top: 1rem; }
.footer-divider { border: none; border-top: 1px solid #ddd; margin: 2rem 0; }
.footer-bottom { background-color: #fff; color: var(--text-color); padding: 1rem 0; font-size: 0.8rem; border-top: 1px solid #eee; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: var(--text-color); }

/* Estilos para o formulário de contato no rodapé */
.contact-form-footer .form-message {
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}
.contact-form-footer .form-message.success { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; }
.contact-form-footer .form-message.error { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }

.contact-form-footer input[type="text"],
.contact-form-footer input[type="email"],
.contact-form-footer input[type="tel"],
.contact-form-footer textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Garante que padding e border não aumentem a largura total */
    background-color: #fff;
    color: #333;
}
.contact-form-footer ::placeholder { color: #666; opacity: 1; }
.contact-form-footer button.btn-main {
    width: auto;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    margin-top: 0; /* Remove a margem superior padrão do btn-main */
    background-color: #555;
    border: 0;
    border-radius: 5px;
}

.footer-seals { display: flex; align-items: center; gap: 1rem; }
.footer-logo-small { max-height: 25px; }
@media (max-width: 768px) {
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .footer-logo-social {
        flex-direction: column;
        align-items: center;
    }
    .footer-address {
        text-align: center;
    }
}

/* === BOTÃO VOLTAR AO TOPO === */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--dark-blue);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    z-index: 1000;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top-btn:hover {
    background-color: var(--yellow);
    color: var(--dark-blue);
}

/* === BOTÃO FLUTUANTE WHATSAPP === */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 90px; /* Posição acima do botão 'voltar ao topo' */
    right: 30px;
    background-color: #25D366; /* Cor do WhatsApp */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 2rem; /* Tamanho do ícone */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


/* ======================================================
   ### ESTILOS PARA PÁGINAS INTERNAS ###
   ====================================================== */
.pagina{ padding: 0;background-color: #fff; }
.pagina .pagina-banner { width: 100%; display: inline-block; z-index: -1; }
.pagina .meio{ line-height: 1.8; font-size: 16px; max-width: 1000px; margin: 0 auto; padding: 20px; background: #FFF; z-index: 2;margin-top: -50px; position: relative; }
.pagina .meio iframe { width: 100%; }

.page-wrapper {
    padding: 30px 20px 40px;
    background-color: #fff;
}
/* ======================================================
   ### ESTILOS PARA PÁGINAS DE DETALHE E BUSCA ###
   ====================================================== */

/* --- PÁGINA DE DETALHE (Solução/Projeto) --- */
.detail-page .container {
    padding: 10px;
}
.detail-image {
    max-width: 40%;
    float: left;
    margin: 0 20px 20px 0;
}
.detail-text {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Responsividade para a página de detalhe em telas menores */
@media (max-width: 768px) {
    .detail-image {
        max-width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }
    .detail-text {
        max-width: 100%;
    }
}

.search-divider {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* NOVO CÓDIGO PARA A GRELHA DE RESULTADOS */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas */
    gap: 2rem;
    margin-top: 2rem;
}

/* NOVO CÓDIGO PARA A GRELHA DE SOLUÇÕES NA PÁGINA INTERNA */
.solucoes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas */
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsividade para as grelhas de soluções e busca */
@media (max-width: 992px) {
    .search-results-grid,
    .solucoes-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-results-grid,
    .solucoes-grid {
        grid-template-columns: 1fr; /* 1 coluna em celulares */
        gap: 1rem;
    }
}
/* g:/Meu Drive/Trabalho/savoyegaray.adv.br/public_html/assets/css/style.css */

.floating-menu {
    position: fixed;
    left: 20px;
    top: 150px; /* Ajuste conforme a altura do seu cabeçalho */
    width: 290px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
}
.floating-menu h5.menu-category-toggle {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1em;
    color: #555;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Espaço para o ícone */
}

/* Ícone de seta para o acordeão */
.floating-menu h5.menu-category-toggle::after {
    content: '▲';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: #888;
    transition: transform 0.3s ease;
}

.floating-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

/* Estilos para a lista de itens quando recolhida (acordeão) */
.floating-menu ul.collapsed {
    display: none;
}

/* Gira a seta quando a lista está recolhida */
.floating-menu h5.menu-category-toggle.collapsed::after {
    transform: translateY(-50%) rotate(180deg);
}


.floating-menu li {
    margin-bottom: 5px;
}

.floating-menu a {
    text-decoration: none;
    color: #666;
    font-size: 12px;
    font-weight: 300;
}

.floating-menu a:hover {
    color: #5dbfc8;
}

/* Destaca o item ativo no menu flutuante */
.floating-menu li.active a {
    color: #5dbfc8;
    font-weight: bold;
}
/* Estilo para o botão de toggle do menu flutuante */
.floating-menu-toggle-btn {
    position: fixed;
    left: 320px; /* Posição inicial, ao lado do menu (290px de largura + 20px de margem + 10px de espaço) */
    top: 150px;
    z-index: 1001;
    background-color: #f8f8f8;
    border: 1px solid #dee2e6;
    color: #555;
    width: 30px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: left 0.4s ease-in-out, background-color 0.3s;
}
.floating-menu-toggle-btn:hover {
    background-color: #e9ecef;
}

/* Quando o menu estiver recolhido */
.floating-menu.collapsed {
    transform: translateX(calc(-100% - 30px)); /* Move o menu para fora da tela */
}
.floating-menu.collapsed ~ .floating-menu-toggle-btn {
    left: 0px; /* Move o botão para a borda da tela */
}

/* Media query para esconder o menu em telas pequenas (ex: celulares) */
@media (max-width: 992px) {
    .floating-menu, .floating-menu-toggle-btn {
        display: none;
    }
}

/* ======================================================
   ### ESTILOS PARA A PÁGINA DE CONTATO ###
   ====================================================== */

.contact-page .container {
    padding: 40px 20px;
    max-width: 800px; /* Container mais estreito para o formulário */
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.recaptcha-group {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}
.form-group-submit {
    text-align: center;
}
.contact-form button {
    background-color: var(--dark-blue);
    color: white;
    padding: 0.8rem 3rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}
.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.form-message.success { color: green; background-color: #e9fde9; }
.form-message.error,
.contact-form-footer .form-message.error { color: red; background-color: #fde9e9; }
.contact-form button:hover {
    background-color: var(--yellow);
    color: var(--dark-blue);
}
