/*
 * Copyright (c) 2025 Sistematech Tecnologia Ltda..
 *
 * A autoria e a titularidade integral dos direitos de propriedade intelectual e patrimoniais
 * deste software e de seu código-fonte pertencem única e exclusivamente à Sistematech Tecnologia Ltda..
 *
 * O código-fonte é disponibilizado ao Instituto Rio Metrópole (IRM) exclusivamente para fins de transparência,
 * auditoria e compliance, no âmbito de contrato de licenciamento de uso, permitindo
 * customizações contratuais específicas, sem que tal disponibilização implique cessão,
 * transferência, coautoria ou qualquer outro direito além do uso licenciado, pelo prazo
 * e condições estabelecidos em contrato.
 */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@400');

/* ==========================================================================
   1. RESET, TIPOGRAFIA E BASE
   ========================================================================== */

body {
  font-family: "Roboto", sans-serif;
  color: #222223;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* Padding-top será ajustado via Media Query no mobile devido ao header fixo */
}

html,
body {
  min-height: 100%;
}

#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 40px;
  line-height: 44px;
  font-weight: 700;
  color: #222223;
}

h2 {
  font-size: 24px;
  line-height: 29px;
  font-weight: 500;
  color: #222223;
}

p {
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: #222223;
}

a {
  font-family: "Roboto", sans-serif;
  text-decoration: none;
}

/* --- CORES E TAGS --- */
.verde-investe {
  color: #00C6AE;
}

#tag-bg-verde-investe,
.tag-bg-verde-investe {
  background-color: #00C6AE;
}

.laranja-investe {
  color: #FF9050;
}

#tag-bg-laranja-investe,
.tag-bg-laranja-investe {
  background-color: #FF9050;
}

.rosa-investe {
  color: #FC4FFF;
}

#tag-bg-rosa-investe,
.tag-bg-rosa-investe {
  background-color: #FC4FFF;
}

.azul-investe {
  color: #4EC1FF;
}

#tag-bg-azul-investe,
.tag-bg-azul-investe {
  background-color: #4EC1FF;
}

.tag,
.minitag {
  background-color: #00C6AE;
  padding: 4px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
}

.minitag {
  background-color: #F2FCFB;
  border: 1px #B8F0E9 solid;
  color: #00C6AE;
  font-size: 10px;
  padding: 4px 8px;
}

/* --- BOTÕES --- */
button,
.button {
  all: unset;
  cursor: pointer;
  padding: 16px 12px 16px 18px;
  background-color: #00C6AE;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  box-sizing: border-box;
}

button img,
.button img {
  width: 24px;
  height: 24px;
}

.button-full {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ==========================================================================
   2. COMPONENTES GERAIS
   ========================================================================== */

/* --- MAP SVG (Geral) --- */
.mapa-rj-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 230px;
}

.mapa-rj-svg {
  width: 100%;
  height: auto;
}

.mapa-rj-svg path {
  fill: #00C6AE;
  stroke: #ffffff;
  stroke-width: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mapa-rj-svg a:hover path {
  fill: #555555 !important;
  transform: translateY(-2px);
  filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 10;
}

#tooltip-rj {
  position: absolute;
  display: none;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-family: sans-serif;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- CARD HOVER (Setores) --- */
.card-hover {
  background: #E6FAF7;
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid #00C6AE;
  width: 100%;
  height: 160px;
  box-sizing: border-box;
  font-family: Roboto;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-hover.sector-highlight {
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card-link,
.card-link:link,
.card-link:visited,
.eixo-link,
.eixo-link:link,
.eixo-link:visited {
  color: #222223;
  text-decoration: none;
}

.eixo {

  border: 4px solid;
}

.card-hover:hover {
  background: #00C6AE;
  border-color: #00C6AE;
}

.card-title,
.card-text {
  transition: 0.3s ease;
  color: #222223;
  margin: 10px 0 0 0;
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.card-hover:hover .card-title,
.card-hover:hover .card-text {
  color: #222223;
}

/* Ícones animados dentro dos cards */
.icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  display: block;
}

.icon-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  transition: opacity 0.3s ease;
}

.icon-wrapper .icon-normal {
  opacity: 1;
}

.icon-wrapper .icon-hover {
  opacity: 0;
}

.card-hover:hover .icon-normal {
  opacity: 0;
}

.card-hover:hover .icon-hover {
  opacity: 1;
}

/* --- DROPDOWNS --- */
.dropdown {
  position: relative;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
}

.dropdown input {
  display: none;
}

.dropdown label {
  background: #ffffff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px #E7EDF1 solid;
  border-radius: 8px;
  cursor: pointer;
  color: #222223;
}

.dropdown ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: absolute;
  width: 100%;
  top: 58px;
  display: none;
  z-index: 50;
}

.dropdown input:checked~ul {
  display: block;
}

input:checked+label .icon-drop {
  transform: rotate(180deg);
}

.dropdown ul li {
  padding: 10px 15px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

.dropdown ul li:hover {
  background: #f8f7f7;
  color: #00C6AE;
}

/* ==========================================================================
   3. LAYOUT PRINCIPAL (HEADER, FOOTER, HOME)
   ========================================================================== */

/* --- HEADER --- */
#section-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0px;
  z-index: 999;
}

#container-header {
  background-color: #fff;
  margin: 24px;
  padding: 20px 160px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 1440px;
  max-width: 95%;
  min-height: 96px;
  border-radius: 16px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.06);
}

#menu {
  background-color: #fff;
}

#menu ul {
  padding: 0;
  list-style: none;
  display: flex;
  margin: 0;
}

#menu ul li {
  display: inline-block;
  margin-right: 20px;
}

#menu ul li a {
  color: black;
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  border-bottom: 4px solid transparent;
}

.ativo {
  color: #00C6AE;
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
}

#menu ul li a[aria-current="page"] {
  color: #00C6AE;
  border-bottom: 4px solid #00C6AE;
}

#menu ul li a:hover {
  color: #54595F;
}

.actions-header {
  display: flex;
  align-items: center;
}

.actions-header .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #222223;
  background: #f4f4f5;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.actions-header .icon-link:hover {
  color: #00C6AE;
  transform: translateY(-1px);
  box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.12);
}

.actions-header .material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
}

#menu ul li a:active {
  color: #00C6AE;
}

/* Menu Hambúrguer (Escondido no Desktop) */
#menu-toggle,
.menu-icon {
  display: none;
}

/* --- HERO --- */
#section-hero {
  display: flex;
  width: 100%;
  min-height: 780px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: url(../assets/img/home-hero-irm.jpg);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  order: 1;
  padding-top: 30px;
  padding-bottom: 30px;
}

