/*
  Anderson Viagem e Turismo: sistema visual compartilhado (home e páginas de evento).
  Leitura do projeto: landing de excursões para shows, para fãs do interior de SP,
  com linguagem de cartaz de show e painel de rodoviária, mantendo o amarelo da marca.
  Dials: variância 7, movimento 5, densidade 4.
  Layout: hero com foto de palco em tela cheia, painel de saídas sobreposto ao fim do hero,
  faixa de cartazes, destaque editorial, grade de bilhetes, rota em 4 paradas, dúvidas e faixa final com foto.
  Raios: 4px em controles (botões, campos, chips), 8px em mídia, cards e painel.
  Cores: um acento (amarelo da marca). Verde só para ações de WhatsApp.
*/
:root {
    --bg: #0F1217;
    --surface: #161A21;
    --surface-2: #1E232B;
    --line: #2A303A;
    --fg: #F2EFE7;
    --muted: #A2A9B4;
    --accent: #EBC243;
    --accent-hover: #F3D063;
    --accent-text: #EBC243;
    --on-accent: #17140A;
    --wa: #25D366;
    --wa-hover: #3EDC7C;
    --on-wa: #04260F;
    --eco: #43C08D;
    --board-bg: #0B0D11;
    --board-cell: #14171D;
    --board-split: #08090C;
    --board-fg: #F2C744;
    --board-dim: #7D6E3A;
    --board-line: #232831;
    --on-media: #F5F2EA;
    --scrim: 15, 18, 23;

    --font-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
    --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    /* Escala de espaçamento 4/8/12/16/24/32 (+ múltiplos para seções) */
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
    --r-control: 4px;
    --r-frame: 8px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --ease: cubic-bezier(.16, 1, .3, 1);
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #EEF0F3; --surface: #FFFFFF; --surface-2: #F4F5F7; --line: #D5D9E0;
        --fg: #151920; --muted: #535B69;
        --accent: #EBC243; --accent-hover: #F3D063; --accent-text: #7F5F00; --on-accent: #17140A;
        --wa: #25D366; --wa-hover: #3EDC7C; --on-wa: #04260F; --eco: #1D8A5C;
        --board-bg: #12151B; --board-cell: #1A1E25; --board-split: #0C0E12; --board-fg: #F2C744; --board-dim: #7A6C3C; --board-line: #2A2F38;
        --on-media: #F5F2EA; --scrim: 15, 18, 23;
        color-scheme: light;
    }
}
:root[data-theme="light"] {
    --bg: #EEF0F3; --surface: #FFFFFF; --surface-2: #F4F5F7; --line: #D5D9E0;
    --fg: #151920; --muted: #535B69;
    --accent: #EBC243; --accent-hover: #F3D063; --accent-text: #7F5F00; --on-accent: #17140A;
    --wa: #25D366; --wa-hover: #3EDC7C; --on-wa: #04260F; --eco: #1D8A5C;
    --board-bg: #12151B; --board-cell: #1A1E25; --board-split: #0C0E12; --board-fg: #F2C744; --board-dim: #7A6C3C; --board-line: #2A2F38;
    --on-media: #F5F2EA; --scrim: 15, 18, 23;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
a, button { touch-action: manipulation; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 96px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
    position: absolute; left: var(--s4); top: -100px; z-index: 100;
    padding: var(--s3) var(--s4); border-radius: var(--r-control);
    background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s4); }
.ph { line-height: 1; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: .95;
    text-wrap: balance;
    margin: 0;
}
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 900; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s7); max-width: 65ch; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---------- Botões: chapados, sem sombra, sem brilho ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    border-radius: var(--r-control); border: 1px solid transparent;
    font: 600 1rem/1.2 var(--font-body); white-space: nowrap;
    text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .ph, .btn .ph-fill { font-size: 1.25rem; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }

/* ---------- Cabeçalho ---------- */
.topbar {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.logo { display: block; flex: none; width: 120px; height: 58px; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; }
.logo .logo-light { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .logo .logo-dark { display: none; }
    :root:not([data-theme="dark"]) .logo .logo-light { display: block; }
}
:root[data-theme="light"] .logo .logo-dark { display: none; }
:root[data-theme="light"] .logo .logo-light { display: block; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .975rem; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.top-actions { display: flex; align-items: center; gap: var(--s2); }
.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: var(--r-control); border: 1px solid var(--line); background: transparent;
    color: var(--fg); cursor: pointer; text-decoration: none; font-size: 1.25rem;
    transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--fg); }
