/* ========== RESET E GLOBAIS ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--topbar-height) + 20px);
}
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: #fdfdfd;
  line-height: 1.6;
  padding-top: 0;
}
/* Nas outras páginas (não home), adiciona padding para o header/topbar */
body:not(.home) {
  padding-top: calc(var(--header-height) + var(--topbar-height));
}
body.admin-bar .topbar {
  top: 32px; /* Ajuste para barra do admin do WordPress */
}
body.admin-bar .header {
  top: calc(var(--topbar-height) + 32px);
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
h1, h2, h3 {
  font-weight: 600;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
/* A largura máxima será controlada pelo Customizer via CSS inline */

/* ========== VARIÁVEIS ========== */
:root {
  --night-blue: #00296B;
  --blue-secondary: #003F88;
  --gold: #FDC500;
  --accent-color: #FFD500;
  --white: #fff;
  --text-color: #333;
  --text-color-light: #f0f4f8;
  --light-gray: #f8f9fa;
  --header-height: 96px;
  --topbar-height: 48px;
  --border-opacity: 0.3;
  --topbar-scrolled-bg: rgba(0,41,107,0.98);
  --header-scrolled-bg: rgba(0,63,136,0.92);
}

/* ========== TIPOGRAFIA ========== */
h2.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--night-blue);
  position: relative;
  padding-bottom: 15px;
}
h2.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--gold);
  border-radius: 2px;
}

/* ========== LAYOUT GERAL ========== */
.site-content {
  padding-top: 0;
  width: 100%;
  max-width: 100%;
}
/* Espaçamento nas páginas e posts individuais - será controlado pelo Customizer */
.single .site-content,
.page .site-content {
  padding-top: 80px;
  padding-bottom: 80px;
}
main {
  width: 100%;
  max-width: 100%;
}
/* Seções normais têm padding, exceto hero */
section {
  padding: 80px 0;
}
/* Hero não tem padding padrão, começa do topo */
#hero {
  padding: 0 2rem !important;
}

/* ========== TOPBAR ========== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.25s, box-shadow 0.25s;
}
/* Nas outras páginas (não home), topbar já começa com cor sólida */
body:not(.home) .topbar {
  background: var(--topbar-scrolled-bg);
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}
.topbar.scrolled {
  background: var(--topbar-scrolled-bg);
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}
.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, var(--border-opacity));
  pointer-events: none;
}
.topbar__left, .topbar__right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.topbar__right {
  gap: 0.8rem;
}
.topbar__left {
  flex: 1;
}
.topbar__left small {
  font-size: 0.9rem;
  color: var(--white);
  white-space: nowrap;
  display: block;
}
.topbar__search, .topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  font-family: inherit;
}
.topbar__search {
  background: transparent;
  color: var(--white);
  border: none;
  padding: 0.35rem 0.6rem;
  font-size: 1rem;
}
.topbar__search:hover,
.topbar__search:focus {
  color: var(--gold);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.topbar__cta {
  background: var(--gold);
  color: var(--night-blue);
}
.topbar__cta:hover, .topbar__cta:focus {
  background: var(--night-blue);
  color: var(--gold);
  box-shadow: 0 2px 12px rgba(253, 213, 0, 0.14);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  z-index: 1150;
  background-color: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, var(--border-opacity));
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
/* Header com menu quebrado em múltiplas linhas */
.header:has(.header__nav-menu:has(> li:nth-child(10))) {
  min-height: calc(var(--header-height) + 30px);
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: 8px;
}
/* Nas outras páginas (não home), header já começa com cor sólida */
body:not(.home) .header {
  background-color: var(--header-scrolled-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, calc(var(--border-opacity) - 0.05));
}
.header.scrolled {
  background-color: var(--header-scrolled-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, calc(var(--border-opacity) - 0.05));
}
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo img,
.header__logo-img {
  height: 72px;
  max-height: calc(var(--header-height) - 16px);
  width: auto;
  display: block;
}
.header nav,
.header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0; /* Permite que o nav encolha se necessário */
  max-width: 100%;
  overflow: visible;
}
.header__nav-menu {
  list-style: none;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  visibility: visible !important;
  opacity: 1 !important;
  justify-content: flex-end;
  row-gap: 0.5rem;
}
.header__nav-menu li {
  margin: 0;
  list-style: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
}
.header__nav-link {
  color: var(--white) !important;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
  font-size: 0.95rem;
}
/* Separador vertical (|) entre os itens do menu - aparece após o link dentro do li */
.header__nav-menu > li:not(:last-child)::after {
  content: '|';
  color: rgba(255, 255, 255, 0.3);
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  font-weight: 300;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  height: 100%;
  line-height: 1;
}
/* Quando há muitos itens (8+), reduz o tamanho da fonte */
.header__nav-menu:has(> li:nth-child(8)) {
  row-gap: 0.4rem;
}
.header__nav-menu:has(> li:nth-child(8)) .header__nav-link {
  font-size: 0.9rem;
}
.header__nav-menu:has(> li:nth-child(8)) > li:not(:last-child)::after {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}
/* Quando há muitos itens (10+), reduz ainda mais */
.header__nav-menu:has(> li:nth-child(10)) {
  row-gap: 0.3rem;
}
.header__nav-menu:has(> li:nth-child(10)) .header__nav-link {
  font-size: 0.85rem;
}
.header__nav-menu:has(> li:nth-child(10)) > li:not(:last-child)::after {
  margin-left: 0.4rem;
  margin-right: 0.4rem;
  font-size: 0.85rem;
}
/* Quando há muitos itens (12+), reduz ao mínimo */
.header__nav-menu:has(> li:nth-child(12)) {
  row-gap: 0.3rem;
}
.header__nav-menu:has(> li:nth-child(12)) .header__nav-link {
  font-size: 0.8rem;
}
.header__nav-menu:has(> li:nth-child(12)) > li:not(:last-child)::after {
  margin-left: 0.3rem;
  margin-right: 0.3rem;
  font-size: 0.8rem;
}
.header__nav-link:hover,
.header__nav-link:focus {
  color: var(--gold);
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s;
}
.header__nav-link:hover::after, 
.header__nav-link:focus::after {
  width: 100%;
}
/* Barra amarela continua quando o mouse está sobre o dropdown (item pai ou filhos) */
.header__dropdown:hover > .header__nav-link::after {
  width: 100%;
}
.header__dropdown {
  position: relative;
}
.header__dropdown i,
.header__dropdown-icon {
  font-size: 0.8em;
  transition: transform 0.25s;
}
/* Seta para direita (→) vira para baixo (↓) quando expandido */
/* Desktop: hover no dropdown */
.header__dropdown:hover .header__dropdown-icon {
  transform: rotate(90deg);
}
/* Mobile e desktop: quando ativo/clicado */
.header__dropdown.active > .header__nav-link .header__dropdown-icon,
.header__dropdown-icon.active {
  transform: rotate(90deg);
}
.header__dropdown:hover .header__dropdown-menu,
.header__dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header__dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--night-blue);
  border-radius: 6px;
  padding: 0.6rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1250;
  max-height: 480px;
  overflow-y: auto;
  margin: 0;
  margin-top: 2px;
}

