/* Variáveis de tema (adaptadas do Tailwind config) */
:root {
  --background: 40 30% 94%;
  --foreground: 30 15% 20%;
  --card: 0 0% 100%;
  --card-foreground: 30 15% 20%;
  --primary: 35 100% 50%;
  --primary-foreground: 30 15% 20%;
  --secondary: 45 95% 55%;
  --secondary-foreground: 30 15% 20%;
  --muted: 40 20% 88%;
  --muted-foreground: 30 15% 45%;
  --accent: 220 80% 55%;
  --accent-foreground: 0 0% 100%;
  --border: 40 25% 85%;
  --radius: 1.25rem; /* Aumentado para cantos mais suaves */
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  scroll-padding-top: 80px; /* Offset for fixed header when using anchor links */
}
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  background-image: url('./public/background.png');
  background-size: cover;
  background-position: center;
  padding-top: 80px; /* Add padding to account for fixed header height */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 0.875rem; }

/* Layout utilitário */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem; /* Ajustado para consistência */
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: hsla(var(--background), 0.95); /* Menos transparência para melhor visibilidade */
  backdrop-filter: blur(12px); /* Blur mais forte */
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 1.25rem 0; 
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem; /* Add spacing between elements */
}
.brand { display: flex; align-items: center; gap: 1rem; }



.brand-name { 
  font-weight: 800; 
  font-size: 0.9rem; /* Even smaller text */
  display: none; 
}
@media (min-width: 640px) { .brand-name { display: inline; } }
.nav-links { display: none; list-style: none; gap: 2.5rem; align-items: center; } /* Mais espaçamento */
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { 
  font-weight: 700; 
  font-size: 1.1rem;
  position: relative;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
} /* Fonte mais forte */

