/**
 * ============================================================================
 * BLOG / PORTAL NÓS NA COMUNIDADE (FORTALEZA - CE)
 * ESTILOS PRINCIPAIS - MOBILE-FIRST & ANTI-OVERFLOW
 * Versão: 1.0
 * ============================================================================
 */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --color-primary: #059669;
  --color-primary-dark: #047857;
  --color-primary-light: #ecfdf5;
  --color-secondary: #0284c7;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-dark: #0f172a;
  --color-dark-muted: #334155;
  --color-gray: #64748b;
  --color-light-gray: #f1f5f9;
  --color-border: #e2e8f0;
  --color-white: #ffffff;
  --color-bg: #f8fafc;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --transition: all 0.25s ease-in-out;
}

/* Regra Obrigatória Anti-Overflow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header, main, section, footer {
  max-width: 100%;
  width: 100%;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: break-word;
}

p {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Topbar Institucional */
.topbar {
  background-color: var(--color-dark);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-location span.badge-city {
  background-color: rgba(5, 150, 105, 0.2);
  color: #34d399;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.topbar-social-link:hover {
  color: #ffffff;
}

.topbar-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Cabeçalho Principal */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo img {
  max-height: 48px;
  width: auto;
}

/* Navegação Desktop */
.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-dark-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.nav-cta {
  display: none;
}

/* Botão Hambúrguer Mobile */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: var(--color-light-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  transition: var(--transition);
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Menu Gaveta (Drawer) Mobile - Anti-Overflow */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 120;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 115;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--color-gray);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
}

.drawer-link:hover, .drawer-link.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.drawer-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.drawer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.drawer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-light-gray);
  color: var(--color-dark);
}

.drawer-social-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Botões Padronizados (com Anti-Nowrap em Mobile) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-light-gray);
  color: var(--color-dark);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #78350f;
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
}

/* Badges de Categoria */
.cat-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  color: #ffffff;
  background-color: var(--color-primary);
}

/* ==========================================================================
   Banner de Capa Oficial do Portal
   ========================================================================== */
.portal-cover-section {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 0 0.5rem 0;
  background-color: var(--color-bg);
}

.portal-cover-card {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  background-color: #0b0f19;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-cover-card:hover {
  box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(234, 179, 8, 0.2);
}

.portal-cover-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .portal-cover-section {
    padding: 0.85rem 0 0.25rem 0;
  }
  .portal-cover-card {
    border-radius: var(--radius-md);
  }
}

/* Hero Section / Destaque Principal */
.hero-section {
  padding: 2rem 0;
  background: linear-gradient(180deg, #f1f5f9 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.hero-lead-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.hero-lead-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.hero-lead-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #0f172a;
}

.hero-lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-lead-card:hover .hero-lead-image img {
  transform: scale(1.03);
}

.hero-lead-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-gray);
}