#container-hero {
  width: 1120px;
  max-width: 90%;
  margin-top: 110px;
  display: flex;
}

#container-hero-column1,
#container-hero-column2 {
  width: 51%;
}

#container-hero-column1 {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(6px);
}

#titulo-header {
  color: #fff;
}

#subtitulo-header {
  color: #fff;
  margin-top: 10px;
}

#paragrafo-header {
  color: #fff;
  margin-top: 24px;
}

.logo-rio-metropole {
  margin-top: -40px;
}

#acoes-header {
  margin-top: 24px;
  margin-bottom: 96px;
  display: flex;
  align-items: center;
}

#btn-cadastrar {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-left: 24px;
  text-decoration: underline;
}

/* --- HOME: MAPA --- */
#section-map {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  background: #fff;
  order: 2;
}

#container-map,
.container-map {
  display: flex;
  flex-direction: row;
  padding: 96px 0;
  gap: 20px;
  width: 1120px;
  max-width: 90%;
}

.mapa-fullscreen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  box-sizing: border-box;
}

#container-map-column1,
.container-map-column1 {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 50%;
}

#container-map-column2,
.container-map-column2 {
  display: flex;
  flex-direction: row;
  width: 50%;
  align-items: center;
}

.mapa-openlayers-wrapper {
  position: relative;
  width: 100%;
  min-height: 520px;
  height: calc(100vh - 220px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

/* ── Legenda de centroides ── */
.mapa-legenda-centroide {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0 8px;
}

/* ── Mapa + Painel lateral ── */
.mapa-map-com-painel {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
}

.mapa-map-com-painel .mapa-openlayers-wrapper {
  flex: 1 1 0;
  min-width: 0;
}

.mapa-painel {
  width: 340px;
  flex-shrink: 0;
  height: calc(100vh - 220px);
  min-height: 520px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mapa-painel[hidden] { display: none; }

.mapa-painel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.mapa-painel-titulo {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  flex: 1;
}

.mapa-painel-fechar {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  padding: 0 0 0 8px;
  flex-shrink: 0;
}

.mapa-painel-fechar:hover { color: #dc2626; }

.mapa-painel-lista {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mapa-painel-loading,
.mapa-painel-vazio {
  text-align: center;
  color: #94a3b8;
  padding: 32px 16px;
  font-size: 14px;
}

.mapa-painel-footer { padding: 10px 16px; border-top: 1px solid #f1f5f9; flex-shrink: 0; }
.mapa-painel-footer[hidden] { display: none; }

.mapa-painel-ver-todas {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #00C6AE;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
}

.mapa-painel-ver-todas:hover { background: #E6FAF7; }

/* Cards de oportunidade no painel */
.mapa-op-cover-wrap {
  position: relative;
  width: 100%;
}

.mapa-op-icons {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.mapa-op-icon {
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,0.88);
  padding: 3px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.18);
  flex-shrink: 0;
}

.mapa-op-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  display: block;
  flex-shrink: 0;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.mapa-op-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #00C6AE;
}

.mapa-op-cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}

.mapa-op-cover-placeholder {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #ccf2ed 0%, #e6faf7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00C6AE;
  font-size: 28px;
}

.mapa-op-cover-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.4;
}

.mapa-op-body { padding: 10px 12px 12px; }

.mapa-op-titulo {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mapa-op-descricao {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 820px) {
  .mapa-map-com-painel { flex-direction: column; }
  .mapa-painel { width: 100%; height: auto; min-height: unset; max-height: 420px; }
}

.mapa-filters {
  margin-bottom: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mapa-filters #menus-dropdown {
  margin-top: 0;
}

#mapa-openlayers {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.mapa-toolbar {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.mapa-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

.mapa-toggle input {
  width: 18px;
  height: 18px;
}

.button-reload {
  padding: 12px 14px;
  font-size: 14px;
}

.mapa-status {
  font-size: 14px;
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
}

.mapa-status.erro {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.ol-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  min-width: 280px;
  max-width: 460px;
}

.ol-popup-closer {
  position: absolute;
  top: 6px;
  right: 10px;
  text-decoration: none;
  color: #6b7280;
  font-size: 18px;
}

.ol-popup-closer:hover {
  color: #111827;
}

/* --- HOME: PROJETOS / EIXOS --- */
#section-projetos {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #F2FCFB;
  justify-content: center;
  align-items: center;
  order: 3;
}

#container-projetos {
  display: flex;
  flex-direction: column;
  padding: 160px 0;
  gap: 20px;
  width: 1120px;
  max-width: 90%;
}

#setores,
.setores {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 50px;
}

#subtitulo,
.subtitulo {
  margin-top: -18px;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

#eixos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.eixo {
  width: 100%;
  height: auto;
  min-height: 166px;
  background-color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 3px #00C6AE solid;
  border-radius: 24px;
  padding: 26px;
  box-sizing: border-box;
}

.eixo-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  display: block;
}

.eixo-subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  margin-top: 8px;
  display: block;
  text-align: center;
}

.eixo:hover {
  border: 6px solid #00c6ae;
  transition: border 0.3s ease-in-out;
}

#eixo2 {
  border-color: #FF9050;
}

#eixo3 {
  border-color: #FC4FFF;
}

#eixo4 {
  border-color: #4EC1FF;
}

/* --- HOME: DOCUMENTOS --- */
#section-documentos {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  order: 4;
}

#container-documentos {
  display: flex;
  flex-direction: column;
  padding: 160px 0;
  gap: 24px;
  width: 1120px;
  max-width: 90%;
}

#documentos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 24px;
}

.documento {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 8px 10px;
  background-color: #E6FAF7;
  border: 1px #2ED0BC solid;
  border-radius: 8px;
  align-items: center;
}

/* --- HOME: BIG NUMBERS --- */
#section-bignumbers {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
  order: 5;
}

.slideshow-bg {
  position: relative;
  width: 100%;
  height: 576px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slideshow-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: slideShow 120s infinite;
}

@keyframes slideShow {
  0% {
    background-image: url('../assets/slides/slide-1.webp');
  }

  14% {
    background-image: url('../assets/slides/slide-2.webp');
  }

  28% {
    background-image: url('../assets/slides/slide-3.webp');
  }

  42% {
    background-image: url('../assets/slides/slide-4.webp');
  }

  57% {
    background-image: url('../assets/slides/slide-5.webp');
  }

  71% {
    background-image: url('../assets/slides/slide-6.webp');
  }

  85% {
    background-image: url('../assets/slides/slide-7.webp');
  }

  100% {
    background-image: url('../assets/slides/slide-1.webp');
  }
}

