/*
Theme Name: Portal Gabriel Santana
Theme URI: https://portalgabrielsantana.com
Author: Bruno Corrêa · Bernardinense Consultoria
Author URI: https://bernardinense.com.br
Description: Tema próprio do Portal Gabriel Santana.
Version: 0.8.12
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: portal-gs
Update URI: false
*/

/* =========================================================
   1. Variáveis
   ========================================================= */
:root {
  --bg:         #0A0A0A;
  --bg-alt:     #111111;
  --bg-card:    #141414;
  --text:       #F0EDE6;
  --text-muted: rgba(240,237,230,0.45);
  --accent:     #E85D20;
  --accent-dim: rgba(232,93,32,0.1);
  --border:     rgba(240,237,230,0.08);
  --font-head:  'Newsreader', Georgia, serif;
  --font-body:  'Plus Jakarta Sans', system-ui, sans-serif;
  --container:  1160px;
  --r:          4px;
  --nav-h:      60px;
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   8rem;
}

/* =========================================================
   2. Reset e base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar nav.site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar nav.site-nav { top: 46px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

.container { width: 100%; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { max-width: 720px; margin: 0 auto; padding: 0 2rem; } }
@media (min-width: 1024px) { .container { max-width: var(--container); padding: 0 3rem; } }

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

.skip-link {
  position: absolute; top: -100px; left: var(--space-md); z-index: 999;
  background: var(--accent); color: #0A0A0A; padding: 10px 20px;
  font-size: 13px; font-weight: 600; text-decoration: none; border-radius: var(--r);
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-sm); }

/* =========================================================
   3. Navegação
   ========================================================= */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); height: var(--nav-h); }
.nav-logo {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 550; font-style: italic;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: var(--space-md); }
.nav-links { display: none; list-style: none; gap: var(--space-md); align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); padding-bottom: 4px; }
.mobile-menu a[aria-current="page"] { color: var(--text); border-left: 2px solid var(--accent); }
.nav-cta {
  display: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em; color: var(--accent);
  text-decoration: none; border: 1px solid rgba(232,93,32,0.4); padding: 8px 18px;
  border-radius: var(--r); transition: background 0.2s; white-space: nowrap;
  min-height: 44px; align-items: center;
}
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: var(--accent-dim); }

.hamburger {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
  min-height: 44px; min-width: 44px; justify-content: center; align-items: center;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; background: var(--bg-alt); border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
  font-size: 15px; color: var(--text-muted); text-decoration: none;
  padding: 14px 1.25rem; border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }

/* Conteúdo começa abaixo do nav fixo */
.site-main { padding-top: var(--nav-h); min-height: 60vh; }

/* =========================================================
   4. Rodapé
   ========================================================= */
