/**
 * style.css - Sinasefe Acre Demo
 * Base styling, typography, header, footer, navigation, layout switch, 404
 */

:root {
  --red: #c4161c;
  --red-dark: #8f0f14;
  --red-soft: #fdecec;
  --ink: #1d1b1b;
  --muted: #5f5a5a;
  --line: #ece7e4;
  --paper: #faf7f4;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #f4f0ec;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.2px;
  margin: 0;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(1px);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--red);
}

.btn-white:hover {
  background: #fdf5f5;
  color: var(--red-dark);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 6px;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */

.topbar {
  background: var(--ink);
  color: #d9d3cf;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 7px;
  padding-bottom: 7px;
  gap: 16px;
}

.topbar a {
  color: #d9d3cf;
  transition: color 0.15s;
}

.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

header.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  z-index: 100;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.site-branding .custom-logo {
  height: 56px;
  width: auto;
  display: block;
}

/* ==========================================================================
   Navigation (Desktop)
   ========================================================================== */

nav.main-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav.main-navigation ul.menu-list {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav.main-navigation li.menu-item {
  position: relative;
}

nav.main-navigation .menu-item-row {
  display: flex;
  align-items: center;
}

nav.main-navigation li.menu-item > a,
nav.main-navigation .menu-item-row > a {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 6px;
  color: var(--ink);
  transition: background-color 0.15s, color 0.15s;
}

nav.main-navigation li.menu-item > a:hover,
nav.main-navigation .menu-item-row > a:hover,
nav.main-navigation li.menu-item > a[aria-current="page"],
nav.main-navigation .menu-item-row > a[aria-current="page"] {
  background: var(--red-soft);
  color: var(--red);
}

nav.main-navigation li.menu-item.is-active > a,
nav.main-navigation li.menu-item.is-active > .menu-item-row > a {
  color: var(--red);
}

.submenu-toggle {
  background: transparent;
  border: 0;
  padding: 8px 6px;
  margin-left: -4px;
  cursor: pointer;
  color: var(--muted);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: color 0.15s, transform 0.15s;
}

.submenu-toggle:hover {
  color: var(--red);
}

.submenu-toggle .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Submenu dropdown */
nav.main-navigation ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 120;
}

nav.main-navigation ul.sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.15s, color 0.15s;
}

nav.main-navigation ul.sub-menu a:hover,
nav.main-navigation ul.sub-menu a[aria-current="page"] {
  background: var(--red-soft);
  color: var(--red);
  font-weight: 600;
}