.content-wrapper-new {
  position: relative;
  z-index: 2;
  width: 1120px;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.circle-card-new {
  width: 256px;
  height: 256px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
  border: 1px solid #00bfa5;
  margin: auto;
  cursor: pointer;
}

.circle-card-new .numero {
  font-size: 46px;
  font-weight: 800;
  color: #00bfa5;
  transition: 0.3s;
  font-family: Roboto;
}

.circle-card-new .texto {
  font-size: 16px;
  font-weight: 500;
  color: #222223;
  transition: 0.3s;
  font-family: Roboto;
  margin-top: -10px;
  text-align: center;
  line-height: 1.2;
  padding: 0 10px;
}

.circle-card-new:hover {
  background: #00bfa5;
  border-color: #00bfa5;
}

.circle-card-new:hover .numero {
  color: #ffffff;
}

/* --- HOME: OPORTUNIDADES --- */
#section-oportunidades {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #B8F0E9;
  justify-content: center;
  align-items: center;
  order: 6;
}

#section-oportunidades h1 {
  padding: 12px 0;
}

#container-oportunidades {
  display: flex;
  flex-direction: column;
  padding: 96px 0;
  gap: 24px;
  width: 1120px;
  max-width: 90%;
}

#oportunidades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.oportunidades-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oportunidade {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
  padding: 0;
  background-color: #fff;
  border: 1px #00C6AE40 solid;
  border-radius: 24px;
  transition: 0.3s ease;
  overflow: hidden;
}

.oportunidade:hover,
.oportunidade:focus-within {
  background-color: var(--op-accent-bg, #E6FAF7);
  border: 1px solid var(--op-accent, #00C6AE);
}

.oportunidade-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.oportunidade-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.oportunidade-cover.sem-capa img {
  object-fit: contain;
  opacity: 0.35;
}

.oportunidade-cover .pill {
  position: absolute;
}

.oportunidade-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 24px;
}

.op-card-title {
  margin: 0;
}

.pill.pill-op-top {
  background: #00C6AE;
  color: #ffffff;
  border: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 6px 18px;
  align-self: center;
  max-width: calc(100% + 4px);
  margin: 0 -2px;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-leading-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 40px;
  height: 40px;
}

.op-leading-icon .op-card-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.overlay-top {
  top: 12px;
  left: 12px;
}

.overlay-bottom {
  bottom: 12px;
  left: 12px;
}

.pill.pill-municipio {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.pill.pill-theme {
  background: #0ea5e912;
  border: 1px solid #0ea5e9;
}

.oportunidade h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  margin: 0;
}

.oportunidade-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.oportunidade-link:hover,
.oportunidade-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.oportunidade p,
.oportunidade-descricao {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oportunidade-body .pill-row {
  margin-top: auto;
}

.pill-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.pill.pill-sector {
  background: #F2FCFB;
  border: 1px solid #B8F0E9;
  color: #00C6AE;
  box-shadow: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 4px 10px;
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#menus-dropdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

#oportunidades-filtros-avancados {
  margin-top: 16px;
}

.filtros-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filtros-actions .filtro-toggle {
  flex: 0 0 auto;
  width: 220px;
  text-align: center;
  justify-content: center;
}

.filtro-secundario {
  background: #ffffff;
  color: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.filtro-secundario:hover {
  background: #e2e8f0;
  border-color: #0f172a;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
}

.filtro-toggle {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #00C6AE;
  background: #00C6AE;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 198, 174, 0.3);
}

.filtro-toggle:hover {
  background: #019b8f;
  border-color: #019b8f;
  box-shadow: 0 6px 12px rgba(1, 155, 143, 0.35);
}

.filtro-secundario:hover {
  background: #e2e8f0;
  border-color: #0f172a;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
}

.hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #475569;
}

.filtros-avancados-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.filtros-avancados.aberto .filtros-avancados-panel {
  max-height: 800px;
  opacity: 1;
  margin-top: 10px;
  padding-top: 4px;
}

.filtros-grupo h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  flex-shrink: 0;
}

.filtros-grupo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.filtros-pills {
  flex: 1 1 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 180px;
}

.filtro-pill {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filtro-pill:hover {
  border-color: #00C6AE;
  color: #00C6AE;
}

.filtro-pill.ativo {
  background: #E6FAF7;
  border-color: #00C6AE;
  color: #0f172a;
}

#oportunidades-paginacao {
  margin: 24px 0 0;
}

.paginacao {
  display: flex;
  align-items: center;
  gap: 12px;
}

.paginacao button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

.paginacao button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.paginacao span {
  font-weight: 600;
  color: #475569;
}

.menus-select .select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menus-select label {
  font-weight: 600;
  color: #0f172a;
}

.menus-select select,
.form-control select.signup-select {
  width: 100%;
  padding: 10px 12px;
  padding-right: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: #0f172a;
  min-height: 52px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('../assets/icons/chevrons-down.svg');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px 20px;
}

.menus-select select:focus,
.form-control select.signup-select:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 1px;
}

#btn-oportunidades {
  margin-top: 64px;
}

/* --- HOME: NOTÍCIAS --- */
#section-noticias {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #F2FCFB;
  justify-content: center;
  align-items: center;
  order: 7;
}

#container-noticias {
  display: flex;
  flex-direction: column;
  padding: 96px 0;
  gap: 24px;
  width: 1120px;
  max-width: 90%;
}

#noticias {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

#noticia,
.noticia-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 90px;
  width: 100%;
}

#imagem-noticia1 {
  width: 100%;
  height: 352px;
  border-radius: 8px;
  background: url(../assets/Image1.jpg) no-repeat center bottom / cover;
}

#imagem-noticia2 {
  width: 100%;
  height: 352px;
  border-radius: 8px;
  background: url(../assets/Image2.jpg) no-repeat center bottom / cover;
}

#tag-noticia,
.tag-noticia {
  position: relative;
  top: 20px;
  left: 28px;
}

#noticia h2,
.noticia-card h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
}

#noticia p,
.noticia-card p {
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
}

/* --- HOME: CADASTRE-SE --- */
#section-cadastrese {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #F2FCFB;
  justify-content: center;
  align-items: center;
  order: 8;
}

#container-cadastrese {
  display: flex;
  flex-direction: column;
  padding: 96px 0;
  gap: 24px;
  width: 1120px;
  max-width: 90%;
}

#cadastros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
  align-items: stretch;
}

#cadastro,
.cadastro-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 24px;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 198, 174, 0.22);
  border-radius: 24px;
  box-sizing: border-box;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

