/*
Theme Name:   SITRAAMIRR Child
Theme URI:    https://sitraam.org.br
Description:  Tema child moderno para o SITRAAMIRR – design idêntico ao protótipo HTML aprovado. Baseado no tema Total (WPExplorer).
Author:       Vanessa Perote
Author URI:   https://sitraam.org.br
Template:     wpex-status
Version:      1.2.27
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  sitraamirr-child
*/

/* ================================================================
   GOOGLE FONTS — Playfair Display | DM Sans | DM Mono
   ================================================================ */

/* ================================================================
   OVERRIDE wpex-status — neutraliza estilos conflitantes do pai
   ================================================================ */
#wrap, #main, #content-wrap, .container-wrap,
.wpex-row, .vc_row, .wpb_row {
  margin: 0 !important; padding: 0 !important;
  max-width: none !important; float: none !important;
}
body, body.wpex-custom-font, .total-theme body {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #1e1a16 !important;
}
#site-header.fixed-scroll, #site-header.sticky-style, .vcex-sticky-header { position: static !important; }
.wpex-animated, [data-animation] { animation: none !important; opacity: 1 !important; transform: none !important; }
body.has-fixed-header, body.wpex-has-fixed-header { padding-top: 0 !important; }
a { color: inherit; text-decoration: none; }

/* Busca nativa do Total no header (se ativa no customizer) */
#site-header .searchform_wrap,
#site-header form.searchform,
#site-header .wpex-mobile-search,
#site-header .header-aside .widget_search,
#site-header .header-two-aside .widget_search {
  display: none !important;
}

/* ================================================================
   DESIGN SYSTEM
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* — Cores extraídas da logo — */
  --red:          #c0281c;
  --red-dark:     #8b1a1a;
  --red-light:    #e03526;
  --navy:         #1a2b5e;
  --navy-light:   #253a7a;
  --cream:        #f5f0ea;
  --white:        #ffffff;
  --gray-50:      #f8f7f5;
  --gray-100:     #f0ede8;
  --gray-200:     #e2ddd6;
  --gray-400:     #9a9088;
  --gray-600:     #6b6358;
  --gray-800:     #2e2820;
  --gold:         #c8920a;
  --gold-light:   #f0b429;
  --text:         #1e1a16;
  --text-muted:   #6b6358;
  --border:       rgba(0,0,0,.09);

  /* — Sombras — */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,.11);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.15);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.18);

  /* — Raios — */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  18px;
  --radius-xl:  28px;
  --radius-2xl: 22px;

  --surface-elevated: #ffffff;
  --surface-muted:    #f3f1ed;
  --border-strong:    rgba(26, 43, 94, 0.12);
  --shadow-editorial: 0 4px 28px rgba(26, 43, 94, 0.07);

  /* — Tipografia: sm = 1rem; títulos (--text-md … --text-6xl) maiores — */
  --text-xs:    0.8125rem;  /* ~14px — notas / meta */
  --text-sm:    1rem;       /* ~17px — UI secundária / navegação */
  --text-base:  1rem;       /* ~17px — corpo */
  --text-md:    1.125rem;   /* ~19px — subtítulos / destaques */
  --text-lg:    1.375rem;   /* ~23px */
  --text-xl:    1.5625rem;  /* ~27px */
  --text-2xl:   1.75rem;    /* ~30px */
  --text-3xl:   2rem;       /* ~34px */
  --text-4xl:   2.25rem;    /* ~38px */
  --text-5xl:   2.5rem;     /* ~43px */
  --text-6xl:   2.875rem;   /* ~49px — teto hero */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* — Espaçamento — */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;
  --space-4: 16px; --space-5: 20px;  --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px;

  /* — Transições — */
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast:   160ms;
  --dur-base:   280ms;
  --dur-slow:   440ms;

  /* Altura aproximada do bloco fixo acima do overlay do menu (topbar + header); safe-area e admin bar somam-se no padding-top */
  --sitra-header-offset: 168px;
}

/* ── BASE ─────────────────────────────────────────────────────── */
/* 17px na raiz: corpo ~1rem (~17px); rem alinha Chrome/Edge. */
html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Overlay de carregamento (navegação + primeira pintura) */
.sitra-page-loader {
  position: fixed;
  inset: 0;
  z-index: 550000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 240, 234, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.sitra-page-loader--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear 0s;
}
.sitra-page-loader__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-10);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-editorial);
}
.sitra-page-loader__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--gray-200);
  border-top-color: var(--red);
  border-right-color: var(--navy);
  animation: sitra-spin 0.75s linear infinite;
}
.sitra-page-loader__label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
@keyframes sitra-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sitra-page-loader__spinner {
    animation: none;
    border-top-color: var(--red);
    border-right-color: var(--red);
  }
  .sitra-page-loader,
  .sitra-page-loader--active {
    transition: none;
  }
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ── CONTAINER ────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── BADGE ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: .02em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  gap: var(--space-4);
}
.topbar-contact {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.topbar-contact a {
  color: rgba(255,255,255,.7);
  transition: color var(--dur-fast);
}
.topbar-contact a:hover { color: #fff; }
.topbar-social { display: flex; gap: var(--space-2); }
.topbar-social a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}
.topbar-social a:hover { background: var(--red); }
.topbar-social svg { width: 13px; height: 13px; fill: white; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  /* Acima de títulos / linhas do Total e Visual Composer (submenu por cima do conteúdo) */
  z-index: 500000 !important;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-out);
  overflow: visible;
  isolation: auto;
}
html.admin-bar header.site-header,
html.admin-bar header {
  /* Abaixo da admin bar do WP (z-index 99999) para não bloquear o menu do editor */
  z-index: 99990 !important;
}

/*
 * Fancybox (p.ex. BestWebSoft Gallery): o header sticky usa z-index 500000,
 * o plugin fixa o lightbox em ~100000 — as setas ficam invisíveis por baixo do menu.
 */
.fancybox-container {
  z-index: 600000 !important;
}
header.scrolled { box-shadow: var(--shadow-md); }

/* Duas linhas: marca + redes | menu + CTA */
.header-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  min-height: 60px;
  position: relative;
  z-index: 2;
}
.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
}
.header-social a,
.header-social__link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.header-social a:hover,
.header-social__link:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-2px);
}
.header-social__link.is-placeholder {
  opacity: 0.45;
  cursor: pointer;
}
.header-nav-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-2) 0 var(--space-3);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
.header-nav-row #site-nav {
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 2px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
  text-decoration: none;
}
.logo-link img {
  width: 54px; height: 54px;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5px var(--red);
  transition: transform var(--dur-base) var(--ease-spring);
}
.logo-link:hover img { transform: scale(1.06) rotate(-2deg); }
.logo-text { line-height: 1.2; }
.logo-text strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  display: block;
  letter-spacing: -.01em;
}
.logo-text span {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
  line-height: 1.35;
  max-width: 22em;
}

/* Nav principal */
#site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  position: relative;
  z-index: 50;
}
.nav-item {
  position: relative;
  z-index: 1;
}
.nav-item:hover,
.nav-item.is-open {
  z-index: 100000;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.25;
}
.nav-link svg {
  width: 12px; height: 12px;
  opacity: .4;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
  flex-shrink: 0;
}
.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--text);
  background: var(--gray-50);
}
/* Mão de clique em itens do menu que são links reais (evita cursor “proibido” em alguns navegadores) */
#site-nav a.nav-link {
  cursor: pointer;
}
.nav-item:hover > .nav-link svg { transform: rotate(180deg); opacity: .7; }

/* Dropdown — sem “buraco” entre o link e o painel (o rato não perde o :hover) */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding-top: 12px;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(.99);
  transform-origin: top left;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  z-index: 500020;
}
.nav-item:hover .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.dropdown ul {
  list-style: none;
  padding: var(--space-2);
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: var(--text-sm);
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
  font-weight: 400;
  line-height: 1.4;
}
.dropdown a:hover { background: var(--gray-50); color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-cta {
  background: var(--red);
  color: white !important;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--dur-fast),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base);
  letter-spacing: .01em;
}
.header-cta:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192,40,28,.3);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1a40 100%);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 70% at 72% 50%, rgba(192,40,28,.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(26,43,94,.5) 0%, transparent 50%);
  pointer-events: none;
}
/* Geometric accent rings */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 80px solid rgba(255,255,255,.025);
  pointer-events: none;
}
.hero-ring {
  position: absolute;
  bottom: -80px; right: 60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
  padding: var(--space-16) 0 var(--space-20);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(192,40,28,.2);
  border: 1px solid rgba(192,40,28,.4);
  color: rgba(255,255,255,.9);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: var(--space-5);
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-light);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.65vw + 0.4rem, var(--text-6xl));
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: var(--space-3);
  max-width: 26rem;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }

