

/* Fonts
---------------------------- */

@font-face {
  font-family: 'Bulo';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/bulo/Bulo.woff') format('woff'),
       url('fonts/bulo/Bulo.otf') format('opentype');
}

@font-face {
  font-family: 'Bulo';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/bulo/Bulo-Bold.woff') format('woff'),
       url('fonts/bulo/Bulo-Bold.otf') format('opentype');
}

@font-face {
  font-family: 'Bulo';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/bulo/Bulo-Black.woff') format('woff'),
       url('fonts/bulo/Bulo-Black.otf') format('opentype');
}

@font-face {
  font-family: 'Brushland';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/brushland/Brushland-regular.woff') format('woff'),
        url('fonts/brushland/Brushland-Regular.ttf') format('truetype');
}

/* Base styles
---------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Bulo';
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.428571429;
  color: #362e25;
  background-color: #fff;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

a {
  color: #2e96db;
  text-decoration: none;
}
a:hover {
  color: #1b78b3;
}

p {
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}


/* Idiomes
---------------------------- */
.idiomes {
  text-align: right;
  top: 50px;
  margin-right: 15px;
  margin-bottom: 00px;
  background-color: #fff;
  border-bottom: 0px solid #ccc;
  z-index: 10; /* Per sobre del contingut de la pàgina */
  font-size: 12px;
  font-weight: 400;
}

/* Header
---------------------------- */

.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  z-index: 10; /* Per sobre del contingut de la pàgina */
}

.header .header-container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.header .logo {
  padding: 38px 0;
}

.header .subtitle {
  margin-right: 25px;
}

.header .subtitle img {
  display: block;
  position: relative;
  top: 67px;
  left: -18px;
}

.header .menu-toggle {
  display: none;
}

@media (max-width: 1200px) {
  .header .logo {
    width: 200px;
    padding: 21px 0;
  }

  .header .subtitle {
    width: 180px;
    transition: opacity 0.3s;
  }

  .header .subtitle.hidden {
    top: 0;
    opacity: 0;
  }

  .header .menu-toggle {
    display: block;
    position: absolute;
    top: auto;
    right: 30px;
  }
}

@media (max-width: 767px) {
  .header .logo {
    padding: 15px 0;
  }

  .header .subtitle {
    display: none;
  }
}


/* Menu
---------------------------- */

.header .main-menu {
  margin-top: 35px;
}

.header .main-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header .main-menu ul > li {
  display: inline-block;
  margin: 0 15px;
}

.header .main-menu ul > li > a{
  font-size: 15px;
  font-weight: 800;
  color: inherit;
}

.header .main-menu ul > li.active {
  position: relative;
  z-index: 1;
}
.header .main-menu ul > li.active > a {
  color: #fff;
}

.header .main-menu ul > li.active > .background {
  display: block;
  position: absolute;
  top: 0;
  left: -24px;
  width: calc(100% + 42px);
  height: 24px;
  background-color: #face4d;
  z-index: -1;
}

.header .main-menu ul > li.active > .background:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 24px;
  border-top: 24px solid transparent;
  border-left: 4px solid #fff;
}

.header .main-menu ul > li.active > .background:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 4px;
  border-bottom: 4px solid #fff;
  border-left: 120px solid transparent;
}

@media (max-width: 1200px) {

  .header .main-menu {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding-bottom: 15px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    transform: translateY(0);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
  }

  .header .main-menu.open {
    transform: translateY(100%);
    opacity: 1;
  }

  .header .main-menu ul > li {
    display: block;
    margin: 10px 0;
    text-align: center;
  }

  .header .main-menu ul > li > a{
    font-size: 24px;
  }

  .header .main-menu ul > li > a:hover {
    opacity: 0.66;
  }

  .header .main-menu ul > li.active > a {
    position: relative;
    display: inline-block;
    color: inherit;
  }

  .header .main-menu ul > li.active > a:before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 8px;
    left: -21px;
    width: 12px;
    height: 8px;
    margin-right: 6px;
    border-left: 12px solid #face4d;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }

  .header .main-menu ul > li.active > .background {
    display: none;
  }

}


