@import url('https://fonts.googleapis.com/css?family=Lato:300,400');

:root {
  --main-color: #43a047;
  --sub-color: #358038;
  --blue: #0072b9;
  --white: #ffffff;
  --red: #e53935;
  --green: #7cb342;
  --purple: #8e24aa;
  --yellow: #ddbe26;
  --light-green: #abcc88;
  --light-purple: #b676c6;
  --light-yellow: #e5d277;
  --light-blue: #7fb8dc;
  --light-grey: #eeeeee;
  --dark-gray: #333333;
  --grey: #999999;
  --bg: #f2f2f2;
  --dark-red: #b21f1b;
  --dark-blue: #0063a0;
  --t-green: #9ccc65;
  --t-salmon: #e57373;
  --t-purple: #ba68c8;
  --t-yellow: #eeb628;
  --t-orange: #ffa726;
  --t-light-blue: #4fc3f7;
  --t-brown: #8d6e63;
  --t-blue: #73aed3;
  --gray-5: #1e1e1e;
  --gray-12: #2e2e2e;
  --gray-15: #353535;
  --light-blue: #66aad5;
  --gray-0: #121212;
}

body {
  background-color: var(--bg);
  font-size: 20px;
  overflow-x: hidden;

  &.zoom-in {
    font-size: 24px;
  }

  &.zoom-out {
    font-size: 18px;
  }
}

div, section, input {
  box-sizing: border-box;
}

.clearfix {
  clear: both;
}

.container {
  margin: 0 auto;
  width: 1110px;
  max-width: 100%;
  position: relative;
}

@mixin placeholder {
  font-family: Lato;
  font-size: 0.9em;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  color: var(--grey);
}

::-moz-placeholder { @include placeholder; }
:-ms-input-placeholder { @include placeholder; }
:-moz-placeholder { @include placeholder; }
::-webkit-input-placeholder { @include placeholder; }
::placeholder { @include placeholder; }

.banner_list_component.card-banner {
  position: relative;
  padding: 120px 0;
  margin-top: 120px;

  &:before {
    content: '';
    background-color: var(--main-color);
    opacity: 0.2;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }

  .flexslider {
    margin: 0 auto;
    width: 920px;
    height: 276px;
    border: 0;
    background: transparent;
  }

  .flex-viewport {
    box-shadow: -10px 10px 20px 0 rgba(153, 153, 153, 0.2);
    border-radius: 4px;
  }

  .flex-control-paging {
    display: none;
  }

  .slides > li {
    /*padding-left: 460px;*/
    width: 920px;
    height: 276px;
    background-color: var(--white);
    border-radius: 4px;

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 460px;
      height: 276px;
      object-fit: cover;
    }

    .flex-caption {
      padding: 40px 60px 0;
      margin-left: 460px;
      width: auto;
      position: static;
      background-color: transparent;
      text-shadow: none;
      font-size: inherit;
      p {
        margin: 0;
        font-family: Lato;
        font-size: 1.2em;
        font-weight: 300;
        font-style: normal;
        font-stretch: normal;
        line-height: 1.25;
        letter-spacing: normal;
        color: #444444;
      }
    }

    .flex-description {
      position: static;
      padding: 20px 60px 38px;
      margin-left: 460px;
      width: auto;
      background-color: transparent;
      text-shadow: none;
      font-size: inherit;
      p {
        margin: 0;
        font-family: Lato;
        font-size: 0.9em;
        font-weight: 300;
        font-style: normal;
        font-stretch: normal;
        line-height: 1.33;
        letter-spacing: normal;
        color: var(--dark-gray);
      }
    }
  }

  .flex-direction-nav li a {
    width: 52px;
    height: 52px;
    background-color: transparent;
    border: 0;
    font-size: 0;
    transition: .2s;
    opacity: 0.8;

    &:hover {
      opacity: 1;
    }

    &.flex-prev {
      background-image: asset-url('alternative/ic-left-arrow.png');
      background-size: contain;
      left: -92px;
    }

    &.flex-next {
      background-image: asset-url('alternative/ic-right-arrow.png');
      background-size: contain;
      right: -92px;
    }
  }
}