.hero-lead {
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255,255,255,.58);
  line-height: 1.62;
  max-width: 34rem;
  margin-bottom: var(--space-5);
}

.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.btn-primary {
  background: var(--red);
  color: white !important;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: .02em;
  transition: background var(--dur-fast),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(192,40,28,.38);
}
.btn-primary svg { transition: transform var(--dur-base) var(--ease-spring); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.88) !important;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.btn-outline:hover {
  border-color: white;
  color: white !important;
  background: rgba(255,255,255,.08);
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-lbl {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}
.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(0,0,0,.4);
}
.hero-card-img { width: 100%; height: 250px; object-fit: cover; opacity: .88; }
.hero-card-body { padding: 18px 22px 22px; }
.hero-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
  line-height: 1.38;
  margin: var(--space-3) 0 var(--space-2);
  letter-spacing: -.01em;
}
.hero-card-meta {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.52);
  font-family: var(--font-mono);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-light) !important;
  transition: gap var(--dur-base) var(--ease-out);
}
.hero-card-link:hover { gap: 12px; }

/* ═══════════════════════════════════════════════════════════════
   SINDICALIZE BANNER
   ═══════════════════════════════════════════════════════════════ */
.sindic-banner {
  background: linear-gradient(100deg, var(--red-dark) 0%, var(--red) 45%, #d4481a 100%);
  padding: 22px 0;
  position: relative;
  overflow: hidden;
}
.sindic-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent 0px, transparent 20px,
    rgba(255,255,255,.015) 20px, rgba(255,255,255,.015) 40px
  );
  pointer-events: none;
}
.sindic-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}
.sindic-text { display: flex; align-items: center; gap: var(--space-4); }
.sindic-text svg { width: 40px; height: 40px; flex-shrink: 0; }
.sindic-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.sindic-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.78);
  margin-top: 4px;
  line-height: 1.5;
}
.sindic-cta {
  background: white;
  color: var(--red) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: background var(--dur-fast),
              transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base);
  flex-shrink: 0;
  letter-spacing: .01em;
}
.sindic-cta:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

/* ═══════════════════════════════════════════════════════════════
   QUICK LINKS
   ═══════════════════════════════════════════════════════════════ */
.quick-links {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}
.quick-links-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-links-inner::-webkit-scrollbar { display: none; }
.quick-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
  flex-shrink: 0;
  text-decoration: none;
}
.quick-link:hover { background: var(--white); color: var(--navy); }
.quick-link svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: var(--red);
  transition: transform var(--dur-base) var(--ease-spring);
}
.quick-link:hover svg { transform: scale(1.2); }

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════════ */
#sitra-main-wrap, .main-wrap { padding: var(--space-16) 0; }
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
}
.main-layout.main-layout--no-sidebar {
  grid-template-columns: 1fr;
  max-width: none;
}