@media (min-width: 901px) {
  nav.main-navigation li.menu-item-has-children:hover > ul.sub-menu,
  nav.main-navigation li.menu-item-has-children.is-open > ul.sub-menu,
  nav.main-navigation li.menu-item-has-children:focus-within > ul.sub-menu {
    display: block;
  }

  nav.main-navigation li.menu-item-has-children:hover .arrow,
  nav.main-navigation li.menu-item-has-children.is-open .arrow {
    transform: rotate(180deg);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

/* ==========================================================================
   Hamburger Button & Mobile Navigation (≤ 900px)
   ========================================================================== */

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, border-color 0.15s;
}

.menu-toggle:hover {
  background: var(--paper);
  border-color: #d8d0cb;
}

.hamburger-box {
  width: 22px;
  height: 16px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -7px;
}

.hamburger-inner::after {
  content: "";
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .topbar .wrap {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    font-size: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-wrap {
    min-height: 68px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-branding .custom-logo {
    height: 46px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  nav.main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  nav.main-navigation.is-open {
    display: flex;
  }

  nav.main-navigation ul.menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  nav.main-navigation .menu-item-row {
    justify-content: space-between;
    width: 100%;
  }

  nav.main-navigation li.menu-item > a,
  nav.main-navigation .menu-item-row > a {
    flex: 1;
    padding: 12px 14px;
    font-size: 16px;
  }

  .submenu-toggle {
    padding: 12px 16px;
    font-size: 14px;
  }

  nav.main-navigation li.menu-item-has-children.is-open .arrow {
    transform: rotate(180deg);
  }

  nav.main-navigation ul.sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--red);
    background: var(--paper);
    border-radius: 0 8px 8px 0;
    margin: 4px 0 8px 12px;
    padding: 6px 8px;
  }

  nav.main-navigation li.menu-item-has-children.is-open > ul.sub-menu {
    display: block;
  }

  nav.main-navigation ul.sub-menu a {
    padding: 10px 14px;
    font-size: 15px;
  }

  .header-actions {
    margin-left: 0;
    margin-top: 8px;
  }

  .header-actions .btn-filiacao {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-footer {
  background: var(--ink);
  color: #cfc8c4;
  padding: 48px 0 0;
  font-size: 14.5px;
  margin-top: auto;
}

footer.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

footer.site-footer h4 {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

footer.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2;
}

footer.site-footer a {
  color: #cfc8c4;
  transition: color 0.15s;
}

footer.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footlogo {
  background: #fff;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.footlogo img {
  height: 42px;
  width: auto;
  display: block;
}

.copy {
  border-top: 1px solid #3a3535;
  margin-top: 40px;
  padding: 18px 0;
  font-size: 13px;
  color: #8f8885;
}

@media (max-width: 900px) {
  footer.site-footer {
    padding-top: 36px;
  }

  footer.site-footer .cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   Layout Switch (Pill fixed bottom-right)
   ========================================================================== */

.layout-switch {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: rgba(29, 27, 27, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 10px 6px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.layout-switch-label {
  font-weight: 600;
  color: #d9d3cf;
}

.layout-switch-buttons {
  display: flex;
  gap: 6px;
}

.layout-switch-btn {
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  background: #3a3535;
  color: #cfc8c4;
  transition: all 0.15s ease;
}

.layout-switch-btn:hover {
  background: #504949;
  color: #fff;
}

.layout-switch-btn[aria-pressed="true"],
.layout-switch-btn.is-active {
  background: var(--red);
  color: #fff;
}

@media (max-width: 480px) {
  .layout-switch {
    bottom: 12px;
    right: 12px;
    padding: 5px 8px 5px 10px;
    font-size: 12px;
  }

  .layout-switch-btn {
    padding: 5px 10px;
    font-size: 11.5px;
  }
}

/* ==========================================================================
   404 Page Styles
   ========================================================================== */

.not-found-page {
  padding: 72px 24px;
  min-height: 55vh;
  display: flex;
  align-items: center;
}

.not-found-box {
  max-width: 620px;
}

.not-found-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.not-found-title {
  font-size: 48px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.not-found-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 28px;
}

.not-found-actions {
  margin-bottom: 32px;
}

.not-found-search {
  display: flex;
  gap: 8px;
  max-width: 480px;
}

.not-found-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Inter, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}

.not-found-search input:focus {
  outline: 2px solid var(--red);
}

@media (max-width: 600px) {
  .not-found-title {
    font-size: 36px;
  }

  .not-found-lead {
    font-size: 16px;
  }

  .not-found-search {
    flex-direction: column;
  }

  .not-found-search .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Mockup Foundation Styles (Home A, Home B, News, Quick access, Cards)
   ========================================================================== */

.heroA,
.hero-a {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(143, 15, 20, 0.97) 0%, rgba(196, 22, 28, 0.92) 45%, rgba(196, 22, 28, 0.55) 100%),
    url("../img/uploads/2023/09/cropped-WhatsApp-Image-2023-09-20-at-12.58.12.jpeg") center/cover;
}

.heroA .wrap,
.hero-a .wrap {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.heroA h1,
.hero-a h1 {
  color: #fff;
  font-size: 58px;
  line-height: 1;
  margin: 18px 0 16px;
}

.heroA p.lead,
.hero-a p.lead {
  font-size: 18px;
  line-height: 1.55;
  max-width: 540px;
  color: #fbe9e9;
  margin: 0 0 28px;
}

.hero-benefits-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.join-b-benefits-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.perks {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.perks h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.perks ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.perks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
}

.perks li:first-child {
  border-top: 0;
}

.dot {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.perks small {
  display: block;
  color: var(--muted);
  margin-top: 14px;
  font-size: 12.5px;
}

section.news {
  padding: 64px 0;
  background: var(--paper);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
}

.sec-head h2 {
  font-size: 38px;
}

.sec-head h2 span {
  color: var(--red);
}

.sec-head a {
  font-weight: 600;
  color: var(--red);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

.post {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.post img {
  width: 100%;
  display: block;
  object-fit: cover;
  background: #ddd;
}

.post-noimg {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  width: 100%;
  padding: 20px;
}

.post-noimg img {
  height: 48px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post .body {
  padding: 20px 22px 22px;
}

.cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 4px 9px;
  border-radius: 999px;
}

.date {
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
}

.post h3 {
  font-size: 26px;
  line-height: 1.1;
  margin: 12px 0 10px;
}

.post h3 a:hover,
.featB h2 a:hover,
.feat-b h2 a:hover {
  color: var(--red);
}

.post p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.post.big img {
  aspect-ratio: 16/9;
}

.more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--red);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post.row {
  flex-direction: row;
}

.post.row img {
  width: 150px;
  height: auto;
  aspect-ratio: 1;
}

.post.row .post-noimg {
  width: 150px;
  aspect-ratio: 1;
  flex: none;
  padding: 10px;
}

.post.row .post-noimg img {
  height: 32px;
  padding: 4px 8px;
}

.post.row .body {
  padding: 14px 16px;
}

.post.row h3 {
  font-size: 20px;
  margin: 8px 0 0;
}

section.quick {
  padding: 56px 0;
  background: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  transition: 0.15s;
}

.tile:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(196, 22, 28, 0.08);
}

.tile .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.tile .ic svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  display: block;
}

.tile h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.tile p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.heroB,
.hero-b {
  background: var(--paper);
  padding: 40px 0;
}

.heroB .wrap,
.hero-b .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.joinB,
.join-b {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #fff;
  border-radius: 18px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}

.joinB::after,
.join-b::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.joinB h1,
.join-b h1 {
  color: #fff;
  font-size: 50px;
  line-height: 1;
  margin: 16px 0 14px;
}

.joinB p,
.join-b p {
  color: #fbe9e9;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 24px;
}

.joinB .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.joinB .chips span {
  background: rgba(255, 255, 255, 0.15);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}

.featB,
.feat-b {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.featB img,
.feat-b img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.featB .body,
.feat-b .body {
  padding: 22px 26px 26px;
}

.featB h2,
.feat-b h2 {
  font-size: 30px;
  line-height: 1.08;
  margin: 12px 0 10px;
}

.featB .when,
.feat-b .when {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.featB .when div,
.feat-b .when div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
}

.featB .when svg,
.feat-b .when svg {
  color: var(--red);
  flex-shrink: 0;
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cards3 .post img {
  aspect-ratio: 4/3;
}

.cards3 .post-noimg {
  aspect-ratio: 4/3;
}

.cards3 .post h3 {
  font-size: 22px;
}

.quick-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-strip a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14.5px;
  background: #fff;
  transition: 0.15s;
}

.quick-strip a:hover {
  border-color: var(--red);
  color: var(--red);
}

@media (max-width: 900px) {
  .heroA .wrap,
  .hero-a .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .heroA h1,
  .hero-a h1 {
    font-size: 40px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .heroB .wrap,
  .hero-b .wrap {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .post.row {
    flex-direction: column;
  }

  .post.row img,
  .post.row .post-noimg {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .joinB,
  .join-b {
    padding: 32px 24px;
  }

  .joinB h1,
  .join-b h1 {
    font-size: 36px;
  }
}

/* ==========================================================================
   Post, Page & Sidebar Templates
   ========================================================================== */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.content-layout.page-fullwidth {
  display: block;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.main-column {
  min-width: 0;
}

.single-post,
.single-page {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  display: block;
}

/* Entry Header */
.entry-header {
  margin-bottom: 24px;
}

.entry-header .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cat-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.cat-badge:hover {
  background: var(--red);
  color: #fff;
}

.entry-date {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.single-post .entry-title,
.single-page .entry-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin: 8px 0 0;
  letter-spacing: -0.5px;
}

/* Post Featured Media */
.post-featured-media {
  margin: 24px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.post-featured-media img.post-featured-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.post-featured-media .post-noimg {
  aspect-ratio: 21/9;
  min-height: 220px;
  max-height: 320px;
  border-radius: 0;
}

/* Entry Content Styles */
.entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: #2b2828;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.entry-content p {
  margin: 0 0 20px;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.entry-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 28px 0 12px;
}

.entry-content h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 10px;
}

.entry-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.entry-content a:hover {
  color: var(--red-dark);
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

.entry-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--paper);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink);
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}

/* Responsive Content Media & Tables */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 20px 0;
}

.entry-content iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 0;
  border-radius: 10px;
  margin: 24px 0;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.entry-content th {
  background: var(--paper);
  font-weight: 700;
  color: var(--ink);
}

.entry-content tr:last-child td {
  border-bottom: 0;
}

/* Post Navigation (prev / next) */
.post-navigation {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.nav-previous,
.nav-next {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--red);
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-previous .nav-subtitle,
.nav-next .nav-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--red);
  margin-bottom: 6px;
}

.nav-next {
  text-align: right;
}

.nav-previous .nav-title,
.nav-next .nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* Filiação Download Banner */
.filiacao-download-banner {
  background: var(--red-soft);
  border: 2px solid #f8c9cb;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 24px 0 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.filiacao-download-info {
  flex: 1 1 380px;
}

.filiacao-download-info .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.filiacao-download-info h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--red-dark);
  margin: 0 0 8px;
  line-height: 1.15;
  border-bottom: 0;
  padding-bottom: 0;
}

.filiacao-download-info p {
  font-size: 15px;
  color: #3f3838;
  margin: 0;
  line-height: 1.5;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(196, 22, 28, 0.25);
}

/* Sidebar & Widgets */
aside.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.widget-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}

/* Search widget */
.widget_search .search-input-wrap {
  display: flex;
  gap: 8px;
}

.widget_search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}

.widget_search input[type="search"]:focus {
  outline: 2px solid var(--red);
}

/* Recent posts widget */
.widget_recent_entries ul.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget_recent_entries li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.widget_recent_entries li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.widget_recent_entries a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease;
}

.widget_recent_entries a:hover {
  color: var(--red);
}

.widget_recent_entries .post-date {
  font-size: 12px;
  color: var(--muted);
}

/* Categories widget */
.widget_categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget_categories li {
  font-size: 14.5px;
  line-height: 1.4;
}

.widget_categories a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.widget_categories a:hover {
  color: var(--red);
}

.widget_categories .count,
.widget_archive .count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.widget_categories ul.children {
  margin-top: 6px;
  margin-left: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  gap: 6px;
}

/* Archives widget */
.widget_archive ul.archives-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}

.widget_archive li {
  font-size: 14.5px;
  line-height: 1.4;
}

.widget_archive a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  text-transform: capitalize;
  transition: color 0.15s ease;
}

