/* css/popup.css */

/* overlay sempre nascosto via CSS */
.smp-overlay {
  display: none;
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(255,255,255,0.8);
  z-index: 999999999;
}

/* modal container: nascosto fino a quando il JS non abilita display:flex */
.smp-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* flex-direction resta, ma non è flex finché non glielo diamo via JS */
  flex-direction: row;
  padding: 0;
  background: #fff;
  box-shadow: 0 0 2px rgba(0,0,0,0.1);
  box-sizing: border-box;
  z-index: 1000000000;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  border-radius: 0px;
}

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

/* contenuto 2/3 */
.smp-modal .smp-content {
  flex: 0 0 66.6667%;
  padding: 50px;
  box-sizing: border-box;
}
.smp-modal .smp-content p { margin:0; padding:0; }

/* bottone */
.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;
  background-color: #232323;
  letter-spacing: 1px;
  color:#FFFFFF;
  margin-top: 60px
}
.smp-modal .smp-button:hover {
opacity: 0.8;
  color: #fff;
}

/* 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: 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;
  }
}