.page-canvas {
  padding: var(--space-10) 0 var(--space-16);
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--cream) 38%, var(--gray-50) 100%);
  position: relative;
  z-index: 0;
}
.page-inner {
  max-width: 52rem;
  margin: 0 auto;
}
.page-article {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-editorial);
  overflow: hidden;
}
.page-article .page-header {
  padding: var(--space-8) var(--space-8) var(--space-6);
  background: linear-gradient(180deg, rgba(26, 43, 94, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.page-article .page-content {
  padding: 0 var(--space-8) var(--space-10);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw + 0.5rem, var(--text-4xl));
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.page-title::before {
  content: '';
  width: 5px;
  min-height: 1.15em;
  margin-top: 0.12em;
  flex-shrink: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
}
.page-content {
  font-size: var(--text-base);
  line-height: 1.72;
  color: var(--gray-800);
  padding-top: var(--space-8);
}
.page-article .page-content > *:first-child {
  margin-top: 0;
}
/* Blocos comuns em páginas institucionais (WP / builder) */
.page-article .page-content h2,
.page-article .entry-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin: 2.25rem 0 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.22;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.page-article .page-content h3,
.page-article .entry-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
  letter-spacing: -0.015em;
}
.page-article .page-content h4,
.page-article .entry-content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin: 1.35rem 0 0.4rem;
}
.page-article .page-content p,
.page-article .entry-content p {
  margin-bottom: 1.35rem;
}
.page-article .page-content a,
.page-article .entry-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.page-article .page-content a:hover,
.page-article .entry-content a:hover {
  color: var(--red-dark);
}
.page-article .page-content ul,
.page-article .page-content ol,
.page-article .entry-content ul,
.page-article .entry-content ol {
  padding-left: 1.35rem;
  margin: 0 0 1.35rem;
}
.page-article .page-content li,
.page-article .entry-content li {
  margin-bottom: 0.45rem;
}
.page-article .page-content blockquote,
.page-article .entry-content blockquote {
  border-left: 4px solid var(--red);
  padding: var(--space-4) var(--space-5);
  margin: 1.75rem 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}
.page-article .page-content hr,
.page-article .entry-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: var(--space-8) 0;
}
.page-article .page-content table,
.page-article .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}
.page-article .page-content th,
.page-article .page-content td,
.page-article .entry-content th,
.page-article .entry-content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.page-article .page-content th,
.page-article .entry-content th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-article .page-content tr:nth-child(even) td,
.page-article .entry-content tr:nth-child(even) td {
  background: var(--gray-50);
}
.page-article .page-content img,
.page-article .entry-content img {
  border-radius: var(--radius);
  height: auto;
  max-width: 100%;
}
.page-article .page-content .wp-block-image,
.page-article .entry-content .wp-block-image {
  margin: 1.75rem 0;
}
.page-article .page-content .alignwide,
.page-article .entry-content .alignwide {
  max-width: none;
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
}
@media (max-width: 640px) {
  .page-article .page-header,
  .page-article .page-content {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
  .page-title {
    font-size: var(--text-2xl);
  }
  .page-article .page-content .alignwide,
  .page-article .entry-content .alignwide {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Conteúdo (Total / VC): z-index baixo para o submenu do header ficar por cima (single galeria não é body.page) */
body.page #wrap,
body.page #main,
body.page .wpex-content,
body.page .content-area,
body.single #wrap,
body.single #main,
body.single #content,
body.single #primary,
body.single #content-wrap,
body.single .container-wrap,
body.single .wpex-content,
body.single .wpex-main,
body.single .content-area,
body.single article.post,
body.single article[class*="type-"] {
  position: relative;
  z-index: 0;
}
body.archive #wrap,
body.archive #main,
body.archive .wpex-content,
body.archive .content-area,
body.sitra-gallery-archive #wrap,
body.sitra-gallery-archive #main,
body.sitra-gallery-archive .wpex-content,
body.sitra-gallery-archive .content-area,
body.tax-gallery_categories #wrap,
body.tax-gallery_categories #main,
body.tax-gallery_categories .wpex-content,
body.tax-gallery_categories .content-area {
  position: relative;
  z-index: 0;
}

/* Single: rows do Visual Composer / Elementor com z-index alto cobriam o submenu */
body.single .vc_row,
body.single .wpb_row,
body.single .wpb_content_element,
body.single .vcex-row,
body.single .elementor-section,
body.single .elementor-top-section {
  position: relative;
  z-index: 0 !important;
}
/* Post singular: header e dropdown acima do conteúdo (Total/VC) */
html:not(.admin-bar) body.single header.site-header {
  z-index: 520000 !important;
}
body.single .nav-item:hover,
body.single .nav-item.is-open {
  z-index: 500030 !important;
}
body.single .dropdown {
  z-index: 500040 !important;
}

/* ═══════════════════════════════════════════════════════════════
   FALE CONOSCO — Contact Form 7 + coluna “Outras formas…” + mapa
   (body.sitra-page-contact via functions.php)
   ═══════════════════════════════════════════════════════════════ */
.sitra-page-contact .page-inner {
  max-width: 58rem;
}
.sitra-page-contact .page-article .page-content,
.sitra-page-contact .page-article .entry-content {
  padding-bottom: var(--space-8);
}
/* Gutenberg: duas colunas */
.sitra-page-contact .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3.5vw, 2.25rem);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-items: flex-start;
}
.sitra-page-contact .wp-block-column {
  flex: 1 1 280px;
  min-width: 0;
}
.sitra-page-contact .wp-block-column > *:first-child {
  margin-top: 0;
}
/* Coluna do texto (geralmente à direita) */
.sitra-page-contact .wp-block-columns .wp-block-column:nth-child(2) {
  background: linear-gradient(165deg, rgba(26, 43, 94, 0.07) 0%, rgba(245, 240, 234, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  box-shadow: var(--shadow-xs);
}
.sitra-page-contact .wp-block-columns .wp-block-column:nth-child(2) h2,
.sitra-page-contact .wp-block-columns .wp-block-column:nth-child(2) h3,
.sitra-page-contact .wp-block-columns .wp-block-column:nth-child(2) h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
  font-style: normal;
}
.sitra-page-contact .wp-block-columns .wp-block-column:nth-child(2) p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: var(--space-3);
  font-style: normal;
}
.sitra-page-contact .wp-block-columns .wp-block-column:nth-child(2) p:last-child {
  margin-bottom: 0;
}
.sitra-page-contact .wp-block-columns .wp-block-column:nth-child(2) a {
  color: var(--red);
  font-weight: 600;
}
.sitra-page-contact .wp-block-columns .wp-block-column:nth-child(2) a:hover {
  color: var(--red-dark);
}
/* WPBakery / Total — mesma ideia em duas colunas */
.sitra-page-contact .vc_row-fluid .vc_col-sm-6:nth-child(2),
.sitra-page-contact .vc_row-fluid .vc_column_container:nth-child(2) {
  background: linear-gradient(165deg, rgba(26, 43, 94, 0.07) 0%, rgba(245, 240, 234, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) !important;
  box-shadow: var(--shadow-xs);
}
.sitra-page-contact .vc_row-fluid .vc_col-sm-6:nth-child(2) h2,
.sitra-page-contact .vc_row-fluid .vc_col-sm-6:nth-child(2) h3,
.sitra-page-contact .vc_row-fluid .vc_column_container:nth-child(2) h2,
.sitra-page-contact .vc_row-fluid .vc_column_container:nth-child(2) h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  font-style: normal;
}
.sitra-page-contact .vc_row-fluid .vc_col-sm-6:nth-child(2) p,
.sitra-page-contact .vc_row-fluid .vc_column_container:nth-child(2) .wpb_wrapper > p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--gray-600);
  font-style: normal;
}
/* Contact Form 7 */
.sitra-page-contact .wpcf7 {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  box-shadow: var(--shadow-xs);
}
.sitra-page-contact .wpcf7-form p {
  margin: 0 0 var(--space-4);
}
.sitra-page-contact .wpcf7-form label,
.sitra-page-contact .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.sitra-page-contact .wpcf7-form label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
  font-style: normal;
  letter-spacing: 0.01em;
}
.sitra-page-contact .wpcf7-form-control.wpcf7-text,
.sitra-page-contact .wpcf7-form-control.wpcf7-email,
.sitra-page-contact .wpcf7-form-control.wpcf7-tel,
.sitra-page-contact .wpcf7-form-control.wpcf7-url,
.sitra-page-contact .wpcf7-form-control.wpcf7-number,
.sitra-page-contact .wpcf7-form-control.wpcf7-date,
.sitra-page-contact .wpcf7-form-control.wpcf7-select,
.sitra-page-contact .wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  box-sizing: border-box;
}
.sitra-page-contact .wpcf7-form-control.wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
}
.sitra-page-contact .wpcf7-form-control.wpcf7-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6358' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.sitra-page-contact .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(26, 43, 94, 0.12);
}
.sitra-page-contact .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-2);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  background: var(--red);
  border: 1px solid var(--red-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: 0 2px 8px rgba(192, 40, 28, 0.25);
}
.sitra-page-contact .wpcf7-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192, 40, 28, 0.35);
}
.sitra-page-contact .wpcf7-response-output {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.sitra-page-contact .wpcf7-validation-errors,
.sitra-page-contact .wpcf7-acceptance-missing {
  border-color: var(--red);
  background: rgba(192, 40, 28, 0.06);
  color: var(--red-dark);
}
.sitra-page-contact .wpcf7-mail-sent-ok {
  border-color: #2d6a4f;
  background: rgba(45, 106, 79, 0.08);
  color: #1b4332;
}
/* Mapa Google embutido abaixo do formulário */
.sitra-page-contact .page-article .entry-content iframe[src*="google.com/maps"],
.sitra-page-contact .page-article .entry-content iframe[src*="maps.google"] {
  display: block;
  width: 100% !important;
  min-height: 280px;
  margin-top: var(--space-8);
  border: 0 !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) {
  .sitra-page-contact .wp-block-columns .wp-block-column:nth-child(2),
  .sitra-page-contact .vc_row-fluid .vc_col-sm-6:nth-child(2),
  .sitra-page-contact .vc_row-fluid .vc_column_container:nth-child(2) {
    padding: var(--space-5) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FILIAÇÃO — mesmo layout e tratamento visual que “Fale conosco”
   (body.sitra-page-filiacao via functions.php)
   ═══════════════════════════════════════════════════════════════ */
body.sitra-page-filiacao .page-inner {
  max-width: 58rem;
}
body.sitra-page-filiacao .page-article .page-content,
body.sitra-page-filiacao .page-article .entry-content {
  padding-bottom: var(--space-8);
}
/* Gutenberg: duas colunas (igual .sitra-page-contact) */
body.sitra-page-filiacao .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3.5vw, 2.25rem);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-items: flex-start;
}
body.sitra-page-filiacao .wp-block-column {
  flex: 1 1 280px;
  min-width: 0;
}
body.sitra-page-filiacao .wp-block-column > *:first-child {
  margin-top: 0;
}
body.sitra-page-filiacao .wp-block-columns .wp-block-column:nth-child(2) {
  background: linear-gradient(165deg, rgba(26, 43, 94, 0.07) 0%, rgba(245, 240, 234, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  box-shadow: var(--shadow-xs);
}
body.sitra-page-filiacao .wp-block-columns .wp-block-column:nth-child(2) h2,
body.sitra-page-filiacao .wp-block-columns .wp-block-column:nth-child(2) h3,
body.sitra-page-filiacao .wp-block-columns .wp-block-column:nth-child(2) h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
  font-style: normal;
}
body.sitra-page-filiacao .wp-block-columns .wp-block-column:nth-child(2) p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: var(--space-3);
  font-style: normal;
}
body.sitra-page-filiacao .wp-block-columns .wp-block-column:nth-child(2) p:last-child {
  margin-bottom: 0;
}
body.sitra-page-filiacao .wp-block-columns .wp-block-column:nth-child(2) a {
  color: var(--red);
  font-weight: 600;
}
body.sitra-page-filiacao .wp-block-columns .wp-block-column:nth-child(2) a:hover {
  color: var(--red-dark);
}
body.sitra-page-filiacao .vc_row-fluid .vc_col-sm-6:nth-child(2),
body.sitra-page-filiacao .vc_row-fluid .vc_column_container:nth-child(2) {
  background: linear-gradient(165deg, rgba(26, 43, 94, 0.07) 0%, rgba(245, 240, 234, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) !important;
  box-shadow: var(--shadow-xs);
}
body.sitra-page-filiacao .vc_row-fluid .vc_col-sm-6:nth-child(2) h2,
body.sitra-page-filiacao .vc_row-fluid .vc_col-sm-6:nth-child(2) h3,
body.sitra-page-filiacao .vc_row-fluid .vc_column_container:nth-child(2) h2,
body.sitra-page-filiacao .vc_row-fluid .vc_column_container:nth-child(2) h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  font-style: normal;
}
body.sitra-page-filiacao .vc_row-fluid .vc_col-sm-6:nth-child(2) p,
body.sitra-page-filiacao .vc_row-fluid .vc_column_container:nth-child(2) .wpb_wrapper > p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--gray-600);
  font-style: normal;
}
/* Contact Form 7 + Elementor — cartão igual ao Fale conosco */
body.sitra-page-filiacao .wpcf7,
body.sitra-page-filiacao .elementor-widget-form .e-form__content,
body.sitra-page-filiacao .elementor-widget-form .elementor-widget-container {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  box-shadow: var(--shadow-xs);
}
body.sitra-page-filiacao .wpcf7-form p {
  margin: 0 0 var(--space-4);
}
body.sitra-page-filiacao .wpcf7-form label,
body.sitra-page-filiacao .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
body.sitra-page-filiacao .wpcf7-form label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
  font-style: normal;
  letter-spacing: 0.01em;
}
body.sitra-page-filiacao .wpcf7-list-item label {
  font-weight: 500;
  color: var(--text);
}
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-text,
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-email,
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-tel,
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-url,
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-number,
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-date,
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-select,
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  box-sizing: border-box;
}
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
}
body.sitra-page-filiacao .wpcf7-form-control.wpcf7-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6358' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
body.sitra-page-filiacao .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(26, 43, 94, 0.12);
}
body.sitra-page-filiacao .wpcf7-submit,
body.sitra-page-filiacao input[type="submit"]:not(.search-submit) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-2);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  background: var(--red);
  border: 1px solid var(--red-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: 0 2px 8px rgba(192, 40, 28, 0.25);
}
body.sitra-page-filiacao .wpcf7-submit:hover,
body.sitra-page-filiacao input[type="submit"]:not(.search-submit):hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192, 40, 28, 0.35);
}
body.sitra-page-filiacao .wpcf7-response-output {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
body.sitra-page-filiacao .wpcf7-validation-errors,
body.sitra-page-filiacao .wpcf7-acceptance-missing {
  border-color: var(--red);
  background: rgba(192, 40, 28, 0.06);
  color: var(--red-dark);
}
body.sitra-page-filiacao .wpcf7-mail-sent-ok {
  border-color: #2d6a4f;
  background: rgba(45, 106, 79, 0.08);
  color: #1b4332;
}
body.sitra-page-filiacao .wpcf7-not-valid-tip {
  font-size: var(--text-xs);
  margin-top: 4px;
  color: var(--red);
}
/* Elementor Pro — formulário */
body.sitra-page-filiacao .elementor-field-group {
  margin-bottom: var(--space-4);
}
body.sitra-page-filiacao .elementor-field-group > label,
body.sitra-page-filiacao .elementor-field-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}
body.sitra-page-filiacao .elementor-field-type-text input,
body.sitra-page-filiacao .elementor-field-type-email input,
body.sitra-page-filiacao .elementor-field-type-tel input,
body.sitra-page-filiacao .elementor-field-type-number input,
body.sitra-page-filiacao .elementor-field-type-date input,
body.sitra-page-filiacao .elementor-field-type-url input,
body.sitra-page-filiacao .elementor-field-type-select select,
body.sitra-page-filiacao .elementor-field-type-textarea textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  box-sizing: border-box;
}
body.sitra-page-filiacao .elementor-field-type-select select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6358' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
body.sitra-page-filiacao .elementor-field-type-textarea textarea {
  min-height: 140px;
  resize: vertical;
}
body.sitra-page-filiacao .elementor-field-type-text input:focus,
body.sitra-page-filiacao .elementor-field-type-email input:focus,
body.sitra-page-filiacao .elementor-field-type-tel input:focus,
body.sitra-page-filiacao .elementor-field-type-textarea textarea:focus,
body.sitra-page-filiacao .elementor-field-type-select select:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(26, 43, 94, 0.12);
}
body.sitra-page-filiacao .elementor-button[type="submit"],
body.sitra-page-filiacao .elementor-form .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  background: var(--red);
  border: 1px solid var(--red-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(192, 40, 28, 0.25);
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
body.sitra-page-filiacao .elementor-button[type="submit"]:hover,
body.sitra-page-filiacao .elementor-form .elementor-button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192, 40, 28, 0.35);
}
/* Formulário HTML nativo dentro do conteúdo */
body.sitra-page-filiacao .page-content form:not(.admin-bar-search),
body.sitra-page-filiacao .entry-content form:not(.admin-bar-search) {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  box-shadow: var(--shadow-xs);
}
body.sitra-page-filiacao .page-content form p,
body.sitra-page-filiacao .entry-content form p {
  margin: 0 0 var(--space-4);
}
body.sitra-page-filiacao .page-content form label,
body.sitra-page-filiacao .entry-content form label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}
body.sitra-page-filiacao .page-content form input[type="text"],
body.sitra-page-filiacao .page-content form input[type="email"],
body.sitra-page-filiacao .page-content form input[type="tel"],
body.sitra-page-filiacao .page-content form input[type="number"],
body.sitra-page-filiacao .page-content form input[type="date"],
body.sitra-page-filiacao .page-content form input[type="url"],
body.sitra-page-filiacao .page-content form select,
body.sitra-page-filiacao .page-content form textarea,
body.sitra-page-filiacao .entry-content form input[type="text"],
body.sitra-page-filiacao .entry-content form input[type="email"],
body.sitra-page-filiacao .entry-content form input[type="tel"],
body.sitra-page-filiacao .entry-content form select,
body.sitra-page-filiacao .entry-content form textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-sizing: border-box;
}
body.sitra-page-filiacao .page-content form textarea,
body.sitra-page-filiacao .entry-content form textarea {
  min-height: 140px;
  resize: vertical;
}
body.sitra-page-filiacao fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: 0 0 var(--space-6);
  background: var(--white);
}
body.sitra-page-filiacao legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--navy);
  padding: 0 var(--space-2);
}
@media (max-width: 640px) {
  body.sitra-page-filiacao .wp-block-columns .wp-block-column:nth-child(2),
  body.sitra-page-filiacao .vc_row-fluid .vc_col-sm-6:nth-child(2),
  body.sitra-page-filiacao .vc_row-fluid .vc_column_container:nth-child(2) {
    padding: var(--space-5) !important;
  }
  body.sitra-page-filiacao .wpcf7,
  body.sitra-page-filiacao .elementor-widget-form .elementor-widget-container {
    padding: var(--space-5) var(--space-4);
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  letter-spacing: -.02em;
  line-height: 1.22;
}
.section-title::before {
  content: '';
  width: 4px; height: 26px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
}
.see-all {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--red);
  font-family: var(--font-mono);
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-base) var(--ease-out);
  text-decoration: none;
  text-transform: uppercase;
}
.see-all:hover { gap: 12px; }