/* Gradientes fade no topo e fundo quando há scroll (sombra sutil) - elementos filhos reais */
.header__dropdown-menu .fade-top {
  position: sticky;
  top: -0.6rem; /* Compensar o padding do menu (0.6rem) para estender até o topo visual */
  left: 0;
  right: 0;
  height: calc(30px + 0.6rem); /* Altura do fade + padding para cobrir completamente */
  background: linear-gradient(to bottom, var(--night-blue) 0%, rgba(0, 41, 107, 0.95) 30%, rgba(0, 41, 107, 0.5) 60%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  /* Só transição de opacidade - height muda instantâneo para evitar piscar */
  transition: opacity 0.2s ease;
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Esconder conteúdo quando height é 0 */
}

.header__dropdown-menu .fade-bottom {
  position: sticky;
  bottom: -0.6rem; /* Compensar o padding do menu (0.6rem) para estender até o final visual */
  left: 0;
  right: 0;
  height: calc(30px + 0.6rem); /* Altura do fade + padding para cobrir completamente */
  background: linear-gradient(to top, var(--night-blue) 0%, rgba(0, 41, 107, 0.95) 30%, rgba(0, 41, 107, 0.5) 60%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  /* Só transição de opacidade - height muda instantâneo para evitar piscar */
  transition: opacity 0.2s ease;
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Esconder conteúdo quando height é 0 */
}
/* Remove separadores do submenu */
.header__dropdown-menu li::after {
  display: none !important;
}
.header__dropdown-menu li {
  margin: 0;
}
.header__dropdown-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  z-index: 4;
}
/* Barra amarela abaixo (sublinhado) no hover dos itens do submenu */
.header__dropdown-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s;
}
.header__dropdown-menu li a:hover::after,
.header__dropdown-menu li a:focus::after {
  width: calc(100% - 2rem);
}
.header__dropdown-menu li a:hover,
.header__dropdown-menu li a:focus {
  background: transparent;
  color: var(--white);
}
.header__dropdown-menu::-webkit-scrollbar {
  width: 8px;
}
.header__dropdown-menu::-webkit-scrollbar-track {
  background: rgba(0, 41, 107, 0.1);
}
.header__dropdown-menu::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 20px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.header__dropdown-menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-color);
}
.header__nav-menu > .header__dropdown:last-child .header__dropdown-menu {
  left: auto;
  right: 0;
}
.header__menu-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--white);
  cursor: pointer;
  z-index: 1250;
  background: none;
  border: none;
  padding: 0;
  margin-left: 20px;
}
.header__menu-toggle:hover,
.header__menu-toggle:focus {
  color: var(--gold);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.header__menu-toggle i {
  pointer-events: none;
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay__content {
  width: 90%;
  max-width: 700px;
}
.search-overlay__content form {
  width: 100%;
}
.search-overlay__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--gold);
  color: var(--white);
  font-size: 2.2rem;
  padding: 1rem 0;
  text-align: center;
  outline: none;
  font-family: 'Poppins', sans-serif;
}
.search-overlay__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.search-overlay__input:focus {
  border-bottom-color: var(--accent-color);
}
.search-overlay__close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.search-overlay__close:hover, .search-overlay__close:focus {
  color: var(--gold);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ========== HERO ========== */
#hero {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: linear-gradient(rgba(0,63,136, 0.35), rgba(0,63,136, 0.05)), url('../images/background-opt6.jpg') no-repeat center/cover;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 0 2rem;
  position: relative;
  z-index: 0;
  margin: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: 3.6rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 1.6rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
/* Estilo base para botões - aplica em qualquer contexto */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-buttons .btn {
  margin: 8px;
}
.btn-primary {
  background: var(--gold);
  color: var(--night-blue);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--night-blue);
  color: var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn-secondary {
  background: var(--night-blue);
  color: var(--white);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--gold);
  color: var(--night-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--white);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  z-index: 1;
  text-decoration: none;
}
.scroll-indicator:hover, .scroll-indicator:focus {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--gold);
  color: var(--gold);
  outline: 2px solid var(--white);
  outline-offset: 4px;
}
.scroll-indicator i {
  font-size: 1.1rem;
  animation: scroll-bounce 1.2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-indicator.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}

