html {
  height: 100%;
  width: 100%;
}
@media (min-width: 992px){}

.container img,
.parl img {
  width: 100%;
  max-width: 600px;         /* Larghezza massima su desktop */
  height: 300px;            /* Altezza fissa per uniformità */
  object-fit: cover;        /* Mantiene proporzioni e riempie il riquadro */
  border-radius: 12px;      /* Angoli leggermente più morbidi */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);  /* Ombra più delicata */
  margin: 20px auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.container img:hover,
.parl img:hover {
  transform: scale(1.03);   /* Leggero ingrandimento al passaggio */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);  /* Ombra più profonda */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI';
    line-height: 1.5;
    font-size: 30px;
    background-size: cover;
    background-image: url(foto/sfondo.jpg);
    color: #000000;
  }
  
  /* Link */
  a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.2s;
  }
  
  a:hover {
    color: #004080;
  }
  
  /* Header */
  header {
    background-color: #003366;
    background-image: url("https://cdn.ecommercedns.uk/files/5/231075/4/8916804/flag-of-italy-2003-2006.jpg");
    color:  rgb(152, 150, 150);
    padding: 7rem 7rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-repeat: no-repeat;
    background-size: cover;
    animation: slideDown 1s ease;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .logo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .logo h1 {
    font-size: 10rem;
    margin: 0;
  }
  
  .logo p {
    font-size: 3rem;
    color: #ddd;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    animation: slideDown 1s ease;
  }
  
  nav a {
    font-size: 1.6rem;
    color: white;
    font-weight: bold;
    text-decoration: none; /* 🔹 Togliamo la sottolineatura */
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
  }

  .button {
    background-color:rgb(27, 139, 19);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
  }
  .button:hover {
    background-color:rgb(27, 139, 19);
    transform: scale(1.05);
  }
  
  /* Container */
  .container {
    padding: 1rem;
    max-width: 2000px;
    margin: auto;
  }

  .container p{
    font-size: 1.1em;
    color: #444;
  }
  
  section {
    margin-bottom: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #00509e;
  }
  
  /* Media section */
  .media-box {
    display: flex;
    align-items: top;
    gap: 100px;
    margin: 40px 0;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  }
  
  .media-box img {
    width: 50%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
  }
  
  .caption {
    max-width: 50%;
  }
  
  .caption h3 {
    font-size: 1em;
    margin-bottom: 10px;
  }
  
  .caption p {
    font-size: 1.1em;
    color: #444;
  }
  
  /* Footer */
  footer {
    background-color: #006800;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
  }
  
  .footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 1rem;
  }
  
  footer section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
  }

  footer p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
  }
  
  footer ul {
    list-style: none;
    padding: 0;
  }
  
  footer li {
    margin: 0.3rem 0;
  }
  
  footer a {
    color: #b3d1ff;
    font-size: 1.2rem;
  }
  
  footer a:hover {
    color: white;
  }

  .footer-sections p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
  }

  .social-icons {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;               /* <-- rende gli elementi in linea */
    flex-direction: row;         /* <-- garantisce layout orizzontale */
    justify-content: center;     /* <-- centra le icone */
    gap: 1rem;                   /* <-- spazio tra le icone */
  }
  
  .social-icons li {
    display: inline-block;
  }

  .social-icons a {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }
  
  .social-icons a[href*="instagram.com"] {
    background-color: #E4405F;
  }
  
  .social-icons a[href*="twitter.com"] {
    background-color: #0088cc;
  }
  
  .social-icons a[href*="facebook.com"] {
    background-color: #1877F2;
  }
  
  .social-icons a:hover {
    opacity: 0.8;
  }

   /* Animations  */
   @keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  


  