 /*
Theme Name: Portal Pomerode
Theme URI: https://portalpomerode.com.br
Author: Portal Pomerode
Author URI: https://attiva.tec.br
Description: Tema exclusivo do Portal Pomerode
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portal-pomerode
*/

 /*--------------------------------------------------------------
>>> Comece a escrever seu CSS a partir daqui.
--------------------------------------------------------------*/

/* Correção de contraste das Breadcrumbs em fundos escuros */
.blog-hero .breadcrumb-item.active,
.hero-with-background .breadcrumb-item.active,
.bg-dark .breadcrumb-item.active,
.hero-ad-space .breadcrumb-item.active {
    color: #ffffff !important;
}

.blog-hero .breadcrumb-item a,
.hero-with-background .breadcrumb-item a,
.bg-dark .breadcrumb-item a {
    color: #ffffff !important;
    opacity: 0.8;
}

.blog-hero .breadcrumb-item a:hover,
.hero-with-background .breadcrumb-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.blog-hero .breadcrumb-item + .breadcrumb-item::before,
.hero-with-background .breadcrumb-item + .breadcrumb-item::before,
.bg-dark .breadcrumb-item + .breadcrumb-item::before,
.hero-ad-space .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Estilos para Notificações Customizadas */
.custom-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left: 5px solid var(--primary-color);
    animation: slideInRight 0.4s ease-out;
}

