/*
    ESTILOS GERAIS E FONTES
*/
:root {
    /* PALETA GLOBAL FIXA */
    --cor-principal: #ffffff; /* Branco Sujo (Usado como cor clara principal) */
    --cor-secundaria: #c08c31; /* Dourado/Bronze (Destaque, Botões, Ícones) */
    --cor-fundo-site: #630505; /* Vinho Escuro/Bordô (Fundo Principal) */
    --cor-texto: #ffffff; /* Amarelo (Texto de Destaque) */
    
    /* FONTES COMBINADAS: Cinzel (Trajan-like) para Títulos, Montserrat para Corpo */
    --fonte-titulo: 'Cinzel', serif; 
    --fonte-corpo: 'Montserrat', sans-serif; 

    /* Cor do WhatsApp */
    --cor-whatsapp: #25D366; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fonte-corpo); 
    font-weight: 300; /* Light para corpo e parágrafos */
    color: var(--cor-texto);
    line-height: 1.6;
    background-color: var(--cor-fundo-site); 
}

h1, h2, h3 {
    font-family: var(--fonte-titulo); 
    font-weight: 700; /* Bold para impacto nos títulos */
    color: var(--cor-principal);
}

a {
    text-decoration: none;
    color: var(--cor-secundaria);
}

/*
    0. ESTILOS BASE PARA ANIMAÇÃO AO SCROLL
*/
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1; 
    transform: translateY(0); 
}

/*
    1. CABEÇALHO ESTÁTICO
*/
#cabecalho-estatico {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--cor-fundo-site); /* Fundo Vinho */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* CORREÇÃO: Altura fixa */
    padding: 0 5%; 
    min-height: 90px; 
}

.logo-img { 
    height: 70px; 
    max-width: 280px; 
    object-fit: contain; 
    vertical-align: middle; 
}

#cabecalho-estatico nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

#cabecalho-estatico nav a {
    color: var(--cor-principal);
    font-weight: 300; /* Light */
    font-family: var(--fonte-corpo); 
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
}

#cabecalho-estatico nav a:hover {
    color: var(--cor-secundaria); 
    border-bottom: 2px solid var(--cor-secundaria);
}

.area-advogado a i {
    font-size: 1.5em;
    color: var(--cor-principal);
}

.area-advogado a:hover i {
    color: var(--cor-secundaria);
}

/*
    2. CARROSSEL PRINCIPAL (HOME - Card Horizontal Arredondado)
*/
#carrossel-principal {
    position: relative;
    height: 60vh; 
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 0 5%; 
    margin-bottom: 40px;
    overflow: hidden; 
}

.carrossel-item {
    width: 100%;
    max-width: 1200px; 
    height: 100%;
    position: relative;
    border-radius: 15px; 
    overflow: hidden;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; 
}

/* APLICA ESTILO TANTO À IMAGEM QUANTO AO VÍDEO */
.carrossel-item img,
.carrossel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    position: absolute;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 7, 8, 0.8); /* Overlay Near-Black */
    z-index: 2;
}

.conteudo-principal {
    position: relative;
    z-index: 3; 
    text-align: center; 
    color: white; 
    max-width: 90%;
    padding: 20px; 
}

/* Aplicação das Animações de Surgimento no Carrossel (Visível no carregamento) */
.conteudo-principal h1 {
    font-size: 2.0em;
    font-family: var(--fonte-titulo); 
    margin-bottom: 15px;
    color: white;
    font-weight: 700; 
    text-transform: uppercase;
    animation: fadeInSlideUp 1s ease-out forwards;
    opacity: 0; 
    animation-delay: 0.5s; 
}

.conteudo-principal p {
    font-size: 1.5em;
    font-family: var(--fonte-corpo); 
    margin-bottom: 30px;
    font-weight: 300; /* Light */
    animation: fadeInSlideUp 1s ease-out forwards;
    opacity: 0; 
    animation-delay: 1s; 
}

.btn-principal {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 700; /* Bold */
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px; 
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1; 

    background-color: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    box-shadow: 
        0 6px 10px rgba(0, 0, 0, 0.2), 
        inset 0 1px 0 rgba(255, 255, 255, 0.7); 

    color: #FFFFFF; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); 

    animation: fadeInSlideUp 1s ease-out forwards;
    opacity: 0; 
    animation-delay: 1.5s; 
}

.btn-principal:hover {
    background-color: rgba(255, 255, 255, 0.35); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-principal:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(0, 0, 0, 0.2); 
}

/*
    3. ÁREAS DE ATUAÇÃO (NOVO LAYOUT LIMPO E ANIMAÇÃO HOVER)
*/
#nossa-especialidade {
    --bg-section: var(--cor-fundo-site); 
    
    padding: 60px 5%;
    text-align: center;
    background-color: var(--bg-section);
}

#nossa-especialidade h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    font-family: var(--fonte-titulo); 
    color: #ffffff;
    background-color: var(--bg-section);
    font-weight: 700; 
    text-transform: uppercase;
}

