body {
      font-family: "Segoe UI", "Open Sans", sans-serif;
      margin: 0;
      padding: 0;
      background: #e8f5e9;
      color: #2e7d32;
      user-select: none;
      padding-top: 0;
    }

header {
  position: relative;
  height: 200px; /* Altezza desiderata per l'header */
  overflow: hidden;
}

.header-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ritaglia e riempie l'area senza deformare */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.header-text {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 2rem;
}

.header-text h1 {
  font-family: Arial, sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin: 0;
  color: white;
  -webkit-text-stroke: 1px black;
  text-shadow:
    0 0 5px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 0, 0, 0.3);
}

/* CSS */
nav {
    background: rgba(165, 214, 167, 0.5);
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    padding: 0.5rem 0;
  }

  nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  nav ul li {
    margin: 0 1.2rem;
  }

  nav ul li a {
    color: #000;
    text-shadow: 1px 1px 3px rgba(50, 50, 50, 0.5);
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  nav ul li a:hover,
  nav ul li a:focus {
    background-color: #a5d6a7;
    color: #1b5e20;
    outline: none;
  }

  .hamburger {
    display: none;
    background: none;
    border: none;
    color: #000;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(50, 50, 50, 0.5);
  }

  @media (max-width: 768px) {
    body {
      padding-top: 70px;
    }

    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
    }

    nav ul {
      display: none;
      flex-direction: column;
      background: #a5d6a7; /* senza trasparenza */
      margin: 0;
    }

    nav ul.show {
      display: flex;
    }

    nav ul li {
      margin: 0.8rem 0;
    }

    .hamburger {
      display: block;
      width: 100%;
      text-align: right;
      border-bottom: 1px solid #1b5e20;
    }
  }



    section {
      max-width: 900px;
      margin: 2rem auto;
      padding: 1.5rem;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 0 15px rgba(0,0,0,0.05);
    }

    h2 {
      color: #388e3c;
      margin-top: 0;
    }

    footer {
      text-align: center;
      padding: 2rem;
      font-size: 0.9rem;
      background: #c8e6c9;
      color: #2e7d32;
    }

    footer a {
      color: #2e7d32;
      text-decoration: none;
    }

    #cookie-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #1b5e20;
      color: #fff;
      padding: 1rem;
      text-align: center;
      z-index: 1000;
    }

    #cookie-banner button {
      background: #66bb6a;
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      margin-left: 1rem;
      cursor: pointer;
      border-radius: 5px;
    }

    #cookie-banner.hide {
      display: none;
    }

    @media print {
      body {
        display: none;
      }
    }

    a {
      text-decoration: none;
      color: #2e7d32;
    }

    a:hover {
      color: #43a047;
    }
	
	.responsive-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}



/* Stile per lo sfondo semi-trasparente */
  #popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  /* Stile per la finestra popup */
  #popup-box {
    background: #fff;
    padding: 20px;
    max-width: 90%;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    text-align: center;
  }

  #popup-box p {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  #popup-close-btn {
    background: #007BFF;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
  }

  #popup-close-btn:hover {
    background: #0056b3;
  }

  /* Responsive */
  @media (max-width: 480px) {
    #popup-box {
      width: 90%;
      padding: 15px;
    }

    #popup-box p {
      font-size: 1em;
    }
  }