/* Video YouTube e mappa Google: anteprima locale, caricamento solo al clic (vedi assets/js/embeds.js) */

.rh-embed {
  position: relative;
  overflow: hidden;
  background: #111518 center / cover no-repeat;
  font-family: Montserrat, Sans-Serif;
  line-height: 1.5;
}
.rh-embed__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* --- Video --- */
.elementor-widget-video .elementor-wrapper { position: relative; }
.rh-embed--video { position: absolute; inset: 0; }
.rh-embed--video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.85) 100%);
}
.rh-embed.is-loaded::before { display: none; }
.rh-embed__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.rh-embed__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #AD3010;
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
  transition: transform .2s ease, background-color .2s ease;
}
.rh-embed__play-icon svg { width: 30px; height: 30px; margin-left: 5px; fill: #fff; }
.rh-embed__play:hover .rh-embed__play-icon,
.rh-embed__play:focus-visible .rh-embed__play-icon { transform: scale(1.08); background: #c63a16; }
.rh-embed__play:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.rh-embed__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 12px 18px;
  color: #d5dbe1;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}
.rh-embed__note a,
.rh-embed__map-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }
.rh-embed__note a:hover,
.rh-embed__map-note a:hover { color: #e0512b; }

/* --- Mappa --- */
.elementor-widget-google_maps .elementor-custom-embed { line-height: 1.5; }
.rh-embed--map {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(173,48,16,.25) 0, rgba(173,48,16,0) 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 36px);
}
.rh-embed__map-inner { position: relative; max-width: 440px; padding: 20px; }
.rh-embed__pin { display: block; width: 34px; height: 34px; margin: 0 auto; fill: #AD3010; }
.rh-embed__place { display: block; margin: 6px 0 14px; color: #fff; font-family: Kanit, Sans-Serif; font-size: 20px; }
.rh-embed__btn {
  padding: 11px 24px;
  border: 0;
  border-radius: 3px;
  background: #AD3010;
  color: #fff;
  font: 600 14px/1 Montserrat, Sans-Serif;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease;
}
.rh-embed__btn:hover,
.rh-embed__btn:focus-visible { background: #c63a16; }
.rh-embed__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rh-embed__map-note { margin: 14px 0 0; color: #a9b3be; font-size: 12px; }

@media (max-width: 600px) {
  .rh-embed__play-icon { width: 64px; height: 64px; }
  .rh-embed__play-icon svg { width: 24px; height: 24px; }
  /* su schermi piccoli la nota completa coprirebbe il video: versione breve + link all'informativa */
  .rh-embed__note { padding: 8px 10px; font-size: 0; }
  .rh-embed__note::before { content: "Video hosted on YouTube (Google) · "; font-size: 11px; }
  html[lang^="it"] .rh-embed__note::before { content: "Video ospitato su YouTube (Google) · "; }
  .rh-embed__note a { font-size: 11px; }
}