/* ═══════════════════════════════════════════════════════════════
   NEWS CARDS
   ═══════════════════════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: var(--space-8);
}
.featured-news { grid-template-columns: 1fr; margin-bottom: var(--space-6); }

.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
  background: var(--white);
  will-change: transform;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.news-card:hover .news-img { transform: scale(1.04); }
.news-card .news-img-wrap { overflow: hidden; }
.news-img.large { height: 300px; }

.news-body { padding: 20px 22px 24px; }

.news-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: var(--space-3) 0 var(--space-2);
  transition: color var(--dur-fast);
  display: block;
  text-decoration: none;
  letter-spacing: -.01em;
}
.news-card:hover .news-title { color: var(--red); }
.news-title.large {
  font-size: var(--text-lg);
  letter-spacing: -.02em;
}

.news-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  letter-spacing: .02em;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--red);
  margin-top: var(--space-3);
  transition: gap var(--dur-base) var(--ease-out);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  font-family: var(--font-mono);
}
.read-more:hover { gap: 12px; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION (paginate_links type=list → ul.page-numbers)
   Não estilizar .page-numbers no ul — só em a/span, senão o menu quebra.
   ═══════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-6) 0;
}

.pagination ul.page-numbers {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination ul.page-numbers li {
  display: flex;
  margin: 0;
  padding: 0;
}

/* Número dentro do link: não vira caixa extra */
.pagination a.page-numbers .page-btn {
  display: contents;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  border: 1.5px solid var(--border);
  color: var(--gray-600);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
  text-decoration: none;
  box-sizing: border-box;
}

.pagination span.page-numbers.dots {
  min-width: auto;
  width: auto;
  height: auto;
  padding: 0 6px;
  border: none;
  background: transparent;
  box-shadow: none;
  font-weight: 500;
}

.pagination a.page-numbers:hover {
  background: var(--gray-50);
  color: var(--text);
}

.pagination span.page-numbers.current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(26,43,94,.3);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: var(--space-8); }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.sidebar-card:hover { box-shadow: var(--shadow-md); }

.sidebar-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.sidebar-card-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -.01em;
}
.sidebar-card-header svg { width: 20px; height: 20px; stroke: var(--red); flex-shrink: 0; }

