/* VenetoTech homepage polish and real product-series filtering, release 5.0.0. */

/* The active marker follows the rendered menu label instead of using a fixed 26px dash. */
.site-navigation .current > a::after,
.site-navigation .active > a::after {
  left: 0;
  right: 0;
  width: 100%;
}

/* Full ornament crop: keep the pale lower edge and align it with the ARTICLES label. */
.vt-section-heading__art {
  width: 165px;
  height: 180px;
  flex-basis: 165px;
  object-fit: contain;
  object-position: center;
}

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

/* The action line on the right is bottom-aligned with the button as in the UI artwork. */
.vt-article-feature__action {
  isolation: isolate;
}

.vt-article-feature__action::before,
.vt-article-feature__action::after {
  z-index: 2;
  display: block;
  opacity: 1;
  background: #b7b8be;
}

.vt-article-feature__action::after {
  top: 75px;
  left: 451px;
  right: 0;
  width: auto;
  max-width: none;
}

.vt-article-feature__action .vt-button {
  position: relative;
  z-index: 3;
  border: 1px solid #a9a9b2;
  border-bottom: 1px solid #a9a9b2;
}

/* Keep all consultation fields while fitting the form into the 560px visual. */
.vt-consultation__grid {
  min-height: 560px;
  grid-template-columns: minmax(570px, .72fr) minmax(0, 1.55fr);
  gap: 0;
}

.vt-consultation__form {
  width: min(540px, calc(100% - 40px));
  padding: 42px 0 34px;
  gap: 10px;
  margin-left: 50px;
  position: relative;
  z-index: 1;
}

.vt-consultation__form .vt-form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

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

.vt-consultation__form .vt-button {
  margin-top: 4px;
}

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

/* The new map asset is a native 1920x436 crop, so no vertical upscaling is needed. */
.vt-map img {
  height: 436px;
  object-fit: cover;
}

/* Physically align the Persian social title with the left edge of the icon menu. */
.footer-social h2 {
  direction: rtl;
  text-align: left;
}

/* Product archive feedback for links opened from the Hero series list. */
.vt-products-filter-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin: -14px 0 32px;
  padding: 14px 18px;
  border-inline-start: 4px solid var(--vt-pink);
  background: #f6f5f8;
  color: var(--vt-ink);
}

.vt-products-filter-status a {
  color: var(--vt-pink);
  font-weight: 600;
}

.vt-products-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px;
  text-align: center;
  background: #f7f6f9;
}

@media (min-width: 1201px) {
  .vt-section-heading--articles .vt-section-heading__art {
    transform: translateY(57px);
  }
}

@media (max-width: 1200px) {
  .vt-section-heading__art {
    width: 125px;
    height: 136px;
    flex-basis: 125px;
  }

  .vt-consultation__grid {
    grid-template-columns: minmax(520px, .9fr) minmax(0, 1.3fr);
  }

  .vt-consultation__form {
    width: min(490px, calc(100% - 32px));
  }
}

@media (max-width: 900px) {
  .vt-section-heading__art {
    width: 90px;
    height: 98px;
    flex-basis: 90px;
  }

  .vt-articles .vt-section-heading {
    min-height: 98px;
  }

  .vt-article-feature__action::after {
    top: 63px;
    left: 314px;
  }

  .vt-consultation__grid {
    grid-template-columns: 1fr;
  }

  .vt-consultation__form {
    width: min(620px, calc(100% - 40px));
  }
}

@media (max-width: 600px) {
  .vt-section-heading__art {
    width: 58px;
    height: 63px;
    flex-basis: 58px;
  }

  .vt-articles .vt-section-heading {
    min-height: 63px;
  }

  .vt-article-feature__action::after {
    left: 242px;
  }

  .vt-consultation__form .vt-form-row {
    grid-template-columns: 1fr;
  }

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