.wp-block-legambiente-box-cta {
  padding: 0;
  text-align: inherit;
  background-color: transparent;
  border-radius: 0;
}

.wp-block-legambiente-box-cta .text-large-semibold {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

.wp-block-legambiente-box-cta section > a,
.wp-block-legambiente-banner-cta section > a {
  box-sizing: border-box;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.wp-block-legambiente-banner-cta em {
  color: #fdc600;
}

.legambiente-articolo-block > p,
.wp-block-legambiente-titolo-sezione .box-abstract {
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Preset di spacing minimi (usati dagli inline style Gutenberg) */
:root {
  --wp--preset--spacing--80: 1.5rem;
}

.cta-text {
  margin-bottom: 10px;
  font-size: 18px;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  color: #71ee8a;
  text-decoration: none;
  background-color: #0073aa;
  border-radius: 4px;
}

.wp-block-group.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--style--block-gap, 1rem);
}

/* Pulsanti Griglia Card: stile isolato dai CSS del tema ospitante. */
.wp-block-legambiente-card-grid a.card-grid-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  max-width: 100%;
  padding: .5rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #093e26;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid;
  border-radius: 9999px;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.wp-block-legambiente-card-grid a.card-grid-button-primary {
  background-color: #76fa91;
  border-color: #76fa91;
}

.wp-block-legambiente-card-grid a.card-grid-button-primary:hover {
  color: #093e26;
  background-color: #71ee8a;
  border-color: #71ee8a;
}

.wp-block-legambiente-card-grid a.card-grid-button-secondary {
  color: #093e26 !important;
  background-color: transparent !important;
  border: 1px solid #093e26 !important;
}

.wp-block-legambiente-card-grid a.card-grid-button-secondary:hover {
  color: #093e26 !important;
  background-color: #71ee8a !important;
  border-color: #71ee8a !important;
}

.wp-block-legambiente-card-grid a.card-grid-button:focus-visible {
  outline: 2px solid #093e26;
  outline-offset: 2px;
}
.is-layout-flex.items-justified-center {
  justify-content: center;
}
.is-layout-flex.items-justified-right {
  justify-content: flex-end;
}
.wp-block-video video,
.wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
}
.wp-block-video:not(.alignfull) {
  display: inline-flex;
  width: auto;
  max-width: 100%;
}
.wp-block-video:not(.alignfull) figure {
  display: inline-flex;
  width: auto;
  max-width: 100%;
}
.wp-block-video.aligncenter {
  display: flex;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}
.wp-block-video.alignright {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;

}
.wp-block-video.alignleft {
  display: flex;
  justify-content: flex-start;
  margin-right: auto;
}
.wp-block-video.alignfull {
  width: 100%;
  max-width: 100%;
}

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  align-items: flex-start;
}

.wp-block-column {
  box-sizing: border-box;
  min-width: 0;
  flex: 0 0 auto; /* di default non cresce: rispetta larghezze auto/inline */
  width: auto;
  max-width: none;
}

/* Se c'è un flex-basis inline (es. 200px) non forzare a crescere */
.wp-block-column[style*="flex-basis"] {
  flex-grow: 0;
  flex-shrink: 0;
}


/* ====== Blocco quote ====== */
.editor-styles-wrapper .wp-block-quote {
  /* layout */
  position: relative;
  width: 100%;
  max-width: 580px;
  padding-left: 1rem;
  margin: 2rem auto;

  /* reset del vecchio stile */
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* Barra verticale */
.editor-styles-wrapper .wp-block-quote::before {
  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: '';
  background: #15995c;
  border-radius: 9999px;
}

/* Testo della citazione */
.editor-styles-wrapper .wp-block-quote p {
  margin: 0 0 .5rem;
  font-size: 20px;
  font-style: italic;
  line-height: 31.2px;
  color: #111827;
}

/* Citation opzionale */
.editor-styles-wrapper .wp-block-quote cite,
.editor-styles-wrapper .wp-block-quote .wp-block-quote-citation {
  display: block;
  margin-top: .5rem;
  font-style: normal;
  font-weight: 600;
  color: #15995c;
}

/* Pullquote */
.editor-styles-wrapper .wp-block-pullquote {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.editor-styles-wrapper .wp-block-pullquote blockquote {
  position: relative;
  width: 100%;
  max-width: 580px;
  padding-left: 1rem;
  margin: 2rem auto;
}
.editor-styles-wrapper .wp-block-pullquote blockquote::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: '';
  background: #15995c;
  border-radius: 9999px;
}
.editor-styles-wrapper .wp-block-pullquote p {
  margin: 0 0 .5rem;
  font-size: 20px;
  font-style: italic;
  line-height: 31.2px;
  color: #111827;
}