/* ========== SLIDER ========== */
#simpleSlider {
  background-color: var(--light-gray);
  /* Menos espaço vertical ao redor do slider */
  padding: 22px 0;
}
.simple-slider__wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.simple-slider__viewport {
  overflow: hidden;
  border-radius: 10px;
  /* Fundo branco para evitar barras escuras ao redor da imagem */
  background: #fff;
}
.simple-slider__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.simple-slide {
  flex: 0 0 100%;
  height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  transition: transform 0.3s ease;
}
.simple-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.simple-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* Degradê mais suave na base do slide */
  height: 7%;
  /* Ainda mais suave e transparente, com transição gradual */
  background: linear-gradient(
    to top,
    rgba(10, 25, 47, 0.30) 0%,
    rgba(10, 25, 47, 0.15) 40%,
    rgba(10, 25, 47, 0.00) 100%
  );
  pointer-events: none;
}
.simple-slide:hover {
  transform: scale(1.02);
}
.slider-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
  color: var(--white);
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.simple-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* Botões um pouco menores em todas as telas */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--night-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: background 0.2s, transform 0.2s;
}
.simple-slider__btn:hover, .simple-slider__btn:focus {
  background: var(--gold);
  color: var(--night-blue);
  transform: translateY(-50%) scale(1.08);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.simple-slider__btn.prev {
  /* Aproxima um pouco mais da borda no desktop */
  left: 26px;
}
.simple-slider__btn.next {
  right: 26px;
}
.simple-slider__dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* Aproxima os pontos da borda inferior para diminuir a área ocupada */
  bottom: 10px;
  display: flex;
  gap: 10px;
  z-index: 12;
}
.simple-slider__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s;
}
.simple-slider__dots button.active {
  background: var(--gold);
  transform: scale(1.2);
}
.simple-slider__dots button:hover, .simple-slider__dots button:focus {
  background: var(--white);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ========== NEWS & EVENTOS ========== */
.news-recent .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Últimas Notícias: título em cima, duas colunas de 3 itens */
.news-recent--noticias .container {
  display: block;
}
.news-recent__title {
  font-size: 1.8rem;
  color: var(--night-blue);
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* Link no título da seção (mesmo visual, clique leva à listagem completa) */
.section-title-link {
  color: inherit;
  text-decoration: none;
}
.section-title-link:hover,
.section-title-link:focus {
  color: inherit;
  text-decoration: underline;
}

/* Botão "Ver todos" nas seções Próximos Eventos, Últimos Eventos e Últimas Notícias */
.news-recent__ver-todos {
  margin-top: 24px;
  margin-bottom: 0;
  padding-left: 8px; /* Alinhar com os itens da lista (.news-item a tem padding: 8px) */
}
.news-recent__ver-todos--noticias {
  text-align: center;
  margin-top: 32px;
  padding-left: 8px; /* Mesmo padding para consistência visual */
}

.news-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.news-col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.content-block h3 {
  font-size: 1.8rem;
  color: var(--night-blue);
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.news-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
  border-radius: 8px;
  transition: background 0.25s, box-shadow 0.25s;
  position: relative;
}
.news-item a {
  display: flex;
  padding: 8px;
  width: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}
.news-item img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 20px;
  flex-shrink: 0;
}
.news-item:hover {
  background: #f4f7fb;
  box-shadow: 0 3px 18px rgba(0, 63, 136, 0.08);
}
.news-item-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--blue-secondary);
}
.news-item-content .date {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 8px;
}
.read-more {
  display: inline-block;
  padding: 10px 24px;
  background: var(--night-blue);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  margin-top: 8px;
  text-align: center;
}
.read-more:hover,
.read-more:focus {
  background: var(--blue-secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 41, 107, 0.3);
  text-decoration: none;
}
/* Read more dentro de post-item */
.post-item .read-more {
  display: inline-block;
  width: auto;
  margin-top: 12px;
}
.news-item:hover .read-more {
  background: var(--blue-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 41, 107, 0.3);
}

/* ========== HISTÓRIA ========== */
.history {
  background-color: #f9f9f9;
}
.history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.history-text p {
  margin-bottom: 15px;
  text-align: justify;
}
.history-image img {
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* ========== LOCALIZAÇÃO ========== */
.location-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}
.location-map-item {
  display: flex;
  flex-direction: column;
}
.location-map-subtitle {
  font-size: 1.4rem;
  color: var(--night-blue);
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
}
.location iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 8px;
}

