/* 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('../../assets/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-logo-rotator {
  position: relative;
  display: block;
  width: 150px;
  height: 64px;
  flex: 0 0 150px;
}

.brand-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.96);
  will-change: opacity, filter, transform;
  animation: brand-logo-transition 12s infinite;
}

.brand-logo--1 { animation-delay: 0s; }
.brand-logo--2 { animation-delay: -3s; }
.brand-logo--3 { animation-delay: -6s; }
.brand-logo--4 { animation-delay: -9s; }

@keyframes brand-logo-transition {
  0% {
    opacity: 0.35;
    filter: blur(4px);
    transform: scale(0.98);
  }
  5%, 16% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
  20% {
    opacity: 0.35;
    filter: blur(4px);
    transform: scale(1.04);
  }
  24%, 100% {
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo { animation: none; }
  .brand-logo:not(.brand-logo--1) { opacity: 0; }
  .brand-logo--1 { opacity: 1; }
}

/* Home banner area */
.home-banner {
  padding: 3rem 0 0;
}

.home-banner-carousel {
  position: relative;
  min-height: 220px;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border: 1px solid rgba(194, 119, 0, 0.3);
  border-radius: 1rem;
  background: #f6f0e5;
  box-shadow: 0 14px 30px rgba(180, 118, 20, 0.14);
}