.nav-links a.active {
  color: hsl(var(--primary));
  position: relative;
  background-color: hsla(var(--primary), 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: hsl(var(--primary));
  border-radius: 3px;
}
.nav-links a:hover { 
  color: hsl(var(--primary)); 
  transform: translateY(-2px);
  background-color: hsla(var(--primary), 0.05);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: hsl(var(--primary));
  border-radius: 3px;
}
.nav-links a:hover::after {
  width: 100%;
}

/* Menu Hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
  border-radius: 8px;
}

.mobile-menu-btn:hover {
  background-color: hsla(var(--primary), 0.1);
}

.icon-bar {
  display: block;
  width: 28px;
  height: 4px;
  background-color: hsl(var(--foreground));
  margin: 5px 0;
  border-radius: 3px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2rem;
  background-color: hsl(var(--card));
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem;
  border-bottom: 1px solid hsl(var(--border));
  text-align: center;
  z-index: 60;
  box-shadow: 0 12px 25px rgba(0,0,0,.1);
  backdrop-filter: blur(10px);
}

.mobile-menu a {
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.mobile-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(var(--primary), 0.1), transparent);
  transform: translateX(-100%);
}

.mobile-menu a:hover::before {
  transform: translateX(100%);
}

.mobile-menu a.active {
  color: hsl(var(--primary));
  background-color: hsla(var(--primary), 0.1);
}

.mobile-menu a:hover {
  color: hsl(var(--primary));
  background-color: hsla(var(--primary), 0.1);
  transform: translateX(5px);
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-menu.is-open { display: flex; }

  .mobile-menu-btn.is-open .icon-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .mobile-menu-btn.is-open .icon-bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.is-open .icon-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary, .btn-accent {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-primary { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { filter: brightness(0.95); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,.15); }
.btn-accent { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-accent:hover { filter: brightness(0.95); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,.15); }

.modern-section .btn {
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero */
.hero { 
  position: relative; 
  min-height: 100vh; 
  padding: 6rem 2rem; 
  overflow: hidden; 
  display: flex; 
  align-items: flex-start; 
  justify-content: center;
  background-image: url('../../public/hero-image.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 8rem;
}

.hero > .container {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 2rem 4rem 2rem; /* Reduced from 8rem/6rem to 6rem/4rem */
  }
}

@media (max-width: 1023px) {
  .hero {
    padding: 6rem 1rem 4rem 1rem; /* Reduced from 8rem/6rem to 6rem/4rem */
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.hero-grid { 
  display: grid; 
  gap: 4rem; 
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
  margin-top: 70px;
}

@media (min-width: 1024px) { 
  .hero-grid { 
    grid-template-columns: 1fr 1fr; 
  } 
}

@media (max-width: 1023px) { 
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem;
  } 
}

/* Ensure text is on left and image on right */
.hero-copy { 
  order: 1; 
  text-align: left;
}

.hero-media { 
  order: 2; 
}

@media (min-width: 1024px) {
  .hero-copy { 
    order: 1; 
    text-align: left; 
    align-self: center; 
    padding-right: 2rem; 
  }
  
  .hero-media { 
    order: 2; 
    justify-self: end; 
    width: 100%;
    align-self: center;
  }
}

/* Ensure proper alignment on mobile */
@media (max-width: 1023px) {
  .hero-copy { 
    text-align: center; 
    order: 2; 
  }
  
  .hero-media { 
    order: 1; 
    margin-bottom: 2rem;
  }
  
  .hero-text { text-align: center; }
  .btn { margin: 0 auto; }
}

.hero-title { 
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); 
  font-weight: 800; 
  line-height: 1.2; 
  margin-bottom: 1.5rem;
  color: hsl(var(--primary));
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.hero-text { 
  font-size: clamp(0.9rem, 1.5vw, 1rem); 
  color: hsl(var(--muted-foreground)); 
  margin-bottom: 2rem;
  text-align: left;
}

.shape-left, .shape-right { 
  position: absolute; 
  border-radius: 50%; 
  filter: blur(56px); 
  opacity: 0.25; 
  z-index: 1;
}

.shape-left { top: 5rem; left: -8rem; width: 20rem; height: 20rem; background-color: hsl(var(--primary)); }
.shape-right { bottom: 5rem; right: -12rem; width: 28rem; height: 28rem; background-color: hsl(var(--secondary)); }

.hero-media { 
  position: relative; 
  width: 100%;
}

.media-bg-1 { 
  position: absolute; 
  inset: -0.5rem; 
  border-radius: 3rem; 
  background-color: hsl(var(--primary)); 
  opacity: 0.3; 
  filter: blur(24px); 
}

.media-bg-2 { 
  position: absolute; 
  inset: -1rem; 
  border-radius: 4rem; 
  background-color: hsl(var(--secondary)); 
  opacity: 0.2; 
  filter: blur(36px); 
}

.media-frame { 
  position: relative; 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: 0 25px 60px rgba(0,0,0,.25); 
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .media-frame {
    max-width: none;
    margin: 0;
  }
}

.media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* News e Seções */
.news, .section { 
  position: relative; 
  padding: 3rem 0; /* Reduced from 6rem to 3rem for less vertical spacing */
  overflow: hidden; 
}

/* Modern section with background image */
.modern-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 3rem 0; /* Reduced from 5rem to 3rem */
  overflow: hidden;
  background-size: 110% 110%;
}

.modern-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85); /* Light transparency overlay */
  z-index: 1;
  backdrop-filter: blur(2px);
}

.modern-section > .container {
  position: relative;
  z-index: 2;
}

.modern-section:not(:target) {
  opacity: 1;
  transform: translateY(0);
}

.modern-section:target {
  opacity: 1;
  transform: translateY(0);
}

.modern-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.modern-section:not(.in-view) {
  opacity: 1;
  transform: translateY(0);
}

