/* --- VARIABILI --- */
:root {
  --primary-blue: #0077b6;
  --secondary-blue: #023e8a;
  --bg-light: #f8f9fa;
  --text-dark: #212529;
  --white: #ffffff;
  --unipd-red: #b20e10;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}

/* --- NAVBAR --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 10%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#header-logo {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

#header-logo:hover {
  transform: scale(1.05);
}

#nav-navigation {
  display: flex;
  gap: 2rem;
}

#nav-navigation a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* --- HEADER --- */
header {
  padding: 2.5rem 10%;
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
  color: var(--white);
  text-align: center;
}

header h1 {
  font-size: 2.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* --- SEZIONI --- */
section {
  padding: 2rem 10%; /* Ridotto da 4rem a 2rem per meno spazio tra blocchi */
  max-width: 1200px;
  margin: 0 auto;
}

section h1 {
  border-left: 5px solid var(--primary-blue);
  padding-left: 1rem;
  margin-bottom: 1rem; /* Ridotto da 2rem */
  color: var(--secondary-blue);
  font-size: 1.8rem;
}

.indented {
  padding-left: 1.5rem;
  border-left: 1px dashed #ccc;
  margin-bottom: 1rem; /* Ridotto */
}

/* --- LINK --- */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: 0.2s;
}

.indented p {
  margin-bottom: 0.4rem;
}

.indented p a {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 119, 182, 0.05);
  border-radius: 4px;
}

.indented p a:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateX(5px);
}

/* --- VERBALI --- */
.verbali-container h3 {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.2rem;
}

/* --- GRIGLIA TEAM --- */
ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

ul li {
  background: var(--white);
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.05);
  text-align: center;
  border-bottom: 4px solid var(--primary-blue);
  font-weight: 600;
  transition: transform 0.3s;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 1.5rem;
  color: #666;
  font-size: 0.85rem;
}

/* ---------
  RESPONSIVE 
---------- */
@media (max-width: 992px) {
  ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  ul { grid-template-columns: 1fr; }
  nav { flex-direction: column; padding: 0.8rem; }
  #header-logo { height: 60px; }
  section { padding: 1.5rem 5%; }
}