.home-banner-slides,
.home-banner-slide,
.home-banner-slide img {
  width: 100%;
  height: 100%;
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-banner-slide img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.home-banner-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(25, 53, 91, 0.72);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-banner-control:hover,
.home-banner-control:focus-visible {
  background: rgba(25, 53, 91, 0.95);
  transform: translateY(-50%) scale(1.08);
}

.home-banner-control--prev { left: 1rem; }
.home-banner-control--next { right: 1rem; }

.home-banner-dots {
  position: absolute;
  right: 0;
  bottom: 1rem;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.home-banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(25, 53, 91, 0.48);
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-banner-dot.is-active,
.home-banner-dot:hover,
.home-banner-dot:focus-visible {
  background: #fff;
  transform: scale(1.35);
}

@media (max-width: 640px) {
  .home-banner {
    padding-top: 2rem;
  }

  .home-banner-carousel {
    min-height: 190px;
    aspect-ratio: 4 / 3;
  }

  .home-banner-control {
    width: 36px;
    height: 36px;
  }

  .home-banner-control--prev { left: 0.65rem; }
  .home-banner-control--next { right: 0.65rem; }

  .home-banner-dots {
    bottom: 0.65rem;
  }
}

/* Quick links below the home banner */
.quick-links {
  padding: 1rem 0 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.quick-link-card {
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-link-card:hover,
.quick-link-card:focus-visible {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(25, 53, 91, 0.18);
}

.quick-link-card--yellow { background: #ffd329; }
.quick-link-card--orange { background: #ff9d22; }
.quick-link-card--red { background: #e51d25; }

.quick-link-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.quick-link-card strong {
  margin-top: auto;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.05;
}

/* 2025 statistics */
.numbers-2025 {
  padding: 0.9rem 0 2rem;
  background: hsl(var(--background));
}

.numbers-2025-title {
  margin: 0 0 0.7rem;
  color: #f7931e;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 800;
  text-align: center;
}

.numbers-2025-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.number-stat {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.1rem;
  color: #888;
  text-align: center;
}

.number-stat i {
  min-height: 2.8rem;
  color: #f7931e;
  font-size: 2.1rem;
  line-height: 1;
}

.number-stat strong {
  color: #f7931e;
  font-size: 0.95rem;
  font-weight: 700;
}

.number-stat span {
  max-width: 150px;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* News data-driven cards and detail pages */
.news-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.news-card-link:hover,
.news-card-link:focus-visible {
  color: inherit;
}

.news-card .card-body {
  display: flex;
  height: calc(100% - 0px);
  flex-direction: column;
}

.news-read-more {
  margin-top: auto;
  padding-top: 1rem;
  color: #f7931e;
  font-size: 0.85rem;
  font-weight: 700;
}

.news-page-hero { background: linear-gradient(135deg, #f7931e, #ffbf2f); }

.news--legacy { display: none; }

.supporters--legacy { display: none; }

.supporters-section {
  padding: 4rem 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url('../../assets/fiqih-alfarish-gc6MB1U0zgg-unsplash.jpg') center / cover;
}

.supporters-section .eyebrow {
  margin: 0 0 0.35rem;
  color: #f7931e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.supporters-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
}

.supporters-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1rem 0 1.4rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.supporters-track::-webkit-scrollbar { display: none; }

.supporter-slide {
  display: grid;
  min-width: 0;
  height: 140px;
  flex: 0 0 calc((100% - 5rem) / 5);
  place-items: center;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0.75rem;
  scroll-snap-align: start;
  border: 1px solid #eee8dc;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.supporter-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.14);
}

.supporter-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 110px;
  max-height: 100px;
  object-fit: contain;
}

.supporters-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: #f7931e;
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.supporters-control:hover,
.supporters-control:focus-visible {
  background: #e47f0d;
  transform: translateY(-50%) scale(1.08);
}

.supporters-control--prev { left: 0; }
.supporters-control--next { right: 0; }

.supporters-note {
  margin: 0.75rem 0 0;
  color: #6b7280;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 900px) {
  .supporter-slide { flex-basis: calc((100% - 2.5rem) / 3); }
}

@media (max-width: 560px) {
  .supporters-carousel { padding: 0 2.5rem; }
  .supporter-slide { flex-basis: calc((100% - 1.25rem) / 2); }
  .supporters-control { width: 36px; height: 36px; }
}

.news-list-page {
  padding: 4rem 0;
  background: #fffdf8;
}

.news-detail-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: #fffdf8;
}

.news-detail {
  max-width: 900px;
}

.news-back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #f7931e;
  font-weight: 700;
  text-decoration: none;
}

.news-detail .eyebrow {
  margin: 0 0 0.5rem;
  color: #f7931e;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.news-detail h1 {
  max-width: 760px;
  margin: 0;
  color: #19355b;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.news-detail-date {
  color: #6b7280;
  font-size: 0.9rem;
}

.news-detail-cover {
  display: block;
  width: 100%;
  max-height: 480px;
  margin: 2rem 0;
  object-fit: cover;
  border-radius: 1rem;
}

.news-detail-content {
  max-width: 760px;
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.8;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.news-gallery img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.news-empty-state {
  min-height: 50vh;
  padding-top: 4rem;
}

@media (max-width: 640px) {
  .news-detail-page { padding-top: 7rem; }
  .news-gallery { grid-template-columns: 1fr; }
  .news-gallery img { height: 220px; }
}

@media (max-width: 760px) {
  .quick-links-grid {
    gap: 0.75rem;
  }

  .quick-link-card {
    min-height: 260px;
    padding: 0.65rem;
  }

  .quick-link-card img {
    height: auto;
  }

  .numbers-2025-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
  }

  .number-stat:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quick-link-card {
    min-height: 310px;
    padding: 1rem;
  }

  .quick-link-card img {
    height: auto;
  }
}

/* Como Ajudar home section */
.home-help-section {
  padding: 3.5rem 0;
  background: #fffdf8;
}

.home-help-section .section-heading-centered {
  margin-bottom: 1.8rem;
}

.home-help-section .eyebrow {
  margin: 0 0 0.35rem;
  color: #f7931e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.home-help-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

/* Como Ajudar page */
.inner-page {
  background: #fffdf8;
}

.help-page-hero {
  padding: 8rem 0 3.5rem;
  color: #fff;
  background: linear-gradient(135deg, #f7931e, #ffbf2f);
}

.help-page-hero .eyebrow,
.help-detail-section .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.help-page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.help-page-hero p:last-child {
  max-width: 650px;
  margin: 1rem 0 0;
  font-size: 1.1rem;
}

.help-options-section {
  padding: 3.5rem 0 2.5rem;
}

.section-heading-centered {
  margin-bottom: 1.8rem;
  text-align: center;
}

.section-heading-centered h2 {
  margin: 0;
  color: #f7931e;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.section-heading-centered span {
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.65rem auto 0;
  background: #f7931e;
}

.help-options-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 2.5rem;
}

.help-options-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.help-options-track::-webkit-scrollbar { display: none; }

.help-option-card {
  display: flex;
  min-width: 220px;
  min-height: 170px;
  align-items: flex-start;
  flex: 0 0 calc((100% - 2rem) / 3);
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  color: #374151;
  text-decoration: none;
  border: 1px solid #ece7dc;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-option-card:hover,
.help-option-card:focus-visible {
  color: #374151;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.14);
}

.help-option-card i {
  color: #f7931e;
  font-size: 1.6rem;
}

.help-option-card strong { font-size: 1rem; }
.help-option-card span { color: #6b7280; font-size: 0.82rem; line-height: 1.35; }

.help-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: #f7931e;
  transform: translateY(-50%);
}

.help-carousel-control--prev { left: 0; }
.help-carousel-control--next { right: 0; }

.help-detail-section {
  padding: 4.5rem 0;
  border-top: 1px solid #eee6d8;
}

.help-detail-section--soft { background: #fff8e7; }

.help-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 3rem;
}

.help-detail-grid--single { grid-template-columns: minmax(0, 760px); }

.help-detail-section h2 {
  margin: 0 0 1rem;
  color: #f7931e;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.help-detail-section p {
  max-width: 680px;
  color: #4b5563;
  line-height: 1.65;
}

.editable-list-card,
.bank-details-card,
.highlight-value-card {
  padding: 1.75rem;
  border: 1px solid #f0dfbd;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 24px rgba(108, 78, 26, 0.08);
}

.editable-list-card h3 { margin-top: 0; color: #f7931e; }
.editable-list-card ul,
.check-list { padding-left: 1.2rem; color: #4b5563; line-height: 1.8; }
.editable-list-card .small { margin-bottom: 0; font-size: 0.8rem; }

.pix-highlight {
  display: inline-block;
  padding: 0.8rem 1rem;
  border-radius: 0.65rem;
  background: #fff1cb;
}

.bank-details-card p { margin: 0 0 1rem; }
.bank-details-card p:last-child { margin-bottom: 0; }

.highlight-value-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.25rem;
  color: #075dcc;
  text-align: center;
  background: #ffd329;
}

.highlight-value-card strong {
  margin-bottom: 0.8rem;
  color: #d9212d;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.partner-photo {
  display: flex;
  height: 100%;
  align-items: end;
  justify-content: center;
}

.partner-photo img {
  display: block;
  width: min(100%, 380px);
  max-height: 500px;
  object-fit: contain;
  object-position: bottom center;
}

.funcrianca-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.funcrianca-art img {
  display: block;
  width: min(100%, 430px);
  max-height: 620px;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.1);
}

#doacoes-gerais .help-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

#doacoes-gerais .help-detail-grid > div:first-child {
  grid-column: 1 / -1;
}

.brecho-feature,
.tampinha-feature {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid #f0dfbd;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 24px rgba(108, 78, 26, 0.08);
}

.brecho-feature {
  text-align: center;
}

.brecho-feature img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  border-radius: 0.65rem;
}

.brecho-feature h3,
.tampinha-feature h3 {
  margin: 1rem 0 0.4rem;
  color: #f7931e;
  font-size: 1.05rem;
}

.brecho-feature p,
.tampinha-feature p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.tampinha-feature img {
  display: block;
  width: 130px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.tampinha-feature ul {
  margin: 1rem 0;
  padding-left: 1.1rem;
  color: #4b5563;
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .help-page-hero { padding-top: 7rem; }
  .help-options-carousel { padding: 0 2rem; }
  .help-option-card { flex-basis: 82%; }
  .help-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .help-detail-section { padding: 3rem 0; }
  .partner-photo img { max-height: 420px; }
  .funcrianca-art img { width: min(100%, 360px); }
  #doacoes-gerais .help-detail-grid { grid-template-columns: 1fr; }
  #doacoes-gerais .help-detail-grid > div:first-child { grid-column: auto; }
}



.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%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-icon {
  font-size: 1rem;
  line-height: 1;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 80;
  display: grid;
  min-width: 230px;
  gap: 0.25rem;
  padding: 0.65rem;
  margin: 0;
  list-style: none;
  border: 1px solid hsl(var(--border));
  border-radius: 0.85rem;
  background: hsl(var(--card));
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-submenu a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: hsl(var(--foreground));
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-submenu a::after { display: none; }

.nav-submenu a:hover {
  color: hsl(var(--primary));
  background: hsla(var(--primary), 0.08);
}

/* 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);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.mobile-menu a {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.6rem;
  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);
}

.mobile-nav-group {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.mobile-nav-title {
  color: hsl(var(--primary));
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mobile-nav-group a {
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .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);
  }
}

@media (max-width: 560px) {
  .nav { gap: 0.5rem; padding: 0.8rem 0; }
  .brand-logo-rotator { width: 110px; height: 48px; flex-basis: 110px; }
  .btn-donate-header { min-width: 78px; padding: 0.65rem 0.7rem; font-size: 0.72rem; }
  .mobile-menu {
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    max-height: calc(100vh - 68px);
  }
  .mobile-menu a { font-size: 0.95rem; }
  .mobile-nav-group { gap: 0.2rem; padding: 0.5rem 0; }
  .mobile-nav-group a { font-size: 0.88rem; }
}

/* 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('../../assets/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('../../assets/alex-gallegos-maGQ59Gypn8-unsplash.jpg');
  background-blend-mode: overlay;
  background-color: rgba(255, 255, 255, 0.7);
}

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

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

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

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

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

#apoiadores.modern-section {
  background-image: url('../../assets/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('../../assets/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-credit {
  margin: 0.45rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  text-align: center;
}

.footer-credit a {
  color: hsl(var(--accent));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: hsl(var(--primary));
}



.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 */
  }
}

/* Falaê - apresentação visual */
.falae-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fffdf8 0%, #fff5e7 100%);
}

.falae-heading {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.falae-heading .section-title { margin: 0.35rem 0 0.75rem; color: #f7931e; }
.falae-heading .muted { margin: 0; font-size: 1.05rem; }

.falae-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.falae-copy h3 { margin: 0 0 1rem; color: #f7931e; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.falae-copy p { color: #4b5563; line-height: 1.7; }
.falae-copy .cta-row { justify-content: flex-start; margin-top: 1.5rem; }

.falae-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.falae-gallery figure {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin: 0;
  border: 5px solid #fff;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.12);
  transform: rotate(-2deg);
}

.falae-gallery figure:nth-child(2) { transform: translateY(1.2rem) rotate(2deg); }
.falae-gallery figure:nth-child(3) { transform: rotate(-1deg); }
.falae-gallery img { width: 100%; height: 100%; object-fit: cover; }

.falae-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.falae-feature {
  padding: 1.5rem;
  border: 1px solid #f4dfc2;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.falae-feature i { color: #f7931e; font-size: 1.6rem; }
.falae-feature h3 { margin: 0.8rem 0 0.45rem; color: #273142; font-size: 1.05rem; }
.falae-feature p { margin: 0; color: #6b7280; font-size: 0.9rem; line-height: 1.55; }

@media (max-width: 900px) {
  .falae-intro { grid-template-columns: 1fr; }
  .falae-copy { max-width: 700px; margin: 0 auto; text-align: center; }
  .falae-copy .cta-row { justify-content: center; }
  .falae-gallery { max-width: 650px; width: 100%; margin: 0 auto; }
}

@media (max-width: 620px) {
  .falae-section { padding: 4rem 0; }
  .falae-gallery { grid-template-columns: 1fr; max-width: 300px; }
  .falae-gallery figure:nth-child(2) { transform: rotate(2deg); }
  .falae-features { grid-template-columns: 1fr; }
}

/* Falaê - cards no padrão do material do cliente */
.falae-heading--client {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: none;
  margin-bottom: 0.75rem;
}

.falae-heading-title { text-align: center; }
.falae-heading--client .eyebrow { margin-bottom: 0.25rem; }
.falae-heading--client .section-title { margin: 0; }

.falae-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 1rem;
}

.falae-description {
  max-width: 700px;
  margin: 1.25rem auto 2rem;
  color: #6b7280;
  text-align: center;
}

.falae-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 930px;
  margin: 0 auto;
}

.falae-card {
  display: flex;
  min-width: 0;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem;
  color: #fff;
  text-align: center;
}

.falae-card--yellow { background: hsl(47, 100%, 57%); }
.falae-card--orange { background: #ff9b24; }
.falae-card--red { background: #ec1c24; }

.falae-card--yellow {
  color: #fff;
}

.falae-card--yellow p {
  color: rgba(39, 49, 66, 0.9);
}

.falae-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
}

.falae-card h3 {
  margin: 0.8rem 0 0.35rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.08;
}

.falae-card p {
  max-width: 250px;
  margin: auto 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  line-height: 1.4;
}

.falae-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 930px;
  margin: 1.25rem auto 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.75);
}

.falae-actions .btn { width: 100%; }

@media (max-width: 760px) {
  .falae-heading--client { gap: 1rem; }
  .falae-cards { grid-template-columns: 1fr; max-width: 360px; }
  .falae-card { min-height: 0; }
  .falae-card img { height: 200px; }
  .falae-actions { grid-template-columns: 1fr; max-width: 360px; }
}

/* 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-legado .card-list, #contato .card-list {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
  align-items: stretch;
}

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

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

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

/* Special styling for Como ajudar and Fale conosco sections */
#como-ajudar-legado .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 */
}

.btn-donate-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 auto;
  min-width: 94px;
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
  animation: donate-button-pulse 2.8s ease-in-out infinite;
}

.btn-donate-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
  transform: translateX(-130%);
  animation: donate-button-shine 3.8s ease-in-out infinite;
}

.btn-donate-header:hover,
.btn-donate-header:focus-visible {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

@keyframes donate-button-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes donate-button-shine {
  0%, 35% { transform: translateX(-130%); }
  65%, 100% { transform: translateX(130%); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-donate-header,
  .btn-donate-header::before { animation: none; }
}

/* Clínica Educandário */
.clinic-page {
  min-height: calc(100vh - 80px);
  padding: 8rem 0 5rem;
  background: #fff;
}

.clinic-heading h1 {
  margin: 0.35rem 0 2.5rem;
  color: #f7931e;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
}

.clinic-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(260px, 1fr) minmax(320px, 1.25fr);
  gap: 2.25rem;
  align-items: start;
}

.clinic-block h2,
.clinic-gallery-heading h2 {
  margin: 0 0 0.9rem;
  color: #f7931e;
  font-size: 1.35rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.clinic-services {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.2rem;
  margin: 0;
  color: #273142;
  line-height: 1.35;
}

.clinic-audience {
  margin-top: 4rem;
}

.clinic-audience h2 span {
  color: #ffb80f;
  font-size: 1.1em;
}

.clinic-audience p {
  max-width: 245px;
  margin: 0;
  color: #273142;
  line-height: 1.45;
}

.clinic-diagnoses {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1.6rem 0 0;
  color: #273142;
  font-size: 0.88rem;
  list-style: none;
}

.clinic-diagnoses li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.clinic-tea-note {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.clinic-tea-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 72px;
  color: #fff;
  border-radius: 52% 48% 48% 52%;
  background: #5a9df0;
  transform: rotate(-4deg);
}

.clinic-tea-badge strong {
  font-size: 1.45rem;
}

.clinic-tea-badge span {
  position: absolute;
  right: -0.3rem;
  bottom: -0.55rem;
  font-size: 2rem;
  transform: rotate(8deg);
}

.clinic-tea-note p {
  margin: 0;
  color: #273142;
  font-size: 0.73rem;
  line-height: 1.35;
}

.diagnosis-dot {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin-top: 0.15rem;
  border-radius: 50%;
}

.diagnosis-dot--yellow { background: #ffc400; }
.diagnosis-dot--orange { background: #ff8c52; }
.diagnosis-dot--green { background: #39d36b; }
.diagnosis-dot--blue { background: #59a2ec; }
.diagnosis-dot--pink { background: #ed89c6; }

.clinic-highlight {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 1fr);
  gap: 0.5rem 1rem;
  align-items: start;
  text-align: center;
}

.clinic-child-photo {
  grid-row: span 3;
  align-self: stretch;
  display: flex;
  align-items: end;
  justify-content: center;
}

.clinic-child-photo img {
  width: 100%;
  max-width: 250px;
  max-height: 520px;
  object-fit: contain;
}

.clinic-stats {
  display: grid;
  gap: 1.25rem;
}

.clinic-stat {
  display: grid;
  gap: 0.1rem;
}

.clinic-stat strong,
.clinic-unit-callout strong,
.clinic-coming-soon strong {
  color: #0561c9;
  font-size: 1rem;
  line-height: 1.15;
}

.clinic-stat span,
.clinic-coming-soon span {
  color: #ffc400;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  text-shadow: 2px 2px 0 #202020;
}

.clinic-stat small,
.clinic-coming-soon small {
  color: #202020;
  font-size: 1.05rem;
}

.clinic-unit-callout {
  grid-column: 2;
  padding-top: 0.5rem;
}

.clinic-unit-callout p {
  margin: 0.45rem 0 0;
  color: #6b7280;
  font-size: 0.76rem;
  line-height: 1.4;
}

.clinic-coming-soon {
  grid-column: 2;
  display: grid;
  justify-items: center;
  padding-top: 0.5rem;
}

.clinic-gallery-panel {
  min-width: 0;
}

.clinic-gallery-heading {
  text-align: center;
}

.clinic-gallery-heading h2 {
  font-size: 1rem;
  text-transform: none;
}

.clinic-gallery {
  position: relative;
  padding: 0 2.25rem;
  margin-top: 1.75rem;
}

.clinic-gallery-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.clinic-gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.4 / 1;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  background: #f2f0eb;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.clinic-gallery-item:hover,
.clinic-gallery-item:focus-visible,
.clinic-gallery-item.is-active {
  border-color: #f7931e;
  transform: translateY(-2px);
}

.clinic-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-banner-slide > a,
.home-banner-slide video {
  display: block;
  width: 100%;
  height: 100%;
}

.home-banner-slide video { object-fit: cover; }

.clinic-gallery .gallery-control {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

@media (max-width: 1050px) {
  .clinic-layout {
    grid-template-columns: minmax(200px, 0.9fr) minmax(260px, 1fr);
  }

  .clinic-gallery-panel {
    grid-column: 1 / -1;
    max-width: 620px;
    width: 100%;
    margin: 1rem auto 0;
  }
}

@media (max-width: 680px) {
  .clinic-page { padding-top: 7rem; }
  .clinic-heading h1 { margin-bottom: 2rem; }
  .clinic-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .clinic-audience { margin-top: 2.5rem; }
  .clinic-audience p { max-width: none; }
  .clinic-highlight { max-width: 500px; margin: 0 auto; }
  .clinic-child-photo img { max-height: 410px; }
  .clinic-gallery-panel { grid-column: auto; }
}

@media (max-width: 420px) {
  .clinic-highlight { grid-template-columns: 1fr; }
  .clinic-child-photo { grid-row: auto; }
  .clinic-unit-callout,
  .clinic-coming-soon { grid-column: auto; }
  .clinic-tea-note { grid-template-columns: 90px minmax(0, 1fr); }
}

/* Escola Educandário */
.school-page {
  min-height: calc(100vh - 80px);
  padding: 8rem 0 5rem;
  background: #fff;
}

.school-heading h1 {
  margin: 0.35rem 0 2.75rem;
  color: #f7931e;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
}

.school-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.15fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.school-copy { max-width: 520px; }

.school-copy h2 {
  margin: 0 0 1rem;
  color: #f7931e;
  font-size: 1.65rem;
  line-height: 1.2;
}

.school-copy p {
  margin: 0 0 1rem;
  color: #273142;
  line-height: 1.65;
}

.school-services-title {
  margin-top: 1.75rem !important;
  text-transform: uppercase;
}

.school-services {
  display: grid;
  gap: 0.28rem;
  padding-left: 1.25rem;
  margin: 0;
  color: #273142;
  line-height: 1.3;
}

.school-gallery-panel {
  min-width: 0;
  padding-top: 7.5rem;
}

.school-gallery-heading {
  margin-bottom: 1.75rem;
  text-align: center;
}

.school-gallery-heading h2 {
  margin: 0;
  color: #f7931e;
  font-size: 1rem;
}

.school-gallery {
  position: relative;
  padding: 0 2.5rem;
}

.school-gallery-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.school-gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.45 / 1;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  background: #f2f0eb;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.school-gallery-item:hover,
.school-gallery-item:focus-visible,
.school-gallery-item.is-active {
  border-color: #f7931e;
  transform: translateY(-2px);
}

.school-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-gallery .gallery-control {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

@media (max-width: 1050px) {
  .school-layout {
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  .school-page { padding-top: 7rem; }
  .school-heading h1 { margin-bottom: 2rem; }
  .school-layout { grid-template-columns: 1fr; }
  .school-copy { max-width: none; }
  .school-gallery-panel { padding-top: 0; }
}

@media (max-width: 520px) {
  .school-gallery { padding: 0 2.25rem; }
  .school-gallery-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Quem Somos */
.about-page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #fff8ed, #fffdf8);
}

.about-page-hero h1,
.about-page-content h2,
.about-gallery-section h2 {
  color: #f7931e;
}

.about-page-hero h1 {
  max-width: 760px;
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
}

.about-page-hero p:last-child {
  max-width: 650px;
  margin: 0;
  color: #6b7280;
  font-size: 1.05rem;
}

.about-page-content {
  padding: 4.5rem 0 2rem;
  background: #fff;
}

.about-page-copy {
  max-width: 980px;
}

.about-page-copy h2 {
  margin: 0.35rem 0 1.25rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.about-page-copy > p:not(.eyebrow) {
  max-width: 900px;
  color: #4b5563;
  line-height: 1.8;
}

.about-summary-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.about-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-info-grid article {
  padding: 1.5rem;
  border: 1px solid #f1e5d5;
  border-radius: 1rem;
  background: #fffaf3;
}

.about-info-grid h3 {
  margin: 0 0 0.55rem;
  color: #f7931e;
  font-size: 1.2rem;
}

.about-info-grid p {
  margin: 0;
  color: #4b5563;
  line-height: 1.65;
}

.about-gallery-section {
  padding: 3rem 0 5rem;
  background: #fffdf8;
}

.about-gallery-section .section-heading-centered p:last-child {
  color: #6b7280;
}

.about-gallery {
  position: relative;
  max-width: 1080px;
  margin: 2rem auto 0;
  padding: 0 3.25rem;
}

.about-gallery-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.about-gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 3px solid transparent;
  border-radius: 0.9rem;
  background: #f3eee5;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-gallery-item:hover,
.about-gallery-item:focus-visible,
.about-gallery-item.is-active {
  border-color: #f7931e;
  box-shadow: 0 12px 26px rgba(247, 147, 30, 0.2);
  transform: translateY(-3px);
}

.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: #f7931e;
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-control:hover,
.gallery-control:focus-visible {
  background: #e47f0d;
  transform: translateY(-50%) scale(1.08);
}

.gallery-control--prev { left: 0; }
.gallery-control--next { right: 0; }

.gallery-hint {
  margin: 1rem 0 0;
  color: #9ca3af;
  font-size: 0.85rem;
  text-align: center;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  background: rgba(17, 24, 39, 0.92);
}

.gallery-lightbox[hidden] { display: none; }

body.is-lightbox-open { overflow: hidden; }

.gallery-lightbox figure {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: min(100%, 1100px);
  max-height: 100%;
  margin: 0 auto;
}

.gallery-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

.gallery-lightbox figcaption {
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

.gallery-lightbox-close,
.gallery-lightbox-control {
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-control:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-control:focus-visible {
  background: #f7931e;
}

@media (max-width: 800px) {
  .about-info-grid { grid-template-columns: 1fr; }
  .about-gallery-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .about-page-hero { padding-top: 7rem; }
  .about-gallery { padding: 0 2.5rem; }
  .about-gallery-track { gap: 0.7rem; }
  .gallery-lightbox { grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; gap: 0.5rem; padding: 3rem 0.5rem; }
}

/* Painel administrativo */
.admin-page {
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1rem;
  color: #273142;
  background: #fffaf2;
}

.admin-auth-card,
.admin-dashboard {
  width: min(100%, 1100px);
  margin: 2rem auto;
}

.admin-auth-card {
  max-width: 430px;
  padding: 2rem;
  background: #fff;
  border: 1px solid #f0e2d1;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(92, 64, 35, 0.12);
}

.admin-logo {
  display: block;
  width: 82px;
  height: 82px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.admin-auth-card h1,
.admin-dashboard h1 {
  margin: 0;
  color: #f7931e;
}

.admin-auth-card h1,
.admin-auth-card .admin-muted { text-align: center; }

.admin-muted {
  color: #687386;
  line-height: 1.5;
}

.admin-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.admin-form label {
  font-weight: 700;
}

.admin-form input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  border: 1px solid #d9dce3;
  border-radius: 0.65rem;
  box-sizing: border-box;
}

.admin-form input:focus {
  outline: 3px solid rgba(247, 147, 30, 0.22);
  border-color: #f7931e;
}

.admin-form button,
.admin-logout {
  padding: 0.8rem 1rem;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 0.65rem;
  background: #f7931e;
}

.admin-form button:hover,
.admin-form button:focus-visible,
.admin-logout:hover,
.admin-logout:focus-visible { background: #df7e0d; }

.admin-error {
  margin: 1rem 0 0;
  padding: 0.75rem;
  color: #991b1b;
  border-radius: 0.65rem;
  background: #fee2e2;
}

.admin-back-link {
  display: block;
  margin-top: 1.25rem;
  color: #687386;
  font-size: 0.9rem;
  text-align: center;
}

.admin-back-link:hover,
.admin-back-link:focus-visible { color: #f7931e; }

.admin-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-logout {
  background: #273142;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-module-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #f0e2d1;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(92, 64, 35, 0.08);
}

.admin-module-card--link {
  color: inherit;
  text-decoration: none;
}

.admin-module-card--link:hover,
.admin-module-card--link:focus-visible {
  border-color: #f7931e;
  transform: translateY(-2px);
}

.admin-module-icon {
  font-size: 2rem;
}

.admin-module-icon--documents,
.admin-module-icon--news {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 0.6rem;
  filter: none;
}

.admin-module-icon--documents { background: #2f80ed; }
.admin-module-icon--news { background: #8b5cf6; }

.admin-module-card h2 {
  margin: 0.75rem 0 0.4rem;
  color: #f7931e;
  font-size: 1.15rem;
}

.admin-status {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  color: #687386;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  background: #f3f4f6;
}

.admin-dashboard-action { margin-top: 1.25rem; }

.admin-module-link {
  display: inline-block;
  color: #f7931e;
  font-weight: 700;
}

.admin-panel-card {
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #f0e2d1;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(92, 64, 35, 0.08);
}

.admin-panel-card h2 { margin-top: 0; color: #f7931e; }

.admin-upload-form { max-width: 620px; }
.admin-news-form { max-width: 820px; }
.admin-news-form textarea { width: 100%; resize: vertical; font: inherit; border: 1px solid #d9dce3; border-radius: 0.65rem; padding: 0.8rem 0.9rem; box-sizing: border-box; }
.admin-file-hint { color: #687386; font-size: 0.85rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-form-grid > div { display: grid; gap: 0.75rem; }
.admin-checkbox { display: flex; align-items: center; gap: 0.5rem; }
.admin-news-list { display: grid; gap: 0.75rem; }
.admin-news-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border: 1px solid #eceff3; border-radius: 0.75rem; }
.admin-news-row > div:first-child { display: grid; gap: 0.25rem; min-width: 0; }
.admin-news-row span { color: #687386; font-size: 0.85rem; }
.admin-supporter-list { display: grid; gap: 0.75rem; }
.admin-supporter-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.75rem; border: 1px solid #eceff3; border-radius: 0.75rem; }
.admin-supporter-row > img { width: 90px; height: 60px; object-fit: contain; border-radius: 0.4rem; background: #f8fafc; }
.admin-supporter-row > div:nth-child(2) { display: grid; gap: 0.25rem; min-width: 0; }
.admin-supporter-row span { color: #687386; font-size: 0.85rem; overflow-wrap: anywhere; }

.admin-message {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.65rem;
}

.admin-message.success { color: #166534; background: #dcfce7; }
.admin-message.error { color: #991b1b; background: #fee2e2; }

.admin-document-list { display: grid; gap: 0.75rem; }

.admin-banner-list { display: grid; gap: 0.75rem; }

.admin-banner-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid #eceff3;
  border-radius: 0.75rem;
}

.admin-banner-preview {
  display: grid;
  place-items: center;
  height: 70px;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  border-radius: 0.5rem;
  background: #273142;
}

.admin-banner-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-banner-info { display: grid; gap: 0.25rem; min-width: 0; }
.admin-banner-info span { color: #687386; font-size: 0.85rem; overflow-wrap: anywhere; }
.admin-banner-info a { color: #f7931e; font-size: 0.9rem; font-weight: 700; }
.admin-banner-actions { display: flex; align-items: center; gap: 0.35rem; }
.admin-banner-actions form { margin: 0; }
.admin-order-button {
  width: 2rem;
  height: 2rem;
  color: #273142;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #d9dce3;
  border-radius: 0.45rem;
  background: #fff;
}
.admin-order-button:hover,
.admin-order-button:focus-visible { color: #fff; border-color: #f7931e; background: #f7931e; }

.admin-document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #eceff3;
  border-radius: 0.75rem;
}

.admin-document-row > div:first-child { display: grid; gap: 0.25rem; min-width: 0; }
.admin-document-row span { color: #687386; font-size: 0.85rem; }
.admin-document-actions { display: flex; align-items: center; gap: 0.8rem; }
.admin-document-actions a { color: #f7931e; font-weight: 700; }
.admin-document-actions form { margin: 0; }

.admin-delete-button {
  padding: 0.45rem 0.7rem;
  color: #991b1b;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  background: #fff;
}

.admin-delete-button:hover,
.admin-delete-button:focus-visible { background: #fee2e2; }

.transparencia-hero {
  padding: 8rem 0 4rem;
  color: #273142;
  background: linear-gradient(135deg, #fffaf2 0%, #fff 100%);
}

.transparencia-hero h1 {
  max-width: 720px;
  margin: 0.35rem 0 0.75rem;
  color: #f7931e;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.transparencia-hero p:last-child {
  max-width: 650px;
  margin: 0;
  color: #687386;
  font-size: 1.1rem;
}

.transparencia-documents { padding-top: 4rem; }
.section-heading { margin-bottom: 2rem; text-align: center; }
.section-heading .section-title { margin-bottom: 0.5rem; }
.section-subtitle { margin: 1.5rem 0 0; color: #687386; }

.transparencia-document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.transparencia-document-card,
.transparencia-empty-state {
  padding: 1.5rem;
  border: 1px solid #f0e2d1;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(92, 64, 35, 0.08);
}

.transparencia-document-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.transparencia-document-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 0.75rem;
  background: #e64b4b;
}

.transparencia-document-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.transparencia-document-content h3 {
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #273142;
  font-size: 1.1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transparencia-document-content p { margin: 0.5rem 0 1.25rem; color: #687386; font-size: 0.9rem; }
.transparencia-document-content .btn { margin-top: auto; }

.transparencia-empty-state { text-align: center; }
.transparencia-empty-state .transparencia-document-icon { margin-bottom: 0.75rem; }
.transparencia-empty-state h3 { margin: 0 0 0.4rem; color: #273142; }
.transparencia-empty-state p { margin: 0; color: #687386; }

.transparencia-contact-section { padding-top: 0; }

.transparencia-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  color: #fff;
  border-radius: 1.25rem;
  background: #f7931e;
}

.transparencia-contact-card h2 { margin: 0.3rem 0 0.5rem; }
.transparencia-contact-card p:last-child { margin: 0; opacity: 0.92; }
.transparencia-contact-card .eyebrow { color: #fff; }
.transparencia-contact-card .btn { flex: 0 0 auto; color: #273142; background: #fff; }

@media (max-width: 800px) {
  .transparencia-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .transparencia-hero { padding-top: 7rem; }
  .transparencia-document-grid { grid-template-columns: 1fr; }
  .transparencia-contact-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .admin-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .admin-page { padding: 1rem 0.75rem; }
  .admin-auth-card { padding: 1.25rem; }
  .admin-dashboard-header { align-items: flex-start; flex-direction: column; }
  .admin-module-grid { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-document-row { align-items: flex-start; flex-direction: column; }
  .admin-news-row { align-items: flex-start; flex-direction: column; }
  .admin-supporter-row { grid-template-columns: 70px minmax(0, 1fr); }
  .admin-supporter-row > img { width: 70px; height: 50px; }
  .admin-supporter-row > .admin-banner-actions { grid-column: 1 / -1; }
  .admin-banner-row { grid-template-columns: 80px minmax(0, 1fr); }
  .admin-banner-row > form { grid-column: 1 / -1; }
}
