:root {
  --gtm-paper: #f3ebdd;
  --gtm-paper-light: #fffaf1;
  --gtm-ink: #25211f;
  --gtm-muted: #6d625c;
  --gtm-terra: #b95638;
  --gtm-terra-dark: #8f3f28;
  --gtm-line: rgba(72, 55, 45, 0.18);
  --gtm-header-height: 82px;
}

html { scroll-padding-top: calc(var(--gtm-header-height) + 62px); }
html:has(body.blog-page) { scroll-padding-top: calc(var(--gtm-header-height) + 18px); }

.gtm-global-header,
.gtm-global-header * { box-sizing: border-box; }

.gtm-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--gtm-header-height);
  border-bottom: 1px solid var(--gtm-line);
  background: rgba(243, 235, 221, 0.96);
  color: var(--gtm-ink);
  font-family: Arial, Helvetica, sans-serif;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(55, 35, 25, 0.035);
}

.gtm-global-header__inner {
  position: relative;
  display: grid;
  width: min(1520px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}

.gtm-global-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.gtm-global-brand img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: grayscale(1) contrast(.78);
}

.gtm-global-brand span { display: flex; flex-direction: column; line-height: 1.17; }
.gtm-global-brand strong { font-size: 14px; letter-spacing: .17em; }
.gtm-global-brand small { margin-top: 4px; color: var(--gtm-muted); font-size: 12px; }

.gtm-global-desktop { display: flex; height: 100%; align-items: stretch; justify-self: center; gap: 8px; }
.gtm-global-group { position: relative; display: flex; align-items: stretch; }
.gtm-global-group__control { position: relative; display: flex; align-items: stretch; }
.gtm-global-group__control > a,
.gtm-global-group__control > button {
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 15px/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
}
.gtm-global-group__control > a { padding: 0 4px 0 13px; }
.gtm-global-group__control > button { min-width: 31px; padding: 0 10px 0 3px; cursor: pointer; }
.gtm-global-group__control > button span { color: var(--gtm-terra); font: 18px/1 Georgia, serif; transition: transform .2s ease; }
.gtm-global-group:is(:hover, :focus-within, .is-open) .gtm-global-group__control { color: var(--gtm-terra-dark); }
.gtm-global-group:is(:hover, :focus-within, .is-open) .gtm-global-group__control > button span { transform: rotate(180deg); }
.gtm-global-group.is-current .gtm-global-group__control::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 12px;
  height: 2px;
  background: var(--gtm-terra);
  content: "";
}
.gtm-global-group__control > :focus-visible { outline: 2px solid var(--gtm-terra); outline-offset: -3px; }