.notification-success { border-left-color: #28a745; }
.notification-error { border-left-color: #dc3545; }

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success i { color: #28a745; }
.notification-error i { color: #dc3545; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Estilização da Paginação Numérica */
.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
}

.pagination-wrapper .page-numbers li span.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-wrapper .page-numbers li a, 
.pagination-wrapper .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-wrapper .page-numbers .prev,
.pagination-wrapper .page-numbers .next {
    font-weight: 500;
}

/* Melhoria Global de Visibilidade das Breadcrumbs */
.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

/* Ajuste automático para fundos escuros (Hero, Ad Space, etc) */
.blog-hero .breadcrumb-item a,
.hero-with-background .breadcrumb-item a,
.bg-dark .breadcrumb-item a,
.hero-ad-space .breadcrumb-item a,
.single-breadcrumb.bg-dark .breadcrumb-item a {
    color: #ffffff !important;
    opacity: 0.9;
}

.blog-hero .breadcrumb-item.active,
.hero-with-background .breadcrumb-item.active,
.bg-dark .breadcrumb-item.active,
.hero-ad-space .breadcrumb-item.active,
.single-breadcrumb.bg-dark .breadcrumb-item.active {
    color: #ffffff !important;
}

.blog-hero .breadcrumb-item + .breadcrumb-item::before,
.hero-with-background .breadcrumb-item + .breadcrumb-item::before,
.bg-dark .breadcrumb-item + .breadcrumb-item::before,
.hero-ad-space .breadcrumb-item + .breadcrumb-item::before,
.single-breadcrumb.bg-dark .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Caso específico da página "Conteúdos" se ela não usar as classes acima */
.page-template-template-categoria-personalizada .breadcrumb-item a,
.page-template-template-categoria-personalizada .breadcrumb-item.active {
     /* Se precisar de ajuste específico para este template */
}

/* Se a single-breadcrumb estiver com fundo escuro (caso o usuário tenha alterado var(--bg-light)) */
.single-breadcrumb .breadcrumb-item.active {
    /* Tentativa de detectar se o fundo é escuro via herança ou se o usuário reportou como tal */
    /* Por enquanto, mantemos a regra que força branco se houver necessidade */
}

/* ==========================================================================
   CONTACT FORM 7 - SIDEBAR FORMATTING
   ========================================================================== */

.blog-sidebar .wpcf7 {
    margin-top: 1rem;
}

.blog-sidebar .wpcf7-form p {
    margin-bottom: 1.25rem;
}

.blog-sidebar .wpcf7-form label {
    display: block;
    width: 100%;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-sidebar .wpcf7-form br {
    display: none;
}

.blog-sidebar .wpcf7-form-control:not(.wpcf7-submit) {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.blog-sidebar .wpcf7-form-control:not(.wpcf7-submit):focus {
    color: var(--text-dark);
    background-color: #fff;
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 90, 95, 0.1);
}

.blog-sidebar .wpcf7-submit {
    display: inline-block;
    width: 100%;
    font-weight: 700;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all .3s ease;
    margin-top: 0.5rem;
}

.blog-sidebar .wpcf7-submit:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 90, 95, 0.2);
}

/* ==========================================================================
   CONTACT INFO WIDGET - PREMIUM LOOK
   ========================================================================== */

.contact-info-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-widget p {
    margin-bottom: 0 !important;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.contact-info-widget p:hover {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-info-widget p i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--accent-color);
    margin-top: 3px;
}

/* Removemos o "Strong" que ocupa espaço e usamos o ícone como guia */
.contact-info-widget p strong,
.contact-info-widget p br {
    display: none; 
}

/* Estilo específico para o WhatsApp */
.contact-info-widget p .fa-whatsapp {
    color: #25d366;
}

/* Botão de reserva via WhatsApp customizado */
.contact-info-widget .btn-whatsapp {
    margin-left: 0 !important;
    margin-top: 5px;
    width: 100%;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Website e Email com visual de link limpo */
.contact-info-widget a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-widget a:hover {
    color: var(--accent-color);
}

/* Erros e Validacoes */
.blog-sidebar .wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.blog-sidebar .wpcf7-response-output {
    margin: 1.5rem 0 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    border: 1px solid transparent !important;
}

.blog-sidebar .wpcf7-mail-sent-ok {
    background-color: rgba(0, 166, 153, 0.1) !important;
    border-color: var(--success-color) !important;
    color: var(--success-color) !important;
}

.blog-sidebar .wpcf7-validation-errors {
    background-color: rgba(255, 90, 95, 0.1) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

/* ==========================================================================
   FORÇAR TEXTO BRANCO EM BOTÕES DE DESTAQUE (FIX FINAL)
   ========================================================================== */

/* Garante que links com classe de botão tenham texto branco e sem sublinhado */
a.btn-primary-custom,
a.btn-hero,
button.btn-primary-custom,
button.btn-hero,
.btn-primary-custom,
.btn-hero {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Garante que o texto continue branco no hover e foco */
a.btn-primary-custom:hover,
a.btn-hero:hover,
button.btn-primary-custom:hover,
button.btn-hero:hover,
.btn-primary-custom:hover,
.btn-hero:hover,
a.btn-primary-custom:focus,
a.btn-hero:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Garante que ícones dentro dos botões também sejam brancos */
.btn-primary-custom i,
.btn-hero i {
    color: #ffffff !important;
}

/* ==========================================================================
   FIX PARA LINKS DE PORTAIS NO RODAPÉ
   ========================================================================== */

.footer a.hover-white,
.footer-description a.hover-white,
.footer .hover-white {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.footer a.hover-white:hover,
.footer-description a.hover-white:hover,
.footer .hover-white:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   ESTILOS PARA CABEÇALHOS COM IMAGEM
   ========================================================================== */

.hero-with-background {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    z-index: 1;
}

/* Overlay para garantir contraste do texto branco sobre a imagem */
.hero-with-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay suave se não houver gradiente no inline style */
    z-index: -1;
}

/* Remove o espaço extra (gap) entre o cabeçalho personalizado e o breadcrumb */
.blog-hero + .single-breadcrumb {
    margin-top: 0 !important;
}

/* Ajuste fino para quando o hero está presente em páginas internas */
.hero-with-background + .single-breadcrumb {
    margin-top: 0 !important;
}

/* ==========================================================================
   WIDGET: ANUNCIE NESTE ESPAÇO (SIDEBAR)
   ========================================================================== */

.advertise-cta-widget {
    background-color: #f4f6f8 !important; /* Cinza clarinho sóbrio */
    color: var(--text-dark);
    text-align: center;
    padding: 1.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e1e4e8 !important;
    box-shadow: none !important;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
}

.advertise-cta-widget:hover {
    background-color: #ebedf0 !important;
    transform: none !important; /* Remove o pulo */
}

.advertise-cta-widget h3 {
    color: var(--text-dark) !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    margin-top: 0;
    text-transform: none;
}

.advertise-cta-widget p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* Fix para a seta do botão */
.advertise-cta-widget .btn i {
    font-size: 1rem !important; /* Tamanho normal da fonte */
    display: inline-block !important;
    opacity: 1 !important;
    margin-left: 8px !important;
    vertical-align: middle;
}

.advertise-cta-widget .btn-primary-custom {
    font-weight: 600;
    padding: 0.6rem 1rem;
}

/* ==========================================================================
   FIX PARA PÁGINAS DE TAGS E ARQUIVOS (PADRONIZAÇÃO)
   ========================================================================== */

/* Garante fundo branco para o conteúdo de tags e archives */
.tag .blog-content,
.archive .blog-content,
.category .blog-content {
    background-color: #ffffff !important;
}

/* Torna o cabeçalho padrão (sem imagem) mais neutro e sóbrio */
.blog-hero:not(.hero-with-background) {
    background: #1a1a1a !important; /* Cinza quase preto, neutro */
    background-image: none !important;
    padding: 6rem 0 3rem !important; /* Reduz um pouco o excesso de altura */
}

/* Ajuste de contraste para o lead no hero padrão */
.blog-hero:not(.hero-with-background) .lead {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Correção de espaçamento para breadcrumbs em archives */
.blog-hero + .single-breadcrumb {
    margin-top: 0 !important;
    border-bottom: 1px solid #eee;
}

/* Botão de "Voltar" ou "Ler Mais" em archives */
.btn-read-more {
    color: var(--accent-color) !important;
    font-weight: 700;
}

.btn-read-more:hover {
    color: var(--primary-color) !important;
}