#cadastro:hover,
.cadastro-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 198, 174, 0.48);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(0, 198, 174, 0.08);
}

#cadastro img,
.cadastro-card img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

#cadastro h3,
.cadastro-card h3 {
  margin: 0;
  color: #222223;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

#cadastro h4,
.cadastro-card h4 {
  margin: 0;
  color: #5B6168;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

#cadastro p,
#cadastro ul,
.cadastro-card p,
.cadastro-card ul {
  margin: 0;
  color: #222223;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

/* botão / link CTA */
#cadastro a,
.cadastro-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: auto;
  min-height: 44px;
  padding: 0 20px;

  color: #00BFA8;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;

  border-radius: 999px;
  border: 1px solid rgba(0, 198, 174, 0.32);
  background: rgba(255, 255, 255, 0.72);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#cadastro a:hover,
.cadastro-card a:hover {
  color: #009F8C;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 198, 174, 0.54);
  box-shadow:
    0 8px 18px rgba(0, 198, 174, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

#cadastro a:active,
.cadastro-card a:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(0, 198, 174, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#cadastro a:focus-visible,
.cadastro-card a:focus-visible {
  outline: 2px solid rgba(0, 198, 174, 0.35);
  outline-offset: 3px;
}

#cadastro a::after,
.cadastro-card a::after {
  content: "↗";
  font-size: 13px;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#cadastro a:hover::after,
.cadastro-card a:hover::after {
  transform: translate(1px, -1px);
  opacity: 1;
}

/* card destacado do manual */
.cadastro-card--highlight {
  background: #F3FBFA;
  border: 1px solid #00C6AE;
  box-shadow: 0 10px 28px rgba(0, 198, 174, 0.06);
}

.cadastro-card--highlight:hover {
  background: #F8FDFC;
  border-color: #00BFA8;
  box-shadow: 0 16px 34px rgba(0, 198, 174, 0.10);
}

/* responsivo */
@media (max-width: 1024px) {
  #cadastros {
    grid-template-columns: 1fr;
  }

  #cadastro,
  .cadastro-card {
    min-height: auto;
  }

  #cadastro a,
  .cadastro-card a {
    margin-top: 8px;
  }
}

/* --- FOOTER --- */
#section-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #222223;
  justify-content: center;
  align-items: center;
  order: 9;
  margin-top: auto;
}

#home>.partial-footer {
  width: 100%;
  margin-top: auto;
  order: 9;
}

#container-footer {
  display: flex;
  flex-direction: column;
  padding: 33px 0;
  gap: 8px;
  width: 1120px;
  max-width: 90%;
  text-align: center;
}

#container-footer h2 {
  color: #00C6AE;
  font-size: 20px;
  font-weight: 700;
}

#container-footer h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

#container-footer p {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

#icones-socias {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 16px;
}

#icones-socias img {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   4. PÁGINAS INTERNAS (RMRJ, Oportunidades, Eixos, Login, Projeto)
   ========================================================================== */

/* Ajustes Gerais de Containers Internos (Desktop) */
#pagina-section-map,
#pagina-section-map2,
#pagina-section-oportunidades,
#section-eixos,
#section-noticia,
#pagina-section-cadastrese,
#section-projeto,
#pagina-section-noticias {
  padding-top: 100px;
  /* Espaço para o header */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

#page-content>#pagina-section-cadastrese {
  order: 8;
}

#page-content>#pagina-section-cadastrese>#section-cadastrese {
  order: 8;
}

/* --- RMRJ --- */
#pagina-section-map {
  background: #fff;
  order: 2;
}

#pagina-section-map img {}

#mapa-openlayers canvas {
  overflow: hidden;
}


#pagina-section-map2 {
  background: #E6FAF7;
  order: 5;
}

#section-cadastrese-rmrj {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #CCF4EF;
  justify-content: center;
  align-items: center;
  order: 8;
  padding: 60px 0;
}

#cadastros-rmrj {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
  margin-bottom: 115px;
  width: 1120px;
  max-width: 90%;
}

/* Legislação */
#section-legislacao {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #F2FCFB;
  justify-content: center;
  align-items: center;
  order: 3;
}

#container-legislacao {
  display: flex;
  flex-direction: column;
  padding: 100px 0;
  gap: 20px;
  width: 1120px;
  max-width: 90%;
}

#container-legislacao ul {
  margin-top: -5px;
  padding-left: 20px;
}

#container-legislacao li {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 5px;
}

#recursos {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

#grade-lei-1,
#grade-lei-2 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  margin-top: 50px;
}

#grade-lei-1 {
  margin-bottom: 90px;
}

/* --- PÁGINA EIXOS --- */
#section-eixos {
  background-color: #F2FCFB;
  order: 4;
  text-align: justify;
}

#section-eixos li {
  font-size: 20px;
  padding: 8px 0;
}


#container-eixos {
  display: flex;
  flex-direction: column;
  padding: 100px 0;
  gap: 24px;
  width: 1120px;
  max-width: 90%;
  text-align: justify;
}

#section-oportunidades-eixos {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  order: 6;
}

#subtitulo-eixos {
  margin-top: 20px;
}

#eixo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 90px;
  width: 100%;
}

/* Imagens Eixos */
#imagem-eixo1,
#imagem-eixo2,
#imagem-eixo3,
#imagem-eixo4 {
  margin-top: 60px;
  width: 100%;
  height: 352px;
  border-radius: 24px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

#imagem-eixo1 {
  background-image: url(../assets/2cf876a1fa468008fc5fa2a81573bc9573ab9da6-1024x518.jpg);
}

#imagem-eixo2 {
  background-image: url(../assets/eixos/eixo2-1024x322.png);
}

#imagem-eixo3 {
  background-image: url(../assets/eixos/eixo3-1024x322.png);
}

#imagem-eixo4 {
  background-image: url(../assets/eixos/eixo4-1024x322.png);
}

#tag-eixo1,
#tag-eixo2,
#tag-eixo3,
#tag-eixo4 {
  position: relative;
  top: 20px;
  left: 28px;
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

#tag-eixo1 {
  background-color: #00C6AE;
}

#tag-eixo2 {
  background-color: #FF9050;
}

#tag-eixo3 {
  background-color: #FC4FFF;
}

#tag-eixo4 {
  background-color: #4EC1FF;
}

#eixo h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
}

#eixo h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 26px;
}

#eixo p {
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  margin-bottom: 20px;
}

#btn-eixos,
.btn-eixos {
  padding-right: 20px;
  margin-top: 20px;
}

