
/* =========================================================
   UTILIDADES
========================================================= */

.pagina-utilidades,
.pagina-utilidades-transportes {
  background: #f3f4f6;
}

.pagina-utilidades header,
.pagina-utilidades-transportes header {
  background: #0f172a;
}

.pagina-utilidades .logo-link,
.pagina-utilidades-transportes .logo-link,
.pagina-utilidades #siteNav a,
.pagina-utilidades-transportes #siteNav a,
.pagina-utilidades #menuToggle,
.pagina-utilidades-transportes #menuToggle,
.pagina-utilidades .site-title,
.pagina-utilidades-transportes .site-title {
  color: #ffffff;
}

.pagina-utilidades #siteNav a.ativo,
.pagina-utilidades-transportes #siteNav a.ativo {
  color: #93c5fd;
}

/* =========================================================
   UTILIDADES - HUB
========================================================= */

.utilidades-main {
  padding-bottom: 56px;
}
.utilidades-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.10), transparent 24%),
    linear-gradient(135deg, #0b5bd3 0%, #0f3f8a 55%, #0b2c63 100%);
  color: #ffffff;
  padding: 56px 0 42px;
}

.utilidades-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.utilidades-hero-texto {
  max-width: 760px;
}

.utilidades-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 1;
}

.utilidades-hero-texto {
  text-align: center;
  margin: 0 auto;
}

.utilidades-hero h1 {
  margin: 0 0 16px;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;

  /* EFEITO 3D */
  text-shadow:
    0 1px 0 #1e3a8a,
    0 2px 0 #1e3a8a,
    0 3px 0 #1e3a8a,
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.utilidades-intro {
  margin: 0;
  max-width: 720px;
  font-size: 1.06rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.96);
}

.utilidades-hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.utilidades-hero-card-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.utilidades-hero-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.15;
  color: #ffffff;
}

.utilidades-hero-card p {
  margin: 0 0 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.94);
}

.utilidades-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: #ffffff;
  color: #0f3f8a;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.utilidades-hero-link:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.utilidades-grid-wrap {
  padding: 28px 0 0;
}

.utilidades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.utilidade-card {
  display: block;
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 20px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.utilidade-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.utilidade-card p {
  margin: 0;
  line-height: 1.7;
  color: #334155;
}

.utilidade-card-destaque:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.utilidade-card-bloqueado {
  opacity: 0.92;
}

.utilidade-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #0f3f8a;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.utilidade-tag-em-breve {
  background: #fef3c7;
  color: #92400e;
}

/* =========================================================
   TRANSPORTES
========================================================= */

.transportes-main {
  padding-bottom: 56px;
}

.transportes-hero {
  background: linear-gradient(135deg, #0b5bd3 0%, #0f3f8a 100%);
  color: #ffffff;
  padding: 42px 0 32px;
}

.transportes-hero {
  text-align: center;
}

.transportes-eyebrow {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}

.transportes-hero {
  text-align: center;
}

.transportes-eyebrow {
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 0.12em;
}

/* SUBTÍTULO */
.transportes-hero h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  font-weight: 800;
}

/* TÍTULO PRINCIPAL NOVO (vamos criar via CSS pseudo) */
.transportes-hero::before {
  content: "TRANSPORTES";
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 6px;

  /* 3D */
  text-shadow:
    0 1px 0 #1e3a8a,
    0 2px 0 #1e3a8a,
    0 3px 0 #1e3a8a,
    0 4px 10px rgba(0, 0, 0, 0.4);
}