.theme-toggle .ph-sun { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .ph-sun { display: block; }
    :root:not([data-theme="dark"]) .theme-toggle .ph-moon { display: none; }
}
:root[data-theme="light"] .theme-toggle .ph-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ph-moon { display: none; }
.menu-btn { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding-block: var(--s3) var(--s5); }
.mobile-nav a:not(.btn) { display: block; padding: var(--s3) 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: var(--s4); width: 100%; }
@media (max-width: 900px) {
    .nav, .top-actions .btn { display: none; }
    .top-actions { margin-left: auto; }
    .menu-btn { display: inline-grid; }
}

/* ---------- Hero: foto de palco em tela cheia ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: min(86dvh, 780px);
    display: flex; align-items: flex-end;
    padding-block: clamp(64px, 8vw, 96px) clamp(128px, 14vw, 176px);
    color: var(--on-media);
    background: #11141A;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; animation: drift 9s var(--ease) both; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(to top, rgba(var(--scrim), .98) 0%, rgba(var(--scrim), .55) 38%, rgba(var(--scrim), .15) 70%),
        linear-gradient(to right, rgba(var(--scrim), .85) 0%, rgba(var(--scrim), .2) 60%, rgba(var(--scrim), 0) 100%);
}
.hero-copy { display: grid; gap: var(--s5); max-width: 860px; }
.hero .eyebrow {
    margin: 0; font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 900; }
.hero h1 span { display: block; }
.hero h1 .hl { color: var(--accent); }
.hero .lede { margin: 0; max-width: 46ch; font-size: 1.15rem; color: color-mix(in srgb, var(--on-media) 84%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero .btn-ghost { color: var(--on-media); border-color: color-mix(in srgb, var(--on-media) 45%, transparent); background: rgba(var(--scrim), .35); }
.hero .btn-ghost:hover { border-color: var(--on-media); }

.rise { animation: rise .9s var(--ease) both; }
.rise:nth-child(2) { animation-delay: .08s; }
.rise:nth-child(3) { animation-delay: .16s; }
.rise:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(18px); opacity: .001; } }
@keyframes drift { from { transform: scale(1.08); } }

/* ---------- Painel de saídas ---------- */
.board-section { position: relative; z-index: 2; margin-top: clamp(-120px, -10vw, -88px); }
.board {
    background: var(--board-bg);
    border: 1px solid var(--board-line);
    border-radius: var(--r-frame);
    padding: var(--s5);
    font-family: var(--font-mono);
    color: var(--board-fg);
}
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding-bottom: var(--s4); border-bottom: 1px solid var(--board-line); }
.board-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; color: #F2EFE7; margin: 0; line-height: 1; }
.board-clock { font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.board-clock .blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.board-cols, .board-row {
    display: grid;
    grid-template-columns: 6.2rem minmax(0, 1fr) minmax(0, 13rem) 6rem;
    gap: var(--s2); align-items: center;
}
.board-cols { padding: var(--s3) var(--s1) var(--s2); font-size: .68rem; letter-spacing: .14em; color: var(--board-dim); }
.board-cols span:last-child { text-align: right; }
.board-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board-row { padding: var(--s1); border-radius: var(--r-control); text-decoration: none; color: inherit; transition: background-color .2s; }
a.board-row:hover { background: var(--board-cell); }
.cell {
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    background: linear-gradient(to bottom, var(--board-cell) 0 49%, var(--board-split) 49% 51%, var(--board-cell) 51%);
    border-radius: 3px; padding: 8px 10px;
    font-size: .9rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}
.cell.dest { color: #F2EFE7; }
.cell.dest .star { color: var(--board-fg); margin-right: 6px; }
.cell.eta { text-align: right; }
.cell.dim { color: var(--board-dim); }
.board-foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3) var(--s5);
    padding-top: var(--s4); margin-top: var(--s3); border-top: 1px solid var(--board-line);
    font-size: .8rem; color: #B9B3A1;
}
.board-foot strong { color: #F2EFE7; font-weight: 700; }
.board-foot a { color: var(--board-fg); text-decoration: none; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.board-foot a:hover { text-decoration: underline; }
@media (max-width: 720px) {
    .board { padding: var(--s3); }
    .board-cols, .board-row { grid-template-columns: 4.4rem minmax(0, 1fr) 4.8rem; }
    .board-cols .c-from, .board-row .from { display: none; }
    .cell { font-size: .78rem; padding: 7px 6px; }
}

/* Letreiro com os avisos, embaixo do painel: texto normal, grande e de alto contraste */
.board-ticker {
    position: relative; overflow: hidden; margin-top: var(--s4); border-radius: var(--r-control);
    background: var(--board-cell); border: 1px solid var(--board-line); padding: 12px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 90s linear infinite; }
.board-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; flex: none; }
.ticker-set span { flex: none; white-space: nowrap; font: 600 1rem/1.2 var(--font-body); letter-spacing: .01em; color: #F2EFE7; }
.ticker-set span::after { content: '\25C6'; margin-inline: 26px; font-size: .6rem; vertical-align: middle; color: var(--board-fg); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; width: auto; flex-wrap: wrap; }
    .ticker-set[data-copy] { display: none; }
    .ticker-set { flex-wrap: wrap; row-gap: 6px; }
    .board-ticker { padding-inline: var(--s3); -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Credenciais ---------- */
.creds { padding-block: clamp(48px, 6vw, 72px) 0; }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
.creds li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s1) var(--s3); align-items: start; }
.creds .ph { grid-row: span 2; font-size: 1.6rem; color: var(--accent-text); margin-top: 2px; }
.creds strong { font-weight: 700; line-height: 1.3; }
.creds li > span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
@media (max-width: 1000px) { .creds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .creds ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Faixa de cartazes ---------- */
.posters { padding-block: clamp(56px, 7vw, 88px) 0; }
.marquee { position: relative; overflow: hidden; }
.marquee-track { display: flex; gap: var(--s4); width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s2))); } }
.poster { flex: none; width: 280px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); text-decoration: none; }
.poster-frame { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-frame); overflow: hidden; background: var(--surface-2); position: relative; }
.poster-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.poster:hover img { transform: scale(1.05); }
.poster-cap { display: flex; justify-content: space-between; gap: var(--s3); font-size: .9rem; }
.poster-cap b { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.poster-cap span { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; white-space: nowrap; }
.marquee-ctrl { display: flex; justify-content: flex-end; margin-top: var(--s4); }
.marquee-ctrl button {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
    border-radius: var(--r-control); border: 1px solid var(--line); background: transparent; color: var(--muted);
    font: 500 .85rem var(--font-body); cursor: pointer; transition: color .2s, border-color .2s;
}
.marquee-ctrl button:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- Mídia comum ---------- */
.media { position: relative; overflow: hidden; background: var(--surface-2); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media.noimg::after {
    content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s5);
    font-family: var(--font-display); font-weight: 900; font-size: 2rem; text-transform: uppercase; text-align: center; line-height: 1;
    color: var(--accent-text);
    background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
}

/* ---------- Bilhete ---------- */
.stub { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); font-family: var(--font-mono); }
.stub .when { font-size: 1.05rem; font-weight: 700; color: var(--accent-text); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.stub .when small { font-size: .78rem; color: var(--muted); margin-left: var(--s2); font-weight: 500; }
.stub .eta { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.kind { margin: 0; font-size: .85rem; font-weight: 600; color: var(--accent-text); }
.kind.eco { color: var(--eco); }
.venue { margin: 0; color: var(--muted); font-size: .95rem; display: flex; gap: var(--s2); align-items: flex-start; }
.venue .ph { font-size: 1.05rem; margin-top: 4px; flex: none; }
.from { display: grid; gap: 6px; }
.from-label { font-size: .82rem; color: var(--muted); }
.from ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.from li { font-size: .82rem; font-weight: 600; padding: 3px 9px; border-radius: var(--r-control); background: var(--surface-2); }
.desc { color: var(--muted); font-size: .95rem; display: grid; gap: var(--s2); overflow-wrap: anywhere; }
.desc p { margin: 0; }
.desc strong { color: var(--fg); font-weight: 600; }
.desc.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.desc.clamped p + p { margin-top: var(--s2); }
.more-btn { justify-self: start; align-self: flex-start; background: none; border: 0; padding: 0; color: var(--accent-text); font: 600 .9rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: auto; padding-top: 6px; }
.actions .btn { flex: 1 1 auto; }

.tear { position: relative; height: 0; margin-inline: var(--s4); border-top: 2px dashed var(--line); }
.tear::before, .tear::after {
    content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--line);
}
.tear::before { left: -28px; }
.tear::after { right: -28px; }

/* ---------- Destaques: composição editorial ---------- */
.features { display: grid; gap: clamp(48px, 7vw, 96px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature:nth-child(even) .media { order: 2; }
.feature .media { aspect-ratio: 4 / 3; border-radius: var(--r-frame); }
.feature:hover .media img { transform: scale(1.03); }
.feature-body { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.feature h3 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); font-weight: 900; }
@media (max-width: 860px) {
    .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
    .feature:nth-child(even) .media { order: 0; }
}

/* ---------- Agenda ---------- */
.toolbar { display: grid; gap: var(--s4); margin-bottom: var(--s6); }
.search { max-width: 520px; display: grid; gap: var(--s2); }
.search label { font-weight: 600; font-size: .95rem; }
.search .field { position: relative; }
.search .ph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--muted); pointer-events: none; }
.search input {
    width: 100%; min-height: 50px; padding: 12px 16px 12px 44px;
    border-radius: var(--r-control); border: 1px solid var(--line); background: var(--surface); color: var(--fg);
    font: 500 1rem var(--font-body);
}
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.chip-row { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s1); scrollbar-width: thin; overscroll-behavior-x: contain; }
.chip {
    flex: none; min-height: 40px; padding: 8px 16px; border-radius: var(--r-control);
    border: 1px solid var(--line); background: var(--surface); color: var(--fg);
    font: 600 .9rem var(--font-body); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.result-count { font-size: .9rem; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s5); }
