footer {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra i contenitori figli */
  height: fit-content;
  padding: 5rem 1rem 1rem 1rem;
  gap: 10rem;
  background-color: #212121;
}

/* I figli del footer formano il "Container" limitato a 1140px */
footer .top-section, 
footer .copyright {
  width: 100%;
  max-width: 1140px;
}

@media (min-width: 750px) {
  footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
/* La media query dei 1080px non serve più: ci pensa il max-width! */

footer a {
  text-decoration: none;
  color: #ffffff; /* Il colore di base bianco */
  transition: all 0.2s ease; /* Transizione fluida per l'effetto */
}

/* Modifica la regola esistente per escludere anche il link del logo */
footer a:not(.button-reverse-m):not(.footer-logo-link):hover {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #ffffff;
}

footer .copyright {
  font: var(--label-font);
  color: #ffffff;
  text-align: center; 
}

footer .top-section {
  display: flex;
  flex-direction: row; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 3.5rem; 
}

footer .top-section .footer-logo {
  width: 64px; 
  height: auto;
  transition: width 0.3s ease; 
}

/* INGRANDIMENTO LOGO SU DESKTOP */
@media (min-width: 1080px) {
  footer .top-section .footer-logo {
    width: 160px;
  }
}

footer .top-section .footer-links {
  display: flex;
  flex-direction: column; 
  align-items: flex-end; 
  gap: 3.5rem; 
}