/* =============================================================
   Instituto Palmas Brasil — Folha de Estilos Principal
   Organização: assets/css/style.css
   ============================================================= */

/* ===== RESET & TOKENS ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta principal */
  --navy:        #2a3580;
  --navy-dark:   #1b2360;
  --navy-light:  #3d4fa0;
  --gold:        #F5A623;
  --gold-dark:   #d4891a;
  --sky:         #29ABE2;
  --sky-light:   #e8f7fd;
  --white:       #ffffff;
  --gray-50:     #f8f9fa;
  --gray-100:    #f1f3f5;
  --gray-200:    #e9ecef;
  --gray-400:    #adb5bd;
  --gray-600:    #6c757d;
  --gray-800:    #343a40;
  --text:        #1a1d2e;

  /* Categorias */
  --cat-cultura:  #7c3aed;
  --cat-turismo:  #0ea5e9;
  --cat-esportes: #16a34a;
  --cat-eventos:  #f97316;

  /* Raios e sombras */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.14);

  /* Tipografia */
  --font-body:   'Inter', system-ui, sans-serif;
  --font-title:  'Sora', system-ui, sans-serif;

  /* WhatsApp */
  --whatsapp:       #25D366;
  --whatsapp-hover: #1eb956;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.6;
}

img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }

/* ===== UTILIDADES ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge-cultura   { background: #ede9fe; color: var(--cat-cultura); }
.badge-turismo   { background: #e0f2fe; color: var(--cat-turismo); }
.badge-esportes  { background: #dcfce7; color: var(--cat-esportes); }
.badge-eventos   { background: #ffedd5; color: var(--cat-eventos); }
.badge-parceiro  { background: #fef3c7; color: #92400e; }
.badge-publico   { background: #e0e7ff; color: #3730a3; }
.badge-fomento   { background: #dbeafe; color: #1e40af; }
.badge-educacao  { background: #f3e8ff; color: #6b21a8; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
}

.btn-primary         { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover   { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline         { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover   { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-ghost           { background: var(--gray-100); color: var(--navy); }
.btn-ghost:hover     { background: var(--gray-200); }

/* ===== BREAKING NEWS BAR ===== */
.breaking-bar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: .8rem;
  padding: 8px 0;
  overflow: hidden;
}

.breaking-bar .inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breaking-label {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-ticker { overflow: hidden; white-space: nowrap; }

.breaking-ticker span {
  display: inline-block;
  animation: ticker 32s linear infinite;
  color: var(--gray-200);
}

@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ===== HEADER ===== */
.header-top {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

.header-top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo com tamanho ampliado */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-img {
  height: 72px;            /* Bem visível e destacado */
  width: auto;
  max-width: 250px;
  object-fit: contain;
  transition: transform .2s ease;
}

.logo-wrap:hover .logo-img {
  transform: scale(1.02);
}

.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  font-size: .88rem;
  font-family: var(--font-body);
  background: var(--gray-50);
  outline: none;
  transition: border-color .2s;
}

.header-search input:focus { border-color: var(--sky); background: var(--white); }

.header-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Botão WhatsApp no Header */
.btn-whatsapp-header {
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: .85rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(37,211,102,.35);
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-whatsapp-header:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,.5);
  color: var(--white);
}

.btn-doe {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: .88rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 10px rgba(245,166,35,.4);
  transition: all .2s;
  white-space: nowrap;
}

.btn-doe:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(245,166,35,.5); }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,29,46,.3);
}

.navbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap; /* Não permite quebra */
  overflow: visible;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 11px;        /* Padding ajustado para zero quebras */
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .2s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;       /* Sem quebra de linha */
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
  background: rgba(255,255,255,.08);
}

.nav-links > li > a i { font-size: .95rem; }

.nav-categoria {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-left: 8px;
}

.cat-pill {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.cat-pill-cultura  { background: rgba(124,58,237,.25); color: #c4b5fd; }
.cat-pill-turismo  { background: rgba(14,165,233,.25); color: #7dd3fc; }
.cat-pill-esportes { background: rgba(22,163,74,.25);  color: #86efac; }
.cat-pill:hover    { filter: brightness(1.3); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 14px;
}

/* ===== HERO ===== */
.hero { background: var(--white); padding: 32px 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--sky) 100%);
  display: flex;
  align-items: flex-end;
}

.hero-main-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1588416936097-41850ab3d86d?w=900&q=80') center/cover;
  opacity: .55;
}

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,29,46,.95) 0%, rgba(26,29,46,.3) 60%, transparent 100%);
}