/* Burger icon */
.burger-icon {
  position: relative;
  width: 40px;
  height: 28px;
}
.burger-icon .line-1,
.burger-icon .line-2,
.burger-icon .line-3,
.burger-icon .line-4 {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #362e25;
  transition: all 0.3s ease-in-out;
}
.burger-icon.line-1 {
  top: 0px;
}
.burger-icon.open .line-1 {
  top: 12px;
  width: 0%;
  left: 50%;
}
.burger-icon .line-2 ,
.burger-icon .line-3 {
  top: 12px;
}
.burger-icon.open .line-2 {
  transform: rotate(45deg);
}
.burger-icon.open .line-3 {
  transform: rotate(-45deg);
}
.burger-icon .line-4 {
  top: 24px;
}
.burger-icon.open .line-4 {
  top: 12px;
  width: 0%;
  left: 50%;
}


/* Front image
---------------------------- */

.front-image img {
  display: block;
  width: 100%;
  height: auto;
}

.front-image .mobile-image {
  display: none;
}

@media (max-width: 767px) {
  .front-image .mobile-image {
    display: block;
  }
  .front-image .desktop-image {
    display: none;
  }
}


/* Section 1 
---------------------------- */

.section-1 {
  background-image: url(../img/montserrat-2.jpg);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

.section-1 .text-container {
  padding-bottom: 70px;
}

.section-1 .subtitle {
  display: none;
}

.section-1 h2 {
  margin: 0 0 0.4em 0;
  padding-top: 20px;
  font-size: 62px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.section-1 p {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.3;
  color: #888;
  text-align: center;
}

@media (max-width: 1200px) {
  .section-1 h2 {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .section-1 {
    background-image: url(../img/montserrat-mobile-2.jpg);
  }

  .section-1 .text-container {
    padding-bottom: 40px;
  }

  .section-1 .subtitle {
    display: block;
    text-align: center;
  }

  .section-1 h2 {
    font-size: 30px;
    max-width: 80%;
    margin: 0 auto;
    padding-bottom: 20px 0;
  }
  .section-1 h2 br {
    display: none;
  }
}

/* Section 2
---------------------------- */

.section-2 {
  position: relative;
  z-index: 0;
  padding: 47px 0 22px 0;
  background-color: #ebebeb;
}

.section-2:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 84px;
  height: 43px;
  margin-left: -42px; /* Centrar */
  border-top: 43px solid #fff;
  border-left: 42px solid transparent;
  border-right: 42px solid transparent;
}

.section-2 .secion-2-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.section-2 .secion-2-left {
  width: 55%;
}

.section-2 .secion-2-right {
  width: 33%;
  margin-top: 15px;
  margin-left: 12%;
}

.section-2 h2 {
  margin: 0 0 30px 0;
  font-size: 42px;
  font-weight: 800;
  color: #eec74e;
}

.section-2 h3 {
  margin: 0;
  font-family: 'Brushland', cursive;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 2em;
}

.section-2 p {
  margin-bottom: 1.6em;
  font-size: 18px;
  line-height: 1.3;
  color: #888;
}

.section-2 .link {
  text-align: center;
}

.section-2 .link a {
  position: relative;
  display: inline-block;
  width: 304px;
  height: 155px;
  background-image: url(../img/link-empy.png);
  background-repeat: no-repeat;
}

.section-2 .link a span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%); /* Centrar text */
  font-family: 'Brushland', cursive;
  font-size: 22px;
  color: #fff;
  white-space: nowrap;
}

.section-2 .background {
  position: absolute;
  bottom: 0;
  left: 54%;
  z-index: -1;
}

.section-2 .background img{
  display: block;
}

@media (max-width: 1200px) {
}