footer.site-footer { padding: 5rem 0 2.5rem; border-top: 1px solid var(--border); }
.footer-top { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.footer-brand .logo {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 550; font-style: italic;
  color: var(--text); letter-spacing: 0.02em; margin-bottom: 0.5rem; text-decoration: none; display: inline-block;
}
.footer-brand .tagline { font-size: 13px; color: var(--text-muted); font-weight: 300; letter-spacing: 0.05em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; }
.footer-nav-group h2 {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem;
}
.footer-nav-group ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-group a {
  font-size: 14px; color: var(--text); text-decoration: none; opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.footer-nav-group a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .footer-bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 2rem; row-gap: 1.25rem; }
  .footer-copy { grid-column: 1; grid-row: 1; justify-self: start; }
  .footer-credit { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .footer-legal { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
.footer-copy, .footer-credit { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.04em; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }
.footer-dev { margin-top: 1.5rem; text-align: center; font-size: 11px; color: var(--text-muted); opacity: 0.5; }
.footer-dev a { color: var(--text-muted); text-decoration: underline; }
.footer-dev a:hover { color: var(--accent); }

/* =========================================================
   5. Página inicial
   ========================================================= */
.home .site-main { padding-top: 0; }

/* Botões */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #0A0A0A;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 28px; border-radius: var(--r); min-height: 48px; border: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 14px 28px; border-radius: var(--r);
  border: 1px solid var(--border); min-height: 48px;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: rgba(240,237,230,0.25); }
.btn-secondary:disabled { opacity: 0.5; cursor: wait; }

/* Hero */
#hero {
  min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: var(--nav-h); position: relative; overflow: hidden;
}
.hero-content { position: static; width: 100%; padding: var(--space-lg) 0; }
.hero-text { position: relative; z-index: 2; }
.hero-figure { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero-figure::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,0.85) 35%, rgba(10,10,10,0.2) 65%, transparent 80%);
}
.hero-figure-img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.hero-label, .about-label, .contact-label {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-sm);
  display: flex; align-items: center; gap: 10px;
}
.hero-label::before, .about-label::before, .contact-label::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--accent);
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.5rem, 5.5vw, 5.25rem);
  font-weight: 550; font-style: italic; line-height: 0.95; color: var(--text);
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  margin-top: var(--space-md); font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 300; color: var(--text-muted); max-width: 440px; line-height: 1.7;
}
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }
.hero-caption, .hero-canto { display: none; }
@media (min-width: 1024px) {
  #hero { min-height: min(100svh, 860px); align-items: center; }
  .hero-content { padding: var(--space-md) 0; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; }
  .hero-figure { position: relative; inset: auto; z-index: 1; height: min(calc(100svh - var(--nav-h) - 6rem), 620px); aspect-ratio: 3 / 4; }
  .hero-figure::after { background: none; }
  .hero-figure-img { object-position: center 30%; }
  .hero-title { font-size: clamp(3rem, 5.2vw, 4.5rem); }
  .hero-caption {
    display: flex; gap: 10px; align-items: center; position: absolute; left: 0; bottom: -34px;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
  }
  .hero-caption::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
  .hero-canto { display: block; position: absolute; width: 56px; height: 56px; border: 0 solid var(--accent); pointer-events: none; }
  .hero-canto--topo { top: -12px; left: -12px; border-width: 2px 0 0 2px; }
  .hero-canto--base { bottom: -12px; right: -12px; border-width: 0 2px 2px 0; }
  .hero-caption { bottom: -44px; }
}

