/* Paleta tirada do celina11.com */
:root {
  --azul: #123c66;
  --azul-noticia: #253978;
  --azul-escuro: #0b2846;
  --azul-claro: #c9d8e7;
  --azul-vivo: #157cc1;
  --amarelo: #eda72b;
  --amarelo-vivo: #ffc31d;
  --fundo: #f6f9fc;
  --texto: #123c66;
  --texto-suave: #45596d;
  --branco: #ffffff;
  --verde: #168c54;
  --raio: 18px;
  --f-display: "Unbounded", Arial, sans-serif;
  --f-texto: "Figtree", Arial, sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-texto);
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Topo */
.topo { background: var(--azul); position: sticky; top: 0; z-index: 20; }
.topo-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.marca { display: flex; flex-direction: column; line-height: .9; text-decoration: none; color: var(--branco); }
.marca-sup { font-family: var(--f-display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amarelo); }
.marca-nome { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: .02em; }
.marca.pequena .marca-nome { font-size: 20px; }
.menu { display: flex; gap: 6px; }
.menu a {
  font-family: var(--f-cond); font-style: italic; font-weight: 700; font-size: 17px;
  color: var(--branco); text-decoration: none; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid transparent; transition: border-color .2s, color .2s;
}
.menu a:hover { border-color: var(--amarelo); color: var(--amarelo); }

/* Hero */
.hero {
  background: linear-gradient(115deg, var(--azul-escuro) 0%, var(--azul) 55%, var(--azul-noticia) 100%);
  color: var(--branco); padding: 72px 0 56px;
}
.sobre { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amarelo); margin: 0 0 14px; }
.hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 5vw, 52px); line-height: 1.12; margin: 0 0 16px; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--amarelo-vivo); }
.hero-sub { font-size: 18px; max-width: 52ch; color: rgba(255,255,255,.8); margin: 0 0 10px; }
.periodo { margin: 0 0 32px; font-weight: 600; color: var(--amarelo-vivo); font-size: 15px; }
.numeros { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.numeros div { border: 1.5px solid rgba(237,167,43,.55); border-radius: var(--raio); padding: 14px 22px; min-width: 150px; }
.numeros dt { font-size: 13px; color: rgba(255,255,255,.7); }
.numeros dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 34px; color: var(--amarelo-vivo); font-variant-numeric: tabular-nums; }

.aviso { background: #fff4dc; color: #6b4a07; text-align: center; padding: 10px 16px; font-size: 14px; }

/* Blocos */
.bloco { padding: 56px 0; scroll-margin-top: 72px; }
.bloco-amarelo { background: var(--amarelo); }
.bloco-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.bloco-cab h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); margin: 0; }
.titulo-cond { font-family: var(--f-cond) !important; font-style: italic; font-size: clamp(30px, 4vw, 42px) !important; color: var(--azul); }
.nota { margin: 0; font-size: 14px; color: var(--texto-suave); }
.nota.escura { color: var(--azul); }

/* Selo de status */
.selo {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: rgba(11,40,70,.82); color: #7ee2a8;
}
.selo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.selo.andamento { color: var(--amarelo-vivo); }
.selo.anunciado { color: #9cc7f5; }

/* Recentes */
.recentes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-foto {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--raio); overflow: hidden;
  background: var(--azul); color: var(--branco); cursor: pointer; border: 0; padding: 0; text-align: left;
  font: inherit; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-foto:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18,60,102,.25); }
.card-foto img, .card-foto .sem-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,28,51,.15) 30%, rgba(5,28,51,.9) 100%); }
.card-foto .selo, .card-foto .card-txt { position: relative; z-index: 1; }
.card-foto .selo { margin: 12px; align-self: flex-start; }
.card-txt { padding: 14px; }
.card-txt strong { display: block; font-size: 16px; line-height: 1.25; margin-bottom: 6px; }
.card-txt small { color: rgba(255,255,255,.75); font-size: 13px; }
.card-txt .card-cred { display: block; margin-top: 4px; font-size: 11px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sem-foto {
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, var(--azul-vivo), var(--azul) 60%, var(--azul-escuro));
}
.card-foto .sem-foto span { display: none; }
.sem-foto span { font-family: var(--f-display); font-weight: 800; font-size: 54px; color: rgba(237,167,43,.35); }

