:root {
  --verde-escuro: #04421e;
  --verde: #0b7a34;
  --verde-brilho: #1fae52;
  --verde-claro: #eafbf0;
  --amarelo: #ffcc29;
  --amarelo-forte: #f5b700;
  --azul: #0b3c82;
  --azul-marinho: #041c3d;
  --branco: #ffffff;
  --texto: #101418;
  --texto-suave: #48555c;
  --borda: #e3ece5;
  --sombra: 0 20px 45px -20px rgba(4, 66, 30, 0.35);
  --fonte-display: 'Anton', sans-serif;
  --fonte-corpo: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fonte-corpo);
  color: var(--texto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--fonte-display);
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}

p { color: var(--texto-suave); line-height: 1.7; margin: 0 0 16px; }

.text-verde { color: var(--verde); }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--verde);
  background: var(--verde-claro);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--amarelo); color: var(--azul-marinho); box-shadow: var(--sombra); }
.btn-primary:hover { background: var(--amarelo-forte); }

.btn-ghost { background: transparent; color: var(--verde-escuro); border-color: var(--borda); }
.btn-ghost:hover { border-color: var(--verde); color: var(--verde); }

.btn-cta { background: var(--verde); color: var(--branco); }
.btn-cta:hover { background: var(--verde-escuro); }

.btn-outline-light { background: transparent; color: var(--branco); border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--branco); }

.btn-block { width: 100%; }

/* Topbar */
.topbar {
  background: var(--azul-marinho);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  letter-spacing: 0.4px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-coligacao { opacity: 0.75; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--borda);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amarelo);
}
.brand-text {
  font-family: var(--fonte-display);
  font-size: 1.05rem;
  color: var(--azul-marinho);
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-text strong { color: var(--verde); }
.brand-text small {
  font-family: var(--fonte-corpo);
  font-weight: 800;
  background: var(--amarelo);
  color: var(--azul-marinho);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.68rem;
}

.main-nav {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
}
.main-nav a:hover { color: var(--verde); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 18px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--azul-marinho);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--branco);
  padding: 64px 0 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(11,124,52,0.55), transparent 45%),
    linear-gradient(120deg, var(--verde-escuro) 0%, var(--verde) 45%, var(--verde-escuro) 100%);
  z-index: -2;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 40px 24px 90px;
}
.tag-line {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--branco);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 .stroke {
  color: var(--amarelo);
  -webkit-text-stroke: 1px rgba(255,255,255,0.5);
}
.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--fonte-display); font-size: 1.6rem; color: var(--amarelo); }
.hero-stats span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

.hero-photo { position: relative; display: flex; justify-content: center; }
.hero-photo-frame {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1.05;
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid var(--amarelo);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  transform: rotate(-1.5deg);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-number {
  position: absolute;
  bottom: -14px;
  right: 6%;
  background: var(--amarelo);
  color: var(--azul-marinho);
  font-family: var(--fonte-display);
  font-size: 1.6rem;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -10px rgba(0,0,0,0.5);
  transform: rotate(2deg);
}
.hero-wave { display: block; width: 100%; height: 60px; position: relative; margin-top: -2px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--verde-claro); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-lead { font-size: 1.05rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.rounded-card {
  border-radius: 20px;
  box-shadow: var(--sombra);
  border: 6px solid var(--branco);
  outline: 2px solid var(--borda);
}
.split-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.highlight-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.highlight-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--texto);
  background: var(--verde-claro);
  padding: 12px 16px;
  border-radius: 12px;
}
.highlight-list li span { font-size: 1.2rem; }

.father-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 0;
  padding: 14px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 14px;
  box-shadow: var(--sombra);
}
.father-card img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 20%;
  flex-shrink: 0;
}
.father-card figcaption {
  font-size: 0.85rem;
  color: var(--texto-suave);
  line-height: 1.5;
}
.father-card figcaption strong { color: var(--azul-marinho); }

/* Timeline */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 30px;
  border-left: 3px solid var(--verde-brilho);
}
.timeline-item { position: relative; padding-bottom: 40px; padding-left: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -45px;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--verde);
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fonte-display);
  font-size: 0.95rem;
  border: 4px solid var(--branco);
  box-shadow: 0 0 0 2px var(--verde-brilho);
}
.timeline-content h3 { font-family: var(--fonte-corpo); font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; color: var(--azul-marinho); }
.timeline-content p { margin: 0; }

/* Flags / Bandeiras */
.flags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.flag-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.flag-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
  border-color: var(--verde-brilho);
}
.flag-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--verde-claro);
  border-radius: 12px;
  margin-bottom: 16px;
}
.flag-card h3 { font-family: var(--fonte-corpo); font-weight: 800; font-size: 1.05rem; color: var(--azul-marinho); margin-bottom: 8px; }
.flag-card p { font-size: 0.92rem; margin: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--branco);
  border: 1px solid var(--borda);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tall { grid-row: span 2; }
.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-suave);
  font-weight: 600;
  font-size: 0.85rem;
  background: repeating-linear-gradient(45deg, #f3f8f4, #f3f8f4 10px, #eaf3ec 10px, #eaf3ec 20px);
}
.gallery-note { margin-top: 18px; font-size: 0.8rem; text-align: center; }

/* News */
.news-empty {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 46px 30px;
  background: var(--verde-claro);
  border-radius: 20px;
}

/* Social strip */
.social-strip { background: var(--azul-marinho); color: var(--branco); padding: 56px 0; }
.social-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.social-strip h2 { font-size: 1.8rem; margin-bottom: 6px; }
.social-strip p { color: rgba(255,255,255,0.8); margin: 0; }
.social-links { display: flex; gap: 12px; }
.social-btn {
  background: var(--amarelo);
  color: var(--azul-marinho);
  text-decoration: none;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 10px;
}
.social-btn:hover { background: var(--branco); }

/* Contact */
.contact-info { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.contact-info li { color: var(--texto-suave); }
.contact-form {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--sombra);
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.85rem; color: var(--azul-marinho); }
.contact-form input, .contact-form textarea {
  font-family: var(--fonte-corpo);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--borda);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texto);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--verde-brilho);
}
.checkbox-row { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.checkbox-row input { width: auto; }
.form-note { font-size: 0.75rem; color: var(--texto-suave); font-weight: 500; margin: 0; }

/* Footer */
.site-footer { background: var(--verde-escuro); color: rgba(255,255,255,0.85); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--amarelo); }
.footer-brand strong { display: block; font-family: var(--fonte-display); letter-spacing: 0.5px; }
.footer-brand span { font-size: 0.78rem; opacity: 0.75; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.footer-nav a:hover { color: var(--amarelo); }
.footer-legal { font-size: 0.75rem; opacity: 0.7; text-align: right; }
.footer-legal p { margin: 0; color: inherit; }

/* Floating button */
.floating-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.45);
  z-index: 90;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-photo { order: -1; }
  .split { grid-template-columns: 1fr; }
  .flags-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
}

@media (max-width: 800px) {
  .main-nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--branco);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--borda);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .flags-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 2px; }
}
