/* Home only (17/11/2026). Two fixes to the hero.
   1. "Acompanhe aqui seu último pedido": the native bar sat at the bottom of the transparent header,
      over the top of the banner art. On the home it becomes the first line of the page, the header
      and the hero move down together, and the art keeps its place under the menu.
      The theme shows the bar by clearing its inline style and hides it with display: none, so the
      offset only applies while the bar is visible. The hero script re-measures the header on resize. */
body.template-home { --ms-order-bar-h: 40px; }
body.template-home .head-main .notification-order {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  box-sizing: border-box;
  height: var(--ms-order-bar-h);
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #2c302b;
  background: #f8f7f3;
  border-bottom: 1px solid #daddd2;
  font-size: 13px;
  line-height: 1.2;
}
body.template-home .head-main .notification-order .container,
body.template-home .head-main .notification-order .row,
body.template-home .head-main .notification-order .col {
  height: 100%;
}
body.template-home .head-main .notification-order .col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
body.template-home .head-main .notification-order a,
body.template-home .head-main .notification-order .btn-link {
  color: #2c302b;
}
body.template-home .head-main .notification-order .btn-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.template-home .head-main .notification-order .notification-close {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  margin: 0;
}
body.template-home .head-main .notification-order .notification-close svg { width: 16px; height: 16px; fill: currentColor; }
/* A block, not padding: the hero script's ResizeObserver reads the content box, so closing the bar must change it. */
body.template-home .head-main:has(.notification-order:not([style*="none"]))::before {
  content: '';
  display: block;
  height: var(--ms-order-bar-h);
}
body.template-home:has(.head-main .notification-order:not([style*="none"])) .ms-home-v2 {
  margin-top: calc(var(--ms-order-bar-h) - var(--ms-motion-header-height));
}

/* 2. The banner keeps its fade into the page paper, but shorter: the 15/10 fade (64–128 px) started too high
      and washed the bottom of the art. The fade now starts near the edge and eases out, so there is no hard fold. */
body.template-home .ms-home-v2 .ms-motion-hero { --ms-fold-blend-depth: clamp(44px, 4.4vw, 76px); }
@media (max-width: 767px) {
  body.template-home .ms-home-v2 .ms-motion-hero { --ms-fold-blend-depth: clamp(40px, 7vh, 56px); }
}
body.template-home .ms-home-v2 .ms-motion-hero__poster,
body.template-home .ms-home-v2 .ms-motion-hero__video {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--ms-fold-blend-depth)), rgba(0, 0, 0, .86) calc(100% - var(--ms-fold-blend-depth) * .66), rgba(0, 0, 0, .5) calc(100% - var(--ms-fold-blend-depth) * .34), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--ms-fold-blend-depth)), rgba(0, 0, 0, .86) calc(100% - var(--ms-fold-blend-depth) * .66), rgba(0, 0, 0, .5) calc(100% - var(--ms-fold-blend-depth) * .34), transparent 100%);
}
