/* 9GU — mobile revision: horizontal swipe, portrait priority, compact team */
@media (max-width: 768px) {
  /* Desktop-only information strip */
  .stripe {
    display: none;
  }

  /* Keep all cards in a single horizontal track, with a peek of the next one. */
  #chi-siamo .grid3,
  #reclutamento .steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 5%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 5% 20px;
    margin-inline: -5.5556%;
    scrollbar-width: thin;
    scrollbar-color: #6e642f transparent;
  }
  #chi-siamo .grid3 > .tile,
  #reclutamento .steps > .step {
    flex: 0 0 82%;
    width: 82%;
    min-width: 0;
    scroll-snap-align: start;
    padding: 24px;
  }
  /* On wider phones show a little more of the next card. */
  @media (min-width: 480px) {
    #chi-siamo .grid3 > .tile,
    #reclutamento .steps > .step {
      flex-basis: 69%;
      width: 69%;
    }
  }

  /* Focus photo framing on the faces on the right, not the center of the image. */
  .world-new::before {
    background-size: auto 100%;
    background-position: 78% center;
  }
  .world-new::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.78) 46%, rgba(0, 0, 0, 0.2) 100%);
  }
  .members-background-section::before {
    background-position: 77% center;
  }
  .members-background-section::after {
    background: linear-gradient(90deg, rgba(4, 9, 6, 0.94), rgba(4, 9, 6, 0.65) 54%, rgba(4, 9, 6, 0.18)),
      linear-gradient(0deg, rgba(4, 9, 6, 0.85), transparent 55%);
  }
  .hero {
    background-position: 72% center;
  }

  /* Team section: remove excess vertical whitespace, keep cards legible. */
  .members-background-section {
    min-height: 0;
    padding: 46px 0 26px;
    align-items: flex-start;
  }
  .members-content {
    justify-content: flex-start;
  }
  .members-description {
    line-height: 1.55;
    margin: 0 0 20px;
  }
}