.gtm-global-popover {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 1010;
  display: grid;
  width: 310px;
  padding: 17px;
  border: 1px solid var(--gtm-line);
  border-top: 3px solid var(--gtm-terra);
  background: rgba(255, 250, 241, .985);
  box-shadow: 0 22px 55px rgba(55, 35, 25, .17);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  visibility: hidden;
  transition: opacity .2s ease, transform .24s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .24s;
}
.gtm-global-group:last-child .gtm-global-popover { right: 0; left: auto; transform: translateY(-8px); }
.gtm-global-group:is(:hover, :focus-within, .is-open) .gtm-global-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  transition-delay: 0s;
}
.gtm-global-group:last-child:is(:hover, :focus-within, .is-open) .gtm-global-popover { transform: translateY(0); }
.gtm-global-popover p { margin: 0 8px 9px; color: var(--gtm-terra); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.gtm-global-popover a {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 8px;
  border-top: 1px solid var(--gtm-line);
  color: var(--gtm-ink);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease, background .15s ease, padding .15s ease;
}
.gtm-global-popover a:hover,
.gtm-global-popover a:focus-visible { padding-left: 12px; background: rgba(185, 86, 56, .07); color: var(--gtm-terra-dark); outline: 0; }
.gtm-global-popover a span { color: var(--gtm-terra); font: 19px/1 Georgia, serif; }

.gtm-global-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 12px 21px;
  border: 1px solid var(--gtm-terra);
  color: var(--gtm-terra-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.gtm-global-cta:hover,
.gtm-global-cta:focus-visible { background: var(--gtm-terra); color: #fff; outline: 0; }
.gtm-global-mobile-toggle,
.gtm-global-mobile-panel { display: none; }

.gtm-context-nav {
  position: sticky;
  top: var(--gtm-header-height);
  z-index: 900;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px;
  border-bottom: 1px solid var(--gtm-line);
  background: rgba(255, 250, 241, .96);
  color: var(--gtm-ink);
  font-family: Arial, Helvetica, sans-serif;
  backdrop-filter: blur(14px);
}
.gtm-context-nav > span { color: var(--gtm-terra); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.gtm-context-nav > a { padding: 16px 0 14px; color: inherit; font-size: 12px; font-weight: 700; text-decoration: none; }
.gtm-context-nav > a:hover,
.gtm-context-nav > a:focus-visible { color: var(--gtm-terra); outline: 0; }

@media (max-width: 1040px) {
  html,
  html:has(body.blog-page) { scroll-padding-top: calc(var(--gtm-header-height) + 14px); }
  .gtm-global-header__inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; }
  .gtm-global-desktop { display: none; }
  .gtm-global-mobile-toggle {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 6px 7px 6px 14px;
    border: 1px solid var(--gtm-line);
    background: var(--gtm-paper-light);
    color: var(--gtm-ink);
    font: 700 12px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
  }
  .gtm-global-mobile-toggle i { display: grid; width: 32px; height: 32px; place-content: center; gap: 4px; background: var(--gtm-terra); font-style: normal; }
  .gtm-global-mobile-toggle i b { display: block; width: 15px; height: 1.5px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
  .gtm-global-mobile-toggle[aria-expanded="true"] i b:first-child { transform: translateY(5.5px) rotate(45deg); }
  .gtm-global-mobile-toggle[aria-expanded="true"] i b:nth-child(2) { opacity: 0; }
  .gtm-global-mobile-toggle[aria-expanded="true"] i b:last-child { transform: translateY(-5.5px) rotate(-45deg); }
  .gtm-global-mobile-panel {
    position: fixed;
    top: var(--gtm-header-height);
    right: 0;
    display: flex;
    width: min(430px, 100%);
    height: calc(100dvh - var(--gtm-header-height));
    flex-direction: column;
    overflow-y: auto;
    padding: 22px;
    border-left: 1px solid var(--gtm-line);
    background: linear-gradient(160deg, #fffaf3, #f2e4d3);
    box-shadow: -24px 24px 70px rgba(25, 20, 17, .25);
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    visibility: hidden;
    transition: opacity .2s ease, transform .24s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .24s;
  }
  .gtm-global-mobile-panel.is-open { opacity: 1; pointer-events: auto; transform: none; visibility: visible; transition-delay: 0s; }
  .gtm-global-mobile-panel__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--gtm-line); }
  .gtm-global-mobile-panel__top div { display: grid; gap: 6px; }
  .gtm-global-mobile-panel__top small,
  .gtm-global-mobile-panel p { margin: 0; color: var(--gtm-terra); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
  .gtm-global-mobile-panel__top strong { font: 400 28px/1 Georgia, "Times New Roman", serif; }
  .gtm-global-mobile-panel__top > button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--gtm-line); border-radius: 50%; background: var(--gtm-paper-light); color: var(--gtm-ink); font-size: 25px; cursor: pointer; }
  .gtm-global-mobile-areas,
  .gtm-global-mobile-context { display: grid; padding: 18px 0; }
  .gtm-global-mobile-areas > p,
  .gtm-global-mobile-context > p { margin-bottom: 9px; }
  .gtm-global-mobile-areas > a,
  .gtm-global-mobile-context a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--gtm-line); color: var(--gtm-ink); font-size: 16px; text-decoration: none; }
  .gtm-global-mobile-areas > a[aria-current="page"] { color: var(--gtm-terra-dark); }
  .gtm-global-mobile-areas > a[aria-current="page"] strong::after { content: " · você está aqui"; color: var(--gtm-muted); font-size: 10px; font-weight: 400; }
  .gtm-global-mobile-areas > a span,
  .gtm-global-mobile-context a > span:last-child { color: var(--gtm-terra); font: 18px/1 Georgia, serif; }
  .gtm-global-mobile-context { padding-top: 4px; }
  .gtm-global-mobile-context > div { display: grid; }
  .gtm-global-mobile-context a small { min-width: 28px; color: var(--gtm-muted); font-size: 11px; }
  .gtm-global-mobile-context a strong { flex: 1; font-size: 15px; }
  .gtm-global-mobile-cta { position: sticky; bottom: -22px; display: flex; min-height: 54px; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding: 14px 17px; background: var(--gtm-terra); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 -10px 24px rgba(242, 228, 211, .95); }
  .gtm-context-nav { display: none; }
}

@media (max-width: 620px) {
  :root { --gtm-header-height: 68px; }
  .gtm-global-header__inner { width: calc(100% - 28px); grid-template-columns: minmax(0, 1fr) auto; }
  .gtm-global-brand { gap: 9px; }
  .gtm-global-brand img { width: 40px; height: 40px; }
  .gtm-global-brand strong { font-size: 11px; letter-spacing: .13em; }
  .gtm-global-brand small { font-size: 10px; }
  .gtm-global-cta { display: none; }
  .gtm-global-mobile-toggle { min-height: 42px; padding: 5px; }
  .gtm-global-mobile-toggle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gtm-global-mobile-toggle i { width: 32px; height: 32px; }
  .gtm-global-mobile-panel { padding: 18px 16px; }
  .gtm-global-mobile-panel__top strong { font-size: 25px; }
  .gtm-global-mobile-cta { bottom: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  .gtm-global-group__control > button span,
  .gtm-global-popover,
  .gtm-global-popover a,
  .gtm-global-mobile-toggle i b,
  .gtm-global-mobile-panel { transition: none; }
}
