/* ============================================
   BLOCKS — compatibilità tra i blocchi Gutenberg
   e il design system del tema (frontend + editor)
   ============================================ */

/* Immagini hero: il blocco Immagine avvolge <img> in <figure> */
.hero__image .wp-block-image,
.bio-hero__image .wp-block-image,
.treatment-row__image .wp-block-image {
  margin: 0;
  display: block;
}

.hero__image .wp-block-image img,
.bio-hero__image .wp-block-image img {
  display: block;
}

/* ------------------------------------------------------------
   Etichette e numeri: nel markup a blocchi sono <p>, non <span>.
   1) niente limite di larghezza del paragrafo
   2) margine zero dove lo <span> non ne aveva
   3) le regole generiche dei contenitori (".x p { ... }") non
      devono "sbiadire" i numeri e le etichette
   ------------------------------------------------------------ */
p.eyebrow,
p.section-number,
p.treatment-card__number,
p.specs__number,
p.expect__number,
p.formation__year,
p.hero__caption,
p.bio-hero__caption {
  max-width: none;
  opacity: 1;
  transition: none;
}

p.treatment-card__number,
p.specs__number,
p.formation__year,
p.hero__caption,
p.bio-hero__caption {
  margin-bottom: 0;
}

.approach__item p.section-number,
.promises__item p.section-number {
  line-height: 1.7;
  color: var(--color-ochre);
}

.specs__list p.specs__number {
  font-size: 1.25rem;
  color: var(--color-ochre);
}

.expect__steps p.expect__number {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.form-section__intro p.eyebrow {
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.treatment-card p.treatment-card__number {
  transition: color 0.4s ease;
}

/* FAQ con il blocco Dettagli: nessun margine proprio */
.faq__item.wp-block-details,
.faq__item.wp-block-details > p {
  margin: 0;
}

/* Testata "Trattamenti" in home: il contenitore interno è un gruppo */
.treatments__header > .wp-block-group {
  min-width: 0;
}
/* Se WordPress aggiunge comunque il contenitore interno, lo rende trasparente al layout */
.wp-block-group__inner-container {
  display: contents;
}
