/* === Estilos Globais === */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    font-size: 100%;
}

header, footer {
    background-color: #fff;
    color: #06661e;
    text-align: center;
    padding: 10px 5px;
}


.header-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza horizontalmente */
    gap: 20px;
    flex-wrap: wrap;
    text-align: left; /* Opcional: centraliza os textos do lado direito */
    padding: 20px 10px;
    background-color: #f8f9fa;
}

.logo-header {
    height: 80px;
    width: auto;
}

.titulo-header strong {
    display: block;
    font-size: 1.2em;
    margin-top: 5px;
}

.titulo-header p {
    font-size: 0.9em;
    margin: 5px 0 0;
}


.barra-breadcrumbs {
  background-color: #e9ecef;
  padding: 10px 20px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}



h1 {
    margin: 0;
}

strong {
    margin: 0;
}

p {
    margin: 0;
}

h3 {
    background: linear-gradient(to right, #27680d, #30a148);
    color: white;
    padding: 14px 32px 14px 24px;
    border-radius: 8px 8px 0 0;
    font-size: 1.2em;
    margin: 0 0 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    flex: 0 0 95%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    animation: fadeInDown 0.6s ease both;
}

h3::before {
    content: "\f0f6"; /* Font Awesome icon: file-alt */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.1em;
    display: inline-block;
    margin-right: 8px;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    padding: 20px;
    max-width: 1100px;
    margin: auto;
}

.intro {
    display: flex;
    justify-content: center;
    background-color: white;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* === Links como Cards === */
section a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 10px;
    margin: 10px;
    color: #004080;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: 0 1 calc(20% - 20px);
    box-sizing: border-box;
    animation: fadeInUp 0.4s ease both;
    font-size: 0.95em;
}

section a::before {
    content: "\f187"; /* Font Awesome icon: file */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.5em;
    margin-bottom: 8px;
    color: #004080;
}

section a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #0066cc;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Breadcrumbs e Acessibilidade === */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e1ecf4;
    padding: 10px 20px;
    font-size: 0.95em;
}

#breadcrumbs a {
    color: #f82601;
    text-decoration: underline;
    font-size: 0.95em;
}

#breadcrumbs p {
    color: #059e19;
    font-weight: 600;
    display: inline;
}

/* === Ícone de localizador no breadcrumb === */
#breadcrumbs::before {
  content: "\f3c5";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #198754;
}


.barra-acessibilidade {
  background-color: #cff1c8;
  padding: 6px 16px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.grupo-esquerda,
.grupo-direita {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}


#accessibility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

#accessibility-bar .access-btn:hover {
  background-color: #084298;
}


.access-btn,
.access-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
/* Botões */
.access-btn {
  background-color: #cff1c8;
  border: none;
  color: #198754;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  cursor: pointer;
}

.access-btn:hover {
  background-color: #198754;
  color: white;
}

/* Links com ícone + texto */
.access-link {
  background-color: #cff1c8;
  color: #198754;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  cursor: pointer;
}

.access-link:hover {
  background-color: #198754;
  color: white;
}



/* Responsivo */
@media (max-width: 600px) {
  .barra-acessibilidade {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .grupo-esquerda,
  .grupo-direita {
    justify-content: center;
  }
}

/* === Iframe === */
#iframe-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

iframe {
    width: 100%;
    border: none;
}

/* === Contato === */
#contato {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    background-color: #cff1c8;
    color: #0e0f0e;
    padding: 40px 30px;
    border-top: 5px solid #144416;
    text-align: left;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#contato img {
    grid-column: 1 / -1;
    max-width: 150px;
    display: block;
    margin: 0 auto 20px auto;
}

#contato h2 {
    margin: 5px 0;
    font-size: 1em;
    color: #123617;
    font-weight: 600;
}

#contato p {
    margin: 0 0 10px;
    font-size: 0.8em;
    color: #123617;
}

/* === Alto Contraste === */
.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast .header-container {
    background: #000;
    color: #fff;
}

.high-contrast .barra-breadcrumbs {
  background-color: #000;
  color: #ff0;
  padding: 10px 20px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.high-contrast .intro {
    color: #ff0 !important;
    background-color: #7e7d7d !important;
}

.high-contrast #atosnormativos {
    color: #ff0 !important;
    background-color: #000 !important;
}

.high-contrast p {
    color: #fff !important;
}

.high-contrast a {
    color: #ff0 !important;
    background-color: #000 !important;
    border: 2px solid #ff0;  /* Cor da borda */
    border-radius: 10px;        /* Arredondamento dos cantos */
}

.high-contrast h2 {
    color: #fff !important;
    
}

.high-contrast h3 {
    color: #fff !important;
    background: #383838 !important;
}

.high-contrast strong {
    color: #fff !important;
    background: #000 !important;
}

.high-contrast footer {
    color: #fff !important;
    background: #2e2d2d !important;
}

.high-contrast footer p {
    color: #fff !important;
    background: #2e2d2d !important;
}

.high-contrast footer h2 {
    color: #fff !important;
    background: #2e2d2d !important;
}

.high-contrast .access-btn {
    background-color: #000 !important;
    color: #ff0 !important;
    border: 1px solid #ff0;
}

.high-contrast section a::before {
    color: #ff0 !important;
}

.high-contrast header {
    color: #fff !important;
    background: #4d4d4d !important;
}

.high-contrast section {
    color: #fff !important;
    background: #7e7d7d !important;
}

.high-contrast #breadcrumbs a {
    color: #ff0;
}

.high-contrast #breadcrumbs p {
    color: #fff;
}

.high-contrast .top-bar {
    background: #383838;
}


/* === Rodapé === */
footer p {
    margin: 0;
    font-size: 0.9em;
}

#voltar-topo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0f8322;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: none;
  transition: background-color 0.3s ease;
}

#voltar-topo:hover {
  background-color: #089855;
}




/* === Navbar Interna === */
.navbar {
  position: sticky;
  top: 0;
  background-color: #144416;
  padding: 10px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.navbar a:hover {
  background-color: #198754;
}

/* === Estilo da barra de busca === */
.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  gap: 10px;
}

.search-bar input {
  padding: 10px;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-bar button {
  padding: 10px 20px;
  background-color: #198754;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: #145c32;
}

/* === Destaque visual na busca === */
.highlight {
  animation: fadeHighlight 0.4s ease-in-out;
  background-color: #eaffea;
}

@keyframes fadeHighlight {
  0% { background-color: #ffffcc; }
  100% { background-color: #eaffea; }
}

