/* overlay bianco semitrasparente */
.smp-overlay {
  display: none;
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
}

/* modal flex container, nessun padding */
.smp-modal {
  display: flex;
  padding: 0;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  box-sizing: border-box;
  z-index: 10000;
  width: 100%;
  max-width: 800px; /* o quel che preferisci, puoi anche rimuoverlo e lasciarlo gestire da JS */
  overflow: hidden;
}

/* lato immagine: 1/3 */
.smp-modal .smp-image {
  flex: 0 0 33.3333%;
}
.smp-modal .smp-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* lato contenuto: 2/3 */
.smp-modal .smp-content {
  flex: 0 0 66.6667%;
  padding: 50px; /* se vuoi puoi regolare */
  box-sizing: border-box;
}
.smp-modal .smp-content p {
  padding: 0px;
  margin: 0px;
}
.smp-modal .smp-content h4 {
  font-size:30px;
  line-height: 1.2;
}
/* bottone sotto il contenuto */
.smp-modal .smp-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid #333;
  text-decoration: none;
  font-family: Instrument Sans;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}
.smp-modal .smp-button:hover {
  background-color: #232323;
  color: #FFFFFF
}
/* pulsante di chiusura */
.smp-close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 30px; line-height:1;
  cursor: pointer; z-index: 10001;
}

/* blur del resto della pagina */
body.smp-blur > *:not(.smp-overlay):not(.smp-modal) {
  filter: blur(5px);
}

/* responsive: in colonna su mobile */
@media (max-width: 767px) {
  .smp-modal {
        flex-direction: column;
        max-width: 90%;
        width: 75%;
        transform: translate(-50%, -50%);
    }
  .smp-modal .smp-image,
  .smp-modal .smp-content {
    flex: 0 0 auto;
    width: 100%;
  }
  .smp-modal .smp-content {
    padding: 30px;
  }
}
