.shv-single {
  position: relative;
  width: 100%;
  height: var(--shv-height, 50vh);
  overflow: hidden;
  color: var(--shv-text-color, #ffffff);
}

.shv-single__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.shv-single__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shv-single__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--shv-overlay-color, #000000);
  opacity: var(--shv-overlay-opacity, 0.35);
  pointer-events: none;
}

.shv-single__content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.shv-single__inner {
  width: 100%;
  max-width: 1200px;
}

/* LAYOUT 50 / 50 */
.shv-single__headline {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  font-size: var(--shv-font-size, 48px);
  line-height: 1.2;
}

/* BLOCCO SINISTRA (animato) */
.shv-single__typing-wrap {
  width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  height: 1.5em;
  line-height: 1.35;
  padding-right: 0.15em;
}

/* TESTO ANIMATO */
.shv-single__typing {
  font-size: inherit;
  font-weight: 300;
  line-height: 1.35;
  white-space: nowrap;
  text-align: right;

  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.shv-single__typing.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* BLOCCO DESTRA (fisso) */
.shv-single__static {
  width: 50%;
  font-size: inherit;
  font-weight: 300;
  line-height: 1.2;
  text-align: left;
  padding-left: 0.15em;
}

/* TABLET */
@media (max-width: 1024px) {
  .shv-single__headline {
    font-size: calc(var(--shv-font-size, 48px) * 0.8);
  }

  .shv-single__typing-wrap {
    height: 1.55em;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  
    .shv-single__video {
    object-fit: cover;
    object-position: center top;
  }
  
  .shv-single {
    min-height: 320px;
  }

  .shv-single__content {
    padding: 1.5rem;
  }

  .shv-single__headline {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--shv-font-size, 48px) * 0.55);
    line-height: 1.15;
  }

  /* prima animato */
  .shv-single__typing-wrap {
    order: 1;
    width: 100%;
    justify-content: center;
    text-align: center;
    height: 1.6em;
    line-height: 1.4;
    padding: 0;
  }

  .shv-single__typing {
    text-align: center;
    white-space: normal;
    line-height: 1.4;
  }

  /* sotto fisso */
  .shv-single__static {
    order: 2;
    width: 100%;
    text-align: center;
    padding: 0;
    line-height: 1.15;
  }
}