/* =====================================================================
   Avisos e destaques — barra, banner e pop-up
   CSS isolado (classes ann-*): usado no site e na pré-visualização do painel
   ===================================================================== */

/* Paleta de temas (combinam com o índigo e o dourado da marca)
   --ann-bg: fundo · --ann-solid: cor sólida (faixa do pop-up e botão) · --ann-fg: texto
   --ann-btn / --ann-btn-fg: botão na barra e no banner · --ann-chip: caixinhas e contagem */
.ann--dourado    { --ann-bg: linear-gradient(110deg, #f2b61c 0%, #ffd35c 100%); --ann-solid: #f2b61c; --ann-on-solid: #0f1353; --ann-fg: #0f1353; --ann-muted: rgba(15,19,83,.78); --ann-btn: #0f1353; --ann-btn-fg: #fff; --ann-chip: rgba(15,19,83,.1); }
.ann--azul       { --ann-bg: radial-gradient(700px 400px at 100% 0%, #2a33a8, transparent 60%), #0f1353; --ann-solid: #0f1353; --ann-on-solid: #fff; --ann-fg: #fff; --ann-muted: rgba(233,234,255,.8); --ann-btn: #f2b61c; --ann-btn-fg: #0f1353; --ann-chip: rgba(255,255,255,.12); }
.ann--claro      { --ann-bg: #fffcf5; --ann-solid: #0f1353; --ann-on-solid: #fff; --ann-fg: #1c1f45; --ann-muted: #5d6186; --ann-btn: #0f1353; --ann-btn-fg: #fff; --ann-chip: #f3ead6; --ann-border: 1px solid rgba(15,19,83,.14); }
.ann--por_do_sol { --ann-bg: linear-gradient(110deg, #e2553a 0%, #c2336a 100%); --ann-solid: #d2464f; --ann-on-solid: #fff; --ann-fg: #fff; --ann-muted: rgba(255,255,255,.9); --ann-btn: #fff; --ann-btn-fg: #b8305f; --ann-chip: rgba(255,255,255,.18); }
.ann--violeta    { --ann-bg: linear-gradient(110deg, #4b2fb3 0%, #7a4fd8 100%); --ann-solid: #5b3cc4; --ann-on-solid: #fff; --ann-fg: #fff; --ann-muted: rgba(255,255,255,.88); --ann-btn: #ffd35c; --ann-btn-fg: #2e1a7a; --ann-chip: rgba(255,255,255,.16); }
.ann--turquesa   { --ann-bg: linear-gradient(110deg, #0b6e73 0%, #12959a 100%); --ann-solid: #0d7a7f; --ann-on-solid: #fff; --ann-fg: #fff; --ann-muted: rgba(255,255,255,.88); --ann-btn: #fff; --ann-btn-fg: #0b6e73; --ann-chip: rgba(255,255,255,.16); }
.ann--verde      { --ann-bg: linear-gradient(110deg, #146c43 0%, #1f8a57 100%); --ann-solid: #157a4b; --ann-on-solid: #fff; --ann-fg: #fff; --ann-muted: rgba(255,255,255,.88); --ann-btn: #fff; --ann-btn-fg: #146c43; --ann-chip: rgba(255,255,255,.16); }
.ann--urgente    { --ann-bg: linear-gradient(110deg, #b3261e 0%, #d6403a 100%); --ann-solid: #c0302a; --ann-on-solid: #fff; --ann-fg: #fff; --ann-muted: rgba(255,255,255,.88); --ann-btn: #fff; --ann-btn-fg: #b3261e; --ann-chip: rgba(255,255,255,.16); }

.ann-bars, .ann-banners, .ann-pop { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.ann-bars *, .ann-banners *, .ann-pop * { box-sizing: border-box; }

/* Botão padrão */
.ann-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  background: var(--ann-btn); color: var(--ann-btn-fg); font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.ann-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }

/* Contagem regressiva */
.ann-count:empty { display: none; }
.ann-count--pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--ann-chip); font-weight: 800; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ann-count--boxes { display: flex; gap: 8px; margin: 4px 0 22px; }
.ann-count--boxes span { min-width: 62px; padding: 9px 8px 7px; border-radius: 14px; background: var(--ann-chip); text-align: center; line-height: 1; }
.ann-count--boxes b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 600; color: var(--ann-fg); font-variant-numeric: tabular-nums; }
.ann-count--boxes small { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ann-muted); }
.ann-count--ended { font-weight: 800; }

/* ---------------- 1. Barra no topo ---------------- */
.ann-bars { position: relative; z-index: 2; }
.ann-bar { display: none; position: relative; background: var(--ann-bg); color: var(--ann-fg); border-bottom: var(--ann-border, 0); }
.ann-bar.is-active { display: block; animation: annFade .5s ease; }
.ann-bar__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; max-width: 1240px; margin: 0 auto; padding: 9px 52px 9px 20px; font-size: 14px; line-height: 1.35; text-align: center; }
.ann-bar__emoji { font-size: 18px; line-height: 1; }
.ann-bar__text { margin: 0; color: var(--ann-fg); }
.ann-bar__text strong { font-weight: 800; }
.ann-bar__text span { color: var(--ann-muted); }
.ann-bar__btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--ann-btn); color: var(--ann-btn-fg); font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; transition: transform .25s; }
.ann-bar__btn:hover { transform: translateX(3px); }
.ann-bar__close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ann-chip); color: var(--ann-fg); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ann-bar__close:hover { filter: brightness(.92); }
@media (max-width: 560px) {
  .ann-bar__inner { font-size: 13px; padding: 8px 44px 8px 14px; gap: 6px 10px; }
  .ann-bar__text span { display: none; }
}

/* ---------------- 2. Banner na página inicial ---------------- */
.ann-banners { position: relative; }
.ann-banner { display: none; position: relative; overflow: hidden; border-radius: 34px; background: var(--ann-bg); color: var(--ann-fg); border: var(--ann-border, 0); box-shadow: 0 30px 70px -35px rgba(15,19,83,.55); }
.ann-banner.is-active { display: grid; animation: annFade .6s ease; }
.ann-banner > * { min-width: 0; }
.ann-banner__title, .ann-banner__text, .ann-pop__title, .ann-pop__text, .ann-bar__text { overflow-wrap: anywhere; }
.ann-banner.has-img { grid-template-columns: .95fr 1.05fr; }
.ann-banner.no-img { grid-template-columns: 1fr; }
.ann-banner__media { position: relative; min-height: 340px; }
.ann-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ann-banner__body { padding: clamp(28px, 4.5vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ann-banner.no-img .ann-banner__body { align-items: center; text-align: center; max-width: 860px; margin: 0 auto; }
.ann-banner.no-img::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: var(--ann-chip); }
.ann-banner__emoji { font-size: 40px; line-height: 1; margin-bottom: 14px; }
.ann-banner__title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 14px; color: var(--ann-fg); }
.ann-banner__text { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--ann-muted); margin: 0 0 24px; max-width: 58ch; }
.ann-banner.no-img .ann-count--boxes { justify-content: center; }
.ann-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.ann-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(15,19,83,.22); cursor: pointer; transition: width .3s, background .3s; }
.ann-dots button.is-active { width: 28px; background: #c98f00; }
@media (max-width: 820px) {
  .ann-banner.has-img { grid-template-columns: 1fr; }
  .ann-banner__media { min-height: 220px; aspect-ratio: 16 / 9; }
  .ann-banner { border-radius: 26px; }
  .ann-count--boxes span { min-width: 54px; }
  .ann-count--boxes b { font-size: 22px; }
}

/* ---------------- 3. Janela (pop-up) ---------------- */
.ann-pop { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 18px; }
.ann-pop[hidden] { display: none; }
.ann-pop__backdrop { position: absolute; inset: 0; background: rgba(6,8,40,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.ann-pop__card { position: relative; width: 100%; max-width: 520px; max-height: calc(100svh - 36px); overflow-y: auto; background: #fffcf5; color: #1c1f45; border-radius: 28px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.6); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.ann-pop.is-open .ann-pop__backdrop { opacity: 1; }
.ann-pop.is-open .ann-pop__card { transform: none; opacity: 1; }
.ann-pop__card::before { content: ""; display: block; height: 8px; background: var(--ann-bg); }
.ann-pop__media { aspect-ratio: 16 / 9; overflow: hidden; background: #f3ead6; }
.ann-pop__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ann-pop__body { padding: 26px 28px 28px; text-align: center; }
.ann-pop__emoji { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ann-bg); font-size: 28px; margin-bottom: 12px; }
.ann-pop__title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(24px, 4.5vw, 32px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 10px; color: #0f1353; }
.ann-pop__text { margin: 0 0 20px; color: #5d6186; line-height: 1.6; font-size: 16px; }
.ann-pop .ann-count--boxes { justify-content: center; --ann-chip: #f3ead6; --ann-fg: #0f1353; --ann-muted: #5d6186; }
.ann-pop__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ann-pop .ann-btn { background: var(--ann-solid); color: var(--ann-on-solid); }
.ann-pop__emoji { color: var(--ann-on-solid); }
.ann-pop.ann--claro .ann-pop__card::before { background: linear-gradient(90deg, #0f1353, #2a33a8); }
.ann-pop.ann--claro .ann-pop__emoji { background: #f3ead6; }
.ann-pop__later { background: none; border: 0; color: #5d6186; font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px; text-decoration: underline; }
.ann-pop__close { position: absolute; top: 18px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #0f1353; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.18); display: grid; place-items: center; }
/* versão desenhada dentro da pré-visualização do painel */
.ann-pop--inline { position: relative; inset: auto; z-index: 1; padding: 0; }
.ann-pop--inline .ann-pop__backdrop { display: none; }
.ann-pop--inline .ann-pop__card { max-height: none; margin: 0 auto; }

@keyframes annFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ann-bar.is-active, .ann-banner.is-active { animation: none; }
  .ann-pop__card, .ann-pop__backdrop { transition: none; }
}
