:root {
    --cor-primaria: #5d4a41; 
    --cor-secundaria: #222222; 
    --cor-texto: #333;
    --cor-fundo: #f4f4f4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--cor-texto);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    
}

h1, h2, h3 {
    color: var(--cor-primaria);
}

section {
    background-color: #e4e4e4;
    padding: 60px 0;
}

/* --- Cabeçalho --- */
.header {
    background-color: #1e1e1e; /* Cor mais escura para o header, como na imagem */
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-menu a {
    margin-left: 20px;
    text-decoration: none;
    color: #f4f4f4;
    font-weight: 500;
}
.nav-menu a:hover{
    color: #a54d24;
}
    


/* --- Nova Seção Hero --- */
.hero {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../img/fundo2.jpg'); /* <<< VERIFIQUE SE O NOME DA IMAGEM ESTÁ CORRETO */
    background-size: cover;
    background-position: center;
    padding: 0px 20px;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

/* PAINEL PRINCIPAL SEMITRANSPARENTE - MUDANÇA PRINCIPAL */
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 950px; /* << AJUSTE: Painel mais largo */
    background-color: rgba(30, 30, 30, 0.65); /* Fundo do painel */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; /* Cantos arredondados do painel */
    padding: 50px 40px; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* --- Cartão de Apresentação do Advogado (AGORA SEM FUNDO PRÓPRIO) --- */
.advogado-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 0;
    margin-bottom: 40px;
    max-width: 550px;
}

.foto-principal {
    width: 200px; /* << AJUSTE: Foto menor para corresponder ao modelo */
    height: 200px; /* << AJUSTE: Foto menor para corresponder ao modelo */
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c5a47e;
    flex-shrink: 0;
}

.advogado-info {
    text-align: left;
}

.advogado-nome {
    font-size: 1.5em; /* << AJUSTE: Tamanho da fonte do nome */
    margin: 0 0 5px 0;
    color: #ffffff;
    font-weight: 600;
}

.advogado-experiencia, .advogado-oab {
    font-size: 0.9em; /* << AJUSTE: Tamanho da fonte de suporte */
    color: #e0e0e0;
    margin: 0;
    line-height: 1.4;
}

/* --- Título Principal --- */
.hero-titulo {
    font-size: 3.2em; /* << AJUSTE: Título maior e mais impactante */
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

.titulo-divisor {
    max-width: 500px; /* Define um limite máximo, mas permite que ele diminua */
    width: 80%;       /* Faz com que ele ocupe 80% do espaço disponível */
    height: 3px;
    background-color: #c5a47e;
    border: none;
    margin: 0 auto 25px auto;
}

.hero-descricao {
    font-size: 1.2em; /* << AJUSTE: Descrição um pouco maior */
    max-width: 700px;
    margin: 0 0 40px 0;
    line-height: 1.6;
    opacity: 0.9;
    color: #ffffff;
}

/* --- Botão de CTA Verde --- */
.cta-whatsapp-button {
    background-color: #5d4a41;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-whatsapp-button:hover {
    background-color: #775647;
    transform: translateY(-3px);
}

.cta-whatsapp-button .bi {
    font-size: 1.3em;
}

.contato{
    background-color: #5d4a41;
    color: white;
    padding: 5px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.0em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contato:hover{
    background-color: #916f5f;
    transform: translateY(-3px);
}

/* --- Seção de Serviços --- */
#servicos {
    background-color: var(--cor-fundo);
}
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.servico-card {
    background-color: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.servico-card h3 {
    margin-top: 15px;
}
.icon {
    font-size: 3em;
    color: var(--cor-secundaria);
}
        
/* --- Seção Sobre --- */
.sobre-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.sobre-content img {
    max-width: 250px;
    border-radius: 50%;
}

/* --- Contato --- */
#contato {
    margin-top: 100px;
    background-color: var(--cor-primaria);
    color: white;
}
#contato h2, #contato p {
    color: white;
}

.form-contato {
    max-width: 700px;
    margin: 30px auto 0 auto; 
    display: grid;
    gap: 15px;
}

.form-contato input, .form-contato textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}
.form-contato button {
    background-color: var(--cor-secundaria);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* --- Rodapé --- */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}
        
/* --- Botão Flutuante do WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    z-index: 100;
}

/* Diferencial */
#diferenciais {
    background-color: #f4f4f4;
    padding: 80px 0;
}


.section-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 60px;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
}


.diferencial-card {
    background-color: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.diferencial-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); 
}

.diferencial-icon i {
    font-size: 3em; 
    color: var(--cor-secundaria);
    margin-bottom: 20px;
}

.diferencial-card h3 {
    font-size: 1.3em;
    color: var(--cor-texto);
    margin-bottom: 15px;
}

.diferencial-card p {
    color: #555;
    line-height: 1.6;
}

/* Depoimentos */

#depoimentos {
    background-color: #ffffff; /* Fundo branco para alternar com a seção anterior */
    padding: 80px 0;
}

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.depoimento-card {
    background-color: #f9f9f9; /* Um cinza muito sutil para o card */
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e9e9e9;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Garante que o autor fique sempre embaixo */
}