/* Cabeçalho das seções */
.section-header { display: flex; align-items: flex-start; gap: var(--space-md); margin-bottom: var(--space-md); }
@media (min-width: 1024px) { .section-header { margin-bottom: 3rem; } }
.section-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 550; font-style: italic; color: var(--text); line-height: 1; }
.section-sub { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* Notícias */
#work { padding: var(--space-lg) 0; }
@media (min-width: 1024px) { #work { padding: 6rem 0; } }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md); }
.filter-btn {
  display: inline-flex; align-items: center; text-decoration: none;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); background: transparent;
  border: 1px solid var(--border); padding: 8px 16px; border-radius: 2px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; min-height: 40px;
}
.filter-btn:hover { color: var(--text); border-color: rgba(240,237,230,0.2); }
.filter-btn.active { color: var(--accent); border-color: rgba(232,93,32,0.4); background: var(--accent-dim); }
.news-grid { transition: opacity 0.2s; }
.news-grid.is-loading { opacity: 0.35; pointer-events: none; }
.news-top, .news-list { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
.news-list:not(:empty) { margin-top: 1px; }

@media (min-width: 768px) {
  .news-top { grid-template-columns: repeat(2, 1fr); }
  .news-top .card--destaque { grid-column: 1 / -1; }
  .news-top.has-2 .card--lateral { grid-column: 1 / -1; }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .news-list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .news-top.has-2, .news-top.has-3 { grid-template-columns: 2fr 1fr; }
  .news-top .card--destaque { grid-column: auto; }
  .news-top.has-1 .card--destaque { grid-column: 1 / -1; }
  .news-top.has-2 .card--lateral { grid-column: auto; }
  .news-top.has-3 .card--destaque { grid-row: span 2; }

  /* Lista em 6 colunas: 3 cards por linha; a última linha se ajusta para não sobrar buraco */
  .news-list { grid-template-columns: repeat(6, 1fr); }
  .news-list > * { grid-column: span 2; }
  .news-list > :last-child:nth-child(odd) { grid-column: span 2; }
  .news-list > :last-child:nth-child(3n+1) { grid-column: span 6; }
  .news-list > :nth-last-child(2):nth-child(3n+1),
  .news-list > :last-child:nth-child(3n+2) { grid-column: span 3; }
}

.work-card { position: relative; background: var(--bg); transition: background 0.2s; }
.work-card:hover { background: var(--bg-card); }
.work-card-inner { display: flex; flex-direction: column; height: 100%; }
.work-card-img {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.work-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover .work-card-img img { transform: scale(1.03); }
.work-card-placeholder {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(240,237,230,0.12);
}
.work-card-play {
  position: absolute; left: 16px; bottom: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.7); border: 1px solid rgba(240,237,230,0.25); color: var(--text);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.work-card-play svg { width: 18px; height: 18px; margin-left: 2px; }
.work-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.work-tag {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  color: var(--accent); background: var(--accent-dim); padding: 3px 8px; border-radius: 2px;
}
.work-date { font-size: 12px; color: var(--text-muted); }
.work-source { font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted); }
.work-source span { color: var(--accent); }
.work-card-title {
  font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 550; font-style: italic; color: var(--text); line-height: 1.15;
}
.work-card-title a { color: inherit; text-decoration: none; }
.work-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.work-card-title a:focus-visible { outline: none; }
.work-card:has(.work-card-title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.work-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.work-card-link {
  font-size: 13px; letter-spacing: 0.08em; color: var(--accent); font-weight: 500;
  align-self: flex-start; margin-top: auto; transition: opacity 0.2s;
}
.work-card:hover .work-card-link { opacity: 0.7; }

/* Destaque */
.card--destaque .work-card-img { aspect-ratio: 4 / 3; }
.card--destaque .work-card-title { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.08; }
.card--destaque .work-card-desc { font-size: 15px; max-width: 60ch; }
@media (min-width: 1024px) {
  .news-top.has-3 .card--destaque .work-card-img { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .news-top.has-3 .card--destaque .work-card-body { flex: 0 0 auto; }
  .news-top.has-1 .card--destaque .work-card-inner { flex-direction: row; }
  .news-top.has-1 .card--destaque .work-card-img { flex: 0 0 60%; aspect-ratio: 4 / 3; }
  .news-top.has-1 .card--destaque .work-card-body { justify-content: center; padding: var(--space-lg); }
}

/* Com 2 notícias: a lateral acompanha a altura do destaque */
@media (min-width: 1024px) {
  .news-top.has-2 .card--lateral .work-card-img { aspect-ratio: auto; flex: 1; min-height: 240px; }
  .news-top.has-2 .card--lateral .work-card-body { flex: 0 0 auto; }
}

/* Card que sobra sozinho na última linha: fica horizontal em vez de esticar a foto */
@media (min-width: 768px) and (max-width: 1023px) {
  .news-list > :last-child:nth-child(odd) .work-card-inner { flex-direction: row; }
  .news-list > :last-child:nth-child(odd) .work-card-img { flex: 0 0 50%; aspect-ratio: 3 / 2; }
  .news-list > :last-child:nth-child(odd) .work-card-body { justify-content: center; }
}
@media (min-width: 1024px) {
  .news-list > :last-child:nth-child(3n+1) .work-card-inner { flex-direction: row; }
  .news-list > :last-child:nth-child(3n+1) .work-card-img { flex: 0 0 calc(66.666% - 1px); aspect-ratio: 16 / 7; }
  .news-list > :last-child:nth-child(3n+1) .work-card-body { justify-content: center; }
  .news-list > :nth-last-child(2):nth-child(3n+1) .work-card-img,
  .news-list > :last-child:nth-child(3n+2) .work-card-img { aspect-ratio: 16 / 9; }
}

.news-more { display: flex; justify-content: center; margin-top: var(--space-lg); }
.news-empty { color: var(--text-muted); }
.news-todas { margin-top: var(--space-md); text-align: center; }
.news-todas a { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.news-todas a:hover { opacity: 0.75; }

/* Sobre */
#about { padding: var(--space-lg) 0; }
@media (min-width: 1024px) { #about { padding: 6rem 0; } }
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); } }
.about-visual { position: relative; border-radius: 2px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.about-visual-media { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; filter: contrast(1.05); }
.about-visual-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, transparent 30%); pointer-events: none; }
.about-headline {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 550; font-style: italic; color: var(--text); line-height: 1.1; margin-bottom: var(--space-md);
}
.about-bio { display: flex; flex-direction: column; gap: var(--space-sm); }
.about-bio p { font-size: 15px; color: var(--text-muted); line-height: 1.8; font-weight: 300; }
.about-bio p strong { color: var(--text); font-weight: 500; }
.about-bio a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.2s; }
.about-bio a:hover { opacity: 0.75; }

/* Contato */
#contact { padding: var(--space-lg) 0; }
@media (min-width: 1024px) { #contact { padding: 6rem 0; } }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); align-items: center; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-headline {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 550; font-style: italic; color: var(--text); line-height: 1.05; margin-bottom: var(--space-md);
}
.contact-headline em { font-style: normal; color: var(--accent); }
.contact-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: #0A0A0A;
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 18px 36px; border-radius: var(--r); min-height: 56px; transition: opacity 0.2s;
}
.contact-cta:hover { opacity: 0.88; }
.contact-cta svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-info dd { margin: 0; }
.contact-info { display: flex; flex-direction: column; gap: 12px; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.contact-info-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); font-size: 13px; }
.contact-info-label { letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.contact-info-value { color: var(--text); text-align: right; overflow-wrap: anywhere; }
.contact-info-value a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.contact-info-value a:hover { opacity: 0.7; }

/* =========================================================
   6. Página da matéria
   ========================================================= */
.post-narrow { max-width: 760px; }
@media (min-width: 1024px) { .post-narrow { max-width: 760px; } }

.post-header { padding: var(--space-lg) 0 var(--space-md); }
@media (min-width: 1024px) { .post-header { padding: 6rem 0 var(--space-md); } }
.post-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-sm); }
.post-title {
  font-family: var(--font-head); font-style: italic; font-weight: 550;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; color: var(--text);
}
.post-byline { margin-top: var(--space-sm); font-size: 14px; color: var(--text-muted); letter-spacing: 0.02em; }

