/* Stemma Care Co. / Website 4.2.2 — precise post-launch visual hotfixes.
   Preserve the original visual design, app screens and layout hierarchy. */

/* 01 — Hero disclosure was removed in HTML. Remove the crossing divider rule,
   but preserve the small corporate text in the hero's bottom row. */
.v4-home .v4-bottom-rule { border-top: 0; }

/* 02 — Replace the asterisk-like placeholder with the approved source-board
   full-colour Stemmii icon (the exact asset used on the App page). */
.v4-home .v4-eco-icon {
  box-sizing:border-box;
  width:50px;
  height:50px;
  flex:0 0 50px;
  overflow:hidden;
  padding:0;
  background:transparent;
  border-radius:15px;
  box-shadow:0 3px 12px rgba(20,76,65,.11);
}
.v4-home .v4-eco-icon img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}

/* 03 — All six cards share precisely the same width, height, upper edge and
   screenshot aspect ratio. Earlier site CSS targeted only the first three
   figures with larger flex-bases and ornamental vertical transforms. */
.v4-home .v4-gallery.app-stage {
  --stemmii-gallery-card-width:245px;
  min-height:0;
  align-items:flex-start;
  justify-content:flex-start;
  /* Reserve end-of-track room so slide 6 can become the active centred card
     on desktop and tablet rather than getting stuck at 4 or 5 of 6. */
  padding-right:max(12px, calc((100% - var(--stemmii-gallery-card-width))/2));
}
.v4-home .v4-gallery.app-stage > figure.app-image,
.v4-home .v4-gallery.app-stage > figure.app-image:nth-child(1),
.v4-home .v4-gallery.app-stage > figure.app-image:nth-child(2),
.v4-home .v4-gallery.app-stage > figure.app-image:nth-child(3) {
  box-sizing:border-box;
  flex:0 0 var(--stemmii-gallery-card-width);
  width:var(--stemmii-gallery-card-width);
  min-width:var(--stemmii-gallery-card-width);
  max-width:var(--stemmii-gallery-card-width)!important;
  height:auto;
  margin:0;
  align-self:flex-start;
  padding:7px 7px 12px;
  transform:none;
  scroll-snap-align:center;
}
.v4-home .v4-gallery .app-image .screenshot-button,
.v4-home .v4-gallery .app-image img { width:100%; }
.v4-home .v4-gallery .app-image img {
  display:block;
  height:auto;
  aspect-ratio:390/844;
  object-fit:cover;
  object-position:top;
}
@media (max-width:920px) {
  .v4-home .v4-gallery.app-stage { --stemmii-gallery-card-width:clamp(185px,26vw,245px); }
}
@media (max-width:650px) {
  .v4-home .v4-eco-icon {width:45px;height:45px;flex-basis:45px;border-radius:13px;}
  .v4-home .v4-gallery.app-stage {
    --stemmii-gallery-card-width:clamp(205px,64vw,250px);
    gap:14px;
    padding-block:10px;
    padding-inline:max(10px, calc((100% - var(--stemmii-gallery-card-width))/2));
    scroll-padding-inline:50%;
  }
}
@media (max-width:365px) {
  .v4-home .v4-gallery.app-stage { --stemmii-gallery-card-width:clamp(185px,68.75vw,220px); }
}
@media(prefers-reduced-motion:reduce) {
  .v4-home .v4-gallery.app-stage {scroll-behavior:auto;}
}
