/* VenetoTech structured home components, release 4.0.0. */

/* Hero: both bilingual lines share the same physical left edge. */
.vt-hero__series h1 span {
  direction: rtl;
  text-align: left;
}

/* Configurable, accessible Showcase carousel. */
.vt-showcase__frame {
  position: relative;
  background: #130b2d;
}

.vt-showcase__track {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  overflow: hidden;
}

.vt-showcase__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease, visibility .6s ease;
}

.vt-showcase__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vt-showcase__slide a,
.vt-showcase__slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.vt-showcase__slide img,
.vt-showcase__frame .vt-showcase__slide img {
  aspect-ratio: auto;
  object-fit: cover;
}

.vt-showcase__dots {
  align-items: center;
}

.vt-showcase__dots button {
  width: 24px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #d8d8dd;
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}

.vt-showcase__dots button[aria-selected="true"] {
  width: 34px;
  background: var(--vt-pink);
}

.vt-showcase__dots button:focus-visible {
  outline: 3px solid rgba(210, 10, 131, .32);
  outline-offset: 4px;
}

/* The full ornament crop from the approved design. */
.vt-section-heading__art {
  width: 165px;
  height: 150px;
  flex: 0 0 165px;
  object-fit: contain;
  object-position: center;
  overflow: visible;
}

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

/* The supplied 1920x495 artwork is immutable; only article copy is dynamic. */
.vt-article-feature {
  width: min(1920px, 100%);
  height: 495px;
  min-height: 495px;
  display: grid;
  grid-template-columns: minmax(0, 1200px) minmax(0, 1fr);
  grid-template-rows: 386px 109px;
  grid-template-areas:
    "content image-space"
    "action image-space";
  margin-inline: auto;
  overflow: hidden;
  color: #fff;
  background: #203792 url('../images/home-articles-bg.webp') center top / 100% 100% no-repeat;
}

.vt-article-feature__content {
  grid-area: content;
  min-width: 0;
  padding: 48px 195px 38px 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  direction: rtl;
  text-align: right;
  background: transparent;
}

.vt-article-feature__content::before {
  display: none;
}

.vt-article-feature__content h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
  line-height: 1.65;
}

.vt-article-feature__content p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 2;
}

.vt-article-feature__content > div {
  max-height: 205px;
  overflow: hidden;
}

.vt-article-feature__action {
  grid-area: action;
  position: relative;
  height: 109px;
  display: flex;
  align-items: flex-start;
  padding-left: 140px;
  direction: ltr;
  background: transparent;
}

.vt-article-feature__action::before,
.vt-article-feature__action::after {
  content: "";
  position: absolute;
  height: 2px;
  background: #bcbcc2;
}

.vt-article-feature__action::before {
  top: 0;
  left: 0;
  width: 124px;
}

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

.vt-article-feature__action .vt-button {
  width: 280px;
  min-height: 76px;
  flex: 0 0 280px;
  margin: 0;
  border: 1px solid #a9a9b2;
  border-radius: 24px;
  color: var(--vt-pink);
  background: rgba(255, 255, 255, .98);
  font-size: 20px;
}

/* Home now reuses every field from consultation?view=form. */
.vt-consultation__grid {
  min-height: 600px;
  grid-template-columns: minmax(500px, .72fr) minmax(0, 1.55fr);
}

.vt-consultation__form {
  width: 372px;
  padding: 25px 0 20px;
  gap: 8px;
}

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

.vt-consultation__form .vt-field input,
.vt-consultation__form .vt-field select,
.vt-consultation__form .vt-field textarea {
  min-height: 42px;
  padding: 7px 12px;
  direction: rtl;
  text-align: right;
  border-radius: 10px;
}

.vt-consultation__form .vt-field input[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

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

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

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

/* Footer social title and links are live content; only the QR is an image. */
.footer-social {
  width: 540px;
  height: auto;
  align-self: center;
  direction: rtl;
  text-align: right;
}

.footer-social h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.footer-social__row {
  display: flex;
  align-items: center;
  gap: 24px;
  direction: ltr;
}

.footer-social__menu {
  min-width: 0;
}

.vt-social-menu {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  direction: ltr;
}

.vt-social-menu a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  color: #fff;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.vt-social-menu a:hover,
.vt-social-menu a:focus-visible {
  color: #ff8ed1;
  border-color: #ff8ed1;
  transform: translateY(-2px);
}

.vt-social-menu a:focus-visible {
  outline: 3px solid rgba(255, 142, 209, .35);
  outline-offset: 3px;
}

.vt-social-menu svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vt-social-menu__item--telegram svg,
.vt-social-menu__item--linkedin svg,
.vt-social-menu__item--whatsapp svg {
  fill: currentColor;
  stroke: none;
}

.vt-social-icon__dot {
  fill: currentColor;
  stroke: none;
}

.footer-social__divider {
  width: 3px;
  height: 64px;
  flex: 0 0 3px;
  background: var(--vt-pink);
}

.footer-social .footer-social__qr {
  width: 96px;
  height: 98px;
  flex: 0 0 96px;
  object-fit: contain;
  image-rendering: auto;
}

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

  .vt-article-feature {
    grid-template-columns: minmax(0, 68%) minmax(0, 32%);
  }

  .vt-article-feature__content {
    padding: 44px 56px;
  }

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

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

  .footer-social {
    width: 100%;
  }

  .footer-social__row {
    gap: 16px;
  }

  .vt-social-menu {
    gap: 9px;
  }

  .vt-social-menu a {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 900px) {
  .vt-showcase__frame {
    width: calc(100% - 32px);
  }

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

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

  .vt-article-feature {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(360px, auto) 96px;
    grid-template-areas:
      "content"
      "action";
    background-size: auto 495px;
    background-position: 64% top;
  }

  .vt-article-feature__content {
    min-height: 360px;
    padding: 45px 28px;
    background: rgba(29, 49, 135, .82);
  }

  .vt-article-feature__action {
    height: 96px;
    padding-left: 72px;
    background: #fff;
  }

  .vt-article-feature__action::before {
    width: 58px;
  }

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

  .vt-article-feature__action .vt-button {
    width: 225px;
    min-height: 64px;
    flex-basis: 225px;
    font-size: 17px;
  }

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

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

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

  .footer-social {
    grid-column: 1 / -1;
  }

  .footer-social__row {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .vt-showcase__track {
    aspect-ratio: 16 / 8.5;
  }

  .vt-showcase__slide img,
  .vt-showcase__frame .vt-showcase__slide img {
    object-position: center;
  }

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

  .vt-article-feature__content h3 {
    font-size: 20px;
  }

  .vt-article-feature__content p {
    font-size: 14px;
  }

  .vt-article-feature__action {
    padding-left: 40px;
  }

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

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

  .vt-article-feature__action .vt-button {
    width: 190px;
    flex-basis: 190px;
  }

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

  .footer-social__row {
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-social__divider {
    height: 58px;
  }

  .vt-social-menu {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vt-showcase__slide {
    transition: none;
  }
}