@media (max-width: 767px) {
  .section-2 {
    padding-bottom: 0;
  }

  .section-2 .secion-2-container {
    display: block;
  }

  .section-2 .secion-2-left {
    width: auto;
    text-align: center;
  }

  .section-2 h2 {
    margin: 20px 0 30px 0;
    font-size: 40px;
  }

  .section-2 .secion-2-right {
    width: auto;
    margin-left: 0;
    text-align: center;
  }

  .section-2 .background {
    position: static;
    text-align: center;
  }
  .section-2 .background img{
    display: inline-block;
  }

}

/* Section 3
---------------------------- */

.section-3 {
  position: relative;
  padding: 94px 0 36px 0;
  background-color: #eec74e;
}

.section-3:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 84px;
  height: 43px;
  margin-left: -42px; /* Centrar */
  border-top: 43px solid #ebebeb;
  border-left: 42px solid transparent;
  border-right: 42px solid transparent;
}

.section-3 .section-3-container {
  text-align: center;
}

.section-3 h2 {
  margin: 0 0 40px 0;
  text-align: center;
}

.section-3 .president-list-container {
  position: relative;
}

.section-3 .president-list-container:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(238,199,78,1) 0%, rgba(0,212,255,0) 50%, rgba(0,212,255,0) 100%);
  pointer-events: none;
}

.section-3 .president-list {
  display: inline-block;
  margin: 0 auto;
  width: 680px;
  padding: 0;
  list-style: none;
  height: 400px;
  overflow: auto;
  text-align: left;
}

.section-3 .president-list > li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
}

.section-3 .president-list > li:last-child {
  padding-bottom: 50px; /* Eviar que quedi tapat pel degredat */
}

.section-3 .president-list > li > .year {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 201px;
  font-size: 34px;
  font-weight: bold;
  line-height: 1.3;
}

.section-3 .president-list > li > .name {
  width: 420px;
  font-size: 28px;
  line-height: 1.3;
}

.section-3 .president-list > li > .peak {
  display: none;
}

@media (max-width: 767px) {

  .section-3 {
    padding-top: 40px;
  }

  .section-3:before {
    display: none;
  }

  .section-3 h2 {
    max-width: 70%;
    margin: 0 auto 30px auto;
  }

  .section-3 .president-list {
    width: auto;
    height: 45vh;
  }

  .section-3 .president-list > li {
    margin-bottom: 3px;
  }

  .section-3 .president-list > li > .year {
    width: 125px;
    font-size: 22px;
    padding-right: 20px;
  }

  .section-3 .president-list > li > .name {
    width: 175px;
    font-size: 18px;
  }
}


/* Section 4
---------------------------- */

.section-4 {
  padding: 55px 0 124px 0;
}

.section-4 h2 {
  margin: 0 0 25px 0;
  font-size: 60px;
  font-weight: 800;
  text-align: center;
}

.section-4 .news {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

.section-4 .news:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 183px;
  height: 136px;
 /* background-image: url(../img/comes.png);*/
  background-size: contain;
  background-repeat: no-repeat;
  transform: translate(-80%, -68%);
  pointer-events: none;
}

.section-4 .news:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 183px;
  height: 136px;
  /*background-image: url(../img/comes.png);*/
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(180deg) translate(-72%, -34%);
  pointer-events: none;

}

.section-4 .news p {
  margin-bottom: 1.3333em;
  font-size: 18px;
  color: #888;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .section-4 {
    padding: 40px 0;
  }

  .section-4 h2 {
    margin: 0 0 20px 0;
    font-size: 50px;
  }

  .section-4 .news {
    max-width: 80%;
  }

  .section-4 .news:before {
    display: none;
  }

  .section-4 .news:after {
    display: none;
  }
}

/* Section 5
---------------------------- */

.section-2 {
  position: relative;
  z-index: 0;
  padding: 47px 0 22px 0;
  background-color: #ebebeb;
}

.section-5 {
  height: 150px;
  background-color: #644394;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.section-5 p {
  margin: 12px;
  padding: 12px;
  font-size: 20px;
  color: #cecfcd;
  text-align: center;
}


