:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #ffffff;

  --text: #0b1220;
  --muted: #556273;
  --border: rgba(11, 74, 111, 0.14);

  --primary: #0b4a6f;
  --accent: #9b2335;

  --shadow: 0 18px 45px rgba(11, 18, 32, 0.12);

  --radius: 18px;
  --radius-sm: 12px;

  --font-title: "Lora", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;

  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(
      1200px 800px at 80% 0%,
      rgba(155, 35, 53, 0.08),
      transparent 55%
    ),
    radial-gradient(
      1100px 700px at 20% 15%,
      rgba(11, 74, 111, 0.12),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

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

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(155, 35, 53, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246, 248, 251, 0.86);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
}

.brand-sub {
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(11, 74, 111, 0.18);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  min-height: 40px;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.88);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.site-nav a {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px;
}

.nav-toggle-icon {
  width: 20px;
  height: 2px;
  background: var(--primary);
  display: block;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.hero {
  padding: 46px 0 26px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/fundo.png") center / cover no-repeat;
  opacity: 1;
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.08);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      900px 520px at 20% 15%,
      rgba(11, 74, 111, 0.1),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(246, 248, 251, 0.28),
      rgba(246, 248, 251, 0.1)
    );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.hero-copy {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 74, 111, 0.12);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(11, 18, 32, 0.08);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.lead {
  margin: 0 0 18px;
  color: rgba(15, 23, 42, 0.82);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.hero-highlights > div {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.hero-highlights dt {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.hero-highlights dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.hero-media {
  margin: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.72)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
}

.hero-slider-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 350ms ease;
}

.hero-slider-img.hero-slide-fade {
  opacity: 0;
}

.hero-media figcaption {
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.section {
  padding: 56px 0;
}

.section-tint {
  background: linear-gradient(
    180deg,
    rgba(11, 74, 111, 0.055),
    rgba(155, 35, 53, 0.028)
  );
  border-top: 1px solid rgba(11, 74, 111, 0.08);
  border-bottom: 1px solid rgba(11, 74, 111, 0.08);
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-family: var(--font-title);
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 14px;
}

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

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

.events-slider {
  overflow: hidden;
}

.events-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: events-scroll 38s linear infinite;
}

.events-slider:hover .events-track {
  animation-play-state: paused;
}

.events-slide {
  position: relative;
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 340px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
}

.events-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.events-slide-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.95);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(11, 74, 111, 0.16);
  backdrop-filter: blur(10px);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes events-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .events-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .events-track {
    animation: none;
  }
}

.card,
.area-card,
.panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
}

.card {
  padding: 18px;
}

.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.event-card h3 {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card .event-desc {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card .event-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card .actions {
  margin-top: auto;
}

.card h3 {
  font-family: var(--font-title);
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.82);
}

.area-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.area-card img {
  width: 64px;
  height: 64px;
}

.area-card h3 {
  margin: 0;
  font-family: var(--font-title);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.84);
}

.list li {
  margin: 6px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.split > :only-child {
  grid-column: 1 / -1;
}

.split-single {
  grid-template-columns: 1fr;
}

.panel {
  padding: 18px;
}

.panel h3 {
  font-family: var(--font-title);
  margin: 0 0 10px;
}

.panel p {
  margin: 0 0 10px;
}

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

.donation-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.donation-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(11, 74, 111, 0.14);
  border-radius: 14px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.92);
}

.donation-card svg {
  flex: 0 0 auto;
  color: var(--primary);
  opacity: 0.92;
}

.gallery-thumb {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.74);
}

.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  display: grid;
  place-items: center;
}

.gallery-modal-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.gallery-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.gallery-modal-prev {
  left: 10px;
}

.gallery-modal-next {
  right: 10px;
}

@media (min-width: 860px) {
  .donation-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mt {
  margin-top: 18px !important;
}

.kv {
  margin: 0;
  display: grid;
  gap: 8px;
}

.kv > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: start;
}

.kv dt {
  font-weight: 800;
  color: var(--primary);
}

.kv dd {
  margin: 0;
  color: rgba(15, 23, 42, 0.86);
}

.muted {
  color: var(--muted);
}

.notice {
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(155, 35, 53, 0.28);
  background: rgba(155, 35, 53, 0.055);
  color: rgba(15, 23, 42, 0.9);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 74, 111, 0.24);
}

.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active {
  color: #fff;
}

.btn-secondary {
  background: rgba(11, 74, 111, 0.12);
  color: rgba(15, 23, 42, 0.92);
  border-color: rgba(11, 74, 111, 0.18);
}

.btn-accent {
  background: linear-gradient(135deg, #b42335, #7f1d2d);
  color: #fff;
  border-color: rgba(127, 29, 45, 0.28);
  box-shadow: 0 14px 32px rgba(155, 35, 53, 0.22);
  padding: 11px 16px;
}

.site-nav .btn.btn-accent {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(11, 74, 111, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 42px;
}

.btn-outline {
  background: transparent;
  border-color: rgba(11, 74, 111, 0.26);
  color: rgba(15, 23, 42, 0.92);
}

.form {
  display: grid;
  gap: 12px;
}

.field label {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.92);
  display: block;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(11, 74, 111, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

textarea {
  resize: vertical;
}

.field-error {
  margin: 6px 0 0;
  color: var(--accent);
  font-weight: 800;
  min-height: 1.1em;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.toast {
  display: none;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 74, 111, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(15, 23, 42, 0.92);
}

.toast.show {
  display: block;
}

.mini-map {
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 74, 111, 0.18);
  background: linear-gradient(
      120deg,
      rgba(11, 74, 111, 0.07),
      transparent 55%
    ),
    linear-gradient(200deg, rgba(155, 35, 53, 0.045), transparent 60%),
    rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.mini-map iframe {
  width: 100%;
  height: 260px;
  border: 1px solid rgba(11, 74, 111, 0.16);
  border-radius: calc(var(--radius) - 6px);
  display: block;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.mini-map-inner {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-map-pin {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(155, 35, 53, 0.12);
}

.mini-map-title {
  margin: 0;
  font-weight: 900;
}

.mini-map-sub {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: rgba(246, 248, 251, 0.92);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr;
  gap: 14px;
  align-items: center;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
}

.footer-sub {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.86);
}

.footer-meta {
  text-align: right;
}

.badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(11, 74, 111, 0.1);
  border: 1px solid rgba(11, 74, 111, 0.18);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.48);
  text-decoration: none;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.55);
  animation: whatsapp-pulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .whatsapp-float::before {
    animation: none;
  }
}

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

  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    right: 20px;
    top: 64px;
    width: min(360px, calc(100% - 40px));
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: rgba(11, 74, 111, 0.07);
    text-decoration: none;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .cards-4 {
    grid-template-columns: 1fr;
  }

  .kv > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