.modern-section .section-title {
  color: hsl(var(--primary));
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-section .card {
  background-color: hsla(var(--card), 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid hsla(var(--border), 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.modern-section .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  z-index: -1;
}

.modern-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: hsla(var(--primary), 0.3);
}

/* Enhanced Font Awesome icons */
.fas, .far, .fab {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.modern-section .card:hover .fas,
.modern-section .card:hover .far,
.modern-section .card:hover .fab {
  transform: scale(1.1);
  color: hsl(var(--primary));
}
.gradient-bg { position: absolute; inset: 0; background: linear-gradient(to bottom, hsla(var(--background), 1), hsla(var(--muted), 0.3), hsla(var(--background), 1)); }
.section-title { 
  position: relative; 
  z-index: 1; 
  text-align: center; 
  font-size: clamp(2.25rem, 4.5vw, 3.25rem); 
  font-weight: 800; 
  color: hsl(var(--primary)); 
  margin-bottom: 4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: hsl(var(--primary));
  border-radius: 2px;
}
.cards { 
  position: relative; 
  z-index: 1; 
  display: grid; 
  gap: 2.5rem; 
  margin: 0 auto;
  max-width: 1200px;
}
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card-hero {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transition: transform .3s ease;
}

.card:hover .card-hero img { 
  transform: scale(1.05); 
}

/* Improved section layout for better harmony */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem; /* Reduced from 4rem to 2rem */
  align-items: start;
  margin: 0 auto;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Reduced from 2.5rem to 1.5rem */
  }
}
.card { 
  background-color: hsl(var(--card)); 
  border: 1px solid hsl(var(--border)); 
  border-radius: var(--radius); 
  overflow: hidden; 
  cursor: pointer; 
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  z-index: -1;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card:hover { 
  transform: translateY(-10px); 
  box-shadow: 0 18px 50px rgba(0,0,0,.18); 
  border-color: hsla(var(--primary), 0.4); 
}

.card-hero {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transition: transform .3s ease;
}

.card:hover .card-hero img { 
  transform: scale(1.05); 
}

.card-body { 
  padding: 2rem; 
  position: relative;
  z-index: 1;
}

.card-body .card-title { 
  margin-top: 0; 
  margin-bottom: 1rem; 
}

.card-body .card-text { 
  margin-bottom: 1rem; 
}

.date {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary));
  font-weight: 700;
  z-index: 1;
  background-color: hsla(var(--card), 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 0.9rem;
}
.tag { 
  display: inline-block; 
  padding: 0.3rem 0.85rem; 
  background-color: hsla(var(--primary), .1); 
  color: hsl(var(--primary)); 
  font-size: 0.9rem; 
  font-weight: 700; 
  border-radius: 999px; 
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: hsla(var(--primary), .2);
  transform: scale(1.05);
}
.card-title { margin: 0 0 1rem 0; font-size: 1.3rem; font-weight: 800; color: hsl(var(--card-foreground)); display: flex; align-items: center; gap: 0.75rem; transition: all 0.3s ease; }

.card-title:hover {
  color: hsl(var(--primary));
}
.card-text { color: hsl(var(--muted-foreground)); line-height: 1.65; margin-bottom: 1.5rem; flex: 1; }
.card-icon { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); flex-shrink: 0; transition: all 0.3s ease; }

.card:hover .card-icon {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Enhanced Font Awesome icons */
.fas, .far, .fab { 
  font-size: 1.5rem; 
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card:hover .fas,
.card:hover .far,
.card:hover .fab {
  transform: scale(1.1);
  color: hsl(var(--primary));
}

/* Hero de cards de notícias com proporção fixa */
.card-hero { position: relative; aspect-ratio: 16/9; }

/* Âncoras */
.anchor-section { padding: 2rem 0; border-top: 1px solid hsl(var(--border)); }

/* Section backgrounds */
.modern-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  overflow: hidden;
  background-size: 110% 110%;
}

.modern-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
  transition: all 0.5s ease-out;
  backdrop-filter: blur(2px);
}

.modern-section > * {
  position: relative;
  z-index: 2;
}

/* @keyframes bgPan {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
} */

#sobre.modern-section {
  background-image: url('../../public/alex-gallegos-maGQ59Gypn8-unsplash.jpg');
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.7);
}

#como-ajudar.modern-section {
  background-image: url('../../public/photo-1509062522246-3755977927d7.jpg');
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.7);
}

#inscreva-se.modern-section {
  background-image: url('../../public/jerry-wang-0ay0f_QcEcM-unsplash.jpg');
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.7);
}

#contato.modern-section {
  background-image: url('../../public/photo-1505976442149-53a8239303b.jpg');
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.7);
}

#falae.modern-section {
  background-image: url('../../public/pexels-pavel-danilyuk-8423020-scaled.jpg');
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.7);
}

#noticias.modern-section {
  background-image: url('../../public/cdc-8LITuYkZRIo-unsplash.jpg');
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.7);
}

#apoiadores.modern-section {
  background-image: url('../../public/fiqih-alfarish-gc6MB1U0zgg-unsplash.jpg');
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.7);
}

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  overflow: hidden;
  background-size: 110% 110%;
  background-image: url('./public/hero-image.jpg');
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
  backdrop-filter: blur(2px);
}

.hero > * {
  position: relative;
  z-index: 2;
}
.contact-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.75rem; color: hsl(var(--muted-foreground)); }