/* Regiões */
/* Mapa */
.mapa-painel { background: var(--azul-escuro); border-radius: 24px; padding: 20px; margin-bottom: 18px; }
.mapa svg { display: block; width: 100%; height: auto; max-height: 720px; }
.ra { stroke: #0b2846; stroke-width: 1.2; stroke-linejoin: round; transition: opacity .15s; }
.ra.tem { cursor: pointer; }
.ra.tem:hover, .ra.tem:focus-visible { opacity: .8; outline: none; }
.ra.ativa { stroke: var(--amarelo-vivo); stroke-width: 4; }
.rotulo { cursor: pointer; }
.rotulo rect { fill: rgba(11,40,70,.88); }
.rotulo text { font: 600 13px var(--f-texto); fill: #fff; pointer-events: none; }
.rotulo tspan { fill: var(--amarelo-vivo); font-weight: 700; }
.rotulo.ativa rect { fill: var(--amarelo-vivo); }
.rotulo.ativa text, .rotulo.ativa tspan { fill: var(--azul); }
.legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.8); }
.legenda i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.legenda .sem { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; }
.todo-df { margin-left: auto; font: 600 13px var(--f-texto); color: var(--azul); background: var(--amarelo-vivo); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.todo-df.ativa { background: #fff; }

.regioes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.regiao {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--azul); color: var(--branco); border: 2px solid transparent; border-radius: 14px;
  padding: 12px 14px; font: 600 15px var(--f-texto); cursor: pointer; text-align: left;
  transition: background .2s, transform .2s;
}
.regiao:hover { background: var(--azul-noticia); transform: translateY(-2px); }
.regiao[aria-pressed="true"] { background: var(--branco); color: var(--azul); border-color: var(--azul); }
.regiao b { font-family: var(--f-display); font-size: 14px; color: var(--amarelo-vivo); min-width: 28px; text-align: right; }
.regiao[aria-pressed="true"] b { color: var(--azul-vivo); }
.regiao .barra { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; max-width: 60px; }
.regiao .barra i { display: block; height: 100%; background: var(--amarelo-vivo); }
.regiao[aria-pressed="true"] .barra { background: var(--azul-claro); }
.regiao-nome { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Filtros */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.busca { flex: 1 1 280px; }
.filtros input, .filtros select {
  width: 100%; font: 500 15px var(--f-texto); color: var(--azul);
  border: 1.5px solid var(--azul-claro); background: var(--branco); border-radius: 999px; padding: 12px 18px;
}
.filtros select { width: auto; flex: 0 1 220px; }
.filtros input:focus, .filtros select:focus { outline: 2px solid var(--amarelo); outline-offset: 1px; }
.limpar { font: 600 14px var(--f-texto); border: 0; background: none; color: var(--azul-vivo); cursor: pointer; padding: 0 8px; }

/* Grade */
.grade { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.item { background: var(--branco); border-radius: var(--raio); overflow: hidden; box-shadow: 0 1px 0 rgba(18,60,102,.06), 0 6px 18px rgba(18,60,102,.06); display: flex; flex-direction: column; }
.item-foto { position: relative; aspect-ratio: 16 / 9; background: var(--azul); }
.item-foto img, .item-foto .sem-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-foto .sem-foto span { font-size: 40px; }
.item-foto .selo { position: absolute; top: 10px; left: 10px; }
.credito { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 3px 8px; font-size: 11px; color: #fff; background: rgba(5,28,51,.7); border-top-left-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credito-modal { font-size: 13px; }
.item-corpo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--texto-suave); }
.tag { background: #eaf1f8; color: var(--azul); font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.item h3 { font-size: 17px; line-height: 1.3; margin: 0; }
.item p { margin: 0; font-size: 14px; color: var(--texto-suave); }
.item a.fonte { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--azul-vivo); text-decoration: none; }
.item a.fonte:hover { text-decoration: underline; }
.vazio { text-align: center; color: var(--texto-suave); padding: 40px 0; }
.mais { display: block; margin: 28px auto 0; font: 700 15px var(--f-texto); color: var(--azul); background: none; border: 2px solid var(--amarelo); border-radius: 999px; padding: 12px 28px; cursor: pointer; }
.mais:hover { background: var(--amarelo); }

/* Rodapé */
.rodape { background: var(--azul); color: rgba(255,255,255,.75); padding: 28px 0; font-size: 14px; }
.rodape-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rodape p { margin: 0; }

/* Modal de foto */
.foto-modal { border: 0; padding: 0; border-radius: var(--raio); max-width: min(900px, 94vw); background: var(--azul); color: var(--branco); overflow: hidden; }
.foto-modal::backdrop { background: rgba(5,28,51,.85); }
.foto-modal img { max-height: 70vh; width: 100%; object-fit: contain; background: #000; }
.foto-modal .sem-foto { aspect-ratio: 16/9; }
.foto-info { padding: 18px 22px; }
.foto-info h3 { margin: 0 0 6px; font-size: 20px; }
.foto-info p { margin: 0 0 10px; color: rgba(255,255,255,.75); }
.foto-info a { color: var(--amarelo-vivo); font-weight: 600; }
.fechar {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--branco); background: var(--amarelo); color: var(--azul); font-size: 24px; line-height: 1; cursor: pointer;
}

/* Carregando */
.esqueleto { background: linear-gradient(90deg, #e3ebf3 25%, #f0f5fa 50%, #e3ebf3 75%); background-size: 200% 100%; animation: brilho 1.2s infinite; border-radius: var(--raio); }
@keyframes brilho { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .recentes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .menu a:not(:last-child) { display: none; }
  .recentes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-txt strong { font-size: 14px; }
  .hero { padding: 48px 0 40px; }
  .numeros div { min-width: 0; flex: 1 1 40%; padding: 12px 16px; }
  .numeros dd { font-size: 26px; }
  .filtros select { flex: 1 1 45%; }
  .rotulos { display: none; }
  .mapa-painel { padding: 12px; }
  .todo-df { margin-left: 0; }
}
/* Trajetória */
.trajetoria { background: var(--branco); }
.marcos { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.marcos li { background: var(--azul); color: var(--branco); border-radius: var(--raio); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.marcos strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); color: var(--amarelo-vivo); line-height: 1.05; font-variant-numeric: tabular-nums; }
.marcos span { font-size: 15px; line-height: 1.35; color: rgba(255,255,255,.88); }
.marcos a { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.6); }
.marcos a:hover { color: var(--amarelo-vivo); }
.linha { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 0; }
.linha::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--azul-claro); }
.linha li { position: relative; display: grid; grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 4px 16px; padding: 10px 0 10px 32px; border-bottom: 1px solid #eef3f8; }
.linha li::before { content: ""; position: absolute; left: 0; top: 15px; width: 16px; height: 16px; border-radius: 50%; background: var(--branco); border: 3px solid var(--azul); box-sizing: border-box; }
.linha li.destaque::before { background: var(--amarelo-vivo); border-color: var(--amarelo); }
.linha time { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--azul); }
.linha p { margin: 0; font-size: 16px; }
.linha li.destaque p { font-weight: 700; }
.linha a { font-size: 12px; color: var(--azul-vivo); }
@media (max-width: 900px) { .marcos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .marcos { gap: 10px; }
  .marcos li { padding: 16px; }
  .linha li { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
