@font-face {
    font-family: 'Canaro-Book';
    src: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/fonts/Canaro-Book.eot");
    src: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/fonts/Canaro-Book.eot?#iefix") format("embedded-opentype");
    font-weight: 400;
    font-style: normal
}

#headerContainer{
  border-bottom: 2px solid #eee;
  position: relative;
}

#footerContainer:empty,
#headerContainer:empty {
  display: none;
}

#headerContainer:after {
  content: '';
  position: absolute;
  display: block;
  background: #eee;
  width: 20%;
  z-index: -1;
  height: 100%;
  top: 0;
  right: 0;
}

#headerContainer #portal-highlights,
#headerContainer #portal-groups-wrapper,
#footerContainer #footer-groups-wrapper,
#footerContainer .external-links{
  width: 100%;
  position: relative;
  margin: 0 auto;
}

#footerContainer #footer-groups-wrapper,
#footerContainer .external-links{
  width: 100%;
  max-width: 1170px;
}

#headerContainer #portal-highlights ul{
  margin: 0;
  list-style: none;
  text-align: right;
  display: block;
}

#headerContainer #portal-highlights ul li{
  display: inline-block;
  position: relative;
  z-index: 2;
}

#headerContainer #portal-highlights ul li:last-child{
  background: #eee;
  position: relative;
  margin-left: 20px;
  width: 25%;
  text-align: left;
}

#headerContainer #portal-highlights ul li:last-child:before{
  content: '';
  position: absolute;
  display: block;
  background: transparent;
  z-index: -1;
  bottom: 0;
  left: -20px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 48px solid #eee;
}

#headerContainer #portal-highlights ul li a,
#headerContainer #portal-highlights ul li button{
  display: inline-block;
  padding: 15px 10px 12px;
  text-decoration: none;
  color: #95a3ab;
  font-size: 12px;
  line-height: 12px;
  text-transform: uppercase;
  position: relative;
  font-family: 'Canaro-Book', sans-serif;
  border: 0;
  background: none;
  outline: none;
}

#headerContainer #portal-highlights ul li:first-child a{
  color: #000;
}

#headerContainer #portal-highlights ul li a:hover,
#headerContainer #portal-highlights ul li button:hover {
  color: #000;
  text-decoration: underline;
  cursor: pointer;
}

#headerContainer #portal-highlights ul li a.is-active {
  color: #000;
}

#headerContainer #portal-highlights ul li:last-child button:after{
  content: '';
  position: absolute;
  display: block;
  border: solid #97a4ac;
  border-width: 0 3px 3px 0;
  border-radius: 2px;
  display: inline-block;
  padding: 3px;
  margin-left: 5px;
  transform: rotate(45deg) translateY(-50%);
  -webkit-transform: rotate(45deg) translateY(-50%);
  top: 41%;
}

#headerContainer.is-expanded #portal-highlights ul li:last-child button:after{
  transform: rotate(-135deg) translateY(-50%);
  -webkit-transform: rotate(-135deg) translateY(-50%);
  top: 35%;
  right: -10px;
}

#headerContainer #portal-highlights ul li:last-child button:hover:after{
  border-color: #000;
}

#headerContainer #portalGroups{
  background: #eee;
  text-align: center;
  height: 0;
  max-height: 0;
  overflow: hidden;
  -webkit-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}

#headerContainer.is-expanded #portalGroups{
  height: auto;
  max-height: 5000px;
  padding: 40px 0 20px;
}

#footerContainer #footerGroups .footer-group,
#headerContainer #portalGroups .header-group{
  display: inline-block;
  text-align: left;
  max-width: 21%;
  width: 100%;
  padding: 0 2%;
  vertical-align: top;
  margin-bottom: 20px;
}

#footerContainer #footerGroups .footer-group span,
#headerContainer #portalGroups .header-group span{
  font-family: 'Canaro-Book', sans-serif;
  font-size: 16px;
  margin-bottom: 15px;
  display: inline-block;
  vertical-align: top;
  color: #fa551e;
}

#footerContainer #footerGroups .footer-group ul,
#headerContainer #portalGroups .header-group ul{
  margin: 0;
  padding-left: 0;
  list-style: none;
}