.sidebar-card-body { padding: 22px; }

/* Ecocursos */
.ecocurso-card {
  background: linear-gradient(140deg, var(--navy) 0%, #0d1840 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: white;
  text-align: center;
}
.ecocurso-badge {
  background: var(--gold);
  color: white;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--space-3);
}
.ecocurso-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: white;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.ecocurso-card p {
  font-size: var(--text-sm);
  opacity: .78;
  margin-bottom: var(--space-5);
  line-height: 1.65;
}
.btn-ecocurso {
  background: white;
  color: var(--navy) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-spring);
  display: block; text-align: center; text-decoration: none;
}
.btn-ecocurso:hover { background: var(--cream); transform: translateY(-2px); }

/* Video */
.video-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.video-thumb img, .video-placeholder {
  width: 100%; height: 170px;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.video-thumb:hover img { transform: scale(1.05); }
.video-placeholder {
  background: linear-gradient(135deg, var(--navy), #0b1530);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: rgba(255,255,255,.3);
}
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28);
  transition: background var(--dur-fast);
}
.play-btn:hover { background: rgba(0,0,0,.44); }
.play-icon {
  width: 52px; height: 52px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-spring);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.play-btn:hover .play-icon { transform: scale(1.12); }
.play-icon svg { width: 20px; height: 20px; fill: var(--navy); margin-left: 3px; }
.video-title {
  font-weight: 700;
  font-size: var(--text-base);
  margin-top: var(--space-3);
  color: var(--text);
  line-height: 1.45;
}
.video-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 4px;
}

/* Clube de descontos */
.desconto-card {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 22px;
  color: white;
  text-align: center;
}
.desconto-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: white;
  letter-spacing: -.01em;
}
.desconto-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.desconto-item {
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--dur-fast), transform var(--dur-fast);
  cursor: pointer;
  text-align: left;
}
.desconto-item:hover { background: rgba(255,255,255,.18); transform: translateX(3px); }
.btn-desconto {
  background: var(--red);
  color: white !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-spring);
  display: block; text-align: center; text-decoration: none;
}
.btn-desconto:hover { background: var(--red-light); transform: translateY(-2px); }

/* Mini news */
.mini-news { display: flex; flex-direction: column; }
.mini-news-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-fast);
}
.mini-news-item:last-child { border-bottom: none; }
.mini-news-item:hover { background: var(--gray-50); margin: 0 -4px; padding: var(--space-4) 4px; border-radius: var(--radius-sm); }
.mini-thumb {
  width: 84px; height: 63px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
  background: var(--gray-100);
  transition: transform var(--dur-base) var(--ease-out);
}
.mini-news-item:hover .mini-thumb { transform: scale(1.04); }
.mini-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  transition: color var(--dur-fast);
  text-decoration: none;
  display: block;
}
.mini-news-item:hover .mini-title { color: var(--red); }
.mini-date {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-top: 5px;
  display: block;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  background: linear-gradient(160deg, #111d40 0%, var(--navy) 100%);
  color: rgba(255,255,255,.75);
}
.footer-top {
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: var(--space-10);
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-logo { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.footer-logo img {
  width: 60px; height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5px var(--red);
}
.footer-logo strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: white;
  display: block;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.footer-logo span {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-about {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(255,255,255,.6);
}
.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: #fff;
}
.footer-social a,
.footer-social__link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-spring);
}
.footer-social a:hover,
.footer-social__link:hover {
  background: var(--red);
  transform: translateY(-3px);
}
.footer-social svg,
.footer-social__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.footer-social__link.is-placeholder {
  opacity: 0.45;
  cursor: pointer;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255,255,255,.1);
  letter-spacing: -.01em;
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--dur-fast), padding-left var(--dur-base) var(--ease-out);
  display: flex; align-items: center; gap: 7px;
  text-decoration: none;
  padding-left: 0;
}
.footer-links a::before { content: '→'; font-size: var(--text-xs); opacity: .4; transition: opacity var(--dur-fast); }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}
.footer-contact-item svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--gold-light);
}

.footer-bottom { padding: 22px 0; }
.footer-bottom-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.footer-copy,
.footer-fenajufe,
.footer-credit {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.35);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.footer-credit a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--dur-fast);
  cursor: pointer;
}
.footer-credit a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
.single-header {
  padding: var(--space-12) 0 var(--space-8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-8);
}
.single-category { margin-bottom: var(--space-4); }
.single-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.85vw + 0.4rem, var(--text-3xl));
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: var(--space-3);
  letter-spacing: -.025em;
}
.single-meta {
  display: flex; align-items: center; gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  letter-spacing: .03em;
}
.single-meta a { color: var(--navy); }
.single-thumbnail {
  width: 100%; max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
  display: block;
}
.entry-content {
  font-size: var(--text-base);
  line-height: 1.72;
  color: var(--gray-800);
}
.entry-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
  letter-spacing: -.02em;
  line-height: 1.22;
}
.entry-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 .5rem;
  letter-spacing: -.015em;
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  margin: 1.75rem 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: var(--text-base);
  color: var(--navy);
  line-height: 1.55;
}
.entry-content ul, .entry-content ol {
  padding-left: 28px;
  margin-bottom: 1.5rem;
}
.entry-content li { margin-bottom: .6rem; }
.entry-content img { border-radius: var(--radius); margin: 2rem 0; }

/* Post nav / tags */
.post-tags {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.post-tags-label {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.post-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: all var(--dur-fast);
  text-decoration: none;
  font-weight: 500;
}
.post-tag:hover { border-color: var(--red); color: var(--red); }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.post-nav-item {
  padding: 18px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base),
              border-color var(--dur-fast);
}
.post-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192,40,28,.3);
}
.post-nav-item.next { text-align: right; }
.post-nav-dir {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
}
.post-nav-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════════════════════════ */
#comments {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.comments-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-6);
  display: flex; align-items: center; gap: var(--space-3);
  letter-spacing: -.01em;
}
.comments-title::before {
  content: ''; width: 4px; height: 26px;
  background: var(--red); border-radius: 2px; display: block;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 var(--space-8); }
.comment .comment-body {
  display: grid; grid-template-columns: 52px 1fr;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}
.comment .comment-author img { border-radius: 50%; width: 52px; height: 52px; }
.comment .fn { font-weight: 700; font-size: var(--text-base); color: var(--navy); }
.comment .comment-metadata {
  font-size: var(--text-sm);
  color: var(--gray-400);
  font-family: var(--font-mono);
  margin-bottom: var(--space-2);
  letter-spacing: .03em;
}
.comment .comment-content p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-800);
  margin: 0;
}
#respond {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-8);
  border: 1px solid var(--border);
}
#respond h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: var(--space-5);
  font-weight: 700;
  letter-spacing: -.01em;
}
.comment-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  margin-bottom: var(--space-4);
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,43,94,.08);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input[type=submit] {
  background: var(--red); color: white;
  border: none; padding: 13px 32px;
  border-radius: var(--radius); font-size: var(--text-base);
  font-weight: 700; font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-spring);
  letter-spacing: .01em;
}
.comment-form input[type=submit]:hover {
  background: var(--red-light); transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   MENU ≤1100px — nav em painel; CTA permanece na barra
   ═══════════════════════════════════════════════════════════════ */
.menu-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.menu-toggle.menu-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.menu-toggle--open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.menu-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fechar menu (mobile): só visível com #site-nav.open */
.nav-menu-close {
  display: none;
}

@media (max-width: 1100px) {
  body.sitra-nav-open {
    overflow: hidden;
  }
  /* Sanduíche e CTA ficam por cima do overlay do #site-nav (antes ficavam inacessíveis) */
  body.sitra-nav-open .header-actions {
    position: relative;
    z-index: 500100;
  }
  body.sitra-nav-open .header-brand-row {
    position: relative;
    z-index: 500100;
    background: var(--white);
  }
  .menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 500101;
  }
  #site-nav:not(.open) {
    display: none !important;
  }
  /* Marca + redes: permitir quebra em ecrãs estreitos */
  .header-brand-row {
    flex-wrap: wrap;
    row-gap: var(--space-2);
    column-gap: var(--space-3);
  }
  .logo-link {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .logo-text {
    min-width: 0;
  }
  .logo-text strong,
  .logo-text span {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .header-social {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 100%;
    margin-left: auto;
  }
  .header-social a,
  .header-social__link {
    flex-shrink: 0;
  }
  .header-nav-row {
    width: 100%;
    flex-wrap: nowrap;
    gap: var(--space-2);
  }
  .header-actions {
    margin-left: auto;
    flex-shrink: 0;
  }
  #site-nav.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    padding-top: calc(
      env(safe-area-inset-top, 0px) + var(--wp-admin--admin-bar--height, 0px) + var(--sitra-header-offset)
    );
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    background: var(--white);
    z-index: 500010;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
  }
  #site-nav.open .nav-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    align-self: flex-end;
    margin: 0 0 var(--space-4) 0;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--gray-50);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  }
  #site-nav.open .nav-menu-close:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
  }
  .nav-menu-close__icon {
    display: block;
    width: 18px;
    height: 18px;
    position: relative;
  }
  .nav-menu-close__icon::before,
  .nav-menu-close__icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }
  .nav-menu-close__icon::before { transform: translateY(-50%) rotate(45deg); }
  .nav-menu-close__icon::after { transform: translateY(-50%) rotate(-45deg); }
  #site-nav.open .nav-item { width: 100%; }
  #site-nav.open .nav-link {
    font-size: var(--text-base) !important;
    padding: 12px 14px !important;
    width: 100%;
    white-space: normal;
  }
  #site-nav.open .dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    padding-top: 0;
    margin: 4px 0 4px 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: var(--radius);
  }
  #site-nav.open .dropdown ul {
    background: var(--gray-50);
    border: none;
    box-shadow: none;
    border-radius: var(--radius);
    padding: var(--space-2);
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMAÇÕES DE ENTRADA — Intersection Observer (via JS)
   ═══════════════════════════════════════════════════════════════ */
