:root {
  --container-width: 1200px;
  --header-width: 100%;
  --content-width: 95%;
  --footer-width: 100%;
  --secondary-color: #f0f0f0;
  --page-background: #ffffff;
  --header-background: #f5f5f5;
  --footer-background: #f5f5f5;
  --text-color: #333;
  --font-family: 'Raleway', 'Montserrat', sans-serif;
}

.visually-hidden {
  display: none !important;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  background-color: var(--page-background);
  font-family: var(--font-family);
  color: var(--text-color);
  font-size: 16px;
}

#block-views-block-autoria-bloco-autorias-conteudo {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.equaliza-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: var(--header-background);
  max-width: var(--header-width);
  margin: 0 auto;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  text-align: center;
}

img.logo-equaliza-header {
  width: 150px;
  height: auto;
  margin: 20px 10px;
}

.equaliza-menu {
  list-style: none;
  padding: 0;
  margin: 10px 40px 10px 0px;
  display: flex;
  gap: 10px;
}

.equaliza-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 10px;
  transition: background 0.3s;
}

.equaliza-menu li a:hover {
  background: #eee;
  border-radius: 5px;
}

.equaliza-footer {
  text-align: center;
  padding: 20px;
  background-color: var(--footer-background);
  margin-top: 40px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  max-width: var(--footer-width);
}

img.logo-equaliza-footer {
  display: inline-block;
  width: 250px;
  margin-top: 10px;
}

.copyright {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}

h3 {
  background-color: #cce5ff;
  width: 100%;
  padding: 20px;
  text-align: center;
  margin: 20px 0 30px 0;
  font-size: 32px;
  font-weight: bold;
  color: #003366;
  box-sizing: border-box;
}

h4,
h5,
h6 {
  width: var(--content-width);
  margin: 30px auto 20px auto;
  text-align: center;
}

h4 {
  font-size: 20px;
}

h5,
h6 {
  font-size: inherit;
}

h6 {
  text-align: left !important;
}

p {
  margin: 0 auto 20px auto;
  width: var(--content-width);
}

/************************/
/*** Página Inicial ****/

/** Banner do início **/
.banner-inicio {
position: relative;
display: flex;
align-items: center;
justify-content: flex-start; /* Alinha conteúdo à esquerda */
border-radius: 12px;
padding: 32px;
color: white;
width: var(--content-width);
margin: 40px auto;
box-sizing: border-box;
overflow: hidden;
flex-wrap: wrap;
gap: 24px;
background-color: transparent;
}

/* Imagem de fundo — camada mais baixa */
.banner-inicio::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://site.trt19.jus.br/sites/default/files/bancoMidias/50877.jpg');
background-size: cover;
background-position: center 67%;
background-repeat: no-repeat;
z-index: 0;
border-radius: 12px;
transform: translateX(+7%);
}

/* Degradê azul — camada intermediária */
.banner-inicio::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, #0077cc 0%, #0077cc 10%, rgba(0, 119, 204, 0.6) 40%, transparent 100%);
z-index: 1;
pointer-events: none;
border-radius: 12px;
}

/* Conteúdo — camada superior */
.banner-inicio > * {
position: relative;
z-index: 3;
}

/* Texto */
.banner-inicio p {
width: auto;
max-width: none;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Melhora legibilidade */
}

.conteudo-banner {
flex: 1;
max-width: 60%;
}

.titulo-banner-inicio {
font-size: 1.8em;
font-weight: bold;
margin-bottom: 16px;
}

.texto-banner-inicio {
font-size: 0.9em;
margin-bottom: 20px;
}

/* Botão */
.botao-link {
display: inline-block;
padding: 10px 20px;
background-color: #ffffff;
color: #0077cc;
text-decoration: none;
border-radius: 6px;
font-weight: bold;
transition: background-color 0.3s ease, color 0.3s ease;
}

.botao-link:hover {
background-color: #0077cc;
color: #ffffff;
}

