/* ==========================================================================
   Complementos do site.css para o WordPress (conteúdo dinâmico, editor, admin bar)
   ========================================================================== */

/* Barra do administrador logado não cobre o topo fixo */
.admin-bar .site-header{ top:32px; }
@media (max-width:782px){ .admin-bar .site-header{ top:46px; } }
@media (max-width:600px){ .admin-bar .site-header{ top:0; } }

.screen-reader-text{
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px;
  overflow:hidden; padding:0; position:absolute !important; width:1px; word-wrap:normal !important;
}
.screen-reader-text:focus{
  background:var(--white); clip:auto !important; clip-path:none; color:var(--blue-dark); display:block;
  height:auto; left:8px; padding:12px 20px; top:8px; width:auto; z-index:100000;
}

/* Logo personalizado dentro do quadrado */
.logo-tile img.custom-logo, .logo-tile img{ max-width:100%; height:auto; }

/* ---------- Cards de notícia ---------- */
.news-feature, .news-card{ position:relative; }
.news-media.has-img{ background:var(--blue-dark); }
.news-media .news-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.news-body h3 a{ color:inherit; text-decoration:none; }
.news-body h3 a::after{ content:""; position:absolute; inset:0; z-index:3; }  /* card inteiro clicável */
.news-feature:hover h3 a, .news-card:hover h3 a, .news-body h3 a:focus-visible{ color:var(--red); }
.news-body h3 a:focus-visible{ outline:none; }
.news-feature:focus-within, .news-card:focus-within{ outline:3px solid var(--red); outline-offset:3px; }
.news-date{ font-size:.8rem !important; font-weight:700; color:var(--terracota) !important; margin:-4px 0 8px; }

