/*
Theme Name: Clube 3D Brasil
Theme URI: https://clube3dbrasil.com
Author: Clube 3D Brasil
Description: Tema original para comunidade de impressão 3D — figures, vasos, luminárias, crochê 3D e muito mais.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.5
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: clube3dbrasil
Tags: dark, 3d-printing, community, grid, responsive, custom-menu, featured-images, threaded-comments
*/

/* ── Google Fonts import ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

/* ── Variáveis ───────────────────────────────────────── */
:root {
  --bg:          #0d0d0d;
  --bg2:         #141414;
  --bg3:         #1a1a1a;
  --card:        #1e1e1e;
  --card2:       #252525;
  --accent:      #ff6600;
  --accent2:     #ff8833;
  --accent-dark: #cc4400;
  --accent-glow: rgba(255,102,0,.18);
  --green:       #22c55e;
  --blue:        #3b82f6;
  --yellow:      #f59e0b;
  --text:        #f0f0f0;
  --text2:       #aaaaaa;
  --text3:       #666666;
  --border:      #2a2a2a;
  --border2:     #333333;
  --radius:      8px;
  --radius-lg:   14px;
  --header-h:    68px;
  --shadow:      0 4px 24px rgba(0,0,0,.7);
  --font-head:   'Rajdhani', sans-serif;
  --font-body:   'Nunito', sans-serif;
  --trans:       .2s ease;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--accent); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent2); }
p { color: var(--text2); line-height: 1.7; margin-bottom: 1rem; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.2;
  letter-spacing: .03em;
}

/* ── Layout ──────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.site-content { padding-top: var(--header-h); }

/* ── HEADER ──────────────────────────────────────────── */
/* ── HEADER ──────────────────────────────────────────── */
#masthead {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(13,13,13,.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center;
  gap: 0;
}

/* ── LOGO ────────────────────────────────────────────── */
.site-branding { flex-shrink: 0; margin-right: 28px; }
.logo-link {
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo-badge {
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(145deg, #1a3a6e, #0d2044);
  border: 2px solid #2255aa;
  border-radius: 8px;
  padding: 3px 8px;
  min-width: 44px;
}
.logo-badge-stars {
  font-size: 7px; color: #f0c040;
  letter-spacing: 1px; line-height: 1;
  margin-bottom: 1px;
}
.logo-badge-body { display: flex; align-items: center; justify-content: center; }
.logo-3d {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700;
  color: #fff; letter-spacing: .05em;
  line-height: 1;
}
.logo-text-wrap { display: flex; align-items: center; }
.logo-name {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); letter-spacing: .07em;
  white-space: nowrap;
}
.logo-highlight { color: var(--accent); }

/* ── NAV PRINCIPAL ───────────────────────────────────── */
#site-navigation { flex: 1; }
.main-menu {
  display: flex; align-items: center;
  gap: 0; list-style: none;
  margin: 0; padding: 0;
}
.main-menu > li { position: relative; }
.main-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 13px;
  font-family: var(--font-head);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text2);
  border-radius: 6px;
  white-space: nowrap;
  transition: color var(--trans), background var(--trans);
}
.main-menu > li > a:hover,
.main-menu > .current-menu-item > a,
.main-menu > .current-menu-ancestor > a {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
/* Item "Home" em destaque */
.main-menu > .current-menu-item:first-child > a,
.main-menu > li:first-child > a {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
}
.main-menu > li:first-child > a:hover {
  background: var(--accent2);
  color: #fff;
}

/* Dropdown */
.main-menu > li > ul {
  display: none; position: absolute;
  top: calc(100% + 4px); left: 0;
  background: var(--card2); border: 1px solid var(--border2);
  border-radius: 8px; min-width: 180px;
  padding: 6px; list-style: none;
  box-shadow: var(--shadow); z-index: 200;
}
.main-menu > li:hover > ul { display: block; }
.main-menu > li > ul > li > a {
  display: block; padding: 8px 12px;
  font-size: 13px; color: var(--text2);
  border-radius: 6px;
  transition: all var(--trans);
}
.main-menu > li > ul > li > a:hover {
  color: var(--accent); background: var(--accent-glow);
}

/* Hambúrguer mobile */
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--border2);
  border-radius: 6px; padding: 8px 10px;
  cursor: pointer; flex-direction: column;
  gap: 4px; margin-left: auto;
}
.hamburger-line {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--trans);
}

