@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* --- BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #f4f5f7;
  color: #2c2c2c;
  font-size: 1.05rem;
  line-height: 1.7;
}

header {
  color: #0d6efd;
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px -10px rgba(13, 110, 253, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header h1 {
  margin: 10px;
  font-size: 2.4rem;
}

nav {
  padding: 25px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #0d6efd;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: #0d6efd;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #0a58ca;
}

.informazioni {
  flex: 1;
  padding: 50px 10%;
  max-width: 1400px;
  margin: 0 auto;
}

.informazioni h2 {
  text-align: center;
  color: #0d6efd;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.informazioni table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 40px 25px;
}

td.foto {
  text-align: center;
  vertical-align: top;
  width: 35%;
}

.foto img {
  height: 230px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  margin-bottom: 15px;
}

.foto p {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.1rem;
  text-align: center;
}

.informazioni td p {
  margin-bottom: 18px;
  line-height: 1.7;
}

.informazioni a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.informazioni a:hover {
  text-decoration: underline;
}

footer {
  background: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 25px;
  width: 100%;
  font-size: 1rem;
  margin-top: auto;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
  header h1 {
    font-size: 1.9rem;
  }

  nav {
    flex-direction: column;
    align-items: center;      
    justify-content: center; 
    gap: 15px;
    padding: 20px 0;
  }

  nav a {
    display: block;
    width: 60%;
    text-align: center;
    background: #f4f4f4;
    border: 1px solid #0d6efd;
    border-radius: 10px;
    padding: 8px;
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s, color 0.3s;
  }

  .informazioni {
    padding: 30px 20px;
  }

  .informazioni table {
    display: block;
  }

  .informazioni tr {
    display: block;
    margin-bottom: 30px;
  }

  .informazioni td {
    display: block;
    width: 100%;
    text-align: center;
  }

  .informazioni td p {
    text-align: left;
  }

  .foto img {
    height: 180px;
  }

  footer {
    font-size: 0.95rem;
    padding: 20px;
  }
}

@media (min-width: 901px) {
  .informazioni {
    border-radius: 20px;
    padding: 0 80px;
  }

  .informazioni table {
    border-spacing: 60px 35px;
  }

  td.foto {
    width: 30%;
  }

  td p {
    font-size: 1.1rem;
  }

  .foto img {
    height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .foto img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(13,110,253,0.3);
  }

  .informazioni h2 {
    font-size: 2rem;
  }
}