/* Sezione base */
.em-cs { padding: 3rem 0; }
.em-cs--white { background:#fff; }
.em-cs--dark  { background:#3a1f26; color:#f1e9ea; }
.em-cs--none  { background:transparent; }

/* LAYOUT: FLEX (swap sx/dx affidabile) */
.em-cs__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2.5rem;
}

/* colonne */
.em-cs__media,
.em-cs__content{
  flex:1 1 50%;
  min-width:0;
}

/* quando immagine a destra */
.em-cs--image_right .em-cs__media{ order:2; }
.em-cs--image_right .em-cs__content{ order:1; }

/* media */
.em-cs__media img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
}

/* video wrapper con aspect ratio 16:9 */
.em-cs__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  border-radius: 0; /* nessun bordo arrotondato per i video */
}
.em-cs__video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* media più grande quando è video */
.em-cs__media--video {
  flex: 1 1 60%;
  max-width: 700px;
}
.em-cs__media--video + .em-cs__content,
.em-cs--image_right .em-cs__content:has(+ .em-cs__media--video) {
  flex: 1 1 40%;
}

/* testi */
.em-cs__title{ margin:0 0 .75rem; font-weight:600; letter-spacing:.02em; }
.em-cs__text { margin-bottom:1.25rem; line-height:1.6; font-size: .875rem;text-align: justify;}
.em-cs__btn  { text-transform:uppercase; letter-spacing:.06em; }

/* optional: limita la larghezza dell’immagine su desktop */
@media (min-width: 992px){
  .em-cs__media{ max-width:560px; }
}

/* responsive: stack in colonna su tablet/mobile */
@media (max-width: 991.98px){
  .em-cs{ padding:1.5rem 0; }
  .em-cs__inner{ flex-direction:column; }
  .em-cs--image_right .em-cs__media,
  .em-cs__media{ order:0; width:100%; }
  .em-cs--image_right .em-cs__content,
  .em-cs__content{ order:0; }

  .em-cs__content{
    padding-left:1.25rem;
    padding-right:1.25rem;
  }
  .em-cs__text{
    margin-left:0;
    margin-right:0;
    padding-left:1.5rem;
    padding-right:1.5rem;
  }
}

/* BO form tweaks (non influisce sul front) */
.panel .nav-tabs { margin-bottom: 0; }
.panel .tab-content { background:#fff; }

/* Stile pulsante outlined */
.em-cs__btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #a0522d; /* colore del bordo (modificalo se serve) */
  background: transparent;
  color: #a0522d; /* stesso colore del bordo */
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.em-cs__btn:hover {
  background: #a0522d;
  color: #fff;
}