/* ========== LGPD / COOKIE BANNER ========== */
.lgpd-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: rgba(0, 41, 107, 0.97);
  color: var(--white);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.lgpd-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.lgpd-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lgpd-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.lgpd-banner__link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.lgpd-banner__link:hover,
.lgpd-banner__link:focus {
  color: var(--accent-color);
}
.lgpd-banner__button {
  flex-shrink: 0;
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
}
.lgpd-banner__button:hover,
.lgpd-banner__button:focus {
  background-color: var(--gold);
  color: var(--night-blue);
  border-color: var(--gold);
  box-shadow: none;
  transform: none;
}

@media (max-width: 768px) {
  .lgpd-banner__content {
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .lgpd-banner__button {
    width: 100%;
    text-align: center;
  }
}

/* ========== FOOTER ========== */
footer {
  background-color: var(--night-blue);
  color: var(--text-color-light);
  padding: 60px 0;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--gold);
  position: relative;
  padding-bottom: 10px;
}
.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}
.footer-column p, .footer-column li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.footer-column i {
  margin-right: 10px;
  color: var(--accent-color);
}
.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.quick-links li a {
  transition: color 0.3s, padding-left 0.3s;
}
.quick-links li a:hover, .quick-links li a:focus {
  color: var(--accent-color);
  padding-left: 5px;
}
.social-icons a {
  font-size: 1.5rem;
  margin-right: 15px;
  transition: color 0.3s, transform 0.3s;
  color: var(--accent-color);
}
.social-icons a:hover, .social-icons a:focus {
  color: #fff;
  transform: translateY(-3px);
}
/* Botão "Saiba Mais" do rodapé - estilo discreto */
.btn-footer {
  display: inline-block;
  padding: 8px 20px;
  background-color: transparent;
  color: var(--gold);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  border: 1px solid var(--gold);
  cursor: pointer;
  margin-top: 12px;
}
.btn-footer:hover, .btn-footer:focus {
  background-color: var(--gold);
  color: var(--night-blue);
  border-color: var(--gold);
  outline: none;
}

/* ========== POSTS ========== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0 60px 0;
  min-height: auto;
}
/* Grid columns será controlado pelo Customizer via CSS inline */
/* Remove grid em páginas individuais (apenas quando body é single/page) */
body.single .posts-grid,
body.page .posts-grid {
  display: block;
  margin: 0;
}
.post-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
/* Em páginas individuais (body.single/body.page), remove limitações e ocupa toda largura */
  body.single .post-item,
  body.page .post-item {
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
  }
  /* Ajuste da imagem destacada no mobile */
  body.single .post-thumbnail img,
  body.page .post-thumbnail img {
    height: 250px;
  }
.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
/* Remove hover effect em páginas individuais */
body.single .post-item:hover,
body.page .post-item:hover {
  transform: none;
  box-shadow: none;
}
.post-thumbnail {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #00296b 0%, #003d99 100%);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
}
/* Link ao redor da imagem: preencher o container para não sobrar borda (fundo azul) */
.post-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.post-thumbnail img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s;
  display: block;
}
/* Placeholder quando não há imagem */
.post-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--night-blue) 0%, var(--blue-secondary) 100%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 3rem;
  transition: all 0.3s;
}
.post-thumbnail-placeholder i {
  opacity: 0.5;
  transition: opacity 0.3s;
}
.post-item:hover .post-thumbnail-placeholder {
  background: linear-gradient(135deg, var(--blue-secondary) 0%, var(--night-blue) 100%);
  color: rgba(255, 255, 255, 0.8);
}
.post-item:hover .post-thumbnail-placeholder i {
  opacity: 0.8;
  transform: scale(1.1);
  transition: transform 0.3s, opacity 0.3s;
}
/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* Imagem destacada em posts/páginas individuais - largura máxima, corta na altura (16:9) */
body.single .post-thumbnail,
body.page .post-thumbnail,
body.single-event .post-thumbnail {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
}
body.single .post-thumbnail img,
body.page .post-thumbnail img,
body.single-event .post-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}
.post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}
/* Remove hover effect (zoom) na imagem destacada em posts/páginas/eventos individuais */
body.single .post-item:hover .post-thumbnail img,
body.page .post-item:hover .post-thumbnail img,
body.single .post-thumbnail img:hover,
body.page .post-thumbnail img:hover,
body.single-event .event-featured-image img,
body.single-event .event-featured-image img:hover,
body.single-next_event .event-featured-image img,
body.single-next_event .event-featured-image img:hover {
  transform: none;
}
.entry-header {
  padding: 24px 24px 16px 24px;
}
.entry-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--night-blue);
  line-height: 1.3;
}
.entry-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.entry-title a:hover {
  color: var(--blue-secondary);
}
.entry-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
  display: block;
}
.entry-content {
  padding: 0 0 24px 0;
  max-width: 100%;
  width: 100%;
}
/* Restaura padding left/right no post-grid (listagem de posts) */
.posts-grid .entry-content,
.post-item .entry-content {
  padding: 0 24px 24px 24px;
}
.entry-content p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #555;
}
.entry-content p:last-of-type {
  margin-bottom: 20px;
}

