/* stile solo per l’editor Gutenberg */
.wp-block[data-type="lazyblock/immagine-comparazione"] {
  border: 2px dashed #ccc;
  padding: 20px;
  background-color: #f5f5f5;
}

/* esempio: stile di un campo all’interno del blocco */
.wp-block[data-type="lazyblock/immagine-comparazione"] .lazyblock-field-label {
  font-weight: bold;
  color: #444;
}

/**** BLOCCO COMPARAZIONE IMMAGINE ****/
.lb-image-comparison {
  position: relative;
  width: 100%;

  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.lb-image-comparison img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.lb-after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
  overflow: hidden;
  z-index: 2;
  transition: none;
}

.lb-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 8px; /* larghezza più ampia per zona attiva */
  margin-left: -4px; /* per centrare la linea */
  cursor: ew-resize;
  pointer-events: auto;
  z-index: 20;
}

/* solo la linea vera visibile */
.lb-slider-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px; /* la linea sottile vera */
  background-color: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

/**** BLOCCO FAQ ****/

/**** faq ****/
.faq-domanda {
  background-color: #fff;
  color: #666;
  padding: 1em;
  font-weight: bold;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  position: relative;
  margin-bottom: 0;
  font-size:1.2em;
}

.faq-domanda::after {
  content: "\f078"; /* Font Awesome chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.faq-domanda.open::after {
  content: "\f077"; /* chevron-up */
}

.faq-risposta {
  display: none;
  padding: 1em 1.5em;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 1em;
}

.faq-risposta.visible {
  display: block;
}

/* blocco scegli icona */
svg.icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  fill: currentColor;
  margin-right: 0.25em;
  line-height: 1;
  padding-bottom:0.25em;
}
