/* VenetoTech home-page fidelity and overflow repair, release 3.0.0. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body > *,
.site-header__inner,
.vt-section,
.vt-container,
.site-footer__main {
  min-width: 0;
}

/* The page is RTL, but the design's header columns are physically LTR. */
.site-header__inner {
  direction: ltr;
}

.site-brand {
  display: flex;
  justify-content: flex-start;
}

.site-navigation {
  direction: rtl;
}

.partner-brand {
  direction: rtl;
  justify-content: flex-end;
}

/* Explicit heading parts avoid bidi reordering of text nodes and pseudo-elements. */
.vt-section-heading {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  direction: ltr;
  color: #30313c;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.vt-section-heading::before,
.vt-section-heading::after {
  display: none;
}

.vt-section-heading__line {
  height: 2px;
  flex: 1 1 auto;
  background: #c7c7cc;
}

.vt-section-heading__accent {
  width: 124px;
  height: 8px;
  flex: 0 0 124px;
  background: var(--vt-pink);
}

.vt-section-heading__label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 18px;
  padding-inline: 28px;
  direction: ltr;
}

.vt-section-heading__label bdi {
  color: var(--vt-pink);
  font-style: normal;
}

.vt-section-heading--products .vt-section-heading__label,
.vt-section-heading--products .vt-section-heading__label span {
  color: #30313c;
}

.vt-section-heading--about .vt-section-heading__label bdi {
  color: var(--vt-blue);
}

.vt-section-heading--about .vt-section-heading__label,
.vt-section-heading--about .vt-section-heading__label span,
.vt-section-heading--articles .vt-section-heading__label {
  color: var(--vt-pink);
}

.vt-section-heading--articles .vt-section-heading__label {
  padding-right: 14px;
  font-size: 40px;
}

.vt-section-heading__art {
  width: 165px;
  height: 180px;
  flex: 0 0 165px;
  object-fit: contain;
  object-position: right bottom;
}

/* Products: the supplied card crops are half-resolution exports of the design. */
.vt-products {
  padding: 32px 0 68px;
}

.vt-products .vt-section-heading {
  margin-bottom: 114px;
}

.vt-products .vt-container {
  width: min(1668px, calc(100% - 64px));
}

.vt-product-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 388px);
  column-gap: 29px;
  row-gap: 28px;
  justify-content: start;
  align-items: start;
  direction: ltr;
}

.vt-product-card,
.vt-product-card:nth-child(n + 5) {
  min-width: 0;
  min-height: 0;
  height: auto;
  display: block;
  overflow: visible;
  background: transparent;
}

.vt-product-card img {
  width: 388px;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: initial;
}

.vt-product-card:nth-child(4) img {
  width: 464px;
  margin-left: -3px;
}

.vt-product-card:nth-child(7) img {
  width: 404px;
}

.vt-showcase {
  padding-bottom: 30px;
}

.vt-showcase__dots {
  margin-top: 22px;
}

/* About heading is the mirror of the Products heading in the reference. */
.vt-about {
  padding-bottom: 20px;
}

.vt-about .vt-section-heading {
  margin-bottom: 105px;
}

/* Article art, panel direction, fixed image height and separate action row. */
.vt-articles {
  padding-bottom: 45px;
}

.vt-articles .vt-section-heading {
  min-height: 180px;
  margin-bottom: 90px;
}

.vt-article-feature {
  width: min(1856px, 100%);
  height: 500px;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  grid-template-rows: 388px 112px;
  grid-template-areas:
    "content image"
    "action image";
  direction: ltr;
  overflow: hidden;
  background: #fff;
  margin-left: 0;
  margin-right: auto;
}

.vt-article-feature__content {
  grid-area: content;
  min-width: 0;
  padding: 55px 115px 55px 300px;
  direction: rtl;
  text-align: right;
  background: #203792;
}

.vt-article-feature__content::before {
  background:
    linear-gradient(135deg, rgba(181, 19, 139, .96) 0 13%, transparent 13.3%),
    linear-gradient(135deg, rgba(214, 31, 144, .48) 0 18%, transparent 18.3%);
}