.setor,
.setor-n {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background-color: #fff;
  border: 1px #00C6AE40 solid;
  border-radius: 24px;
  transition: 0.3s ease;
}

.setor-n {
  margin-top: 60px;
}

.setor:hover,
.setor-n:hover {
  background-color: #E6FAF7;
  border: 1px #00C6AE solid;
}

.setor img,
.setor-n img {
  width: 48px;
  height: 48px;
}

.setor h2,
.setor-n h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  margin: 0;
}

.setor p,
.setor-n p {
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
}

/* --- PÁGINA NOTÍCIA INTERNA --- */
#section-noticia {
  background-color: #fff;
  order: 4;
}


#section-noticia-full {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  justify-content: center;
  align-items: center;
}

#container-noticia {
  display: flex;
  flex-direction: column;
  padding: 100px 0;
  gap: 24px;
  width: 1120px;
  max-width: 90%;
  margin-top: 100px;
}

#espacamento-noticias {
  height: 40px;
}

#imagem-noticia1 {
  border-radius: 24px;
}

.tag-noticia {
  position: relative;
  top: 20px;
  left: 28px;
}

#noticia-full h2 {
  margin-top: 24px;
  margin-bottom: 24px;
  font-size: 32px;
  font-weight: 500;
  line-height: 120%;
}

#noticia-full p {
  font-size: 16px;
  font-weight: 400;
  line-height: 160%;
  margin-bottom: 24px;
}

/* --- NEWS: CARDS + FEED --- */
.highlight-card {
  --highlight-bg: #fff;
  --highlight-border: rgba(15, 23, 42, 0.08);
  --highlight-title: #0f172a;
  --highlight-text: rgba(15, 23, 42, 0.72);
  --highlight-link: #0e7490;
  --highlight-badge-bg: rgba(15, 23, 42, 0.08);
  --highlight-badge-border: rgba(15, 23, 42, 0.18);
  --highlight-badge-color: #0f172a;
  --highlight-chip-bg: rgba(14, 116, 144, 0.1);
  --highlight-chip-color: #0e7490;
  --highlight-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --highlight-shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.12);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: var(--highlight-bg);
  border-radius: 20px;
  border: 1px solid var(--highlight-border);
  box-shadow: var(--highlight-shadow);
  height: 100%;
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.highlight-card--linkable:hover,
.highlight-card--linkable:focus-within {
  box-shadow: var(--highlight-shadow-hover);
  transform: translateY(-2px);
}

.highlight-card__media {
  margin: -18px -18px 0;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
}

.highlight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.highlight-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--highlight-badge-bg);
  color: var(--highlight-badge-color);
}

.highlight-card__badge--outline {
  background: transparent;
  border: 1px solid var(--highlight-badge-border);
}

.highlight-card__title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--highlight-title);
}

.highlight-card__summary {
  margin: 0;
  color: var(--highlight-text);
  line-height: 1.5;
  flex: 1;
}

.highlight-card__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.highlight-card__chips li {
  background: var(--highlight-chip-bg);
  color: var(--highlight-chip-color);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.highlight-card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-weight: 600;
  color: var(--highlight-link);
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.highlight-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  z-index: 1;
  content: '';
}

.highlight-card--news {
  --highlight-title: #222223;
  --highlight-text: #222223;
  --highlight-link: #ffffff;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  gap: 18px;
}

.highlight-card--news .highlight-card__media {
  margin: 0;
  aspect-ratio: auto;
  height: clamp(220px, 36vw, 352px);
  border-radius: 24px;
  overflow: hidden;
}

.highlight-card--news .highlight-card__body {
  padding: 0 0 4px;
  gap: 16px;
}

.highlight-card--news .highlight-card__badges {
  position: absolute;
  top: clamp(14px, 3vw, 22px);
  left: clamp(12px, 3vw, 22px);
  z-index: 2;
}

.highlight-card--news .highlight-card__badge {
  background: #00c6ae;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 14px;
  box-shadow: 0 12px 28px rgba(0, 198, 174, 0.35);
}

.highlight-card--news .highlight-card__title {
  font-size: clamp(1.8rem, 3vw, 2rem);
  font-weight: 600;
}

.highlight-card--news .highlight-card__summary {
  font-size: 1rem;
  line-height: 1.45;
}

.highlight-card--news .highlight-card__chips {
  display: none;
}

.highlight-card--news .highlight-card__cta {
  background: #00c6ae;
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 18px 44px rgba(0, 198, 174, 0.18);
  gap: 10px;
}

.highlight-card--news .highlight-card__cta:hover,
.highlight-card--news .highlight-card__cta:focus-visible {
  background: #00b49b;
  box-shadow: 0 22px 52px rgba(0, 198, 174, 0.24);
}

.home-news {
  width: 100%;
  background: #f2fcfb;
  color: #222223;
  display: flex;
  justify-content: center;
}

.home-news__container {
  width: 1120px;
  max-width: 92%;
  padding: clamp(72px, 8vw, 120px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
}

.home-news__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-radius: 999px;
  background: #00c6ae;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.home-news__title {
  margin: 0;
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  color: #222223;
}

.home-news__subtitle {
  margin: 0;
  max-width: 860px;
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.45;
  color: #222223;
}

.home-news__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 32px);
  margin-top: clamp(18px, 3vw, 32px);
}

.home-news__card {
  display: block;
}

.home-news__card .highlight-card__body {
  padding: 12px 10px 6px;
}

.home-news__card .highlight-card__title {
  font-size: 1.15rem;
}

.home-news__card .highlight-card__summary {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news__footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(12px, 3vw, 28px);
}

.home-news__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: none;
  border-radius: 14px;
  background: #00c6ae;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 198, 174, 0.18);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-news__cta:hover,
.home-news__cta:focus-visible {
  background: #00b49b;
  box-shadow: 0 20px 48px rgba(0, 198, 174, 0.24);
  transform: translateY(-1px);
}

.home-news__cta:focus-visible {
  outline: 2px solid #00c6ae;
  outline-offset: 3px;
}

.home-news__cta-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.news-feed {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.news-feed__header {
  margin-bottom: 18px;
}

.news-feed__eyebrow {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--home-text-muted, #6a6a6a);
}

.news-feed__headline {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
}

.news-feed__subtitle {
  margin: 0;
  max-width: 560px;
  color: var(--home-text-muted, #565656);
  font-size: 0.95rem;
}

.news-feed__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-feed__empty,
.news-feed__error,
.news-feed__loading {
  margin: 0;
  padding: 8px 0;
  font-size: 0.96rem;
  color: var(--home-text-muted, #4a4a4a);
}

.news-feed__error {
  color: #b91c1c;
}

.news-feed__card {
  display: block;
  padding: 0;
  position: relative;
}

.news-feed__body {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: news-rise 240ms ease;
}

.news-feed__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-text-muted, #6a6a6a);
}

.news-feed__time {
  font-weight: 600;
}

.news-feed__meta-divider {
  opacity: 0.6;
}

.news-feed__meta-subjects {
  letter-spacing: 0.04em;
}

.news-feed__media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
}

.news-feed__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.news-feed__footer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.news-feed__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
}

