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

html,
body {
  height: 100%;
  font-family: "Special Gothic Expanded One", Arial, sans-serif;
}

/* 1) Video di sfondo pieno schermo */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

/* 2) Header centrato verticalmente/su due righe */
.site-header {
  position: relative;
  z-index: 1;
  height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  text-align: center;
  margin-bottom: 50px;
}

.site-header h1 {
  font-size: 3rem;
  line-height: 1.2;
}

.site-header h2 {
  font-size: 1.5rem;
  font-weight: normal;
  margin-top: 0.5rem;
}

/* 3) Cards container - MODIFICATO */
#cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  /* Cambiato da 18rem a 2rem */
  overflow-y: auto;
  margin-bottom: 20px;
}

/* 4) Stile delle singole card */
.exam-card {
  display: block;
  width: 250px;
  background: black;
  border: 10px solid black;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: box-shadow 0.3s;
}

.exam-card:hover {
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.exam-card .card-title {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.exam-card .card-text {
  font-size: 0.95rem;
}

/* Immagine in testa a ogni card */
.exam-card .exam-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: block;
}

/* 5) Responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    height: 30vh;
  }

  .site-header h1 {
    font-size: 2.5rem;
  }

  .site-header h2 {
    font-size: 1.2rem;
  }

  .exam-card {
    width: 220px;
  }

  .exam-card .exam-img {
    height: 120px;
  }

  #cards {
    gap: 1.5rem;
  }
}