/* Campanha de Natal em /eventos-temporada/ (partial home/_natal_headliners.html). */
.xh { position: relative; overflow: hidden; color: #fff;
      padding-block: clamp(56px, 9vh, 112px) clamp(48px, 8vh, 104px);
      background: radial-gradient(ellipse at 50% -10%, #1d4e5f 0%, #0d2733 45%, #071820 100%); }
.xh::before, .xh::after { content: ''; position: absolute; inset: -400px 0 0 0; pointer-events: none; z-index: 1;
      background-image:
        radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 90px 140px, rgba(255,255,255,.85) 50%, transparent 51%),
        radial-gradient(3px 3px at 170px 80px, rgba(255,255,255,.9) 50%, transparent 51%),
        radial-gradient(2px 2px at 260px 220px, #fff 50%, transparent 51%),
        radial-gradient(4px 4px at 330px 50px, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(2px 2px at 380px 300px, rgba(255,255,255,.8) 50%, transparent 51%);
      background-size: 400px 400px; animation: xhSnow 14s linear infinite; opacity: .75; }
.xh::after { background-size: 260px 260px; animation-duration: 22s; opacity: .45; filter: blur(1px); }
@keyframes xhSnow { from { transform: translateY(0); } to { transform: translateY(400px); } }

.xh-lights { position: absolute; top: 0; left: 0; width: 100%; height: clamp(40px, 6vh, 64px); z-index: 3; pointer-events: none; }
.xh-lights .b { animation: xhTwinkle 1.6s ease-in-out infinite alternate; }
.xh-lights .b:nth-child(3n)   { animation-delay: .5s; }
.xh-lights .b:nth-child(3n+1) { animation-delay: 1s; }
@keyframes xhTwinkle { from { opacity: .35; } to { opacity: 1; filter: drop-shadow(0 0 6px currentColor); } }

.xh-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.xh-head { text-align: center; margin-bottom: clamp(28px, 5vh, 56px); }
.xh-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
      background: rgba(244,197,66,.12); border: 1px solid rgba(244,197,66,.45); color: #f4c542;
      font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
/* tamanho limitado pela largura E pela altura: num portátil (ecrã baixo) não cresce demais */
.xh-title { font-size: clamp(32px, min(5.6vw, 8.2vh), 84px); line-height: .98; margin-top: clamp(14px, 2.4vh, 24px);
      text-wrap: balance; max-width: 18ch; margin-inline: auto; }
.xh-sub { font-size: clamp(19px, min(2.4vw, 3.4vh), 28px); color: #f4c542; margin-top: clamp(6px, 1.4vh, 14px);
      display: inline-block; transform: rotate(-1deg); }
.xh-count { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px;
      color: rgba(255,255,255,.8); font-size: 13.5px; margin-top: clamp(10px, 2vh, 20px); }
.xh-count b { font-size: clamp(24px, 3.6vh, 32px); color: #f4c542; font-family: 'Playfair Display', serif; font-style: italic; }

.xh-grid { display: grid; gap: 20px; position: relative; }
@media (min-width: 860px) { .xh-grid.two { grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); } }
/* Telemóvel: os 2 cartões ficam um por baixo do outro; o "&" liga-os para a frase (vilão + herói) fazer sentido. */
.xh-amp { display: none; }
.xh-grid.two .xh-amp { display: flex; order: 2; align-items: center; justify-content: center; position: relative; z-index: 6;
      width: 58px; height: 58px; margin: 0 auto; border-radius: 50%;
      background: radial-gradient(circle at 35% 30%, #ffe48a, #f4c542 45%, #b8860b 100%);
      box-shadow: 0 0 0 5px rgba(7,24,32,.9), 0 0 30px rgba(244,197,66,.55);
      font-family: 'Playfair Display', serif; font-style: italic; font-weight: 800; font-size: 30px; color: #3a2400; }
.xh-grid.two { gap: 12px; }
.xh-grid.two > .xh-card:nth-child(2) { order: 1; }
.xh-grid.two > .xh-card:nth-child(3) { order: 3; }
@media (min-width: 860px) {
  .xh-grid.two > .xh-card:nth-child(n) { order: 0; }
  .xh-grid.two .xh-amp { display: flex; order: 0; margin: 0; position: absolute; left: 50%; top: clamp(95px, 16vh, 170px); transform: translate(-50%, -50%); z-index: 6;
        width: clamp(56px, 8vh, 76px); height: clamp(56px, 8vh, 76px); border-radius: 50%; align-items: center; justify-content: center;
        background: radial-gradient(circle at 35% 30%, #ffe48a, #f4c542 45%, #b8860b 100%);
        box-shadow: 0 0 0 5px rgba(7,24,32,.9), 0 0 36px rgba(244,197,66,.55);
        font-family: 'Playfair Display', serif; font-style: italic; font-weight: 800; font-size: clamp(28px, 4.4vh, 38px); color: #3a2400; }
}

.xh-card { --c1: #b3122a; --c2: #7a0b1c; --c3: #4d0612; --acc: #f4c542; --acc-ink: #4d0612; --tag: #ffd76a; --tilt: .5deg;
      position: relative; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
      background: linear-gradient(170deg, var(--c1) 0%, var(--c2) 60%, var(--c3) 100%);
      box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent), 0 34px 70px -30px color-mix(in srgb, var(--c1) 80%, transparent);
      transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.xh-card.t-verde   { --c1: #2e6b1e; --c2: #183f12; --c3: #0f2a0b; --acc: #8fd14f; --acc-ink: #0f2a0b; --tag: #b6ec7c; --tilt: -.5deg; }
.xh-card.t-dourado { --c1: #8a6a12; --c2: #5c450a; --c3: #3a2b05; --acc: #ffe48a; --acc-ink: #3a2400; --tag: #ffe48a; }
.xh-card.t-azul    { --c1: #1e4f8a; --c2: #123461; --c3: #0a1f3d; --acc: #7fd6ff; --acc-ink: #0a1f3d; --tag: #bfe9ff; }
@media (hover: hover) {
  .xh-card:hover { transform: translateY(-6px) rotate(var(--tilt)); box-shadow: 0 0 0 2px var(--acc), 0 44px 90px -30px color-mix(in srgb, var(--c1) 90%, transparent); }
  .xh-card:hover .xh-art img { transform: scale(1.04); }
}

.xh-art { position: relative; overflow: hidden; cursor: pointer; display: block; width: 100%; padding: 0; border: 0; background: var(--c2);
      height: clamp(200px, 52vw, 300px); }
@media (min-width: 860px) { .xh-art { height: clamp(170px, 31vh, 320px); } }
.xh-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1.2s; }
.xh-art .xh-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 72px; color: rgba(255,255,255,.35); }
.xh-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%;
      background: linear-gradient(to top, var(--c2), transparent); pointer-events: none; }
.xh-ribbon { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 6px 12px; border-radius: 999px;
      font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: var(--acc); color: var(--acc-ink); }

.xh-body { padding: 2px clamp(18px, 2.4vw, 30px) clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1; }
.xh-name { font-size: clamp(26px, min(2.9vw, 4.8vh), 42px); line-height: 1; }
.xh-tag  { font-size: clamp(18px, 2.6vh, 22px); margin-top: 4px; display: inline-block; transform: rotate(-1.5deg); color: var(--tag); }
.xh-desc { color: rgba(255,255,255,.86); font-size: 14.5px; line-height: 1.55; margin: 10px 0 4px; }
.xh-feats { list-style: none; padding: 0; margin: 6px 0 14px; }
.xh-feats li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13.5px;
      border-bottom: 1px dashed rgba(255,255,255,.16); }
.xh-feats li:last-child { border: 0; }
.xh-feats i { color: var(--acc); margin-top: 3px; font-size: 12px; }
.xh-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.xh-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
      background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 12px; font-weight: 600; }
.xh-pill.time { background: rgba(244,197,66,.18); border-color: rgba(244,197,66,.65); color: #ffe48a; font-size: 13.5px; font-weight: 800; }
.xh-pill.price { background: var(--acc); color: var(--acc-ink); border-color: transparent; font-weight: 800; }
.xh-actions { margin-top: auto; display: flex; gap: 8px; }
.xh-actions .main { flex: 1 1 auto; }
.xh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
      border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
      text-decoration: none; cursor: pointer; border: 0; transition: transform .2s, filter .2s; white-space: nowrap; }
.xh-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.xh-btn:focus-visible, .xh-art:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.xh-btn.main { background: var(--acc); color: var(--acc-ink); }
.xh-btn.wa   { background: #25d366; color: #fff; padding: 0 16px; }
.xh-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); width: 46px; padding: 0; }
@media (max-width: 420px) { .xh-btn.wa span { display: none; } }

.xh-spot { margin-top: clamp(24px, 4vh, 40px); border-radius: 20px; overflow: hidden; position: relative;
      background: linear-gradient(110deg, rgba(143,209,79,.16) 0%, rgba(244,197,66,.16) 50%, rgba(255,77,94,.18) 100%);
      border: 1px solid rgba(244,197,66,.4); display: grid; }
@media (min-width: 760px) { .xh-spot { grid-template-columns: minmax(200px, 32%) 1fr; } }
.xh-spot-img { height: clamp(160px, 40vw, 220px); }
@media (min-width: 760px) { .xh-spot-img { height: 100%; min-height: 200px; } }
.xh-spot-img img { width: 100%; height: 100%; object-fit: cover; }
.xh-spot-body { padding: clamp(18px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.xh-spot h3 { font-size: clamp(24px, min(2.8vw, 4.4vh), 36px); line-height: 1.05; }

/* ── Modal de packs ── */
.xh-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-end; justify-content: center;
      background: rgba(7,24,32,.78); backdrop-filter: blur(6px); }
.xh-modal.open { display: flex; }
@media (min-width: 700px) { .xh-modal { align-items: center; padding: 24px; } }
.xh-panel { position: relative; width: 100%; max-width: 1040px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
      background: linear-gradient(180deg, #0f2f3c 0%, #071820 100%); color: #fff; border-radius: 22px 22px 0 0;
      border: 1px solid rgba(244,197,66,.35); animation: xhUp .35s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 700px) { .xh-panel { border-radius: 22px; } }
@keyframes xhUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.xh-panel-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
      padding: 18px clamp(18px, 3vw, 32px); background: rgba(10,34,44,.96); border-bottom: 1px solid rgba(255,255,255,.1); }
.xh-panel-head h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.05; }
.xh-close { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; font-size: 16px; }
.xh-close:hover { background: #ff4d5e; border-color: #ff4d5e; }
.xh-packs { display: grid; gap: 16px; padding: clamp(16px, 3vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.xh-pack { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
      background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.xh-pack.popular { border-color: #f4c542; box-shadow: 0 0 0 1px #f4c542, 0 20px 50px -25px rgba(244,197,66,.6); }
.xh-pack-img { height: 150px; background: #0d2733; }
.xh-pack-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.xh-pack-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.xh-pack-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.xh-pack h4 { font-size: 20px; line-height: 1.1; }
.xh-pack .price { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 800; font-size: 26px; color: #f4c542; white-space: nowrap; }
.xh-pack p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.8); margin: 8px 0 6px; }
.xh-pack .xh-feats li { font-size: 13px; padding: 5px 0; }
.xh-pack .xh-feats i { color: #f4c542; }

@media (prefers-reduced-motion: reduce) {
  .xh::before, .xh::after, .xh-lights .b, .xh-panel { animation: none; }
  .xh-card, .xh-art img { transition: none; }
}
