/* ! =========================
   MEDIA TEXT RESTYLE
========================= */

.restyle-media-section {
  padding: 90px 0;
}

.restyle-media-wrapper {
  max-width: 1320px;
  margin: 0 auto;
}

.restyle-media-row {
  margin-bottom: 86px;
}

.restyle-media-row:last-child {
  margin-bottom: 0;
}

/* Immagini */

.restyle-media-image {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #d7d7d7;
}

.restyle-media-image img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

/* Contenuto */

.restyle-media-content {
  max-width: 520px;
}

.restyle-media-row:nth-child(odd) .restyle-media-content {
  margin-left: auto;
}

.restyle-media-content h2 {
  margin: 0;
  color: #717985;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.restyle-title-line {
  width: 86px;
  height: 17px;
  margin: 18px 0 26px;
  background: #00b2e9;
}

.restyle-media-text {
  color: #20242c;
  font-size: 0.96rem;
  line-height: 1.65;
}

.restyle-media-text p {
  margin: 0 0 16px;
}

.restyle-media-text p:last-child {
  margin-bottom: 0;
}

.restyle-media-text strong,
.restyle-media-text b {
  color: #101217;
  font-weight: 900;
}

.restyle-media-btn {
  margin-top: 26px;
}

/* Responsive */

@media (max-width: 991.98px) {
  .restyle-media-section {
    padding: 72px 0;
  }

  .restyle-media-row {
    margin-bottom: 68px;
  }

  .restyle-media-image {
    margin-bottom: 28px;
  }

  .restyle-media-image img {
    height: 330px;
  }

  .restyle-media-content {
    max-width: 100%;
  }

  .restyle-media-row:nth-child(odd) .restyle-media-content {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .restyle-media-section {
    padding: 58px 0;
  }

  .restyle-media-row {
    margin-bottom: 56px;
  }

  .restyle-media-image img {
    height: 260px;
  }

  .restyle-media-content h2 {
    font-size: 2.25rem;
  }

  .restyle-title-line {
    width: 74px;
    height: 14px;
    margin: 16px 0 22px;
  }

  .restyle-media-text {
    font-size: 0.95rem;
  }
}