.vt-article-feature__image {
  grid-area: image;
  height: 500px;
  min-width: 0;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.vt-article-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vt-article-feature__action {
  grid-area: action;
  height: 112px;
  display: flex;
  align-items: center;
  gap: 18px;
  direction: ltr;
}

.vt-article-feature__action::before {
  content: "";
  width: 124px;
  height: 2px;
  flex: 0 0 124px;
  background: #bcbcc2;
}

.vt-article-feature__action::after {
  content: "";
  width: min(640px, 34vw);
  height: 2px;
  flex: 0 1 640px;
  background: #bcbcc2;
}

.vt-article-feature__action .vt-button {
  width: 280px;
  min-height: 76px;
  flex: 0 0 280px;
  border-radius: 25px;
  font-size: 20px;
}

/* Consultation keeps the design's one-column form and wide visual. */
.vt-consultation {
  padding: 0;
}

.vt-consultation__grid {
  min-height: 560px;
  grid-template-columns: minmax(560px, .7fr) minmax(0, 1.55fr);
  gap: 40px;
  direction: ltr;
}

.vt-consultation__form {
  width: 372px;
  margin-inline: auto;
  padding: 62px 0 48px;
  direction: ltr;
  align-content: center;
}

.vt-consultation__form .vt-field input,
.vt-consultation__form .vt-field textarea {
  direction: ltr;
  text-align: left;
  border-radius: 12px;
}

.vt-consultation__form .vt-field textarea {
  min-height: 126px;
}

.vt-consultation__form .vt-button {
  width: 176px;
  min-height: 50px;
  margin-top: 8px;
}

.vt-consultation__visual {
  min-width: 0;
  min-height: 560px;
}

.vt-map {
  border-top-width: 5px;
}

.vt-map img {
  height: 436px;
}

/* Footer band and column order are taken directly from the approved design. */
.site-footer__brand {
  min-height: 159px;
  height: 159px;
  padding: 0;
  background: #a10d85 url('../images/footer-band.webp') center / cover no-repeat;
}

.site-footer__main {
  min-height: 242px;
  height: 242px;
  padding: 16px 80px;
  display: grid;
  grid-template-columns: 540px minmax(0, 1fr) 230px;
  gap: 70px;
  align-items: center;
  direction: ltr;
}

.footer-social {
  width: 540px;
  height: 210px;
}

.footer-social img {
  width: 540px;
  height: 210px;
  object-fit: contain;
}

.footer-address,
.footer-nav {
  direction: rtl;
  text-align: right;
}

.footer-address {
  justify-self: end;
  max-width: 680px;
}

.footer-nav {
  justify-self: end;
  min-width: 150px;
}

@media (min-width: 1201px) {
  .vt-section-heading--products > * {
    transform: translateY(33px);
  }

  .vt-section-heading--about > * {
    transform: translateY(103px);
  }

  .vt-about__content {
    transform: translateY(23px);
  }

  .vt-section-heading--articles .vt-section-heading__accent,
  .vt-section-heading--articles .vt-section-heading__line,
  .vt-section-heading--articles .vt-section-heading__label {
    transform: translateY(74px);
  }

  .vt-section-heading--articles .vt-section-heading__art {
    transform: translateY(-6px);
  }
}

@media (max-width: 1750px) {
  .vt-products .vt-container {
    width: calc(100% - 200px);
  }

  .vt-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }

  .vt-product-card img,
  .vt-product-card:nth-child(4) img,
  .vt-product-card:nth-child(7) img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .vt-article-feature__content {
    padding-left: clamp(80px, 12vw, 250px);
  }
}

@media (max-width: 1200px) {
  .vt-section-heading {
    font-size: 28px;
  }

  .vt-section-heading__accent {
    width: 80px;
    flex-basis: 80px;
  }

  .vt-section-heading__art {
    width: 125px;
    height: 145px;
    flex-basis: 125px;
  }

  .vt-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vt-article-feature__content {
    padding: 45px 60px;
  }

  .vt-consultation__grid {
    grid-template-columns: minmax(420px, .8fr) minmax(0, 1.4fr);
  }

  .site-footer__main {
    padding-inline: 32px;
    grid-template-columns: minmax(340px, 540px) 1fr 150px;
    gap: 28px;
  }

  .footer-social,
  .footer-social img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    direction: ltr;
  }

  .site-navigation {
    direction: rtl;
    overflow-y: auto;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .site-navigation.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .vt-section-heading {
    font-size: 24px;
  }

  .vt-section-heading__label {
    gap: 10px;
    padding-inline: 14px;
  }

  .vt-section-heading__accent {
    width: 48px;
    height: 6px;
    flex-basis: 48px;
  }

  .vt-section-heading__art {
    width: 90px;
    height: 110px;
    flex-basis: 90px;
  }

  .vt-products {
    padding-bottom: 80px;
  }

  .vt-products .vt-section-heading,
  .vt-about .vt-section-heading {
    margin-bottom: 54px;
  }

  .vt-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vt-about {
    padding-bottom: 90px;
  }

  .vt-articles .vt-section-heading {
    min-height: 110px;
    margin-bottom: 70px;
  }

  .vt-article-feature {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto 360px 100px;
    grid-template-areas:
      "content"
      "image"
      "action";
  }

  .vt-article-feature__content {
    min-height: 360px;
    padding: 50px 28px;
  }

  .vt-article-feature__image {
    height: 360px;
    clip-path: none;
  }

  .vt-article-feature__action::after {
    flex: 1;
  }

  .vt-consultation__grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    direction: rtl;
  }

  .vt-consultation__form {
    width: min(372px, calc(100% - 40px));
    padding-block: 50px;
  }

  .vt-consultation__visual {
    min-height: 380px;
    order: -1;
  }

  .vt-map img {
    height: 330px;
  }

  .site-footer__brand {
    background-position: 16% center;
  }

  .site-footer__main {
    height: auto;
    min-height: 0;
    padding: 35px 28px;
    grid-template-columns: 1fr 1fr;
    gap: 35px 25px;
    align-items: start;
  }

  .footer-social {
    width: min(540px, 100%);
    height: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .vt-section-heading {
    font-size: 19px;
  }

  .vt-section-heading__label {
    padding-inline: 9px;
  }

  .vt-section-heading__art {
    width: 58px;
    height: 80px;
    flex-basis: 58px;
  }

  .vt-section-heading--articles .vt-section-heading__label {
    font-size: 24px;
  }

  .vt-products .vt-container {
    width: calc(100% - 28px);
  }

  .vt-product-grid {
    gap: 18px 10px;
  }

  .vt-article-feature__action {
    gap: 10px;
  }

  .vt-article-feature__action::before {
    width: 28px;
    flex-basis: 28px;
  }

  .vt-article-feature__action .vt-button {
    width: 190px;
    min-height: 58px;
    flex-basis: 190px;
    font-size: 16px;
  }

  .vt-map img {
    height: 260px;
  }

  .site-footer__brand {
    height: 120px;
    min-height: 120px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .footer-social,
  .footer-address,
  .footer-nav {
    grid-column: auto;
    justify-self: stretch;
  }
}