[data-anim] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: var(--ease-out);
  transition-duration: var(--dur-slow);
}
[data-anim="fade-up"]   { transform: translateY(32px); }
[data-anim="fade-in"]   { transform: none; }
[data-anim="fade-left"] { transform: translateX(-28px); }
[data-anim="fade-right"]{ transform: translateX(28px); }
[data-anim="scale-up"]  { transform: scale(.94); }
[data-anim].anim-visible {
  opacity: 1 !important;
  transform: none !important;
}
[data-anim-delay="100"] { transition-delay: 100ms; }
[data-anim-delay="200"] { transition-delay: 200ms; }
[data-anim-delay="300"] { transition-delay: 300ms; }
[data-anim-delay="400"] { transition-delay: 400ms; }
[data-anim-delay="500"] { transition-delay: 500ms; }

/* ═══════════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════════ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   REDESIGN EDITORIAL — sindicatos (paleta original)
   ═══════════════════════════════════════════════════════════════ */

.hero--editorial {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(192, 40, 28, 0.18) 0%, transparent 55%),
    linear-gradient(145deg, var(--navy) 0%, #0a1428 55%, #0d1a40 100%);
}

.hero-stats--chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: var(--space-8);
  padding-top: 0;
  border-top: none;
}
.hero-stats--chips .stat-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.hero-stats--chips .stat-item:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.hero-card--glass {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}
.hero-spotlight { align-self: stretch; }

/* Faixa de atalhos — pills */
.quick-links--rail {
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-strong);
}
.quick-links--rail .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.quick-links__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin: 0;
  flex-shrink: 0;
}
.quick-links--rail .quick-links-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
  flex: 1;
  min-width: 0;
}
.quick-link--pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
  color: var(--navy);
  border-right: 1px solid var(--border);
}
.quick-link--pill:hover {
  border-color: rgba(192, 40, 28, 0.35);
  color: var(--red);
  background: #fff;
}
.quick-link__icon {
  display: flex;
  color: var(--red);
}