.top-banner {

  .slider {
    height: 500px;
    margin-bottom: 120px;
  }

  .flexslider {
    border: 0;
    height: 100%;

    .slides {
      img {
        height: 500px;
        width: 100%;
        object-fit: cover;
      }
    }

    .flex-caption {
      height: 130px;
      background-color: rgba(0,0,0,0.3);
      padding: 0;
      width: 100%;
      line-height: normal;
    }

    .flex-caption-inner {
      max-width: 1100px;
      margin: 16px auto 17px;
      text-align: center;
      font-family: Lato;
      font-size: 2.1em;
      font-weight: 300;
      color: var(--white);
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
      height: 97px;
    }
  }

  .flex-control-nav {
    height: 12px;
    bottom: -24px;

    li {
      margin-left: 8px;

      &:first-child {
        margin-left: 0;
      }

      a {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-image: none;
        background-color: #cccccc;

        &.flex-active {
          background-color: var(--main-color);
        }
      }
    }
  }

  .flex-direction-nav li a {
    width: 72px;
    height: 72px;
    background-color: transparent;
    border: 0;
    font-size: 0;
    transition: .2s;
    opacity: 0.8;

    &:hover {
      opacity: 1;
    }

    &.flex-prev {
      background-image: asset-url('alternative/ic-left-arrow.png');
    }

    &.flex-next {
      background-image: asset-url('alternative/ic-right-arrow.png');
    }
  }

  .flex-control-nav {
    z-index: 2;
  }
}

.front_news_component, .subsite_front_news_component, .event_list_component, .banner_list_component {
  margin-top: 0;
}

/* FRONT NEWS */
.front_news_component, .subsite_front_news_component, .event_list_component {
  border: 0;
  position: relative;
  padding-left: 34px;
  padding-right: 34px;
  padding-top: 110px;

  .read_more {
    padding: 0;
    margin: 0;
    font-size: 0;

    a {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
    }
  }

  ul.pagination {
    display: none;
  }

  &.main {
    /*padding-top: 110px;*/

    #news {
      grid-template-rows: 340px 110px fit-content(340px);

      > li:nth-child(even) {
        article {
          background-color: var(--main-color);

          .news-details .date, h2 a, h3 a, summary p {
            color: var(--white);
          }
        }
      }
    }
  }

  &:last-child {
    padding-bottom: 120px;
  }

  #news, .list {
    max-width: 1110px;
    margin: 0 auto;
    padding: 60px 0;
    justify-content: center;
    display: grid;
    grid-template-columns: 350px 350px 350px;
    grid-template-rows: 340px 110px;
    grid-template-areas:
      "item1 item2 item3"
      "item1 item5 item3"
      "item4 item5 item6";
    grid-gap: 30px;

    > li {
      padding-top: 60px;
      box-sizing: border-box;
      position: relative;
      transition: .2s;
      z-index: 2;

      &:hover {
        article {
          box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.3);
          /*transform: translateY(-2px);*/

          .news-image img {
            -moz-transform: scale(1.05);
            -webkit-transform: scale(1.05);
            transform: scale(1.05);
          }
        }
      }

      &:nth-child(even) {
        padding-top: 50px;

        article {
          padding-top: 80px;

          .news-image {
            img {
              width: 188.4px !important;
              height: 115px;
            }
          }

          header {
            margin-top: 0;
          }

          summary {
            height: 72px;
          }

          .news-details {
            left: 216px;
            top: 67px;
          }
        }
      }

      &:nth-child(1) { grid-area: item1; }
      &:nth-child(2) { grid-area: item2; }
      &:nth-child(3) { grid-area: item3; }
      &:nth-child(4) { grid-area: item4; }
      &:nth-child(5) { grid-area: item5; }
      &:nth-child(6) { grid-area: item6; }
    }

    article {
      padding: 140px 18px 24px;
      box-sizing: border-box;
      background-color: var(--white);
      border-radius: 4px;
      box-shadow: -10px 10px 20px 0 rgba(153, 153, 153, 0.1);
      height: 100%;

      .news-image {
        position: absolute;
        top: 0;
        left: 12px;
        overflow: hidden;
        border-radius: 4px;

        img {
          width: 327px !important;
          height: 200px;
          padding: 0;
          object-fit: cover;
          border-radius: 4px;
          float: none;
          transition: .3s;
        }
      }

      header {
        padding: 0;
        margin-top: 50px;
        margin-bottom: 16px;
        height: 93px;
        overflow: hidden;
      }

      .news-details {
        position: absolute;
        left: 18px;
        top: 214px;
        margin: 0;

        .date {
          font-family: Lato;
          font-size: 0.8em;
          font-weight: 300;
          font-style: normal;
          font-stretch: normal;
          line-height: 1.5;
          letter-spacing: normal;
          color: #666666;
        }
      }

      .front_news_label {
        position: absolute;
        left: 12px;
        top: calc(144px + 14px);
        margin: 0;
        font-family: Lato;
        font-size: 0.8em;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        text-transform: uppercase;
        text-decoration: none;
        line-height: 1.5;
        letter-spacing: normal;
        color: var(--green);
      }

      h2, h3 {
        margin: 0;
        a {
          text-decoration: none;
          font-family: Lato;
          font-size: 1.2em;
          font-weight: 300;
          font-style: normal;
          font-stretch: normal;
          line-height: 1.25;
          letter-spacing: normal;
          color: #444444;
        }
      }

      summary {
        height: 95px;
        overflow: hidden;

        p {
          margin: 0;
          font-family: Lato;
          font-size: 0.9em;
          font-weight: 300;
          font-style: normal;
          font-stretch: normal;
          line-height: 1.33;
          letter-spacing: normal;
          color: var(--dark-gray);
          word-break: break-word;
        }

        a {
          color: inherit;
        }
      }

      .categories {
        /*position: absolute;
        bottom: 14px;
        display: flex;
        overflow: hidden;
        max-width: calc(100% - 32px);*/
        display: none;
      }

      .category {
        display: inline-block;
        border-radius: 4px;
        padding: 1px 16px;
        margin-right: 10px;
        background-color: var(--light-blue);
        text-decoration: none;
        font-family: Lato;
        font-size: 0.8em;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: 1.75;
        letter-spacing: normal;
        text-align: center;
        color: var(--white);
        flex: 0 0;
        white-space: nowrap;

        &:last-child {
          margin-right: 0;
        }
      }
    }
  }
}

