/*
Theme Name: Roselia Furman
Theme URI: https://roseliafurman.rf.gd/
Author: Tom
Description: Versão 36.0.0 (Força Bruta Título). Redução forçada de títulos longos no mobile com !important.
Version: 36.0.0
*/

:root {
    --color-black: #111111;
    --color-graphite: #3f3f3f;
    --color-white: #ffffff;
    --color-gold: #D4AF37;
    --color-gold-hover: #b5952f;
    --color-bg-light: #fcfcfc;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 20px 50px rgba(212, 175, 55, 0.12);
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* =========================================
   1. BASE E RESET GERAL
========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body { 
    width: 100%; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}

body { 
    font-family: var(--font-body); 
    color: var(--color-graphite); 
    background-color: var(--color-white); 
    line-height: 1.7; 
    scroll-behavior: smooth; 
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading); 
    color: var(--color-black); 
    margin-bottom: 1.2rem; 
    font-weight: 700; 
}

a { 
    color: var(--color-gold); 
    text-decoration: none; 
    transition: var(--transition); 
}

ul { 
    list-style: none; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 25px; 
    position: relative; 
}

.section-padding { 
    padding: 100px 0; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 70px; 
}

.section-title h2 { 
    font-size: 2.8rem; 
    text-transform: uppercase; 
    color: var(--color-black); 
    letter-spacing: 1px; 
}

.section-title h2::after { 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 3px; 
    background: var(--color-gold); 
    margin: 20px auto 0; 
    border-radius: 5px; 
}

/* Espaço de segurança para páginas internas não ficarem sob o cabeçalho */
body:not(.home) .site-main { 
    padding-top: 160px; 
    min-height: 70vh; 
}

/* =========================================
   2. BOTÕES
========================================= */
.btn-gold { 
    display: inline-block; 
    background: var(--color-gold); 
    color: var(--color-white) !important; 
    padding: 14px 30px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-size: 13px; 
    font-weight: 700; 
    border-radius: var(--radius-md); 
    transition: var(--transition); 
    text-align: center; 
    border: none; 
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2); 
    cursor: pointer; 
    white-space: nowrap; 
}

.btn-gold:hover { 
    background: var(--color-black); 
    transform: translateY(-3px); 
    box-shadow: 0 12px 25px rgba(0,0,0,0.15); 
}

/* =========================================
   3. CABEÇALHO E NAVEGAÇÃO DESKTOP
========================================= */
.site-header { 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px); 
    padding: 15px 0; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0; 
    z-index: 99999; 
    box-shadow: 0 4px 30px rgba(0,0,0,0.03); 
}

.site-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.site-branding img { 
    max-height: 85px; 
    width: auto; 
}

.main-navigation ul { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

.main-navigation a { 
    color: var(--color-black); 
    text-transform: uppercase; 
    font-size: 13px; 
    font-weight: 600; 
    letter-spacing: 1px; 
}

.main-navigation a:hover { 
    color: var(--color-gold); 
}

/* Removemos qualquer resquício de botão hambúrguer original do WP */
.menu-toggle, button.menu-toggle { 
    display: none !important; 
}

/* =========================================
   4. HOME: BANNER E SOBRE A ADVOGADA
========================================= */
.hero-section { 
    height: 100vh; 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
    display: flex; 
    align-items: center; 
    position: relative; 
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0.55); 
    z-index: 1; 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    text-align: center; 
    width: 100%; 
    color: #fff; 
}

.hero-content h1 { 
    font-size: 4rem; 
    color: #fff; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.hero-content p { 
    font-size: 1.2rem; 
    color: #fff !important; 
    margin-bottom: 35px; 
}

.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

.about-image-wrapper .main-about-img { 
    border-radius: var(--radius-lg); 
    box-shadow: 20px 20px 0px var(--color-gold); 
    width: 100%; 
}

/* =========================================
   5. ÁREAS DE ATUAÇÃO
========================================= */
.areas-bg { 
    background-color: var(--color-bg-light); 
}

.areas-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.area-card { 
    background: #fff; 
    padding: 45px 35px; 
    text-align: center; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-soft); 
    transition: var(--transition); 
    border: 1px solid #f0f0f0; 
}

.area-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--color-gold); 
}

.area-icon { 
    font-size: 40px; 
    color: var(--color-gold); 
    margin-bottom: 20px; 
    display: block; 
}

/* =========================================
   6. EQUIPE (EFEITO BIO HOVER BLINDADO)
========================================= */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 35px; 
    align-items: stretch; 
}

.team-member { 
    text-align: center; 
    background: #fff; 
    padding: 40px 20px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-soft); 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    border: 1px solid #f5f5f5; 
    transition: var(--transition); 
    position: relative;
}

.team-member:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-gold); 
}