/* Atlas — serviços ao associado */
.atlas-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border-strong);
  padding: var(--space-12) 0;
}
.atlas-strip__inner {
  display: grid;
  gap: var(--space-8);
  align-items: end;
}
@media (min-width: 900px) {
  .atlas-strip__inner {
    grid-template-columns: minmax(0, 280px) 1fr;
    gap: var(--space-12);
    align-items: end;
  }
}
/* Bloco “Para o associado” — só texto, sem cartão / sombra / animação */
.atlas-strip__head {
  margin: 0;
  padding: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.atlas-strip__head,
.atlas-strip__head .atlas-strip__kicker,
.atlas-strip__head .atlas-strip__title,
.atlas-strip__head .atlas-strip__lead {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}
.atlas-strip__kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: var(--space-2);
}
.atlas-strip__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}
.atlas-strip__lead {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 34rem;
}
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.atlas-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--gray-50);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-fast), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.atlas-card:hover {
  border-color: rgba(26, 43, 94, 0.2);
  box-shadow: var(--shadow-editorial);
  transform: translateY(-3px);
}
.atlas-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  margin-bottom: 2px;
}
.atlas-card__title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--navy);
  line-height: 1.3;
}
.atlas-card__hint {
  font-size: var(--text-xs);
  color: var(--gray-600);
  line-height: 1.4;
}
.atlas-card--accent {
  background: linear-gradient(135deg, var(--navy) 0%, #24366e 100%);
  border-color: transparent;
  color: #fff;
}
.atlas-card--accent .atlas-card__icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--gold-light);
}
.atlas-card--accent .atlas-card__title { color: #fff; }
.atlas-card--accent .atlas-card__hint { color: rgba(255, 255, 255, 0.65); }
.atlas-card--accent:hover {
  box-shadow: 0 12px 32px rgba(26, 43, 94, 0.35);
}

/* Feed principal + coluna */
.feed-canvas--home {
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--cream) 38%, var(--gray-50) 100%);
  padding: var(--space-12) 0 var(--space-16);
}
.feed-canvas--category {
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--cream) 38%, var(--gray-50) 100%);
  padding: var(--space-12) 0 var(--space-16);
}
.feed-canvas--gallery {
  background: linear-gradient(180deg, var(--surface-muted) 0%, var(--cream) 38%, var(--gray-50) 100%);
  padding: var(--space-12) 0 var(--space-16);
}
.feed-canvas--gallery .main-feed {
  max-width: 100%;
}
.feed-canvas--gallery .news-grid--editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}
@media (min-width: 900px) {
  .feed-canvas--gallery .news-grid--editorial {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.feed-canvas--gallery .news-card--editorial {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.feed-canvas--gallery .news-card--editorial:hover {
  transform: translateY(-5px);
}
.feed-canvas--gallery .news-card--editorial > a:first-child {
  display: block;
  line-height: 0;
}
.feed-canvas--gallery .news-card--editorial .news-img,
.feed-canvas--gallery .news-card--editorial .news-img-large {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}
.feed-canvas--gallery .news-card--editorial .news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) var(--space-3) var(--space-5);
  gap: 2px;
}
.feed-canvas--gallery .news-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-top: var(--space-2);
}
.feed-canvas--gallery .news-title:hover {
  color: var(--red);
}
.feed-canvas--gallery .news-meta {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--red);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.feed-canvas--gallery .news-meta svg {
  stroke: var(--red);
  opacity: 1;
}
.feed-canvas--gallery .section-title {
  font-size: clamp(1.1rem, 2vw + 0.5rem, var(--text-2xl));
}
.feed-canvas--gallery .pagination {
  margin-top: var(--space-8);
  justify-content: center;
}
.feed-canvas--gallery .pagination a,
.feed-canvas--gallery .pagination span {
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════
   BESTWEBSOFT GALLERY — álbuns (/bws-gallery/…), lightbox Fancybox
   (markup actual: div.gallery.gllr_grid + .gllr_image_row > .gllr_image_block)
   ═══════════════════════════════════════════════════════════════ */
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gllr_wrap {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 0;
}
/* Grelha no álbum: coluna de .gllr_image_row; cada linha do plugin é uma sub-grelha (evita o <div class="clear"> virar célula com display:contents) */
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery.gllr_grid,
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery.clearfix.gllr_grid {
  display: flex !important;
  flex-direction: column;
  gap: var(--space-3);
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto var(--space-8);
  clear: both;
}
/* auto-fill deixa colunas vazias → fotos pequenas e muito espaço; auto-fit colapsa faixas vazias */
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery.gllr_grid .gllr_image_row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(8px, 1.5vw, 14px);
  width: 100%;
  justify-items: stretch;
}
/* Álbum BWS singular: 3 colunas (layout típico do plugin), sem “vãos” entre fotos */
body.single-bws-gallery .gallery_box_single .gallery.gllr_grid .gllr_image_row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 560px) {
  body.single-bws-gallery .gallery_box_single .gallery.gllr_grid .gllr_image_row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  body.single-bws-gallery .gallery_box_single .gallery.gllr_grid .gllr_image_row {
    grid-template-columns: 1fr;
  }
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery.gllr_grid .gllr_image_row > .clear {
  display: none !important;
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery.gllr_grid .gllr_image_block {
  float: none !important;
  margin: 0 !important;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
/* Anula largura/altura fixas do plugin no <p> que envolve a imagem */
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery.gllr_grid .gllr_image_block > p:first-of-type {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  box-sizing: border-box;
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery.gllr_grid .gllr_image_block a {
  display: block;
  width: 100%;
  line-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery.gllr_grid .gllr_image_block a:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery.gllr_grid .gllr_image_block img {
  float: none !important;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: none !important;
  border-radius: 0;
  display: block;
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gllr_single_image_text {
  margin: var(--space-2) 0 0 !important;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}
/* Comentários: esconder se o tema ainda renderizar o bloco */
body.single-bws-gallery #comments,
body.single-bws-gallery .comments-area,
body.single-bws-gallery #respond,
body.single-bws-gallery .comment-respond,
body.single-bws-gallery .comments-wrap,
body.single-bws-gallery .wpex-comments-widget {
  display: none !important;
}
/* Markup antigo em lista */
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single ul.gallery,
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery > ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(8px, 1.5vw, 14px);
  justify-items: stretch;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single .gallery li {
  float: none !important;
  margin: 0 !important;
  width: 100%;
  list-style: none;
}
body.single-bws-gallery .gallery_box_single ul.gallery,
body.single-bws-gallery .gallery_box_single .gallery > ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 560px) {
  body.single-bws-gallery .gallery_box_single ul.gallery,
  body.single-bws-gallery .gallery_box_single .gallery > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  body.single-bws-gallery .gallery_box_single ul.gallery,
  body.single-bws-gallery .gallery_box_single .gallery > ul {
    grid-template-columns: 1fr;
  }
}
/* Variante em <table class="gallery gllr_table"> */
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single table.gallery.gllr_table {
  display: grid !important;
  border: none !important;
  border-collapse: separate;
  border-spacing: 0;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(8px, 1.5vw, 14px);
  justify-items: stretch;
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single table.gallery.gllr_table tbody,
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single table.gallery.gllr_table tr {
  display: contents;
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single table.gallery.gllr_table td.gllr_image_block {
  display: block;
  float: none !important;
  width: auto !important;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  vertical-align: top;
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gallery_box_single table.gallery.gllr_table td img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
body.single-bws-gallery .gallery_box_single table.gallery.gllr_table {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 560px) {
  body.single-bws-gallery .gallery_box_single table.gallery.gllr_table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  body.single-bws-gallery .gallery_box_single table.gallery.gllr_table {
    grid-template-columns: 1fr;
  }
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) #bws_gallery_image_title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-6);
  line-height: 1.25;
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gllr_return_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--space-8) 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--red);
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gllr_return_link:hover {
  color: var(--red-dark);
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gllr_pagination.pagination {
  margin-top: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gllr_pagination.pagination a,
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gllr_pagination.pagination span {
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--white);
}
:is(body.sitra-gallery-archive, body.single-bws-gallery) .gllr_pagination.pagination a:hover {
  border-color: rgba(192, 40, 28, 0.35);
  color: var(--red);
}
/* Listagem de álbuns (.gallery_box em arquivo / shortcode) */
body.sitra-gallery-archive .gallery_box ul.gllr-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.sitra-gallery-archive .gallery_box ul.gllr-list li {
  float: none !important;
  margin: 0 !important;
}
body.sitra-gallery-archive .gallery_box ul.gllr-list li > a {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base), box-shadow var(--dur-base);
}
body.sitra-gallery-archive .gallery_box ul.gllr-list li > a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
body.sitra-gallery-archive .gallery_box ul.gllr-list li > a > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 !important;
  float: none !important;
  border: none !important;
}
body.sitra-gallery-archive .gallery_box .gllr_detail_title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--navy);
  margin-top: var(--space-3);
}
/* Fancybox: setas e botões visíveis e clicáveis por cima do conteúdo */
.fancybox-navigation .fancybox-button,
.fancybox-infobar,
.fancybox-toolbar .fancybox-button {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.fancybox-arrow {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Galeria: esconder qualquer sidebar (listagem eventos + álbum BWS single-bws-gallery) */
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .sidebar-column,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) aside.sidebar-column,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) #sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) #main .sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .wpex-sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .sidebar-primary,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .sidebar-widget-wrap,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) #secondary,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .widget-area-wrap,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .widget-area-sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .col-sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .sidebar--hub,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .sidebar.sidebar--hub,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) #content-wrap .sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .container .sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) #right-sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) #left-sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .elementor-location-sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .elementor-widget-sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .elementor-widget-wp-widget-sidebar,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .elementor-element .sidebar--hub,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .elementor-element .sidebar.sidebar--hub,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .wpex-sidebar-widget,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .sidebar-widget-icons,
:is(body.sitra-gallery-archive, body.single-bws-gallery, body.post-type-archive-bws-gallery) .vcex-sidebar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  pointer-events: none !important;
}
.main-layout--editorial {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: var(--space-10);
  align-items: start;
}
.main-layout--editorial.main-layout--no-sidebar {
  grid-template-columns: 1fr;
  max-width: none;
}
.main-feed {
  background: var(--surface-elevated);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-editorial);
  padding: var(--space-8) var(--space-8) var(--space-6);
}
.section-header--editorial {
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-header__text .section-title { margin-bottom: 4px; }
.section-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 36rem;
}
.see-all--soft {
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gray-50);
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  font-weight: 600;
}
.see-all--soft:hover {
  background: var(--white);
  border-color: rgba(192, 40, 28, 0.35);
}

.sidebar-column {
  position: sticky;
  top: 120px;
  align-self: start;
}

