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

/* Animazione del gradiente di sfondo */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Stile generale per i link */
a {
  color: #23a6d5; /* Colore principale, in linea con il tema del sito */
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

/* Effetto hover */
a:hover {
  color: #1a7fa6; /* Versione più scura del colore principale */
  transform: translateY(-2px);
}

/* Effetto underline animato */
a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #23a6d5;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Stile per i link attivi */
a.active {
  font-weight: bold;
  color: #3498db; /* Un colore diverso per indicare la pagina attiva */
}

/* Accessibilità: focus visibile per la navigazione da tastiera */
a:focus {
  outline: 2px solid #307abb;
  outline-offset: 3px;
}

/* Stile specifico per i link con classe social-icon */
a.no-style {
  /* color: inherit; Mantiene il colore del testo genitore */
  transition: none; /* Rimuove tutte le transizioni */
  transform: none; /* Rimuove qualsiasi trasformazione */
}

a.no-style:active,
a.no-style:hover,
a.no-style:focus {
  color: inherit; /* Mantiene il colore anche in hover e focus */
  transform: none; /* Nessuna trasformazione in hover */
}

a.no-style::after {
  display: none; /* Rimuove l'effetto underline */
}

a.no-style:focus {
  outline: none; /* Rimuove l'outline di focus */
}

/* Stile del corpo e sfondo */
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background: linear-gradient(
    -60deg,
    #307abb,
    #0a182b,
    #52eede,
    #23a6d5,
    #23d5ab
  );
  /* background: linear-gradient(
    -45deg,
    #307abb,
    #0a182b,
    #52eede,
    #55a704, 
    #23a6d5,
    #23d5ab
  ); */
  /* background: linear-gradient(
    -45deg,
    #307abb,
    #0a182b,
    #ee527c,
    #e73c7e,
    #23a6d5,
    #23d5ab
  ); */
  background-size: 400% 400%;
  animation: gradientAnimation 25s ease infinite;
  position: relative;
  overflow-x: hidden;
}

/* Forme geometriche di sfondo */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

body::before {
  top: -100px;
  left: -100px;
}

body::after {
  bottom: -100px;
  right: -100px;
}

body,
html {
  height: 100%;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
}

/* Stile per i link nei pulsanti */
.button a,
a.button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: #23a6d5;
  color: #fff;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.button a:hover,
a.button:hover {
  background-color: #1a7fa6;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button a::after,
a.button::after {
  display: none; /* Rimuove l'effetto underline per i pulsanti */
}

/* Stili generali delle sezioni */
section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
}

.content {
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.error {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.logo {
  max-width: 50%;
  margin-bottom: 2rem;
  display: initial;
}

#about,
#services,
#contact {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#about::before,
#services::before,
#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

#home h1,
#about h1,
#services h1,
#contact h1,
#promo h1,
#admin h1 {
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 40px;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#about p,
#contact p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#about .highlight {
  display: inline-block;
  font-weight: 700;
  color: #3498db;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#contact .content {
  max-width: 400px;
}

#about .content,
#services .content,
#contact .content {
  position: relative;
  z-index: 2;
  text-align: justify;
  color: white;
  padding: 20px;
}

/* Sfondo delle sezioni */
#home {
  background: radial-gradient(circle at center, #307abb, #0a182b 70%);
}

#about {
  /* background-color: #1a2a3a; */
  background-image: url("../images/about.webp");
}

#services {
  /* background-color: #f0f4f8; */
  background-image: url("../images/services.webp");
}

#portfolio {
  background-color: #3a4a5a;
}

#contact {
  /* background-color: #4a5a6a; */
  background-image: url("../images/contact.webp");
}

/* Responsive design */
@media (max-width: 768px) {
  #home h1,
  #about h1,
  #services h1,
  #contact h1 {
    font-size: 1.5rem;
    margin-top: 35px;
  }
}

@media (max-width: 420px) {
  #home h1,
  #about h1,
  #services h1,
  #contact h1 {
    font-size: 1rem;
    margin-top: 35px;
  }
}