.news-feed__title a {
  color: inherit;
  text-decoration: none;
}

.news-feed__title a:hover,
.news-feed__title a:focus-visible {
  text-decoration: underline;
}

.news-feed__summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--home-text-muted, #555557);
}

.news-feed__spacer {
  flex: 1 1 auto;
}

.news-feed__action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-investe-teal, #00c6ae);
  text-decoration: none;
}

.news-feed__action:hover,
.news-feed__action:focus-visible {
  text-decoration: underline;
}

.news-detail {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.news-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-investe-teal, #00c6ae);
  text-decoration: none;
  margin-bottom: 18px;
}

.news-detail__back:hover,
.news-detail__back:focus-visible {
  text-decoration: underline;
}

.news-detail__loading,
.news-detail__error {
  margin: 0;
  padding: 8px 0;
  font-size: 0.96rem;
  color: var(--home-text-muted, #4a4a4a);
}

.news-detail__error {
  color: #b91c1c;
}

.news-detail__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.news-detail__meta {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--home-text-muted, #6a6a6a);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-detail__divider {
  opacity: 0.6;
}

.news-detail__title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
}

.news-detail__summary {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--home-text-muted, #555557);
}

.news-detail__hero {
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
}

.news-detail__hero img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.news-detail__content {
  font-size: 1rem;
  line-height: 1.6;
  color: #222223;
}

.news-detail__content h2,
.news-detail__content h3,
.news-detail__content h4 {
  margin-top: 24px;
}

.news-detail__content p {
  margin: 0 0 16px;
  text-indent: 1.2rem;
}

.news-detail__content p:last-child {
  margin-bottom: 0;
}

.news-detail__content a {
  color: var(--brand-investe-teal, #00c6ae);
}

.news-detail__footer {
  margin-top: 24px;
}

.news-detail__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand-investe-teal, #00c6ae);
  text-decoration: none;
}

.news-detail__source:hover,
.news-detail__source:focus-visible {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .highlight-card {
    padding: 16px;
  }

  .highlight-card__title {
    font-size: 1.25rem;
  }

  .highlight-card--news .highlight-card__media {
    height: 220px;
  }

  .highlight-card--news .highlight-card__title {
    font-size: 1.35rem;
  }

  .news-detail {
    padding: 8px 12px 24px;
  }
}

@media (max-width: 720px) {
  .home-news__container {
    padding: 56px 0;
  }

  .home-news__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .news-feed {
    padding: 0 12px;
  }
}

@keyframes news-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- PÁGINA LOGIN --- */
#home-login {
  margin: 0;
  background: #E6FAF7;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.card-login {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  padding: 48px;
  border-radius: 24px;
  width: 448px;
  max-width: 100%;
  height: auto;
  text-align: center;
  border: 1px #00c2a85d solid;
}

.logos-login {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.logos-login img {
  max-width: 45%;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #D1DCE4;
  background: #E7EDF1;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  color: #222223;
  box-sizing: border-box;
}

.input-group input:focus {
  border-color: #00c2a8;
}

.btn-login,
.btn-login-back {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-size: 16px;
  font-weight: 500;
  transition: 0.2s;
  box-sizing: border-box;
  text-align: center;
  display: block;
}

.btn-login {
  background: #00C6AE;
}

.btn-login:hover {
  background: #00b19a;
}

.btn-login-back {
  background: #555555;
}

.btn-login-back:hover {
  background: #6d6d6d;
}

.btn-criar-conta-login {
  color: #222223;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-top: 10px;
}

.grupo-botoes {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.grupo-botoes a {
  width: 100%;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: #0f172a;
  color: #fff;
  padding: 10px 14px;
  z-index: 1000;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 12px;
}

.signup-wrapper {
  display: flex;
  justify-content: center;
  padding: 144px 16px 48px;
  background: linear-gradient(180deg, #f4fafc 0%, #ffffff 80%);
}

.signup-card {
  width: 100%;
  max-width: 1040px;
  background: #fff;
  border: 1px solid #dbe5ec;
  border-radius: 24px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.signup-card h1 {
  font-size: 32px;
  margin: 12px 0 8px;
}

.signup-lead {
  color: #4b5563;
  margin-bottom: 20px;
  max-width: 800px;
}

.signup-section {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 16px 8px;
  margin: 18px 0;
}

.signup-section legend {
  padding: 0 8px;
  font-weight: 700;
  color: #0f172a;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 16px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #111827;
}

.form-control input,
.form-control select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1dce4;
  background: #eef3f6;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  box-sizing: border-box;
}

.form-control input:focus,
.form-control select:focus {
  border-color: #00c6ae;
  outline: none;
  background: #ffffff;
}

.radio-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbfd;
}

.radio-option input {
  margin-right: 8px;
}

.radio-option span {
  font-weight: 700;
}

.radio-option small {
  color: #4b5563;
}

.radio-inline {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.radio-inline label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.role-block {
  margin-top: 14px;
}

.role-toggle {
  display: inline-flex;
  gap: 10px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #dbe5ec;
}

.role-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}

.role-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-chip input:checked+span,
.role-chip input:checked~span {
  color: #026d5f;
}

.role-chip:has(input:checked) {
  background: #e6fffa;
  border-color: #00c6ae;
  box-shadow: 0 0 0 1px #00c6ae inset;
}

.signup-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.signup-actions .button {
  width: auto;
  min-width: 240px;
}

:is(a, button, select, input, textarea):focus-visible {
  outline: 3px solid #00c6ae;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #e0fbf6;
}

@media (max-width: 768px) {
  .signup-card {
    padding: 24px 18px;
  }

  .signup-card h1 {
    font-size: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* --- PÁGINA PROJETO --- */
#section-projeto {
  background-color: #fff;
  order: 4;
}

#container-projeto {
  display: flex;
  flex-direction: column;
  padding: 100px 0;
  gap: 24px;
  width: 1120px;
  max-width: 90%;
}

#container-projeto h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 120%;
  color: #222223;
}

#grupo-descricao-projeto {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-top: 24px;
}

#coluna-identificacao {
  display: flex;
  flex-direction: column;
  width: 30%;
  gap: 24px;
}

