/* ============================================================
   style.css — 2º RTDPJ Recife
   Compatível com Bootstrap 5.3 + jQuery 3.7
   ============================================================ */

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue.eot');
  src: url('../fonts/BebasNeue.eot?#iefix') format('embedded-opentype'),
       url('../fonts/BebasNeue.woff') format('woff'),
       url('../fonts/BebasNeue.ttf')  format('truetype'),
       url('../fonts/BebasNeue.svg#971508b09718b6144e128af2335b709c') format('svg');
  font-style:  normal;
  font-weight: 400;
}

/* ============================================================
   LGPD Banner
   ============================================================ */
.lgpd {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 20px;
  background-color: #304a5d;
  color: #fff;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Trebuchet Ms", sans-serif;
  z-index: 9999;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.lgpd a { color: #FFF; }

/* ============================================================
   BASE
   ============================================================ */
body {
  border-top: 6px solid #263849;
  font-family: "Trebuchet Ms", sans-serif;
}

p {
  font-size: 13px;
  line-height: 18px;
}

iframe {
  border: 5px solid #e8e8e8;
  border-radius: 3px;
}

.input-group {
  width: 100%;
  margin: 0 0 20px;
}
.input-group input    { border-radius: 3px !important; }
.input-group textarea { border-radius: 3px !important; height: 100px; resize: none; }

.container { position: relative; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  padding: 8px 0;
  background: #f2f2f2;
}

/* Container do top-bar */
.top-bar > .container {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 36px;
}

.top-bar .top-menu {
  padding-left: 0;
  /* auto à esquerda empurra para a direita;
     490px à direita garante que não fique atrás
     do formulário de login (467px de largura) */
  margin: 0 490px 0 auto;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.top-menu.logado {
  margin-right: 490px;
}

.top-bar .top-menu li {
  list-style-type: none;
  display: inline-block;
}

.top-bar .top-menu li a {
  padding: 0 6px;
  color: #34495e;
  font-size: 12px;
  font-family: "Trebuchet Ms", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
}

.top-bar .top-menu li a:hover { color: #1a2a38; text-decoration: none; }

/* Social — mantido mas oculto pois está vazio no HTML */
.top-bar .social {
  display: none;
}

.top-bar .social a {
  width: 26px;
  height: 26px;
  margin: 0 2px;
  float: left;
  display: block;
  background: url(../images/icon-redes.png) no-repeat;
  text-indent: -999em;
}

.top-bar .social a.facebook { background-position: 0 0; }
.top-bar .social a.twitter  { background-position: -32px 0; }
.top-bar .social a.skype    { background-position: -64px 0; }

/* Login rápido na top-bar */
.top-bar .navbar-right {
  width: 467px;
  height: 60px;
  padding: 5px 0 0 55px;
  margin: 0;
  position: absolute;
  right: 15px;
  top: -8px;
  background: url(../images/bg-login.png) no-repeat;
  z-index: 9;
  order: 2;
}

.top-bar .navbar-right span {
  margin: 10px 10px 0 0;
  float: left;
  font-family: 'Bebas Neue', sans-serif;
  color: #f2f2f2;
  text-transform: uppercase;
  font-size: 20px;
}

.top-bar .form-control { width: 155px; }

.top-bar .navbar-right button {
  font-family: 'Bebas Neue', sans-serif;
  color: #f2f2f2;
  text-transform: uppercase;
  font-size: 25px;
  border: none;
  background: none;
  position: relative;
  top: 5px;
  left: 0;
  cursor: pointer;
}

.top-bar .navbar-right.logado span {
  margin: 0 15px 0 0;
  display: block;
  text-align: right;
  float: none;
  font-size: 18px;
}

.top-bar .navbar-right.logado small {
  margin: 0 15px 0 0;
  display: block;
  color: #fff;
  text-align: right;
}

.top-bar .navbar-right.logado small a {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================
   NAVBAR PRINCIPAL — Bootstrap 5
   Substitui os seletores ".navbar-default" (Bootstrap 3)
   por seletores compatíveis com Bootstrap 5.
   ============================================================ */
.navbar {
  margin: 35px 0 0;
  background: transparent;
  border: none;
  padding: 0;
}

.navbar-brand {
  height: auto;
  padding: 0;
}

/* ----------------------------------------------------------
   Links do menu principal
   Bootstrap 5 usa ".nav-link" — sobrescrevemos aqui
   para manter a identidade visual com Bebas Neue
   ---------------------------------------------------------- */
.navbar-nav .nav-item .nav-link,
.nav.navbar-nav > li > a {
  color: #34495e !important;          /* Cor principal (não azul padrão BS5) */
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  padding: 5px 4px;
  display: inline-block;
  text-decoration: none !important;   /* Remove sublinhado padrão de <a> */
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.navbar-nav .nav-item .nav-link:hover,
.nav.navbar-nav > li > a:hover {
  color: #666e76 !important;
}

/* Separador "•" entre os itens (texto após o </a>, dentro do <li>) */
.navbar-nav .nav-item { display: inline-flex; align-items: center; }

/* Âncora do dropdown — sem position:relative o menu flutua no lugar errado */
.navbar-nav .nav-item.dropdown { position: relative; }

/*
   Dropdown — hover via CSS (o link principal navega normalmente)
   Bootstrap 5 não abre dropdown por hover por padrão;
   mantemos o comportamento original via CSS.
*/
.nav.navbar-nav > li:hover .dropdown-menu,
.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
  display: block !important;
  position: absolute;
  top: 100%;       /* logo abaixo do item pai */
  left: 0;
  right: auto;
  margin-top: 0;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
}

.navbar-nav .dropdown-menu .dropdown-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: #34495e;
  letter-spacing: 0.3px;
  padding: 6px 16px;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
  background: #34495e;
  color: #fff;
}

/* ----------------------------------------------------------
   Botão "Acesso" — linha azul inferior que completa o design
   Classe .nav-acesso aplicada no header.php
   ---------------------------------------------------------- */
.nav-acesso {
  border-bottom: 3px solid #2980b9 !important;
  padding-bottom: 2px !important;
  color: #34495e !important;
  font-weight: 600;
  position: relative;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-acesso:hover {
  border-bottom-color: #1a5276 !important;
  color: #1a5276 !important;
}

/* ============================================================
   SLIDER / CARROSSEL
   ============================================================ */
.slider-bg {
  padding: 20px 0;
  margin: 25px 0 50px;
  background: url(../images/bg-banner.png);
}

.slider-bg .carousel {
  border-radius: 8px;
  border: 7px solid #57718b;
  overflow: hidden;
}

.slider-bg .carousel .carousel-item img { width: 100%; }

.slider-bg .right { padding: 0 12px; }

.slider-bg .right a:first-child { margin: 0 0 10px; }

.slider-bg .right a {
  padding: 0;
  display: block;
  border: 6px solid #57718b;
  border-radius: 8px;
  overflow: hidden;
}

.slider-bg .right a img { width: 100%; }

.slider-bg .carousel-caption {
  padding: 10px 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  bottom: 2%;
}

/* ============================================================
   CONTEÚDO GERAL
   ============================================================ */
.content { margin-bottom: 20px; }

.content h2 {
  padding: 0 0 10px;
  margin: 0 0 25px;
  font-family: 'Bebas Neue', sans-serif;
  color: #34495e;
  text-transform: uppercase;
  font-size: 38px;
  background: url(../images/dots.png) repeat-x center bottom;
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.servicos { margin-bottom: 60px; }

.servicos .item {
  padding: 5px;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e6e6e6;
}

.servicos .item img { width: 100%; border-radius: 3px; }

.servicos .item h3 {
  width: 100%;
  padding: 15px;
  margin: 0;
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  background: rgba(52, 73, 94, 0.8);
  color: #fff;
}

/* ============================================================
   NOTÍCIAS
   ============================================================ */
.noticias .item    { margin: 0 0 50px; overflow: hidden; }

.noticias .image {
  padding: 5px;
  margin: 0 10px 0 0;
  float: left;
  background: #57718b;
  border-radius: 5px;
}

.noticias .image img { border-radius: 3px; }

.noticias .info { width: 65%; float: left; }

.noticias .info h3 {
  margin: 5px 0 3px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: #34495e;
}

.noticias .info h3 a { color: #34495e; text-decoration: none; }

.noticias .info p { text-align: justify; }

.noticias .info .more {
  padding: 0 0 0 5px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: #34495e;
  border-left: 3px solid #34495e;
}

.content.interna .noticias .item {
  padding: 0 0 30px;
  margin: 0 15px 30px;
  border-bottom: 1px dotted #e1e1e1;
}

.interna.noticias .image { width: 300px; height: 300px; margin: 0 20px 20px 0; }
.interna.noticias .image img { width: 300px; height: auto; }

nav { text-align: center; }

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
  padding: 20px 15px 30px;
  border-top: 1px solid #e5e5e5;
}

.footer h4 {
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  color: #34495e;
}

.footer a { display: block; }

.footer a.map {
  padding: 0 0 0 20px;
  margin: 6px 0 0;
  background: url(../images/icon-location.png) no-repeat left top;
  font-family: 'Bebas Neue', sans-serif;
  color: #34495e;
  text-transform: uppercase;
}

.footer span {
  font-size: 12px;
  line-height: 18px;
}

.footer span.phone {
  display: block;
  padding: 0 0 0 45px;
  background: url(../images/icon-contact.png) no-repeat left top;
}

.footer span.email {
  display: block;
  clear: left;
  padding: 0 0 0 45px;
  margin-top: 8px;
  min-height: 32px;
  background: url(../images/icon-email.png) no-repeat left top;
}

.footer span.email a { color: #333; font-size: 12px; }

/* Instagram link no footer */
.footer-instagram {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-instagram:hover { opacity: .7; }

/* ============================================================
   LINKS RÁPIDOS NO RODAPÉ
   Espelha a top-bar que fica oculta em telas <= 991px.
   ============================================================ */
.footer-links {
  padding: 8px 0;
  background: #f2f2f2;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

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

.footer-links ul li {
  display: inline-block;
  margin: 0;
  font-size: 11px;
}

.footer-links ul li a {
  padding: 0 8px;
  color: #34495e;
  font-family: "Trebuchet Ms", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 11px;
  border-right: 1px solid #ccc;
}

.footer-links ul li:last-child a {
  border-right: none;
}

.footer-links ul li a:hover {
  color: #1a2a38;
}

/* Em telas grandes, oculta os links (já aparecem na top-bar) */
@media (min-width: 992px) {
  .footer-links { display: none; }
}

/* ============================================================
   ASSINATURA / RODAPÉ INFERIOR
   ============================================================ */
.sign {
  padding: 10px 0;
  background: #f2f2f2;
  overflow: hidden;
  font-size: 11px;
  color: #828282;
}

.sign .copy { margin: 6px 0 0; float: left; }
.sign .by   { float: right; }
.sign .by a { margin: 0 0 0 5px; }

/* ============================================================
   PÁGINAS INTERNAS — Título
   ============================================================ */
.title { margin: 50px 0 20px; }

.title h2 {
  padding: 0 0 10px;
  margin: 0 0 25px;
  font-family: 'Bebas Neue', sans-serif;
  color: #34495e;
  text-transform: uppercase;
  font-size: 38px;
  background: url(../images/dots.png) repeat-x center bottom;
}

.title h2 span { font-size: 20px; float: right; }

/* ============================================================
   MENU LATERAL
   ============================================================ */
.menu-lateral { margin: 0 0 50px; }
.menu-lateral ul { padding: 0; }
.menu-lateral li { margin: 0 0 1px; list-style-type: none; }

.menu-lateral li a {
  padding: 8px 13px;
  display: block;
  background: #f2f2f2;
  border-radius: 3px;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: #34495e;
}

.menu-lateral li a:hover,
.menu-lateral li a.active {
  background: #34495e;
  color: #fff;
}

/* ============================================================
   CONTEÚDO INTERNO
   ============================================================ */
.content.interna {
  min-height: 500px;
  margin-bottom: 60px;
}

.content.interna p { margin: 0 0 10px; line-height: 20px; text-align: justify; }

.content h3 {
  margin: 0 0 15px;
  font-family: 'Bebas Neue', sans-serif;
  color: #34495e;
  text-transform: uppercase;
  font-size: 28px;
  letter-spacing: 0.3px;
}

.content h4 {
  margin: 20px 0 5px;
  font-family: 'Bebas Neue', sans-serif;
  color: #34495e;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.3px;
}

.content h5 { margin: 20px 0 8px; color: #337ab7; font-size: 16px; font-weight: 700; }

.content section { margin: 0 0 45px; }

.content ul { padding: 0; margin: 0 0 30px; list-style-type: none; }
.content ul li { margin: 0 0 10px; font-size: 13px; }

.content ul.squares li {
  width: 49%;
  height: 240px;
  margin: 0 0 20px;
  float: left;
  text-align: center;
  line-height: 240px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
}

.content ul.squares li:nth-child(2n) { float: right; }
.content ul.squares li a { width: 100%; display: inline-block; }
.content ul.squares li img { max-width: 80%; }

/* ============================================================
   FORMULÁRIO PEQUENO
   ============================================================ */
.content.small-form h3 { text-align: center; }

.content.small-form form {
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.content.small-form button { text-transform: uppercase; }

/* ============================================================
   FORM INLINE (FILTROS)
   ============================================================ */
.content .form-inline {
  padding: 20px 24px 24px;
  margin: 0 0 30px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fafafa;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}

.content .form-inline .form-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
}

.content .form-inline .form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.content .form-inline .form-group .form-control {
  font-size: 13px;
}

.content .form-inline .form-group.captcha {
  margin: 4px 0 0;
  flex-basis: 100%;
}

.g-recaptcha iframe { border: none; border-radius: 0; }

.content .form-inline > button,
.content .form-inline > .btn {
  text-transform: uppercase;
  font-size: 13px;
  align-self: flex-end;
  margin: 0;
}

.content .form-inline .loader { display: none; margin-left: 8px; vertical-align: middle; }

/* ============================================================
   BUSCA AVANÇADA
   ============================================================ */
.content .avancada { position: relative; top: -30px; display: none; }
.content .avancada .form-inline { position: relative; }
.content .avancada .glyphicon {
  position: absolute;
  right: 25px;
  bottom: 30px;
  top: auto;
  color: #c0392b;
  cursor: pointer;
}

/* ============================================================
   TABELAS INTERNAS
   ============================================================ */
.content.interna .table-responsive thead { background: #34495e; color: #fff; }
.content.interna .table-responsive thead th { font-size: 12px; letter-spacing: 0.3px; }
.content.interna .table-responsive tbody td { font-size: 12px; }
.content.interna .table-responsive .first  { width: 8%; }
.content.interna .table-responsive a       { color: #34495E; }
.content.interna .table-responsive .date   { width: 15%; text-align: center; }
.content.interna .table-responsive .download { width: 10%; text-align: center; }
.content.interna .table-responsive .view   { width: 5%;  text-align: center; }
.content.interna .table-responsive .print  { width: 10%; text-align: center; }
.content.interna .table-responsive .disabled { color: #e3e3e3; cursor: default; text-decoration: none; }
.content.interna .table-responsive tbody tr:nth-child(2n) { background: #f2f2f2; }

/* ============================================================
   PAGINAÇÃO (Bootstrap 5)
   ============================================================ */
.pagination .page-item.active .page-link {
  color: #fff !important;
  background: #34495E;
  border-color: #34495E;
}

/* ============================================================
   HTML EXTERNO
   ============================================================ */
.external-html h2 { font-family: 'Bebas Neue', sans-serif; color: #34495e; }
.external-html h2 a { padding: 0 15px; font-size: 20px; }
.external-html ul { padding: 0; list-style-type: none; }
.external-html ul li { padding: 10px; margin: 0 0 5px; background: #f9f9f9; }
.external-html ul li:nth-child(2n) { background: #ecf0f1; }

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 1199px) {
  .top-bar .top-menu li a { font-size: 11px; }
  .navbar-nav .nav-item .nav-link,
  .nav.navbar-nav > li > a { font-size: 15px; padding: 5px 3px; }
  .servicos .item { margin-bottom: 30px; }
  .servicos .item h3 { font-size: 25px; }
  .noticias .info { width: 75%; }
}

@media (max-width: 991px) {
  .navbar-brand { float: none; text-align: center; }
  .navbar-brand > img { display: inline-block; }
  .top-bar { display: none; }
  .navbar-nav { text-align: center; }
  .navbar-nav .nav-item { float: none; display: inline-block; }
  .navbar-nav .nav-item .nav-link { font-size: 18px; padding: 5px 1px; }
  .slider-bg .carousel { margin-bottom: 20px; }
  .servicos .item h3 { font-size: 22px; }
}

@media (max-width: 767px) {
  .slider-bg .right a:first-child { margin-bottom: 20px; }
  .noticias .info { width: 57%; }
  .noticias .info h3 { font-size: 23px; }
  .noticias .info .more { font-size: 17px; }
  .slider-bg .carousel-caption { padding: 5px 10px; bottom: 17%; }
  .slider-bg .carousel-caption h1 { font-size: 30px; }
}

@media (max-width: 480px) {
  .navbar-nav .nav-item { display: block; }
  .noticias .image { width: 100%; margin: 0 0 10px; }
  .noticias .image img { width: 100%; }
  .noticias .info { width: 100%; }
}

/* ============================================================
   END
   ============================================================ */