/* ── BUSCA HEADER ────────────────────────────────────── */
.header-search { flex-shrink: 0; margin-left: 16px; }
.header-search form { display: flex; }
.search-wrap {
  display: flex; align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--trans);
}
.search-wrap:focus-within { border-color: var(--accent); }
.header-search input[type="search"] {
  background: transparent; border: none;
  color: var(--text); padding: 7px 12px;
  font-size: 13px; width: 170px; outline: none;
  font-family: var(--font-body);
}
.header-search input[type="search"]::placeholder { color: var(--text3); }
.header-search input[type="search"]:focus { width: 210px; }
.header-search button {
  background: var(--accent); border: none; color: #fff;
  padding: 7px 13px; cursor: pointer;
  font-size: 14px; font-weight: 700;
  transition: background var(--trans);
  display: flex; align-items: center;
}
.header-search button:hover { background: var(--accent2); }

/* ── BARRA DE CATEGORIAS ─────────────────────────────── */
.cat-bar {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar .container { display: flex; }
.cat-bar a {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 16px; white-space: nowrap;
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text2); border-bottom: 2px solid transparent;
  transition: all var(--trans);
}
.cat-bar a:hover, .cat-bar a.active {
  color: var(--accent); border-bottom-color: var(--accent);
  background: var(--accent-glow);
}
.cat-bar .cat-emoji { font-size: 15px; }

/* ── HERO BANNER ─────────────────────────────────────── */
.hero-banner {
  position: relative; width: 100%;
  height: clamp(320px, 52vh, 560px);
  overflow: hidden; background: var(--bg2);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.35) saturate(1.2);
  transform: scale(1.05); transition: transform 10s ease;
}
.hero-banner:hover .hero-bg { transform: scale(1); }
.hero-banner::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(13,13,13,.98) 0%, rgba(13,13,13,.55) 55%, transparent 100%),
    linear-gradient(to top, rgba(13,13,13,1) 0%, transparent 45%);
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%; display: flex;
  flex-direction: column; justify-content: flex-end;
  padding-bottom: 44px;
}
.hero-cats {
  display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap;
}
.hero-cat-tag {
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: #fff; max-width: 600px;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
  margin-bottom: 10px;
}
.hero-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.hero-meta span {
  font-size: 12px; color: var(--text2);
  background: rgba(255,255,255,.07);
  padding: 2px 9px; border-radius: 4px;
}
.hero-excerpt {
  max-width: 500px; font-size: 14px;
  color: var(--text2); margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; gap: 10px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 11px 22px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all var(--trans);
}
.btn-primary:hover {
  background: var(--accent2); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,102,0,.4);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--text);
  font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 20px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2); cursor: pointer;
  transition: all var(--trans);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ── SEÇÕES ──────────────────────────────────────────── */
.content-section { padding: 36px 0 16px; }
.section-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-head); font-size: 1.35rem;
  font-weight: 700; letter-spacing: .07em;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block;
  width: 4px; height: 1.35rem;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}
.section-more {
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.section-more:hover { color: var(--accent2); }

/* ── GRID DE CARDS ───────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}
.posts-grid.wide {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Card */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  transition: all var(--trans);
}
.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255,102,0,.15);
}
.post-card-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg3);
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.07); }
.post-card-overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,13,.5);
  opacity: 0; transition: opacity var(--trans);
  display: flex; align-items: center; justify-content: center;
}
.post-card:hover .post-card-overlay { opacity: 1; }
.play-icon {
  width: 46px; height: 46px;
  background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  box-shadow: 0 0 0 8px rgba(255,102,0,.2);
  transition: transform var(--trans);
}
.play-icon:hover { transform: scale(1.1); }

