/* =========================================================
   MatchGuru footer — replica fedele del footer di matchguru.it
   Dimensioni in rem: scalano con html { font-size: clamp(...) }
   (definito nella pagina). Colori, spazi, hover e responsive
   sono identici all'originale.
   ========================================================= */

:root {
  --mg-bg: #711DFF;
  --mg-white: #ffffff;
  --mg-pink: #ee5080;
  --mg-footer-side-padding: 3rem;
  --mg-footer-max-width: 1920px;
}

.mg-footer {
  width: 100%;
  background: var(--mg-bg);
  color: var(--mg-white);
  overflow: hidden;
  font-family: "Urbanist", Arial, sans-serif;
}

.mg-footer a {
  color: inherit;
  text-decoration: none;
}

.mg-footer img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

.mg-footer__inner {
  width: 100%;
  max-width: var(--mg-footer-max-width);
  margin: 0 auto;
  padding: 4.8rem var(--mg-footer-side-padding) 1.55rem;
}

.mg-footer__top {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(32rem, 1.08fr);
  column-gap: 4rem;
  align-items: start;
  margin-bottom: 4.8rem;
}

.mg-footer__claim h4 {
  margin: 0;
  color: var(--mg-white);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: clamp(2.44rem, 3.35vw, 4.75rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  word-break: break-word;
  max-width: 12.8em;
}

.mg-footer__nav-area {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  column-gap: clamp(3rem, 7vw, 7.5rem);
  row-gap: 2rem;
  justify-content: end;
  align-items: start;
}

.mg-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-footer__nav a,
.mg-footer__social-title,
.mg-footer__bottom p {
  color: var(--mg-white);
  font-family: "Urbanist", Arial, sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.mg-footer__nav a {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

.mg-footer__nav a:hover,
.mg-footer__nav a:focus-visible {
  color: var(--mg-white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  outline: none;
}

.mg-footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.mg-footer__social-title {
  margin: 0;
}

.mg-footer__social-icons {
  display: flex;
  align-items: center;
  gap: 0.78rem;
}

.mg-footer__social-icons a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.mg-footer__social-icons a:hover,
.mg-footer__social-icons a:focus-visible {
  opacity: 0.85;
  transform: translateY(-1px);
  outline: none;
}

.mg-footer__social-icons img,
.mg-footer__social-icons svg {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.mg-footer__logo-link {
  display: block;
  width: 100%;
  margin: 0 0 2.05rem;
}

.mg-footer__logo-link img {
  width: 100%;
  height: auto;
}

.mg-footer__separator {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
  margin: 0 0 1.35rem;
}

.mg-footer__bottom {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 1.2fr 0.65fr;
  gap: 1.25rem;
  align-items: start;
}

.mg-footer__bottom p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 500;
}

@media (max-width: 976px) {
  :root {
    --mg-footer-side-padding: 2rem;
  }

  .mg-footer__inner {
    padding-top: 4rem;
    padding-bottom: 1.35rem;
  }

  .mg-footer__top {
    grid-template-columns: 1fr;
    row-gap: 3rem;
    margin-bottom: 4rem;
  }

  .mg-footer__claim h4 {
    font-size: clamp(2.35rem, 8vw, 4rem);
    max-width: 10.5em;
  }

  .mg-footer__nav-area {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    column-gap: 2.5rem;
    row-gap: 2.5rem;
  }

  .mg-footer__social {
    grid-column: 1 / -1;
  }

  .mg-footer__bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.5rem;
  }
}

@media (max-width: 600px) {
  :root {
    --mg-footer-side-padding: 1rem;
  }

  .mg-footer__inner {
    padding-top: 3.25rem;
    padding-bottom: 1.2rem;
  }

  .mg-footer__top {
    row-gap: 2.6rem;
    margin-bottom: 3.5rem;
  }

  .mg-footer__claim h4 {
    font-size: 2.44rem;
  }

  .mg-footer__nav-area {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .mg-footer__logo-link {
    margin-bottom: 1.65rem;
  }

  .mg-footer__bottom {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .mg-footer__bottom p {
    font-size: 0.78rem;
  }
}