/* Footer */
.site-footer { 
  border-top: 1px solid hsl(var(--border)); 
  background-color: hsla(var(--foreground), .03); 
  padding: 2rem 0; /* Reduced from 4rem to 2rem */
  text-align: center; 
  position: relative;
  z-index: 3;
}
 .footer-logo { width: 64px; height: 64px; border-radius: 12px; margin: 0 auto 1rem; }
 .footer-columns { 
   display: grid; 
   gap: 1.5rem; /* Reduced from 2.5rem */
   margin-top: 1.5rem; /* Reduced from 2.5rem */
   text-align: left; 
 }
 @media (min-width: 768px) { .footer-columns { grid-template-columns: repeat(2, 1fr); } }
 @media (min-width: 1024px) { .footer-columns { grid-template-columns: repeat(2, 1fr); } } /* 2 colunas após remover endereço e mapa */
 .footer-title { font-weight: 800; margin: 0 0 1rem 0; color: hsl(var(--card-foreground)); font-size: 1.1rem; }
 .footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
 .footer-col p, .footer-list li { display: flex; align-items: start; gap: .75rem; }
 .footer-icon { width: 1.1rem; height: 1.1rem; color: hsl(var(--primary)); flex-shrink: 0; margin-top: 4px; }
 .footer-link { color: hsl(var(--accent)); text-decoration: underline; font-weight: 700; }
 .footer-social { display: flex; align-items: center; gap: 1.5rem; margin: 1.5rem 0; justify-content: center; }
 .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 999px; background-color: hsla(var(--primary), .12); color: hsl(var(--primary)); transition: filter .2s ease, transform .2s ease; font-size: 2rem; }
 
 .footer-social .fab, .footer-social .fas { font-size: 2rem; }
 .footer-social a:hover { filter: brightness(0.95); transform: translateY(-3px); }



.footer-logo { width: 56px; height: 56px; border-radius: 12px; margin: 0 auto 0.75rem; display: block; }

/* Better address formatting in footer */
.footer-col p {
  line-height: 1.6;
}

/* Map iframe styling */
.footer-map {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: var(--radius);
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contact section map */
.map-container {
  width: 100%;
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* Ícone de coração inline para preservar o visual original */
.icon-heart { width: 16px; height: 16px; vertical-align: middle; fill: #ef4444; stroke: #ef4444; }

/* Seções detalhadas (layout com grid) */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin: 0 auto;
  max-width: 1200px;
}

.section-copy { display: flex; flex-direction: column; gap: 2rem; }
.section-media { display: block; }

/* Special styling for Inscreva-se section image */
#inscreva-se .section-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

#inscreva-se .media-frame {
  width: 100%;
  max-width: 500px;
}

/* Reuso de media-frame com overlay alternativo */
.media-frame.alt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(79,70,229,0.22), rgba(16,185,129,0.18));
  pointer-events: none;
}

/* Lista de cards responsiva para seções */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Cards maiores para melhor distribuição */
  gap: 1.5rem; /* Reduced from 2.5rem to 1.5rem */
}

/* Special styling for Falaê section cards to be horizontal */
#falae .section-copy {
  grid-column: 1 / -1; /* Make it span all columns */
}

#falae .card-list {
  display: flex;
  gap: 1rem; /* Reduced from 1.5rem to 1rem */
  width: 100%;
  margin: 0 auto;
  max-width: 100%; /* Remove the max-width constraint */
  align-items: stretch; /* Ensure all cards stretch to same height */
}

/* Ensure all Falaê cards have consistent height */
#falae .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
  word-wrap: break-word; /* Ensure text wraps properly */
}

#falae .card-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem; /* Match other section titles */
  word-wrap: break-word;
}

#falae .card-text {
  margin-bottom: 0;
  flex-grow: 1;
  word-wrap: break-word;
  line-height: 1.6;
}

/* Ensure SVG icons don't cause overflow */
#falae .card-icon {
  flex-shrink: 0;
}

/* Section header with logo on the right */
#falae .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

#falae .section-title {
  margin-bottom: 0;
  text-align: center; /* Center the title */
  flex-grow: 1; /* Allow title to take available space */
}

#falae .section-logo {
  height: 150px; /* 50% larger than previous 100px */
  width: auto;
}

