html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: #f5f0e8;
}

.subtitulo {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d8c4a5;
    font-size: 14px;
}

header {
    min-height: 92vh;
    background: linear-gradient(
        135deg,
        #2e0f18,
        #5a1528,
        #8b3a54
    );
    color: #F5F0E8;
    padding-left: 8%;
    padding-right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

header::after {
    content: "";
    position: absolute;
    right: 35%;
    top: 0;
    width: 400px;
    height: 100%;
    background: radial-gradient(
        rgba(245,240,232,.08),
        transparent 70%
    );
    pointer-events: none;
}

.faixa-destaque {
    background: #5a1528;
    color: #f5f0e8;
    overflow: hidden;
    white-space: nowrap;
    padding: 18px 0;
    margin-top: -2px;
}

.faixa-conteudo {
    display: flex;
    animation: letreiro 45s linear infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: max-content;
}

.faixa-conteudo span {
    white-space: nowrap;
    padding-right: 15px;
    letter-spacing: 2px;
}

@keyframes letreiro {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.logo-mc {
    position: absolute;
    top: 30px;
    left: 8%;
    width: 100px;
    height: auto;
    z-index: 10;
}

nav {
    margin-top: 40px;
    display: flex;
    gap: 35px;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
    opacity: .8;
    letter-spacing: 1px;
}
section {
    padding: 70px 8%;
}

#sobre {
    background: #ffffff;
}
#diferenciais {
    /* 📚 Colocamos o vinho misturado com uma imagem de biblioteca clássica desfocada */
    background: linear-gradient(135deg, rgba(68, 14, 28, 0.95), rgba(99, 32, 50, 0.95)), 
                url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 🚀 Efeito Parallax: a foto se move mais lento que o site, fica chiquérrimo! */
    position: relative;
    padding: 80px 20px;
}

#diferenciais h2 {
    color: #ffffff;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#diferenciais h2::after {
    margin: 15px auto 0;
}

.atuacao-bg {
    position: relative;
    overflow: hidden;
}

.atuacao-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("img/fundo-advocacia.jpg");
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform;
    z-index: 0;
}

.atuacao-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(245,240,232,.93);
    z-index: 1;
}

.atuacao-bg > * {
    position: relative;
    z-index: 2;   
}

#depoimentos {
    background: #ffffff;
}

.sobre-container {
    display: flex;
    align-items: center;
    gap: 90px;
    flex-wrap: wrap;
}

.sobre-foto img {
    width: 380px;
    height: 550px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0,0,0,.15);
    flex: 0 0 380px;
}

.sobre-texto {
    flex: 1;
    max-width: 1000px;
    min-width: 300px;
}

.oab {
    color: #7b2d43;
    font-weight: 600;
    margin-top: 10px;
}

.linha-dourada {
    width: 300px;
    height: 2px;
    background: #d8c4a5;
    margin: 20px 0 25px;
}