.event_list_component {
  padding-top: 120px;

  #events {
    max-width: 1110px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: 538px 538px;
    grid-gap: 30px;
    justify-content: center;

    > li {
      padding-top: 134px;
      padding-left: 93px;
      position: relative;

      &:hover {
        article {
          box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.3);
          /*transform: translateY(-2px);*/

          .news-image img {
            -moz-transform: scale(1.05);
            -webkit-transform: scale(1.05);
            transform: scale(1.05);
          }
        }
      }

      article {
        background-color: var(--main-color);
        border-radius: 4px;
        padding: 112px 28px 22px;
        box-shadow: -10px 10px 20px 0 rgba(153, 153, 153, 0.1);
        box-sizing: border-box;
      }

      .news-image {
        position: absolute;
        top: 0;
        left: 0;
        overflow: hidden;
        border-radius: 4px;
        width: 348px;
        height: 213px;

        img {
          width: 100%;
          height: 100%;
          padding: 0;
          object-fit: cover;
          border-radius: 4px;
          float: none;
          transition: .3s;
        }
      }

      header {
        padding: 0;
        margin: 0;
        height: 90px;
        overflow: hidden;
      }

      .event-dates {
        display: flex;
        align-items: center;
        align-content: center;
        width: 104px;
        height: 54px;
        padding-top: 4px;
        border: solid 1px var(--white);
        border-radius: 27px;
        position: absolute;
        right: 28px;
        top: 160px;
        font-family: Lato;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        font-size: inherit;
        line-height: normal;
        letter-spacing: normal;
        text-align: center;
        color: var(--white);
      }

      .event-date-init, .event-date-fin {
        flex: 1;
      }

      .event-date-day {
        font-size: 1.2em;
        font-weight: bold;
        display: block;
      }

      .event-date-month {
        font-size: 0.8em;
        text-transform: lowercase;
        position: relative;
        top: -5px;
      }

      h2, h3 {
        margin: 0;

        a {
          font-family: Lato;
          font-size: 1.2em;
          font-weight: 300;
          font-style: normal;
          font-stretch: normal;
          text-decoration: none;
          line-height: 1.25;
          letter-spacing: normal;
          text-align: right;
          color: var(--white);
        }
      }

      summary {
        display: none;
      }

      &:nth-child(4n+2), &:nth-child(4n+3) {
        padding-left: 0;
        padding-right: 93px;

        .news-image {
          left: auto;
          right: 0;
        }

        .event-dates {
          right: auto;
          left: 28px;
        }
      }
    }
  }
}