#footerContainer #footerGroups .footer-group ul li a,
#headerContainer #portalGroups .header-group ul li a{
  font-family: 'Canaro-Book', sans-serif;
  color: #606a70;
  font-size: 13px;
  margin-bottom: 15px;
  display: inline-block;
  text-decoration: none;
}

#footerContainer #footerGroups .footer-group ul li a:hover,
#headerContainer #portalGroups .header-group ul li a:hover{
  color: #000;
  text-decoration: underline;
}

#headerContainer #portalGroups .menu-close{
  color: #95a3ab;
  font-size: 25px;
  padding: 0 10px 5px;
  border: 0;
  background: none;
  right: 3%;
  top: -30px;
  position: absolute;
  cursor: pointer;
  outline: none;
}

#headerContainer #portalGroups .menu-close:hover{
  color: #000;
}

/*FOOTER*/
#footerContainer{
  background: #fff;
  position: relative;
}

#footerContainer #footerGroups{
  border-bottom: 1px solid #95a3ab;
  padding: 40px 0 20px;
}

#footerContainer #footerGroups .footer-group span{
  color: #000;
}

#footerContainer .external-links{
  padding: 25px 2%;
}

#footerContainer .external-links:after{
  content: '';
  display: block;
  clear: both;
}

#footerContainer .mobile-apps{
  width: 35%;
  float: left;
  display: inline-block;
}

#footerContainer .social-links{
  width: 36%;
  margin-left: 29%;
  float: left;
  display: inline-block;
}

#footerContainer .social-links span,
#footerContainer .mobile-apps span{
  display: block;
  margin-bottom: 15px;
  color: #95a3ab;
  font-size: 14px;
  font-family: 'Canaro-Book', sans-serif;
}

#footerContainer .social-links a,
#footerContainer .mobile-apps a{
  display: inline-block;
  outline: none;
}

#footerContainer .mobile-apps a{
  width: 160px;
  height: 48px;
  margin-right: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

#footerContainer .social-links a{
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  border-radius: 16px;
  height: 40px;
  width: 40px;
  display: inline-block;
  background-repeat: repeat-x;
  background-color: #606a70;
  background-image: -webkit-linear-gradient(left,#606a70 0,#95a3ab 100%);
  background-image: -o-linear-gradient(left,#606a70 0,#95a3ab 100%);
  background-image: linear-gradient(to right,#606a70 0,#95a3ab 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF606A70',endColorstr='#FF95A3AB',GradientType=1);
  filter: none;
  margin: 10px 8px 0 0;
  vertical-align: top;
  text-align: center;
}

#footerContainer .social-links a span{
  height: 100%;
  width: 100%;
  display: inline-block;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background-size: 50%;
  background-position: 50%;
  background-repeat: no-repeat;
  background-color: transparent;
}

/*Icons for external links*/
#footerContainer .appStore{
  background: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/images/button-appstore.png");
}

#footerContainer .playStore{
  background: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/images/button-playstore.png");
}

#footerContainer a.facebook span{
  background-image: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/images/icon-facebook.png");
  background-size: 27%;
}

#footerContainer a.instagram span{
  background-image: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/images/icon-instagram.png");
}

#footerContainer a.linkedin span{
  background-image: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/images/icon-linkedin.png");
}

#footerContainer a.youtube span{
  background-image: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/images/icon-youtube.png");
}

#footerContainer a.twitter span{
  background-image: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/images/icon-twitter-light.png");
}

#footerContainer a.email span{
  background-image: url("https://www.galp.com/corp/Portals/_default/skins/galpcorporativo/assets/portal-menu/assets/images/icon-mail.png");
}

#footerContainer .social-links a:hover{
  background: #000!important;
}

@media screen and (max-width: 1024px){
  #headerContainer,
  #footerContainer {
    display: none;
  }

  #footerContainer .mobile-apps,
  #footerContainer .social-links {
    text-align: center;
    margin-bottom: 40px;
    clear: both;
    width: 100%;
    margin-left: 0;
  }
}

@media screen and (max-width: 1270px){
  #headerContainer #portalGroups .menu-close{
    right: 1%;
  }
}
