* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* FIX: Body/Main no top spacing at all */
html, body, .site-main, #main, main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body {
  background-color: #fff;
}

/* Ensure fixed header accounts for admin bar when logged in */
.admin-bar .site-header {
  top: 52px !important;  /* WordPress admin bar height (32px) + extra margin (20px) */
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 66px;  /* Mobile admin bar height (46px) + extra margin (20px) */
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== HERO SECTIONS - Global padding for navbar space ===== */
/* All hero sections allow navbar to float over with only minimal offset */
[class*="-hero"],
.hero-section,
.page-hero {
}

@media (max-width: 768px) {
  [class*="-hero"],
  .hero-section,
  .page-hero {
    padding-top: 0 !important;
  }
}

/* Container */
.container {
  max-width: var(--breakpoint-xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ===== GUTENBERG BLOCK CANVAS SUPPORT ===== */
/* Full-width block support for Gutenberg */

.site-main--gutenberg {
  margin-top: 0;
  padding-top: 0;
}

/* Allow blocks to go full-width */
.site-main--gutenberg > * {
  max-width: 100%;
}

/* Alignfull support */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Alignwide support */
.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Default content width */
.alignnone,
.aligncenter {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure Floresta blocks render full-width */
.wp-block-floresta-page-hero,
.wp-block-floresta-query-editais,
.wp-block-floresta-query-news,
.wp-block-floresta-theme-utilities {
  width: 100%;
}

.wp-block-floresta-abordagens-items,
.wp-block-floresta-comunicacao-section {
  width: 100%;
  max-width: none;
}

/* Remove body padding-top when using Gutenberg canvas */
body.page .site-main--gutenberg {
  margin-top: -200px; /* Offset the body padding-top */
}

/* Home page specific */
.site-main--home {
  background-color: var(--verde-escuro-brand);
  /* Guard rail for any wide child (Safari rounding/scrollbar issues) */
  overflow-x: hidden;
}
