/* === CONFIGURAÇÕES GLOBAIS E VARIÁVEIS === */
:root {
    --dark-blue: #6e353c;
    --yellow: #b98271;
    --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;}

/* === HEADER (LOGO E MENU) === */
header {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
}

header > a {
    display: block;
    margin-bottom: 1.5rem;
}

header > a img {
    max-height: 120px; /* Ajuste a altura da logo conforme necessário */
    width: auto;
}

.nav-bar {
    width: 100%;
    background-color: var(--dark-blue);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    color: var(--yellow);
}

/* Botão Toggle Mobile (Escondido no Desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Menu Mobile (Gaveta Lateral) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px; /* Começa fora da tela */
    width: 280px;
    height: 100%;
    background-color: var(--dark-blue);
    z-index: 2000;
    transition: right 0.3s ease;
    padding-top: 1rem;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}
.mobile-nav.active { right: 0; }

.mobile-nav-header { text-align: right; padding: 0 1rem; }
.mobile-nav-close { background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-list li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-list li a:hover { background-color: rgba(255,255,255,0.1); color: var(--yellow); }

/* Overlay Escuro */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}
.mobile-nav-overlay.active { display: block; }

/* Responsividade do Menu */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* Esconde menu desktop */
    .mobile-menu-toggle { display: block; } /* Mostra botão mobile */
    .nav-container {
        justify-content: flex-end; /* Alinha botão à direita */
        padding-right: 1rem;
    }
}

/* === 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; }
.intro-section .container {
    max-width: 800px;
    display: flex;
    align-items: center;
}
.intro-content{ width: 70%; color: #FFF; padding: 10px; margin: 0 0 0 -5px; background-image: url("../../uploads/back_texto_home.png"); box-sizing: border-box; border-radius: 0 20px 20px 0;}
.intro-imagem{width: 30%; margin: 0;}
.intro-imagem img{max-width: 100%; height: auto; display: block;}
.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-section .container { flex-direction: column; }
    .intro-content, .intro-imagem { width: 100%; }
    .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 espa�amento interno ao texto */
    padding-top: 0; /* Remove o padding de cima para controlar o espa�o com a imagem */
    margin-top: 1rem; /* Adiciona espa�o 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 espa�o abaixo do nome */
}

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

/* Estilos para a seção de clientes */
.clientes-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #FFF;
    background-color: var(--dark-blue);
    padding: 10px;
}

.clientes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.cliente-item {
    width: 250px; /* Tamanho base da logo */
    transition: transform 0.3s;
}

.cliente-item:hover {
    transform: scale(1.05);
}

/* Estilos para o carrossel de soluções */
.solucoes-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #FFF;
    background-color: var(--dark-blue);
    padding: 10px;
}

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

.solucao-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #f2f2f2;
}

.solucao-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.solucao-nome {
    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-image: url('../../uploads/paralax.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 6rem 0; 
    text-align: center; 
}
.footer-title-bar h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    color: var(--dark-blue);
    background-color: #ffffffc0;
    padding: 10px;
 }
.footer-main { background-color: #f2f2f2; color: #000; padding: 3rem 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 2rem; }

.footer-col-info { flex: 1; }
.footer-col-map { flex: 1; }
.footer-col-form { flex: 1; }
.footer-col-map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }

.footer-logo-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: 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;
}

.site-footer .social-icons a[aria-label="WhatsApp"] {
    width: auto;
    height: auto;
    background-color: transparent;
    color: #000;
    border-radius: 0;
    font-size: 1rem;
}
.site-footer .social-icons a[aria-label="WhatsApp"] i {
    color: #25D366;
    margin-right: 5px;
    font-size: 1.4rem;
}

.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); }
.copyright{ display: block; width: 100%; text-align: center; }
/* 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; }
.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(2, 1fr); /* 2 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;
    }
}

/* === PÁGINA DE DETALHE DA SOLUÇÃO (BANNER FULL) === */
.solucao-banner {
    width: 100%;
    height: 40vh; /* Altura do banner */
    position: relative;
    overflow: hidden;
}
.solucao-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.solucao-title-box {
    background-color: var(--dark-blue);
    color: #fff;
    padding: 2rem 3rem;
    margin: -80px auto 0; /* Sobrepõe o banner e centraliza */
    position: relative;
    z-index: 10;
    display: table;
    max-width: 80%;
    text-align: center;
}
.solucao-title-box h2 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .solucao-banner { height: 40vh; }
    .solucao-title-box { display: block; width: auto; margin-top: -40px; padding: 1.5rem; }
    .solucao-title-box h2 { font-size: 1.5rem; }
}
/* 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);
}
