/* MODALE */    
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35,65,121,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

.popup-modal {
  background: #00d6d6;
  max-width: 800px;
  width: 90%;
  max-height: 600px;
  padding: 5px;
  border-radius: 10px;
  position: relative;
  overflow-y: auto;
}

.popup-close {
  position: absolute;
  color: #fff;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
    
    .popup-close:hover{
        color: #00d6d6
    }
    
/* Grafica Newsletter */

.newsletter-section {
  display: flex;
  flex-wrap: wrap;
  background-color: #0b1e32;
  color: #fff;
  padding: 2rem;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  position: relative;
}

.newsletter-content {
  max-width: 500px;
  flex: 1;
}

.logo {
  width: 200px;
  margin-bottom: 1rem;
}

.title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.description {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.note {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #dcdcdc;
}

.highlight {
  color: #00d6d6;
  font-weight: 500;
}

.cta-button {
  display: inline-block;
  background-color: #00bcd4;
  color: #0b1e32;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #00a5bd;
    color: #fff;
}

/* Sovrapposizione immagini */
.newsletter-images {
  position: relative;
  width: 300px;
  height: 320px;
  flex: 1;
}

.newsletter-images img {
  position: absolute;
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

/* Ordine e posizione */
.img-1 {
  top: 100px;
  left: 1px;
  z-index: 3;
  transform: rotate(-5deg);
}
.img-2 {
  top:0px;
  left: 40px;
  z-index: 2;
  transform: rotate(2deg);
}
.img-3 {
  top: 130px;
  left: 130px;
  z-index: 1;
  transform: rotate(8deg);
}

/* Responsive layout */
@media (max-width: 768px) {
  .newsletter-section {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-images {
    margin-top: 2rem;
    width: 100%;
    height: auto;
  }

  .newsletter-images img {
    display: none
  }
}