.post-cover { margin: var(--space-md) auto var(--space-lg); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.post-cover figcaption, .post-content figcaption {
  margin-top: 10px; font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em;
}

/* Conteúdo vindo do editor */
.post-content { font-size: 18px; line-height: 1.8; color: rgba(240,237,230,0.82); font-weight: 300; }
.post-content > * + * { margin-top: 1.4em; }
.post-content h2, .post-content h3 {
  font-family: var(--font-head); font-style: italic; font-weight: 550; color: var(--text); line-height: 1.15;
}
.post-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2em; }
.post-content h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 1.8em; }
.post-content strong { color: var(--text); font-weight: 500; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: 0.4em; }
.post-content blockquote {
  border-left: 2px solid var(--accent); padding: 0.2em 0 0.2em 1.4em; margin-left: 0;
  font-family: var(--font-head); font-style: italic; font-weight: 250; font-size: 1.45em; line-height: 1.35; color: var(--text);
}
.post-content blockquote cite { display: block; margin-top: 0.8em; font-family: var(--font-body); font-style: normal; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.post-content img { border-radius: 2px; }
.post-content figure { margin-left: 0; margin-right: 0; }
.post-content .wp-block-embed__wrapper iframe,
.post-content iframe { max-width: 100%; }
.post-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.post-content .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-content hr { border: 0; height: 1px; background: var(--border); margin: 2.5em 0; }

.post-meta a.work-tag { text-decoration: none; transition: background 0.2s; }
.post-meta a.work-tag:hover { background: rgba(232,93,32,0.2); }
.post-meta-sep { opacity: 0.5; }

/* Fim da matéria: um bloco só, discreto */
.post-end { margin-top: var(--space-lg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-end-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 18px 0; }
.post-end-row + .post-end-row { border-top: 1px solid var(--border); }
.post-end-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }

/* Modelos prontos do editor */
.post-content .portal-rotulo {
  font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: -0.6em;
}
.post-content .portal-contexto {
  background: var(--bg-card); border: 1px solid var(--border); border-left: 2px solid var(--accent);
  padding: 1.4em 1.6em; font-size: 16px; line-height: 1.75;
}
.post-content .portal-contexto > * + * { margin-top: 0.8em; }
.post-content .portal-contexto .portal-rotulo { margin-bottom: 0; }
.post-content .portal-citacao { font-size: 1.7em; }
.post-content .wp-block-gallery.portal-galeria { gap: 4px; }
.post-content .portal-bloco-galeria > * + * { margin-top: 0.9em; }
.post-content .wp-block-gallery figure { margin: 0; }
.post-content .wp-block-gallery figcaption { font-size: 11px; }

/* Cores e tamanhos da paleta do editor */
.post-content .has-texto-color { color: var(--text); }
.post-content .has-texto-suave-color { color: var(--text-muted); }
.post-content .has-laranja-color { color: var(--accent); }
.post-content .has-fundo-card-background-color { background: var(--bg-card); padding: 1.2em 1.4em; }
.post-content .has-laranja-background-color { background: var(--accent); color: #0A0A0A; padding: 1.2em 1.4em; }

.post-original a, .post-original strong {
  font-family: var(--font-head); font-style: italic; font-weight: 550; font-size: 1.15rem; color: var(--text); text-decoration: none;
}
.post-original a:hover { color: var(--accent); }
.post-original a span { color: var(--accent); }

.post-share a, .post-share button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text-muted); background: transparent; border: 1px solid var(--border);
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.post-share a:hover, .post-share button:hover { color: var(--accent); border-color: rgba(232,93,32,0.4); }
.post-share svg { width: 16px; height: 16px; }
.post-share-ok { font-size: 12px; color: var(--accent); }

/* Chamada da matéria: coluna do texto mais larga e título um pouco menor */
@media (min-width: 1024px) { .post-cta .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.post-cta .contact-headline { font-size: clamp(1.9rem, 3.4vw, 3rem); }

.cta-perfil {
  display: flex; align-items: center; gap: 20px; text-decoration: none; color: inherit;
  padding: var(--space-md) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) { .cta-perfil { justify-self: end; min-width: 360px; } }
.cta-perfil-foto { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); border: 1px solid var(--border); }
.cta-perfil-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.cta-perfil-texto { display: flex; flex-direction: column; gap: 2px; }
.cta-perfil-texto strong { font-family: var(--font-head); font-style: italic; font-weight: 550; font-size: 1.4rem; color: var(--text); line-height: 1.1; }
.cta-perfil-texto > span { font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; }
.cta-perfil-texto .cta-perfil-link { margin-top: 8px; color: var(--accent); letter-spacing: 0.06em; transition: opacity 0.2s; }
.cta-perfil:hover .cta-perfil-link { opacity: 0.75; }

.post-related { padding: var(--space-lg) 0; }
@media (min-width: 1024px) { .post-related { padding: 6rem 0 var(--space-lg); } }
.post-related .section-title { margin-bottom: var(--space-md); }

.post-cta { padding: var(--space-lg) 0; border-top: 1px solid var(--border); }
@media (min-width: 1024px) { .post-cta { padding: 6rem 0; } }

/* =========================================================
   7. Listas, 404 e páginas comuns
   ========================================================= */
.lista { padding: var(--space-lg) 0; }
@media (min-width: 1024px) { .lista { padding: 6rem 0; } }
.lista-header { margin-bottom: var(--space-md); }
@media (min-width: 1024px) { .lista-header { margin-bottom: 3rem; } }
.lista-header .section-sub p { margin: 0; }
.lista-voltar { display: inline-block; margin-top: var(--space-sm); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); text-decoration: none; }
.lista-voltar:hover { opacity: 0.75; }

