@import url(sobre-include.css);
@import url(produtos-include.css);
@import url(cancelas-include.css);
@import url(automacao-include.css);
@import url(swiper.css);
@import url(clientes-include.css);

/* Main */
.blue-rectangle,
.orange-card,
.blue-rectangle-2 {
  display: none;
}

.main-mobile {
  display: none;
}

.main {
  background-image: url(../images/main-bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  /* min-height: calc(100vh - 302px); */
  padding: 2.5rem;
  border-bottom: 8px solid orange;
  background-color: #1439ac54;
  background-blend-mode: multiply;
}

.main .container {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 100%;
  padding: 0 0 0 12rem;
}

.main__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main__text .first-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

}

.main__text .first-title::after {
  display: block;
  content: '';
  background-color: var(--orange);
  height: 3px;
  width: 100%;
}

.main__image {
  position: relative;
  overflow: hidden;
  display: flex;
  border-radius: 16px;
  height: 500px;
  width: 100%;
}

.main__image img {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  animation: translate-image 5s linear infinite;
  transform: scale(1.5);
  height: inherit;
  object-fit: cover;
}


@keyframes translate-image {
 to {
  right: 25%;
 }
}



@media screen and (max-width: 1440px) {
  .main .container {
    padding: 0 0 0 6rem;
  }
}

@media screen and (max-width: 1280px) {
  .main .container {
    padding: 0 0 0 4rem;
  }
}

@media screen and (max-width: 1024px) {
  .main .container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.main-container {
  background-image: url(../images/main-bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: calc(95vh - 118px);
}

.main-container .swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-container .swiper-slide img {
  width: 100%;
  height: auto;
}

.main-container .main-description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
}

.main-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 8px;
  width: 100%;
}

.main-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 8px;
  width: 100%;
  padding: 0 1rem;
}

.main-next,
.main-prev {
  width: 24px;
  height: 24px;
  background-color: var(--orange);
  border-radius: 8px;
  z-index: 10;
}

@media screen and (max-width: 924px) {
  .main-desktop {
    display: none;
  }
  .main-mobile {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .blue-rectangle {
    display: block;
    position: absolute;
    right: 0;
    top: 0px;
    z-index: 999;
  }

  .main-container {
    background-position: left top;
    background-image: url(../images/mobile-main.jpg);
    background-size: cover;
    height: auto;
    background-color: #00000067;
    background-blend-mode: multiply;
    display: flex;
    align-items: center;

  }

  .main-container .orange-card {
    display: block;
    position: absolute;
    left: 4rem;
    top: 0;
    z-index: 999;
  }

  
  .main-description {
    align-items: center;
    padding: 4rem 0.5rem !important;
  }

  .main-description h3 {
    font-weight: 900;
    font-size: 2rem;
    text-align: center;
  }

  .main-description h3::after {
    display: block;
    content: '';
    background: var(--orange);
    width: 100%;
    height: 3px;
    margin-top: 0.5rem
  }

  .main-description p {
    text-align: center;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }

  .main-img {
    position: relative;
    bottom: 0;
    z-index: 99;
  }
  .main-img img {
    width: 100%;
    object-fit: cover;
  }
  .blue-rectangle-2 {
    display: block;
    position: absolute;
    left: 0;
    bottom: -11px;
  }
}
