@import url("grid.css");
@import url("../../../contraste.css");
/********** Basic styles **********/
body {
  background: #cfd0d3;
  color: #333333;
  font-family: 'Open Sans', "Helvetica Neue", Arial, FreeSans, sans-serif;
}
a:link,
a:visited,
#content a:link,
dl.portlet a:link, 
#content a:visited,
dl.portlet a:visited {
  color: #1d2d6b;
  transition: color 0.2s ease;
}
.state-published {
  color: #000000 !important;
}
a:hover {
  color: #1d2d6b;
}
#content a:hover,
dl.portlet a:hover {
  color: #283e93 !important;
  /* Unfortunatelly is necessary with sunburst */

}
.clear {
  clear: both;
}

input[type="submit"] {
    color: #fff !important;
    background: #1d2d6b;
    padding: 0.6em 1.2em;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
}
input[type="submit"]:hover {
    color: #fff;
    background-color: #131d45;
}

/********** Main container **********/
#wrapper {
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.45);
}
#main {
  margin: 0 auto;
  max-width: 96%;
}
/********** Header **********/
header {
  background-color: #051428;
  color: #ffffff;
  margin: 0px auto;
  max-width: 100%;
}
header a:link,
header a:visited {
  color: #ffffff;
}
header a:hover {
  color: #283e93;
}

/* =====================================================
    HEADER ATUALIZADO
   ===================================================== */
header {
    background-color: #051428;
    color: #ffffff;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    min-height: 210px;
}

/* Logo no centro, acima do menu */
#portal-logo {
    position: absolute;
    left: 50%;
    top: 45px;
    transform: translateX(-50%);
    float: none !important;
    margin: 0 !important;
    z-index: 10;
}

#portal-logo img {
    max-height: 90px;
    width: auto;
}

/* Menu fixado abaixo da logo */
nav,
#main-navigation {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    clear: both;
    z-index: 5;
}

/* Link Acessar alinhado com os links de acessibilidade */
#portal-personaltools {
    position: absolute;
    top: 2px;
    right: 600px;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 21;
}

#portal-personaltools ul,
#portal-personaltools li,
#portal-personaltools dt,
#portal-personaltools dd {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#portal-personaltools a {
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-size: 80%;
    line-height: 1;
}

#portal-personaltools a:hover {
    color: #283e93 !important;
    background: transparent !important;
}

/* Links de acessibilidade no canto superior direito */
#portal-siteactions {
    position: absolute;
    top: 8px;
    right: 20px;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20;

    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 12px;

    font-size: 80%;
    text-align: right;
}

/* Itens da lista em linha */
#portal-siteactions li {
    width: auto !important;
    display: inline-flex !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: center;
}

/* Links de acessibilidade */
#portal-siteactions li a {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap !important;
    padding: 0 !important;
    text-decoration: none !important;
}

/* Ícones dos links de acessibilidade */
#portal-siteactions a:before {
    display: inline-block !important;
    width: auto !important;
    margin-right: 6px !important;
    font-family: FontAwesome !important;
    font-weight: normal !important;
    font-size: 1em;
    line-height: 1;
}

/* Ícones específicos */
#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-contraste a:before {
    content: "\f042";
}

#siteaction-vlibras a:before {
    content: "\f087";
}

/* Remove largura fixa que causa encavalamento */
#portal-siteactions li#siteaction-accessibility,
#portal-siteactions li#siteaction-contact,
#portal-siteactions li#siteaction-sitemap,
#portal-siteactions li#siteaction-search,
#portal-siteactions li#siteaction-contraste,
#portal-siteactions li#siteaction-vlibras {
    width: auto !important;
}

#portal-siteactions li a:hover {
    color: #283e93 !important;
}

/* search */

.searchButton {
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
  border: none;
  padding: 0.4em 0.7em;
  background: #1d2d6b;
  color: #ffffff;
  cursor: pointer;
}

#portal-searchbox {
  position: absolute !important;
    top: 45px;          /* desce a caixa de pesquisa */
    right: 20px;        /* mantém alinhada à direita */
    margin: 0 !important;
    z-index: 15;
    display: flex;
    align-items: center;
}

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


/* -------- atualizado */

#portal-searchbox input.searchField {
    min-width: 28em;      /* era 20em */
    width: 100%;
    height: 38px;         /* era 30px */

    text-indent: 1em;
    line-height: 38px;
    padding-right: 45px;

    box-sizing: border-box;

    /* Bordas arredondadas */
    border-radius: 20px;

    /* Borda mais suave */
    border: 1px solid #bfc7d1;
}

#portal-searchbox .searchButton {
  font-family: 'Open Sans', "Helvetica Neue", Arial, FreeSans, sans-serif !important;
  font-weight: initial;
  position: absolute;
  right: 0;
  border-radius: 0;
  padding: 0;
  color: #ffffff;
  height: 30px;
  width: 30px;
}


/* Navigation */