/* Links dentro de posts/páginas: destaque para o usuário identificar como clicável (exclui botões) */
.entry-content a:not(.read-more):not(.btn) {
  color: var(--night-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}
.entry-content a:not(.read-more):not(.btn):hover,
.entry-content a:not(.read-more):not(.btn):focus {
  color: var(--gold);
}
.entry-content a:not(.read-more):not(.btn):focus {
  outline: 2px solid var(--night-blue);
  outline-offset: 2px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  max-width: 100%;
}
/* Páginas individuais - container mantém max-width do Customizer */
.single-post {
  width: 100%;
}
body.single-post article,
body.page article,
body.single article,
body.page article {
  max-width: 100%;
  width: 100%;
}
/* Garante que o conteúdo em posts/páginas individuais ocupe toda largura (apenas body.single/body.page) */
body.single .entry-content,
body.page .entry-content {
  max-width: 100%;
  width: 100%;
  padding: 0 0 24px 0; /* Remove padding left/right em posts individuais */
}
body.single .entry-header,
body.page .entry-header {
  max-width: 100%;
  width: 100%;
  padding: 20px 0;
}

/* ========== EVENT SINGLE ========== */
/* Alinhado ao padrão das outras páginas: sem card, sem borda/sombra */
.event-single {
  max-width: 100%;
  margin: 0 0 40px 0;
  padding: 0;
}
.event-single .entry-header {
  padding: 0;
  margin-bottom: 24px;
}
.event-single .entry-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--night-blue);
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 24px 0;
  padding: 0;
  background: transparent;
}
.event-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--night-blue);
  font-weight: 500;
}
.event-meta-item i {
  color: var(--gold);
}
.event-featured-image {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.event-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Flyer do evento: imagem inteira (formato retrato), sem corte — especificidade alta para não ser sobrescrito */
/* Flyer: imagem inteira (próximos eventos), sem corte */
body.single-next_event .event-featured-image--flyer {
  aspect-ratio: unset;
  overflow: visible;
  max-width: 100%;
  width: auto;
  text-align: center;
}
body.single-next_event .event-featured-image--flyer img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0;
  object-fit: unset !important;
  object-position: unset;
  display: block;
  margin: 0 auto;
}

/* Últimos eventos: imagem destacada sem margin-top para o conteúdo não ficar baixo demais */
body.single-past_event .event-featured-image,
body.single-past_event .event-featured-image.event-featured-image--flyer {
  margin-top: 0;
}

/* Desktop: imagem destacada do evento (outros singles) em largura total */
@media (min-width: 769px) {
  body.single-event .event-featured-image {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    aspect-ratio: 2 / 1;
  }
  body.single-event .event-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  body.single-event {
    overflow-x: hidden;
  }
}

.event-map {
  margin: 40px 0;
}
.event-map h3 {
  margin-bottom: 20px;
  color: var(--night-blue);
}
.event-single .entry-content {
  padding: 0;
  margin: 30px 0;
}
.event-single .entry-content p {
  margin-bottom: 15px;
}
.event-single .entry-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Descrição completa do evento */
.event-content {
  margin: 32px 0;
  line-height: 1.8;
  color: #555;
}
.event-content p {
  margin-bottom: 16px;
}
.event-content p:last-child {
  margin-bottom: 0;
}

/* Botões de link externo e download */
.event-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}
.event-extras__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.event-extras__btn i {
  font-size: 0.9em;
}

/* Página de evento: fundo neutro (remove fundo azul atrás da navegação Anterior/Próximo) */
body.single-event .site-content,
body.single-event main,
body.single-event .entry-footer,
body.single-event .post-navigation,
body.single-next_event .site-content,
body.single-next_event main,
body.single-next_event .entry-footer,
body.single-next_event .post-navigation,
body.single-past_event .site-content,
body.single-past_event main,
body.single-past_event .entry-footer,
body.single-past_event .post-navigation {
  background: #fdfdfd !important;
}

/* ========== GALERIAS DO WORDPRESS ========== */
/* Galeria padrão do WordPress */
.gallery,
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 30px 0;
  list-style: none;
  padding: 0;
}
.gallery-item,
.wp-block-image {
  margin: 0;
  padding: 0;
  position: relative;
}
.gallery-item img,
.wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover img,
.wp-block-image:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Esconder figcaption nas galerias */
.gallery figcaption,
.gallery-item figcaption,
.wp-block-gallery figcaption,
.wp-block-image figcaption {
  display: none !important;
}
/* Galeria com colunas específicas */
.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}
/* Galeria em Último Evento: colunas definidas em Aparência → Personalizar → Galeria (Últimos Eventos) */
.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}
.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}
.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}
.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}
.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}
/* Responsivo para galerias */
@media (max-width: 992px) {
  .gallery-columns-4,
  .gallery-columns-5,
  .gallery-columns-6,
  .gallery-columns-7,
  .gallery-columns-8,
  .gallery-columns-9 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .gallery,
  .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery-columns-3,
  .gallery-columns-4,
  .gallery-columns-5,
  .gallery-columns-6,
  .gallery-columns-7,
  .gallery-columns-8,
  .gallery-columns-9 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery,
  .wp-block-gallery {
    grid-template-columns: 1fr;
  }
  .gallery-columns-2,
  .gallery-columns-3,
  .gallery-columns-4,
  .gallery-columns-5,
  .gallery-columns-6,
  .gallery-columns-7,
  .gallery-columns-8,
  .gallery-columns-9 {
    grid-template-columns: 1fr;
  }
}

