/* ==========================================================================
   Fatia Nobre Hub v5.2.0 — requer tokens.css (Design System v1.3)
   ========================================================================== */

body.fnh-standalone { margin: 0; background: var(--fn-bg); }

.fnh, .fnh * { box-sizing: border-box; }
.fnh {
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--fn-space-8) var(--fn-space-4) var(--fn-space-12);
  color: var(--fn-text);
  font: var(--fn-text-body);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 40% at 50% 0%, color-mix(in srgb, var(--fn-dourado-premium) 22%, transparent), transparent 70%),
    radial-gradient(50% 35% at 100% 55%, color-mix(in srgb, var(--fn-rosa-assinatura) 10%, transparent), transparent 70%),
    radial-gradient(50% 35% at 0% 85%, color-mix(in srgb, var(--fn-dourado-premium) 9%, transparent), transparent 70%),
    var(--fn-bg);
}
.fnh a { color: inherit; text-decoration: none; }
.fnh small { display: block; font-size: .8125rem; font-weight: 400; line-height: 1.35; color: color-mix(in srgb, var(--fn-text-muted) 78%, transparent); }
.fnh img { display: block; max-width: 100%; }
.fnh :focus-visible { outline: none; box-shadow: var(--fn-focus-ring); }

.fnh-wrap { width: min(100%, 480px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fn-space-4); }
.fnh-wrap > * { min-width: 0; }

/* ---- Topo ---- */
.fnh-top { text-align: center; display: grid; justify-items: center; gap: var(--fn-space-3); margin-bottom: var(--fn-space-2); }
.fnh-logo {
  width: 168px; height: auto;
  filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--fn-dourado-premium) 28%, transparent));
  animation: fnh-rise .7s cubic-bezier(.2,.7,.2,1) both;
}
.fnh .fnh-top .fnh-h1 { margin: 0; font-family: var(--fn-font-body); font-size: .75rem; font-weight: 600; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--fn-dourado-luz); }
.fnh-tagline { margin: 0; font: 600 1.0625rem/1.4 var(--fn-font-body); color: var(--fn-creme-confeitaria); max-width: 28ch; }
.fnh-status {
  margin: 0; display: inline-flex; align-items: center; gap: var(--fn-space-2);
  padding: 6px 14px; border-radius: var(--fn-radius-pill);
  border: 1px solid color-mix(in srgb, var(--fn-border) 40%, transparent);
  background: color-mix(in srgb, var(--fn-chocolate-intenso) 55%, transparent);
  font: var(--fn-text-caption); letter-spacing: .04em;
}
.fnh-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fn-dourado-premium); }
.fnh-status.is-open .fnh-status__dot { background: var(--fn-dourado-luz); box-shadow: 0 0 0 0 var(--fn-dourado-luz); animation: fnh-pulse 2s infinite; }
.fnh-status.is-closed .fnh-status__dot { background: var(--fn-rosa-assinatura); }

/* ---- Seta comum ---- */
.fnh-arrow { margin-left: auto; font-size: 1.15rem; transition: transform .2s; }
a:hover > .fnh-arrow { transform: translateX(4px); }

/* ---- CTA principal ---- */
.fnh-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: var(--fn-space-4);
  min-height: 76px; padding: var(--fn-space-4) var(--fn-space-6) var(--fn-space-4) var(--fn-space-4);
  border-radius: var(--fn-radius-lg);
  /* texto fica sobre o rosa profundo (branco ≥ 4,5:1); o rosa assinatura entra só na ponta como brilho */
  background: linear-gradient(100deg, var(--fn-rosa-profundo) 0%, #C7005B 70%, var(--fn-rosa-assinatura) 130%);
  color: var(--fn-branco-puro);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--fn-rosa-profundo) 45%, transparent), inset 0 1px 0 rgb(255 255 255 / .18);
  transition: transform .2s, box-shadow .2s;
}
.fnh-cta::after { /* brilho que atravessa o botão */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .22) 50%, transparent 65%);
  transform: translateX(-100%); animation: fnh-shine 4.5s 1.2s infinite;
}
.fnh-cta:hover { transform: translateY(-2px); }
.fnh-cta__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(0 0 0 / .22); }
.fnh-cta__icon img { width: 26px; height: 26px; }
.fnh-cta strong { display: block; font: 700 1.25rem/1.15 var(--fn-font-display); letter-spacing: .04em; }
.fnh-cta small { color: rgb(255 255 255 / .88); }