#coluna-imagens {
  display: flex;
  flex-direction: column;
  width: 70%;
  gap: 16px;
}

#img-principal-projeto {
  border-radius: 24px;
  width: 100%;
  height: auto;
}

#fotos-projeto {
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: space-between;
}

#fotos-projeto img {
  width: calc(33.33% - 6px);
  height: auto;
  border-radius: 12px;
}

#titulo-outros-projetos {
  text-align: center;
  margin-top: -60px;
}

#area-btn-oportunidades {
  width: 100%;
}

/* --- PÁGINA OPORTUNIDADE --- */
#pagina-oportunidade {
  background: linear-gradient(180deg, #0f172a 0%, #0b1222 40%, #f8fafc 40%);
}

#container-oportunidade {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.oportunidade-shell {
  width: 1120px;
  max-width: 90%;
  margin: 0 auto;
}

.oportunidade-hero {
  position: relative;
  color: #ffffff;
  padding: 140px 0 96px;
  background: linear-gradient(135deg, #0b1222 0%, #0f172a 45%, #0b1222 100%);
  overflow: hidden;
}

.oportunidade-hero .oportunidade-shell {
  position: relative;
  z-index: 1;
}

.oportunidade-hero-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.9);
  opacity: 0.55;
  transition: opacity 180ms ease, transform 240ms ease;
}

.oportunidade-hero:hover .oportunidade-hero-cover {
  opacity: 0.65;
  transform: scale(1.01);
}

.oportunidade-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 12% 18%, rgba(14, 165, 233, 0.24) 0%, transparent 45%),
    radial-gradient(110% 110% at 88% 28%, rgba(250, 204, 21, 0.18) 0%, transparent 42%);
  opacity: 0.9;
  pointer-events: none;
}

.oportunidade-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -90px;
  height: 180px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, #f8fafc 100%);
  pointer-events: none;
}

.oportunidade-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
}

.oportunidade-voltar:hover {
  color: #e2e8f0;
  text-decoration: underline;
}

.oportunidade-tags-linha {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill,
.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0f172a;
  background: #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.pill-status {
  background: linear-gradient(120deg, #38bdf8 0%, #0ea5e9 60%, #0284c7 100%);
  color: #0b1222;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
}

.oportunidade-hero h1 {
  margin: 12px 0;
  font-size: 44px;
  line-height: 1.1;
  color: #ffffff;
  max-width: 900px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.oportunidade-hero .subtitulo {
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 900px;
  padding-top: 12px;
}

.oportunidade-hero .pill-group #oportunidade-municipio {
  color: #0f172a !important;
}


.oportunidade-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.oportunidade-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(4px);
}

.oportunidade-card h2,
.oportunidade-card h3 {
  margin-bottom: 10px;
  color: #0f172a;
}

.oportunidade-conteudo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oportunidade-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.oportunidade-meta {
  align-self: start;
  position: sticky;
  top: 110px;
}

