/* Ambercat media fix v1.0.2 */
/* Tutte le immagini ed elementi con classe .et-waypoint (legacy Divi 4) devono essere SEMPRE visibili al 100% e mai a opacity:0 */
.et-waypoint:not(.et_pb_counters),
html.ac-anim-js .et-waypoint:not(.et_pb_counters),
html.ac-anim-js .et-waypoint:not(.et_pb_counters):not(.ac-in),
html.ac-anim-js .et-waypoint:not(.et_pb_counters).ac-in {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

/* Video YouTube in attesa di consenso */
.ac-yt-box { position: relative; aspect-ratio: 16 / 9; max-width: 100%; }
.ac-yt-box > iframe { width: 100% !important; height: 100% !important; }
.ac-yt-ph {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: #29232c center / cover no-repeat; border-radius: 6px; overflow: hidden; text-align: center;
}
.ac-yt-ph::before { content: ""; position: absolute; inset: 0; background: rgba(41, 35, 44, .62); }
.ac-yt-ph__inner { position: relative; max-width: 560px; padding: 20px; color: #fff; }
.ac-yt-ph__play {
  display: inline-block; width: 72px; height: 72px; border-radius: 50%; background: #97307c; position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); margin-bottom: 14px;
}
.ac-yt-ph__play::after {
  content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}
.ac-yt-ph__title { font-size: 22px !important; font-weight: 700; line-height: 1.25; margin: 0 0 8px !important; color: #fff !important; padding: 0 !important; }
.ac-yt-ph__txt { font-size: 15px !important; line-height: 1.5; margin: 0 0 16px !important; color: #f3eef4 !important; padding: 0 !important; }
.ac-yt-ph__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ac-yt-ph__btn, .ac-yt-ph__link {
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; display: inline-flex; align-items: center;
  padding: 12px 20px; margin: 0; border-radius: 999px; cursor: pointer; text-decoration: none !important;
}
.ac-yt-ph__btn { background: #97307c; color: #fff; border: 0; }
.ac-yt-ph__btn:hover { background: #7c2565; }
.ac-yt-ph__link { color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .8); }
@media (max-width: 600px) {
  .ac-yt-box { min-height: 230px; }
  .ac-yt-ph__inner { padding: 12px; }
  .ac-yt-ph__play { display: none; }
  .ac-yt-ph__title { font-size: 17px !important; }
  .ac-yt-ph__txt { font-size: 13px !important; margin-bottom: 10px !important; }
  .ac-yt-ph__btn, .ac-yt-ph__link { padding: 10px 14px; font-size: 13px; }
}

/* v1.0.1: video Divi sempre in proporzione 16:9 (anche quando l'iframe viene attivato dopo il consenso) */
.et_pb_video_box > iframe, .et_pb_video_box .fluid-width-video-wrapper iframe {
  width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; display: block;
}
.et_pb_video_box .fluid-width-video-wrapper { padding-top: 0 !important; height: auto !important; }
.et_pb_video_box .fluid-width-video-wrapper iframe { position: static !important; }