/* ---- Dupla iFood / WhatsApp ---- */
.fnh-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fn-space-3); }
.fnh-tile {
  display: flex; align-items: center; gap: var(--fn-space-3);
  min-height: 64px; padding: var(--fn-space-3) var(--fn-space-4);
  border-radius: var(--fn-radius-md);
  color: var(--fn-branco-puro);
  transition: transform .2s, filter .2s;
}
.fnh-tile:hover { transform: translateY(-2px); filter: brightness(1.08); }
.fnh-tile small { color: rgb(255 255 255 / .85); }
.fnh-tile--ifood { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; background: #D3121F; }
.fnh-tile__brand { font: italic 800 1.35rem/1 var(--fn-font-body); letter-spacing: -.02em; }
.fnh-tile--wa { background: #0B7A5E; }
.fnh-tile__icon img { width: 28px; height: 28px; }
.fnh-tile__label { font-weight: 700; line-height: 1.2; }

/* ---- Festival ---- */
.fnh-festival {
  position: relative;
  display: flex; align-items: center; gap: var(--fn-space-4);
  padding: var(--fn-space-4);
  border-radius: var(--fn-radius-lg);
  border: 1px solid color-mix(in srgb, var(--fn-dourado-premium) 70%, transparent);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--fn-dourado-premium) 22%, transparent), transparent 55%),
    var(--fn-gradient-chocolate);
  transition: transform .2s, border-color .2s;
}
.fnh-festival:hover { transform: translateY(-2px); border-color: var(--fn-dourado-luz); }
.fnh-festival__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--fn-dourado-premium); }
.fnh-festival__icon img { width: 28px; height: 28px; }
.fnh-festival__copy { min-width: 0; }
.fnh-eyebrow { display: block; font: var(--fn-text-caption); letter-spacing: .16em; text-transform: uppercase; color: var(--fn-dourado-luz); }
.fnh-festival strong { display: block; font: 700 1.2rem/1.2 var(--fn-font-display); color: var(--fn-dourado-premium); }
.fnh-festival__badge {
  position: absolute; top: -10px; right: var(--fn-space-4);
  padding: 3px 10px; border-radius: var(--fn-radius-pill);
  background: var(--fn-dourado-premium); color: var(--fn-preto-nobre);
  font: 700 .6875rem/1.4 var(--fn-font-body); letter-spacing: .08em; text-transform: uppercase;
}
.fnh-festival.is-today .fnh-festival__badge { background: var(--fn-rosa-assinatura); color: var(--fn-preto-nobre); animation: fnh-pop 1.8s ease-in-out infinite; }

/* ---- Sabores ---- */
.fnh-sabores { display: grid; gap: var(--fn-space-3); margin-top: var(--fn-space-4); }
.fnh-head { display: flex; align-items: baseline; justify-content: space-between; }
.fnh-head h2 { margin: 0; font: 700 1.375rem/1.2 var(--fn-font-display); color: var(--fn-heading); letter-spacing: .03em; }
.fnh-head__hint { font: var(--fn-text-caption); color: color-mix(in srgb, var(--fn-text-muted) 60%, transparent); }
.fnh-rail {
  list-style: none; margin: 0 calc(var(--fn-space-4) * -1); padding: var(--fn-space-1) var(--fn-space-4) var(--fn-space-2);
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: var(--fn-space-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--fn-space-4);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.fnh-rail::-webkit-scrollbar { display: none; }
.fnh-flavor {
  position: relative; scroll-snap-align: start; overflow: hidden;
  border-radius: var(--fn-radius-md);
  border: 1px solid color-mix(in srgb, var(--fn-dourado-premium) 35%, transparent);
  background: var(--fn-surface);
}
.fnh-flavor img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 68%; transition: transform .5s; }
.fnh-flavor:hover img { transform: scale(1.05); }
.fnh-flavor span {
  position: absolute; inset: auto 0 0; padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgb(5 5 5 / .92));
  font: 700 .8125rem/1.2 var(--fn-font-display); letter-spacing: .04em; color: var(--fn-branco-puro);
}
.fnh-flavor__preco {
  position: absolute; top: 8px; right: 8px;
  padding: 3px 8px; border-radius: var(--fn-radius-pill);
  background: rgb(5 5 5 / .78); color: var(--fn-dourado-luz);
  font: normal 700 .75rem/1.3 var(--fn-font-body);
  backdrop-filter: blur(4px);
}
.fnh-flavor__preco.is-promo { background: var(--fn-rosa-profundo); color: var(--fn-branco-puro); }
.fnh-flavor__preco.is-promo::before { content: "Promo · "; font-weight: 600; }
.fnh-flavor--selo {
  display: grid; place-items: center; min-height: 100%;
  background:
    radial-gradient(70% 55% at 50% 40%, color-mix(in srgb, var(--fn-dourado-premium) 20%, transparent), transparent 70%),
    var(--fn-gradient-chocolate);
}
.fnh-flavor--selo img { width: 66%; aspect-ratio: auto; margin-bottom: 18%; filter: drop-shadow(0 8px 20px rgb(0 0 0 / .5)); }
.fnh-flavor--selo:hover img { transform: none; }
.fnh-btn-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: var(--fn-space-2);
  min-height: var(--fn-touch-min); padding: var(--fn-space-3) var(--fn-space-6);
  border: 1.5px solid var(--fn-border); border-radius: var(--fn-radius-pill);
  color: var(--fn-heading); font-weight: 600;
  transition: background .2s;
}
.fnh-btn-line:hover { background: color-mix(in srgb, var(--fn-border) 14%, transparent); }
.fnh-btn-line img { width: 20px; height: 20px; }
.fnh-btn-line small { flex-basis: 100%; text-align: center; font-size: .75rem; }

