/* ==========================================================================
   VERSÃO DEFINITIVA E CONSOLIDADA
   ========================================================================== */

/* === 1. FUNDAÇÃO: Variáveis, Reset e Estilos Globais === */
:root {
    --cor-primaria: #0a482b;
    --cor-secundaria: #0056b3;
    --cor-texto: #333333;
    --cor-texto-claro: #ffffff;
    --cor-fundo: #ffffff;
    --cor-fundo-secao: #f8f9fa;
    --fonte-principal: 'Poppins', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fonte-principal); color: var(--cor-texto); background-color: var(--cor-fundo); font-size: 16px; line-height: 1.8; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
section { padding: 90px 0; }
h1, h2, h3 { font-weight: 700; }
a { color: var(--cor-secundaria); text-decoration: none; }
a:hover { text-decoration: underline; }

h2.section-title {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.1;
}
h2.section-title span {
    color: var(--cor-primaria);
}

/* === 2. CABEÇALHO (HEADER) === */
.main-header {
    width: 100%; padding: 15px 0; position: fixed;
    top: 0; left: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-imagem { max-height: 80px; }
.logo-texto { text-decoration: none; }
.logo-cargo { display: block; font-size: 0.8rem; font-weight: 500; color: var(--cor-secundaria); text-transform: uppercase; letter-spacing: 2px; margin-bottom: -12px; }
.logo-nome { font-weight: 500; text-transform: uppercase; color: var(--cor-texto); font-size: 1.8rem; }
.logo-nome strong { font-weight: 900; color: var(--cor-primaria); }
.main-nav a { margin-left: 30px; text-decoration: none; color: var(--cor-texto); font-weight: 500; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--cor-primaria); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.cta-header-button {
    background-color: var(--cor-primaria); color: #ffffff;
    padding: 10px 20px; border-radius: 50px; font-weight: 700;
    text-decoration: none; white-space: nowrap; transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 8px;
}
.cta-header-button:hover { background-color: var(--cor-secundaria); transform: scale(1.05); text-decoration: none; color: #ffffff; }
.cta-header-button img { height: 18px; width: auto; filter: brightness(0) invert(1); }
.logo-mobile-menu, .cta-mobile-button, .menu-toggle { display: none; }

/* === 3. SEÇÕES PRINCIPAIS E COMPONENTES === */
/* ... (Todo o conteúdo das seções, botões, slider, etc., permanece o mesmo) ... */
.cta-button { display: inline-block; background-color: var(--cor-primaria); color: #ffffff !important; padding: 15px 35px; border-radius: 50px; font-weight: 700; text-decoration: none !important; text-align: center; border: none; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.15); transition: all 0.3s ease; }
.cta-button:hover { transform: translateY(-3px); background-color: var(--cor-secundaria); box-shadow: 0 12px 25px rgba(0,0,0,0.2); }
.cta-button-outline { display: inline-block; border: 2px solid var(--cor-primaria); color: var(--cor-primaria) !important; padding: 12px 30px; border-radius: 50px; font-weight: 700; text-decoration: none !important; transition: all 0.3s ease; }
.cta-button-outline:hover { background-color: var(--cor-primaria); color: #ffffff !important; text-decoration: none; }
@keyframes kenburns-zoom { 0% { transform: scale(1.0); } 100% { transform: scale(1.1); } }
.hero-slider { position: relative; height: 95vh; width: 100%; overflow: hidden; color: var(--cor-texto-claro); background-color: #222; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: flex-start; text-align: left; opacity: 0; visibility: hidden; transition: opacity 1.5s ease-in-out; z-index: 1; animation-fill-mode: forwards; }
.slide.active { opacity: 1; visibility: visible; z-index: 2; animation: kenburns-zoom 15s ease-out forwards; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.0) 100%); }
.slide-content { position: relative; z-index: 3; max-width: 800px; padding-left: 10%; padding-right: 20px; }
.slide-content h1 { font-size: 4rem; font-weight: 900; line-height: 1.2; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.slide-content p { font-size: 1.5rem; margin: 20px 0 40px; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); max-width: 600px; }
.slide.slide-clean { background-image: none !important; background-color: var(--cor-fundo); }
.slide.slide-clean .slide-content { color: var(--cor-texto); }
.slide.slide-clean .slide-content h1 { color: var(--cor-texto); text-shadow: none; }
.slide.slide-clean .slide-content h1 span { color: var(--cor-primaria); }
.slide.slide-clean .slide-content p { color: #555; text-shadow: none; }
.slide.slide-clean .hero-overlay { background: transparent; }
#numeros { background-color: var(--cor-fundo-secao); }
#numeros .section-header-link { text-align: center; max-width: 800px; margin: 0 auto 60px auto; }
#numeros .section-title { margin-bottom: 25px; }
#numeros .section-subtitle { font-size: 1.1rem; color: #666; line-height: 1.8; margin-bottom: 30px; }
#numeros .section-header-link .cta-button-outline { margin-top: 0; }
.numeros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-top: 40px; }
.numero-item { background-color: #ffffff; padding: 30px 20px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: all 0.3s ease; border-top: 4px solid var(--cor-primaria); position: relative; overflow: hidden; text-align: center; }
.numero-item:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.numero-item .icon-fundo { position: absolute; top: -10px; right: -10px; font-size: 100px; color: var(--cor-primaria); opacity: 0.08; z-index: 0; transform: rotate(10deg); }
.numero-item .contador { display: block; font-size: 3.2rem; font-weight: 700; color: var(--cor-primaria); margin-bottom: 10px; position: relative; z-index: 1; }
.numero-item h3 { font-size: 1.4rem; color: #333; margin-bottom: 10px; line-height: 1.2; position: relative; z-index: 1; }
.numero-item p { color: #777; font-size: 0.95rem; margin-top: 5px; line-height: 1.6; position: relative; z-index: 1; }
#sobre-resumo { padding: 100px 0; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sobre-texto h2 { font-size: 2.8rem; font-weight: 900; color: var(--cor-primaria); margin-bottom: 20px; line-height: 1.3; }
.sobre-texto .resumo { font-size: 1.1rem; color: #555; margin-bottom: 20px; }
.sobre-foto { position: relative; }
.sobre-foto .moldura { background: #fff; padding: 15px; border-radius: 10px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); transform: rotate(3deg); transition: transform 0.3s ease; }
.sobre-foto:hover .moldura { transform: rotate(0deg); }
.sobre-foto img { width: 100%; display: block; border-radius: 5px; }
#bandeiras { background-color: var(--cor-fundo-secao); }
#bandeiras .cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card-bandeira { background: var(--cor-fundo); padding: 40px; border-radius: 10px; text-align: center; transition: all 0.3s ease; }
.card-bandeira:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-bandeira h3 { color: var(--cor-primaria); margin-bottom: 15px; }
#blog { background-color: var(--cor-fundo-secao); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
#blog .post-card { background: var(--cor-fundo); border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
#blog .post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.post-card-image-link { display: block; }
.post-card-image { height: 200px; background-size: cover; background-position: center; background-color: var(--cor-fundo-secao); transition: transform 0.4s ease; display: flex; align-items: center; justify-content: center; }
.post-card:hover .post-card-image { transform: scale(1.05); }
.post-card-image .icon-placeholder { font-size: 5rem; color: var(--cor-primaria); opacity: 0.2; }
#blog .post-card-content { padding: 25px; di.cta-header-button img { height: 18px; width: auto; filter: brightness(0) invert(1); }
.logo-mobile-menu, .cta-mobile-button, .menu-toggle { display: none; }splay: flex; flex-direction: column; flex-grow: 1; }
.post-card-date { font-size: 0.85rem; font-weight: 500; color: #888; margin-bottom: 10px; }
#blog .post-card-content h3 { font-size: 1.25rem; margin-bottom: 15px; line-height: 1.4; flex-grow: 1; }
#blog .post-card-content h3 a { text-decoration: none; color: var(--cor-texto); transition: color 0.3s ease; }
#blog .post-card-content h3 a:hover { color: var(--cor-primaria); }
.cta-button-small { display: inline-block; align-self: flex-start; background-color: var(--cor-primaria); color: #ffffff !important; padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-decoration: none !important; text-align: center; border: none; cursor: pointer; transition: all 0.3s ease; }
.cta-button-small:hover { background-color: var(--cor-secundaria); transform: translateY(-2px); }
main { padding-top: 80px; }
.page-header { background-color: var(--cor-fundo-secao); padding: 30px 0; text-align: center; border-bottom: 1px solid #e0e0e0; }
.page-header h1 { font-size: 2.3rem; font-weight: 900; color: var(--cor-primaria); }
.page-header p { font-size: 1.2rem; color: #666; margin-top: 10px; }
#biografia-detalhada { padding: 80px 0; }
.bio-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: center; }
.bio-foto img { width: 100%; border-radius: 10px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.bio-texto h2 { font-size: 2.5rem; font-weight: 900; color: var(--cor-primaria); margin-bottom: 20px; line-height: 1.3; }
.bio-texto { font-size: 1.1rem; line-height: 2; color: #555; }
#transparencia .links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); max-width: 900px; margin: 0 auto; gap: 30px;}
#transparencia .link-card { background: var(--cor-fundo-secao); padding: 30px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--cor-texto); transition: all 0.3s ease; }
#transparencia .link-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); background-color: var(--cor-primaria); color: var(--cor-texto-claro); }
#transparencia .link-card:hover h3, #transparencia .link-card:hover .link-card-icon { color: var(--cor-texto-claro); }
#transparencia .link-card:hover p { color: #dddddd; }
.link-card-icon { width: 60px; height: 60px; border-radius: 50%; background-color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--cor-primaria); transition: all 0.3s ease; }
.link-card-icon svg { width: 30px; height: 30px; }
#transparencia .link-card h3 { font-size: 1.4rem; color: var(--cor-primaria); margin-bottom: 10px; transition: all 0.3s ease; }
#transparencia .link-card p { font-size: 1rem; line-height: 1.6; color: #666; transition: all 0.3s ease; }
#galeria-fotos { padding: 80px 0; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.galeria-item { display: block; overflow: hidden; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.galeria-item:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }
.galeria-item img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.galeria-item:hover img { transform: scale(1.1); }
#cta-gabinete-digital { background-color: var(--cor-primaria); text-align: center; padding: 60px 0; }
#cta-gabinete-digital h2, #cta-gabinete-digital p { color: var(--cor-texto-claro); }
#cta-gabinete-digital h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; line-height: 1.3; }
#cta-gabinete-digital p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-button-inverted { display: inline-block; background-color: #ffffff; color: var(--cor-primaria) !important; padding: 15px 35px; border-radius: 50px; font-weight: 700; text-decoration: none !important; text-align: center; border: 2px solid #ffffff; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.15); transition: all 0.3s ease; }
.cta-button-inverted:hover { transform: translateY(-3px); background-color: transparent; color: #ffffff !important; box-shadow: 0 12px 25px rgba(0,0,0,0.2); }
.cta-button-inverted i { margin-right: 10px; }
.main-footer { background-color: var(--cor-fundo); padding: 60px 0; border-top: 1px solid #e0e0e0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 40px; align-items: start; }
.footer-bio-column { display: flex; flex-direction: column; justify-content: center; }
.footer-bio-column .logo-link { display: inline-block; margin-bottom: 15px; }
.footer-bio { font-size: 0.95rem; color: #666; line-height: 1.7; margin: 0; }
.footer-title { font-size: 1.2rem; font-weight: 700; color: var(--cor-texto); margin-bottom: 20px; }
.footer-contact-list { list-style: none; }
.footer-contact-list li { margin-bottom: 12px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 45px; height: 45px; background-color: var(--cor-fundo-secao); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--cor-texto); transition: all 0.3s ease; font-size: 1.2rem; }
.social-icons a:hover { background-color: var(--cor-secundaria); color: var(--cor-texto-claro); transform: translateY(-3px); }
.footer-bottom { background-color: #f1f1f1; color: #888; padding: 20px 0; text-align: center; font-size: 0.9em; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.tech-credit a { text-decoration: none; color: #888; transition: color 0.3s ease; }
.tech-credit a:hover { color: var(--cor-primaria); }
.chat-widget { position: fixed; bottom: 25px; right: 25px; z-index: 1001; }
.chat-bubble { background-color: var(--cor-primaria); color: #fff; width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; border: none; transition: all 0.3s ease; }
.chat-bubble:hover, .chat-bubble.active { background-color: var(--cor-secundaria); transform: scale(1.1); }
.chat-window { position: absolute; bottom: 85px; right: 0; width: 320px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(20px); visibility: hidden; transition: all 0.3s ease; }
.chat-window.active { opacity: 1; transform: translateY(0); visibility: visible; }
.chat-header { background-color: var(--cor-primaria); color: #fff; padding: 15px; display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.chat-header-text strong { display: block; font-size: 1rem; font-weight: 500; line-height: 1.25; }
.chat-header-text span { font-size: 0.8rem; opacity: 0.8; }
.chat-close-btn { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.5rem; opacity: 0.8; cursor: pointer; }
.chat-body { padding: 20px; font-size: 0.95rem; }
.chat-footer { padding: 15px; border-top: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 10px; }
.chat-footer a { display: block; padding: 10px; text-align: center; border-radius: 5px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; }
.chat-footer a:first-child { background-color: var(--cor-primaria); color: #fff; }
.chat-footer a:last-child { background-color: #f0f0f0; color: #333; }
.footer-contact-list .contact-item { background-color: var(--cor-fundo-secao); padding: 15px 20px; border-radius: 8px; position: relative; overflow: hidden; z-index: 1; }
.contact-item::before { font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; right: -10px; bottom: -15px; font-size: 5em; color: var(--cor-primaria); opacity: 0.06; z-index: -1; transform: rotate(-15deg); }
.contact-item.contact-address::before { content: "\f3c5"; }
.contact-item.contact-email::before { content: "\f0e0"; }
.contact-item.contact-whatsapp::before { content: "\f232"; }
.footer-contact-list .contact-item a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #666; transition: color 0.3s ease; }
.footer-contact-list .contact-item a:hover, .footer-contact-list .contact-item a:hover span { color: var(--cor-primaria); }
.footer-contact-list .contact-item i { font-size: 1.3em; color: var(--cor-primaria); transition: transform 0.3s ease; }
.footer-contact-list .contact-item a:hover i { transform: scale(1.1); }
.bg-light { position: relative; }
.bg-light::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 50px; background-color: var(--cor-fundo); transform-origin: top left; transform: skewY(-1deg); }
.bg-light::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 50px; background-color: var(--cor-fundo); transform-origin: bottom left; transform: skewY(1deg); }
.bg-light .container { position: relative; z-index: 2; }
main > .bg-light:last-child::after { display: none; }
.section-title.icon-title { position: relative; display: flex; justify-content: center; align-items: center; gap: 15px; }
.section-title.icon-title::before { content: "\f024"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 0.8em; color: var(--cor-primaria); opacity: 0.2; }
/* === RESPONSIVIDADE DO MENU === */
@media (max-width: 992px) {
    .main-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: left 0.4s ease-in-out;
        z-index: 1001;
    }
    .main-nav.active {
        left: 0;
    }
    .main-nav a {
        margin: 15px 0;
        font-size: 1.3rem;
    }
    /* Esconde o botão do desktop */
    .header-cta .cta-header-button {
        display: none;
    }
    /* Mostra o botão dentro do menu sanduíche */
    .main-nav .cta-mobile-button {
        display: inline-flex;
        margin-top: 30px;
        padding: 12px 25px;
        font-size: 1.3rem;
        background-color: var(--cor-primaria);
        color: #ffffff !important;
        border-radius: 50px;
        font-weight: 700;
        text-decoration: none !important;
        align-items: center;
        gap: 8px;
    }
    /* Mostra o logo dentro do menu sanduíche */
    .main-nav .logo-mobile-menu {
        display: block;
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        padding-bottom: 5px;
        border-bottom: 1px solid #e0e0e0;
    }
    /* Mostra o botão de abrir/fechar menu (sanduíche) */
    .menu-toggle {
        display: block;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }
    .hamburger, .hamburger::before, .hamburger::after {
        content: '';
        display: block;
        background-color: var(--cor-texto);
        height: 3px;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }
    .hamburger::before {
        transform: translateY(-8px);
    }
    .hamburger::after {
        transform: translateY(8px);
    }
    .nav-open .hamburger {
        background: transparent;
    }
    .nav-open .hamburger::before {
        transform: rotate(45deg);
    }
    .nav-open .hamburger::after {
        transform: rotate(-45deg);
        transform-origin: center;
        position: relative;
        top: -11px;
    }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    h2.section-title { font-size: 2.2rem; margin-bottom: 40px; }
    .slide-content h1 { font-size: 2.8rem; }
    .slide-content p { font-size: 1.2rem; }
    .slide-content { padding-left: 5%; padding-right: 5%; }
    .page-header h1 { font-size: 2.2rem; }
    .bio-grid, .sobre-grid { grid-template-columns: 1fr; }
    #sobre-resumo { padding: 80px 0; }
    .sobre-foto { grid-row: 1; margin-bottom: 40px; }
    #numeros .section-header-link { margin-bottom: 40px; }
    #numeros .numeros-grid { grid-template-columns: 1fr; gap: 20px; }
    #numeros .section-header-link .cta-button-outline { width: 100%; padding-left: 15px; padding-right: 15px; }
    .section-title.icon-title { flex-direction: column; gap: 10px; }
    .section-title.icon-title::before { font-size: 1em; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-bio-column { justify-content: center; }
    .footer-bio-column .logo-link { margin-left: auto; margin-right: auto; }
    .footer-bio, .footer-contact-list span { overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
    .footer-contact-list li, .footer-contact-list .contact-item a { justify-content: center; text-align: left; }
    .footer-contact-list .contact-item a span { text-align: left; display: inline-block; }
    .footer-contact-list li { font-size: 0.8rem; line-height: 1.4; }
    .social-icons { justify-content: center; }
    .footer-bottom .container { flex-direction: column; gap: 10px; text-align: center; }
    .chat-window { width: calc(100vw - 40px); right: -10px; }
}

@media (max-width: 360px) {
    .footer-contact-list li { font-size: 0.85rem; }
}

/* === MOBILE: mostrar CTA só dentro do menu sanduíche === */
@media (max-width: 992px) {
  /* Esconde apenas o botão do header (Gabinete Digital) */
  .header-cta .cta-header-button {
    display: none !important;
  }

  /* Mantém o botão do menu sanduíche visível */
  .menu-toggle {
    display: block !important;
  }

  /* Garante que o CTA apareça apenas dentro do menu lateral */
  .main-nav .cta-mobile-button { 
    display: inline-flex !important; 
  }

  /* Plano B: caso exista link de gabinete solto no header */
  .main-header a[href*="gabinete"],
  .main-header a[href*="gabinete-digital"],
  .main-header a[href*="gabinete_digital"] {
    display: none !important;
  }

  /* Camadas corretas */
  .main-header { z-index: 1000; }
  .main-nav { z-index: 1001; }
}

.tech-credit a {
    display: inline-flex;
    align-items: center; /* Alinha verticalmente o texto e a logo */
    gap: 8px; /* Cria um espaço entre o texto e a logo */
    text-decoration: none;
    color: #888;
}
.tech-credit span {
    font-size: 0.7em; /* Tamanho do texto "Tecnologia:" */
}
.tech-credit img {
    max-height: 40px; /* Altura da logo */
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.tech-credit a:hover img {
    opacity: 1;
}
.tech-credit a:hover span {
    color: var(--cor-primaria); /* Muda a cor do texto ao passar o mouse */
}

/* === ESTILOS PARA A PÁGINA DE POST DO BLOG === */

/* Novo Cabeçalho da Página de Post */
.post-page-header {
    padding: 60px 0;
    background: linear-gradient(90deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: #ffffff;
    margin-bottom: 40px;
}

.post-header-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.post-header-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    flex-shrink: 0; /* Impede que a imagem encolha */
}

.post-header-text h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
}

/* Ajuste de Margens para o Conteúdo do Post */
.container-post .page-content {
    max-width: 800px; /* Define uma largura máxima para o texto no desktop */
    margin: 0 auto; /* Centraliza o conteúdo */
    padding: 0 10px; /* Adiciona um respiro lateral */
}

.post-meta {
    color: #777;
    font-size: 0.9em;
}

.post-divider {
    margin: 25px 0;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}


/* === MELHORIAS NA PÁGINA DE POST DO BLOG === */

/* Título da matéria maior */
.container-post .page-content h2 {
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Espaçamento extra antes do rodapé */
.container-post {
    margin-bottom: 80px;
}

/* Estilos para os botões de compartilhamento */
.post-share-buttons {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}
.post-share-buttons span {
    font-weight: 500;
    color: var(--cor-texto);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}
.share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.telegram { background-color: #26A5E4; }


/* ============================================= */
/* AJUSTES FINOS PARA A PÁGINA DE POST (MÓVEL)   */
/* ============================================= */

/* Espaçamento entre o título e a data de publicação */
.container-post .page-content h2 {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    /* 1. Cabeçalho do post no celular: Foto à esquerda, texto à direita */
    .post-header-container {
        flex-direction: row; /* Força o alinhamento horizontal */
        gap: 10px;
    }
    .post-header-image {
        width: 100px; /* Reduz um pouco a foto para caber */
        height: 100px;
    }
    .post-header-text h1 {
        text-align: left; /* Alinha o texto à esquerda */
        font-size: 1.5rem; /* Ajusta o tamanho da fonte */
    }

    /* 2. Botões de compartilhamento no celular: um ao lado do outro */
    .post-share-buttons {
        flex-direction: row; /* Muda a direção para horizontal */
        align-items: center; /* Centraliza verticalmente */
    }
}

#blog .post-card-content .cta-button-small {
    margin-top: 1rem; /* Adiciona um espaço de 16px acima do botão */
}
/* CORREÇÃO PARA DIVISORES NÃO SOBREBOREM O HEADER */
main > section:first-child.bg-light::before {
    display: none;
}

/* === ESTILOS PARA A SEÇÃO "VEJA MAIS DESTAQUES" === */
.more-highlights-section {
    padding: 80px 0;
    background-color: var(--cor-fundo-secao);
}

.more-highlights-section .section-title {
    margin-bottom: 60px;
}

/* ============================================= */
/* ESTILOS PARA A PÁGINA DE TRANSPARÊNCIA      */
/* ============================================= */

/* Cabeçalho da Página */
.page-header-transparencia {
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.page-header-transparencia img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--cor-primaria);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-header-transparencia h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--cor-texto);
    margin-top: 1rem;
}

.page-header-transparencia .lead {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards de Estatísticas */
.card-stats {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-stats .card-body {
    padding: 1.5rem;
}

.card-stats h6 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-stats .h1 {
    font-weight: 700;
}

/* Gráficos */
.card-chart {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.card-chart .card-body {
    padding: 1.5rem;
}

.card-chart .h5 {
    font-weight: 600;
    color: var(--cor-texto);
}

/* Formulário de Filtros */
.form-filtros {
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
}

.form-filtros .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
}

.form-filtros .form-control,
.form-filtros .form-select {
    border-radius: 0.375rem;
}

.form-filtros .btn-primary {
    font-weight: 600;
}

/* Tabela de Solicitações */
.table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.table {
    margin-bottom: 0;
}

.table thead {
    vertical-align: middle;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table .badge {
    font-size: 0.8rem;
    padding: 0.5em 0.75em;
}

/* Paginação */
.pagination {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
}

.page-item a.page-link {
    display: block;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--cor-secundaria);
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.page-item a.page-link:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.page-item.active a.page-link {
    background-color: var(--cor-primaria);
    color: #fff;
    border-color: var(--cor-primaria);
    font-weight: 600;
}

/* ============================================= */
/* ESTILOS PARA O CONTEÚDO DOS POSTS (CKEDITOR) */
/* ============================================= */

.post-content {
    font-size: 1.1rem; /* Tamanho de fonte base para leitura confortável */
    line-height: 1.9;  /* Espaçamento ideal entre linhas */
    color: #333;
}

/* Estilo para Parágrafos */
.post-content p {
    margin-bottom: 1.5rem; /* Espaço entre parágrafos */
}

/* Estilo para Títulos e Subtítulos dentro do texto */
.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: 700;
    color: var(--cor-texto);
    line-height: 1.4;
    margin-top: 2.5rem; /* Espaço antes de um título */
    margin-bottom: 1rem; /* Espaço depois de um título */
}

.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.2rem; }

/* Estilo para Links dentro do texto */
.post-content a {
    color: var(--cor-primaria);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--cor-secundaria);
}

/* Estilo para Listas */
.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem; /* Alinhamento dos itens da lista */
}

.post-content li {
    margin-bottom: 0.5rem; /* Espaço entre itens da lista */
}

/* Estilo para Citações (Blockquote) */
.post-content blockquote {
    border-left: 4px solid var(--cor-primaria);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    font-size: 1.2rem;
}

/* Estilo para Imagens inseridas no texto */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Estilo para Negrito e Itálico */
.post-content strong {
    font-weight: 700;
    color: #000;
}

.post-content em {
    font-style: italic;
}
/* ==========================================================================
   29. [NOVO] REFINAMENTOS FINAIS DO RODAPÉ
   ========================================================================== */

/* Quebra de linha no resumo da bio */
.footer-bio p {
    margin: 0;
}
.footer-bio p:first-child {
    margin-bottom: 5px; /* Adiciona um pequeno espaço entre as linhas */
}

/* Título alinhado à esquerda e com cor primária */
.footer-title.footer-title-left {
    text-align: left;
    color: var(--cor-primaria);
}

/* Responsividade para os novos títulos */
@media (max-width: 768px) {
    .footer-title.footer-title-left {
        text-align: center; /* Volta a centralizar no mobile */
    }
}

/* ==========================================================================
   28. [NOVO] LAYOUT MELHORADO DO RODAPÉ E CHAT COM NOTIFICAÇÃO
   ========================================================================== */

/* Novo Grid com 2 colunas */
.main-footer .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

/* Ícones de redes sociais abaixo da bio */
.social-icons {
    margin-top: 20px;
}

/* Assinatura Itapoá Digital */
.tech-credit { display: flex; align-items: center; gap: 10px; }
.tech-credit a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #888; }
.tech-credit span { font-size: 0.7rem; font-weight: 500; }
.tech-credit img { height: 30px; width: auto; opacity: 0.7; transition: opacity 0.3s ease; }
.tech-credit a:hover img { opacity: 1; }

/* Chat com Sininho de Notificação */
.chat-bubble { position: relative; }
.chat-bubble .main-icon { transition: opacity 0.3s ease; }
.notification-dot {
    display: none; /* Começa escondido */
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background-color: #ff3b30;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* Responsividade do novo rodapé */
@media (max-width: 768px) {
    .main-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bio-column .logo-link {
        margin-left: auto;
        margin-right: auto;
    }
    .social-icons {
        justify-content: center;
    }
}

/* === ESTILOS PARA A AGENDA === */
.agenda-lista .agenda-item {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    margin-bottom: 20px;
}
.agenda-data {
    flex-shrink: 0;
    width: 80px;
    background-color: var(--cor-primaria);
    color: #fff;
    border-radius: 8px;
    text-align: center;
    padding: 10px;
    font-weight: 700;
}
.agenda-data .dia {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
}
.agenda-data .mes {
    display: block;
    font-size: 1.1rem;
    text-transform: uppercase;
}
.agenda-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}
.agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.agenda-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.agenda-lista-index .agenda-item-index {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.agenda-lista-index .agenda-item-index:last-child {
    border-bottom: none;
}
#agenda {
    background-color: #fff;
}

/* === SEÇÃO DE AGENDA NA HOME === */
#agenda-home {
    padding: 80px 0;
}
.agenda-grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Duas colunas no desktop */
    gap: 30px;
}
.agenda-item-home {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--cor-primaria);
}
.agenda-item-home .agenda-data {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-color: var(--cor-fundo);
    color: var(--cor-primaria);
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.agenda-item-home .agenda-data .dia {
    font-size: 2rem;
    line-height: 1;
}
.agenda-item-home .agenda-data .mes {
    font-size: 1rem;
    text-transform: uppercase;
}
.agenda-item-home .agenda-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}
.agenda-item-home .agenda-info .agenda-meta {
    font-size: 0.9rem;
    color: #666;
}
.agenda-item-home .agenda-info .agenda-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}


@media (max-width: 768px) {
    .agenda-grid-home {
        grid-template-columns: 1fr; 
    }
}

#agenda-home::after {
    display: none !important;
}