.news-list{ display:grid; grid-template-columns:1fr; gap:22px; margin-top:22px; }
@media (min-width:640px){ .news-list{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px){ .news-list{ grid-template-columns:repeat(3,1fr); } }

/* Paginação */
.pagination{ margin-top:36px; }
.pagination .nav-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.pagination .page-numbers{
  display:inline-flex; align-items:center; min-width:42px; height:42px; padding:0 14px; justify-content:center;
  border-radius:999px; font-weight:800; color:var(--blue-dark); background:var(--white); box-shadow:var(--shadow-card);
}
.pagination .page-numbers.current{ background:var(--blue-dark); color:var(--white); }
.pagination a.page-numbers:hover{ background:var(--red); color:var(--white); }

/* ---------- Post individual ---------- */
.page-hero .post-meta{ margin:14px 0 0; color:rgba(255,255,255,0.86); font-weight:700; font-size:.9rem; }
.page-hero .post-meta a{ color:#ffd9c9; }
.entry-thumb{ margin:0 0 26px; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-card); }
.entry-thumb img{ display:block; width:100%; height:auto; }

.post-navigation{ max-width:760px; margin-top:40px; border-top:1px solid var(--line); padding-top:24px; }
.post-navigation .nav-links{ display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width:640px){ .post-navigation .nav-links{ grid-template-columns:1fr 1fr; } .post-navigation .nav-next{ text-align:right; } }
.post-navigation a{ display:block; font-weight:800; color:var(--blue-dark); }
.post-navigation a:hover{ color:var(--red); }
.post-navigation .nav-label{ display:block; font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }

/* ---------- Conteúdo vindo do editor ---------- */
.entry-content > * + *{ margin-top:1em; }
.entry-content h2{ font-size:1.6rem; margin-top:1.6em; }
.entry-content h3{ font-size:1.25rem; margin-top:1.4em; }
.entry-content a:not(.btn){ color:var(--red); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.entry-content ul:not([class]), .entry-content ol:not([class]){ padding-left:1.4em; }
.entry-content ul:not([class]){ list-style:disc; }
.entry-content ol:not([class]){ list-style:decimal; }
.entry-content li + li{ margin-top:.35em; }
.entry-content img{ max-width:100%; height:auto; border-radius:var(--radius-md); }
.entry-content blockquote:not([class]), .entry-content .wp-block-quote{
  border-left:4px solid var(--red); margin:1.4em 0; padding:8px 16px; font-style:italic; color:var(--blue-dark); font-weight:600;
}
.entry-content blockquote cite{ display:block; font-style:normal; font-size:.85rem; color:var(--muted); margin-top:6px; }
.entry-content figure{ margin:1.4em 0; }
.entry-content figcaption, .wp-caption-text{ font-size:.85rem; color:var(--muted); margin-top:6px; }
.entry-content .wp-block-button__link{ background:var(--red); color:var(--white); border-radius:999px; font-weight:800; padding:12px 24px; text-decoration:none; }
.entry-content table{ width:100%; border-collapse:collapse; }
.entry-content th, .entry-content td{ border-bottom:1px solid var(--line); padding:10px 8px; text-align:left; }
.alignleft{ float:left; margin:0 1.4em 1em 0; }
.alignright{ float:right; margin:0 0 1em 1.4em; }
.aligncenter{ display:block; margin-left:auto; margin-right:auto; }

/* Seções do mockup inseridas como HTML não recebem espaçamento do editor */
.entry-sections > *{ margin:0; }

/* Documentos */
.doc-intro{ margin-bottom:26px; }
.doc-intro > *:last-child{ margin-bottom:0 !important; }

/* Busca */
.search-form{ display:flex; gap:8px; margin-top:16px; max-width:480px; }
.search-form .search-field{ flex:1; padding:12px 16px; border-radius:999px; border:2px solid var(--line); font:inherit; }
.search-form .search-submit{ border:0; border-radius:999px; background:var(--blue-dark); color:var(--white); font-weight:800; padding:0 20px; cursor:pointer; }

/* ---------- Galerias com imagens reais ---------- */
.gallery-tile{ cursor:zoom-in; font:inherit; }
.gallery-tile .gallery-img, .video-thumb .video-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.gallery-tile .zoom-ic, .gallery-tile .cap{ z-index:2; }
.gallery-tile::after{ z-index:1; }
.video-thumb{ overflow:hidden; }
.video-thumb .play, .video-thumb .src{ position:relative; z-index:2; }
.video-thumb .src{ position:absolute; }
.video-thumb.has-img::after, .video-thumb:has(.video-img)::after{ content:""; position:absolute; inset:0; background:rgba(0,0,0,0.18); z-index:1; }
.lightbox-media.has-img{ height:auto; max-height:72vh; background:#000; }
.lightbox-media img{ display:block; width:100%; height:auto; max-height:72vh; object-fit:contain; }

/* Setas da ampliação (álbuns) */
.lightbox-nav{
	position:absolute; top:50%; transform:translateY(-50%); z-index:2;
	width:44px; height:44px; border:0; border-radius:50%; padding:0 0 4px;
	background:rgba(255,255,255,0.15); color:var(--white); font:inherit; font-size:28px; line-height:1;
	display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.lightbox-nav[hidden]{ display:none; }
.lightbox-nav:hover{ background:rgba(255,255,255,0.28); }
.lightbox-nav:focus-visible{ outline:3px solid var(--white); outline-offset:2px; }
.lightbox-nav.prev{ left:16px; }
.lightbox-nav.next{ right:16px; }
@media (max-width:600px){
	.lightbox-nav{ width:36px; height:36px; font-size:24px; }
	.lightbox-nav.prev{ left:6px; }
	.lightbox-nav.next{ right:6px; }
}

/* ---------- Aviso de privacidade ---------- */
.privacy-notice{
  position:fixed; left:0; right:0; bottom:0; z-index:85;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px 20px;
  padding:14px 20px; background:var(--blue-dark); color:var(--white);
  box-shadow:0 -10px 24px -12px rgba(0,0,0,0.35); font-size:.92rem; line-height:1.45;
}
.privacy-notice[hidden]{ display:none; }
body{ padding-bottom:var(--privacy-h, 0px); }
.privacy-notice p{ margin:0; max-width:62ch; }
.privacy-notice a{ color:inherit; text-decoration:underline; font-weight:700; }
.privacy-notice a:focus-visible, .privacy-notice .btn:focus-visible{ outline:3px solid var(--white); outline-offset:3px; }

/* Botão do WhatsApp sobe enquanto o aviso estiver visível */
.whatsapp-fab{ bottom:calc(20px + var(--privacy-h, 0px)); transition:transform .2s ease, bottom .2s ease; }

/* Link da política no rodapé */
.site-footer .footer-bottom a{ color:inherit; text-decoration:underline; }