/* Badges no thumb */
.cat-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px; z-index: 2;
}
.cat-badge.croche  { background: #a855f7; }
.cat-badge.vasos   { background: #22c55e; }
.cat-badge.lumi    { background: #f59e0b; }
.cat-badge.chav    { background: #3b82f6; }
.cat-badge.util    { background: #ef4444; }
.new-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--green); color: #fff;
  font-size: 8px; font-weight: 800;
  padding: 2px 6px; border-radius: 3px; z-index: 2;
  letter-spacing: .08em;
}

/* Info do card */
.post-card-info { padding: 10px 12px 13px; }
.post-card-title {
  font-family: var(--font-body); font-size: 13px;
  font-weight: 700; color: var(--text);
  margin-bottom: 6px; line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-card-meta span { font-size: 11px; color: var(--text3); }
.post-card-meta .tag-pill {
  background: var(--accent-glow); color: var(--accent);
  padding: 1px 7px; border-radius: 3px;
  font-size: 10px; font-weight: 700;
}

/* ── CARD ESPECIFICAÇÕES (impressão 3D) ──────────────── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px; margin: 16px 0;
}
.spec-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
}
.spec-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 3px;
}
.spec-value { font-size: 13px; font-weight: 700; color: var(--text); }
.spec-value.accent { color: var(--accent); }

/* ── DOWNLOAD / WHATSAPP BUTTON ──────────────────────── */
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff;
  font-size: 14px; font-weight: 800;
  padding: 12px 22px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all var(--trans);
  text-transform: uppercase; letter-spacing: .06em;
}
.wa-btn:hover {
  background: #1db954; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.content-area {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 28px; align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px;
}
.widget-title {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  letter-spacing: .07em; color: var(--text);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.widget-title::before {
  content: ''; width: 3px; height: 1rem;
  background: var(--accent); border-radius: 2px; display: block;
}

/* Widget recent */
.widget-recent li {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.widget-recent li:last-child { border-bottom: none; }
.widget-recent .wthumb {
  width: 64px; height: 48px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden; background: var(--bg3);
}
.widget-recent .wthumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-recent .wtitle { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
.widget-recent .wdate  { font-size: 10px; color: var(--text3); margin-top: 3px; }
.widget-cats li a {
  display: flex; justify-content: space-between;
  padding: 7px 0; font-size: 13px; color: var(--text2);
  border-bottom: 1px solid var(--border); transition: color var(--trans);
}
.widget-cats li:last-child a { border-bottom: none; }
.widget-cats li a:hover { color: var(--accent); }
.wcount {
  background: var(--accent-glow); color: var(--accent);
  font-size: 10px; font-weight: 800;
  padding: 1px 7px; border-radius: 10px;
}
/* Widget destaque whatsapp */
.widget-wa {
  background: linear-gradient(135deg, #1a2a1a, #0d1a0d);
  border-color: #25d366;
}
.widget-wa p { font-size: 13px; color: #aaa; margin-bottom: 12px; }

/* ── SINGLE POST ─────────────────────────────────────── */
.single-hero-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 28px; position: relative; overflow: hidden;
}
.single-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(22px) brightness(.15) saturate(1.4);
  transform: scale(1.1);
}
.single-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr;
  gap: 28px; align-items: start;
}
.single-featured-img {
  width: 260px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); flex-shrink: 0;
}
.single-featured-img img { width: 100%; height: auto; display: block; }
.single-info { display: flex; flex-direction: column; gap: 14px; }
.single-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.single-cat-pill {
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
}
.single-title { font-size: clamp(1.5rem, 3.5vw, 2.4rem); color: #fff; }
.single-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-chip {
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text2); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 4px;
  transition: all var(--trans);
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.single-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Conteúdo do post */
.entry-content {
  font-size: 15px; line-height: 1.8; color: var(--text2);
}
.entry-content h2,.entry-content h3 {
  color: var(--text); margin: 22px 0 10px;
  font-family: var(--font-head);
}
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: var(--accent); }
.entry-content a:hover { color: var(--accent2); text-decoration: underline; }
.entry-content img {
  border-radius: var(--radius); margin: 12px 0;
  max-width: 100%; border: 1px solid var(--border);
}
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 18px; background: var(--bg3);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0; font-style: italic;
}
.entry-content strong { color: var(--text); }

/* ── PAGINAÇÃO ───────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 32px 0; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; color: var(--text2);
  background: var(--card); border: 1px solid var(--border);
  transition: all var(--trans); padding: 0 8px;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ── SEARCH ──────────────────────────────────────────── */
.search-header {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 44px 0; text-align: center;
}
.search-header h1 { font-size: 1.8rem; margin-bottom: 20px; }
.search-form-lg { display: flex; max-width: 500px; margin: 0 auto; }
.search-form-lg input {
  flex: 1; background: var(--bg3);
  border: 1px solid var(--border2); border-right: none;
  color: var(--text); padding: 12px 16px; font-size: 15px;
  border-radius: var(--radius) 0 0 var(--radius); outline: none;
}
.search-form-lg button {
  background: var(--accent); border: none; color: #fff;
  padding: 12px 22px; font-size: 15px; font-weight: 800;
  cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--trans);
}
.search-form-lg button:hover { background: var(--accent2); }

/* ── BREADCRUMB ──────────────────────────────────────── */
.breadcrumb {
  padding: 10px 0; font-size: 12px; color: var(--text3);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text3); }
.breadcrumb .current { color: var(--accent); }

/* ── FOOTER ──────────────────────────────────────────── */
#colophon { background: var(--bg2); border-top: 1px solid var(--border); margin-top: 48px; }
.footer-top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px; padding: 44px 0 28px;
}
.footer-brand .fbrand-name {
  font-family: var(--font-head); font-size: 1.6rem;
  font-weight: 700; color: var(--text); margin-bottom: 8px;
  letter-spacing: .08em;
}
.footer-brand .fbrand-name span { color: var(--accent); }
.footer-brand p { font-size: 13px; max-width: 270px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.fsocial {
  width: 34px; height: 34px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text2);
  transition: all var(--trans);
}
.fsocial:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-col h4 {
  font-family: var(--font-head); font-size: .95rem;
  font-weight: 700; letter-spacing: .08em;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text2); transition: color var(--trans); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--text3); margin: 0; }