/* ---- Lista secundária ---- */
.fnh-list {
  margin-top: var(--fn-space-4);
  border-radius: var(--fn-radius-lg);
  border: 1px solid color-mix(in srgb, var(--fn-border) 28%, transparent);
  background: color-mix(in srgb, var(--fn-chocolate-intenso) 38%, transparent);
  overflow: hidden;
}
.fnh-row { display: flex; align-items: center; gap: var(--fn-space-4); min-height: 64px; padding: var(--fn-space-3) var(--fn-space-4); transition: background .2s; }
.fnh-row + .fnh-row { border-top: 1px solid color-mix(in srgb, var(--fn-border) 18%, transparent); }
.fnh-row:hover { background: color-mix(in srgb, var(--fn-dourado-premium) 9%, transparent); }
.fnh-row__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / .05); }
.fnh-row__icon img, .fnh-row__icon svg { width: 22px; height: 22px; }
.fnh-row strong { display: block; font-weight: 600; }
.fnh-row .fnh-arrow { color: var(--fn-dourado-premium); }

/* ---- Informações ---- */
.fnh-info { display: grid; gap: var(--fn-space-4); padding: var(--fn-space-6) var(--fn-space-2) 0; }
.fnh-info__item { display: flex; gap: var(--fn-space-3); align-items: flex-start; }
.fnh-info__item > img { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.fnh-info p, .fnh-info__item > div { margin: 0; font-size: .9375rem; line-height: 1.5; }
.fnh-info small { text-transform: uppercase; letter-spacing: .12em; font: var(--fn-text-caption); color: var(--fn-dourado-premium); margin-bottom: 2px; }
.fnh-info a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--fn-dourado-premium) 50%, transparent); text-underline-offset: 3px; }
.fnh-hours { list-style: none; margin: 0; padding: 0; }
.fnh-hours li { display: flex; justify-content: space-between; gap: var(--fn-space-4); min-width: 220px; }
.fnh-hours li.is-today { color: var(--fn-dourado-luz); font-weight: 600; }

/* ---- Rodapé ---- */
.fnh-foot { display: grid; justify-items: center; gap: var(--fn-space-3); margin-top: var(--fn-space-6); text-align: center; }
.fnh-social { display: flex; gap: var(--fn-space-3); }
.fnh-social a {
  display: grid; place-items: center; width: var(--fn-touch-min); height: var(--fn-touch-min);
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fn-border) 45%, transparent);
  transition: background .2s;
}
.fnh-social a:hover { background: color-mix(in srgb, var(--fn-dourado-premium) 14%, transparent); }
.fnh-social img { width: 22px; height: 22px; }
.fnh-arabesco { width: 160px; height: auto; opacity: .9; }
.fnh-foot p { margin: 0; font: var(--fn-text-caption); letter-spacing: .2em; text-transform: uppercase; color: var(--fn-dourado-premium); }