.team-member img { 
    width: 180px; 
    height: 180px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 4px solid var(--color-gold); 
    margin: 0 auto 20px; 
}

.team-member .role { 
    color: var(--color-gold); 
    font-size: 14px; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    display: block; 
    margin-bottom: 10px; 
}

/* Indicador Animado "Ver Perfil" */
.hover-indicator { 
    margin-top: auto; 
    padding-top: 15px; 
    font-size: 0.8rem; 
    color: #999; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 800; 
    transition: opacity 0.3s ease, visibility 0.3s ease; 
}

.hover-indicator i { 
    color: var(--color-gold); 
    animation: bounceDown 1.5s infinite; 
    display: inline-block; 
    margin-right: 5px; 
}

@keyframes bounceDown { 
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 
    40% { transform: translateY(5px); } 
}

/* Container da Biografia (Escondido por padrão) */
.team-desc-wrapper { 
    max-height: 0; 
    opacity: 0; 
    overflow: hidden; 
    transition: max-height 0.6s ease-in-out, opacity 0.4s ease-in-out, margin 0.3s, padding 0.3s; 
}

/* Força Bruta para abrir a Biografia no Hover/Click */
.team-member:hover .team-desc-wrapper,
.team-member:active .team-desc-wrapper,
.team-member:focus-within .team-desc-wrapper { 
    max-height: 1500px !important; 
    opacity: 1 !important; 
    margin-top: 15px !important; 
    padding-top: 15px !important; 
    border-top: 1px solid #eee !important; 
}

.team-member:hover .hover-indicator,
.team-member:active .hover-indicator,
.team-member:focus-within .hover-indicator { 
    opacity: 0 !important; 
    visibility: hidden !important; 
    height: 0 !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

/* =========================================
   7. VÍDEO INSTITUCIONAL
========================================= */
.video-wrapper { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    max-width: 900px; 
    margin: 0 auto; 
    border-radius: var(--radius-lg); 
    box-shadow: 20px 20px 0px var(--color-gold); 
    background: #000; 
}

.video-wrapper iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: none; 
}

/* =========================================
   8. A GRELHA UNIVERSAL (GALERIA E PÁGINAS ÚNICAS)
========================================= */
/* Títulos Gerais da Página (Desktop) */
.luxury-gal-header { text-align: center; margin-bottom: 40px; }
.luxury-gal-title, .entry-title { font-size: 2.8rem; font-family: var(--font-heading); color: var(--color-black); text-align: center; margin-bottom: 10px; }
.entry-meta { text-align: center; color: #888; font-size: 0.9rem; margin-bottom: 40px; }

/* 
   Transformamos o container de conteúdo numa "Máquina de Grelha".
*/
.luxury-gal-content, .entry-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px; /* ESPAÇAMENTO DE 30PX ENTRE IMAGENS */
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Por padrão, todo texto e elemento ocupa a linha inteira (100%) */
.luxury-gal-content > *, .entry-content > * {
    flex: 0 0 100%;
    width: 100%;
    text-align: left;
}

.luxury-gal-content > p, .entry-content > p { 
    font-size: 1.15rem; 
    line-height: 1.8; 
    color: #444; 
    margin-bottom: 10px; 
}

/* Se o WP colocar imagens dentro de um Parágrafo (P), o Parágrafo vira uma Grelha! */
.luxury-gal-content > p:has(img), .entry-content > p:has(img), .wp-block-gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
    flex: 0 0 100% !important;
    background: transparent;
    padding: 0 !important;
}

/* 
   MAGIA DAS FOTOS LADO A LADO:
*/
.luxury-gal-content > figure, 
.luxury-gal-content > .wp-block-image, 
.luxury-gal-content > img,
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > img,
.wp-block-gallery .wp-block-image,
.luxury-gal-content > p:has(img) > img,
.entry-content > p:has(img) > img,
.entry-content > p:has(img) > a,
.entry-content > p:has(img) > figure {
    flex: 1 1 calc(50% - 30px) !important; /* METADE DA TELA - ESPAÇO */
    max-width: calc(50% - 15px) !important;
    margin: 0 !important;
    display: block;
}

/* Se as imagens tiverem links em volta */
.entry-content p:has(img) a img { width: 100%; height: auto; }

/* Estilização individual da moldura da foto */
.luxury-gal-content img, .entry-content img {
    width: 100% !important;
    height: auto !important;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: var(--transition);
    display: block;
    object-fit: cover;
}

.luxury-gal-content img:hover, .entry-content img:hover { 
    transform: scale(1.03); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* =========================================
   9. RODAPÉ E WHATSAPP FLUTUANTE
========================================= */
.whatsapp-float { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    width: 60px; 
    height: 60px; 
    background: #25d366; 
    color: #fff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 30px; 
    z-index: 999999; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    transition: transform 0.3s; 
}

.whatsapp-float:hover { 
    transform: scale(1.1); 
    color: #fff; 
}

.site-footer { 
    background: var(--color-black); 
    color: #ccc; 
    padding: 70px 0 30px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
}

.footer-widget h3 { 
    color: var(--color-white); 
    text-transform: uppercase; 
    font-size: 1.1rem; 
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--color-gold); 
    display: inline-block; 
    padding-bottom: 5px; 
}

