@import url("grid.css");
@import url("../../../contraste.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');


/* ==========================================================================
   BASE
   ========================================================================== */

body {
  background: #eef1f5;
  color: #333333;
  font-family: 'Inter', "Trebuchet MS", sans-serif;
  font-size: 120%;
}

p {
  line-height: 1.4em;
}

h1 {
  color: #1a3a64;
  border: none;
  margin-bottom: 0;
  font-size: 2.5em;
}

h2 {
  color: #1a3a64;
}

.clear {
  clear: both;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #eef1f5;
}

::-webkit-scrollbar-thumb {
  background: #25528c;
  border-radius: 3px;
}


/* ==========================================================================
   LINKS
   ========================================================================== */

a:link,
a:visited,
#content a:link,
#content a:visited {
  color: #10233b;
}

a:hover,
#content a:hover,
dl.portlet a:hover {
  color: #1a3a64 !important;
}

.state-published {
  color: #10233b !important;
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */

#wrapper {
  padding: 0;
}

#main {
  margin: 0 auto;
  max-width: 96%;
  position: relative;
}

/* Oculta colunas laterais */
#column-one,
#column-two {
  visibility: hidden !important;
  overflow: hidden !important;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

header {
  background: transparent;
  background-position: center center;
  color: #ffffff;
  float: left;
  width: 100%;
}

header a:link,
header a:visited {
  color: #ffffff;
}

header a:hover {
  color: #e6e6e6;
}

#portal-top {
  display: flex;
  align-items: center;
}

/* Logo */
#portal-logo {
  background: url("img/logo_camara_branca.png") no-repeat left center;
  background-size: contain;
  width: 360px;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin: 0 1.5em;
  float: left;
}

#portal-logo img {
  opacity: 0;
  width: 90px;
  height: 90px;
}

/* Título junto ao logo */
#portal-logo span,
#portal-logo-title,
header h1,
header .site-title {
  display: inline-flex;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-left: 110px;
}

/* Oculta título e descrição gerados pelo Plone */
#portal-site-title,
.siteTitle,
#siteTitle,
#portal-site-description,
.siteDescription,
#siteDescription {
  display: none !important;
}

/* Personal tools */
#portal-personaltools {
  background: #1a3a64;
}

#portal-personaltools dd a:hover {
  background: #25528c;
}

/* Site actions */
#portal-siteactions {
  text-align: right;
  margin-right: 1em;
  font-size: 80%;
}

#portal-siteactions a:before {
  font-family: FontAwesome;
  font-size: 1em;
  margin-right: 0.3em;
}

#siteaction-contact a:before    { content: "\f0e0"; }
#siteaction-sitemap a:before    { content: "\f0e8"; }
#siteaction-accessibility a:before { content: "\f118"; }
#siteaction-search a:before     { content: "\f002"; }
#siteaction-login a:before      { content: "\f090"; }
#siteaction-contraste a:before  { content: "\f042"; }
#siteaction-vlibras a:before    { content: "\f087"; }

#portal-siteactions li#siteaction-accessibility {
  width: 17px;
}

#portal-siteactions li a:hover {
  color: #e6e6e6;
}

/* Campo de busca */
#portal-searchbox {
  margin: 1.5em;
  position: relative;
}

#portal-searchbox input {
  border-radius: 0;
}

#portal-searchbox input.searchField {
  min-width: 20em;
  width: 100%;
  height: 30px;
  border: none;
  text-indent: 1em;
  line-height: 30px;
  padding-right: 40px;
  box-sizing: border-box;
}

.searchButton {
  border-radius: 4px;
  border: none;
  padding: 0.4em 0.7em;
  background: #1a3a64;
  color: #ffffff;
  cursor: pointer;
}

#portal-searchbox .searchButton {
  font-family: FontAwesome;
  position: absolute;
  right: 0;
  border-radius: 0;
  height: 30px;
  width: 30px;
}


/* ==========================================================================
   NAVEGAÇÃO PRINCIPAL
   ========================================================================== */

#main-navigation {
  background: rgba(37, 82, 140, 0.95);
  color: #ffffff;
  margin: 0;
  clear: both;
  position: relative;
}

#main-navigation > ul {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 18px 0 !important;
  list-style: none !important;
  text-align: center !important;
}

#main-navigation li {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  margin: 0 6px;
}

#main-navigation li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 20px !important;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}

/* Sublinhado animado no hover */
#main-navigation li > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 1px;
}

#main-navigation li > a:hover::after {
  transform: scaleX(1);
}

#main-navigation li a:link,
#main-navigation li a:visited {
  color: #ffffff;
  font-size: 100%;
}

#main-navigation li a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Separador entre itens */
#main-navigation li::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  margin: auto;
  background-color: #ffffff;
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

#main-navigation li:last-child::after {
  display: none;
}

/* Submenu */
#main-navigation .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin-top: 0;
  padding: 8px 0;
  list-style: none;
  background: rgba(37, 82, 140, 0.97);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;
}

#main-navigation li:hover > .submenu {
  display: block;
}