/* Footer
---------------------------- */

.footer {
  background-color: #ebebeb;
  padding-bottom: 110px;
}

.footer-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.footer .footer-info {
  width: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.footer .footer-info-left {
  width: 50%;
  padding-right: 15px;
}

.footer .footer-info-left .logo {
  width: 166px;
  height: auto;
  margin: 14px 0 6px 0;
}

.footer .footer-info-left p {
  margin-bottom: 1.4em;
  font-size: 14px;
  line-height: 1.3;
}

.footer .footer-info-left .social-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .footer-info-left .social-links > li {
  display: inline-block;
  margin-right: 3px;
}

.footer .footer-info-left .social-links > li > a {
  display: inline-block;
  width: 31px;
  height: 31px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center center;
  box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.1);
  border-radius: 2px;
}

.footer .footer-info-left .social-links > li > a:hover {
  box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.5);
}

.footer .footer-info-left .social-links > li > a.link-facebook {
  background-image: url(../img/facebook.png);
  background-size: 8px auto;
}

.footer .footer-info-left .social-links > li > a.link-twitter {
  background-image: url(../img/twitter.png);
  background-size: 16px auto;
}

.footer .footer-info-left .social-links > li > a.link-instagram {
  background-image: url(../img/instagram.png);
  background-size: 17px auto;
}

.footer .footer-info-left .social-links > li > a.link-telegram {
  background-image: url(../img/telegram.png);
  background-size: 17px auto;
}

.footer .footer-info-left .contact {
  margin-top: 15px;
}

.footer .footer-info-left .contact .email {
  margin-bottom: 3px;
}

.footer .footer-info-left .contact .email a {
  font-size: 14px;
  color: #888;
}

.footer .footer-info-left .contact .email a:hover {
  text-decoration: underline;
}

.footer-info-right h3 {
  margin: 40px 0 20px 0;
  font-size: 16px;
  font-weight: bold;
  color: #eec74e;
}

.footer-info-right .features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-info-right .features > li {
  position: relative;
  margin-bottom: 8px;
  padding: 0 0 8px 38px;
  background-image: url(../img/check.png);
  background-position: 15px 2px;
  background-repeat: no-repeat;
  font-size: 14px;
}

.footer-info-right .features > li:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 1px;
  background-color: #d9d9d9;
}

.footer-info-right .features > li:last-child:after {
  display: none;
}
.footer .footer-partners {
  width: 32%;
  margin-left: 5%;
  padding-top: 65px;
}

.footer .footer-partners .partners-row {
  margin-bottom: 32px;
}

.footer .footer-partners .partners-row > .partner {
  display: inline-block;
  width: 48.5%;
  vertical-align: middle;
  text-align: center;
}

.footer .footer-partners .partners-row > .partner img {
  padding: 0 4px;
}

.footer .footer-partners .partners-row > .partner .contribute {
  display: inline-block;
  text-align: left;
}

.footer .footer-partners .partners-row > .partner .contribute-text {
  margin-bottom: 5px;
  font-size: 15px;
}

.footer .acknowledgements {
  text-align: center;
}

.footer .acknowledgements h2 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: normal;
}

.footer .acknowledgements p {
  font-size: 13px;
  color: #888;
}

@media (max-width: 767px) {
  .footer {
    padding: 20px 0 30px 0;
  }

  .footer-container {
    display: block;
  }

  .footer .footer-info {
    display: block;
    width: 100%;
  }

  .footer .footer-info-left {
    width: 100%;
  }

  .footer .footer-info-left .social-links > li {
    margin-right: 10px;
  }

  .footer .footer-info-left .social-links > li > a {
    width: 40px;
    height: 40px;
  }

  .footer-info-right h3 {
    margin: 20px 0;
  }

  .footer .footer-partners {
    width: 100%;
    margin-left: 0;
    padding-top: 30px;
  }

}

