:root {
    --bg: #0f1115;
    --bg-elevated: #171a21;
    --bg-elevated-2: #1e222b;
    --border: #2a2f3a;
    --text: #eef0f4;
    --text-muted: #9aa1b1;
    --primary: #ff2d55;
    --secondary: #1c1c1e;
    --on-primary: #ffffff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --header-h: 76px;
    --header-h-tall: 116px;
}

:root[data-tema="claro"] {
    --bg: #f7f7fa;
    --bg-elevated: #ffffff;
    --bg-elevated-2: #f0f1f5;
    --border: #e3e4ea;
    --text: #17181c;
    --text-muted: #666a76;
    --shadow: 0 10px 30px rgba(20, 20, 30, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h-tall);
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: height 0.25s ease;
}

.site-header.scrolled {
    height: var(--header-h);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.brand img {
    width: auto;
    height: 95px;
    max-height: calc(var(--header-h-tall) - 16px);
    border-radius: 10px;
    background: #fff;
    transition: height 0.25s ease, max-height 0.25s ease;
}

.site-header.scrolled .brand img {
    height: 55px;
    max-height: calc(var(--header-h) - 16px);
    border-radius: 8px;
}

.brand .brand-dot {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--primary);
    color: var(--on-primary, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: var(--on-primary, #fff);
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn:hover {
    opacity: 0.92;
}

.btn:active {
    transform: scale(0.97);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
}

/* Aviso de cookies */
.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
}

.cookie-consent.show {
    display: flex;
}

.cookie-consent p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex: 1 1 260px;
}

.cookie-consent .btn-sm {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    font-size: 1.2rem;
    cursor: pointer;
}

.install-pill {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.install-pill.show {
    display: inline-flex;
}

.install-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 560px) {
    .brand .brand-label {
        display: none;
    }

    .header-actions .btn .btn-label {
        display: none;
    }

    .header-actions .btn {
        padding: 0.6rem 0.75rem;
    }
}

/* Hero */
.hero {
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(700px 320px at 15% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
        radial-gradient(650px 340px at 95% 100%, color-mix(in srgb, var(--secondary) 40%, transparent), transparent 72%);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1) brightness(0.4) blur(1px);
    transform: scale(1.08);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, var(--bg) 96%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.hero p.lead {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin: 0 0 1.5rem;
    max-width: 46ch;
}

/* .hero-bg (a capa da emissora) é sempre escurecida pra legibilidade, em qualquer tema —
   então o texto do hero precisa ficar claro sempre que ela existir, independente do tema do site. */
.hero:has(.hero-bg) h1 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero:has(.hero-bg) p.lead {
    color: rgba(255, 255, 255, 0.82);
}

/* No tema claro a capa não é escurecida (filter removido), então o texto
   passa a usar a cor secundária em vez de branco, senão ficaria ilegível. */
[data-tema="claro"] .hero-bg {
    filter: none;
}

[data-tema="claro"] .hero:has(.hero-bg) h1 {
    color: var(--secondary);
    text-shadow: none;
}

[data-tema="claro"] .hero:has(.hero-bg) p.lead {
    color: color-mix(in srgb, var(--secondary) 78%, transparent);
}

/* Sobre — faixa full-bleed com a cor secundária bem translúcida, mic decorativo à direita */
.sobre-banda {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 3.5rem 0;
    background: color-mix(in srgb, var(--secondary) 10%, transparent);
}

.sobre-banda-mic {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('/assets/img/radio-cta-2.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: min(48vw, 460px) auto;
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 30%, rgba(0, 0, 0, 0.9) 55%, black 100%);
    mask-image: linear-gradient(100deg, transparent 0%, transparent 30%, rgba(0, 0, 0, 0.9) 55%, black 100%);
}

.sobre-banda .section-title h2 {
    color: var(--secondary);
    position: relative;
}

.sobre-banda-texto {
    color: var(--text);
    max-width: 70ch;
    position: relative;
    line-height: 1.6;
}

.sobre-banda-texto p {
    margin: 0 0 0.75rem;
}

.sobre-banda-texto p:last-child {
    margin-bottom: 0;
}

.sobre-banda-texto ul,
.sobre-banda-texto ol {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.sobre-banda-texto a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .sobre-banda-mic {
        opacity: 0.65;
    }
}

@media (max-width: 900px) {
    .sobre-banda-mic {
        opacity: 0.45;
    }
}

@media (max-width: 720px) {
    .sobre-banda-mic {
        background-size: min(70vw, 320px) auto;
        opacity: 0.28;
    }
}

@media (max-width: 520px) {
    .sobre-banda-mic {
        opacity: 0.15;
    }
}

.player-embed {
    background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}

.player-embed-avatar {
    display: block;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.player-embed-avatar-generico {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--text-muted);
    background: var(--bg-elevated-2);
}

.player-embed-info {
    margin-bottom: 1.25rem;
}

.player-embed-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.player-embed-programa {
    font-weight: 700;
    font-size: 1.1rem;
}

.player-embed-locutor {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.badge-transmissao {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title h2 {
    font-size: 1.4rem;
    margin: 0;
}

.section-title .see-all {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
}

/* Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--secondary) 45%, transparent);
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.15s ease;
}

.card:hover img {
    transform: scale(1.06);
}

.card .no-image {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--bg-elevated-2);
    color: var(--text-muted);
}

.card .no-image svg {
    font-size: 1.8rem;
}

.card .no-image span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-body {
    padding: 1.1rem 1.2rem 1.3rem;
}

.card-body .categoria {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.card-body h3 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

/* Equipe */
.grid-equipe {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.card-equipe {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-equipe:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--secondary) 45%, transparent);
}

.card-equipe img,
.card-equipe-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.85rem;
}

.card-equipe-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated-2);
    color: var(--text-muted);
    font-size: 1.6rem;
}

