/* Estilo automático para a página: projetos */
#cabecalho {
  min-height: 530px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: -170px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;

  .sombra-servico {
    background-image: linear-gradient(#00000054, black);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
    top: 0;
  }

  .barras {
    &::after {
      background-color: #ffffff;
      background-size: auto;
      display: inline-block;
      width: 100%;
      height: 1px;
      content: "";
      right: 135px;
      position: absolute;
      z-index: 0;
      bottom: 60px;
    }
    &::before {
      background-color: #ffffff;
      background-size: auto;
      display: inline-block;
      width: 1px;
      height: 360px;
      content: "";
      right: 135px;
      position: absolute;
      z-index: 0;
      bottom: 0;
    }
  }

  .cabecalho {
    display: flex;
    justify-content: center;
    margin-top: 100px;

    li {
      font-weight: 300;
      font-size: 18px;
      line-height: 160%;
      text-align: center;
      color: #fff;
      list-style-type: none;
      letter-spacing: 1px;
    }
    .destaque {
      font-weight: 600;
    }
  }

  h1 {
    vertical-align: middle;
  }
}

#produtos {
  padding: 100px 0;

  a {
    color: #2c2c2c;
  }

  .card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    cursor: pointer;
    width: 100%;
  }

  h2 {
    font-weight: 600;
    text-align: center;
    margin-bottom: 26px;
  }
  .text-prod {
    font-weight: 300;
    font-size: 18px;
    line-height: 160%;
    text-align: center;
    margin-bottom: 40px;
    color: #2c2c2c;
  }

  .card-produtos {
    position: relative;
    margin: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;

    &::after {
      background-color: #2c2c2c;
      background-size: auto;
      display: inline-block;
      width: 56px;
      height: 56px;
      content: "";
      top: -15px;
      right: -15px;
      position: absolute;
      z-index: -1;
    }
    &::before {
      background-color: #2c2c2c;
      background-size: auto;
      display: inline-block;
      width: 56px;
      height: 56px;
      content: "";
      bottom: -15px;
      left: -15px;
      position: absolute;
      z-index: -1;
    }

    .moldura {
      overflow: hidden;

      .img-prod {
        width: 100%;
        object-fit: cover;
        height: 315px;
        transition: transform 0.5s ease-in-out;
      }
    }

    .inf-card-prod {
      padding: 32px;
      background-color: #f4f3f3;
      display: flex;
      flex-direction: column;
      flex: 1;

      .end-prod {
        font-weight: 500;
        font-size: 18px;
        line-height: 31px;
        letter-spacing: 0.9px;
      }

      .dife-link {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
        flex: 1;

        .list-dif-prod {
          margin: 0 0 20px 0;
          padding: 0;

          li {
            list-style-type: none;
            margin-bottom: 10px;
            font-weight: 400;
            font-size: 16px;
            line-height: 31px;
            letter-spacing: 0.8px;

            .Icon-prod {
              margin-right: 10px;
            }
          }
        }

        .btn-conheça-prod {
          font-weight: 400;
          font-size: 16px;
          line-height: 31px;
          letter-spacing: 0.8px;
          vertical-align: middle;
          background-color: #fff;
          padding: 16px 32px;
          border: 1px solid #2c2c2c;
          transition: 300ms all ease-in-out;
          margin-top: auto;
        }
      }
    }
  }

  .card-produtos:hover .img-prod {
    transform: scale(1.1);
  }
  .card-produtos:hover .btn-conheça-prod {
    color: #fff;
    background-color: #dd6d34 !important;
  }

  .btn-padrao {
    border: 1px solid #2c2c2c;
    padding: 0 0px 0 22px;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 1px;
    text-align: center;
    color: #2c2c2c;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: 300ms all ease-in-out;

    .moldura-seta {
      padding: 22px;
      transition: 300ms all ease-in-out;
      border-left: solid 1px #2c2c2c;
      margin-left: 22px;
      background-color: #fff;
    }
  }
  .btn-padrao:hover {
    background-color: #009651;
    color: #fff;
    border: 1px solid #fff;
  }
  .btn-padrao:hover .moldura-seta {
    border-left: solid 1px #fff;
    background-color: #dd6d34;
  }
  .btn-padrao:hover .moldura-seta img {
    transition: 300ms all ease-in-out;
    filter: invert(100%) sepia(0%) saturate(7486%) hue-rotate(296deg)
      brightness(109%) contrast(99%);
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 992px) {
  #produtos {
    padding: 60px 0;
    .text-prod {
      margin-bottom: 0px;
    }
  }
  #cabecalho {
    .barras {
      display: none;
    }
  }
}

/* MOBILE */
@media all and (max-width: 767px) {
  #cabecalho {
    .barras {
      display: none;
    }
  }

  #produtos {
    padding: 60px 0;
    .text-prod {
      margin-bottom: 0px;
    }

    .card-produtos {
      .inf-card-prod {
        .dife-link {
          display: flex;
          justify-content: space-between;
          align-items: flex-start;
          flex-direction: column;
        }
      }
    }
  }
}