/* Massimobility | Four-scene, cinematic hero carousel (homepage only).
   Layered after existing site styles to retain navigation, layout and body content. */
body[data-page="index.html"] .hero-media .hero-slideshow {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 1 760px;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
  background: #0b2536;
  border-radius: 9px;
  box-shadow: 0 22px 55px rgba(0,0,0,.18);
}
body[data-page="index.html"] .hero-slideshow__images { position: absolute; inset: 0; overflow: hidden; }
/* Override legacy .hero-media img mobile height and entrance animation. */
body[data-page="index.html"] .hero-media .hero-slide {
  position: absolute;
  display: block;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  filter: none;
  transform: none;
  animation: none !important;
  transition: opacity 1150ms ease-in-out, visibility 0s linear 1150ms;
  will-change: opacity;
}
body[data-page="index.html"] .hero-media .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 1150ms ease-in-out, visibility 0s linear 0s;
}
body[data-page="index.html"] .hero-media .hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(3,19,30,.45),transparent 19%,transparent 83%,rgba(3,19,30,.07));
  pointer-events: none;
  z-index: 2;
}
body[data-page="index.html"] .hero-slideshow__controls {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 3;
  bottom: clamp(12px,2.3vw,22px);
  left: clamp(12px,2.3vw,22px);
  right: clamp(12px,2.3vw,22px);
}
body[data-page="index.html"] .hero-slideshow__controls[hidden] { display: none !important; }
body[data-page="index.html"] .hero-slideshow__dots { display: flex; align-items: center; gap: 8px; }
body[data-page="index.html"] .hero-slide-dot {
  position: relative;
  display: block;
  width: clamp(24px,4vw,37px);
  height: 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body[data-page="index.html"] .hero-slide-dot::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  background: rgba(245,250,255,.5);
  border-radius: 9px;
  transition: background .3s ease;
}
body[data-page="index.html"] .hero-slide-dot.is-active::before { background: #88dbf6; }
body[data-page="index.html"] .hero-slide-dot:hover::before { background: white; }
body[data-page="index.html"] .hero-slideshow__toggle {
  flex: 0 0 33px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(7,28,42,.52);
  border: 1px solid rgba(240,249,253,.32);
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
}
body[data-page="index.html"] .hero-slideshow__toggle:hover { background: rgba(6,31,47,.86); }
body[data-page="index.html"] .hero-slideshow__toggle-icon {
  display: block;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
body[data-page="index.html"] .hero-slideshow__toggle.is-paused .hero-slideshow__toggle-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 0;
}
body[data-page="index.html"] .hero-slide-dot:focus-visible,
body[data-page="index.html"] .hero-slideshow__toggle:focus-visible { outline: 2px solid #91e1fb; outline-offset: 4px; }
@media (max-width:1120px) {
  body[data-page="index.html"] .hero-media .hero-slideshow { width: min(100%,620px); flex-basis: auto; }
}
@media (max-width:760px) {
  body[data-page="index.html"] .hero-media .hero-slideshow { width: 100%; max-width: 620px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="index.html"] .hero-media .hero-slide,
  body[data-page="index.html"] .hero-media .hero-slide.is-active {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Composition-aware crop from the four original landscape photo panels.
   Keep faces visible across mobile and desktop square hero sizes. */
body[data-page="index.html"] .hero-media .hero-slide:nth-child(1) { object-position: 56% center; }
body[data-page="index.html"] .hero-media .hero-slide:nth-child(2) { object-position: 48% center; }
body[data-page="index.html"] .hero-media .hero-slide:nth-child(3) { object-position: 49% center; }
body[data-page="index.html"] .hero-media .hero-slide:nth-child(4) { object-position: 50% center; }
