body {
  font-family: system-ui, sans-serif;
  background-color: #0f1722;
  color: #e0e6ec;
  margin: 0;
  padding: 3rem;
  font-size: 18px;
}

.container {
  max-width: 1000px;
  margin: auto;
  background: #1c2a3a;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
}

h1, h2, h3 {
  color: #ffffff;
}

h1 {
  font-size: 3rem; /* dimensione desktop/desktop large */
  font-weight: 700;
  margin-bottom: 0.5rem;
}

span {
  color: #3282B8;
}

/* Riduci la dimensione su schermi piccoli */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem; /* dimensione più piccola per smartphone */
  }
}

/* Per schermi medi, tipo tablet */
@media (max-width: 900px) and (min-width: 601px) {
  h1 {
    font-size: 2.4rem;
  }
}

h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 2rem;
  color: #a3c4e6;
}

.project-category {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
  color: #3282B8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  cursor: default;
  display: flex;
  flex-direction: column;
  background-color: #253548;
  border-radius: 12px;
  text-decoration: none;
  color: #e0e6ec;
  padding: 1.5rem;
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card span {
  padding-top: 10px;
  margin: 0.5rem 0 0.3rem;
}

.card p {
  margin: 0;
  font-size: 1.2rem;
  color: #c0cad4;
}

.card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.card.disabled:hover {
  box-shadow: none;
  transform: none;
}

.project-keyword {
  margin: 0;
  font-size: 1.2rem;
  color: #dae0e6;
  font-weight: bold;
  transition: 0.2s ease;
  text-decoration: none;
}

.project-keyword:hover {
  transform: translateY(-5px);
  color: #3282B8;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Immagine in cima alla card */
.card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 8px;
  background-color: #fff1; /* leggero contrasto */
}

/* Responsive più stretto */
@media (max-width: 480px) {
  .container {
    padding: 15px 15px;
  }
}


.socialcard {
  display: flex;
  flex-direction: column;
  background-color: #253548;
  border-radius: 12px;
  text-decoration: none;
  color: #e0e6ec;
  padding: 1.5rem;
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.socialcard:hover {
  background-color: #2d425d;
  transform: translateY(-5px);
}

.socialcard img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.socialcard h3 {
  align-self: center;
  margin: 0.5rem 0 0.3rem;
  font-size: 1.3rem;
  color: #ffffff;
}

.socialcard p {
  margin: 0;
  font-size: 1rem;
  color: #c0cad4;
}

/* Immagine in cima alla card */
.socialcard img {
  align-self: center;
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 8px;
  background-color: transparent;
}

.socialgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.socialcard.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.socialcard.disabled:hover {
  box-shadow: none;
  transform: none;
}

.techcard {
  display: flex;
  flex-direction: column;
  background-color: #253548;
  border-radius: 12px;
  text-decoration: none;
  color: #e0e6ec;
  padding: 1.5rem;
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.techcard:hover {
  background-color: #283a50;
}

.techcard img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.techcard h3 {
  cursor: default;
  align-self: center;
  margin: 0.5rem 0 0.3rem;
  font-size: 1.3rem;
  color: #ffffff;
}

.techcard p {
  margin: 0;
  font-size: 1rem;
  color: #c0cad4;
}

/* Immagine in cima alla card */
.techcard img {
  align-self: center;
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 8px;
  background-color: transparent;
}

.techgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}