/* ── Reset container + override WP is-layout-constrained child rule ── */
.entry-content,
.wp-block-post-content,
.has-global-padding,
.is-layout-constrained {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

/* Override the WP rule: .is-layout-constrained > :where(...) { max-width: 620px; margin: auto } */
#ungari-nav,
#ungari-page,
#ungari-footer {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ── Esconder header/footer do tema ── */
header.wp-block-template-part,
footer.wp-block-template-part,
body footer.wp-block-template-part,
.wp-site-blocks > footer,
.wp-site-blocks > header {
  display: none !important;
}

/* ── Admin bar offset ── */
.admin-bar #ungari-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar #ungari-nav { top: 46px; } }

/* ── Base ── */
#ungari-page {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  background: #F7F5F0;
  color: #1A1A1A;
}
#ungari-page * { box-sizing: border-box; margin: 0; padding: 0; }
#ungari-page a { text-decoration: none; }

/* ── Tipografia ── */
#ungari-page .f-display { font-family: 'Fraunces', serif; }
#ungari-page h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem,4vw,2.8rem);
  font-weight: 700; line-height: 1.12; color: #1A1A1A; margin-bottom: 1rem;
}
#ungari-page h2 em { font-style: italic; color: #1D4E3A; }

/* ── Nav ── */
#ungari-nav {
  position: fixed !important;
  top: 0; left: 0 !important; right: 0 !important;
  z-index: 9999;
  padding: .85rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247,245,240,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  width: 100vw !important;
}
#ungari-nav.scrolled {
  border-color: #E2E0D8;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.unav-logo img { height: 52px; width: auto; display: block; }
.unav-links { display: flex; gap: 1.8rem; align-items: center; }
.unav-links a {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: #6B7280; font-weight: 400; transition: color .2s; text-decoration: none;
}
.unav-links a:hover, .unav-links a.active { color: #1D4E3A; }
.unav-cta {
  background: #1D4E3A !important; color: #F7F5F0 !important;
  padding: .46rem 1.1rem; border-radius: 2px;
}
.unav-cta:hover { background: #2D7A5A !important; }
.unav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.unav-burger span { width: 22px; height: 2px; background: #1A1A1A; border-radius: 2px; }

/* ── Botões ── */
#ungari-page .btn {
  display: inline-block; padding: .82rem 1.9rem;
  font-family: 'Outfit', sans-serif; font-size: .88rem;
  font-weight: 400; letter-spacing: .06em;
  cursor: pointer; border: none; transition: all .22s ease; border-radius: 2px;
}
.btn-primary { background: #1D4E3A; color: #F7F5F0; }
.btn-primary:hover { background: #2D7A5A; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(29,78,58,.22); }
.btn-outline { background: transparent; color: #1D4E3A; border: 1.5px solid #1D4E3A; }
.btn-outline:hover { background: #1D4E3A; color: #F7F5F0; }

/* ── Section base ── */
#ungari-page section { padding: 5rem 2rem; }
#ungari-page .sec-inner { max-width: 900px; margin: 0 auto; }
#ungari-page .sec-tag {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: #2D7A5A; font-weight: 400; margin-bottom: .8rem;
  display: flex; align-items: center; gap: .55rem;
}
#ungari-page .sec-tag::before { content: ''; width: 18px; height: 1px; background: #A8D5BE; }

/* ── Reveal (sem JS) ── */
#ungari-page .reveal { opacity: 1 !important; transform: none !important; }

/* ── Footer ── */
#ungari-footer {
  background: #1A1A1A; color: #F7F5F0;
  padding: 3rem 2rem 2rem;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
}
.uf-inner { max-width: 900px; margin: 0 auto; }
.uf-top {
  display: flex; flex-direction: column; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 1.4rem;
}
.uf-logo img { height: 30px; }
.uf-tagline { font-size: .8rem; color: rgba(247,245,240,.35); margin-top: .5rem; line-height: 1.65; max-width: 240px; }
.uf-col h4 { font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,245,240,.3); margin-bottom: .72rem; }
.uf-col a { display: block; font-size: .82rem; color: rgba(247,245,240,.52); text-decoration: none; margin-bottom: .38rem; transition: color .2s; }
.uf-col a:hover { color: #A8D5BE; }
.uf-bottom { font-size: .7rem; color: rgba(247,245,240,.22); }

@media(min-width:640px) {
  .uf-top { flex-direction: row; justify-content: space-between; }
}
@media(max-width:639px) {
  .unav-links {
    display: none; position: fixed; top: 56px; left: 0; right: 0;
    background: #F7F5F0; border-bottom: 1px solid #E2E0D8;
    flex-direction: column; gap: 0; padding: 1rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .unav-links.open { display: flex; }
  .unav-links a { padding: .7rem 2rem; border-bottom: 1px solid #E2E0D8; font-size: .82rem; }
  .unav-links a:last-child { border: none; }
  .unav-burger { display: flex; }
}