/* frabolo.it — video e lettori "a clic" (15/11/2026)
   YouTube e Spotify si caricano solo quando il visitatore preme play:
   prima del clic la pagina non contatta nessun servizio esterno.
   Lo usano la home (snippet WPCode "frabolo-unico"), /booking e /iononhopiupaura. */

.fr-clic {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0b0b var(--fr-copertina, none) center / cover no-repeat;
  color: #fff;
  text-align: center;
}

/* velo scuro sopra la copertina, così pulsante e nota si leggono sempre */
.fr-clic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}

.fr-clic > * { position: relative; }

.fr-clic button.fr-clic__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .9) !important; /* il tema toglie il bordo ai pulsanti con !important */
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.fr-clic button.fr-clic__play:hover,
.fr-clic button.fr-clic__play:focus-visible {
  transform: scale(1.06);
  background: rgba(0, 0, 0, .7);
  outline: none;
}

.fr-clic__play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }

.fr-clic__nota {
  margin: 0;
  padding: 0 16px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.fr-clic__nota a { color: inherit; text-decoration: underline; }

.fr-clic iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fr-clic--attivo::before { display: none; }

/* lettore Spotify: striscia bassa con copertina a sinistra */
.fr-clic--spotify {
  flex-direction: row;
  justify-content: flex-start;
  gap: 16px;
  aspect-ratio: auto;
  height: 152px;
  padding: 0 20px 0 0;
  border-radius: 12px;
  background: #181818;
  text-align: left;
}

.fr-clic--spotify::before { display: none; }

.fr-clic--spotify .fr-clic__cop { width: 152px; height: 152px; flex: 0 0 152px; object-fit: cover; }

.fr-clic--spotify .fr-clic__testo { display: flex; flex-direction: column; gap: 10px; }

.fr-clic--spotify button.fr-clic__play { width: 52px; height: 52px; }

.fr-clic--spotify .fr-clic__play svg { width: 20px; height: 20px; }

.fr-clic--spotify .fr-clic__nota { padding: 0; text-shadow: none; }

/* finestra del video della home ("Su Frabolo") */
.fr-clic-finestra {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .88);
}

.fr-clic-finestra__box { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; }

.fr-clic-finestra__box iframe { width: 100%; height: 100%; border: 0; }

.fr-clic-finestra__chiudi {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