.ticket {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); overflow: hidden;
    transition: transform .25s var(--ease), border-color .25s;
}
.ticket:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ticket:hover .media img { transform: scale(1.04); }
.ticket.is-featured { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.ticket .media { aspect-ratio: 16 / 10; }
.ticket-body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); flex: 1; min-width: 0; }
.ticket h3 { font-size: 1.85rem; font-weight: 800; }

.empty, .error-box {
    grid-column: 1 / -1; display: grid; justify-items: start; gap: var(--s4);
    padding: var(--s6) 0; color: var(--muted);
}
.empty h3, .error-box h3 { color: var(--fg); font-size: 2rem; }
.empty p, .error-box p { margin: 0; max-width: 52ch; }

.skeleton { border-radius: var(--r-frame); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.skeleton .sk-media { aspect-ratio: 16 / 10; background: var(--surface-2); }
.skeleton .sk-lines { padding: var(--s5); display: grid; gap: var(--s3); }
.skeleton .sk-lines span { height: 14px; border-radius: 3px; background: var(--surface-2); }
.skeleton .sk-lines span:nth-child(1) { width: 40%; }
.skeleton .sk-lines span:nth-child(2) { width: 85%; height: 26px; }
.skeleton .sk-lines span:nth-child(3) { width: 65%; }
.skeleton .sk-media, .skeleton .sk-lines span { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- Como funciona: fotos em camadas + rota ---------- */
.route { background: var(--surface); }
.route-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.frames { position: relative; padding-bottom: 18%; padding-right: 14%; }
.frames .media { border-radius: var(--r-frame); }
.frames .main { aspect-ratio: 4 / 3; }
.frames .inset {
    position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1 / 1;
    border: 6px solid var(--surface);
}
.steps { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s5); position: relative; }
.steps::before {
    content: ""; position: absolute; top: 22px; bottom: 22px; left: 21px;
    border-left: 3px dashed color-mix(in srgb, var(--accent) 55%, transparent);
}
.step { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: var(--s4); align-items: start; }
.step-mark {
    grid-row: span 2;
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: var(--on-accent);
    font-family: var(--font-display); font-weight: 900; font-size: 1.5rem;
    box-shadow: 0 0 0 6px var(--surface);
}
.step h3 { font-size: 1.6rem; font-weight: 800; padding-top: 10px; }
.step p { grid-column: 2; margin: 6px 0 0; color: var(--muted); font-size: .98rem; max-width: 48ch; }
.step p strong { color: var(--fg); }
@media (max-width: 900px) {
    .route-grid { grid-template-columns: minmax(0, 1fr); }
    .frames { max-width: 560px; }
}

/* ---------- Dúvidas ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-aside { display: grid; gap: var(--s5); position: sticky; top: 112px; }
.faq-aside p { margin: 0; color: var(--muted); max-width: 40ch; }
.faq-list { display: grid; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
    padding: 20px 0; font-weight: 600; font-size: 1.1rem; transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-text); }
.faq-list summary .ph { font-size: 1.25rem; color: var(--accent-text); transition: transform .25s var(--ease); flex: none; }
.faq-list details[open] summary .ph { transform: rotate(45deg); }
.faq-answer { padding: 0 0 var(--s5); display: grid; gap: var(--s3); color: var(--muted); max-width: 65ch; }
.faq-answer p { margin: 0; }
.faq-answer strong { color: var(--fg); }
.faq-answer a { color: var(--accent-text); }
@media (max-width: 860px) {
    .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .faq-aside { position: static; }
}

/* ---------- Faixa final com foto ---------- */
.closing {
    position: relative; isolation: isolate; overflow: hidden;
    padding-block: clamp(96px, 13vw, 168px);
    color: var(--on-media); background: #11141A;
}
.closing > .media { position: absolute; inset: 0; z-index: -2; }
.closing::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to right, rgba(var(--scrim), .94) 0%, rgba(var(--scrim), .75) 50%, rgba(var(--scrim), .35) 100%);
}
.closing-inner { display: grid; gap: var(--s5); max-width: 640px; }
.closing h2 { font-size: clamp(2.75rem, 6.5vw, 5rem); }
.closing p { margin: 0; font-size: 1.1rem; color: color-mix(in srgb, var(--on-media) 84%, transparent); max-width: 44ch; }
.phone-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.phone { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); user-select: all; }
.copy-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
    border-radius: var(--r-control); border: 1px solid color-mix(in srgb, var(--on-media) 40%, transparent);
    background: transparent; color: var(--on-media); font: 500 .85rem var(--font-body); cursor: pointer; transition: border-color .2s;
}
.copy-btn:hover { border-color: var(--on-media); }
.closing .btn-ghost { color: var(--on-media); border-color: color-mix(in srgb, var(--on-media) 45%, transparent); }
.closing .btn-ghost:hover { border-color: var(--on-media); }

