/* ========== BASE ========== */
* {
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #f5f5f5;
  }
  
  /* ========== HEADER & NAVBAR ========== */
  header {
    background-color: #004080;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
  }
  
  header nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 20px;
  }
  
  header nav ul li a {
    display: inline-block;
    padding: 14px 24px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  header nav ul li a:hover,
  header nav ul li a:focus {
    background-color: #0066cc;
    color: #fff;
  }
  
  /* ========== MAIN CONTENT ========== */
  .main-content {
    width: 91.66%;
    margin: 4% auto;
    background: white;
    padding: 5%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .main-content h1 {
    background-color: #e6f0ff;
    padding: 20px 5%;
    margin-bottom: 30px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #004080;
    border-bottom: 3px solid #004080;
    border-radius: 12px 12px 0 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    word-break: break-word;
  }
  
  .main-content p {
    font-size: clamp(1.1rem, 2.4vw, 1.7rem);
    line-height: 1.8;
    margin: 20px;
    color: #333;
  }
  
  /* ========== HORIZONTAL LINE ========== */
  hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, #ccc, #333, #ccc);
    margin: 40px 0;
    border-radius: 5px;
  }
  
  /* ========== FOOTER ========== */
  footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
  }
  
  /* ========== IMAGE SLIDER ========== */
  .image-slider {
    width: 100%;
    max-width: 80%;
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .slides img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
    border-radius: 12px;
  }
  
  .dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  
  .dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .dot.active {
    background-color: #004080;
  }
  
  /* ========== BIO GRID & CARDS ========== */
  .bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 20px auto;
    max-width: 1600px;
    padding: 0 20px;
  }
  
  .bio-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
  }
  
  .bio-card:hover {
    transform: scale(1.05);
  }
  
  .bio-card img {
    width: 90%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
  }
  
  .bio-card h2,
  .card-body h2,
  .card-title {
    font-size: clamp(3.2rem, 6vw, 5rem);
    font-weight: 800;
    color: #004080;
    margin-bottom: 25px;
    line-height: 1.1;
    text-align: left;
  }
  
  .bio-card p,
  .card-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
  }
  
  /* ========== CARD LAYOUT ========== */
  .card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
  }
  
  .card-img-top {
    max-height: 150px;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .custom-rectangle {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  /* ========== RESPONSIVE ========== */
  @media (max-width: 1440px) {
    .main-content {
      padding: 4%;
    }
  }
  
  @media (max-width: 1024px) {
    .bio-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .bio-grid {
      grid-template-columns: 1fr;
    }
  
    .main-content {
      width: 95%;
      padding: 20px;
    }
  
    .custom-rectangle {
      margin: 0 auto 15px auto;
    }
  
    .card-body h2 {
      text-align: center;
    }
  
    .card-text {
      font-size: 1.1rem;
      text-align: justify;
    }
  
    .main-content h1 {
      font-size: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    header nav ul {
      flex-direction: column;
    }
  
    header nav ul li a {
      padding: 12px;
    }
  
    .main-content p {
      margin: 10px;
    }
  }
  .bio-page .card-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
  }  

  .event-card {
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  
  .event-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #004080;
    margin-bottom: 10px;
  }
  
  .event-date {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
  }
  
  .event-body p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
  }
  
  .event-image {
    margin-top: 25px;
    text-align: center;
  }
  
  .event-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .footer-logo {
  width: 100%;
  background-color: #f0f0f0;
  padding: 0;
  margin: 0;
  text-align: center;
  position: relative; /* usa fixed se lo vuoi sempre visibile */
  bottom: 0;
}

.footer-logo img {
  width: 100%; /* prende tutta la larghezza */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
