.segment-page--teen #team-locale .team-service-card > img.team-service-card__image--top {
  object-position: center 42%;
}

/* Le formule Teen privilegiano la fotografia: i testi descrittivi sono omessi. */
.segment-page--teen #prezzi .adult-pricing-grid--cards .adult-price-card__media {
  aspect-ratio: 4 / 3 !important;
}

/* Hero Teen: il gruppo resta protagonista e il palo laterale esce dal ritaglio. */
.segment-page--teen #home .segment-hero-background {
  overflow: hidden;
}

.segment-page--teen #home .segment-hero-background img {
  object-position: center 42% !important;
  transform: translateX(6%) scale(1.12);
  transform-origin: center;
}

/* Schema compatto della giornata tipo. */
.segment-page--teen #programma-tipo .teen-daily-routine {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
  outline: none;
}

.segment-page--teen #programma-tipo .teen-daily-routine:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(20, 43, 88, 0.22);
  outline-offset: 6px;
}

.segment-page--teen #programma-tipo .teen-daily-routine__item {
  display: flex;
  min-width: 0;
  min-height: 178px;
  padding: 18px 10px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #142b58;
  background: #fff;
  border: 1px solid rgba(20, 43, 88, 0.14);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(20, 43, 88, 0.07);
  text-align: center;
  scroll-snap-align: start;
}

.segment-page--teen #programma-tipo .teen-daily-routine__item--travel {
  background: #fffaf0;
}

.segment-page--teen #programma-tipo .teen-daily-routine__icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  color: #142b58;
  background: #f7f9fc;
  border: 1px solid rgba(20, 43, 88, 0.12);
  border-radius: 50%;
}

.segment-page--teen #programma-tipo .teen-daily-routine__item:nth-child(3n + 1) .teen-daily-routine__icon {
  color: #d83b36;
  background: rgba(239, 65, 54, 0.08);
}

.segment-page--teen #programma-tipo .teen-daily-routine__item:nth-child(3n + 2) .teen-daily-routine__icon {
  color: #b89d00;
  background: rgba(242, 236, 150, 0.32);
}

.segment-page--teen #programma-tipo .teen-daily-routine__icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2;
}

.segment-page--teen #programma-tipo .teen-daily-routine__icon .teen-daily-routine__flag {
  width: 30px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20, 43, 88, 0.12);
}

.segment-page--teen #programma-tipo .teen-daily-routine__time {
  display: flex;
  min-height: 34px;
  margin-top: 12px;
  align-items: flex-end;
  justify-content: center;
  color: rgba(20, 43, 88, 0.7);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.segment-page--teen #programma-tipo .teen-daily-routine__item h4 {
  margin: 8px 0 0;
  color: #142b58;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.15;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .segment-page--teen #programma-tipo .teen-daily-routine {
    grid-template-columns: repeat(7, minmax(150px, 42vw));
    padding: 4px 2px 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
}

@media (max-width: 520px) {
  .segment-page--teen #home .segment-hero-background img {
    transform: translateX(4%) scale(1.1);
  }

  .segment-page--teen #programma-tipo .teen-daily-routine {
    grid-template-columns: repeat(7, minmax(148px, 64vw));
  }
}
