/* V34 — controlli hero essenziali e fotografie staff uniformi. */
.hero-slider__controls-inner {
  justify-content: center !important;
}

.hero-slider__navigation {
  margin-inline: auto;
}

.hero-dots {
  display: none !important;
}

/* Tutte le fotografie dello staff hanno la stessa misura; solo la Direzione è più grande. */
.team-grid:not(.team-grid--executive) {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px) !important;
  justify-content: center;
  max-width: 1240px;
  margin-inline: auto;
}

.team-grid:not(.team-grid--executive) .team-card {
  width: 220px;
}

.team-grid:not(.team-grid--executive) .team-card__media {
  width: 220px;
  height: 220px;
  aspect-ratio: auto;
}

.team-grid--executive {
  grid-template-columns: repeat(2, 300px) !important;
  justify-content: center;
  max-width: 660px !important;
  margin-inline: auto;
}

.team-grid--executive .team-card {
  width: 300px;
}

.team-grid--executive .team-card__media {
  width: 300px;
  height: 300px;
  aspect-ratio: auto;
}

.team-card__media img {
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 760px) {
  .team-grid:not(.team-grid--executive),
  .team-grid--executive {
    grid-template-columns: minmax(0, 330px) !important;
    max-width: 330px !important;
  }

  .team-grid:not(.team-grid--executive) .team-card,
  .team-grid--executive .team-card,
  .team-grid:not(.team-grid--executive) .team-card__media,
  .team-grid--executive .team-card__media {
    width: 100%;
  }

  .team-grid:not(.team-grid--executive) .team-card__media {
    height: 300px;
  }

  .team-grid--executive .team-card__media {
    height: 330px;
  }
}


/* V36 — controlli hero essenziali, senza badge o impulsi. */
.hero-slider__controls,
.hero-slider__controls-inner {
  pointer-events: none;
}

.hero-slider__navigation {
  position: relative;
  z-index: 8;
  pointer-events: auto;
}

.hero-slider__nav,
.hero-slider__pause {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: center;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.hero-slider__nav:hover,
.hero-slider__pause:hover,
.hero-slider__nav:focus-visible,
.hero-slider__pause:focus-visible {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 9px 22px rgba(0,0,0,.2);
}

.hero-slider__nav:active,
.hero-slider__pause:active {
  transform: translateY(0) scale(.97);
  box-shadow: 0 5px 14px rgba(0,0,0,.16);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__nav,
  .hero-slider__pause {
    transition: none;
  }
}