.front_news_title, .event_list_title {
  max-width: 1110px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;

  a, span {
    color: var(--main-color);
    text-decoration: none;
    font-family: Lato;
    font-size: 2.4em;
    font-weight: 300;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.21;
    letter-spacing: normal;
  }
}

.highlight-news {
  background-color: var(--main-color);
  position: relative;
  margin-top: 120px;

  .image_component {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: .12;

    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }

  .front_news_title, .event_list_title {
    a {
      color: var(--white);
    }
  }

  .link_to_all a {
    color: var(--main-color);
    background-color: var(--white);

    &:hover {
      background-color: var(--white);
      opacity: .8;
    }
  }
}

.event_list_component .pagination,
.control {
  display: none;
}

summary em, summary em * {
  font-style: normal !important;
  font-weight: 300 !important;
}

.link_to_all {
  display: block;
  text-align: center;

  a {
    padding: 23px 0;
    width: 350px;
    display: inline-block;
    border-radius: 4px;
    background-color: var(--main-color);
    text-decoration: none;
    text-transform: uppercase;
    font-family: Lato;
    font-size: 0.9em;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: var(--white);
    position: relative;
    transition: .2s;

    &:hover {
      background-color: var(--sub-color);
    }
  }
}

/* MULTIMÍDIA */

.media-section {
  padding: 120px 0 0;
  position: relative;

  &:last-child {
    padding-bottom: 120px;
  }

  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;

    > .components_group_component {
      max-width: 350px;
    }

    .text_component p {
      font-family: Lato;
      font-size: 1.7em;
      font-weight: 300;
      font-style: normal;
      font-stretch: normal;
      text-align: center;
      padding: 0;
      margin: 60px 0 30px;
      line-height: 1.18;
      letter-spacing: normal;
      color: var(--dark-gray);

      a {
        text-decoration: none;
        color: inherit;
      }
    }
  }

  .image_component {
    margin-right: 0;

    &:last-child {
      margin-right: 0;
    }

    h3 {
      font-family: Lato;
      font-size: 1.7em;
      font-weight: 300;
      font-style: normal;
      font-stretch: normal;
      text-align: center;
      padding: 0;
      margin: 60px 0 30px;
      line-height: 1.18;
      letter-spacing: normal;
      color: var(--dark-gray);
    }

    img {
      width: 350px;
      height: 200px;
      object-fit: cover;
      border-radius: 4px;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    }
  }

  /* Section main title */
  > .text_component p {
    font-family: Lato;
    font-size: 2.4em;
    font-weight: 300;
    font-style: normal;
    font-stretch: normal;
    text-align: center;
    padding: 0;
    margin: 0;
    line-height: 1.21;
    letter-spacing: normal;
    color: var(--main-color);
  }

  .text_component.subtitle p {
    font-size: 0.9em;
    text-transform: none;
    margin: 20px 0 0;
    line-height: 1.33;
    color: var(--dark-gray);
  }

  .box-container .blank_component {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    width: 350px;
    height: 200px;
  }
}


.radio-container {
  position: relative;

  .blank_component {
    position: absolute;
    left: 50%;
    top: 144px;
    transform: translateX(-50%);
    bottom: initial;

    audio {
      opacity: .7;
      width: 255px;
    }
  }
}

.image_component h3 a{
  color: inherit;
  text-decoration: none;
}