/* Responsive behavior for Falaê cards */
@media (max-width: 900px) {
  #falae .card-list {
    flex-direction: column;
  }
  
  #falae .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  #falae .section-logo {
    height: 70px; /* Slightly smaller on mobile */
  }
}

/* Special styling for Sobre nós, Como ajudar, and Fale conosco sections */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-header .section-title {
  margin: 0;
  text-align: center;
  flex: 1;
}

.section-header .section-media {
  width: 30%;
  display: flex;
  justify-content: flex-end;
}

.section-header .section-media img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#sobre .card-list, #como-ajudar .card-list, #contato .card-list {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
  align-items: stretch;
}

#sobre .card, #como-ajudar .card, #contato .card {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#sobre .card-title, #como-ajudar .card-title, #contato .card-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

#sobre .card-text, #como-ajudar .card-text, #contato .card-text {
  margin-bottom: 0;
}

/* Special styling for Como ajudar and Fale conosco sections */
#como-ajudar .section-title, #contato .section-title {
  text-align: center;
}

/* Increase space above the "Doe agora" button */
.cta-button-wrapper {
  margin-top: 2rem; /* Add space above the button */
  display: flex;
  justify-content: center;
}

/* Remove blue border from images */
.section-media img {
  border: none;
  box-shadow: none;
}

/* Formulário centralizado */
#inscreva-se .form {
  margin: 2rem auto;
}

/* Barra de CTAs em largura total (dentro da página) */
.cta-row {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 2rem; /* acompanha padding da .container */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}
.cta-row .btn {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta-row .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Formulário moderno */
.form { 
  display: grid; 
  gap: 1rem; /* Reduced from 1.5rem */
  max-width: 800px;
  margin: 0 auto;
}

.modern-section .form {
  background-color: hsla(var(--card), 0.7);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-section .form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  z-index: -1;
}

.modern-section .form:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.form-grid { 
  display: grid; 
  gap: 1rem; /* Reduced from 1.5rem */
  grid-template-columns: repeat(2, 1fr); 
}
@media (max-width: 768px) { 
  .form-grid { 
    grid-template-columns: 1fr; 
  } 
}
.form-field { display: grid; gap: 0.5rem; /* Reduced from 0.75rem */ }
.form-field label { 
  font-weight: 600; 
  color: #374151; 
  font-size: 1.1rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  background-color: hsla(var(--card), 0.8);
  backdrop-filter: blur(5px);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsla(var(--primary), 0.2);
  transform: translateY(-2px);
  background-color: hsl(var(--card));
}

.form-field input::placeholder, .form-field textarea::placeholder {
  color: hsl(var(--muted-foreground));
  opacity: 0.7;
}

/* Apoiadores */
#apoiadores {
  padding: 2rem 0 3rem 0; /* Reduced from 4rem 0 6rem 0 */
}

.modern-section #apoiadores {
  padding: 5rem 0;
}

.supporters-grid {
  display: flex;
  justify-content: space-between;
  
  gap: 1rem;
  padding: 1rem 0 4rem 0;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--primary)) hsl(var(--muted));
  max-width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.supporter-logo {
  background-color: hsl(var(--card));
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  position: relative;
  border: 1px solid hsla(var(--border), 0.5);
  backdrop-filter: blur(5px);
  background-color: hsla(var(--card), 0.8);
  margin: 0.5rem;
}

.supporter-logo:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
  border-color: hsla(var(--primary), 0.3);
  background-color: hsla(var(--card), 0.95);
}

.supporter-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.supporter-logo:hover img {
  transform: scale(1.1);
}

/* Tooltip for supporter logos */
.supporter-logo::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: hsl(var(--primary));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.supporter-logo:hover::after {
  opacity: 1;
  visibility: visible;
}

.supporter-logo::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom: 0;
  border-top-color: hsl(var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.supporter-logo:hover::before {
  opacity: 1;
}

/* Final copyright */
.copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation fixes */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    /* animation-duration: 0.01ms !important; */
    /* animation-iteration-count: 1 !important; */
    transition-duration: 0.01ms !important;
  }
}

.hero .hero-title,
.hero .hero-text,
.hero .hero-copy {
  text-align: left;
}

/* Reduce spacing between paragraph and form in Inscreva-se section */
#inscreva-se p.muted {
  margin-bottom: 1rem; /* Reduced from default spacing */
}