// -----------------------------------------------------------------------------
// SEÇÃO - INICIAL
// -----------------------------------------------------------------------------
.section-inicial {
  position: relative;
  width: 100%;
  height: 418px; 
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  &::before {
    display: block;
    content: '';
    background: linear-gradient(270deg, #1D9E9A 0%, #103351 100%);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: 5;
  }

  div {
    position: relative;
    z-index: 10;

    h1 svg {
      max-width: 100%;

      // Telas até SM
      @include media($xs-max) {
        padding: 0 30px;
      }
    }

    p {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      font-family: 'Montserrat Alternates', sans-serif;
      text-transform: uppercase;
    }

    #scroll-down {
      cursor: pointer;
    }

    .sd-wrapper {
      margin-top: 8px;

      svg {
        opacity: 1;
        transition: all ease-in-out 0.5s;
        animation: opacityAnimation 3s linear infinite;

        &:not(:last-child) {
          margin-bottom: 5px;
        }
      }

      svg:nth-child(1) {
        animation-delay: 0s;
      }

      svg:nth-child(2) {
        animation-delay: 1s;
      }

      svg:nth-child(3) {
        animation-delay: 2s;
      }
    }
  }
}

// -----------------------------------------------------------------------------
// SEÇÃO - REDUÇÃO DOS IMPACTOS AMBIENTAIS
// -----------------------------------------------------------------------------
.section-reducao {
  // padding-top: 110px;
  // padding-bottom: 126px;

  .text-wrapper {
    padding-top: 110px;
    padding-bottom: 126px;

    // Telas até LG
    @include media($md-max) {
      padding-top: 70px;
      padding-bottom: 45px;
    }
  }

  .img-wrapper {
    img {
      // position: absolute;
      left: 30px;
      top: -140px;
      z-index: 5;
      margin-left: 30px;

      // Telas até MD
      @include media($sm-max) {
        position: static;
        max-width: 100%;
      }
    }
  }

  .text-wrapper {

    h2,
    h2 span {
      font-weight: 900;
      font-family: 'Montserrat Alternates', sans-serif;
      color: #7DC193;
      margin-bottom: 25px;
    }

    .texto-redacao {
      color: #5A5A5A;
      font-family: 'Montserrat Alternates';
      margin-bottom: 15px;
    }

    .texto-destaque-redacao {
      color: #5A5A5A;
      font-family: 'Montserrat Alternates';

    }
  }
}

@keyframes opacityAnimation {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

// -----------------------------------------------------------------------------
// SEÇÃO - ESG
// -----------------------------------------------------------------------------
.section-esg {
  .col-md-4 {
    position: relative;
    background-color: #004581;
    padding: 75px 45px 60px 45px;
    ;
    font-size: 16px;
    color: #fff;
    line-height: 22px;

    h3 {
      margin-bottom: 8px;
    }

    &::before {
      display: flex;
      align-items: center;
      justify-content: center;
      content: 'e';
      width: 116px;
      min-width: 116px;
      height: 116px;
      background-color: inherit;
      position: absolute;
      top: -58px;
      border-radius: 50%;
      background-color: #176BB5;
      @extend.font64;
      font-weight: 700;
      line-height: 25px;
      color: #fff;
    }

    // Telas até MD
    @include media($sm-max) {
      padding-bottom: 90px;
    }
  }

  .col-md-4:nth-child(2) {
    background-color: #0E8582;

    &::before {
      content: 's';
      background-color: #1E9E9B;
    }
  }

  .col-md-4:nth-child(3) {
    background-color: #4FAA6C;

    &::before {
      content: 'g';
      background-color: #65D98B;
    }

    // Telas até MD
    @include media($sm-max) {
      padding-bottom: 60px;
    }
  }

  // Telas até SM
  @include media($xs-max) {
    margin-top: 30px;
  }
}

// -----------------------------------------------------------------------------
// SEÇÃO - SLIDER ESG
// -----------------------------------------------------------------------------
.section-slider-esg {
  background-color: #052845;
  padding: 180px 0 80px 0;
  background-image: url("assets/images/bg-esg.png");
  background-repeat: repeat-x;
  background-position: top;

  .swiper-slide {
    width: 368px !important;
    aspect-ratio: 368 / 353;
    max-width: 100%;
    border-radius: 5px;
    overflow: hidden;

    img {
      position: absolute;
      left: 0;
      top: 0;
      transition: all ease-in-out .3s;
    }

    &::before {
      display: block;
      content: '';
      position: absolute;
      width: 100%;
      height: 209px;
      background: linear-gradient(360deg, rgba(16, 51, 81, 0.8) 0%, rgba(16, 51, 81, 0) 100.21%);
      left: 0;
      bottom: 0;
      border-radius: 5px;
      z-index: 5;
    }

    .title-wrapper {
      position: absolute;
      left: 30px;
      bottom: 30px;
      z-index: 10;
    }

    h3 {
      position: relative;
      display: flex;
      align-items: center;
      font-size: 20px;
      font-weight: 700;
      text-transform: uppercase;

      &::before {
        display: flex;
        align-items: center;
        justify-content: center;
        content: '';
        background-image: url("data:image/svg+xml,%3csvg width='19' height='19' viewBox='0 0 19 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M10 0V19' stroke='white' stroke-width='2'/%3e%3cpath d='M19 10L0 10' stroke='white' stroke-width='2'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        width: 47px;
        height: 47px;
        min-width: 47px;
        border-radius: 50%;
        background-color: #65D98B;
        margin-right: 14px;
      }
    }

    &:hover {
      img {
        transform: scale(1.1);
      }
    }
  }

  .esg-pagination {
    margin-top: 80px;
  }

  // Telas até SM
  @include media($xs-max) {
    .swiper-esg {
      padding: 0 20px;
    }

    .esg-pagination {
      margin-top: 40px;
    }
  }
}