* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #5598d1;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  min-height: 760px;
  height: 78vh;
  max-height: 980px;
  overflow: hidden;
  background: #5598d1;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 39%;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

.hero h1 {
  margin: 31vh 0 0;
  font-size: clamp(3.1rem, 5vw, 5.4rem);
  line-height: .96;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.hero__intro {
  margin-top: clamp(70px, 8vh, 115px);
  font-size: clamp(1.15rem, 1.55vw, 1.7rem);
  line-height: 1.15;
  font-weight: 400;
}

.hero__intro p {
  margin: 0;
}

.hero a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.hero a:hover {
  opacity: .7;
}

.social {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  font-size: clamp(1.1rem, 1.35vw, 1.45rem);
  font-weight: 600;
  letter-spacing: .02em;
  pointer-events: auto;
}

/* LOGHI */
.games {
  background: #5598d1;
  padding: 90px 7vw 95px;
}

.games__grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}

.games__item {
  min-height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.games__item img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 185px;
  object-fit: contain;
}

/* Sochi deriva da un crop dello screenshot: il fondo coincide con la sezione */
.games__item:first-child img {
  width: 220px;
  max-height: 150px;
}

@media (max-width: 980px) {
  .hero {
    min-height: 680px;
    height: 76vh;
  }

  .hero__image {
    object-position: center 36%;
  }

  .hero h1 {
    margin-top: 30vh;
    font-size: clamp(2.8rem, 7vw, 4.6rem);
  }

  .hero__intro {
    margin-top: 85px;
  }

  .games {
    padding: 70px 8vw 80px;
  }

  .games__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px 40px;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 690px;
    min-height: 690px;
  }

  .hero__image {
    object-fit: cover;
    object-position: center top;
  }

  .hero__content {
    padding: 0 18px;
  }

  .hero h1 {
    margin-top: 305px;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    max-width: 95%;
  }

  .hero__intro {
    margin-top: 76px;
    font-size: 1.05rem;
    line-height: 1.22;
  }

  .social {
    margin-top: 24px;
    font-size: 1.05rem;
  }

  .games {
    padding: 58px 22px 70px;
  }

  .games__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 46px 20px;
  }

  .games__item {
    min-height: 120px;
  }

  .games__item img {
    max-height: 130px;
  }

  .games__item:first-child img {
    width: 150px;
    max-height: 105px;
  }
}

@media (max-width: 390px) {
  .hero {
    height: 650px;
    min-height: 650px;
  }

  .hero h1 {
    margin-top: 285px;
  }

  .hero__intro {
    margin-top: 68px;
    font-size: .98rem;
  }

  .games__grid {
    gap: 38px 16px;
  }

  .games__item img {
    max-height: 110px;
  }
}