.hero-title {
  font-size: clamp(1.4rem, 3.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.25;
}

.hero-title a:hover {
  color: var(--color-primary);
}

.hero-excerpt {
  color: var(--color-dark-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Grid de Artigos Recentes / Destaques Laterais */
.hero-sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
}

.news-card-title a:hover {
  color: var(--color-primary);
}

.news-card-meta {
  font-size: 0.75rem;
  color: var(--color-gray);
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Seções por Categoria na Home */
.section-block {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 900;
  position: relative;
}

.section-indicator {
  width: 12px;
  height: 28px;
  border-radius: 4px;
  display: inline-block;
}

.section-more-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.section-more-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Seção de Patrocinadores */
.sponsors-section {
  background: var(--color-white);
  padding: 3.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.sponsor-item {
  background: var(--color-light-gray);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: var(--transition);
}

.sponsor-item:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.sponsor-item img {
  max-height: 55px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Banner Institucional Nós na Comunidade */
.community-banner {
  background: linear-gradient(135deg, #065f46 0%, #0f172a 100%);
  color: var(--color-white);
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 3rem auto;
  text-align: center;
}

.community-banner h3 {
  color: var(--color-white);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.community-banner p {
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.05rem;
}

/* Página de Leitura do Post */
.post-layout {
  padding: 2.5rem 0;
}

.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 1rem 0;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-gray);
}

.post-featured-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

.post-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1e293b;
  max-width: 820px;
  margin: 0 auto;
}

.post-body h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem 0;
}

.post-body h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem 0;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body blockquote {
  border-left: 4px solid var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #065f46;
  margin: 2rem 0;
}

.post-body ul, .post-body ol {
  margin: 1rem 0 1.5rem 2rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body img {
  border-radius: var(--radius-md);
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
}

/* Caixa de Compartilhamento Social */
.share-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem auto;
  max-width: 820px;
  box-shadow: var(--shadow-sm);
}

.share-header {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-gray);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn-wa {
  background-color: #25d366;
}
.share-btn-wa:hover {
  background-color: #1eb956;
}

.share-btn-fb {
  background-color: #1877f2;
}
.share-btn-fb:hover {
  background-color: #0d65d9;
}

.share-btn-tw {
  background-color: #0f1419;
}
.share-btn-tw:hover {
  background-color: #272c30;
}

.share-btn-copy {
  background-color: var(--color-light-gray);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}
.share-btn-copy:hover {
  background-color: #e2e8f0;
}

/* Toast de Alerta */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Rodapé Principal e Segurança de Botão Flutuante */
.site-footer {
  background-color: #090d16;
  color: #94a3b8;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-widget h4 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  /* Reserva obrigatória de área de segurança contra sobreposição do WhatsApp */
  padding-bottom: 5.5rem;
}

.footer-credits {
  margin-top: 0.5rem;
  color: #94a3b8;
}

.footer-credits a {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
}

.footer-credits a:hover {
  color: #7dd3fc;
}

/* Botão Flutuante do WhatsApp com Badge */
.wa-float-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  pointer-events: none;
}

.wa-float-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  pointer-events: auto;
  transition: transform 0.25s ease;
}

.wa-float-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.wa-float-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0.65rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
}

.wa-float-link:hover .wa-float-badge {
  background: #f0fdf4;
  color: #15803d;
  border-color: #22c55e;
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.28);
}

.wa-badge-pulse {
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.6);
  animation: wa-pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.wa-badge-text {
  line-height: 1.2;
}

.wa-float-btn {
  background-color: #25d366;
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.wa-float-link:hover .wa-float-btn {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
  background-color: #22bf5b;
}

.wa-float-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ============================================================================
   RESPONSIVIDADE E MEDIA QUERIES (ANTI-OVERFLOW STRICT)
   ============================================================================ */

/* Telas Maiores (Desktop >= 992px) */
@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
  }

  .nav-cta {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1.8fr 1.2fr;
  }

  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .sponsors-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* Tablets (Entre 640px e 991px) */
@media (min-width: 640px) and (max-width: 991px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Telas Mobile Críticas (<= 768px) */
@media (max-width: 768px) {
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    padding: 0.65rem 1rem;
  }

  .share-buttons {
    flex-direction: column;
  }

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

/* Telas Pequenas (<= 640px) */
@media (max-width: 640px) {
  .topbar-content {
    justify-content: center;
    text-align: center;
  }

  .site-logo img {
    max-width: 160px;
    height: auto;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .sponsor-item {
    min-height: 75px;
    padding: 0.75rem;
  }

  .hero-lead-content {
    padding: 1.25rem;
  }

  .wa-float-container {
    bottom: 1rem;
    right: 1rem;
  }

  .wa-float-link {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
  }

  .wa-float-badge {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    max-width: calc(100vw - 2.5rem);
    white-space: normal;
    text-align: right;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  }

  .wa-float-btn {
    width: 50px;
    height: 50px;
  }

  .wa-float-btn svg {
    width: 28px;
    height: 28px;
  }

  /* Área de segurança obrigatória para o rodapé (Anti-sobreposição) */
  .footer-bottom {
    padding-bottom: 7.5rem;
  }
}

/* Telas Ultra Pequenas (320px a 480px) */
@media (max-width: 480px) {
  .footer-bottom {
    padding-bottom: 8.5rem;
  }
}