.especialidades {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.especialidades span {
    background: #f5f0e8;
    color: #5a1528;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.sobre-texto p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

nav a:hover {
    color: #f5e6d3;
    text-decoration: underline; 
}

.hero-texto {
    max-width: 600px;
}

.hero-imagem {
    transform: translateX(40px);
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.hero-imagem::before {
     content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        transparent,
        rgba(90,21,40,.5)
    );
    z-index: 1;
}

.hero-imagem img {
    width: auto;
    height: 92vh;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: .3s;
    margin-right: 0;
    filter: brightness(.95);
    position: relative;
    z-index: 0;
    max-width: none;
}

.botao-whatsapp {
    display: inline-block;
    padding: 15px 35px;
    background: #f5f0e8;
    color: #5a1528;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: .3s;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.botao-whatsapp:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

h1 {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', serif;
}

.hero-texto p {
    margin-bottom: 20px;
    font-size: 22px;
    line-height: 1.8;
    color: #f5e6d3;
}

footer {
    background-color: #7b2d43;
    color: white;
    text-align: center;
    padding: 20px;
}

.depoimento {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    padding: 30px;
    transition: .3s;
    box-shadow: 0 8px 25px rgba(0,0,0,.04);
}

.depoimento:hover {
    transform: translateY(-4px);
    border-color: #5a1528;
    box-shadow: 0 15px 30px rgba(0,0,0,.08);
}

.lista-depoimentos {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.avaliacao-geral {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    font-size: 18px;
    color: #555;
}

.avaliacao-geral .nota {
    font-size: 36px;
    font-weight: 700;
    color: #202124;
}

.avaliacao-geral .estrelas-geral {
    color: #fbbc04;
    font-size: 22px;
}

.cliente-info{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:15px;
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #f1f3f4;
    color: #5a1528;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.cliente-info h3{
    margin:0;
    font-size:16px;
}

.cliente-info small{
    color:#777;
}

.estrelas{
    color:#fbbc04;
    margin-bottom:15px;
    letter-spacing:2px;
}

.cta-final {
    /* 🤝 Na CTA final, usamos a mesma técnica para dar continuidade */
    background: linear-gradient(135deg, rgba(68, 14, 28, 0.95), rgba(99, 32, 50, 0.95)), 
                url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    color: #f5f0e8;
    text-align: center;
    position: relative;
    overflow: visible; 
    padding: 120px 20px; 
    z-index: 3;
}

.cta-final-conteudo {
    max-width: 800px;
    margin: 0 auto;
}

.cta-subtitulo {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 3px;
    color: rgba(245, 240, 232, 0.7);
    display: block;
    margin-bottom: 20px;
}

.cta-final h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #ffffff;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final p {
    font-family: 'Montserrat', sans-serif;
    max-width: 620px;
    margin: 0 auto 45px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.85);
}

.cta-final .btn-premium {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    background: #f5f0e8;
    color: #440e1c;
    padding: 20px 50px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-final .btn-premium:hover {
    background: transparent;
    color: #f5f0e8;
    border-color: #f5f0e8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cta-final .microcopy {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(245, 240, 232, 0.5);
    display: block;
    margin-top: 25px;
    letter-spacing: 1px;
}

.cta-final::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 20px solid #571929;
    z-index: 4;
    pointer-events: none;
}

#contato {
    border-top: 5px solid #7b2d43;
}
form {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input,textarea {
    display: block;
    width:100%;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #d1d1d1;
    border-radius:  6px;
    box-sizing: border-box;
}
form button {
    background-color: #7b2d43;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}
form button:hover {
    opacity: 0.9;
}

h2 {
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 600;
    color: #5a1528;
    width: fit-content;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #d8c4a5;
    margin-top: 15px;
    border-radius: 10px;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.diferencial {
    background: rgba(255,255,255,.95);
    padding: 35px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    transition: .3s;
}

.diferencial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.20);
}

.numero-card {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #d8c4a5;
    margin-bottom: 15px;
}

.diferencial h3 {
    color: #5a1528;
    font-size: 22px;
    margin-bottom: 15px;
}

.diferencial p {
    color: #666;
    line-height: 1.8;
}

.diferencial ul {
    margin-top: 15px;
    padding-left: 20px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.diferencial ul li {
    margin-bottom: 8px;
}

.atuacao-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}

.atuacao-card {
    background: #ffffff; 
    border: 1px solid #e1dbd2; 
    border-radius: 18px; 
    min-height: 200px; 
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: 0.3s ease;
    box-shadow: 0 8px 25px rgba(90, 21, 40, 0.04);
}

.atuacao-card:hover {
    transform: translateY(-4px);
    border-color: #5a1528; 
    box-shadow: 0 12px 30px rgba(90, 21, 40, 0.08);
}

.atuacao-card h3 {
    color: #5a1528;
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.atuacao-card p, .atuacao-card ul {
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.atuacao-card .icone, .atuacao-card i {
    color: #d8c4a5;
    font-size: 26px;
}

.atuacao-bg {
    position: relative;
    /* Removido o padding-bottom exagerado que criava o espaço vazio bege */
    padding-bottom: 60px !important; 
}

.onda-transicao.topo-onda {
    position: absolute;
    top: -1px; /* 🚀 Força ela a colar no topo da seção, cobrindo a emenda */
    bottom: auto; /* Cancela o bottom antigo */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10; /* Garante que fica na frente do efeito Parallax dos livros */
}

.onda-transicao.topo-onda svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
}

#diferenciais {
    /* 📚 Mantém o seu fundo lindo e idêntico */
    background: linear-gradient(135deg, rgba(68, 14, 28, 0.92), rgba(99, 32, 50, 0.92)), 
                url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    
    /* 1. Removemos o clip-path teimoso */
    clip-path: none; 

    /* 🚀 2. A NOVA TÉCNICA DO SORRISO: Curvando as pontas de cima para dentro */
    /* O primeiro valor controla a curva da esquerda e o segundo a da direita */
    border-top-left-radius: 50% 40px;
    border-top-right-radius: 50% 40px;

    /* 3. Ajustes de posição para morder a seção branca */
    margin-top: -20px; 
    padding-top: 100px; 
    padding-bottom: 80px;
    z-index: 2;
}
.subtitulo-secao {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero-destaque{
    font-size: 28px;
    font-weight: 500;
    color: #d8c4a5;
}

.sobre-destaques {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.sobre-item {
    background: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    color: #5a1528;
}

.rodape-premium {
    background: #f5f0e8;
    color: #440e1c;
    padding: 100px 20px 40px 20px;
    font-family: 'Montserrat', sans-serif;
}

.rodape-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
}

.rodape-infos {
    flex: 1;
    min-width: 320px;
}

.rodape-subtitulo {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    color: #7b2d43;
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

.rodape-infos h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #440e1c;
}

.rodape-descricao {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 40px;
}

.rodape-lista-contatos {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contato-item small {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7b2d43;
    margin-bottom: 5px;
}

.contato-item a {
    color: #440e1c;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.contato-item a:hover {
    color: #7b2d43;
}

.rodape-formulario {
    flex: 1;
    min-width: 320px;
}

.rodape-formulario form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-grupo label {
    font-size: 13px;
    font-weight: 500;
    color: #440e1c;
    letter-spacing: 0.5px;
}

.input-grupo input,
.input-grupo textarea {
    font-family: 'Montserrat', sans-serif;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(68, 14, 28, 0.3);
    padding: 12px 4px;
    font-size: 15px;
    color: #440e1c;
    transition: border-color 0.3s ease;
    outline: none;
}

.input-grupo input:focus,
.input-grupo textarea:focus {
    border-bottom-color: #440e1c;
}

.input-grupo input::placeholder,
.input-grupo textarea::placeholder {
    color: rgba(68, 14, 28, 0.4);
    font-weight: 300;
}

.btn-formulario {
    font-family: 'Montserrat', sans-serif;
    background: #440e1c;
    color: #f5f0e8;
    border: 1px solid transparent;
    padding: 18px 30px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-formulario:hover {
    background: transparent;
    color: #440e1c;
    border-color: #440e1c;
}

.rodape-copyright {
    background: #440e1c;
    margin: 80px -20px -40px -20px;
    padding: 25px 20px;
    text-align: center;
}

.rodape-copyright p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
}


/* ==========================================================================
   MÍDIAS RESPONSIVAS UNIFICADAS (CELULAR) - VERSÃO AJUSTADA FINAL
   ========================================================================== */

@media (max-width: 768px) {
    /* Força o navegador a cortar qualquer vazamento lateral e remove o rebolado */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* --- CONFIGURAÇÕES GERAIS MOBILE --- */
    section {
        padding: 50px 20px !important; /* Margem interna menor e mais segura para telas pequenas */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; 
    }

    h1 {
        font-size: 38px; 
        line-height: 1.2;
    }

    h2 {
        font-size: 32px; 
    }

    /* --- HEADER & HERO --- */
    header {
        flex-direction: column;
        padding: 100px 20px 40px 20px !important; 
        text-align: center;
        justify-content: flex-start;
        align-items: center;
        min-height: auto;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .logo-mc {
        position: static; 
        width: 110px;
        margin: 0 auto 30px auto; 
    }

    .hero-texto {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-texto p {
        font-size: 16px; 
    }

    nav {
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
        margin-bottom: 25px;
        width: 100%;
    }

    nav a {
        font-size: 13px;
    }

    /* --- FOTO PRINCIPAL --- */
    .hero-imagem {
        transform: translateX(0) !important; 
        width: 100%;
        max-width: 400px; 
        height: auto;
        display: block;
        margin: 30px auto 0 auto; 
    }

    .hero-imagem img {
        width: 100%; 
        height: auto; 
        max-width: 100%;
        max-height: none; 
        border-radius: 15px; 
        box-shadow: 0 15px 35px rgba(0,0,0,0.3); 
        filter: brightness(1); 
    }

    .hero-imagem::before {
        display: none; 
    }

    /* --- SEÇÃO SOBRE A ADVOGADA --- */
    .sobre-container {
        gap: 40px;
        justify-content: center;
        width: 100%;
    }

    .sobre-foto img {
        width: 100%;
        max-width: 340px;
        height: auto; 
        flex: none;
    }

    /* --- SEÇÃO ATUAÇÃO E DIFERENCIAIS (GRID) --- */
    .diferenciais-grid, 
    .atuacao-grid {
        grid-template-columns: 1fr !important; /* Transforma a grade em 1 coluna perfeita */
        gap: 25px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .atuacao-bg {
        position: relative;
        padding-bottom: 60px !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .atuacao-card {
        min-height: auto !important; 
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- SEÇÃO DEPOIMENTOS (FLEX CORRIGIDO) --- */
    .lista-depoimentos {
        display: flex !important;
        flex-direction: column !important; /* Força os depoimentos a empilharem verticalmente */
        gap: 25px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .depoimento {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- RODAPÉ & FORMULÁRIO --- */
    .rodape-container {
        gap: 40px;
        width: 100%;
    }

    .rodape-premium {
        padding: 60px 20px 30px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .rodape-formulario, 
    .rodape-infos {
        width: 100% !important;
        min-width: 100% !important;
    }
}