/* ======================================================
   🔹 Formazione AGR – CSS per nascondere Header e Footer
   (compatibile con Astra e Twenty Twenty-Five)
   ====================================================== */

/* HEADER */
header,
.site-header,
.wp-block-template-part[area="header"],
.ast-header-break-point,
.ast-mobile-header-wrap,
.wp-block-group.has-global-padding.is-layout-constrained header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* FOOTER */
footer,
.site-footer,
.wp-block-template-part[area="footer"],
.ast-footer-wrap,
.ast-footer,
.wp-block-group.has-global-padding.is-layout-constrained footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* OPZIONALE – elimina eventuali spazi residui */
body {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Rimuove i margini automatici del tema intorno ai template parts */
.wp-site-blocks > *:first-child,
.wp-site-blocks > *:last-child {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}