/* Estilos para o fundo estilo Martinelli */
body {
    background-color: #0a0a14;
    color: #f0f0f0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    padding-top: 100px; /* Aumentado para evitar sobreposição */
    background-image: url('../images/pattern-bg.png');
    background-size: 400px;
    background-repeat: repeat;
    background-blend-mode: overlay;
    background-position: center;
}

/* Cabeçalho fixo com fundo escuro */
.header {
    background-color: rgba(10, 10, 20, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    top: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 0px 0px 2px #ffffff, 0px 0px 3px #ffffff, 0px 0px 4px #ffffff;
}

.logo-text p {
    font-size: 0.8rem;
    margin: 0;
    color: #ffffff;
}

/* Navegação */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin-left: 20px;
}

.nav-link {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0a0a14;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #f0f0f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

/* Hero Section com logo no canto direito */
.hero {
    position: relative;
    background-color: #0a0a14;
    background-image: url('../images/balanca_justica_banner.jpeg'); /* Imagem da justiça */
    background-blend-mode: overlay;
    background-size: cover; /* Ajustado para cobrir */
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.7) 0%, rgba(10, 10, 20, 0.5) 100%); /* Opacidade reduzida */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
    padding: 0 20px;
    margin-left: 10%;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffd700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Logo posicionada no canto direito */
.logo-name-3d {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 200px;
    z-index: 10;
}

.logo-name-3d img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

/* Landing Hero para páginas internas */
.landing-hero {
    position: relative;
    background-color: #0a0a14;
    background-image: url('../images/balanca_justica_banner.jpeg'); /* Imagem da justiça */
    background-blend-mode: overlay;
    background-size: cover; /* Ajustado para cobrir */
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.7) 0%, rgba(10, 10, 20, 0.5) 100%); /* Opacidade reduzida */
    z-index: 1;
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
    padding: 0 20px;
    margin-left: 10%;
}

.landing-hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffd700;
}

.landing-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Logo posicionada no canto direito para landing pages */
.hero-logo {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 200px;
    z-index: 10;
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

/* Seções com fundo estilo Martinelli */
.section {
    background-color: #0a0a14;
    color: #f0f0f0;
    padding: 60px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-size: 400px;
    background-position: center;
    opacity: 0.05; /* Ajuste a opacidade conforme necessário */
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #ffd700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ffd700;
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #ccc;
}

/* Blocos de conteúdo */
.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.content-block h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #ffd700;
}

p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* Caixa de destaque */
.highlight-box {
    background-color: rgba(255, 215, 0, 0.05);
    border-left: 4px solid #ffd700;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 5px 5px 0;
}

/* CTA Box */
.cta-box {
    background-color: rgba(255, 215, 0, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffd700;
}

/* Botões */
.btn, .talk-to-lawyer, .schedule-button, .email-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none; /* Garante que não haja borda padrão */
}

.btn {
    background-color: #ffd700;
    color: #0a0a14;
}

.btn:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.talk-to-lawyer {
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.talk-to-lawyer i {
    margin-right: 8px;
    font-size: 18px;
}

.talk-to-lawyer:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

.schedule-button {
    background-color: #0056b3;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.schedule-button i {
    margin-right: 8px;
    font-size: 18px;
}

.schedule-button:hover {
    background-color: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.4);
}

.email-contact {
    background-color: #6c757d; /* Cor cinza para diferenciar */
    color: #fff;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

.email-contact i {
    margin-right: 8px;
    font-size: 18px;
}

.email-contact:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}

/* Centralização dos botões no rodapé e CTA */
.cta-box .hero-buttons,
.footer-contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/* Áreas de atuação */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.area-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.area-image {
    height: 200px;
    overflow: hidden;
}

.area-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
    transition: transform 0.3s ease;
}

.area-card:hover .area-image img {
    transform: scale(1.05);
}

.area-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.area-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.area-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.area-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Blog Grid & Videos Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.blog-excerpt {
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    text-align: center;
    overflow: hidden; /* Evita que a imagem estoure */
    border-radius: 10px;
}

.about-image img {
    max-width: 100%;
    height: auto; /* Mantém a proporção */
    display: block; /* Remove espaço extra abaixo da imagem */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.qualification-list {
    margin-top: 20px;
}

.qualification-item {
    display: flex;
    margin-bottom: 15px;
}

.qualification-icon {
    margin-right: 15px;
    color: #ffd700;
    font-size: 1.2rem;
    flex-shrink: 0;
    padding-top: 3px;
}

.qualification-text {
    text-align: justify;
}

/* Footer */
.footer {
    background-color: #0a0a14;
    color: #f0f0f0;
    padding: 60px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-size: 400px;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about {
    grid-column: span 2;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #f0f0f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #ffd700;
    color: #0a0a14;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    margin-bottom: 10px;
}

.footer-link a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: #ffd700;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 15px;
}

.footer-contact-icon {
    margin-right: 15px;
    color: #ffd700;
}

.footer-contact-text a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-text a:hover {
    color: #ffd700;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: #f0f0f0;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 992px) {
    .landing-hero-content, .hero-content {
        max-width: 70%;
    }
    
    .hero-logo, .logo-name-3d {
        max-width: 180px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 30px;
        max-width: 400px; /* Limita largura da imagem no Sobre */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px; /* Ajustado para evitar sobreposição */
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: #0a0a14;
        flex-direction: column;
        padding: 20px;
        transition: all 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding-left: 20px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .landing-hero-content, .hero-content {
        max-width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    .landing-hero-title, .hero-title {
        font-size: 2rem;
    }
    
    .hero-logo, .logo-name-3d {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 20px auto;
        text-align: center;
        max-width: 150px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr; /* Garante coluna única em telas menores */
    }

    .about-image {
        max-width: 80%; /* Ajusta tamanho da imagem em telas menores */
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 80px;
    }
    
    .landing-hero-title, .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .content-block h2 {
        font-size: 1.5rem;
    }
    
    .content-block h3 {
        font-size: 1.3rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .talk-to-lawyer, .schedule-button, .email-contact {
        width: 100%;
    }

    .cta-box .hero-buttons {
        flex-direction: column;
    }
}