.widget_archive a:hover {
  color: var(--red);
}

/* Responsive Breakpoints for Templates */
@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 48px;
  }
}

@media (max-width: 600px) {
  .single-post .entry-title,
  .single-page .entry-title {
    font-size: 32px;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-next {
    text-align: left;
  }

  .filiacao-download-banner {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .filiacao-download-info h2 {
    font-size: 24px;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Archive, Category & Search Listings
   ========================================================================== */

.archive-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.archive-header .page-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.search-page-form {
  margin: 0 0 28px;
}

.search-page-form .search-form {
  display: flex;
  max-width: 540px;
}

.search-page-form .search-input-wrap {
  display: flex;
  gap: 10px;
  width: 100%;
}

.search-page-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: Inter, sans-serif;
  background: #fff;
  color: var(--ink);
}

.search-page-form input[type="search"]:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px var(--red-soft);
}

.search-prompt {
  font-size: 15.5px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  margin: 20px 0;
}

.empty-state {
  font-size: 16px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
  margin: 20px 0;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.listing-post {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.listing-post:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.listing-post .post-thumbnail {
  width: 220px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}

.listing-post .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-post .post-thumbnail .post-noimg {
  width: 100%;
  height: 100%;
  min-height: 160px;
}

.listing-post .body {
  padding: 20px 24px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.listing-post .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.listing-post .cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.listing-post .cat:hover {
  background: var(--red-dark);
}

.listing-post .date {
  font-size: 13px;
  color: var(--muted);
}

.listing-post .post-title {
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.listing-post .post-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.listing-post .post-title a:hover {
  color: var(--red);
}

.listing-post .post-excerpt {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-post .more {
  align-self: flex-start;
  margin-top: auto;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.listing-post .more:hover {
  color: var(--red-dark);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  margin: 36px 0;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.15s ease;
}

.pagination a.page-numbers:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.pagination .page-numbers.current {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-weight: 700;
}

.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  min-width: 24px;
  padding: 0 4px;
}

.pagination .page-numbers.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  background: #faf7f4;
}

.pagination .prev,
.pagination .next {
  padding: 0 16px;
}

@media (max-width: 600px) {
  .listing-post {
    flex-direction: column;
  }

  .listing-post .post-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .listing-post .body {
    padding: 16px;
  }

  .listing-post .post-title {
    font-size: 20px;
  }

  .archive-header .page-title {
    font-size: 28px;
  }

  .pagination .nav-links {
    gap: 4px;
  }

  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 8px;
  }

  .pagination .prev,
  .pagination .next {
    padding: 0 10px;
  }
}

/* ==========================================================================
   Contact Page & Form
   ========================================================================== */

.contact-page .contact-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 24px;
}

.contact-direct-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  margin-bottom: 28px;
}

.contact-direct-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fff;
  color: var(--red);
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.contact-direct-content {
  display: flex;
  flex-direction: column;
}

.contact-direct-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-direct-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.15s ease;
}

.contact-direct-link:hover {
  text-decoration: underline;
  color: var(--red-dark);
}

.contact-form {
  background: #fff;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-form label .required {
  color: var(--red);
  font-weight: 700;
  margin-left: 2px;
}

.contact-form .form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15px;
  font-family: Inter, sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.contact-form .form-actions {
  margin-top: 22px;
}

.contact-form .btn-submit {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
}

.contact-form-feedback {
  background: var(--red-soft);
  color: var(--red-dark);
  border: 1px solid rgba(196, 22, 28, 0.25);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 20px 16px;
  }

  .contact-direct-card {
    padding: 14px 16px;
  }
}


