/* Cabeçalho da Nikol + faixa do giveaway, partilhado pela /reserve (copiado de home-v4.css a 28 nov 2026; mudar nos dois sítios). */
/* Cabeçalho da Nikol no PC (28 nov 2026): creme, links à esquerda, wordmark ao centro, FAQ/contacto/língua à direita, menu Shop com cartões. */
.nh { display: none; }
@media (min-width: 900px) {
  .nh { display: block; position: sticky; top: 0; z-index: 45; background: #FEFBF6; color: #161F3B; border-bottom: 1px solid rgba(22,31,59,.08); }
  .site-header { display: none !important; }
  .nh-in { position: relative; height: 72px; padding: 0 clamp(24px, 4vw, 60px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .nh-l, .nh-r { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); font-size: 15px; letter-spacing: .03em; }
  .nh-r { justify-content: flex-end; gap: clamp(18px, 2vw, 32px); }
  .nh a, .nh-shop-btn { color: inherit; text-decoration: none; }
  .nh-l > a:hover, .nh-r > a:hover, .nh-shop-btn:hover, .nh-lang a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .nh-shop-btn { background: none; border: 0; padding: 10px 0; font: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
  .nh-logo img { display: block; height: 20px; width: auto; }
  .nh .nh-shop { display: block !important; width: auto !important; }
  .nh-lang { font-size: 12px; letter-spacing: .14em; color: #7A7F90; }
  .nh-lang [aria-current] { color: #161F3B; }
  .nh-ic { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin: 0 -8px; }
  .nh a:focus-visible, .nh-shop-btn:focus-visible { outline: 2px solid #161F3B; outline-offset: 3px; border-radius: 4px; }
  .nh-mega { position: absolute; left: 0; right: 0; top: 100%; background: #FEFBF6; border-bottom: 1px solid rgba(22,31,59,.1); box-shadow: 0 24px 40px rgba(22,31,59,.08); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .nh-shop:hover .nh-mega, .nh-shop:focus-within .nh-mega, .nh-shop.open .nh-mega { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .nh-shop:hover .nh-mega { transition-delay: .05s; }
  .nh-mega-in { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 24px; padding: 36px clamp(24px, 4vw, 60px) 44px; }
  .nh-col p { margin: 0 0 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #7A7F90; }
  .nh-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 16px; }
  .nh-card { display: flex; align-items: center; gap: 24px; padding: 20px; border-radius: 24px; background: #F1EDE5; transition: background-color .2s; }
  .nh-card:hover { background: #E9E3D7; }
  .nh-card img { width: 144px; height: 144px; object-fit: cover; border-radius: 12px; flex: none; }
  .nh-card span { display: flex; flex-direction: column; gap: 10px; }
  .nh-card b { font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; letter-spacing: -.01em; }
  .nh-card small { font-size: 13px; color: #7A7F90; letter-spacing: .02em; }
  .nh-card em { font-style: normal; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .nh-mega { transition: none !important; } }
a.banner.banner-gw { display: flex !important; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: #161F3C !important; color: #FEFBF6 !important; text-decoration: none; padding: 10px 16px; font-size: 14px; letter-spacing: .02em; }
.banner-gw b { font-weight: 600; }
.bgw-cd { padding: 3px 10px; border-radius: 999px; background: rgba(254,251,246,.12); font-size: 13px; }
.bgw-cta { text-decoration: underline; text-underline-offset: 3px; }
.banner-gw:hover .bgw-cta { text-decoration-thickness: 2px; }
.nh-gw { position: relative; }
.nh-gw::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #C9A227; box-shadow: 0 0 0 3px rgba(201,162,39,.2); }
@media (max-width: 640px) { a.banner.banner-gw { gap: 8px; font-size: 12.5px; padding: 8px 12px; } .bgw-cta { display: none; } }
.nh { transition: box-shadow .3s ease; }
.nh.scrolled { box-shadow: 0 6px 24px rgba(22,31,59,.08); }
/* menu Shop com 3 produtos */
@media (min-width: 900px) {
  .nh-mega-in { grid-template-columns: 200px repeat(3, 1fr); gap: 18px; }
  .nh-card { gap: 18px; padding: 16px; }
  .nh-card img { width: 112px; height: 112px; }
  .nh-card b { font-size: clamp(20px, 1.6vw, 26px); }
}
.nh a, .nh button { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1180px) { .nh nav, .nh-l, .nh-r { gap: 18px !important; } .nh a, .nh button { font-size: 14px !important; } }
@media (min-width: 900px) and (max-width: 1180px) { .nh-logo svg, .nh-logo img { width: clamp(150px, 17vw, 200px) !important; height: auto !important; } }
@media (min-width: 900px) and (max-width: 1440px) { .nh-l { gap: 22px !important; } .nh-r { gap: 20px !important; } }

/* painel "Over ons" à David (29 nov 2026): três linhas, miniatura + título, linha fina entre elas */
.nh-about-in { max-width: 1320px; margin: 0 auto; padding: 18px clamp(24px, 4vw, 60px) 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.nh-row { display: flex; align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid rgba(22,31,59,.14); color: #161F3B; text-decoration: none !important; }
.nh-row img { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #F1EDE5; }
.nh-row b { font-size: 20px; font-weight: 500; letter-spacing: 0; }
.nh-row:hover b { text-decoration: underline; text-underline-offset: 5px; }
.nh-about:hover .nh-mega, .nh-about:focus-within .nh-mega, .nh-about.open .nh-mega { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 1100px) { .nh-about-in { grid-template-columns: 1fr; max-width: 640px; margin: 0; } }
/* nh-mobile: gerado por tools/mobile_nav.py, não editar aqui */
.nh-burger, .nh-m { display: none; }
.bgw-x { display: inline; }
.nh-col { display: none !important; }
.nh-gw::before { content: none !important; display: none !important; }
@media (max-width: 899px) {
  .nh { display: block; position: sticky; top: 0; z-index: 45; background: #FEFBF6; color: #161F3B; border-bottom: 1px solid rgba(22,31,59,.08); }
  .nh ~ .site-header, .nh ~ .mobile-menu { display: none !important; }
  .nh .nh-in { position: relative; height: 60px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .nh .nh-l, .nh .nh-r > :not(.nh-ic:last-child) { display: none !important; }
  .nh .nh-r { display: flex; justify-content: flex-end; grid-column: 3; }
  .nh .nh-logo { grid-column: 2; }
  .nh .nh-logo img { display: block; height: 16px; width: auto; }
  .nh .nh-r > .nh-ic:last-child { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin: 0 -10px 0 0; color: inherit; }
  .nh-burger { display: inline-flex; grid-column: 1; grid-row: 1; justify-self: start; width: 44px; height: 44px; margin: 0 0 0 -12px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
  .nh-burger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .25s ease; }
  .nh.m-open .nh-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nh.m-open .nh-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nh-burger:focus-visible { outline: 2px solid #161F3B; outline-offset: -4px; }
  .nh-m { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #FEFBF6; color: #161F3B; border-top: 1px solid rgba(22,31,59,.08); max-height: calc(100vh - 60px - var(--nh-off, 0px)); max-height: calc(100dvh - 60px - var(--nh-off, 0px)); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 28px 40px rgba(22,31,59,.12); }
  .nh-m[hidden] { display: none; }
  .nh-m, .nh-m *, .nh-burger, .nh .nh-in { box-sizing: border-box; }
  .nh-m-in { padding: 6px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .nh-m a { color: inherit; text-decoration: none; }
  .nh-m-l { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 54px; padding: 15px 0; border-bottom: 1px solid rgba(22,31,59,.1); font-size: 19px; line-height: 1.25; letter-spacing: 0; white-space: normal; }
  .nh-m-l small { flex: none; font-size: 12px; letter-spacing: .08em; color: #7A7F90; }
  .nh-m-l.nh-m-go { align-items: center; }
  .nh-m-l.nh-m-go svg { flex: none; }
  .nh-m-gap { height: 14px; }
  .nh-m-s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-top: 18px; font-size: 14px; letter-spacing: .03em; }
  .nh-m-s a { display: inline-flex; align-items: center; min-height: 44px; }
  .nh-m-s .nh-lang { display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; margin-left: auto; font-size: 12px; letter-spacing: .14em; color: #7A7F90; }
  .nh-m-s .nh-lang [aria-current] { color: #161F3B; }
  .nh-m-s .nh-lang a { min-width: 32px; justify-content: center; }
  .nh-m a:focus-visible { outline: 2px solid #161F3B; outline-offset: 2px; border-radius: 4px; }
  html.nh-lock { overflow: hidden; }
}
@media (max-width: 640px) {
  a.banner.banner-gw { box-sizing: border-box; flex-wrap: nowrap; white-space: nowrap; gap: 8px; padding: 7px 10px; font-size: 12.5px; line-height: 1.3; min-height: 34px; }
  .banner-gw .bgw-x, .banner-gw .bgw-cta { display: none; }
  .banner-gw .bgw-cd { padding: 2px 9px; font-size: 12px; }
  .banner-gw svg, .banner-gw .bgw-cd { flex: none; }
  a.banner.banner-gw { overflow: hidden; }
  .banner-gw > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { .nh-burger span { transition: none; } }
/* computador: os cartões do menu Shop não encolhiam (texto numa só linha) e a página ganhava scroll para o lado a 1280 px */
@media (min-width: 900px) {
  .nh-mega-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nh .nh-card em { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
  .nh .nh-card { min-width: 0; }
  .nh .nh-card span { min-width: 0; }
  .nh .nh-card small, .nh .nh-card b { white-space: normal; }
}
/* 1 dez 2026: "Samenwerken" entrou no lado direito do cabeçalho (tools/nav_samenwerken.py); entre 900 e 1060 px
   não cabia (a escolha de língua partia em duas linhas e o wordmark encolhia): sem quebras e um pouco mais apertado */
@media (min-width: 900px) and (max-width: 1180px) {
  .nh .nh-r > a, .nh .nh-r .nh-lang, .nh .nh-l > a, .nh .nh-shop-btn { white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1060px) {
  .nh .nh-in { padding: 0 20px !important; }
  .nh .nh-l, .nh .nh-r { gap: 12px !important; }
  .nh .nh-l a, .nh .nh-r > a, .nh .nh-r .nh-lang, .nh .nh-shop-btn { font-size: 13px !important; }
  .nh .nh-logo img, .nh .nh-logo svg { width: 140px !important; }
}
/* /nh-mobile */
/* 4 dez 2026: cabeçalho do telemóvel mais baixo e wordmark mais pequeno (pedido do André, comparação com davidprotein.com) */
@media (max-width: 899px) {
  .nh .nh-in { height: 50px; }
  .nh .nh-logo img { height: 12px; }
  .nh-m { max-height: calc(100vh - 50px - var(--nh-off, 0px)); max-height: calc(100dvh - 50px - var(--nh-off, 0px)); }
}
