
#popup-newsletter {display:none;}  

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .popup {
    display: flex;
    width: 700px;
    max-width: 95%;
    background-color: #d9f0ea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.4s ease-in-out;
  }

  .popup-image {
    width: 40%;
    background: url('../img/regalo.gif') center center no-repeat;
    background-size: cover;
  }

  .popup-content {
    width: 60%;
    padding: 30px;
    position: relative;
  }

  .popup h2 {
    margin-top: 0;
    color: #023c40;
    font-size: 2rem;
  }

  .popup ul {
    list-style: none;
    padding: 0;
  }

  .popup ul li {
    margin: 12px 0;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }

  .popup ul li::before {
    content: "✔";
    color: black;
    font-weight: bold;
    margin-right: 10px;
  }

  .popup input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 1rem;
  }

  .popup button {
    background-color: #004466;
    color: white;
    padding: 10px 20px;
    border: none;
    margin-top: 10px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
  }

  .popup button:hover {
    background-color: #006080;
  }

  .close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.2rem;
    cursor: pointer;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
  }

  @media (max-width: 600px) {
    .popup {
      flex-direction: column;
    }
    .popup-image {
      width: 100%;
      height: 200px;
    }
    .popup-content {
      width: 100%;
    }
  }
  
  
  .input-error {
    border: 2px solid red !important;
    outline: none;
  }

  .invite-card{
  background: linear-gradient(135deg, #f8fff8 0%, #ffffff 55%);
  border-color: rgba(16, 135, 65, 0.12);
}

/* ISCRIZIONE */
.invite-badge{
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(25, 135, 84, 0.12); /* verde bootstrap, trasparente */
  color: #198754; /* btn-success */
  font-size: 1.4rem;
}
.invite-accent{
  position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(rgba(25,135,84,.15), rgba(25,135,84,0) 70%);
  pointer-events: none;
}
@media (prefers-color-scheme: dark){
  .invite-card{
    background: linear-gradient(135deg, #0f1a12 0%, #121212 55%);
    border-color: rgba(25, 135, 84, .25);
  }
  .invite-badge{
    background: rgba(25,135,84,.18);
    color: #6ee7b7; /* un verde più leggibile in dark */
  }
}