body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --eco-brand-green: #2e8b57;
  --eco-brand-green-hover: #246848;
  --eco-site-blue: #0b5a90;
}

/* Hero section */
.hero {
  background-image: linear-gradient(
      90deg,
      rgba(11, 111, 180, 0.9),
      rgba(46, 139, 87, 0.8)
    ),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1600&q=60");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 6rem 0;
  border-bottom: 6px solid rgba(255, 255, 255, 0.06);
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.navbar {
  --bs-navbar-padding-y: 0;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 0;
}

.navbar .container {
  align-items: center;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0.5rem;
  line-height: 0;
}

.navbar-brand img {
  border-radius: 8px;
  display: block;
  height: 44px;
  width: auto;
  max-width: min(240px, 62vw);
  object-fit: contain;
  object-position: left center;
  margin: 0;
  transform: scale(1.55);
  transform-origin: left center;
}

.navbar-nav .nav-link {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

@media (min-width: 768px) {
  .navbar .container {
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
  }

  .navbar-brand img {
    height: 100px;
    max-width: 260px;
    transform: scale(2);
  }

  .navbar-nav .nav-link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}

/* Wordmark já inclui o nome da marca */
.navbar-brand > span {
  display: none;
}

/* Nome ao lado do logo — verde alinhado ao verde da identidade (logo / degradês do site) */
a.navbar-brand {
  color: var(--eco-brand-green);
  font-size: 1.2rem;
  font-weight: 700;
}

a.navbar-brand:hover,
a.navbar-brand:focus {
  color: var(--eco-brand-green-hover);
}

.navbar-brand span {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Sessão ao lado da marca (não dentro do menu) */
.eco-auth-by-logo .navbar-text,
.eco-auth-by-logo .navbar-text strong {
  color: inherit;
}

.eco-auth-by-logo [data-eco-session-label] {
  max-width: min(260px, 42vw);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .eco-auth-by-logo [data-eco-session-label] {
    max-width: min(340px, 36vw);
  }
}

/* Eixos */
.eixo-card img {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.eixo-card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}

/* Footer */
.footer {
  background:#0b5a90; 
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}

.footer-custom {
  background-color: #0b5a90;
  color: #ddd;
  font-size: 0.9rem;
  text-align: center;
}

.footer-custom a {
  color: #ddd;
  text-decoration: none;
}

.footer-custom a:hover {
  text-decoration: underline;
}

.footer-custom h5 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-custom ul {
  padding: 0;
  list-style: none;
}

.footer-custom ul li {
  margin-bottom: 0.5rem;
}

.footer-custom hr {
  border-color: #444;
}

.footer-custom p,
.footer-custom small {
  margin: 0;
  line-height: 1.5;
}

.em-dev-cap-thumb {
  max-height: 120px;
  width: auto;
  object-fit: cover;
}

/* Logos institucionais — linha horizontal no topo do card (em-desenvolvimento) */
.em-dev-apoio-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .em-dev-apoio-logos {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }
}

.em-dev-apoio-logos a {
  text-decoration: none;
}

.em-dev-apoio-logos .em-dev-apoio-logo-slot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 48px;
}

.em-dev-apoio-logos .em-dev-apoio-logo-slot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 576px) {
  .em-dev-apoio-logos .em-dev-apoio-logo-slot {
    width: 128px;
    height: 52px;
  }
}

@media (min-width: 768px) {
  .em-dev-apoio-logos .em-dev-apoio-logo-slot {
    width: 132px;
    height: 54px;
  }
}

/* Card / faixa de apoio — fundo azul institucional (rodapé / identidade) */
.eco-apoio-card {
  background-color: var(--eco-site-blue);
  color: #fff;
  box-shadow: 0 0.35rem 1rem rgba(11, 90, 144, 0.35) !important;
}

.eco-apoio-card .card-body {
  background-color: transparent;
}