.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); padding-block: var(--s7) var(--s6); }
.footer-grid > div { min-width: 0; overflow-wrap: anywhere; }
.footer-grid h4 { margin: 0 0 var(--s2); font-size: .95rem; font-weight: 700; }
.footer-grid p { margin: 0; color: var(--muted); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--fg); text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); padding-block: var(--s5) var(--s7); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.legal p { margin: 0; }
.legal a { color: var(--fg); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.wa-float {
    position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--wa); color: var(--on-wa); font-size: 1.9rem; text-decoration: none;
    transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--wa-hover); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .marquee { overflow-x: auto; }
    .marquee-track { width: auto; }
    .marquee-track [aria-hidden="true"] { display: none; }
    .marquee-ctrl { display: none; }
}

/* =====================================================================
   Páginas de evento ("Saiba mais")
   Layout: hero dividido (texto + foto emoldurada), bilhete com os dados
   da viagem, sobre o show, ingressos, datas em formato de bilhete,
   regras rápidas e a mesma faixa final da home.
   ===================================================================== */
.nav a.back { color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
.nav a.back .ph { font-size: 1rem; }

.ev-hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 64px); }
.ev-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ev-hero-copy { display: grid; gap: var(--s5); min-width: 0; }
.ev-hero .eyebrow {
    margin: 0; font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
}
.ev-hero h1 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 900; }
.ev-hero h1 span { display: block; }
.ev-hero h1 .hl { color: var(--accent-text); }
.ev-hero .lede { margin: 0; max-width: 42ch; font-size: 1.15rem; color: var(--muted); }
.ev-hero .media { aspect-ratio: 4 / 3; border-radius: var(--r-frame); }
.ev-hero .media img { animation: drift 9s var(--ease) both; }
@media (max-width: 900px) {
    .ev-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .ev-hero .media { order: -1; aspect-ratio: 16 / 10; }
}

