/*
Theme Name: GEPPaC
Theme URI: https://geppac.ufma.br
Author: GEPPaC / PGCult - UFMA
Description: Tema institucional do GEPPaC — single-page com navegação por âncoras, identidade visual em azulejo maranhense. Inspirado no modelo OnePress.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geppac
*/

/* =====================================================================
   DESIGN TOKENS
   ===================================================================== */
:root {
  --az:       #1B4965;
  --az-deep:  #0E2B3D;
  --gold:     #A9802E;
  --gold-lt:  #C39A45;
  --terra:    #B5562B;
  --paper:    #F3EEE2;
  --paper-d:  #EAE3D2;
  --ink:      #20211D;
  --ink-s:    #54544B;
  --line:     #D8CFB8;
  --white:    #ffffff;
  --radius:   3px;

  /* Customizer overrides land here */
  --color-primary:    var(--az);
  --color-accent:     var(--gold);
  --color-highlight:  var(--terra);
  --color-bg:         var(--paper);
  --color-text:       var(--ink);
}

/* =====================================================================
   RESET / BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
h1,h2,h3,h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute; left: -9999px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* mono label */
.label-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* =====================================================================
   TILE STRIP
   ===================================================================== */
.tile-strip {
  height: 6px;
  background: repeating-linear-gradient(45deg,
    var(--color-primary) 0 4px, transparent 4px 8px);
}
.tile-strip.gold {
  background: repeating-linear-gradient(45deg,
    var(--color-accent) 0 4px, transparent 4px 8px);
}

/* =====================================================================
   NAVIGATION — fixed, transparent → solid on scroll
   ===================================================================== */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 0;
}
#masthead.scrolled {
  background: var(--az-deep);
  box-shadow: 0 2px 18px rgba(0,0,0,.35);
}
#masthead.transparent {
  background: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand .logo-img { max-height: 44px; width: auto; }
.brand .logo-mark {
  width: 36px; height: 36px;
  border: 2px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold);
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 14px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.brand .logo-mark span { transform: rotate(-45deg); }
.brand .site-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}
.brand .site-desc {
  font-size: .65rem;
  color: #aac4d4;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .05em;
}

/* Primary menu */
#primary-menu {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 2px;
}
#primary-menu a {
  display: block;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
#primary-menu a:hover,
#primary-menu .current-menu-item a {
  color: var(--gold);
  background: rgba(255,255,255,.06);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  padding: 8px 11px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle .bar {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: transform .25s, opacity .25s;
}

/* =====================================================================
   HERO — dois painéis: 70% conteúdo + 30% banner rotativo
   ===================================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  position: relative;
  /* overflow: hidden removido — impedia o painel de avisos de aparecer em mobile */
}

/* Painel esquerdo 70% — conteúdo institucional */
.hero-left {
  flex: 0 0 70%;
  max-width: 70%;
  display: flex;
  align-items: var(--hero-valign, center);
  position: relative;
  background: var(--hero-bg-color, var(--az-deep));
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  /* padding simétrico — nunca menor que a altura do menu (72px) */
  padding: max(80px, 80px) 0;
  min-height: 100vh;
}
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  /* overlay uniforme — mesmo tom do painel de avisos */
  background: rgba(14,43,61,.72);
}
.hero-avisos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14,43,61,.72);
  pointer-events: none;
  z-index: 0;
}
.hero-avisos > * { position: relative; z-index: 1; }
.hero-left .wrap {
  position: relative;
  z-index: 2;
  padding-right: 32px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
  text-align: var(--hero-halign, left);
  display: flex;
  flex-direction: column;
  align-items: var(--hero-content-align, flex-start);
}