/** Lista Principal **/
ul.principal {
  width: var(--content-width);
  margin: 40px auto;
  background-color: #f0f8ff;
  list-style: none;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

ul.principal li {
  padding: 12px 20px;
  font-size: 16px;
}

ul.principal li+li {
  border-top: 4px solid #cce6ff;
}

/************************/
/**** Pagina Regioes */

/** Busca de Regiões **/

div.busca-regiao {
background-color: #f2f9ff;
margin: 50px 0;
width: 100%;
padding: 20px;
box-sizing: border-box;
color: #003366;
}

div.regiao-separador {
background-color: #d0e7ff;
height: 2px;
margin: 20px 30px;
border-radius: 1px;
}

div.regiao-form {
display: flex;
align-items: center;
gap: 10px;
}

div.regiao-form p:first-child {
flex: 0 0 auto; /* O primeiro parágrafo ocupa apenas o espaço necessário */
}

div.regiao-form p:last-child {
flex: 1; /* O segundo parágrafo ocupa o restante do espaço disponível */
}

div.regiao-form p,
div.regiao-info p {
margin: 30px 0 0 30px;
width: auto;
}

div.regiao-form strong {
white-space: nowrap;
}

div.regiao-form select {
margin-bottom: 10px;
}

div.busca-regiao select,
div.busca-regiao input {
background-color: #cce0ff;
border: none;
color: #003366;
padding: 10px;
border-radius: 10px;
font-size: 14px;
box-sizing: border-box;
}

div.busca-regiao select:focus,
div.busca-regiao input:focus {
outline: none;
border-color: #002244;
}

div.busca-regiao input {
padding: 10px 35px 10px 10px;
background-image: none; /* garante que não haja ícone padrão */
background-image: url('data:image/svg+xml;utf8,<svg fill="%23003366" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C8.01 14 6 11.99 6 9.5S8.01 5 10.5 5 15 7.01 15 9.5 12.99 14 10.5 14z"/></svg>');
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 16px 16px;
}

ul.sugestoes-lista {
list-style: none;
margin: 0;
padding: 0;
border-top: none;
max-height: 150px;
overflow-y: auto;
position: absolute;
background-color: white;
width: calc(100% - 20px);
z-index: 10;
border-radius: 0 0 10px 10px;
}

ul.sugestoes-lista li {
padding: 8px 10px;
cursor: pointer;
}

ul.sugestoes-lista li:hover {
background-color: #e0f0ff;
}

/** Quadro de Destaque **/
div.quadro {
background-color: #e6f2ff;
border-radius: 8px;
padding: 12px 32px;
width: var(--content-width);
margin: 0 auto 30px auto;
box-sizing: border-box;
}

div.quadro p {
width: 100%;
margin: 0 0 20px 0;
}

div.quadro h4,
div.quadro h5,
div.quadro h6 {
  width: 100%;
  margin: 20px auto 20px auto;
}

div.quadro ul,
div.quadro ol {
padding-left: 0;
margin-left: 0;
list-style-position: inside;
}

/** Tabela de Regiões **/
table.regioes {
border-collapse: separate;
border-spacing: 4px;
width: 100%;
margin: 0 auto 30px auto;
border-radius: 8px;
overflow: hidden;
box-sizing: border-box;
text-align: center;
font-size: 16px;
}

table.regioes td,
table.regioes th {
padding: 12px;
border-radius: 6px;
}

/* Primeira linha em negrito */
table.regioes tr:first-child th,
table.regioes tr:first-child td {
font-weight: bold;
}

/* Primeira coluna em negrito */
table.regioes td:first-child,
table.regioes th:first-child {
font-weight: bold;
}

/* Cores por coluna */
table.regioes td:nth-child(1),
table.regioes th:nth-child(1) {
background-color: #f2f2f2;
}

table.regioes td:nth-child(2),
table.regioes th:nth-child(2) {
background-color: #fafa96;
}

table.regioes td:nth-child(3),
table.regioes th:nth-child(3) {
background-color: #bbdefb;
}

table.regioes td:nth-child(4),
table.regioes th:nth-child(4) {
background-color: #c8e6c9;
}

table.regioes td:nth-child(5),
table.regioes th:nth-child(5) {
background-color: #ffccbc;
}

table.regioes p {
margin: 0;
width: 100%;
}

/** Mapas **/
.titulo-mapas {
  background-color: #99c2ff;
  color: #004085;
  padding: 20px 30px 20px 30px;
  border-radius: 50px;
  width: fit-content;
  display: block;
  font-weight: bold;
  margin-bottom: 15px;
}

.mapa-descricao {
  background-color: #e6f2ff;
  color: #004085;
  padding: 15px 25px 15px 25px;
  border-radius: 40px;
  width: fit-content;
  display: block;
  font-size: 1em;
  margin: 20px auto 30px auto;
  text-align: center;
}

/************************/
/**** Bloco QR Code */

/** Seção do QR Code **/
.bloco-qr-code {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #0077cc;
color: white;
border-radius: 12px;
padding: 24px;
width: var(--content-width);
margin: 140px auto 30px auto;
box-sizing: border-box;
gap: 24px;
flex-wrap: wrap;
}

.bloco-qr-code p {
width: auto;
max-width: none;
}

.texto-bloco-qr-code {
flex: 1;
min-width: 250px;
}

.titulo-bloco-qr-code {
font-size: 1.6em;
font-weight: bold;
margin-bottom: 16px;
}

.texto-bloco-qr-code p.texto-bloco-qr-code {
font-size: 0.9em;
margin-bottom: 16px;
}

/* Botão dentro de <p> */
.botao-link {
display: inline-block;
background-color: #4caf50;
color: white;
text-decoration: none;
border-radius: 8px;
padding: 10px 20px;
font-size: 1em;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}

.botao-link:hover {
background-color: #43a047;
}

/* Imagem dentro de <p> */
.bloco-qr-code p img.q2-code {
max-width: 160px;
height: auto;
border-radius: 8px;
flex-shrink: 0;
}

/************************/
/**** Página Sobre */

/** Cards **/
.container-cards-carrousel {
-webkit-overflow-scrolling: touch;
width: var(--content-width);
margin: 0 auto 40px auto;
box-sizing: border-box;
}

.cards-carrousel{
margin-left: -8px;
margin-right: -8px;
padding: 16px 0;
}

.cards-carrousel div{
margin: 0px 4px;
}

.cards-carrousel h5{
margin-top: 0;
}

.cards-carrousel p{
font-size: 14px;
margin-bottom: 10px;
text-align: center;
}

.cards-carrousel-icon{
width: 100px;
justify-self: center;
}

.cards-carrousel-content{
padding: 16px 0;
}

.cards_carrousel-icon-wrapper{
display: flex;
justify-content: center;
}

.cards-carrousel div.slick-slide div.cards-carrousel-wrapper-gray{
background: #f0f0f0;
background: linear-gradient(180deg, rgba(240, 240, 240, 1) 0%, rgba(222, 222, 222, 1) 50%, rgba(189, 189, 189, 1) 100%);
border-radius: 12px;
height: 100%;
}

.cards-carrousel .slick-track {
display: flex !important;
align-items: stretch; /* Ensures items stretch to fill the available height */
}

.cards-carrousel .slick-slide {
height: inherit !important; /* Makes the slide inherit height from its parent (slick-track) */
}

.cards-carrousel .slick-slide .card-content { /* Assuming you have a content wrapper inside each card */
display: flex;
flex-direction: column;
flex-grow: 1; /* Allows the content to grow and fill the available space */
}

.cards-carrousel .slick-dots {
bottom: -36px !important;
}

/** Conteudo pagina Sobre */
div.sobre {
  margin-bottom: 60px;
}

div.sobre img {
  width: 100%;
  max-width: 300px;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}

img.direita {
  float: right;
  margin: 0 0 10px 15px;
  height: auto;
}

img.esquerda {
  float: left;
  margin: 0 15px 10px 0;
  height: auto;
}

/************************/
/***** Página FAQ *****/

.quadro.faq {
  border-radius: 0px;
  padding-bottom: 0;
}

.quadro.faq.aberto {
padding-bottom: 10px;
}

.quadro.faq h6 {
  background-color: #4A90E2; /* azul médio, legível com texto preto */
  padding: 12px 16px;
  margin: -12px 0 20px -32px; /* compensa o padding da div */
  font-weight: bold;
  font-size: 1rem;
  width: calc(100% + 64px); /* compensa o padding da div */
  box-sizing: border-box;
  cursor: pointer;
}

.quadro.faq h6::after {
content: '+';
font-weight: bold;
float: right;
}
.quadro.faq.aberto h6::after {
content: '–';
}

.quadro.faq p {
display: none;
padding: 0;
transition: padding 0.3s ease;
}

.quadro.faq p.visivel {
display: block;
padding: 10px;
}

/** Responsividade **/

/** Tablet grande - desktop pequeno **/
@media (max-width: 768px) {
  .conteudo-banner {
    max-width: 80%;
  }

  .titulo-banner-inicio {
    font-size: 1.4em;
  }

  .texto-banner-inicio {
    margin-left: 0;
    width: 80% !important;
  }

  p.link-bloco-qr-code {
    text-align: center;
  }

  div.regiao-form {
    flex-direction: column; 
    gap: 15px; 
  }
  
}

/** Mobile e Tablet menor **/
@media (max-width: 660px) {
  .equaliza-header {
      max-width: var(--content-width);
      flex-direction: column;
      align-items: center;
  }

  .equaliza-menu {
      flex-direction: column;
      align-items: center;
      width: 100%;
      margin: 10px 0 0 0;
  }

  .equaliza-menu li {
      margin-bottom: 10px;
  }

  .conteudo-banner {
    max-width: 100%;
  }
}