.card-equipe h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.card-equipe p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Publicidade dividindo espaço com a programação (home) */
.programacao-publi-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
}

.publi-slot {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    background: var(--bg-elevated-2);
}

.publi-slot-img {
    position: absolute;
    inset: 0;
    display: block;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    /* Links empilhados na mesma posição — sem isso, opacity:0 continua
       clicável e quem recebe o clique é sempre o último do DOM, não o que
       está aparecendo visualmente (link errado, ou banner sem link clicável). */
    pointer-events: none;
}

.publi-slot-img.visible {
    opacity: 1;
    pointer-events: auto;
}

.publi-slot-tag {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem 1rem 1.75rem;
}

.publi-slot-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
}

.publi-slot .publi-badge {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
}

.publi-slot .publi-nome {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

@media (max-width: 860px) {
    .programacao-publi-grid {
        grid-template-columns: 1fr;
    }
}

/* Programação */
.prog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Mesmo visual dos botões de filtro de categoria das notícias (.btn/.btn-outline) */
.prog-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.prog-tab:hover {
    opacity: 0.85;
}

.prog-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary, #fff);
    opacity: 1;
}

.prog-tab-hoje {
    color: inherit;
    opacity: 0.75;
}

.prog-painel {
    display: none;
}

.prog-painel.active {
    display: block;
}

.grade-semana {
    display: grid;
    gap: 0.6rem;
}

.grade-dia {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.grade-dia:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.grade-dia .horario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary, #fff);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    min-width: 110px;
    flex-shrink: 0;
}

.grade-dia-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.grade-dia-avatar-generico {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated-2);
    color: var(--text-muted);
    font-size: 1rem;
}

.grade-dia .info {
    flex: 1;
    min-width: 0;
}

.grade-dia .info strong {
    display: block;
    font-size: 0.95rem;
}

.grade-dia .info span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Redes / contato */
.social-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-elevated-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
    transition: background 0.15s ease, transform 0.12s ease;
}

.social-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.social-btn svg {
    display: block;
}

.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 320px;
}

/* Mapa em formato "hero": largura total, sem os limites do .container */
.map-hero-section {
    position: relative;
    width: 100%;
}

.map-hero {
    width: 100%;
    height: clamp(280px, 42vh, 480px);
}

.map-hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 400;
    pointer-events: none;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 22%),
        linear-gradient(90deg, color-mix(in srgb, var(--bg) 45%, transparent) 0%, transparent 18%, transparent 82%, color-mix(in srgb, var(--bg) 45%, transparent) 100%),
        radial-gradient(500px 260px at 0% 0%, color-mix(in srgb, var(--secondary) 55%, transparent), transparent 70%);
}

/* Mapa grudado no rodapé — sem o degradê de baixo nem espaço entre os dois.
   .map-hero-section fica dentro do <main>, e .site-footer é irmão do <main>
   (não do mapa) — por isso o :has() checando o conteúdo do <main>. */
main:has(.map-hero-section) + .site-footer {
    margin-top: 0;
}

.map-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.25rem;
    z-index: 401;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    pointer-events: none;
}

.map-hero-caption span {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    pointer-events: auto;
}

.map-hero-caption .btn {
    pointer-events: auto;
    box-shadow: var(--shadow);
}

/* WhatsApp flutuante */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    transition: transform 0.15s ease;
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

.whatsapp-float-ping {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 50%;
    background: #25d366;
    animation: whatsapp-pulse 2.2s ease-out infinite;
}

.whatsapp-float svg {
    position: relative;
    z-index: 1;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.9); opacity: 0; }
}

@media (max-width: 760px) {
    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
}

/* Footer */
.site-footer {
    position: relative;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 2rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--secondary) 12%, transparent) 0%, transparent 55%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.footer-brand-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--primary);
    color: var(--on-primary, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.footer-grid h4 {
    font-size: 0.9rem;
    margin: 0 0 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-grid a:not(.social-btn) {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-grid a:not(.social-btn):hover {
    color: var(--text);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--primary);
    color: var(--text-muted);
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin: 0 0 0.5rem;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.article-capa {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
}

.article-body {
    font-size: 1.02rem;
    max-width: 72ch;
}

.article-body img {
    border-radius: var(--radius-sm);
    margin: 1.25rem 0;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

.article-gallery img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.15s ease;
}

.article-gallery img:hover {
    transform: scale(1.03);
}

/* Lightbox da galeria de fotos */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-img {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-fechar,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s ease;
}

.lightbox-fechar:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-fechar {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-contador {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

@media (max-width: 640px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: none;
}

/* .card, .grade-dia e .card-equipe também levam .reveal (ver reveal.js) — sem essas
   regras de especificidade maior, o "transform: none" acima empata com
   :hover (mesma especificidade) e cancela o deslocamento no hover depois
   que o elemento já apareceu na tela. A regra .reveal também define
   "transition: transform 0.6s" (pro fade-in do scroll), que do mesmo jeito
   empata e vence sobre os 0.15s desses cards — deixando o hover lento. */
.card.reveal-visible:hover,
.grade-dia.reveal-visible:hover,
.card-equipe.reveal-visible:hover {
    transform: translateY(-3px);
}

.card.reveal-visible,
.grade-dia.reveal-visible,
.card-equipe.reveal-visible {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Mobile */
@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid > div:first-child {
        text-align: center;
    }

    .hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .main-nav {
        position: fixed;
        top: var(--header-h-tall);
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1.25rem 1rem;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.18s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-header.scrolled .main-nav {
        top: var(--header-h);
    }

    .main-nav a {
        padding: 0.6rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .menu-toggle {
        display: inline-flex;
    }
}