.ev-facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0; padding: var(--s5) var(--s6);
    background: var(--board-bg); border: 1px solid var(--board-line); border-radius: var(--r-frame);
    position: relative;
}
.ev-facts > div { display: grid; gap: 6px; align-content: start; padding-inline: var(--s5); border-left: 1px dashed var(--board-line); min-width: 0; }
.ev-facts > div:first-child { border-left: 0; padding-left: 0; }
.ev-facts dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--board-dim); }
.ev-facts dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; color: #F2EFE7; overflow-wrap: anywhere; }
.ev-facts dd.amber { color: var(--board-fg); font-variant-numeric: tabular-nums; }
.ev-facts::before, .ev-facts::after {
    content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--board-line);
}
.ev-facts::before { left: -12px; }
.ev-facts::after { right: -12px; }
@media (max-width: 860px) {
    .ev-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s5); padding: var(--s5); }
    .ev-facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) {
    .ev-facts { grid-template-columns: minmax(0, 1fr); }
    .ev-facts > div { border-left: 0; padding-left: 0; }
}

.notice {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
    margin-top: var(--s5); padding: var(--s5); border-radius: var(--r-frame);
    background: var(--surface); border: 1px solid var(--line);
}
.notice p { margin: 0; display: flex; gap: var(--s3); align-items: flex-start; max-width: 60ch; }
.notice .ph { font-size: 1.4rem; color: var(--accent-text); flex: none; margin-top: 2px; }