.transportes-intro {
  margin: 0;
  max-width: 850px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.transportes-conteudo {
  padding: 24px 0 0;
}

.transportes-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.transportes-painel,
.transportes-resumo,
.transportes-markdown,
.transportes-pdf-acoes,
.transportes-pdf-viewer {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.transportes-painel {
  padding: 18px;
}

.transportes-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.transportes-pesquisa-linha {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.transportes-pesquisa {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 1rem;
  color: #0f172a;
  outline: none;
}

.transportes-pesquisa:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.transportes-btn-secundario,
.transportes-btn-principal,
.transportes-btn-secundario-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.transportes-btn-secundario {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.transportes-btn-secundario:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.transportes-lista {
  margin-top: 16px;
  display: grid;
  gap: 10px;

  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.transportes-item {
  width: 100%;
  text-align: left;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.transportes-item:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.transportes-item.is-active {
  border-color: #2563eb;
  background: #dbeafe;
}

.transportes-item-numero {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f3f8a;
}

.transportes-item-texto {
  display: block;
  color: #0f172a;
  line-height: 1.5;
}

.transportes-item-texto strong {
  display: block;
  font-size: 0.98rem;
}

.transportes-item-texto small {
  display: block;
  margin-top: 4px;
  color: #475569;
  font-size: 0.9rem;
}

.transportes-resumo {
  padding: 22px 20px;
}

.transportes-card-topo-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.transportes-card-topo-header h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #0f172a;
}

.transportes-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #0f3f8a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.transportes-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.transportes-meta-item {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.transportes-meta-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
}

.transportes-meta-item strong {
  color: #0f172a;
  font-size: 1rem;
}

.transportes-aviso {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  background: #fff7ed;
  color: #7c2d12;
  line-height: 1.7;
}

.transportes-markdown {
  padding: 0;
  overflow: hidden;
}

.transportes-artigo {
  padding: 28px 20px;
  color: #111827;
}

.transportes-artigo > *:first-child {
  margin-top: 0;
}

.transportes-artigo > *:last-child {
  margin-bottom: 0;
}

.transportes-artigo h1 {
  margin: 0 0 24px;
  font-size: 2rem;
  line-height: 1.1;
  color: #0f172a;
}

.transportes-artigo h2 {
  margin: 34px 0 16px;
  font-size: 1.45rem;
  line-height: 1.2;
  color: #0b5bd3;
}

.transportes-artigo h3 {
  margin: 26px 0 14px;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #0f172a;
}

.transportes-artigo p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.9;
  color: #1f2937;
}

.transportes-artigo strong {
  font-weight: 800;
  color: #0f172a;
}

.transportes-artigo em {
  color: #475569;
}

.transportes-artigo ul,
.transportes-artigo ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.transportes-artigo li {
  margin-bottom: 12px;
  line-height: 1.8;
  color: #1f2937;
}

.transportes-artigo hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 28px 0;
}

.transportes-artigo blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid #b91c1c;
  border-radius: 0 14px 14px 0;
  background: #f8fafc;
  color: #111827;
}

.transportes-artigo blockquote p:last-child {
  margin-bottom: 0;
}

.transportes-pdf-acoes {
  padding: 18px 20px;
}

.transportes-acoes-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transportes-btn-principal {
  background: #0b5bd3;
  color: #ffffff;
  border: 1px solid #0b5bd3;
}

.transportes-btn-principal:hover {
  background: #0948a8;
  border-color: #0948a8;
}

.transportes-btn-secundario-link {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.transportes-btn-secundario-link:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.transportes-pdf-viewer {
  padding: 14px;
}

.transportes-pdf-box {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #e5e7eb;
}

.transportes-pdf-box iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

.transportes-estado {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.transportes-estado-erro {
  color: #991b1b;
}

@media (min-width: 768px) {
  .utilidades-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transportes-pesquisa-linha {
  grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .transportes-acoes-wrap {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .transportes-pdf-box iframe {
    height: 680px;
  }
}

@media (min-width: 1024px) {
  .utilidades-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .transportes-layout {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
  }

  .transportes-painel {
    position: sticky;
    top: 24px;
  }

  .transportes-artigo {
    padding: 34px 30px;
  }

  .transportes-pdf-box iframe {
    height: 820px;
  }

  .utilidades-hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 420px);
  gap: 28px;
  }

  .utilidades-hero {
    padding: 68px 0 52px;
  }

  .utilidades-hero-card {
    padding: 26px 24px;
  }
  
}

/* =========================================================
   REFINO VISUAL FINAL - UTILIDADES
========================================================= */

.pagina-utilidades .container,
.pagina-utilidades-transportes .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.utilidades-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utilidades-grid-wrap {
  margin-top: -28px;
}

.utilidades-grid {
  position: relative;
  z-index: 2;
}

.utilidade-card {
  padding: 24px 22px;
}

.utilidade-card h2 {
  font-size: 1.4rem;
}

.utilidade-card p {
  font-size: 0.98rem;
}

.utilidades-hero-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.utilidades-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

/* BOTÃO VOLTAR - TRANSPORTES (VERMELHO) */
.transportes-btn-voltar {
  display: inline-block;
  margin-bottom: 16px;
  padding: 10px 18px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #ffffff;
  background-color: #b30000;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.transportes-btn-voltar:hover {
  background-color: #8f0000;
  transform: translateY(-1px);
}

/* ÍCONE DECORATIVO NO CARD DA HERO */
.utilidades-hero-card {
  position: relative;
  overflow: hidden;
}

.utilidades-hero-card > * {
  position: relative;
  z-index: 2;
}

.utilidades-hero-card-icone {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 220px;
  max-width: 52%;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
  filter: brightness(1.15);
}

/* CENTRALIZAÇÃO GERAL NO DESKTOP */
@media (min-width: 1024px) {
  .utilidades-hero .container {
    display: flex;
    justify-content: center;
  }

  .utilidades-hero-grid {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(560px, 680px);
    gap: 40px;
  }

  .utilidades-grid {
    max-width: 1180px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .utilidades-hero-card {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 30px 36px;
  }

  .utilidades-hero-card p {
    max-width: 100%;
  }
}

/* CENTRALIZAÇÃO REAL DO TEXTO DA HERO DE TRANSPORTES */
.transportes-hero .container {
  text-align: center;
}

.transportes-hero p {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.transportes-voltar-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}

.transportes-btn-topo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: #ffffff;
  background-color: #0f172a;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.transportes-btn-topo:hover {
  background-color: #020617;
  transform: translateY(-1px);
}

/* =========================================================
   PADRONIZAÇÃO BOTÕES VOLTAR / TOPO (AJUSTE FINAL)
========================================================= */

.transportes-btn-voltar,
.transportes-btn-topo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  height: 46px !important;           /* 🔥 trava altura */
  padding: 0 18px !important;       /* remove variação vertical */

  font-size: 0.95rem !important;
  font-weight: 700 !important;

  line-height: 1 !important;
  border-radius: 16px !important;

  cursor: pointer !important;
}

/* cores mantidas */
.transportes-btn-voltar {
  background: #b40000 !important;
  color: #fff !important;
}

.transportes-btn-topo {
  background: #0f172a !important;
  color: #fff !important;
}

/* =========================================================
   MOBILE — PDF ANTES DO RESUMO
========================================================= */

@media (max-width: 768px) {
  .transportes-detalhe {
    display: flex;
    flex-direction: column;
  }

  .transportes-pdf-acoes {
    order: 1;
  }

  .transportes-resumo {
    order: 2;
  }

  .transportes-markdown {
    order: 3;
  }

  .transportes-pdf-viewer {
    display: none;
    order: 4;
  }
}

/* =========================================================
   MOBILE — BOTÃO TOPO FLUTUANTE
========================================================= */

.transportes-btn-topo-float {
  display: none;
}

@media (max-width: 768px) {
  .transportes-btn-topo-float {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    height: 48px;
    min-width: 48px;
    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;

    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease,
      background 0.2s ease;
  }

  .transportes-btn-topo-float.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .transportes-btn-topo-float:active {
    background: rgba(15, 23, 42, 0.9);
  }
}