.eco-apoio-card .em-dev-apoio-logos {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.eco-apoio-card-strip {
  background-color: var(--eco-site-blue);
  color: #fff;
}

.eco-apoio-card-strip .em-dev-apoio-logos {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.35rem;
}

.eco-apoio-card-strip .em-dev-apoio-logo-slot {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 48px;
  max-height: 48px;
}

.eco-apoio-card-strip .em-dev-apoio-logo-slot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .eco-apoio-card-strip .em-dev-apoio-logos {
    gap: 0.45rem;
  }

  .eco-apoio-card-strip .em-dev-apoio-logo-slot {
    height: 54px;
    max-height: 54px;
  }
}

/* Leve contraste atrás de cada logo no azul */
.eco-apoio-card .em-dev-apoio-logo-slot,
.eco-apoio-card-strip .em-dev-apoio-logo-slot {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
  box-sizing: border-box;
}

.eco-apoio-card a.em-dev-apoio-logo-slot:focus-visible,
.eco-apoio-card-strip a.em-dev-apoio-logo-slot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

/* Bloco “Apoio” + logos no rodapé da home */
.footer-custom .footer-apoio-heading {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Grade de apoio — 4 colunas, uma linha */
.footer-custom .footer-apoio-quadricula {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.footer-custom .footer-apoio-quad-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.3rem 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-sizing: border-box;
  height: 100%;
}

.footer-custom .footer-apoio-quad-img {
  filter: none;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.footer-custom .footer-apoio-quad-cell .footer-apoio-quad-img {
  max-height: 36px;
}

.footer-custom .footer-apoio-quad-cell--assinatura {
  min-height: 58px;
}

.footer-custom .footer-apoio-quad-cell--assinatura .footer-apoio-quad-img {
  max-height: 52px;
}

@media (min-width: 576px) {
  .footer-custom .footer-apoio-quad-cell {
    min-height: 58px;
    padding: 0.35rem 0.45rem;
  }

  .footer-custom .footer-apoio-quad-cell .footer-apoio-quad-img {
    max-height: 46px;
  }

  .footer-custom .footer-apoio-quad-cell--assinatura {
    min-height: 66px;
  }

  .footer-custom .footer-apoio-quad-cell--assinatura .footer-apoio-quad-img {
    max-height: 64px;
  }
}

@media (min-width: 768px) {
  .footer-custom .footer-apoio-quad-cell .footer-apoio-quad-img {
    max-height: 52px;
  }

  .footer-custom .footer-apoio-quad-cell--assinatura .footer-apoio-quad-img {
    max-height: 72px;
  }
}

.footer-custom .footer-apoio-quadricula a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
  border-radius: 8px;
}

.footer-custom img {
  filter: brightness(0) invert(1); /* para ícones em tons claros, caso SVG ou PNG preto */
}

.footer-custom .footer-apoio-quadricula img.footer-apoio-quad-img {
  filter: none;
}

/* Faixa de apoio (PNG) imediatamente acima do rodapé azul */
.eco-apoio-bar {
  background-color: #fff;
  border-top: 1px solid rgba(11, 90, 144, 0.1);
  border-bottom: 1px solid rgba(11, 90, 144, 0.14);
}

.eco-apoio-bar .eco-apoio-logos {
  row-gap: 1rem;
}

.eco-apoio-bar .eco-apoio-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
}

.eco-apoio-bar a.eco-apoio-logo-wrap {
  text-decoration: none;
}

.eco-apoio-bar .eco-apoio-logo {
  height: 48px;
  width: auto;
  max-width: min(200px, 32vw);
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (min-width: 768px) {
  .eco-apoio-bar .eco-apoio-logo {
    height: 56px;
    max-width: 240px;
  }
}

.footer-custom .footer-ods-note {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Botão padrão de voltar à página inicial nos eixos */
.eco-back-home {
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.eco-back-home i {
  margin-right: 0.25rem;
}

.eco-back-home:hover i {
  transform: translateX(-2px);
}