/* ========== CONTACT FORM 7 ========== */
.wpcf7 {
  max-width: 640px;
  margin: 0 0 2rem 0;
  font-family: 'Poppins', sans-serif;
}
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Fallback: espaçamento base para todos os parágrafos do formulário */
.wpcf7-form > p {
  margin-bottom: 0.5rem;
}
/* Parágrafo que contém apenas o rótulo (texto do campo) */
.wpcf7-form > p:not(:has(.wpcf7-form-control-wrap)) {
  margin: 0 0 6px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--night-blue);
  line-height: 1.4;
}
/* Parágrafo que contém o input/textarea */
.wpcf7-form > p:has(.wpcf7-form-control-wrap) {
  margin: 0 0 1.25rem 0;
}
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
/* Campos de texto e email */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-tel:focus {
  outline: none;
  border-color: var(--blue-secondary);
  box-shadow: 0 0 0 3px rgba(0, 63, 136, 0.12);
}
.wpcf7-form-control.wpcf7-text::placeholder,
.wpcf7-form-control.wpcf7-email::placeholder,
.wpcf7-form-control.wpcf7-tel::placeholder {
  color: #999;
}
/* Textarea */
.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  max-width: 100%;
  min-height: 140px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.wpcf7-form-control.wpcf7-textarea:focus {
  outline: none;
  border-color: var(--blue-secondary);
  box-shadow: 0 0 0 3px rgba(0, 63, 136, 0.12);
}
/* Botão enviar – alinhado ao tema */
.wpcf7-form-control.wpcf7-submit {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--night-blue);
  background: var(--gold);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
  margin-top: 0.5rem;
}
.wpcf7-form-control.wpcf7-submit:hover,
.wpcf7-form-control.wpcf7-submit:focus {
  background: var(--night-blue);
  color: var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* Spinner ao enviar */
.wpcf7-spinner {
  margin-left: 10px;
  vertical-align: middle;
}
/* Mensagem de resposta (sucesso/erro) */
.wpcf7-response-output {
  margin: 1.5rem 0 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 6px;
  font-size: 0.95rem;
  border: 2px solid transparent !important;
}
.wpcf7-form.sent .wpcf7-response-output {
  border-color: #2e7d32 !important;
  background: #e8f5e9;
  color: #1b5e20;
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  border-color: #c62828 !important;
  background: #ffebee;
  color: #b71c1c;
}
/* Campo com erro de validação */
.wpcf7-form-control.wpcf7-not-valid {
  border-color: #c62828 !important;
  background: #fff5f5;
}
.wpcf7-form-control.wpcf7-not-valid:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}
/* Esconder lista de erros do screen reader se vazia (mantém acessibilidade) */
.wpcf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== NAVEGAÇÃO DE POSTS (Anterior/Próximo) ========== */
.post-navigation,
.navigation.post-navigation {
  margin: 60px 0 40px 0;
  padding: 30px 0;
  width: 100%;
}
.post-navigation .nav-links,
.navigation.post-navigation .nav-links {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 30px !important;
  align-items: stretch;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Garantir que os elementos filhos do grid ocupem 50% cada */
.post-navigation .nav-links > div,
.navigation.post-navigation .nav-links > div {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
.post-navigation .nav-previous,
.post-navigation .nav-next,
.navigation.post-navigation .nav-previous,
.navigation.post-navigation .nav-next {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 5px !important;
}
.post-navigation .nav-previous,
.navigation.post-navigation .nav-previous {
  text-align: left;
}
.post-navigation .nav-next,
.navigation.post-navigation .nav-next {
  text-align: right;
  border-left: none;
}
.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.85rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.post-navigation .nav-title {
  font-size: 0.95rem;
  color: var(--night-blue);
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.3s;
  /* Limita a 2 linhas e adiciona ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  word-wrap: break-word;
  min-height: 2.85em; /* Garante altura mínima para 2 linhas */
  max-width: 100%;
  width: 100%;
}
.post-navigation a,
.navigation.post-navigation a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
  height: 100%;
  min-height: 100px;
  width: 100%;
  box-sizing: border-box;
}
.post-navigation a:hover,
.post-navigation a:focus {
  background: var(--light-gray);
  border-color: var(--night-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.post-navigation a:hover .nav-title,
.post-navigation a:focus .nav-title {
  color: var(--blue-secondary);
}
.post-navigation .nav-previous a {
  text-align: left;
}
.post-navigation .nav-next a {
  text-align: right;
}
@media (max-width: 768px) {
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .post-navigation .nav-next {
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    padding-left: 0;
    margin-top: 20px;
  }
  .post-navigation .nav-previous {
    padding-right: 0;
  }
  .post-navigation .nav-previous a,
  .post-navigation .nav-next a {
    text-align: center;
    min-height: 80px;
  }
  .post-navigation .nav-title {
    -webkit-line-clamp: 3;
    min-height: 4.275em; /* 3 linhas no mobile */
    text-align: center;
  }
}

/* ========== PAGINAÇÃO ========== */
.pagination,
.posts-navigation {
  margin: 60px 0 40px 0;
  padding: 0;
  text-align: center;
  width: 100%;
}
/* Navegação genérica - mas não para post-navigation */
.navigation:not(.post-navigation) {
  margin: 60px 0 40px 0;
  padding: 0;
  text-align: center;
  width: 100%;
}
.pagination .nav-links,
.posts-navigation .nav-links,
.navigation:not(.post-navigation) .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination .page-numbers,
.posts-navigation .page-numbers,
.navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--white);
  color: var(--night-blue);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
  font-weight: 500;
}
.pagination .page-numbers:hover,
.posts-navigation .page-numbers:hover,
.navigation .page-numbers:hover,
.pagination .page-numbers:focus,
.posts-navigation .page-numbers:focus,
.navigation .page-numbers:focus {
  background: var(--night-blue);
  color: var(--white);
  border-color: var(--night-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.pagination .page-numbers.current,
.posts-navigation .page-numbers.current,
.navigation .page-numbers.current {
  background: var(--gold);
  color: var(--night-blue);
  border-color: var(--gold);
  font-weight: 600;
}
.pagination .page-numbers.dots,
.posts-navigation .page-numbers.dots,
.navigation .page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}
.pagination .page-numbers.dots:hover,
.posts-navigation .page-numbers.dots:hover,
.navigation .page-numbers.dots:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Data nos links de navegação de eventos */
.event-navigation .nav-title {
  display: block;
}
.event-navigation .nav-date {
  display: block;
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 2px;
}

/* Ajuste: não forçar altura mínima grande nos títulos da navegação de eventos */
.event-navigation .nav-title {
  min-height: 0;
  -webkit-line-clamp: unset;
}

/* ========== ANIMAÇÕES ========== */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}
.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1200px) {
  .simple-slider__btn.prev { left: 22px; }
  .simple-slider__btn.next { right: 22px; }
  .simple-slide { height: 600px; }
}
@media (max-width: 992px) {
  .site-content { padding-top: 0; }
  .simple-slider__btn.prev { left: 18px; }
  .simple-slider__btn.next { right: 18px; }
  /* Em telas de tablet, deixar a altura do slide se ajustar à imagem para reduzir barras superior/inferior */
  .simple-slide {
    height: auto;
  }
  .simple-slide img {
    height: auto;
    object-fit: contain;
  }
  .news-recent .container { grid-template-columns: 1fr; gap: 50px; }
  /* Localização: mapas em coluna única no mobile */
  .location-maps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .news-two-cols { grid-template-columns: 1fr; gap: 40px; }
  .content-block { margin-bottom: 40px; }
  .content-block:last-child { margin-bottom: 0; }
  .history-content { grid-template-columns: 1fr; }
  .history-image { order: -1; margin-bottom: 30px; }
}
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --topbar-height: 85px;
  }
  body {
    padding-top: 0;
  }
  /* Quando o menu mobile está aberto, impedir scroll do conteúdo por trás */
  body.menu-mobile-open {
    overflow: hidden;
  }
  /* Nas outras páginas (não home), adiciona padding para o header/topbar no mobile */
  body:not(.home) {
    padding-top: calc(var(--header-height) + var(--topbar-height));
  }
  .container {
    padding: 0 20px;
  }
  /* Ajuste de espaçamento no mobile - será controlado pelo Customizer */
  body.admin-bar .topbar {
    top: 46px; /* Barra do admin maior no mobile */
  }
  body.admin-bar .header {
    top: calc(var(--topbar-height) + 46px);
  }
  body.admin-bar:not(.home) {
    padding-top: calc(var(--header-height) + var(--topbar-height) + 46px);
  }
  .topbar {
    flex-direction: column;
    height: var(--topbar-height);
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .topbar__left {
    width: 100%;
    justify-content: center;
    margin-bottom: 5px;
    order: 1;
  }
  .topbar__left small {
    white-space: nowrap;
    font-size: 0.85rem;
  }
  .topbar__right {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
    order: 2;
  }
  .topbar__search, .topbar__cta {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
  /* Esconder topbar quando menu mobile estiver aberto */
  body.menu-mobile-open .topbar {
    display: none !important;
  }
  body.menu-mobile-open .header {
    top: 0 !important;
  }
  body.menu-mobile-open:not(.home) {
    padding-top: var(--header-height) !important;
  }
  body.menu-mobile-open.admin-bar:not(.home) {
    padding-top: calc(var(--header-height) + 46px) !important;
  }
  body.menu-mobile-open.admin-bar .header {
    top: 46px !important;
  }
  .header__menu-toggle { display: block; }
  .header nav,
  .header__nav {
    display: block;
  }
  .header__nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--night-blue);
    flex-direction: column;
    /* No mobile o menu deve começar do topo para não “sumir” quando submenus abrem */
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.2rem;
    transition: right 0.45s;
    padding: 2rem 0 2rem 0; /* Espaçamento superior e inferior para melhor UX */
    z-index: 1250;
    overflow-y: auto;              /* Permite rolar a lista de itens no mobile */
    -webkit-overflow-scrolling: touch; /* Scroll mais suave em iOS/Android */
  }
  .header__nav-menu.active { 
    right: 0;
    visibility: visible !important;
    opacity: 1 !important;
  }
  /* Itens principais no mobile: uma coluna só, todos centralizados */
  .header__nav-menu > li {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .header__nav-menu .header__nav-link { 
    font-size: 1.2rem !important; /* Um pouco maior que o desktop, mas mais discreto */
    color: var(--white);
    white-space: normal;
    text-align: center;
    width: 100%;
    justify-content: center;
  }
  /* No mobile, menu sempre em coluna única */
  .header__nav-menu {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  /* Remover pipe (|) entre itens do menu no mobile */
  .header__nav-menu > li:not(:last-child)::after,
  .header__nav-menu:has(> li:nth-child(8)) > li:not(:last-child)::after,
  .header__nav-menu:has(> li:nth-child(10)) > li:not(:last-child)::after,
  .header__nav-menu:has(> li:nth-child(12)) > li:not(:last-child)::after {
    display: none;
    content: none;
  }
  /* Logo size será controlado pelo Customizer via CSS inline */
  .header__logo img,
  .header__logo-img {
    width: auto;
    height: auto;
  }
  /* Dropdown no mobile: item pai e filhos em coluna única */
  .header__dropdown {
    position: static !important;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .header__dropdown .header__dropdown-menu {
    position: relative !important; /* Mudado de static para relative para permitir fade absoluto */
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    display: none;
    margin-top: 8px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px 0;
    border-radius: 4px;
    width: 100% !important;
    min-width: auto !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .header__dropdown .header__dropdown-menu.active { 
    display: block !important; 
  }
  /* Garantir que os elementos de fade funcionem no mobile também */
  .header__dropdown-menu .fade-top {
    position: sticky;
    top: -8px; /* Compensar o padding do menu no mobile (8px) */
    height: calc(30px + 8px); /* Altura do fade + padding para cobrir completamente */
    transition: opacity 0.2s ease; /* Sem transição de height para evitar piscar */
    overflow: hidden;
  }
  .header__dropdown-menu .fade-bottom {
    position: sticky;
    bottom: -8px; /* Compensar o padding do menu no mobile (8px) */
    height: calc(30px + 8px); /* Altura do fade + padding para cobrir completamente */
    transition: opacity 0.2s ease; /* Sem transição de height para evitar piscar */
    overflow: hidden;
  }
  .header__dropdown .header__nav-link { 
    justify-content: center;
    width: 100%;
  }
  /* Remover barra amarela no hover no mobile */
  .header__nav-link::after {
    display: none !important;
  }
  /* No mobile: seta só vira no clique, não no hover */
  .header__dropdown:hover .header__dropdown-icon {
    transform: none !important;
  }
  /* Item pai quando expandido - destaque visual mais claro */
  .header__dropdown.active > .header__nav-link {
    background: rgba(255, 255, 255, 0.15);
    color: var(--gold) !important;
    font-weight: 600;
    border-radius: 4px;
  }
  /* Seta para direita (→) vira para baixo (↓) quando expandido no mobile */
  .header__dropdown.active > .header__nav-link .header__dropdown-icon,
  .header__dropdown.active .header__dropdown-icon.active,
  .header__dropdown-icon.active {
    transform: rotate(90deg) !important;
  }
  /* Subitens indentados abaixo do pai */
  .header__dropdown-menu li {
    margin: 0;
    padding-left: 20px;
    width: 100%;
    display: block;
  }
  .header__dropdown-menu li a {
    padding: 0.8rem 1rem;
    font-size: 1.05rem !important; /* Pequeno aumento em relação ao desktop */
    position: relative;
    width: 100%;
    display: block;
  }
  /* Remover ícone ::before dos subitens */
  .header__dropdown-menu li a::before {
    display: none;
    content: none;
  }
  /* No mobile, deixar bem próximo da borda */
  .simple-slider__btn.prev { left: 10px; }
  .simple-slider__btn.next { right: 10px; }
  /* Em telas de celular, ajustar altura do slide à imagem para praticamente eliminar as barras */
  .simple-slide {
    height: auto;
  }
  .simple-slide img {
    height: auto;
    object-fit: contain;
  }
  /* Botões um pouco menores no mobile */
  .simple-slider__btn { width: 32px; height: 32px; }
  .simple-slider__dots button { width: 10px; height: 10px; }
  h2.section-title { font-size: 2rem; }
  .history-content { gap: 30px; }
  .news-item { 
    flex-direction: column; 
    gap: 10px; 
    margin-bottom: 20px;
  }
  .news-item a {
    flex-direction: column;
    padding: 12px;
  }
  .news-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .news-item-content {
    width: 100%;
  }
  .news-item-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .news-item-content .date {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  .read-more {
    font-size: 0.9rem;
    padding: 8px 20px;
    width: 100%;
    text-align: center;
    display: block;
  }
  .content-block h3,
  .news-recent__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }
  .news-recent .container {
    gap: 40px;
  }
  .news-two-cols {
    gap: 30px;
  }
  .history-image img { width: 100%; }
  .hero-content h1 { font-size: 2.6rem; margin-bottom: 1rem; }
  .event-single {
    margin-bottom: 32px;
  }
  .event-meta {
    flex-direction: column;
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator i { animation: none; }
  .fade-in-element, .simple-slider__track, .header__nav-link::after, .topbar__cta, .btn { transition: none; }
}