nav {
    margin: 0;
    clear: both;
    background: #051428;
    color: #ffffff;

    /* Linha fina superior */
    border-top: 1px solid rgba(255,255,255,0.25);
}

/* Centralização real do menu */
nav ul {
    display: table;
    margin: 0 auto !important;
    padding: 0;
    list-style: none;
    float: none !important;
    text-align: center;
}

/* Itens */
nav li {
    display: inline-block;
    float: none !important;
    position: relative;
}

nav li::after {
    content: '';
    position: absolute;
    visibility: hidden;
    margin: auto;
    right: -2px;
    top: 0;
    bottom: 0;
    background-color: #ffffff;
    border-radius: 50%;
    width: 4px;
    height: 4px;
}

nav li:last-child::after {
    display: none;
}

nav li a:link {
    font-size: 80%;
    text-decoration: none;
    display: block;
    padding: 1.2em 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    transition: all ease-out 0.1s;
}

nav li a:link,
nav li a:visited {
    color: #ffffff;
}

nav li a:hover {
    background: #131d45;
}



/* Mobile Menu button colors */

.menu-button {
  background: #ffffff;
}

.menu-button button {
  border-color: #1d2d6b;
  background: none;
  color: #1d2d6b;
  margin-right: 0.85em;
}

.menu-button > button:hover {
  background: #1d2d6b !important;
  color: #ffffff;
  border-color: #ffffff;
}

.menu-button > button.menuAtivo {
  background: #1d2d6b;
  color: #ffffff;
  border-color: #ffffff;
}

/********** Content **********/
/* breadcrumb */
#portal-breadcrumbs {
  margin: 1em 2%;
  font-size: 65%;
  background: #f9f9f9;
  padding: 0.6em 1.2em;
  border: 1px solid #E9E9E9;
  border-radius: 6px;
  float: left;
  text-transform: uppercase;
  clear: both;
}

#portal-breadcrumbs .breadcrumbSeparator {
  font-weight: bold;
  margin: 0 0.25em;
}

#breadcrumbs-current {
  font-weight: bold;
}

.section-front-page #portal-breadcrumbs {
  visibility: hidden;
}
/* text styles */
p {
  line-height: 1.4em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', "Helvetica Neue", Arial, FreeSans, sans-serif;}

h1 {
  color: #1d2d6b;
  border: none;
  margin-bottom: 0;
  font-size: 2.5em;
}
h2 {
  color: #1d2d6b;
}
#content {
  margin: 0;
}
#content .documentDescription,
#content #description {
  color: #4d4d4d;
  font-weight: normal;
  margin-bottom: 1em;
}
/********** Tiles **********/
.tile-header h2, .tile-content h2, .documentFirstHeading {
    font-size: 2.5em;
    border-bottom: 2px solid;
    font-weight: 400;
    color: #1d2d6b;
    margin-bottom: 0.5em;
}

.tile-noticias .collection-item {
    float: left;
    width: 48%;
    margin-right: 4%;
    margin-bottom: 1.5em;
    padding-bottom: 0.4em;
    border-bottom: 1px dotted #ccc;
}

.tile-noticias .collection-item:nth-child(odd) {
    margin-right: 0;
}

.tile-noticias .collection-item a img {
    margin: 0;
    float: none;
    width: 100%;
    height: auto;
}

.tile-noticias .collection-item > a {
    width: 100%;
    display: block;
    margin-bottom: 0.5em;
}

#content .tile-noticias .collection-item p {
    margin-bottom: 0.25em;
}

.tile-noticias .collection-item p.description {
    font-size: 1.1em;
}

#content .tile-noticias .tile-footer a {
  float: right;
  padding: 1.075em 1.2em;
  background-color: #1D2D6B;
  color: #ffffff !important;
  font-weight: bold;
  text-transform: uppercase;
  transition: all ease-out 0.1s;
}

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


/*********** Portlets ***********/
/* general styles */
.portletHeader,
dl.portlet dt.portletHeader {
  border-bottom: #d8d8d8 1px solid;
  font-weight: bold;
  background-color: #1d2d6b;
  color: #fff;
}
.portletHeader a,
dl.portlet dt.portletHeader a {
  color: #fff;
  transition: all ease-out 0.1s;
}
.portlet {
  margin-bottom: 2em !important;
  background: #f9f9f9;
}
/* lists inside columns */
aside dl,
aside dd,
aside ul {
  padding: 0;
  margin: 0;
}
aside a {
  text-decoration: none;
}
/* portlet navigation */
.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;
  transition: all ease-out 0.15s;
  line-height: initial;
  position: relative;
}

.portlet.portletNavigationTree .navTree .navTreeItem a span::after {
  content: '';
  height: 2px;
  width: 0%;
  position: absolute;
  background-color: #283e93;
  bottom: 0;
  left: 0;
  transition: all cubic-bezier(.55,0,.1,1) 0.2s;
}

