.progetti {
  padding: 40px 20px;
 
}


.cards-container {
  display: flex;
  gap: 20px; /* spazio tra le card */
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #f9f9f9; /* leggermente grigio chiaro per staccare dal fondo */
  border: 1px solid #ddd; /* bordo sottile */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-mini {
  background: #f7f6d6; /* leggermente giallino chiaro per staccare dal fondo */
  border: 1px solid #ddd; /* bordo sottile */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-mini img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}




.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h3 {
  margin: 10px 0 5px;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.btn {
  text-decoration: none;
  background-color: #d8672b;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
}
.btnprog {
  text-decoration: none;
  text-align: center;
  vertical-align: center;
  background-color: #d8672b;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
}

.btn:hover {
  background-color: #f08d6a;
}

/* Responsive */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 80%;
    margin-bottom: 20px;
  }
}