.oportunidade-sidebar .oportunidade-meta {
  width: 100%;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.meta-grid .grupo-info {
  margin: 0;
}

.meta-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.material-icon {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.meta-grid h2 {
  font-size: 15px;
  color: #475569;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.meta-grid p {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.08);
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 42, 0.65);
}

.detail-value {
  font-size: 15px;
  font-weight: 700;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.meta-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid #cbd5e1;
}

.oportunidade-card #oportunidade-mapa-wrapper {
  position: relative;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a0d;
  border: 1px solid var(--map-accent, #e2e8f0);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

#oportunidade-mapa-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.mapa-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.55));
  color: #e2e8f0;
  font-weight: 600;
  text-align: center;
  padding: 12px 16px;
}

.rich-text p {
  margin-bottom: 14px;
  color: #334155;
  line-height: 1.7;
}

.rich-text ul {
  margin: 10px 0 10px 18px;
  color: #334155;
  line-height: 1.6;
  list-style: disc;
}

.rich-text strong {
  color: #0f172a;
}

.mensagem-estado {
  width: 1120px;
  max-width: 90%;
  margin: 0 auto 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #0ea5e9;
  color: #0b1222;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

.mensagem-estado.erro {
  background: #f97316;
  color: #0b1222;
}

.mensagem-estado:empty {
  display: none;
}

.sdg-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.sdg-icon-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  text-align: center;
  aspect-ratio: 1 / 1;
  max-width: 150px;
  max-height: 150px;
}

.sdg-icon {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  color: #0b1222;
  overflow: hidden;
}

.sdg-icon-card[data-has-color='true'] {
  border-color: var(--sdg-color, #e2e8f0);
}

.sdg-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.documentos-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.documento-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.document-icon {
  color: #0ea5e9;
}

.documento-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.documento-link:hover,
.documento-link:focus-visible {
  text-decoration: underline;
}

.documento-meta {
  color: #475569;
  font-size: 13px;
}

/* ==========================================================================
   5. MEDIA QUERIES (RESPONSIVIDADE CONSOLIDADA)
   ========================================================================== */

/* --- TABLET E DISPOSITIVOS MÓVEIS (Max 991px) --- */
@media (max-width: 991px) {

  /* --- HEADER FIXO E MENU HAMBÚRGUER --- */
  #section-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #ffffff;
    height: auto;
  }

  #container-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 14px 18px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  }

  body {
    padding-top: 100px;
  }

  /* Elementos do Menu Mobile */
  .menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1001;
  }

  .navicon {
    background: #222223;
    display: block;
    height: 3px;
    width: 26px;
    position: relative;
    border-radius: 2px;
  }

  .navicon:before,
  .navicon:after {
    background: #222223;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
    border-radius: 2px;
  }

  .navicon:before {
    top: 8px;
  }

  .navicon:after {
    top: -8px;
  }

  #menu-toggle:checked~.menu-icon .navicon {
    background: transparent;
  }

  #menu-toggle:checked~.menu-icon .navicon:before {
    transform: rotate(-45deg);
    top: 0;
  }

  #menu-toggle:checked~.menu-icon .navicon:after {
    transform: rotate(45deg);
    top: 0;
  }

  #menu {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 1000;
  }

  #menu ul {
    flex-direction: column;
    padding: 20px 0;
    align-items: center;
  }

  #menu ul li {
    display: block;
    margin: 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
  }

  #menu ul li a {
    display: block;
    padding: 20px;
    font-size: 18px;
  }

  #menu-toggle:checked~#menu {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .actions-header {
    position: relative;
    right: 60px
  }

  /* --- LAYOUT GERAL HOME --- */
  #section-hero {
    min-height: auto;
    padding: 60px 0;
  }

  #container-hero {
    flex-direction: column;
    margin-top: 0;
  }

  #container-hero-column1,
  #container-hero-column2 {
    width: 100%;
    text-align: center;
  }

  #acoes-header {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }

  #btn-cadastrar {
    margin-left: 0;
  }

  #container-map,
  .container-map {
    flex-direction: column;
    padding: 40px 0;
  }

  #container-map-column1,
  #container-map-column2,
  .container-map-column1,
  .container-map-column2 {
    width: 100%;
  }

  #setores {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  #eixos {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  #oportunidades,
  #cadastros {
    grid-template-columns: repeat(2, 1fr);
  }

  .slideshow-bg {
    height: auto;
    padding: 60px 0;
  }

  .content-wrapper-new {
    flex-direction: column;
    gap: 20px;
  }

  /* --- AJUSTES PÁGINAS INTERNAS (ESPAÇAMENTO) --- */
  /* Reduz espaço do topo da seção */
  #pagina-section-map,
  #pagina-section-map2,
  #pagina-section-oportunidades,
  #section-eixos,
  #section-noticia,
  #pagina-section-cadastrese,
  #section-projeto,
  #section-legislacao {
    padding-top: 70px !important;
  }

  /* Reduz espaço interno dos containers */
  #container-map,
  .container-map,
  #container-legislacao,
  #container-eixos,
  #container-noticia,
  #container-projeto,
  #container-cadastrese,
  #container-oportunidades {
    padding-top: 20px !important;
    padding-bottom: 40px !important;
    margin-top: 0 !important;
  }

  /* Ajustes finos de margens internas */
  #cadastros-rmrj,
  #grade-lei-1,
  #grade-lei-2,
  #container-projeto h1,
  #noticia-full h2 {
    margin-top: 10px !important;
  }

  /* Oportunidade */
  .oportunidade-hero {
    padding: 120px 0 70px;
  }

  .oportunidade-grid {
    grid-template-columns: 1fr;
  }

  .oportunidade-meta {
    position: relative;
    top: 0;
  }

  .oportunidade-card {
    padding: 24px;
  }

  .oportunidade-card #oportunidade-mapa-wrapper {
    height: 300px;
  }

  #imagem-eixo1,
  #imagem-eixo2,
  #imagem-eixo3,
  #imagem-eixo4 {
    margin-top: 20px !important;
  }

  /* --- PÁGINA RMRJ --- */
  #grade-lei-1,
  #grade-lei-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    margin-top: 30px !important;
  }

  #cadastros-rmrj {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin-bottom: 40px !important;
    gap: 20px !important;
  }

  #container-legislacao,
  #cadastros-rmrj {
    width: 90% !important;
    margin-left: auto;
    margin-right: auto;
  }

  #pagina-section-map,
  #pagina-section-map2 {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 40px;
  }

  /* --- PÁGINA NOTÍCIA INTERNA --- */
  #container-noticia {
    width: 90% !important;
    padding: 20px 16px 60px 16px !important;
  }

  #section-noticia {
    padding-top: 70px !important;
    height: auto !important;
  }

  #imagem-noticia1 {
    width: 100% !important;
    height: 220px !important;
    background-size: cover !important;
    margin-top: 10px !important;
  }

  #noticia-full h2 {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-top: 24px !important;
    word-wrap: break-word;
  }

  .tag-noticia {
    left: 10px !important;
    font-size: 12px !important;
    padding: 4px 12px !important;
  }

  /* --- PÁGINA PROJETO --- */
  #grupo-descricao-projeto {
    flex-direction: column;
  }

  #coluna-identificacao,
  #coluna-imagens {
    width: 100%;
  }

  #titulo-outros-projetos {
    margin-top: 0;
  }

  /* --- PÁGINA LOGIN --- */
  #home-login {
    margin-top: -100px;
  }

}

/* --- MOBILE (Max 600px) --- */
@media (max-width: 600px) {

  /* Tipografia */
  h1 {
    font-size: 32px;
    line-height: 38px;
  }

  h2 {
    font-size: 20px;
    line-height: 26px;
  }

  #container-projeto h1,
  #noticia-full h2 {
    font-size: 28px;
  }

  .oportunidade-hero h1 {
    font-size: 32px;
    margin-top: 8px;
  }

  .oportunidade-card {
    padding: 22px;
  }

  .mensagem-estado {
    width: 95%;
  }

  .oportunidade-hero .subtitulo {
    font-size: 16px;
  }

  .pill,
  .pill-status {
    font-size: 13px;
    padding: 7px 12px;
  }

  .oportunidade-card #oportunidade-mapa-wrapper {
    height: 260px;
  }

  /* Home: Notícias */
  #noticias {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #noticia,
  .noticia-card {
    margin-bottom: 20px;
  }

  #imagem-noticia1,
  #imagem-noticia2 {
    width: 100% !important;
    height: 220px !important;
  }

  #pagina-section-noticias {
    padding-top: 0px;
  }

  #section-noticia-full {
    align-items: center;
  }

  #container-noticia {
    padding: 0px;
    margin: 0px;
    align-items: center;
  }

  /* Home: Grids 1 Coluna */
  #setores {
    grid-template-columns: repeat(2, 1fr);
  }

  #eixos,
  #menus-dropdown,
  #oportunidades,
  #cadastros {
    grid-template-columns: 1fr;
  }

  /* Dropdowns e Botões */
  #menus-dropdown {
    margin-top: 30px;
    gap: 15px;
  }

  .button-full {
    width: 100%;
    margin-top: 10px;
  }

  .card-hover {
    height: auto;
    aspect-ratio: 1/1;
  }

  /* Big Numbers */
  .circle-card-new {
    width: 150px;
    height: 150px;
  }

  .circle-card-new .numero {
    font-size: 36px;
  }

  /* Footer */
  #icones-socias {
    margin-bottom: 20px;
  }

  /* Páginas Internas */
  #imagem-eixo1,
  #imagem-eixo2,
  #imagem-eixo3,
  #imagem-eixo4 {
    height: 220px;
    margin-top: 30px;
  }

  .setor-n {
    margin-top: 30px;
  }

  /* Login */
  .card-login {
    padding: 48px;
    width: 100%;
  }

  .grupo-botoes {
    flex-direction: column;
    gap: 10px;
  }

  #home-login {
    margin-top: -100px;
  }

  /* Projeto */
  #fotos-projeto {
    flex-wrap: wrap;
  }

  #fotos-projeto img {
    width: calc(50% - 4px);
    margin-bottom: 8px;
  }

  #btn-download-projeto {
    width: 100%;
  }

}

