/* 1) Astra: elimina por completo el slot del título nativo de la página */
body.highlighted-page-event .ast-article-single .entry-header,
body.highlighted-page-event .ast-article-single .entry-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 2) No permitas que el primer bloque del contenido añada margen superior */
body.highlighted-page-event .entry-content>*:first-child {
  margin-top: 0 !important;
}

/* 3) Hero: cero margen en el H1 y ajuste fino del subtítulo */
body.highlighted-page-event .ayp-hero-title {
  margin: 0 !important;
  line-height: 1.15;
  /* opcional, compacto */
}

body.highlighted-page-event .ayp-hero-subtitle {
  margin: 6px 0 0 0 !important;
  color: Red
    /* pegadito al título */
}

/* 4) Por si Gutenberg aplica block gap dentro del hero */
body.highlighted-page-event .ayp-hero-cover .wp-block-cover__inner-container>* {
  margin-block-start: 0 !important;
}

/* 5) En escritorio, anula el margen que Astra mete en #primary */
@media (min-width: 1199px) {
  body.highlighted-page-event .ast-plain-container.ast-no-sidebar #primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Mata cualquier margen de #primary en landings Highlight */
body.highlighted-page-event #primary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Si Astra añade variantes por contenedor, cúbrelas todas */
body.highlighted-page-event.ast-plain-container.ast-no-sidebar #primary,
body.highlighted-page-event.ast-plain-container #primary,
body.highlighted-page-event.ast-separate-container #primary,
body.highlighted-page-event.ast-page-builder-template #primary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Quita el padding/aire superior de la zona de contenido por si el gap viene de ahí */
body.highlighted-page-event .site-content,
body.highlighted-page-event .site-content .ast-container {
  padding-top: 0 !important;
}

/* Primer bloque del contenido sin “block gap” de Gutenberg */
body.highlighted-page-event .entry-content>*:first-child {
  margin-top: 0 !important;
}

/* Hero: 0 margen del H1 y subtítulo pegado */
body.highlighted-page-event .ayp-hero-title {
  margin: 0 !important;
}

body.highlighted-page-event .ayp-hero-subtitle {
  margin: 6px 0 0 0 !important;
}

/* Overlay del hero (color + opacidad) */
body.highlighted-page-event .ayp-hero-cover .wp-block-cover__background {
  background-color: #060A21 !important;
  opacity: .5 !important;
}

/* Repite la anulación justo en el breakpoint de Astra (por si algún CSS inline gana) */
@media (min-width: 1200px) {
  body.highlighted-page-event #primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}