* {
  box-sizing: border-box;
}

body,
html {
  padding: 0;
  margin: 0;
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: black;
  background-image: url('associates.JPG'); /* Assicurati che il percorso sia corretto burri.JPG*/
  background-size: cover; /* Fa sì che l'immagine copra tutta la pagina */
  background-position: center;
  background-attachment: fixed; /* Mantiene l'immagine fissa durante lo scroll */
  height: 100vh; /* Fa sì che l'immagine occupi tutta la pagina */
}

h1 {
  color: #f5f5f5;
  text-align: center;
  padding-left: 10px;
  padding-top: 20px;
  font-size: 60px; /*28px*/
  margin: 0;
}

p {
  text-align: center;
  color: white;
  margin: 0;
}

a {color: white;
  text-decoration: none;
  font-size: 10px; /*20px*/
  display: block;
  padding: 20px 0;
  text-align: center;
}

.blink-link {
  color: white;
  text-decoration: none;
  font-size: 10px; /*20px*/
  display: block;
  padding: 20px 0;
  text-align: center;
  animation: blink 1s infinite; /*effetto lampeggiante*/
}

@keyframes blink {
    0% { opacity: 1;}
    50% { opacity: 0;}
    100% { opacity: 1;}
}



header,
footer {
  background-color: rgba(0, 0, 0, 0); /* 0.7 Un leggero sfondo nero trasparente */
  width: 100%;
  padding: 20px;/* 0;*/
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute; /* Fissa header e footer sopra l'immagine (absolute) */
  left: 0;
  right: 0;
  z-index: 1;
}

footer {
  flex-direction: column;
  text-align: center;
  bottom: 0; /* Pone il footer in basso */
}

footer p {
  font-size: 10px; /*16px*/
  margin: 5px 0;
}

footer p span {
  display: block; 
}

main {
  flex: 1;  
  display: flex;
  justify-content:center;
  align-items: center;
  padding: 20px;
  text-align: center;
  /*margin-top: 100px; /* Distanza dal header */
  z-index: 2; /* Porta il main sopra l'immagine */
  min-height: 100vh;
}

@media (max-width: 768px) {
 
  h1 {
    font-size: 40px; /*20px*/
    padding-top: 10px;
  }

  p {
    font-size: 7px;
  }

  a {
    font-size: 10px; /*16px*/
    padding: 10px 0;
  }

  footer p {
     display: block; /*font-size: 12px;*/
  }

  footer {
    position: absolute;
    bottom: 10px; /*10px;*/
    width: 100%;
    padding: 0px; /*10*/
    text-align: center;
  }

  footer p span {
    display: block;
    margin: 0px 0;/*3px*/
  }

  main {
    padding: 10px;
  }
}
