:root {
  --cor-primaria: #0b875b;
  --cor-primaria-escura: #066141;
  --cor-secundaria: #145c9e;
  --cor-fundo: #f3f5f7;
  --cor-texto: #1f2933;
  --cor-texto-claro: #ffffff;
  --cor-borda: #d0d7de;
  --radius-base: 12px;
  --shadow-card: 0 10px 25px rgba(15, 23, 42, 0.10);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
}

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

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

body {
  display: flex;
  flex-direction: column;
}

/* Header / Topbar */
header.site-header {
  background: linear-gradient(90deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
  color: var(--cor-texto-claro);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

/* LOGO com imagem, sem fundo branco sobrando */
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
}

.logo-mark img.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.logo-text span:nth-child(1) {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo-text span:nth-child(2) {
  font-size: 0.68rem;
  opacity: 0.9;
}

/* Navegação */
.nav-main {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #e5f9ff;
  border-radius: 99px;
  transition: width 0.18s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Página ativa no menu */
.nav-links a.is-active {
  opacity: 1;
  font-weight: 600;
}

.nav-links a.is-active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn-primary {
  background-color: #facc15;
  color: #1f2933;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  background-color: #eab308;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.6);
  color: #f9fafb;
}

.btn-outline-light:hover {
  background: rgba(15, 23, 42, 0.2);
}

/* Toggle mobile */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #f9fafb;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #f9fafb;
  margin: 4px 0;
}

/* Layout principal */
main {
  flex: 1;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1.2rem;
  margin-bottom: 1.8rem;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.hero-copy h1 span {
  color: var(--cor-primaria-escura);
}

.hero-copy p {
  font-size: 0.95rem;
  max-width: 34rem;
  margin-bottom: 0.9rem;
  color: #4b5563;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.hero-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background-color: rgba(15, 118, 110, 0.07);
  border: 1px solid rgba(45, 212, 191, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.hero-note {
  font-size: 0.78rem;
  color: #6b7280;
}

.hero-card {
  background: radial-gradient(circle at 0 0, rgba(190, 242, 100, 0.25), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.22), transparent 55%),
              #0f172a;
  color: #e5e7eb;
  border-radius: 18px;
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(248, 250, 252, 0.26), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

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

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.75);
  margin-bottom: 0.35rem;
}

.hero-card h2 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.hero-card p {
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
}

.hero-card-list {
  font-size: 0.78rem;
  list-style: none;
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
}

.hero-card-list li::before {
  content: "•";
  margin-right: 0.35rem;
  color: #a7f3d0;
}

/* Seções gerais */
.section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Cards de notícias */
.grid-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  background-color: #ffffff;
  border-radius: var(--radius-base);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 0.9rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.news-meta {
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.news-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.news-excerpt {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
  flex: 1;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.link-inline {
  font-weight: 600;
  color: var(--cor-secundaria);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Blocos */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius-base);
  padding: 0.9rem 0.9rem 0.85rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px dashed rgba(34, 197, 94, 0.7);
  color: #166534;
  background-color: #ecfdf3;
  margin-bottom: 0.4rem;
}

/* Banners / campanhas */
.banners-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.banner-card {
  border-radius: 14px;
  padding: 0.75rem 0.7rem;
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  color: #064e3b;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.banner-card span.small {
  font-size: 0.7rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Seção Filie-se destaque */
.section-filie {
  margin-top: 1rem;
}

.filie-card {
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.12), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(248, 250, 252, 0.18), transparent 55%),
              #0f172a;
  color: #e5e7eb;
  border-radius: 18px;
  padding: 1rem 1rem 0.95rem;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filie-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.filie-card p {
  font-size: 0.8rem;
  color: #e5e7eb;
  max-width: 26rem;
}

.filie-meta {
  font-size: 0.68rem;
  color: #cbd5f5;
}

/* Rodapé */
footer.site-footer {
  background-color: #020617;
  color: #9ca3af;
  padding: 1.2rem 1rem 1.4rem;
  border-top: 1px solid #111827;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr;
  gap: 1.5rem;
  font-size: 0.78rem;
}

.footer-title {
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.4rem;
}

.footer-inner p {
  margin-bottom: 0.4rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.footer-links a {
  color: #9ca3af;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0.6rem auto 0;
  font-size: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #6b7280;
  flex-wrap: wrap;
}

/* Modal genérico */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay.is-visible {
  display: flex;
}

.modal {
  width: min(94vw, 380px);
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.1rem 1rem 0.9rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  animation: modal-in 0.18s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.modal-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(22, 163, 74, 0.1);
  color: #15803d;
  font-size: 0.9rem;
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.modal-body {
  font-size: 0.82rem;
  color: #4b5563;
  margin-bottom: 0.7rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

/* Responsividade */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding-inline: 0.75rem;
  }

  .nav-main {
    position: fixed;
    inset-inline: 0;
    top: 52px;
    background: linear-gradient(180deg, #0b1120 0%, #020617 100%);
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 0.9rem 0.9rem;
    transform: translateY(-120%);
    transition: transform 0.16s ease-out;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  }

  .nav-main.is-open {
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-cta {
    justify-content: flex-start;
    margin-top: 0.4rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

  .banners-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    margin-top: 1rem;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .grid-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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