.depoimento-icone {
    font-size: 2.5em;
    color: var(--cor-primaria); /* Cor do ícone de aspas */
    opacity: 0.5;
    margin-bottom: 20px;
}

.depoimento-texto {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1; /* Faz o texto ocupar o espaço disponível, alinhando os autores */
}

.depoimento-autor {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre a foto e o nome */
}

.depoimento-autor img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover; /* Evita que a foto fique distorcida */
    border: 2px solid var(--cor-primaria);
}

.autor-info h4 {
    margin: 0 0 5px 0;
    color: var(--cor-texto);
    font-size: 1.1em;
}

.autor-info span {
    font-size: 0.9em;
    color: #777;
}


/* --- FAQ --- */
.faq-section {
    
    background-color: #f0f0f0;
    padding: 60px 0;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #333;
}
.faq-item {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-item summary {
    font-size: 1.1em;
    font-weight: 500;
    padding: 20px;
    cursor: pointer;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker,
.faq-item summary::marker {
    display: none;
}
.faq-item summary::after {
    content: '▾';
    font-size: 1.5em;
    color: #555;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: rotate(180deg);
}
.faq-item[open] summary {
    font-weight: 600;
}
.faq-answer {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.6;
}

/* --- Media Queries para Responsividade --- */
@media (max-width: 768px) {
    .hero .container {
        padding: 30px; /* Menos padding em telas menores */
        max-width: 90%; /* Ocupa mais da tela */
    }
    .advogado-card {
        flex-direction: column;
        text-align: center;
        padding: 0;
        gap: 15px;
    }
    .advogado-info {
        text-align: center;
    }
    .hero-titulo {
        font-size: 2.5em;
    }
    .hero-descricao {
        font-size: 1.1em;
    }
    .cta-whatsapp-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .hero-titulo {
        font-size: 2em;
    }
}

/* =================================================================== */
/* ========== CÓDIGO DE RESPONSIVIDADE PARA O SITE INTEIRO ========== */
/* =================================================================== */

/* --- Ajustes para Telas de Tablets e Celulares Maiores (até 768px) --- */
@media (max-width: 768px) {

    /* --- Ajustes Gerais --- */
    .section-title {
        font-size: 2em; /* Reduz o tamanho dos títulos principais */
    }

    .section-subtitle {
        font-size: 1.1em; /* Reduz o tamanho dos subtítulos */
        margin-bottom: 40px;
    }

    section {
        padding: 60px 0; /* Menos espaçamento vertical nas seções */
    }


    /* --- Menu Principal --- */
    .nav-menu a {
        margin-left: 15px; /* Menos espaço entre os itens do menu */
        font-size: 0.9em;
    }


    /* --- Seção Hero --- */
    /* Você já tinha estes, foram apenas refinados */
    .hero .container {
        padding: 30px; 
        max-width: 90%;
    }

    .hero {
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: auto; /* Remove a altura mínima de 90vh no mobile */
}
    .advogado-card {
        flex-direction: column; /* Empilha a foto e as informações */
        text-align: center;
        padding: 0;
        gap: 15px;
    }
    .advogado-info {
        text-align: center; /* Centraliza o texto de info */
    }
    .hero-titulo {
        font-size: 2.2em; /* Reduz o título principal */
        line-height: 1.3;
    }
    .titulo-divisor {
        width: 80%; /* Largura da linha se ajusta à tela */
    }
    .hero-descricao {
        font-size: 1.1em;
    }
    .cta-whatsapp-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    
    /* --- Seção Sobre --- */
    .sobre-content {
        flex-direction: column; /* Empilha a foto e o texto */
        text-align: center;
        gap: 30px;
    }
    .sobre-content img {
        max-width: 200px; /* Reduz o tamanho da foto */
    }


    /* --- Seção de Depoimentos --- */
    .depoimentos-grid {
        /* O grid já é responsivo, mas podemos ajustar o minmax */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .depoimento-card {
        padding: 30px;
    }
}


/* --- Ajustes Finos para Telas de Celulares Pequenos (até 480px) --- */
@media (max-width: 480px) {

    /* --- Ajustes Gerais --- */
    .container {
        padding: 30px 15px; /* Menos espaçamento lateral */
    }

    .section-title {
        font-size: 1.8em;
    }

    .section-subtitle {
        font-size: 1em;
    }


    /* --- Menu Principal --- */
    .nav-menu a {
        margin-left: 10px;
        font-size: 0.8em;
    }

    
    /* --- Seção Hero --- */
    .hero-titulo {
        font-size: 1.9em; /* Título ainda menor */
    }
    .foto-principal {
        width: 150px; /* Foto menor */
        height: 150px;
    }


    /* --- Seção de Serviços --- */
    .servico-card {
        padding: 25px;
    }

    .contato {
        padding: 8px 20px;
        font-size: 0.9em;
    }

    /* --- Rodapé --- */
    .footer p {
        font-size: 0.9em;
    }
}