/* Novo Contêiner para os Itens - Layout em Grid */
.carrossel-especialidades {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    justify-content: center;
}

.area-item {
    background-color: transparent; 
    padding: 20px;
    border-radius: 10px; 
    box-shadow: none; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
    border: 1px solid rgba(255, 255, 255, 0); 
    height: auto; 
    min-height: 250px; 
}

/* REMOÇÃO DO EFEITO BRILHOSO/CARTÃO NO HOVER */
.area-item:hover {
    /* REMOVIDO: box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), 0 0 10px var(--cor-secundaria); */
    /* REMOVIDO: transform: translateY(-10px); */
    box-shadow: 0 0 0 transparent; /* Garante que não haja sombra */
    transform: none; /* Garante que não haja deslocamento */
}

/* Animação de Surgimento (Mantida) */
.area-item.active {
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: ease-out;
}

.area-item:nth-child(1).active { transition-delay: 0.1s; }
.area-item:nth-child(2).active { transition-delay: 0.3s; }
.area-item:nth-child(3).active { transition-delay: 0.5s; }
.area-item:nth-child(4).active { transition-delay: 0.7s; }


.icone-area {
    --icon-bg: var(--cor-fundo-site); 
    --icon-color: #ffffff; /* ÍCONES BRANCOS */
    
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%; 
    background-color: var(--icon-bg); 
    color: var(--icon-color); 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    transition: all 0.3s ease;
}

/* ANIMAÇÃO HOVER: Aplicar o efeito "pulse" no ícone ao passar o mouse */
.area-item:hover .icone-area {
    transform: scale(1.05); 
    animation: pulse-icon 1.5s infinite; 
}

.area-content {
    padding-top: 10px;
    transition: all 0.5s ease; 
}

/* TÍTULO SEMPRE VISÍVEL POR PADRÃO */
.area-content h3 {
    font-size: 1.0em;
    margin-bottom: 10px;
    font-family: var(--fonte-titulo); 
    font-weight: 700; 
    text-transform: uppercase;
    color: var(--cor-principal); 
    opacity: 1;
    transition: opacity 0.3s;
}

/* PARÁGRAFO E BOTÃO ESCONDIDOS POR PADRÃO */
.area-content p, 
.area-content .btn-detalhes {
    /* Esconde o conteúdo por padrão */
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    margin: 0;
    /* Transição suave para o efeito de surgimento */
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
}

/* REVELAR PARÁGRAFO E BOTÃO NO HOVER */
.area-item:hover .area-content p,
.area-item:hover .area-content .btn-detalhes {
    max-height: 200px; /* Suficiente para o texto aparecer */
    opacity: 1;
    visibility: visible;
}

/* Ajustes de margem específicos quando revelado */
.area-item:hover .area-content p {
    margin-bottom: 20px; 
}

.btn-detalhes {
    color: var(--cor-secundaria); /* Dourado para o link */
    font-weight: 300; 
    border-bottom: 2px solid var(--cor-secundaria);
    transition: color 0.3s, border-bottom-color 0.3s;
    display: inline-block;
}

.btn-detalhes:hover {
    color: var(--cor-principal); 
    border-bottom-color: var(--cor-principal);
}

/* Keyframe para a pulsação do ícone */
@keyframes pulse-icon {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 198, 139, 0.7); 
    }
    70% {
        box-shadow: 0 0 0 15px rgba(192, 140, 49, 0); 
    }
    100% {
        box-shadow: 0 0 0 0 rgba(192, 140, 49, 0);
    }
}

/*
    4. SESSÃO SOBRE NÓS (HOME)
*/
#sobre-nos { /*aqui vc muda a cor do background todo*/
    --bg-sobre-nos: var(--cor-fundo-site);
    display: flex;
    padding: 60px 5%;
    gap: 40px;
    align-items: center;
    background-color: #3f0202;
}

.conteudo-sobre {
    flex: 1;
}

.conteudo-sobre h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-family: var(--fonte-titulo); 
    font-weight: 700; /* Bold */
    text-transform: uppercase;
}

/* Texto "Quem Somos" para Branco */
#sobre-nos p {
    margin-bottom: 30px;
    
    text-align: justify;
    font-weight: 300; /* Light */
    font-family: var(--fonte-corpo); 
    color: #ffffff; 
}

