@import url("grid.css");
@import url("../../../contraste.css");
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
/********** Basic styles **********/
body {
  background: #f1f1f1;
  color: #333333;
  & *:not(i, .searchButton) {
        font-family: 'Outfit', 'Open Sans', sans-serif !important;
    }
}

a:link,
a:visited,
#content a:link,
#content a:visited {
  color: #1d390f;
}

#portal-siteactions a:link,
#portal-siteactions a:visited,
#portal-siteactions #content a:link,
#portal-siteactions #content a:visited {
    color: #333333;
}

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

a:hover {
  color: #3A9D4F;
}

#content a:hover,
dl.portlet a:hover {
  color: #3A9D4F !important;
  /* Unfortunatelly is necessary with sunburst */

}

.clear {
  clear: both;
}

/********** Main container **********/
#wrapper {
  padding: 0;
}

.layout-wrapper{
    max-width: 1500px;
    margin: 0 auto;
}

#main {
  margin: 0 auto;
  max-width: 96%;
}
/********** Header **********/

header {
  color: #ffffff;
  float: left;
  width: 100%;
  background: linear-gradient(to right, #f5f5f5, #d1d1d1)
}

header a:link,
header a:visited {
  color: #ffffff;
}
header a:hover {
  color: #afe397;
}
/* Logo */

#portal-logo {
  float: left;
  margin: 1.5em;
}

#portal-logo img {
  width: 25rem;
  max-width: 100%;
  height: auto;
  filter: saturate(100%) drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
  transform: scale(1);
  transition: 0.5s;
  margin-right: 1rem;

  &:hover {
    filter: saturate(130%) drop-shadow(0 0 16px rgba(255, 255, 255, 0.3));
    transform: scale(1.05);
  }
}

#portal-personaltools {
  background: #3A9D4F;
}

#portal-personaltools dd a:hover {
    background: #27BA56;
}

#portal-siteactions {
  position: center;
  text-align: left;
  margin-right: 1em;
  padding: 0px !important;
  font-size: 80%;
  margin-top: 7px;
  margin-bottom: 7px;
}

#portal-siteactions a:before {
  font-family: FontAwesome;
  font-size: 1em;
}
#siteaction-contact a:before {
  margin-right: 5px;
  content: "\f0e0";
}
#siteaction-sitemap a:before {
  margin-right: 5px;
  content: "\f0e8";
}
#siteaction-accessibility a:before {
  margin-right: 5px;
  content: "\f118";
}
#siteaction-search a:before {
  content: "\f002";
}
#siteaction-login a:before {
  margin-right: 5px;
  content: "\f090";
}
#siteaction-contraste a:before {
  margin-right: 5px;
  content: "\f042";
}
#siteaction-vlibras a:before {
  margin-right: 5px;
  content: "\f087";
}
#portal-siteactions li#siteaction-accessibility {
  width: 17px;
}

#portal-siteactions li a:hover {
  color: #18a12c;
}
/* 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: #3A9D4F;
  color: #ffffff;
  cursor: pointer;
}

#portal-searchbox {
    margin: 1.5em;
    position: relative;
    padding: 0 !important;
}

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

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

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

/* Navigation */
#main-navigation {
  margin: 0;
  clear: both;
  background: #3A9D4F;
  color: #000000;
}

#main-navigation ul {
  padding: 0.3em;
  text-align: right;
}
#main-navigation li {
  display: inline-block;
}

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

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

#main-navigation li a:link {
  font-size: 80%;
  text-decoration: none;
  display: block;
  padding: 0 1em;
}

#main-navigation li a:link,
#main-navigation li a:visited {
  color: #ffffff;
}

/* Mobile Menu button colors */

.menu-button{
  background: #1E6E30;
}

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

.menu-button > button:hover {
  background: #3A9D4F !important;
}

.menu-button > button.menuAtivo {
  background: #3A9D4F; 
}

/********** Content **********/
/* breadcrumb */

#portal-logo img{
    margin-left:3px;
}
#portal-breadcrumbs {
  margin: 1.2em 2%;
  font-size: 80%;
  clear: both;
  display: inline-block;
}
.section-front-page #portal-breadcrumbs {
  visibility: hidden;
}
/* text styles */
p {
  line-height: 1.4em;
}
h1 {
  color: #3A9D4F;
  border: none;
  margin-bottom: 0;
  font-size: 2.5em;
}
h2 {
  color: #3A9D4F;
}
#content {
  margin: 0;
}
#content .documentDescription,
#content #description {
  color: #4d4d4d;
  font-weight: normal;
  margin-bottom: 1em;
}
/********** Tiles **********/
.tile-header h2, .tile-content h2, .documentFirstHeading {
      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: #3A9D4F;
  color: #ffffff !important;
  font-weight: bold;
  text-transform: uppercase;
  transition: all ease-out 0.1s;
}

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

/*********** Portlets ***********/
/* general styles */
.portletHeader,
dl.portlet dt.portletHeader {
  border:0;
  font-weight: bold;
  background-color: #3A9D4F;
  color: #fff;
  border-radius: 0.5rem;
}
.portletHeader a,
dl.portlet dt.portletHeader a {
  color: #ffffff;
  transition: all ease-out 0.1s;
}
.portlet {
  margin-bottom: 2em;
}
/* 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(49, 97, 26, 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 #1E6E30;
  background-color: rgba(49, 97, 26, 0.05);
}
.portlet.portletNavigationTree .navTree .navTreeItem a.navTreeCurrentItem {
  border-left: 5px solid #1E6E30;
  background-color: rgba(49, 97, 26, 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;
}
.portlet .portletHeader > a, .portlet .portletHeader > span:nth-child(2) {
  display: block;
  color: #ffffff;
  padding: 0.7em 1em;
  font-size: 1em;
  border-radius:0.5rem;
}
.portlet .portletHeader > a:hover {
  background-color: #1E6E30;
  color: #ffffff !important;
}
.portlet .portletHeader {
  padding: 0;
}
/********** Footer **********/
footer {
  border-top: #d8d8d8 1px solid;
  margin-top: 2em;
  font-size: 80%;
  background: #1E6E30;
  color: #edf9e7;
}
footer a {
  color: #edf9e7 !important;
}
footer p {
  margin-bottom: 2em;
}

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

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

#footer-info th{
    width: 25%;
}

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

.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: #edf9e7;
  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
}

/********* 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;
  }

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

  dl.portlet ul.navTree .navTreeCurrentItem {
    border-color: #3A9D4F;
  }

  dl.portlet ul.navTree li a:hover {
    border-color: #1E6E30;
  }
  
  #portal-logo > img{
    width: 25rem;
    max-width: 100%;
    height: auto;
    }

/* Landscape phones and down */
@media (max-width: 767px) {
    
    #portal-logo {
      display: inline-block;
      font-size: 90%;
    }

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

    #main-navigation 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;
  }

    #main-navigation ul::after {
      content: '';
      background-image: linear-gradient(to right, transparent, rgba(49, 97, 26,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%;
    margin-left: 5px;
  }

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

}

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