/* Estilo automático para a página: home */
.hero {
  overflow: hidden;
  position: relative;
  height: 55svh;
  margin-top: 95px;
  margin-bottom: 8px;

  &.cta {
    height: 64svh;
  }

  img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.85);
  }

  .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

    h2 {
      font-size: 32px;
      color: #fff;
      font-weight: 400;
      line-height: 50px;

      span {
        font-weight: 600;
      }
    }

    p {
      font-weight: 500;
      font-size: 24px;
      color: #fff;
    }

    @media (max-width: 992px) {
      h2 {
        font-size: 24px;
      }

      p {
        font-size: 16px;
      }
    }
  }

  .swiper {
    height: -webkit-fill-available;
    margin-top: 0;
  }
}

.hero.hero-prospec h2 p {
  font-size: 32px;
  color: #fff;
  font-weight: 400;
  line-height: 50px;
}

.hero.hero-prospec p {
  font-size: 20px;
  line-height: 160%;
  font-weight: 400;
}

.swiper-hero-nav {
  position: absolute;
  top: calc(50% - 16px);
  width: 100%;
  left: 0;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;

  .swiper-hero-prev,
  .swiper-hero-next {
    pointer-events: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    transition: opacity 0.2s;

    &.swiper-button-disabled {
      opacity: 0.3;
      cursor: default;
      pointer-events: none;
    }
  }
}

.swiper-servicos-container {
  position: relative;
}

.swiper-servicos-nav {
  position: absolute;
  top: calc(50% - 16px);
  width: calc(100% + 80px);
  left: -40px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;

  @media (max-width: 992px) {
    width: 100%;
    left: 0;
  }

  .swiper-servicos-prev,
  .swiper-servicos-next {
    pointer-events: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    transition: opacity 0.2s;

    &.swiper-button-disabled {
      opacity: 0.3;
      cursor: default;
      pointer-events: none;
    }
  }
}

section.servicos {
  .swiper {
    padding: 24px 0;
  }

  .swiper-slide {
    height: auto;
    display: flex;
  }

  .card-servico {
    margin: 10px;
    height: 100%;
    width: 100%;
    background-color: #fff;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 5px 5px 8px 0 #2c2c2c26;

    p {
      font-family: "Poppins";
      font-weight: 500;
      font-size: 18px;
      line-height: 100%;
      text-align: center;
      margin: 0;
    }

    a {
      font-family: "Poppins";
      font-weight: 500;
      font-size: 18px;
      line-height: 100%;
      text-align: center;
      color: #e54344;
      margin: 0;
    }

    img {
      width: 40px;
      height: 40px;
      object-fit: contain;
      aspect-ratio: 1 / 1;
    }
  }
}

section.noticias {
  .texto {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: fit-content;

    h2 {
      margin: 0;
      padding-left: 15px;
      border-left: 5px solid #e54344;
      font-size: 32px;
      color: #5a5a5a;
      font-weight: 400;

      span {
        font-weight: 600;
      }
    }
  }

  article {
    box-shadow: 0px 5px 8px 0 #3246573b;
    border-radius: 10px;
  }

  .wrapper {
    display: flex;
    gap: 32px;
  }

  .card-blog {
    flex: 1 1 calc(33% - 32px);
    border: none;

    .body {
      padding: 18px 18px 30px 18px;

      .info {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        color: #5a5a5a;
        font-weight: 600;
        font-size: 16px;

        p {
          font-weight: 600;
          margin: 0;
        }

        .post-cat {
          padding: 8px 16px;
          max-width: 195px;
          border-radius: 5px;
          background-color: #e6e6e6;
        }

        .date-cat {
          display: flex;
          align-items: center;
          gap: 8px;
        }
      }

      h3 {
        font-weight: 600;
        font-size: 20px;
        line-height: 160%;
        color: #62737b;
      }

      p {
        font-weight: 400;
        font-size: 16px;
        line-height: 160%;
        color: #62737b;
        margin: 0;
      }

      span {
        font-weight: 600;
        font-size: 18px;
        font-family: "Poppins";
        line-height: 160%;
        color: #e54344;
      }
    }
  }

  .card-gal {
    flex: 1 1 calc(50% - 32px);

    .card-thumb {
      img {
        width: 100%;
        height: 30vh;
        object-fit: cover;
        border-radius: 10px;
      }
    }

    .body {
      display: flex;
      justify-content: space-between;
      margin-top: 16px;

      a {
        color: #e54344;
        font-weight: 600;
        font-size: 18px;
        line-height: 160%;
      }

      p {
        color: #62737b;
        font-size: 18px;
        line-height: 160%;
        font-weight: 500;
      }

      @media (max-width: 640px) {
        flex-direction: column;
        gap: 10px;
      }
    }

    @media (max-width: 768px) {
      flex: 1;
    }
  }
}