.carrossel-fotos-empresa {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.carrossel-fotos-empresa img {
    width: 100%;
    height: 400px; 
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secundario {
    display: inline-block;
    background-color: transparent;
    color: var(--cor-principal);
    border: 2px solid var(--cor-principal);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 300; /* Light */
    transition: background-color 0.3s, color 0.3s;
}

.btn-secundario:hover {
    background-color: var(--cor-principal);
    color: white;
}

/*
    5. RODAPÉ E FORMULÁRIO (LAYOUT AJUSTADO E CENTRALIZADO)
*/
footer {
    background-color: var(--cor-fundo-site); /* Fundo Vinho */
    color: white;
    padding-top: 50px;
}

/* CONTÊINER DE LARGURA TOTAL PARA O FORMULÁRIO */
.contato-form-completo {
    width: 100%;
    padding: 0 5%;
    margin-bottom: 40px; /* Espaço entre o formulário e as informações abaixo */
}

/* ESTILO DO BLOCO DO FORMULÁRIO (CENTRALIZADO E AJUSTADO) */
.contato-form {
    max-width: 700px; /* Largura máxima ajustada */
    margin: 0 auto; /* Centraliza horizontalmente */
    padding: 30px; 
    background-color: transparent; /* Fundo Removido/Transparente */
    border-radius: 10px;
}

.contato-form h3 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 25px; 
    font-family: var(--fonte-titulo); 
    font-weight: 700; 
    text-transform: uppercase;
    text-align: center; 
}

/* O container-rodape-info agora SÓ CONTÉM AS INFORMAÇÕES E O MAPA */
.container-rodape-info {
    display: flex;
    gap: 5%;
    padding: 0 5% 40px;
}

/* Campos do Formulário (com espaçamento otimizado) */
#formulario-contato input[type="text"],
#formulario-contato input[type="tel"],
#formulario-contato textarea {
    width: 100%;
    padding: 15px; 
    margin-bottom: 20px; 
    border: none;
    border-radius: 5px;
    font-family: var(--fonte-corpo); 
    color:#000000;
}

.campo-linha {
    display: flex;
    gap: 20px; 
}

.campo-linha input {
    flex: 1;
}

#formulario-contato textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background-color: var(--cor-secundaria); 
    color: var(--cor-principal); 
    padding: 18px; 
    margin-top: 5px; 
    border: none;
    border-radius: 5px;
    font-weight: 700; 
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #A0804F;
}

#formulario-contato small {
    display: block;
    margin-top: 15px; 
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--fonte-corpo); 
}

/* Infos e Mapa */
.info-e-mapa {
    display: flex;
    flex: 1; 
    gap: 40px;
    
}

.info-empresa, .google-maps {
    flex: 1; 
}

.info-empresa h4, .google-maps h4 {
    color: white;
        font-size: 1.4em;
    margin-bottom: 15px;
    font-family: var(--fonte-titulo); 
    font-weight: 700; 
    text-transform: uppercase;
}

.info-empresa p i {
    color: var(--cor-secundaria); 
    margin-right: 8px;
}

.info-empresa p {
    font-family: var(--fonte-corpo); 
}

.redes-sociais a {
    color: white;
    font-size: 1.8em;
    margin-right: 15px;
    transition: color 0.3s;
}

.redes-sociais a:hover {
    color: var(--cor-secundaria); 
}

.google-maps iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 5px;
}

.direitos-reservados {
    background-color: #061E34; 
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    font-family: var(--fonte-corpo); 
}

/*
    6. BALÃO DO WHATSAPP (INFERIOR DIREITO E ANIMADO)
*/
.whatsapp-balao {
    position: fixed;
    bottom: 20px;
    right: 20px; 
    left: auto; 
    z-index: 1001; 
}

.whatsapp-balao a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--cor-whatsapp);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    
    /* ANIMAÇÃO DE PULSAÇÃO */
    animation: pulse 1.5s infinite; 
}

.whatsapp-balao a:hover {
    transform: scale(1.1);
    animation: none; 
}

.whatsapp-balao i {
    font-size: 2.2em;
}


/*
    ANIMAÇÕES KEYFRAMES
*/
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); 
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); 
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/*
    RESPONSIVIDADE
*/
@media (max-width: 1200px) {
    .carrossel-especialidades {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 900px) {
    #sobre-nos {
        flex-direction: column;
    }
    .carrossel-fotos-empresa {
        max-width: 100%;
    }
    .container-rodape-info { 
        flex-direction: column;
    }
    .info-e-mapa {
        flex-direction: column; /* Informações e Mapa empilhados */
        gap: 30px;
    }
}

@media (max-width: 768px) {
    #carrossel-principal {
        height: 50vh; 
    }
    .conteudo-principal h1 {
        font-size: 2em;
    }
    .conteudo-principal p {
        font-size: 1.1em;
    }
    .btn-principal {
        padding: 10px 20px;
    }
    .conteudo-sobre h2, #nossa-especialidade h2 {
        font-size: 2em;
    }
    .contato-form { 
        max-width: 90%; /* Ajuste a largura em tablets para usar o espaço disponível */
    }
}

@media (max-width: 600px) {
    .carrossel-especialidades {
        grid-template-columns: 1fr; 
    }
    .campo-linha {
        flex-direction: column;
        gap: 0;
    }
    #cabecalho-estatico {
        padding: 10px 3%;
    }
    .logo-img { /* Ajuste o logo em mobile para não esmagar o cabeçalho */
        height: 50px; 
        max-width: 200px;
    }
    #cabecalho-estatico nav ul {
        gap: 15px;
    }
    .whatsapp-balao {
        right: 15px;
        bottom: 15px;
        transform: scale(0.9);
    }
}