#main-navigation .submenu li {
  position: relative;
  display: block !important;
}

#main-navigation .submenu a,
#main-navigation .submenu a:link,
#main-navigation .submenu a:visited,
#main-navigation .submenu li a,
#main-navigation .submenu li a:link,
#main-navigation .submenu li a:visited {
  color: #ffffff !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding: 12px 18px !important;
  display: block !important;
  text-decoration: none !important;
  border-radius: 0 !important;
}

#main-navigation .submenu li > a::after {
  display: none !important;
}

#main-navigation .submenu a:hover,
#main-navigation .submenu li a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

/* Ponte invisível para não fechar ao mover o mouse */
#main-navigation li::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 9998;
}

#main-navigation .submenu .submenu {
  left: 100%;
  top: 0;
  margin-top: 0;
  margin-left: 4px;
}

/* Botão menu mobile */
.menu-button {
  background: #25528c;
}

.menu-button button {
  border-color: white;
  background: none;
  color: white;
}

.menu-button > button:hover {
  background: #1a3a64 !important;
}

.menu-button > button.menuAtivo {
  background: #1a3a64;
}


/* ==========================================================================
   BANNER
   ========================================================================== */

.cover-banner-tile {
  margin-top: 1.5em;
  margin-bottom: 2em;
  border-radius: 16px;
  overflow: hidden;
  position: relative;

  /* Sombra em camadas — dá profundidade real */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.16);
}

/* Gradiente na base mais intenso */
.cover-banner-tile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
}

.cover-banner-tile img {
  width: 100%;
  height: auto;
  display: block;
  float: none;
  margin: 0;
  transition: transform 0.5s ease;
}

.cover-banner-tile:hover img {
  transform: scale(1.015);
}


/* ==========================================================================
   CONTEÚDO
   ========================================================================== */

#portal-breadcrumbs {
  margin: 1.2em 2%;
  font-size: 80%;
  clear: both;
  display: inline-block;
}

.section-front-page #portal-breadcrumbs {
  visibility: hidden;
}

#content {
  margin: 0;
}

#content .documentDescription,
#content #description {
  color: #4d4d4d;
  font-weight: normal;
  margin-bottom: 1em;
}

/* Títulos de tiles com linha decorativa */
.tile-header h2,
.tile-content h2,
.documentFirstHeading {
  margin-bottom: 0.8em;
  position: relative;
  padding-bottom: 0.4em;
}

.tile-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: #047BC1;
  border-radius: 2px;
}


/* ==========================================================================
   CARDS DE NOTÍCIAS
   ========================================================================== */

.tile-noticias .cover-collection-tile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.tile-noticias .tile-header,
.tile-noticias .tile-footer,
.tile-noticias .visualClear {
  width: 100%;
  flex: 0 0 100%;
}

.tile-noticias .collection-item {
  flex: 0 0 calc(33.333% - 1.5em);
  width: calc(33.333% - 1.5em);
  margin: 0 0.75em 1.5em 0.75em;
  background: #ffffff;
  border-radius: 8px;
  border-top: 3px solid transparent; /* transparente por padrão */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: none;
  padding-bottom: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
  float: none;
}

.tile-noticias .collection-item:hover {
  transform: translateY(-6px); /* subiu mais */
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.14),
    0 24px 48px rgba(0, 0, 0, 0.10);
  border-top-color: #047BC1; /* aparece só no hover */
}

.tile-noticias .collection-item a img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.tile-noticias .collection-item h3 {
  padding: 0.5em 0.8em 0.2em 0.5em;
  margin: 0;
}

.tile-noticias .collection-item h3 a {
  color: #1a3a64;
  text-decoration: none;
}

.tile-noticias .collection-item h3 a:hover {
  color: #25528c;
}

.tile-noticias .collection-item p:not(.description) {
  padding: 0 0.8em 0.5em 0.8em;
  margin: 0;
  font-size: 0.85em;
  color: #888;
}

.tile-noticias .collection-item p.description {
  padding: 0.3em 0.8em 0.8em 0.8em;
  margin: 0;
  font-size: 100%;
}

/* Botão "Mais notícias" */
#content .tile-noticias .tile-footer a {
  float: right;
  padding: 1.075em 1.2em;
  background-color: #1a3a64;
  color: #ffffff !important;
  font-weight: bold;
  text-transform: uppercase;
  transition: all ease-out 0.1s;
  border-radius: 6px;
  letter-spacing: 0.05em;
  font-size: 0.85em;
}

#content .tile-noticias .tile-footer a:hover {
  background: #25528c;
  color: #fff !important;
}


/* ==========================================================================
   PORTLETS
   ========================================================================== */

.portlet {
  margin-bottom: 2em;
}

.portletHeader,
dl.portlet dt.portletHeader {
  border-bottom: #d8d8d8 1px solid;
  font-weight: bold;
  background-color: #1a3a64;
  color: #fff;
  padding: 0;
}

.portletHeader a,
dl.portlet dt.portletHeader a {
  color: #fff;
  transition: all ease-out 0.1s;
}