/* ---- Entrada em cascata ---- */
.fnh-wrap > * { animation: fnh-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.fnh-wrap > :nth-child(2) { animation-delay: .08s; }
.fnh-wrap > :nth-child(3) { animation-delay: .14s; }
.fnh-wrap > :nth-child(4) { animation-delay: .2s; }
.fnh-wrap > :nth-child(n+5) { animation-delay: .26s; }

@keyframes fnh-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fnh-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes fnh-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes fnh-pop { 50% { transform: scale(1.08); } }

@media (min-width: 560px) {
  .fnh { padding-top: var(--fn-space-12); }
  .fnh-rail { grid-auto-columns: 30%; }
}
@media (max-width: 360px) {
  .fnh-duo { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fnh *, .fnh *::after { animation: none !important; transition: none !important; }
}

/* ---- Tortas para festas (v5.2) ---- */
.fnh-festa { display: grid; gap: var(--fn-space-3); margin-top: var(--fn-space-4); padding: var(--fn-space-6) var(--fn-space-4); border-radius: var(--fn-radius-lg); border: 1px solid color-mix(in srgb, var(--fn-dourado-premium) 70%, transparent); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--fn-rosa-assinatura) 14%, transparent), transparent 60%), var(--fn-gradient-chocolate); scroll-margin-top: var(--fn-space-4); }
.fnh-festa .fnh-eyebrow { display: flex; align-items: center; gap: var(--fn-space-2); }
.fnh-festa .fnh-eyebrow img { width: 18px; height: 18px; }
.fnh-festa h2 { margin: 0; font: 700 1.5rem/1.2 var(--fn-font-display); color: var(--fn-heading); letter-spacing: .03em; }
.fnh-festa__lead { margin: 0; color: var(--fn-creme-confeitaria); }
.fnh-festa ul { list-style: none; margin: 0; padding: 0; }
.fnh-festa__tam { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fn-space-2); }
.fnh-festa__tam li { text-align: center; padding: var(--fn-space-3) var(--fn-space-1); border-radius: var(--fn-radius-sm); border: 1px solid color-mix(in srgb, var(--fn-border) 40%, transparent); background: rgb(5 5 5 / .45); }
.fnh-festa__tam strong { display: block; font: 700 1rem/1.2 var(--fn-font-display); color: var(--fn-dourado-luz); }
.fnh-festa__tam em { display: block; margin-top: 4px; font: normal 700 .8125rem/1.3 var(--fn-font-body); color: var(--fn-branco-puro); }
.fnh-festa__linhas { display: grid; gap: var(--fn-space-2); font-size: .875rem; line-height: 1.45; }
.fnh-festa__linhas b { display: block; color: var(--fn-dourado-premium); }
.fnh-festa__regras { display: grid; gap: 6px; font-size: .8125rem; line-height: 1.45; color: var(--fn-creme-confeitaria); }
.fnh-festa__regras li { padding-left: 18px; position: relative; }
.fnh-festa__regras li::before { content: "◆"; position: absolute; left: 0; color: var(--fn-dourado-premium); font-size: .625rem; top: 3px; }
.fnh-festa__nota { margin: 0; text-align: center; font: var(--fn-text-caption); color: color-mix(in srgb, var(--fn-text-muted) 70%, transparent); }
@media (max-width: 360px) { .fnh-festa__tam { grid-template-columns: 1fr; } }

/* ---- Vídeo do Festival (v5.2) ---- */
.fnh-video { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: var(--fn-space-4); align-items: center; margin-top: var(--fn-space-2); }
.fnh-video__player { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--fn-radius-md); border: 1px solid color-mix(in srgb, var(--fn-dourado-premium) 55%, transparent); background: var(--fn-surface); box-shadow: 0 14px 36px rgb(0 0 0 / .5); }
.fnh-video__copy { display: grid; gap: var(--fn-space-2); }
.fnh-video h2 { margin: 0; font: 700 1.25rem/1.2 var(--fn-font-display); color: var(--fn-heading); }
.fnh-video p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--fn-creme-confeitaria); }
.fnh-video .fnh-btn-line { padding-inline: var(--fn-space-3); font-size: .875rem; }
.fnh-video .fnh-btn-line small { font-size: .6875rem; }
@media (max-width: 360px) { .fnh-video { grid-template-columns: 1fr; } .fnh-video__player { max-width: 260px; margin: 0 auto; } }
.fnh-cta--festa { min-height: 68px; }
