/* Marchi Cerimonia — sito statico (ottobre 2026).
   Tre pezzi nuovi rispetto al sito WordPress:
   - il pulsante WhatsApp, al posto di quello di getbutton.io (stesso numero, collegamento diretto, niente script esterni);
   - il blocco delle recensioni in home, al posto del widget del plugin (che usava le Places API di Google);
   - il segnaposto della mappa dei contatti e dello Street View di «Chi siamo», finché il visitatore non accetta i
     cookie «Esperienza». */

/* Pulsante WhatsApp: stesse misure, colori e posizione di quello di getbutton.io (tondo verde a 23 px dal bordo sinistro
   e 34 px dal fondo, fumetto «Contattaci» a destra; da telefono e tablet solo il tondo, come oggi) */
.whatsapp-statico,
.whatsapp-statico:hover,
.whatsapp-statico:focus {
  position: fixed;
  left: 23px;
  bottom: 34px;
  z-index: 16000160;
  display: flex;
  align-items: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp-statico__icona {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  padding-top: 1px;
  border-radius: 50%;
  background: #4dc247;
  box-shadow: 0 1px 7px rgba(136, 136, 136, .4);
  color: #fff;
}
.whatsapp-statico .whatsapp-statico__icona .fa {
  font-size: 32px;
  line-height: 1;
}
.whatsapp-statico__invito {
  position: relative;
  display: block;
  flex-shrink: 0;
  max-width: 172px;
  margin-left: 31px;
  padding: 7px 10px;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 7px rgba(136, 136, 136, .4);
  color: #000;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  animation: whatsapp-statico-entra .64s cubic-bezier(.23, 1, .32, 1) .16s backwards;
}
.whatsapp-statico__invito::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-top: 1px solid #e2e2e2;
  border-left: 1px solid #e2e2e2;
  background: #fff;
  transform: rotate(-45deg);
}
@keyframes whatsapp-statico-entra {
  0% { opacity: 0; left: -20px; }
  100% { opacity: 1; left: 0; }
}
@media (hover: none) and (pointer: coarse) {
  .whatsapp-statico__invito { display: none; }
}
@media print {
  .whatsapp-statico { display: none; }
}

/* Recensioni: blocco scuro con il voto e il collegamento alle recensioni del profilo Google (nuova scheda) */
.recensioni-statico {
  margin: 10px 0 0;
  padding: 70px 30px 76px;
  background: #1f1f1f;
  color: #fff;
  text-align: center;
}
.recensioni-statico p { margin: 0; color: #fff; }
.recensioni-statico__stelle {
  display: inline-block;
  font-size: 46px;
  line-height: 1 !important;
  letter-spacing: 6px;
  background: linear-gradient(90deg, #f5b301 calc(var(--voto, 5) / 5 * 100%), #5a5a5a 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  margin-bottom: 18px !important;
}
.recensioni-statico__voto {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1 !important;
}
.recensioni-statico__voto span { font-size: 26px; font-weight: 400; }
.recensioni-statico__numero {
  margin-top: 12px !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.recensioni-statico__testo {
  max-width: 560px;
  margin: 26px auto 34px !important;
  font-size: 16px;
  line-height: 1.6 !important;
  color: #e6e6e6 !important;
}
.recensioni-statico a.qbutton.recensioni-statico__pulsante {
  margin: 0;
  color: #fff;
  border-color: #fff;
  background: transparent;
}
.recensioni-statico a.qbutton.recensioni-statico__pulsante:hover,
.recensioni-statico a.qbutton.recensioni-statico__pulsante:focus {
  color: #1f1f1f;
  background: #fff;
}
@media (max-width: 600px) {
  .recensioni-statico { padding: 50px 20px 56px; }
  .recensioni-statico__stelle { font-size: 36px; letter-spacing: 4px; }
  .recensioni-statico__voto { font-size: 52px; }
}

/* Mappa dei contatti: segnaposto sopra la mappa finché non c'è il consenso */
.mappa-con-segnaposto { position: relative; }
.mappa-segnaposto {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #ececec;
  text-align: center;
}
.mappa-segnaposto p { margin: 0 0 12px; }
.mappa-segnaposto a { font-weight: 600; text-decoration: underline; }
.mappa-caricata .mappa-segnaposto { display: none; }
.mappa-con-segnaposto .sbvcgmap-marker { display: none; }

/* Street View di «Chi siamo»: lo stesso segnaposto, dentro il riquadro .google-maps del tema, sopra l'iframe che iubenda
   tiene bloccato. Sparisce quando iubenda attiva l'iframe (classe _iub_cs_activate-activated). Due regole separate: un
   browser che non conosce :has() scarterebbe tutta la regola, anche la parte che capisce. */
.google-maps iframe._iub_cs_activate-activated + .mappa-segnaposto { display: none; }
.google-maps:has(iframe._iub_cs_activate-activated) .mappa-segnaposto { display: none; }