.ev-about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ev-about-grid .media { border-radius: var(--r-frame); aspect-ratio: var(--ratio, 5 / 4); }
.ev-about-grid .media.contain img { object-fit: contain; background: #0B0D11; }
.ev-about-copy { display: grid; gap: var(--s4); min-width: 0; }
.ev-about-copy p { margin: 0; color: var(--muted); max-width: 60ch; }
.ev-about-copy p strong { color: var(--fg); }
.stats { display: flex; flex-wrap: wrap; gap: var(--s6); margin-top: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--line); }
.stats div { display: grid; gap: 2px; }
.stats b { font-family: var(--font-display); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--accent-text); text-transform: uppercase; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .ev-about-grid { grid-template-columns: minmax(0, 1fr); } }

.ev-tickets { background: var(--surface); }
.ev-tickets-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.ev-tickets-grid .section-head { margin-bottom: var(--s5); }
.callout {
    display: flex; gap: var(--s3); align-items: flex-start; margin: 0;
    padding: var(--s4) var(--s5); border-radius: var(--r-frame);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.callout .ph { font-size: 1.4rem; color: var(--accent-text); flex: none; margin-top: 2px; }
.callout p { margin: 0; }
.table-wrap { overflow-x: auto; min-width: 0; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; font-weight: 700; font-size: 1.1rem; padding-bottom: var(--s3); }
.price-table th { text-align: left; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 2px solid var(--line); }
.price-table td { padding: var(--s4) var(--s3) var(--s4) 0; border-bottom: 1px solid var(--line); }
.price-table td:first-child { font-weight: 600; }
.price-table td:not(:first-child), .price-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.price-table td:not(:first-child) { font-family: var(--font-mono); font-size: .95rem; }
.table-note { margin: var(--s3) 0 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .ev-tickets-grid { grid-template-columns: minmax(0, 1fr); } }

.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s5); }
.dates.single { grid-template-columns: minmax(0, 560px); }
.date-card {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); overflow: hidden;
    transition: transform .25s var(--ease), border-color .25s, opacity .25s;
}
.date-card:hover { transform: translateY(-3px); }
.date-card.is-top { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.date-head { display: grid; gap: var(--s1); padding: var(--s5); }
.date-head .tag-top { font-size: .85rem; font-weight: 600; color: var(--accent-text); margin: 0; }
.date-head .day { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: .95; text-transform: uppercase; margin: 0; }
.date-head .weekday { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); margin: 0; }
.date-body { display: flex; flex-direction: column; gap: var(--s5); padding: var(--s5); flex: 1; }
.includes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.includes li { display: flex; gap: var(--s3); align-items: flex-start; }
.includes .ph { color: var(--accent-text); font-size: 1.2rem; margin-top: 2px; flex: none; }
.date-body .btn { width: 100%; margin-top: auto; }
.date-card .closed { display: none; margin-top: auto; text-align: center; padding: 12px; border-radius: var(--r-control); border: 1px dashed var(--line); color: var(--muted); font-weight: 600; }
.date-card.is-past { opacity: .6; }
.date-card.is-past:hover { transform: none; }
.date-card.is-past .btn { display: none; }
.date-card.is-past .closed { display: block; }
.dates-note { margin: var(--s5) 0 0; color: var(--muted); font-size: .9rem; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.rules li { display: grid; gap: var(--s2); align-content: start; }
.rules .ph { font-size: 1.8rem; color: var(--accent-text); }
.rules strong { font-size: 1.05rem; }
.rules span { color: var(--muted); font-size: .95rem; }
.rules-foot { margin-top: var(--s6); }
@media (max-width: 760px) { .rules { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }

body.is-past [data-open-only] { display: none !important; }
body:not(.is-past) [data-past-only] { display: none !important; }

/* Dados do bilhete em texto corrido (cidades, local longo) */
.ev-facts dd.small { font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.4; text-transform: none; }

/* Combos com preço (ex.: João Rock) */
.date-card.pkg .day { font-size: 2.25rem; }
.price { display: grid; gap: 2px; margin: var(--s3) 0 0; }
.price b { font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; line-height: 1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .88rem; }

/* Rota de embarques: paradas ligadas por uma estrada tracejada */
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s6); position: relative; }
.stops::before {
    content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 0;
    border-top: 3px dashed color-mix(in srgb, var(--accent) 55%, transparent);
}
.stops li { position: relative; display: grid; gap: var(--s2); align-content: start; }
.stop-mark {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: var(--on-accent); font-size: 1.3rem;
    box-shadow: 0 0 0 6px var(--surface); margin-bottom: var(--s2);
}
.stops strong { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.stops span:not(.stop-mark) { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
    .stops { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
    .stops::before { top: 22px; bottom: 22px; left: 21px; right: auto; height: auto; border-top: 0; border-left: 3px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
    .stops li { grid-template-columns: 46px minmax(0, 1fr); column-gap: var(--s4); }
    .stops li > :not(.stop-mark) { grid-column: 2; }
    .stop-mark { grid-row: span 2; margin-bottom: 0; }
}

/* Regras com 4 itens viram 2x2 ou 4 colunas, nunca 3+1 */
.rules { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.rules:has(> li:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .rules:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rules:has(> li:nth-child(4)) { grid-template-columns: minmax(0, 1fr); } }

/* 4 bilhetes: 4 colunas no desktop, 2x2 em telas médias, nunca 3+1 */
.dates:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dates:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dates:has(> :nth-child(4)) { grid-template-columns: minmax(0, 1fr); } }
.dates:has(> :nth-child(4)) .date-card.pkg .day { font-size: 2rem; }
@media (min-width: 1101px) { .dates:has(> :nth-child(4)) .date-card.pkg .day { min-height: 1.9em; } }

/* ---------- SEO: palavras de busca dentro do H1, endereço no rodapé ---------- */
.hero h1 .eyebrow, .ev-hero h1 .eyebrow { line-height: 1.5; margin: 0 0 var(--s3); font-size: .78rem; text-wrap: balance; }
.ev-hero h1 .eyebrow { color: var(--accent-text); }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid address { font-style: normal; display: grid; gap: 2px; }

/* ---------- Cartões de artigo (home e blog) ---------- */
.post-cat { margin: 0; font: 700 .78rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.post-meta { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; font-size: .88rem; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.post-card { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; background: var(--hb-card, var(--surface)); border: 1px solid var(--hb-line, var(--line)); border-radius: var(--r-frame); box-shadow: 0 18px 34px -24px rgba(0, 0, 0, .65); transition: transform .45s var(--ease), border-color .2s, box-shadow .3s; }
.post-card:hover, .post-card:focus-within { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 40px -22px rgba(0, 0, 0, .7); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--hb-line, var(--line)); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); min-width: 0; }
.post-card h2, .post-card h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ''; position: absolute; inset: 0; } /* a caixa inteira é clicável */
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent-text); }
.post-card-desc { margin: 0; color: var(--hb-text, var(--muted)); font-size: 1rem; line-height: 1.55; }
.post-more { margin-top: auto; padding-top: var(--s3); display: inline-flex; align-items: center; gap: var(--s2); font: 700 .9rem/1 var(--font-body); color: var(--accent-text); }
.post-more .ph { transition: transform .35s var(--ease); }
.post-card:hover .post-more .ph { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .post-card, .post-card:hover, .post-card-media img { transition: none; transform: none; } }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Blog na home (mesmo desenho do blog da Nerd Dev, nas cores do Anderson) ---------- */
.home-blog { padding-block: clamp(48px, 7vw, 88px); }
.home-blog, .blog-lista, .relacionados { --hb-card: #1B2029; --hb-line: #3B4452; --hb-text: #C6CCD6; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) :is(.home-blog, .blog-lista, .relacionados) { --hb-card: #FFFFFF; --hb-line: #BEC5D0; --hb-text: #3C4452; } }
:root[data-theme="light"] :is(.home-blog, .blog-lista, .relacionados) { --hb-card: #FFFFFF; --hb-line: #BEC5D0; --hb-text: #3C4452; }
.hb-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--accent-text); }
.hb-title a { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; transition: color .2s; }
.hb-title .ph { font-size: .62em; transition: transform .35s var(--ease); }
.hb-title a:hover .ph { transform: translateX(8px); }
.hb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); margin-top: clamp(20px, 3vw, 32px); }
/* caixas bem marcadas: fundo mais claro que a página, borda visível e sombra suave */
.hb-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: var(--r-frame); box-shadow: 0 18px 34px -24px rgba(0, 0, 0, .65); transition: transform .45s var(--ease), border-color .2s, box-shadow .3s; }
.hb-card:hover, .hb-card:focus-within { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 40px -22px rgba(0, 0, 0, .7); }
.hb-media { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--hb-line); }
.hb-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .6s var(--ease); }
.hb-card:hover .hb-media img { transform: scale(1.04); }
.hb-chip { position: absolute; left: var(--s3); top: var(--s3); padding: 5px 9px; border-radius: 2px; background: var(--accent); color: var(--on-accent); font: 700 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.hb-body { display: flex; flex: 1; flex-direction: column; gap: var(--s3); padding: var(--s5); min-width: 0; }
.hb-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px var(--s2); font: 500 .85rem/1.3 var(--font-body); color: var(--muted); }
.hb-card h3 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); font-weight: 800; line-height: 1; }
.hb-card.is-main h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.hb-card h3 a { width: fit-content; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.hb-card:hover h3 a { background-size: 100% 2px; }
.hb-card h3 a::after { content: ''; position: absolute; inset: 0; } /* o cartão inteiro é clicável */
.hb-desc { margin: 0; max-width: 56ch; color: var(--hb-text); font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-more { margin-top: auto; padding-top: var(--s3); display: inline-flex; align-items: center; gap: var(--s2); font: 700 .9rem/1 var(--font-body); color: var(--accent-text); }
.hb-more .ph { transition: transform .35s var(--ease); }
.hb-card:hover .hb-more .ph { transform: translateX(6px); }
@media (min-width: 900px) {
    .hb-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .hb-card { grid-column: span 5; }
    .hb-card.is-main { grid-column: span 7; }
    /* dois artigos: duas colunas iguais, imagens mais baixas e títulos do mesmo tamanho */
    .hb-grid[data-n="2"] .hb-card, .hb-grid[data-n="2"] .hb-card.is-main { grid-column: span 6; }
    .hb-grid[data-n="2"] .hb-media { aspect-ratio: 16 / 8; }
    .hb-grid[data-n="2"] .hb-card.is-main h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
    /* três artigos: o principal ocupa as duas linhas, com a imagem esticando; os pequenos ficam mais baixos */
    .hb-grid[data-n="3"] .is-main { grid-row: span 2; }
    .hb-grid[data-n="3"] .is-main .hb-media { flex: 1; aspect-ratio: auto; min-height: 220px; }
    .hb-grid[data-n="3"] .hb-card:not(.is-main) .hb-media { aspect-ratio: 21 / 8; }
    .hb-grid[data-n="3"] .hb-card:not(.is-main) .hb-desc { display: none; }
    /* um artigo só: cartão na largura toda, imagem ao lado do texto */
    .hb-grid[data-n="1"] .hb-card { grid-column: 1 / -1; flex-direction: row; }
    .hb-grid[data-n="1"] .hb-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--hb-line); }
    .hb-grid[data-n="1"] .hb-body { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hb-card, .hb-card:hover, .hb-media img { transition: none; transform: none; } }