.footer-bottom a { color: var(--accent); }
.footer-adsense-note {
  text-align: center; padding: 10px 0;
  font-size: 11px; color: var(--text3);
  border-top: 1px solid var(--border);
}

/* ── UTILITÁRIOS ─────────────────────────────────────── */
.no-results { text-align: center; padding: 80px 20px; color: var(--text3); }
.no-results h2 { font-size: 1.4rem; margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── AdSense / Anúncio placeholder ──────────────────── */
.ad-unit {
  background: var(--bg3); border: 1px dashed var(--border2);
  border-radius: var(--radius); padding: 16px;
  text-align: center; color: var(--text3);
  font-size: 12px; margin: 16px 0;
  min-height: 90px; display: flex;
  align-items: center; justify-content: center;
}

/* ── RESPONSIVO ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-search input[type="search"] { width: 130px; }
  .header-search input[type="search"]:focus { width: 160px; }
  .main-menu > li > a { padding: 6px 9px; font-size: 12.5px; }
}
@media (max-width: 768px) {
  :root { --header-h: 58px; }
  #site-navigation .main-menu { display: none; }
  #site-navigation .main-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h);
    left: 0; right: 0;
    background: rgba(13,13,13,.98);
    padding: 12px; gap: 2px;
    border-bottom: 1px solid var(--border); z-index: 999;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  #site-navigation .main-menu.open > li > a {
    padding: 10px 14px; font-size: 14px; border-radius: 8px;
  }
  .menu-toggle { display: flex; }
  .header-search { display: none; }
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .single-hero-inner { grid-template-columns: 1fr; }
  .single-featured-img { width: 100%; max-width: 320px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 480px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════
   PÁGINAS INSTITUCIONAIS
   ══════════════════════════════════════════════════════ */
.page-institucional {
  max-width: 880px;
  padding-top: 36px;
  padding-bottom: 64px;
}

/* Card principal */
.inst-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 18px;
}

