* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 100px;
}

body {
  background-color: black !important;
  color: white;
  padding-top: 60px;
  line-height: none;

}

main {
  margin-top: 10rem;
  /* spazio per header fisso */
  margin-left: 9.375rem;
  margin-right: 9.375rem;
  margin-bottom: 3.75rem;
  background-color: white;
  color: black;
  padding: 1.25rem;
  border-radius: 0.5rem;
}

.testo {
  border: 3px solid black;
}

/*  Media query per dispositivi mobili */
@media (max-width: 767.98px) {
  main {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    margin-bottom: 1.25rem;
  }
}

/* STICKY FOOTER */
.main-footer {
  flex-shrink: 0;
  /* Non si riduce mai */
  background-color: black;
  color: #f8f9fa;
  font-size: 0.625rem;
  padding: 1.25rem 0;
  margin-top: auto;
  /* Si spinge automaticamente in fondo */
  margin-bottom: 0 !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  border-top: 1px solid white;
}

.main-footer p {
  margin-bottom: 0.625rem;
  font-family: "Special Gothic Expanded One", Arial, sans-serif;
}

/* Stili per i social */
#social {
  margin-top: 1rem;
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

#social a {
  color: greenyellow;
  font-size: 1.5rem;
  transition: color 0.2s ease-in-out;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

#social a:hover {
  color: #fcfcfc;
}

/* Assicura che le icone Bootstrap siano visibili */
#social a i {
  font-size: inherit;
  color: inherit;
}

/* Responsive design */
@media (max-width: 767.98px) {

  .main-footer {
    padding: 15px 0;
  }

  #social {
    gap: 2rem;
    margin-top: 1rem;
    padding: 0 1rem;
  }

  #social a {
    font-size: 1.3rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
}