/* Notícias — cartões editoriais */
.news-grid--editorial {
  gap: 18px;
}
.news-card--editorial {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.news-card--editorial:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.news-img-large {
  height: 300px;
  object-fit: cover;
}
/* Destaque empilhado: home (3 posts) ou 1ª página de categoria */
.news-grid--lead-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: var(--space-5);
}
.news-grid--lead-stack .news-card--lead {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}
.news-grid--lead-stack .news-card--lead .news-img,
.news-grid--lead-stack .news-card--lead .news-img-large {
  width: 100%;
  height: auto;
  max-height: 240px;
  min-height: 160px;
  object-fit: cover;
}
.news-grid--lead-stack .news-card--lead .news-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.feed-canvas--home .news-card--editorial .news-title.large,
.feed-canvas--category .news-card--editorial .news-title.large {
  font-size: var(--text-md);
  line-height: 1.3;
}
.feed-canvas--home .news-card--editorial .news-title:not(.large),
.feed-canvas--category .news-card--editorial .news-title:not(.large) {
  font-size: var(--text-sm);
}
.feed-canvas--home .news-card--editorial .news-excerpt,
.feed-canvas--category .news-card--editorial .news-excerpt {
  font-size: var(--text-xs);
  line-height: 1.5;
}
.feed-canvas--home .news-card--editorial .news-body,
.feed-canvas--category .news-card--editorial .news-body {
  padding: 14px 16px 16px;
}
.feed-canvas--home .news-meta,
.feed-canvas--category .news-meta {
  font-size: var(--text-xs);
  gap: 6px;
  color: var(--gray-400);
}
.feed-canvas--home .news-meta svg,
.feed-canvas--category .news-meta svg {
  width: 10px;
  height: 10px;
  opacity: 0.75;
}
.feed-canvas--home .section-title,
.feed-canvas--category .section-title {
  font-size: var(--text-lg);
}
.feed-canvas--home .section-sub,
.feed-canvas--category .section-sub {
  font-size: var(--text-xs);
}
@media (min-width: 769px) {
  .news-card--editorial.is-featured:not(.news-card--lead) {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
  .news-card--editorial.is-featured:not(.news-card--lead) > :first-child:not(.news-body) {
    grid-row: 1 / -1;
    min-height: 260px;
  }
  .news-card--editorial.is-featured:not(.news-card--lead) > a:first-child {
    display: block;
  }
  .news-card--editorial.is-featured:not(.news-card--lead) .news-img,
  .news-card--editorial.is-featured:not(.news-card--lead) .news-img-large {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
  }
  .news-card--editorial.is-featured:not(.news-card--lead) .news-body {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.news-archive-cta {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}
.btn-news-archive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--navy);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.btn-news-archive:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.pub-hub {
  margin-bottom: var(--space-10);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}
.pub-hub__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
}
.pub-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-sede {
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}
.home-sede__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
}
.home-sede .side-map {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.pub-hub-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.pub-hub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pub-hub-card__kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  padding: 10px 14px 0;
}
.pub-hub-card__media {
  display: block;
  position: relative;
  margin: 8px 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
}
.pub-hub-card__media img,
.pub-hub-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pub-hub-card__thumb {
  position: relative;
  z-index: 2;
}
.pub-hub-card__illustration--layer {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
  border: none;
  border-radius: 0;
}
.pub-hub-card__media:has(.pub-hub-card__thumb) .pub-hub-card__illustration--layer svg {
  opacity: 0.35;
}
.pub-hub-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  opacity: 0.35;
}
/* Capa ilustrada quando não há miniatura de post */
.pub-hub-card__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 12px 0;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(26, 43, 94, 0.12);
}
.pub-hub-card__illustration::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.95;
  pointer-events: none;
}
.pub-hub-card__illustration svg {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  color: var(--gold-light);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}
.pub-hub-card__illustration--boletins::before {
  background: linear-gradient(135deg, #1a2b5e 0%, #2a4080 40%, #3d1a4a 100%);
}
.pub-hub-card__illustration--editais::before {
  background: linear-gradient(135deg, #0d2840 0%, #1a4a6e 50%, #5c2018 100%);
}
.pub-hub-card__illustration--campanhas::before {
  background: linear-gradient(135deg, #6b1a1a 0%, #1a2b5e 55%, #8b6914 100%);
}
.pub-hub-card__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
  padding: 10px 14px 4px;
  color: var(--navy);
}
.pub-hub-card__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.45;
  padding: 0 14px;
  flex: 1;
}
.pub-hub-card__go {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--red);
  padding: 12px 14px 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .pub-hub__grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar hub */
.sidebar--hub {
  gap: var(--space-5);
}
.sidebar-card.sidebar-card--hero {
  border: none;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(26, 43, 94, 0.18);
}
.side-hero {
  background: linear-gradient(155deg, var(--navy) 0%, #0d1840 55%, var(--navy-light) 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: var(--space-6);
}
.side-hero__kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: var(--space-2);
}
.side-hero__hours {
  font-size: var(--text-sm);
  margin: 0 0 var(--space-3);
  opacity: 0.88;
}
.side-hero__phone {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  margin-bottom: 4px;
}
.side-hero__mail {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75) !important;
  word-break: break-word;
}
.side-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-5);
}
.side-hero__btn {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.side-hero__btn--primary {
  background: var(--red);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.side-hero__btn--primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
}
.side-hero__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
}
.side-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-card-header--minimal {
  padding: 14px 18px 10px;
  border-bottom: none;
}
.sidebar-card-header--minimal h3 {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.sidebar-card-body--flush { padding: 0 12px 14px; }
.sidebar-card-body--tight { padding: 12px 16px 16px; }

.side-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.side-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.side-chip:hover {
  background: #fff;
  border-color: rgba(192, 40, 28, 0.35);
  color: var(--red);
}
.side-chip--accent {
  background: rgba(192, 40, 28, 0.1);
  border-color: rgba(192, 40, 28, 0.35);
  color: var(--red-dark);
}

.ecocurso-card--compact {
  padding: 18px;
  text-align: center;
}
.ecocurso-card--compact h4 {
  font-size: var(--text-lg);
}
.ecocurso-card--compact p {
  margin-bottom: var(--space-4);
}

/* Banners na sidebar (Formação / Clube) */
.sidebar-card-body--eco-banner,
.sidebar-card-body--clube-banner {
  padding: 0;
}
.sidebar-card--eco,
.sidebar-card--clube {
  overflow: hidden;
}
.sidebar-card--eco .sidebar-card-header {
  border-bottom: 1px solid var(--border);
}
.ecocurso-banner-link,
.clube-banner-link {
  display: block;
  line-height: 0;
  background: var(--gray-50);
}
.ecocurso-banner-link:focus-visible,
.clube-banner-link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.ecocurso-banner,
.clube-banner {
  width: 100%;
  height: auto;
  display: block;
}
.ecocurso-sidebar-foot {
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  text-align: center;
}
.ecocurso-sidebar-foot__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 var(--space-4);
}
.btn-ecocurso--outline {
  background: var(--navy);
  color: #fff !important;
  border: 1px solid var(--navy);
}
.btn-ecocurso--outline:hover {
  background: var(--navy-light);
  color: #fff !important;
}

.sidebar-card--clube .sidebar-card-header {
  border-bottom: 1px solid var(--border);
}
.clube-sidebar-foot {
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  text-align: center;
}
.clube-sidebar-foot__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 var(--space-4);
}
.clube-sidebar-foot .btn-desconto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-thumb--rounded {
  border-radius: var(--radius-lg);
}
.video-fallback {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: var(--space-3) 0 0;
}

.desconto-card--compact {
  padding: 18px;
  text-align: left;
}
.desconto-lead {
  font-size: var(--text-sm);
  opacity: 0.9;
  margin: 0 0 var(--space-3);
  line-height: 1.55;
}
.desconto-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--space-4);
  padding: 0;
}
.desconto-tags li {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-card--tint {
  background: linear-gradient(120deg, var(--cream) 0%, var(--gray-50) 100%);
  border-style: dashed;
}
.side-nl {
  padding: var(--space-5);
}
.side-nl__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--navy);
  margin: 0 0 var(--space-2);
}
.side-nl__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
  line-height: 1.55;
}
.side-nl__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff !important;
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.side-nl__btn:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.mini-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.mini-empty {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  padding: var(--space-3);
}

.side-map {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-3);
  border: 1px solid var(--border);
}
.side-map__addr {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 var(--space-2);
}
.side-map__link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}
.side-map__link:hover {
  text-decoration: underline;
}

.video-title a {
  color: inherit;
  text-decoration: none;
}
.video-title a:hover {
  color: var(--red);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media(max-width:1024px) {
  .main-layout,
  .main-layout--editorial { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card,
  .hero-card--glass { display: none; }
  .sidebar-column { position: static; }
  .atlas-strip__inner { grid-template-columns: 1fr; }
}
@media(max-width:768px) {
  html { --sitra-header-offset: 124px; }
  /* Contactos só na topbar: barra vazia — remove altura fantasma no mobile */
  .topbar { display: none; }
  .news-grid,
  .news-grid--editorial { grid-template-columns: 1fr; }
  .news-grid--lead-stack {
    grid-template-columns: 1fr;
  }
  .news-card--editorial.is-featured:not(.news-card--lead) {
    display: block;
    grid-template-columns: 1fr;
  }
  .news-card--editorial.is-featured:not(.news-card--lead) .news-img,
  .news-card--editorial.is-featured:not(.news-card--lead) .news-img-large {
    min-height: 200px;
    height: 220px;
  }
  .hero-stats,
  .hero-stats--chips {
    flex-wrap: wrap;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .sindic-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.125rem, 5.5vw, var(--text-4xl)); max-width: none; }
  .hero-lead { font-size: var(--text-sm); }
  .post-nav { grid-template-columns: 1fr; }
  .main-feed { padding: var(--space-5); border-radius: var(--radius-lg); }
  .quick-links--rail .container { flex-direction: column; align-items: flex-start; }
}
@media(max-width:480px) {
  html { --sitra-header-offset: 108px; }
  .container { padding: 0 var(--space-4); }
  .section-title { font-size: var(--text-lg); }
  .logo-link img { width: 48px; height: 48px; }
  .header-social {
    flex: 1 1 100%;
    justify-content: center;
    margin-left: 0;
    padding-top: var(--space-1);
  }
  .header-social a,
  .header-social__link {
    width: 42px;
    height: 42px;
  }
  .header-social svg {
    width: 20px;
    height: 20px;
  }
  .header-cta {
    padding: 8px 12px;
    font-size: var(--text-xs);
  }
}