/* Painel direito 30% — avisos, notícias e reuniões */
.hero-avisos {
  flex: 0 0 30%;
  max-width: 30%;
  background: var(--hero-bg-color, var(--az-deep));
  border-left: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
  /* overflow: hidden removido — colapsava o conteúdo em mobile */
  position: relative;
}
.hero-avisos-head {
  /* padding-top = altura do menu fixo (72px) */
  padding: 72px 20px 14px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.hero-avisos-head svg { flex-shrink: 0; }
.hero-avisos-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(169,128,46,.3) transparent;
}
.avisos-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  transition: background .15s;
}
.avisos-item:hover { background: rgba(255,255,255,.04); }
.avisos-date {
  text-align: center;
  width: 34px;
  flex-shrink: 0;
  padding-top: 2px;
}
.avisos-day {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #edf2f6;
  line-height: 1;
}
.avisos-mon {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7a9aac;
  margin-top: 2px;
}
.avisos-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.avisos-dot.n { background: #378ADD; }
.avisos-dot.r { background: #639922; }
.avisos-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.avisos-icon {
  display: flex;
  align-items: center;
  color: #7a9aac;
  margin-bottom: 2px;
}
.avisos-info strong {
  font-size: .82rem;
  font-weight: 500;
  color: #d0dde5;
  line-height: 1.3;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avisos-info span {
  font-size: .72rem;
  color: #7a9aac;
  line-height: 1.4;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avisos-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: transparent;
  flex-shrink: 0;
}
.avisos-footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .03em;
  text-decoration: none;
  transition: opacity .15s;
}
.avisos-footer a:hover { opacity: .75; }
.avisos-empty {
  padding: 20px;
  font-size: .8rem;
  color: #7a9aac;
  font-style: italic;
  line-height: 1.5;
}


#hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: var(--hero-sub-size, 1.05rem);
  line-height: 1.7;
  color: #d0dde5;
  margin-bottom: 32px;
  max-width: 52ch;
}
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.badge {
  border: 1px solid rgba(90,124,146,.7);
  color: #e3eaee;
  font-size: .72rem;
  padding: 5px 12px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .04em;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 24px;
  font-size: .88rem;
  font-weight: 600;
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: #1b1a14;
  border-radius: var(--radius);
  transition: background .18s, transform .15s;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn.outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn.outline:hover { background: var(--color-primary); color: #fff; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.45);
  font-size: .7rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  animation: bounce 2s infinite;
  z-index: 2;
}
.scroll-cue svg { opacity: .6; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* =====================================================================
   SECTION SCAFFOLD
   ===================================================================== */
.section { padding: 96px 0; }
.section.alt { background: var(--paper-d); }
.section.dark {
  background: var(--az-deep);
  color: #efe6d2;
}
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head .eyebrow {
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 14px;
}
.section-head .lead {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--ink-s);
  font-size: 1rem;
}
.section.dark .section-head .lead { color: #a0b8c6; }
.section.dark .section-head h2 { color: #fbf8f0; }

/* =====================================================================
   QUEM SOMOS — two-column
   ===================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  position: relative;
}
.about-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-img::after {
  content: '';
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--gold);
  z-index: -1;
}
.about-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 20px;
  color: var(--color-primary);
}
.about-text p { font-size: 1rem; line-height: 1.8; color: var(--ink-s); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stat-item .num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item .lbl {
  font-size: .78rem;
  color: var(--ink-s);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =====================================================================
   LINHAS DE PESQUISA — icon cards
   ===================================================================== */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.line-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--color-primary);
  padding: 28px 22px 24px;
  transition: box-shadow .2s, transform .2s;
}
.line-card:hover {
  box-shadow: 0 12px 32px -16px rgba(20,40,60,.3);
  transform: translateY(-4px);
}
.line-card .icon {
  width: 48px; height: 48px;
  background: var(--paper-d);
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
}
.line-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.line-card p { font-size: .88rem; color: var(--ink-s); margin: 0; line-height: 1.6; }

/* =====================================================================
   PROJETOS — fichas de catalogação
   ===================================================================== */
.ficha-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ficha {
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  padding: 22px 20px 20px;
  transition: box-shadow .2s, transform .2s;
}
.ficha:hover {
  box-shadow: 0 14px 28px -18px rgba(20,30,40,.35);
  transform: translateY(-3px);
}
.ficha::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: repeating-linear-gradient(45deg,
    var(--color-primary) 0 4px, transparent 4px 8px);
}
.ficha .acc {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--color-highlight);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .73rem;
  letter-spacing: .04em;
}
.ficha h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 10px; }
.ficha h3 a { color: var(--ink); }
.ficha p { font-size: .875rem; color: var(--ink-s); line-height: 1.6; margin: 0 0 14px; }
.ficha dl { margin: 0; font-size: .78rem; border-top: 1px dashed var(--line); padding-top: 12px; }
.ficha dl div { display: flex; justify-content: space-between; padding: 3px 0; }
.ficha dt { color: var(--ink-s); font-family: 'IBM Plex Mono', monospace; }
.ficha dd { margin: 0; font-weight: 600; text-align: right; max-width: 60%; }
.status {
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: 'IBM Plex Mono', monospace;
}
.status.on   { background: #e3eee4; color: #2e6b40; }
.status.done { background: #ede6f2; color: #5b3b82; }
.empty-note { font-size: .9rem; color: var(--ink-s); font-style: italic; }

/* =====================================================================
   PUBLICAÇÕES — ledger
   ===================================================================== */
.ledger { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ledger thead th {
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-s);
  border-bottom: 1px solid var(--ink);
  padding: 0 0 12px;
}
.ledger tbody td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger tbody tr:hover td { background: var(--paper-d); }
.ledger .ttl { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1rem; }
.ledger .ttl a { color: var(--ink); }
.ledger .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 2px 7px;
  white-space: nowrap;
}
.ledger .yr { font-family: 'IBM Plex Mono', monospace; color: var(--ink-s); }
.pubs-actions { margin-top: 36px; text-align: center; }

/* =====================================================================
   EQUIPE — 4 por linha, OnePress style
   ===================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
}
.member-card {
  text-align: center;
  transition: transform .2s;
}
.member-card:hover { transform: translateY(-4px); }
.member-avatar {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid var(--line);
  transition: border-color .2s;
}
.member-card:hover .member-avatar { border-color: var(--gold); }
.member-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.member-avatar .initials {
  width: 100%; height: 100%;
  background: var(--color-primary);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--paper);
}
.member-social {
  position: absolute;
  inset: 0;
  background: rgba(27,73,101,.82);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  border-radius: 50%;
}
.member-card:hover .member-social { opacity: 1; }
.member-social a {
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.5);
  padding: 5px 10px;
}
.member-card .nm {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.member-card .role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-highlight);
}

/* =====================================================================
   NOTÍCIAS — cards grid (OnePress style)
   ===================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover {
  box-shadow: 0 14px 32px -16px rgba(20,40,60,.3);
  transform: translateY(-4px);
}
.news-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--az);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 22px 20px; }
.news-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.news-meta .cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-highlight);
}
.news-meta .date { font-size: .78rem; color: var(--ink-s); }
.news-card h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 10px; }
.news-card h3 a { color: var(--ink); }
.news-card p { font-size: .875rem; color: var(--ink-s); line-height: 1.6; margin: 0; }
.news-actions { margin-top: 48px; text-align: center; }

/* =====================================================================
   CONTATO — layout horizontal, sem formulário
   ===================================================================== */
.contact-items--row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.contact-items--row .contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 220px;
}
.contact-items { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ico {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-item .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8aacbc;
  margin-bottom: 3px;
}
.contact-item .val { color: #d5e1e8; font-size: .93rem; }
.contact-social-wrap { margin-bottom: 8px; }

/* =====================================================================
   FOOTER WIDGETS
   ===================================================================== */
.footer-widgets {
  background: var(--az-deep);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 56px 0 32px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 48px;
}
.footer-widgets .widget-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-widgets .widget {
  font-size: .88rem;
  color: #a0b8c6;
  line-height: 1.7;
}
.footer-widgets .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets .widget li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.footer-widgets .widget a { color: #a0b8c6; transition: color .15s; }
.footer-widgets .widget a:hover { color: var(--gold); }

/* =====================================================================
   FOOTER BAR
   ===================================================================== */
footer.site-footer {
  background: #09192594;
  background: #0a1d28;
  color: #6a8a9c;
  padding: 24px 0;
  font-size: .8rem;
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy a { color: var(--gold); }
/* ── REDES SOCIAIS (ícone SVG + label) ─────────────────────────────── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.15);
  color: #c9d8e2;
  font-size: .78rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .03em;
  border-radius: var(--radius);
  transition: border-color .18s, color .18s, background .18s;
  text-decoration: none;
}
.social-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(169,128,46,.08);
}
.social-links a svg { flex-shrink: 0; }

/* Versão para rodapé (ícone apenas, sem label) */
.social-links.icon-only a span { display: none; }
.social-links.icon-only a {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
}

/* ── LOGOS DE PARCEIROS ───────────────────────────────────────────── */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  justify-items: center;
  align-items: stretch;
}
.partner-logos .partner-logo {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--partner-box-bg, #ffffff);
  border: 1px solid var(--partner-box-border, rgba(255,255,255,.15));
  border-radius: var(--radius);
  padding: 14px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  overflow: hidden;
}
a.partner-logo { text-decoration: none; cursor: pointer; }
a.partner-logo:hover {
  box-shadow: 0 0 0 2px var(--color-accent);
  transform: translateY(-3px);
}
.partner-logos .partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* mantém proporção sem cortar */
  display: block;
  /* sem filter — a logo aparece com suas cores originais */
}
@media (max-width: 900px) {
  .partner-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .partner-logos { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   BLOG SIDEBAR (notícias internas)
   ===================================================================== */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.blog-layout.no-sidebar { grid-template-columns: 1fr; }
.post-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: 0 14px 28px -18px rgba(20,30,40,.35); transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--az); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px; }
.post-card .meta { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; color: var(--terra); margin-bottom: 8px; }
.post-card h3 { font-size: 1rem; line-height: 1.3; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card p { font-size: .875rem; color: var(--ink-s); line-height: 1.6; margin: 0; }
.sidebar-widgets .widget { background: #fff; border: 1px solid var(--line); padding: 20px; margin-bottom: 24px; }
.sidebar-widgets .widget-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.sidebar-widgets .widget ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.sidebar-widgets .widget li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sidebar-widgets .widget a { color: var(--ink); }
.sidebar-widgets .widget a:hover { color: var(--az); }

/* =====================================================================
   SINGLE POST / PAGE
   ===================================================================== */
.page-header { padding: 140px 0 48px; background: var(--az-deep); color: #fff; }
.page-header .eyebrow { color: #a0b8c6; margin-bottom: 12px; }
.page-header h1 { font-size: clamp(28px, 4vw, 46px); color: #fbf8f0; }
.entry-content {
  padding: 56px 0;
  font-size: 1rem;
  line-height: 1.85;
  max-width: 760px;
}
.entry-content h2 { font-size: 1.5rem; margin: 32px 0 14px; color: var(--az-deep); }
.entry-content h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.entry-content p { margin: 0 0 18px; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin: 0 0 18px; }
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  color: var(--ink-s);
  font-style: italic;
}
.entry-meta { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: var(--ink-s); margin-top: 10px; }

/* =====================================================================
   CPT SINGLE pages
   ===================================================================== */
.cpt-single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; padding: 56px 0; }
.cpt-meta-box { background: var(--paper-d); border: 1px solid var(--line); padding: 24px; }
.cpt-meta-box h4 { font-size: .72rem; font-family: 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cpt-meta-box dl { margin: 0; font-size: .875rem; }
.cpt-meta-box dl div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.cpt-meta-box dt { color: var(--ink-s); }
.cpt-meta-box dd { margin: 0; font-weight: 600; text-align: right; }

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
#back-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: var(--color-primary);
  color: #fff;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  border-radius: var(--radius);
  z-index: 200;
  font-size: .8rem;
  cursor: pointer;
}
#back-top.show { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-3px); background: var(--az-deep); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .lines-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 960px) {
  #hero { flex-direction: column; }
  .hero-left  { flex: none; max-width: 100%; min-height: 50vh; padding: max(80px,80px) 0 48px; }
  .hero-avisos {
    flex: none;
    max-width: 100%;
    height: auto;          /* cresce conforme o conteúdo */
    max-height: none;
  }
  .hero-avisos-head { padding: 16px 20px 14px; }
  .hero-avisos-body {
    /* em mobile, sem altura fixa: mostra todos os itens sem scroll */
    flex: none;
    overflow-y: visible;
    overflow: visible;
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-img::after { display: none; }
  .ficha-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .contact-items--row { flex-direction: column; gap: 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .blog-layout { grid-template-columns: 1fr; }
  .cpt-single-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  #primary-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--az-deep);
    padding: 12px 0;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  #primary-menu.open { display: flex; }
  #primary-menu a { padding: 12px 28px; border-radius: 0; }
  .nav-inner { position: relative; }
}
@media (max-width: 560px) {
  .ficha-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .lines-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── Widget: Posts por Categoria ─────────────────────────── */
.geppac-posts-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}
.geppac-posts-item {
  display: flex;
  flex-direction: column;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  line-height: 1.4;
}
.geppac-posts-item:last-child { border-bottom: none; }
.geppac-posts-item a {
  font-size: .875rem;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s;
}
.geppac-posts-item a:hover { color: var(--color-primary); }
.geppac-posts-data {
  font-size: .72rem;
  color: var(--ink-s);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 2px;
}
.geppac-widget-cat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-highlight);
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.geppac-widget-cat-label:first-child { margin-top: 0; }

/* Widget no rodapé escuro */
.footer-widgets .geppac-posts-item a { color: #a0b8c6; }
.footer-widgets .geppac-posts-item a:hover { color: var(--gold); }
.footer-widgets .geppac-posts-item { border-bottom-color: rgba(255,255,255,.08); }
.footer-widgets .geppac-posts-data { color: #5a7c92; }
.footer-widgets .geppac-widget-cat-label { color: var(--gold); border-bottom-color: rgba(255,255,255,.1); }