.hero-main-content {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.hero-main-content .badge { margin-bottom: 12px; font-size: .75rem; }

.hero-main-content h1 {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
}

.hero-meta i { color: var(--gold); }

/* Hero Sidebar */
.hero-side { display: flex; flex-direction: column; gap: 16px; }

.hero-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  gap: 14px;
  padding: 14px;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}

.hero-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
  border-color: var(--sky);
}

.hero-card-img {
  width: 90px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  flex-shrink: 0;
  object-fit: cover;
}

.hero-card-body { flex: 1; min-width: 0; }
.hero-card-body .badge { margin-bottom: 6px; }

.hero-card-body h3 {
  font-family: var(--font-title);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-body .meta {
  font-size: .75rem;
  color: var(--gray-600);
  margin-top: 5px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-top: 5px;
}

/* ===== SECTIONS ===== */
.section { padding: 48px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.link-ver-mais {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s;
}

.link-ver-mais:hover { gap: 10px; color: var(--sky); }

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.news-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.nc-cultura  { background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.nc-turismo  { background: linear-gradient(135deg, #e0f2fe, #7dd3fc); }
.nc-esportes { background: linear-gradient(135deg, #dcfce7, #86efac); }
.nc-eventos  { background: linear-gradient(135deg, #ffedd5, #fdba74); }

.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-body .badge { margin-bottom: 10px; }

.news-card-body h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-card-body p {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  font-size: .78rem;
  color: var(--gray-600);
}

.news-card-footer .author { display: flex; align-items: center; gap: 7px; }

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.news-card-footer .date { display: flex; align-items: center; gap: 4px; }
.news-card-footer .date i { color: var(--gold); }

/* ===== EVENTOS ===== */
.eventos-section { background: var(--sky-light); padding: 48px 0; }
.eventos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.evento-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  border-left: 4px solid var(--sky);
  transition: all .2s;
}

.evento-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }

.evento-date-block {
  background: var(--navy);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  flex-shrink: 0;
}

.evento-day {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}

.evento-month {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
}

.evento-body { padding: 16px; flex: 1; }
.evento-body .badge { margin-bottom: 8px; }

.evento-body h4 {
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.evento-info {
  font-size: .8rem;
  color: var(--gray-600);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.evento-info span { display: flex; align-items: center; gap: 5px; }
.evento-info i    { color: var(--sky); font-size: .9rem; }

/* ===== CATEGORIAS ===== */
.categorias-section { padding: 48px 0; background: var(--white); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.cat-card {
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .08;
  transition: opacity .25s;
}

.cat-card:hover::before { opacity: .15; }
.cat-card:hover         { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.cat-cultura-card  { background: linear-gradient(135deg, #2d1f63, #4c1d95); color: white; }
.cat-turismo-card  { background: linear-gradient(135deg, #0c4a6e, #0369a1); color: white; }
.cat-esportes-card { background: linear-gradient(135deg, #14532d, #15803d); color: white; }

.cat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.cat-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
}

.cat-card p { font-size: .85rem; opacity: .8; line-height: 1.5; }

.cat-card .cat-count {
  margin-top: auto;
  font-size: .78rem;
  opacity: .7;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =============================================================
   NOVA SEÇÃO / ABA: PARCEIROS & COLABORADORES
   ============================================================= */
.parceiros-section {
  padding: 56px 0;
  background: #f4f6fa;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.parceiros-intro {
  color: var(--gray-600);
  font-size: .95rem;
  margin-top: -12px;
  margin-bottom: 24px;
  max-width: 720px;
}

/* Filtros / Abas dos Parceiros */
.parceiros-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  border-color: var(--navy-light);
  color: var(--navy);
  background: var(--gray-50);
}

.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(42,53,128,.25);
}

/* Grid de Cards de Parceiros */
.parceiros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.parceiro-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.parceiro-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.parceiro-logo-wrap {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}

.parceiro-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}

.parceiro-card:hover .parceiro-logo-wrap img {
  transform: scale(1.04);
}

.parceiro-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.parceiro-name {
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
}

.parceiro-tipo {
  font-size: .75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.parceiro-desc {
  font-size: .78rem;
  color: var(--gray-600);
  line-height: 1.45;
  margin-top: 4px;
}

/* Card CTA Seja um Parceiro */
.parceiro-card-cta {
  border: 2px dashed #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.parceiro-card-cta:hover {
  border-color: var(--whatsapp);
  box-shadow: 0 4px 20px rgba(37,211,102,.2);
}

.cta-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(37,211,102,.12);
  color: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 56px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-text h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.newsletter-text p { color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.6; }

.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-row  { display: flex; gap: 10px; }

.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  background: rgba(255,255,255,.12);
  color: var(--white);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus        { background: rgba(255,255,255,.18); }

.btn-newsletter {
  padding: 13px 24px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: all .2s;
}

.btn-newsletter:hover { background: var(--gold-dark); }
.newsletter-note      { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ===== FOOTER ===== */
footer {
  background: #0f1420;
  color: rgba(255,255,255,.8);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo-card {
  display: inline-block;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.footer-brand .logo-img {
  height: 54px;
  width: auto;
}

.footer-brand p {
  font-size: .87rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-links { display: flex; gap: 10px; }

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: all .2s;
}

.social-btn:hover { background: var(--gold); color: var(--navy-dark); }
.social-btn.whatsapp:hover { background: var(--whatsapp); color: var(--white); }

.footer-col h4 {
  font-family: var(--font-title);
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-col ul li a:hover { color: var(--gold); }
.footer-col ul li a i     { font-size: .8rem; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a       { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold); }

.footer-badges { display: flex; gap: 10px; align-items: center; }

.footer-badge {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: .72rem;
  color: rgba(255,255,255,.4);
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 96px;    /* Acima do botão do WhatsApp */
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all .2s;
  z-index: 998;
}

.back-top:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-3px); }

/* ===== BOTÃO WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 999;
  transition: all .25s;
  animation: pulse-wpp 2.5s ease-in-out infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.7);
  animation: none;
  color: var(--white);
}

@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.8), 0 0 0 10px rgba(37,211,102,.12); }
}

/* Tooltip do WhatsApp Flutuante */
.whatsapp-float::before {
  content: 'Fale conosco no WhatsApp';
  position: absolute;
  right: 70px;
  background: #0f1420;
  color: var(--white);
  font-size: .78rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.whatsapp-float:hover::before { opacity: 1; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1140px) {
  .nav-categoria { display: none; }
  .nav-links > li > a { padding: 14px 9px; font-size: .8rem; }
  .parceiros-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero-grid     { grid-template-columns: 1fr; }
  .hero-side     { flex-direction: row; }
  .hero-card     { flex: 1; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .parceiros-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .nav-links    { display: none; }
  .hamburger    { display: block; }
  .news-grid    { grid-template-columns: 1fr; }
  .eventos-grid { grid-template-columns: 1fr; }
  .cat-grid     { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .hero-side    { flex-direction: column; }
  .parceiros-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.12);
  }

  .stat-item {
    background: var(--navy-dark);
    border-right: none;
  }

  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .header-search { display: none; }
  .btn-whatsapp-header { display: none; }
  .logo-img { height: 56px; }
}

@media (max-width: 480px) {
  .hero-main-content h1 { font-size: 1.35rem; }
  .btn-doe              { padding: 8px 16px; font-size: .82rem; }
  .parceiros-grid       { grid-template-columns: 1fr; }
}


/* =============================================================
   SISTEMA DE MODAIS & LIGHTBOX (PIX, VOLUNTÁRIO, GALERIA)
   ============================================================= */

/* Backdrop / Fundo do Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 32, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Caixa do Modal */
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: var(--gray-100);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Modal PIX Específico */
.pix-qr-wrap {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.pix-qr-img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: white;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.pix-key-box {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  gap: 10px;
  width: 100%;
}

.pix-key-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: monospace;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy-dark);
  outline: none;
}

.btn-copy-pix {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-copy-pix:hover {
  background: var(--navy-light);
}

.btn-copy-pix.copied {
  background: #16a34a;
}

.pix-bank-details {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: .82rem;
  color: #78350f;
  line-height: 1.6;
}

/* Formulário de Voluntário */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.form-control {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--sky);
}

/* Seção de Galeria */
.galeria-section {
  padding: 56px 0;
  background: var(--white);
}

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

.galeria-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeria-item:hover img {
  transform: scale(1.08);
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 35, 96, 0.85) 0%, rgba(27, 35, 96, 0.2) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: opacity 0.25s ease;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-caption {
  color: var(--white);
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
}

.galeria-badge {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  margin-top: 4px;
}

/* Lightbox de Imagem */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 900px;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.lightbox-caption {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ===== BOTÃO PAINEL ADMINISTRATIVO ===== */
.btn-admin-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(42, 53, 128, 0.07);
  border: 1px solid rgba(42, 53, 128, 0.22);
  border-radius: 100px;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-admin-header i {
  color: var(--gold);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn-admin-header:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(42, 53, 128, 0.25);
  transform: translateY(-1px);
}

.btn-admin-header:hover i {
  color: #ffffff;
  transform: rotate(15deg);
}

@media (max-width: 992px) {
  .btn-admin-header span {
    display: none;
  }
  .btn-admin-header {
    padding: 8px 12px;
  }
}

