  /* Overlay modale */
  #modal-banner {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  /* Contenuto modale */
  .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    margin: 5% auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
  }

  /* Header */
  header {
    grid-column: 1 / -1;
    background: #779F34;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1.9rem;
	line-height:32px;
    padding: 30px 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  /* Footer */
  footer {
    grid-column: 1 / -1;
    background: #779F34;
    color: white;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    padding: 20px 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    font-size: 1rem;
  }

  /* Testo adv */
  #testo-adv {
	display:block;
	overflow:auto;
    padding: 15px;
	margin-left:15px;
	margin-right:15px;
	font-size: 0.95rem;
	line-height:22px;
	overflow-y:auto;
    color: #333;
  }
  #testo-adv p {
    margin: 0 0 12px;
  }
  #testo-adv a {
    color: #779F34;
    text-decoration: none;
  }

  /* Slider container */
  .slider-container {
    width: 90%;
    max-width: 400px;
    height: 300px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
	align-self: center; /* CENTRA verticalmente nella cella */
  }

  /* Slider immagini */
  .slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .slider img.active {
    opacity: 1;
  }

  /* Bottone chiudi */
  .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: #333;
    font-weight: 700;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 10;
  }
  .close-btn:hover {
    background: #f0f0f0;
    color: #000;
  }

  /* Responsive */

  @media (max-width: 768px) {
    .modal-content {
      grid-template-columns: 1fr;
      max-height: none;
    }
    .slider-container {
      width: 60%;
      height: auto;
      aspect-ratio: 4 / 3;
      margin: 20px auto;
    }
    #testo-adv {
      padding: 10px 20px;
	  margin:auto;
	  width:90%;
      text-align: center;
    }
  }

  @media (max-width: 480px) {
#testo-adv {
      padding: 10px 20px;
	  overflow-y:scroll;
	  margin:auto;
	  width:90%;
      text-align: center;
    }
    .slider-container {
      width: 50% !important;
      max-width: none;
      height: auto;
      aspect-ratio: 4 / 3;
    }
  }