:root {
  --site-bg: #f8fafc;
  --site-surface: #ffffff;
  --site-text: #1e293b;
  --site-muted: #64748b;
  --site-primary: #f15a24; /* Fortaleza Orange */
  --site-primary-dark: #c8461b;
  --site-secondary: #009688; /* Fortaleza Teal */
  --site-accent: #00a2ce; /* Fortaleza Blue */
  --site-border: #cbd5e1;
  --site-shadow: 0 10px 25px rgba(241, 90, 34, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.pesquisa-template {
  margin: 0;
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

/* CabeÃƒÂ§alho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.site-header__top {
  background-color: var(--site-secondary);
  color: #ffffff;
  font-size: 13px;
  height: 36px;
  display: flex;
  align-items: center;
}

.site-header__top-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: flex-end;
}

.site-header__top-inner ul.acessibilidade {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
}

.site-header__top-inner ul.acessibilidade li {
  font-weight: 500;
}

.site-header__top-inner ul.acessibilidade li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: opacity 0.2s ease;
}

.site-header__top-inner ul.acessibilidade li a:hover {
  opacity: 0.85;
}

.site-header__main {
  background-color: var(--site-primary);
  position: relative;
  overflow: hidden;
}

.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  min-height: 86px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.site-brand {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  max-width: 760px;
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.95;
}

.site-brand img,
.site-brand__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.site-brand__image {
  flex: 1 1 0px;
  width: min(117px, 38vw);
}

.site-brand__text {
  display: grid;
  gap: 2px;
  min-width: 180px;
}

.site-brand__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #ffffff;
  text-transform: uppercase;
}

.site-brand__tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav .mod-menu a {
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .mod-menu a:hover,
.site-nav .mod-menu a:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-nav__button {
  background: #ffffff !important;
  color: var(--site-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.site-nav__button:hover,
.site-nav__button:focus {
  background: #fbfdff !important;
  color: var(--site-primary-dark) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.site-nav .mod-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Blocos Decorativos do Topo */
#blocos-topo {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 86px;
  background-color: #fbe6d1;
  z-index: 1;
}

#topo-azul {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 48px;
  background-color: var(--site-accent);
  z-index: 2;
}

#topo-laranja {
  position: absolute;
  top: 48px;
  left: 0;
  width: 40px;
  height: 38px;
  background-color: var(--site-primary);
  z-index: 2;
}

#topo-verde {
  position: absolute;
  top: 48px;
  left: 40px;
  width: 65px;
  height: 38px;
  background-color: var(--site-secondary);
  z-index: 1;
}

.site-top {
  max-width: 1160px;
  margin: 24px auto 0;
  padding: 0 22px;
}

.site-main {
  width: 100%;
  min-height: calc(100vh - 180px);
}

.site-main > .alert,
.site-main > #system-message-container {
  max-width: 1160px;
  margin: 2px auto;
  padding: 0 22px;
}

/* RodapÃƒÂ© */
.site-footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 0;
  position: relative;
  text-align: center;
  font-size: 14px;
}

#blocos-rodape {
  width: 100%;
  height: 6px;
  display: flex;
}

#rodape-azul {
  flex: 1;
  height: 100%;
  background-color: var(--site-accent);
}

#rodape-laranja {
  flex: 1;
  height: 100%;
  background-color: var(--site-primary);
}

#rodape-verde {
  flex: 1;
  height: 100%;
  background-color: var(--site-secondary);
}

.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand__name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-brand__tagline {
  font-size: 12px;
  color: #94a3b8;
}

.footer-info {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.footer-info p {
  margin: 4px 0;
}

/* PÃƒÂ¡ginas de Erro */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.error-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  padding: 40px 34px;
  text-align: center;
}

.error-code {
  color: var(--site-primary);
  display: block;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
}

.error-card h1 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.error-card p {
  color: var(--site-muted);
  margin: 0 0 24px;
}

.error-button {
  background: var(--site-primary);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(241, 90, 34, 0.2);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.error-button:hover,
.error-button:focus {
  background: var(--site-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 860px) {
  .site-header__inner {
    align-items: center;
    flex-direction: column;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .site-brand {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    justify-content: center;
    text-align: left;
  }

  .site-nav {
    justify-content: center;
    width: 100%;
    padding-right: 0;
  }

  #blocos-topo {
    display: none !important;
  }
}

@media (min-width: 861px) and (max-width: 1450px) {
  .site-nav {
    padding-right: 150px;
  }
}