.portlet.portletNavigationTree .navTree .navTreeItem a:hover, .portlet.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem  {
  background-color: transparent;
  color: #283e93 !important;
  font-weight: bold;
}

.portlet.portletNavigationTree .navTree .navTreeItem a:hover span::after, .portlet.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem span::after {
  width: 100%;
}

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;
}
.portlet .portletHeader > a, .portlet .portletHeader > span:nth-child(2) {
  display: block;
  color: #FFF;
  padding: 1.075em 1.5em;
  font-size: 1em;
  line-height: 1;
}
.portlet .portletHeader > a:hover {
  background: #131d45;
  color: #fff !important;
}
.portlet .portletHeader {
  padding: 0;
  text-transform: uppercase;
}
/********** Footer **********/
footer {
  border-top: #ccc 2px solid;
  margin-top: 2em;
  padding: 2%;
  font-size: 80%;
  background: #f9f9f9;
  color: #000000;
}
footer a {
  color: #000000 !important;
}
footer p {
  margin-bottom: 2em;
}
/********* RESPONSIVE **********/
/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
  
}
/* Landscape phone to portrait tablet */
@media (max-width: 767px) {

  header {
    margin-bottom: 1em;
    max-width: 100%;
  }

  /* Mobile Menu theme color adjustments */
  #column-one {
    border-color: #25528C;
  }

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

  dl.portlet ul.navTree li a:hover {
    border-color: #25528C;
  }
  
}
/* Landscape phones and down */
@media (max-width: 767px) {
  #portal-logo {
    display: inline-block;
    font-size: 90%;
    margin: 1.5em;
  }

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

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

  nav ul::after {
    content: '';
    background-image: linear-gradient(to right, transparent, rgba(29, 45, 107, 0.9) 80%);
    height: 43px;
    position: absolute;
    pointer-events: none;
    right: 0;
    top: 0;
    width: 2.2em;
    z-index: 10;
  }

  nav li {
    float: none;
  }

  nav li::after {
    visibility: visible;
  }

  nav 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%;
    margin: 1.5em;
  }

}

/* Landscape phones and down */
@media (max-width: 480px) {
  .tile-noticias .collection-item {
      width: 100%;
      margin-right: 0;
  }
}

/* DROPDOWN MENU */
@media (min-width: 768px) {

    /* Garante que os itens-pai sirvam de referência ao submenu */
    nav li {
        position: relative !important;
        z-index: 9998 !important;
    }

    /* Submenu em primeiro plano */
    nav li ul {
        position: absolute !important;
        z-index: 99999 !important;
        background-color: #e5faf7 !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
        border-radius: 6px !important;
        overflow: visible !important;
    }

    /* Mantém o submenu acima também durante o hover */
    nav li:hover > ul {
        z-index: 99999 !important;
    }

    /* Itens do menu */
nav li ul li > a {
    display: block !important;

    min-width: 400px;
    width: auto !important;

    box-sizing: border-box !important;
    margin: 2px 6px !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;

    font-size: 13px !important;
    font-weight: 650 !important;
    font-family: 'Open Sans', "Helvetica Neue", Arial, FreeSans, sans-serif !important;
    line-height: 1 !important;

    border-bottom: 1px solid #e5e7eb !important;
    text-transform: uppercase !important;
    color: #2f3f86 !important;
    background-color: #e5faf7 !important;
    background-image: none !important;

    white-space: nowrap !important;
    text-align: left !important;

    position: relative !important;
    z-index: 100000 !important;
    transition: all 0.25s ease !important;
}

    /* Hover - sobe + sombra */
    nav li ul li > a:hover {
        transform: translateY(-6px) !important;
        background-color: #c0f2ec !important;
        color: #1e3a2f !important;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35) !important;
        z-index: 100001 !important;
    }
}

/* =====================================================
   CORREÇÃO: DROPDOWN ACIMA DA GALLERIA
   ===================================================== */

@media (min-width: 768px) {

    /* Mantém o dropdown em camada superior */
    nav li {
        position: relative !important;
    }

    nav li ul,
    nav li:hover > ul,
    nav li.sfHover > ul {
        position: absolute !important;
        z-index: 999999 !important;
        overflow: visible !important;
    }

    nav li ul li,
    nav li ul li a {
        position: relative !important;
        z-index: 1000000 !important;
    }

    /* Rebaixa todas as camadas da Galleria */
    .galleria,
    .galleria-container,
    .galleria-stage,
    .galleria-images,
    .galleria-image,
    .galleria-loader,
    .galleria-thumbnails-container,
    .galleria-info,
    .galleria-counter,
    .galleria-controls,
    .galleria-layer {
        z-index: 1 !important;
    }

    /* Imagens da galeria não podem cobrir o menu */
    .galleria img,
    .galleria-image img {
        z-index: 1 !important;
    }
}

/* Força o header/menu a ficar acima da galeria */
header,
#header-banner,
#main-navigation {
    z-index: 99999 !important;
    overflow: visible !important;
}