body {
  font-family: "Roboto", sans-serif;
  background-color: #2e2e2e;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden; /* Impedisce lo scroll orizzontale su tutto il body */
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center; /* Puoi lasciarlo così o cambiarlo */
  min-height: 100vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10px; /* Margine extra sopra */
  left: -10px; /* Margine extra a sinistra */
  width: calc(100% + 20px); /* Aumenta la larghezza */
  height: calc(100% + 20px); /* Aumenta l’altezza */
  background-image: url(/img/sfondo3.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px);
  z-index: -1;
}
.hero-content {
  padding: 10px; /* Sposta il contenuto più in alto rispetto al centro */
}
.hero-content img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f4cd58;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4), -1px -1px 1px rgba(0, 0, 0, 0.4),
    1px -1px 1px rgba(0, 0, 0, 0.4), -1px 1px 1px rgba(0, 0, 0, 0.4); /* Bordo nero leggero */
}

.hero-content h1 {
  font-size: 36px;
  color: #f4cd48;
  margin-top: 20px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4), -1px -1px 1px rgba(0, 0, 0, 0.4),
    1px -1px 1px rgba(0, 0, 0, 0.4), -1px 1px 1px rgba(0, 0, 0, 0.4); /* Bordo nero leggero */
}


.social-card {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4), -1px -1px 1px rgba(0, 0, 0, 0.4),
    1px -1px 1px rgba(0, 0, 0, 0.4), -1px 1px 1px rgba(0, 0, 0, 0.4); /* Bordo nero leggero */
}

.social-card a {
  color: #f5f5f5;
  transition: color 0.3s ease;
}

.social-card a:hover {
  color: #f4cd58;
}

.section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 32px;
  color: #f4cd58;
  margin-bottom: 20px;
}

.section p {
  font-size: 18px;
  color: #666;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}


.project-card:hover {
  transform: translateY(-5px);
}
.project-card h3 {
  margin: 0 0 10px 0; /* Spazio sotto il titolo */
}

.project-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin: 0 0 10px 0;
}

.icon-project img{
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

/* Contenitore del cerchio */
.progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

/* SVG del cerchio */
.circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Inizia dall’alto */
}

/* Cerchio di sfondo */
.circle-bg {
  fill: none;
  stroke: #eee; /* Grigio chiaro */
  stroke-width: 6px; /* Spessore sfondo */
}

/* Cerchio di progresso */
.circle-progress {
  fill: none;
  stroke: #f4cd58; /* Giallo del tema */
  stroke-width: 10px; /* Spessore progresso */
  stroke-linecap: round; /* Estremità arrotondate */
}

/* Testo della percentuale */
.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #424242;
  font-weight: bold;
}
/* Stile della barra percentuale */
.progress-bar {
  width: 100%;
  height: 10px; /* Altezza della barra */
  background-color: #eee; /* Sfondo grigio chiaro */
  border-radius: 5px; /* Angoli arrotondati */
  overflow: hidden; /* Nasconde l’eccesso */
}

.progress {
  height: 100%;
  background-color: #f4cd58; /* Colore giallo del tema */
  border-radius: 5px;
  transition: width 0.5s ease; /* Animazione fluida */
}


.contact-section {
  text-align: center;
  margin: 0 auto;
  padding: 20px 20px;
  width: 100fr;
  max-width: none;
  background-color: #fff; /* Sfondo bianco per contrasto */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Ombra leggera */
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}
.contact-section h2 {
  margin: auto;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.contact-info p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #424242;
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 20px;
}

.contact-email:hover {
  color: #f4cd58; /* Giallo del tema */
}

.social-links {
  display: flex;
  gap: 20px;
  margin: 20px;
}

.social-links a {
  color: #424242;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #f4cd58;
  transform: scale(1.2); /* Leggero ingrandimento */
}


.cta-button{
  background-color: #f4cd58;
  color: #424242;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  align-items: center;
}

/* rimuove la sottolineatura in tutti i link*/
a {
  text-decoration: none; /* Rimuove la sottolineatura da tutti i link */
}

footer {
  padding: 20px;
  text-align: center;
  background-color: #f4cd58;
  color: #424242;
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }
  .hero-content h1 {
    font-size: 28px;
  }

  .section {
    padding: 40px 15px;
  }
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

}