.paginacao { margin-top: var(--space-lg); display: flex; justify-content: center; }
.paginacao ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.paginacao a, .paginacao span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  font-size: 13px; color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.paginacao a:hover { color: var(--text); border-color: rgba(240,237,230,0.25); }
.paginacao .current { color: var(--accent); border-color: rgba(232,93,32,0.4); background: var(--accent-dim); }
.paginacao .dots { border: 0; }

.pagina-404 { padding: var(--space-xl) 0; min-height: 70vh; display: flex; align-items: center; }
.pagina-404 .post-title em { font-style: normal; color: var(--accent); }
.pagina-404-texto { margin-top: var(--space-md); color: var(--text-muted); font-size: 17px; max-width: 520px; }

.pagina .post-header { padding-bottom: var(--space-lg); }
.pagina .post-content { padding-bottom: var(--space-xl); }


/* Banner de cookies */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; flex-direction: column; gap: 0.9rem; }
@media (min-width: 768px) { .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; } }
.cookie-texto { font-size: 13px; line-height: 1.6; color: var(--text-muted); max-width: 720px; }
.cookie-texto a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.cookie-texto a:hover { color: var(--accent); }
.cookie-acoes { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 20px; min-height: 42px; border-radius: var(--r); cursor: pointer; transition: opacity 0.2s, border-color 0.2s;
}
.cookie-btn--aceitar { background: var(--accent); color: #0A0A0A; border: 1px solid var(--accent); }
.cookie-btn--aceitar:hover { opacity: 0.88; }
.cookie-btn--recusar { background: transparent; color: var(--text); border: 1px solid var(--border); }
.cookie-btn--recusar:hover { border-color: rgba(240,237,230,0.25); }