.footer-widget ul li { 
    margin-bottom: 10px; 
}

.footer-widget a { 
    color: #ccc; 
}

.footer-widget a:hover { 
    color: var(--color-gold); 
}

.footer-bottom { 
    border-top: 1px solid #333; 
    margin-top: 50px; 
    padding-top: 20px; 
    text-align: center; 
    font-size: 13px; 
}

/* =========================================
   10. MOBILE BLINDADO E RESPONSIVO
========================================= */
@media (max-width: 768px) {
    
    .container { 
        padding: 0 25px; 
    }
    
    body:not(.home) .site-main { 
        padding-top: 130px; 
    }

    /* --- CABEÇALHO E BOTÃO TOPO (MOBILE) --- */
    .site-header { 
        padding: 12px 0 0 0; 
        background: #fff; 
    }
    
    .site-header .container { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: space-between; 
        align-items: center; 
    }
    
    .site-branding { 
        order: 1; 
        flex: 0 0 auto; 
    }
    
    .site-branding img { 
        max-height: 48px !important; 
    }
    
    .header-controls { 
        order: 2; 
        margin-left: auto; 
    }
    
    .header-controls .btn-gold { 
        padding: 7px 12px; 
        font-size: 10px; 
    }

    /* --- MENU SCROLL HORIZONTAL (MOBILE) --- */
    .main-navigation {
        order: 3; 
        display: block !important; 
        width: 100vw; 
        margin-left: -25px; 
        background: #fff; 
        border-top: 1px solid #f2f2f2; 
        margin-top: 12px;
        padding: 10px 25px 12px 25px !important; 
        overflow-x: auto; 
        white-space: nowrap; 
        -webkit-overflow-scrolling: touch;
    }
    
    .main-navigation::-webkit-scrollbar { 
        display: none; 
    }
    
    .main-navigation ul { 
        display: inline-flex !important; 
        gap: 22px !important; 
        padding: 0 !important; 
    }

    /* --- SOBRE A ADVOGADA (MOBILE) --- */
    .about-grid { 
        grid-template-columns: 1fr; 
        gap: 35px; 
    }
    
    .about-image-wrapper { 
        padding: 0; 
        width: 100%; 
        text-align: center; 
    }
    
    .about-image-wrapper .main-about-img { 
        box-shadow: 10px 10px 0px var(--color-gold); 
        width: calc(100% - 10px); 
        margin: 0 auto; 
    }
    
    .about-text { 
        text-align: center; 
    }

    /* --- GALERIA E NOTÍCIAS LADO A LADO (MOBILE) --- */
    .luxury-gal-content, .entry-content { 
        gap: 15px !important; 
    }
    
    .luxury-gal-content > p:has(img), .entry-content > p:has(img), .wp-block-gallery {
        gap: 15px !important; 
    }
    
    .luxury-gal-content > figure, 
    .luxury-gal-content > .wp-block-image, 
    .luxury-gal-content > img,
    .entry-content > figure,
    .entry-content > .wp-block-image,
    .entry-content > img,
    .wp-block-gallery .wp-block-image,
    .luxury-gal-content p:has(img) img,
    .entry-content p:has(img) img,
    .entry-content p:has(img) a,
    .entry-content p:has(img) figure {
        flex: 1 1 calc(50% - 15px) !important; 
        max-width: calc(50% - 7.5px) !important;
    }

    /* --- TIPOGRAFIA E AJUSTES DE TÍTULOS (MOBILE FIX) --- */
    .hero-content h1 { 
        font-size: 2.3rem; 
    }
    
    .section-title h2 { 
        font-size: 1.8rem; 
    }
    
    /* FORÇA BRUTA PARA O TÍTULO GIGANTE */
    .luxury-gal-header h1, 
    .luxury-gal-header h2, 
    .entry-header h1, 
    .entry-header h2, 
    .luxury-gal-title, 
    .entry-title { 
        font-size: 1.35rem !important; /* Tamanho reduzido com força bruta */
        line-height: 1.3 !important;
        word-break: break-word !important; /* Quebra forçada da palavra */
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        padding: 0 10px !important; /* Dá um respiro lateral extra */
    }
    
    .video-wrapper { 
        box-shadow: 10px 10px 0px var(--color-gold) !important; 
        width: 100%; 
    }
    
    .whatsapp-float { 
        width: 50px; 
        height: 50px; 
        bottom: 20px; 
        right: 20px; 
        font-size: 25px; 
    }
}