/* Cabeçalho hero da página */
.inst-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 36px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg2), var(--card));
}
.inst-hero-icon {
  font-size: 2.4rem;
  width: 64px; height: 64px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.inst-title {
  font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 700;
  color: var(--text); margin: 0 0 4px;
}
.inst-subtitle {
  color: var(--accent);
  font-size: 13px; margin: 0;
  letter-spacing: .03em;
}

/* Corpo do conteúdo */
.inst-body {
  padding: 36px;
}
.inst-body h2 {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.inst-body h2:first-child { margin-top: 0; }
.inst-body p { color: var(--text2); font-size: 14px; line-height: 1.75; margin-bottom: 12px; }
.inst-body ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 14px;
}
.inst-body ul li {
  color: var(--text2); font-size: 14px;
  padding-left: 18px; position: relative; line-height: 1.6;
}
.inst-body ul li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.inst-body a { color: var(--accent); }
.inst-body a:hover { text-decoration: underline; }

/* Alert / aviso */
.inst-alert {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,102,0,.08);
  border: 1px solid rgba(255,102,0,.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 24px;
}
.inst-alert span { font-size: 1.2rem; flex-shrink: 0; }

/* CTA box (WhatsApp) */
.inst-cta-box {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg,#0d1a0d,#0a1a0a);
  border: 1px solid #25d366;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.inst-cta-box > span { font-size: 1.8rem; }
.inst-cta-box > div { flex: 1; }
.inst-cta-box strong { color: var(--text); display: block; margin-bottom: 2px; }

/* Grid de mini-cards (Sobre Nós) */
.inst-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.inst-mini-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px;
}
.inst-mini-card > span { font-size: 1.5rem; flex-shrink: 0; }
.inst-mini-card strong { color: var(--text); font-size: 13px; display: block; margin-bottom: 3px; }
.inst-mini-card p { color: var(--text2); font-size: 12px; margin: 0; line-height: 1.5; }

/* Rodapé do card institucional */
.inst-footer-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 16px 36px;
}
.inst-footer-box > span { font-size: 1.3rem; }
.inst-footer-box strong { color: var(--text); font-size: 13px; display: block; }

/* ── PÁGINA CONTATO ──────────────────────────────────── */
.contact-wa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.contact-wa-card {
  background: linear-gradient(145deg,#0a1a0a,#0d200d);
  border: 1px solid #25d36666;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.contact-wa-card:hover {
  border-color: #25d366;
  box-shadow: 0 0 20px rgba(37,211,102,.15);
}
.contact-wa-icon { font-size: 2rem; }
.contact-wa-card h3 { color: var(--text); font-size: 1rem; margin: 0; }
.contact-wa-card p { color: var(--text2); font-size: 13px; margin: 0; line-height: 1.6; flex: 1; }
.contact-wa-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
}
.contact-wa-meta span {
  font-size: 11px; color: #25d366;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.25);
  padding: 3px 8px; border-radius: 20px;
}
.contact-wa-btn { width: 100%; text-align: center; }

/* Divisor */
.contact-divider {
  display: flex; align-items: center;
  gap: 14px; margin: 28px 0;
}
.contact-divider::before,
.contact-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}
.contact-divider span {
  color: var(--text3); font-size: 12px;
  white-space: nowrap; letter-spacing: .05em;
}

/* Formulário nativo */
.contact-form-wrap h2 {
  font-family: var(--font-head);
  font-size: 1.2rem; margin-bottom: 4px;
}
.contact-native-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px; font-weight: 600;
  color: var(--text2);
}
.form-group .req { color: var(--accent); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--trans);
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select { 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='%23aaa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); cursor: pointer; line-height: 1.5; }
.form-check input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); width: 15px; height: 15px; }
.btn-submit {
  background: var(--accent);
  color: #fff; border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  align-self: flex-start;
}
.btn-submit:hover { background: var(--accent2); transform: translateY(-1px); }
.contact-admin-note {
  background: rgba(255,102,0,.07);
  border: 1px solid rgba(255,102,0,.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 12px; color: var(--text2);
  margin-top: 16px;
}
.contact-admin-note code {
  background: var(--bg3); padding: 1px 5px;
  border-radius: 4px; font-size: 11px;
}

/* Info grid contato */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px;
}
.contact-info-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-info-item strong { color: var(--text); font-size: 13px; display: block; margin-bottom: 4px; }
.contact-info-item p { color: var(--text2); font-size: 12px; margin: 0; line-height: 1.55; }

/* Responsivo páginas institucionais */
@media (max-width: 768px) {
  .inst-hero { padding: 24px 20px; flex-wrap: wrap; }
  .inst-body { padding: 24px 20px; }
  .inst-footer-box { padding: 14px 20px; }
  .inst-grid-cards { grid-template-columns: 1fr; }
  .contact-wa-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .inst-cta-box { flex-direction: column; text-align: center; }
  .inst-cta-box .wa-btn { width: 100%; text-align: center; }
}