.portlet .portletHeader > a,
.portlet .portletHeader > span:nth-child(2) {
  display: block;
  color: #fff;
  padding: 0.7em 1em;
  font-size: 1em;
}

.portlet .portletHeader > a:hover {
  background: #25528c;
  color: #fff !important;
}

aside dl,
aside dd,
aside ul {
  padding: 0;
  margin: 0;
}

aside a {
  text-decoration: none;
}

.portletNavigationTree ul {
  margin: 0;
}

.portletNavigationTree li {
  list-style-position: inside;
}

.portlet.portletNavigationTree .navTree .navTreeItem {
  margin: 0;
}

.portlet.portletNavigationTree .navTreeLevel0 > .navTreeItem {
  padding: 0;
}

.portlet.portletNavigationTree .navTree > .navTreeItem {
  border-bottom: rgba(26, 58, 100, 0.05) 1px solid;
  list-style: none;
}

.portlet.portletNavigationTree .navTreeLevel1 .navTreeItem {
  padding-left: 1em;
}

.portlet.portletNavigationTree .navTreeLevel1 .navTreeItem:last-of-type {
  border-bottom: none;
}

.portlet.portletNavigationTree .navTree .navTreeItem a {
  display: block;
  padding: 0.8em 1em;
  border-left: 0px solid transparent;
  transition: all ease-out 0.1s;
  line-height: initial;
}

.portlet.portletNavigationTree .navTree .navTreeItem a:hover {
  border-left: 5px solid #25528c;
  background-color: rgba(26, 58, 100, 0.05);
}

.portlet.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem {
  border-left: 5px solid #25528c;
  background-color: rgba(26, 58, 100, 0.2);
}

dl.portlet ul.navTree .navTreeCurrentItem {
  border-left: none;
  margin: 0;
}

.navTreeLevel2 a { padding-left: 1em; }
.navTreeLevel3 a { padding-left: 2em; }
.navTreeLevel4 a { padding-left: 3em; }
.navTreeLevel5 a { padding-left: 4em; }
.navTreeLevel6 a { padding-left: 5em; }


/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  border-top: #d8d8d8 1px solid;
  margin-top: 2em;
  font-size: 80%;
  background: #25528c;
  color: #ffffff;
}

footer a {
  color: #ffffff !important;
}

footer p {
  margin-bottom: 2em;
}

.footer-item {
  padding: 0 2%;
}

#footer-info {
  padding-top: 3em;
}

#footer-colophon {
  padding: 1.5rem 0;
  font-size: 0;
  text-align: center;
  background-color: #1a3a64;
}

.colophon-item {
  display: inline-block;
  max-width: 46%;
  padding: 0 2%;
  vertical-align: top;
  position: relative;
}

.colophon-item:first-child::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 1px;
  background-color: #fff;
  right: 0;
  top: 0;
}

.colophon-item a {
  font-weight: 700;
}

.colophon-item img {
  height: 32px;
}

.colophon-info {
  font-size: 11px;
  margin-top: 1em;
}

.colophon-logo {
  height: 40px;
}


/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (min-width: 768px) and (max-width: 979px) {
  /* reservado para ajustes futuros */
}

@media (max-width: 767px) {

  header {
    margin-bottom: 1em;
  }

  #column-one {
    border-color: #25528c;
  }

  dl.portlet ul.navTree .navTreeCurrentItem {
    border-color: #1a3a64;
  }

  dl.portlet ul.navTree li a:hover {
    border-color: #25528c;
  }

  #portal-logo {
    display: inline-block;
    font-size: 90%;
  }

  #portal-logo.has-title img {
    display: none;
  }

  #main-navigation ul {
    box-sizing: border-box;
    padding: 0 0.5em 0 0;
    text-align: center;
    float: none;
    width: 100%;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #main-navigation ul::after {
    content: '';
    background-image: linear-gradient(to right, transparent, rgba(26, 58, 100, 0.9) 80%);
    height: 43px;
    position: absolute;
    pointer-events: none;
    right: 0;
    top: 0;
    width: 2.2em;
    z-index: 10;
  }

  #main-navigation li {
    float: none;
  }

  #main-navigation li a:link {
    padding: 1.2em 1.5em;
    line-height: 1;
  }

  #portal-searchbox {
    margin-top: 0;
    float: none;
    text-align: center;
    clear: both;
    font-size: 80%;
  }

  .colophon-item {
    max-width: 96%;
    margin: 1.5rem 2%;
  }

  .cover-banner-tile {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .tile-noticias .collection-item {
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .tile-noticias .collection-item {
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Alterações Post Plone */

/* Submenu */
#main-navigation .submenu,
#main-navigation .submenu li,
#main-navigation .submenu a,
#main-navigation .submenu a:link,
#main-navigation .submenu a:visited,
#main-navigation .submenu a:hover {
    background: #25528c !important;
    color: #ffffff !important;
}

/* Main */
.section-front-page #content {
  margin-left: -16%;
  margin-right: -16%;
}

