/* Correzioni specifiche per la visualizzazione su smartphone. */
.race-photo {
  background: #050707;
}

.race-photo img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .next-race {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .race-photo {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    background: #050707;
  }

  .race-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .race-info {
    border-left: 0;
    border-top: 4px solid var(--red);
  }
}

@media (max-width: 560px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: 112px;
    padding-bottom: 48px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    display: grid;
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 5;
    margin-top: 34px;
    opacity: 1;
    overflow: hidden;
    clip-path: none;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    background: #050707;
  }

  .hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .scroll-cue {
    display: none;
  }

  .race-info {
    padding: 50px 24px;
  }

  .race-info h2 {
    font-size: clamp(48px, 17vw, 68px);
  }

  .race-location {
    letter-spacing: 4px;
  }
}
