/* ═══════════════════════════════════════════════════════
   FAVE — Univértix
   Design System v2 — Clean & Elegant
   ═══════════════════════════════════════════════════════ */

/* ── 1. Variáveis ──────────────────────────────────────── */
:root {
    /* Cores base */
    --bg:           #f5f4f0;
    --white:        #ffffff;
    --navy:         #141e33;
    --navy-mid:     #1d2d50;
    --navy-light:   #253a6a;
    --navy-dark:    #0d1526;
    --gold:         #b08826;   /* mais vibrante que #a07820 */
    --gold-2:       #ca9c2e;
    --gold-light:   #e2b840;
    --gold-pale:    #fdf5e0;
    --text:         #18181b;
    --muted:        #6b7280;
    --muted-2:      #9ca3af;
    --border:       #e4e2dd;
    --border-2:     #eeece8;

    /* Tipografia */
    --font-heading: 'Sora', system-ui, sans-serif;
    --font-body:    'Sora', system-ui, sans-serif;

    /* Espaçamentos */
    --section-py:   96px;

    /* Bordas */
    --r-xs: 3px;
    --r-sm: 6px;
    --r:    10px;
    --r-lg: 16px;
    --r-xl: 24px;

    /* Sombras — refinadas */
    --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
    --shadow-md: 0 8px 28px rgba(0,0,0,.11);
    --shadow-lg: 0 20px 56px rgba(0,0,0,.15);

    --t: .2s cubic-bezier(.25,.46,.45,.94);
}

/* ── 2. Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; zoom: 90%; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--navy);
}

h5, h6 { font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; }

p { line-height: 1.75; color: var(--muted); }
a { color: inherit; text-decoration: none; transition: var(--t); }
strong { font-weight: 600; color: var(--text); }
address { font-style: normal; }

/* ── 3. Utilitários ────────────────────────────────────── */
.text-gold   { color: var(--gold) !important; }
.text-navy   { color: var(--navy) !important; }
.text-white-70 { color: rgba(255,255,255,.7); }
.text-white-50 { color: rgba(255,255,255,.5); }

/* ── 4. Navbar ─────────────────────────────────────────── */
.fave-navbar {
    background: transparent;
    padding: 0.45rem 0;
    transition: background var(--t), box-shadow var(--t), padding var(--t);
    z-index: 1050;
}

.fave-navbar.scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
    padding: .35rem 0;
}

.fave-navbar.scrolled .brand-label { color: var(--navy); }
.fave-navbar.scrolled .nav-link    { color: var(--muted); }
.fave-navbar.scrolled .nav-link:hover,
.fave-navbar.scrolled .nav-link.active { color: var(--navy); }
.fave-navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2820,30,51,.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
    transition: var(--t);
}

.fave-navbar .nav-link {
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    letter-spacing: .04em;
    padding: .45rem .8rem !important;
    border-radius: var(--r-sm);
    transition: var(--t);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.fave-navbar .nav-link i { font-size: .9rem; opacity: .7; }

.fave-navbar .nav-link:hover { color: var(--white); background: rgba(255,255,255,.12); }
.fave-navbar .nav-link.active { color: var(--gold-light) !important; }

/* ── FIX CRÍTICO: hover na navbar scrolled ──────────────── */
/* Sem esse !important, a regra acima sobrepõe a cor e fica branco-sobre-branco */
.fave-navbar.scrolled .nav-link:hover { background: var(--bg); color: var(--navy) !important; }
.fave-navbar.scrolled .nav-link.active { color: var(--gold) !important; background: var(--gold-pale); }

.fave-navbar .navbar-toggler {
    border: 1px solid rgba(255,255,255,.25);
    padding: .3rem .55rem;
}

.fave-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── 5. Hero ───────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--navy-dark);
}

/* Grade fina e sutil */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* Vinheta lateral */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 50% 50%, transparent 40%, rgba(13,21,38,.7) 100%);
}

/* Partículas — mantém o elemento, mas mais discreto */
.hero-particles { position: absolute; inset: 0; pointer-events: none; opacity: .5; }

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 2.5rem;
    opacity: .9;
}

.eyebrow-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold-2);
    opacity: .5;
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-logo {
    max-height: 220px;
    max-width: 90%;
    filter: drop-shadow(0 8px 40px rgba(0,0,0,.5));
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 1.25rem;
}

.hero-dates {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 400;
    color: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.12);
    padding: .5rem 1.4rem;
    border-radius: 99px;
    margin-bottom: 3rem;
    letter-spacing: .04em;
}

/* Countdown */
.countdown-wrap { margin: 0 auto 3rem; max-width: 560px; }

.countdown-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: .75rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}

.count-num {
    font-family: var(--font-heading);
    font-size: 3.75rem;
    font-weight: 200;
    color: var(--white);
    line-height: 1;
    min-width: 3ch;
    text-align: center;
    letter-spacing: -.04em;
}

.count-label {
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
}

.countdown-sep {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255,255,255,.15);
    line-height: 1;
    padding-bottom: 1.35rem;
}

.countdown-caption {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-top: 1rem;
    margin-bottom: 0;
}

.hero-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.2);
    font-size: 1.1rem;
    letter-spacing: .16em;
    animation: hintBounce 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes hintBounce {
    0%, 100% { opacity: .3; transform: translateX(-50%) translateY(0); }
    50%       { opacity: .7; transform: translateX(-50%) translateY(6px); }
}

/* ── 6. Sections ───────────────────────────────────────── */
.section-light    { padding: var(--section-py) 0; background: var(--white); }
.section-bg       { padding: var(--section-py) 0; background: var(--bg); }
.section-navy     { padding: var(--section-py) 0; background: var(--navy-dark); }
.section-gradient {
    padding: var(--section-py) 0;
    background: var(--navy-dark);
    position: relative;
}
.section-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 48px 48px;
}
.section-gradient > .container { position: relative; z-index: 1; }

/* Eyebrow label */
.section-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
}

/* Headings */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -.03em;
}

.section-navy .section-title,
.section-gradient .section-title { color: var(--white); }

.section-subtitle { font-size: .95rem; color: var(--muted); }

/* Divisor dourado fino */
.title-line {
    width: 36px;
    height: 1.5px;
    background: var(--gold);
    margin: 1rem 0;
    border-radius: 99px;
    opacity: .7;
}

/* ── 7. Botões ─────────────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    border-radius: var(--r-sm);
    padding: .65rem 1.5rem;
    border: 1.5px solid transparent;
    transition: var(--t);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    white-space: nowrap;
}

/* Dourado — mais sóbrio */
.btn-gold {
    background: var(--gold);
    color: var(--white) !important;
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-2);
    border-color: var(--gold-2);
    color: var(--white) !important;
}

/* Navy sólido */
.btn-navy {
    background: var(--navy);
    color: var(--white) !important;
    border-color: var(--navy);
}

.btn-navy:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    color: var(--white) !important;
}

/* Navy outline */
.btn-navy-outline {
    background: transparent;
    color: var(--navy) !important;
    border-color: var(--navy);
}

.btn-navy-outline:hover {
    background: var(--navy);
    color: var(--white) !important;
}

/* Light outline (sobre fundo escuro) */
.btn-outline-light {
    background: transparent;
    color: rgba(255,255,255,.9) !important;
    border-color: rgba(255,255,255,.25);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.5);
    color: var(--white) !important;
}

/* Tamanho grande */
.btn-lg { font-size: .88rem; padding: .8rem 2rem; }

/* ── 8. Action Cards (Home) ────────────────────────────── */
.action-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
    position: relative;
    text-decoration: none;  /* é um <a>, mas não deve ter sublinhado */
    cursor: pointer;
    color: inherit;         /* herda cor do texto normalmente */
}

/* Barra decorativa no topo — aparece no hover */
.action-card::before {
    content: '';
    position: absolute;
    top: 0; left: 2rem; right: 2rem;
    height: 2px;
    border-radius: 0 0 2px 2px;
    opacity: 0;
    transition: opacity var(--t);
}

.action-card:hover {
    border-color: rgba(0,0,0,.12);
    box-shadow: 0 8px 32px rgba(20,30,51,.1);
    transform: translateY(-4px);
    color: inherit;         /* garante que texto não muda de cor */
    text-decoration: none;  /* garante sem sublinhado */
}

.action-card:hover::before { opacity: 1; }

.action-card--gold::before  { background: var(--gold); }
.action-card--navy::before  { background: var(--navy); }
.action-card--outline::before { background: #2563eb; }

.action-icon {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    transition: transform var(--t);
}

.action-card:hover .action-icon { transform: scale(1.12); }

.action-card--gold .action-icon   { color: var(--gold); }
.action-card--navy .action-icon   { color: var(--navy); }
.action-card--outline .action-icon { color: #2563eb; }

.action-body { flex: 1; }

.action-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .3rem;
    line-height: 1.35;
}

.action-subtitle {
    font-size: .83rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.action-btn {
    font-size: .78rem;
    font-weight: 600;
    padding: .52rem 1.2rem;
    align-self: flex-start;
    margin-top: auto;
    border-radius: var(--r-sm);
    pointer-events: none;  /* o card inteiro é o link; o botão é decorativo */
    transition: background var(--t), transform var(--t), box-shadow var(--t);
}

/* Estado normal dos botões */
.action-btn--gold    { background: var(--gold);  color: var(--white) !important; border-color: var(--gold);  }
.action-btn--navy    { background: var(--navy);  color: var(--white) !important; border-color: var(--navy);  }
.action-btn--outline { background: #2563eb;      color: var(--white) !important; border-color: #2563eb; }

/* Botão reage ao hover do CARD PAI (não do próprio botão) */
.action-card:hover .action-btn--gold    { background: var(--gold-2);  border-color: var(--gold-2); transform: translateY(-1px); }
.action-card:hover .action-btn--navy    { background: var(--navy-mid); border-color: var(--navy-mid); transform: translateY(-1px); }
.action-card:hover .action-btn--outline { background: #1d4ed8;         border-color: #1d4ed8; transform: translateY(-1px); }

/* ── 9. Stats ──────────────────────────────────────────── */
.stats-section { padding: 64px 0; }

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-icon {
    font-size: 1.4rem;
    color: var(--gold);
    display: block;
    margin-bottom: .75rem;
    opacity: .8;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 200;
    color: var(--white);
    letter-spacing: -.04em;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: .73rem;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-top: .6rem;
}

/* Divisor entre stats */
.stats-section .col-6:not(:last-child) .stat-card {
    border-right: 0;
}

/* ── 10. Previous Edition Card ─────────────────────────── */
.previous-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.previous-card__badge {
    background: var(--navy);
    color: rgba(255,255,255,.5);
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    padding: .6rem 1.5rem;
}

.previous-card__badge span { color: var(--gold-2); }

.previous-card__body { padding: 2rem; }

.previous-card__body h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: .6rem;
    letter-spacing: -.03em;
}

.previous-card__dates {
    font-size: .8rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: .5rem;
}
.previous-card__body > p { color: var(--muted); margin-bottom: 1.5rem; font-size: .9rem; }

.previous-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.previous-card__list a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: .87rem;
    font-weight: 500;
    transition: var(--t);
}

.previous-card__list a:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.previous-card__list a .bi-arrow-right { margin-left: auto; opacity: .3; font-size: .8rem; }
.previous-card__list a:hover .bi-arrow-right { opacity: .8; }

/* ── 11. Page Header ───────────────────────────────────── */
.page-header {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: var(--navy-dark);
}

.page-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

.page-header-content { position: relative; z-index: 2; }

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -.04em;
    margin-bottom: .75rem;
}

.page-desc {
    font-size: .95rem;
    font-weight: 400;
    color: rgba(255,255,255,.5);
    max-width: 560px;
    margin: 0 auto;
    letter-spacing: .01em;
}

.breadcrumb { background: none; margin-bottom: .75rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.2); }
.breadcrumb-item a { color: var(--gold-2); font-size: .8rem; }
.breadcrumb-item.active { color: rgba(255,255,255,.35); font-size: .8rem; }

/* ── 12. Anais — Sidebar Layout ────────────────────────── */
.anais-layout {
    display: grid;
    grid-template-columns: 256px 1fr;
    align-items: start;
}

/* Sidebar */
.anais-sidebar {
    position: sticky;
    top: 68px;
    background: var(--white);
    min-height: calc(100vh - 68px);
    border-right: 1px solid var(--border);
    padding: 2rem 0 3rem;
    overflow-y: auto;
    max-height: calc(100vh - 68px);
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-2);
    margin-bottom: .75rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .4rem;
}

.sidebar-logo i { font-size: 1.1rem; color: var(--gold); }

.sidebar-logo span {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.sidebar-subtitle {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin: 0;
}

.sidebar-section-label {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding: .5rem 1.5rem .3rem;
    margin-top: .25rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0 .75rem;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .75rem;
    border-radius: var(--r-sm);
    color: var(--muted);
    font-size: .845rem;
    font-weight: 400;
    transition: var(--t);
    text-decoration: none;
    border-left: 2px solid transparent;
}

.sidebar-nav a i { font-size: .85rem; width: 16px; text-align: center; flex-shrink: 0; opacity: .6; }
.sidebar-nav a:hover { color: var(--navy); background: var(--bg); border-left-color: var(--border); }

.sidebar-nav a.active {
    color: var(--navy);
    font-weight: 600;
    background: var(--gold-pale);
    border-left-color: var(--gold);
}

.sidebar-nav a.active i { opacity: 1; color: var(--gold); }

.sidebar-divider {
    height: 1px;
    background: var(--border-2);
    margin: .75rem 1.5rem;
}

.sidebar-footer {
    padding: 1.25rem 1.5rem 0;
    border-top: 1px solid var(--border-2);
    margin-top: .75rem;
}

.sidebar-contact-info { font-size: .75rem; color: var(--muted-2); line-height: 1.8; }
.sidebar-contact-info a { color: var(--gold); }
.sidebar-contact-info a:hover { color: var(--navy); }

/* ── 13. Anais — Conteúdo ──────────────────────────────── */
.anais-content { background: var(--white); }

.anais-section {
    padding: 3.5rem 3rem;
    border-bottom: 1px solid var(--border-2);
}

.anais-section:last-child { border-bottom: none; }

.anais-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    letter-spacing: -.03em;
}

.anais-section-title i { font-size: 1.1rem; color: var(--gold); opacity: .8; }

.anais-section-line {
    width: 32px;
    height: 1.5px;
    background: var(--gold);
    opacity: .6;
    margin-bottom: 2rem;
    border-radius: 99px;
}

/* Capa / Banner da edição atual */
.capa-banner {
    background: var(--navy-dark);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.capa-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 40px 40px;
}

.capa-banner-content { position: relative; z-index: 1; }

.capa-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: .85rem;
    opacity: .9;
}

.capa-banner h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: .5rem;
    letter-spacing: -.04em;
}

.capa-banner p { color: rgba(255,255,255,.5); font-size: .88rem; margin-bottom: 0; }

.capa-stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }

.capa-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 200;
    color: var(--white);
    letter-spacing: -.04em;
    line-height: 1;
}

.capa-stat span {
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-top: .25rem;
    display: block;
}

/* Quick links da capa */
.capa-quicklinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }

.capa-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-decoration: none;
    color: var(--text);
    transition: var(--t);
    font-size: .85rem;
}

.capa-link:hover { border-color: var(--navy); color: var(--navy); box-shadow: var(--shadow-sm); }

.capa-link-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-pale);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold);
    flex-shrink: 0;
    transition: var(--t);
}

.capa-link:hover .capa-link-icon { background: var(--navy); color: var(--white); }

.capa-link strong { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.capa-link span   { font-size: .75rem; color: var(--muted); }

/* Edição atual card */
.edicao-card {
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.edicao-card__header {
    background: var(--navy);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}

.edicao-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    letter-spacing: -.03em;
}

.edicao-card__dates {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 400;
    color: rgba(255,255,255,.45);
    letter-spacing: .04em;
}

.edicao-card__body { padding: 2rem; background: var(--white); }

.edicao-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.edicao-info-item {
    padding: .9rem 1.1rem;
    background: var(--bg);
    border-radius: var(--r-sm);
    border: 1px solid var(--border-2);
}

.edicao-info-item label {
    display: block;
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: .2rem;
}

.edicao-info-item span { font-size: .9rem; color: var(--navy); font-weight: 500; }

/* Sobre — grid */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }

.sobre-card {
    padding: 1.25rem;
    background: var(--bg);
    border-radius: var(--r);
    border: 1px solid var(--border-2);
}

.sobre-card h6 {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.sobre-card h6 i { color: var(--gold); font-size: .9rem; }
.sobre-card p, .sobre-card ul { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.7; }
.sobre-card ul { padding-left: 1rem; }

/* Notice box */
.notice-box {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: var(--gold-pale);
    border: 1px solid rgba(160,120,32,.2);
    border-radius: var(--r);
    margin-top: 1.5rem;
}

.notice-box i { font-size: 1rem; color: var(--gold); flex-shrink: 0; margin-top: .15rem; }
.notice-box p { font-size: .85rem; color: var(--gold); margin: 0; line-height: 1.65; }

/* ── 14. Expediente ────────────────────────────────────── */
.expediente-block { margin-bottom: 2.5rem; }
.expediente-block:last-child { margin-bottom: 0; }

.exp-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1.5px solid var(--border);
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.exp-label i { color: var(--gold); font-size: .8rem; }

.exp-lead {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

.exp-lead-dot {
    width: 36px;
    height: 36px;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gold);
    flex-shrink: 0;
}

.exp-lead strong { display: block; font-size: .9rem; color: var(--navy); }
.exp-lead span   { font-size: .75rem; color: var(--muted); }

.exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .45rem;
}

.exp-member {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .8rem;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    font-size: .82rem;
    color: var(--text);
    transition: var(--t);
}

.exp-member:hover { border-color: var(--navy); color: var(--navy); }
.exp-member i { font-size: .7rem; color: var(--gold); flex-shrink: 0; opacity: .8; }

.exp-reviewers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: .35rem;
}

.exp-reviewer {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    font-size: .8rem;
    color: var(--muted);
    border-radius: var(--r-sm);
    transition: var(--t);
}

.exp-reviewer::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: .7;
}

.exp-reviewer:hover { color: var(--navy); background: var(--bg); }

/* ── 15. Editions — Anais Anteriores ───────────────────── */
.ed-tabs .nav-link {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: var(--r-sm);
    padding: .45rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--t);
}

.ed-tabs .nav-link:hover { color: var(--navy); border-color: var(--navy); background: var(--white); }
.ed-tabs .nav-link.active { background: var(--navy); color: var(--white) !important; border-color: var(--navy); }

.edition-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-2);
    border-radius: var(--r);
    margin-bottom: .5rem;
    transition: var(--t);
}

.edition-row:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }

.edition-row-number {
    min-width: 72px;
    text-align: center;
    padding: .5rem .6rem;
    background: var(--navy);
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

.edition-row-number .ed-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
}

.edition-row-number .ed-lbl {
    display: block;
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-top: .2rem;
}

.edition-row-number .ed-year {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    color: var(--gold-2);
    margin-top: .15rem;
}

.edition-row-title { font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .2rem; }
.edition-row-dates { font-size: .75rem; color: var(--muted-2); margin-bottom: .5rem; }
.edition-row-desc  { font-size: .83rem; color: var(--muted); line-height: 1.55; margin-bottom: .75rem; }

.edition-row-links { display: flex; flex-wrap: wrap; gap: .4rem; }

.btn-vol {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .73rem;
    font-weight: 500;
    padding: .3rem .85rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--navy) !important;
    text-decoration: none;
    transition: var(--t);
}

.btn-vol:hover { background: var(--navy); color: var(--white) !important; border-color: var(--navy); }

.btn-vol--gold {
    background: var(--gold);
    color: var(--white) !important;
    border-color: var(--gold);
}

.btn-vol--gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--white) !important; }

/* Botão primário de edição → link para /trabalhos */
.btn-vol--primary {
    background: var(--navy);
    color: var(--white) !important;
    border-color: var(--navy);
    font-weight: 600;
}
.btn-vol--primary:hover {
    background: #1e2e52;
    border-color: #1e2e52;
    color: var(--white) !important;
}

/* Botão outline (links extras, ex.: PDF externo) */
.btn-vol--outline {
    background: transparent;
    color: var(--navy) !important;
    border-color: var(--border);
}
.btn-vol--outline:hover {
    background: var(--navy);
    color: var(--white) !important;
    border-color: var(--navy);
}

/* ── 16. Normas (anais) ────────────────────────────────── */
.normas-download-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-decoration: none;
    color: var(--text);
    transition: var(--t);
}

.normas-download-card:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.normas-icon {
    width: 52px;
    height: 52px;
    background: var(--bg);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    flex-shrink: 0;
    transition: var(--t);
    border: 1px solid var(--border-2);
}

.normas-download-card:hover .normas-icon { background: var(--navy); color: var(--white); border-color: var(--navy); }

.normas-info strong { display: block; font-size: .9rem; color: var(--navy); margin-bottom: .2rem; }
.normas-info span   { font-size: .8rem; color: var(--muted); }

.normas-arrow { margin-left: auto; font-size: 1rem; color: var(--muted-2); flex-shrink: 0; transition: var(--t); }
.normas-download-card:hover .normas-arrow { color: var(--navy); transform: translateX(3px); }

/* ── 17. Áreas — Tabela ────────────────────────────────── */
.areas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.areas-table thead th {
    background: var(--navy);
    color: rgba(255,255,255,.6);
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: .85rem 1.25rem;
    text-align: left;
    border: none;
}

.areas-table tbody td {
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border-2);
    vertical-align: middle;
}

.areas-table tbody tr:last-child td { border-bottom: none; }

.areas-table tbody tr:hover { background: var(--bg); }

.area-cell {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 500;
    color: var(--navy);
}

.area-cell i { color: var(--gold); opacity: .8; font-size: .95rem; }

.type-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 500;
    padding: .2rem .6rem;
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    color: var(--muted);
    margin-right: .3rem;
    background: var(--white);
}

/* ── 18. Contato (anais) ───────────────────────────────── */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.contato-item {
    display: flex;
    gap: .85rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg);
    border-radius: var(--r);
    border: 1px solid var(--border-2);
    align-items: flex-start;
    transition: var(--t);
}

.contato-item:hover { border-color: var(--border); background: var(--white); }

.contato-item-icon {
    width: 38px;
    height: 38px;
    background: var(--white);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gold);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.contato-item-body strong {
    display: block;
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: .2rem;
}

.contato-item-body span,
.contato-item-body a { font-size: .87rem; color: var(--navy); font-weight: 500; line-height: 1.55; }
.contato-item-body a:hover { color: var(--gold); }

/* ── 19. Evento ────────────────────────────────────────── */
.info-badge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.info-badge {
    padding: 1.25rem;
    background: var(--bg);
    border-radius: var(--r);
    border: 1px solid var(--border-2);
    text-align: center;
    transition: var(--t);
}

.info-badge:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.info-badge i { font-size: 1.3rem; color: var(--gold); display: block; margin-bottom: .5rem; opacity: .8; }
.info-badge strong { display: block; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.info-badge span { font-size: .75rem; color: var(--muted); }

.history-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    margin-top: 2rem;
}

.history-timeline { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }

.timeline-point { text-align: center; }
.timeline-year  { display: block; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 400; color: var(--gold-light); }
.timeline-fact  { display: block; font-size: .75rem; color: rgba(255,255,255,.4); letter-spacing: .06em; }

.timeline-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(201,168,76,.15) 100%);
    min-width: 60px;
    position: relative;
}

.history-text { color: rgba(255,255,255,.6); line-height: 1.8; margin: 0; font-size: .95rem; }

.objective-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    transition: var(--t);
    height: 100%;
}

.objective-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }

.objective-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-pale);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    flex-shrink: 0;
}

.objective-body h5 { font-size: .95rem; color: var(--navy); margin-bottom: .35rem; }
.objective-body p  { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.65; }

.components-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }

.components-list li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: .9rem;
    color: var(--muted);
}

.components-list li i { font-size: .95rem; flex-shrink: 0; margin-top: .2rem; }

.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }

.area-pill {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem .9rem;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    font-size: .83rem;
    color: var(--muted);
    transition: var(--t);
}

.area-pill:hover { background: var(--white); color: var(--navy); border-color: var(--border); }
.area-pill i { font-size: .9rem; color: var(--gold); opacity: .7; }

.leader-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-lg);
    transition: var(--t);
}

.leader-card:hover { background: rgba(255,255,255,.07); }

.leader-avatar {
    width: 96px;
    height: 96px;
    background: rgba(160,120,32,.15);
    border: 2px solid rgba(160,120,32,.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-2);
    margin: 0 auto 1.1rem;
    overflow: hidden;          /* garante que a foto fica dentro do círculo */
    flex-shrink: 0;
}

.leader-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* preenche o círculo sem distorcer */
    object-position: center top; /* enquadra pelo rosto */
    display: block;
    border-radius: 50%;
}

.leader-name { font-size: .95rem; color: var(--white); font-weight: 600; margin-bottom: .4rem; line-height: 1.35; }
.leader-role { font-size: .75rem; color: rgba(255,255,255,.55); letter-spacing: .04em; line-height: 1.45; }

.location-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-xl);
    padding: 2.5rem;
}

.location-icon { font-size: 2rem; color: var(--gold); margin-bottom: .85rem; display: block; }
.location-card h5 { color: var(--white); font-size: 1.1rem; margin-bottom: .5rem; }
.location-card p  { color: rgba(255,255,255,.5); margin-bottom: .25rem; font-size: .88rem; }

.location-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-top: 1rem; }
.location-contact a { color: var(--gold-2); font-size: .87rem; display: flex; align-items: center; gap: .4rem; }
.location-contact a:hover { color: var(--white); }

/* ── 20. Programação ───────────────────────────────────── */
.prog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    height: 100%;
    transition: var(--t);
}

.prog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.prog-card--upcoming { border-color: var(--gold); }

.prog-card__number {
    background: var(--navy);
    color: rgba(255,255,255,.07);
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 200;
    line-height: 1;
    padding: 1.25rem 1.5rem .75rem;
    user-select: none;
    letter-spacing: -.05em;
}

.prog-card--upcoming .prog-card__number { color: rgba(160,120,32,.12); }

.prog-card__body { padding: 1.5rem; }

.prog-card__title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; letter-spacing: -.03em; }
.prog-card__dates { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }

.prog-card__note {
    background: var(--bg);
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: .65rem .9rem;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .85rem;
}

.prog-card__links { display: flex; flex-wrap: wrap; gap: .4rem; }

.btn-prog {
    font-size: .78rem;
    font-weight: 500;
    padding: .45rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    transition: var(--t);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.btn-prog--primary  { background: var(--navy); color: var(--white) !important; border-color: var(--navy); }
.btn-prog--secondary { background: var(--bg); color: var(--navy) !important; border-color: var(--border); }
.btn-prog--primary:hover  { background: var(--navy-mid); }
.btn-prog--secondary:hover { background: var(--navy); color: var(--white) !important; border-color: var(--navy); }

.prog-card__upcoming-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--gold-pale);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    padding: .35rem .8rem;
    border-radius: var(--r-sm);
    margin-top: .6rem;
}

/* ── 21. Footer ────────────────────────────────────────── */
.fave-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,.5);
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-tagline { font-size: .87rem; color: rgba(255,255,255,.4); line-height: 1.75; }
.footer-sub { font-size: .77rem; color: rgba(255,255,255,.25); }

.footer-heading {
    font-family: var(--font-body);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 1rem;
    opacity: .8;
}

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer-links a {
    font-size: .85rem;
    color: rgba(255,255,255,.6);
    transition: color var(--t), padding-left var(--t);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.footer-links a:hover { color: var(--white); padding-left: .35rem; }

.footer-address { display: flex; flex-direction: column; gap: .45rem; }
.footer-address p { font-size: .83rem; color: rgba(255,255,255,.55); margin: 0; display: flex; align-items: flex-start; gap: .5rem; line-height: 1.55; }
.footer-address a { color: rgba(255,255,255,.55); }
.footer-address a:hover { color: var(--gold-2); }

.footer-brand-link { display: inline-block; opacity: .5; transition: var(--t); }
.footer-brand-link:hover { opacity: .8; }
.footer-univertix-logo { height: 60px; filter: brightness(0) invert(.9);}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.05);
    padding: 1.25rem 0;
    font-size: .78rem;
    color: rgba(255,255,255,.25);
}

.badge-issn {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.25);
    border-radius: var(--r-xs);
    padding: .2rem .7rem;
    font-size: .72rem;
    letter-spacing: .06em;
}

/* ── 22. 404 ───────────────────────────────────────────── */
.error-number {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 300;
    line-height: 1;
    color: rgba(255,255,255,.12);
}

/* ── 23. Mobile sidebar toggle ─────────────────────────── */
.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1100;
    background: var(--navy);
    color: var(--white);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r-sm);
    padding: .55rem 1.1rem;
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    gap: .45rem;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: var(--t);
}

.sidebar-mobile-toggle:hover { background: var(--navy-mid); }

/* ── 24. Imagem de Capa da Revista ─────────────────────── */
.capa-revista-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
}

.capa-revista-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(14,21,38,.22), 0 2px 8px rgba(14,21,38,.1);
}

.capa-revista-img {
    width: 100%;
    height: auto;
    display: block;
}

.capa-revista-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .5rem .75rem;
    background: linear-gradient(to top, rgba(13,21,38,.9), transparent);
    color: rgba(255,255,255,.9);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.capa-revista-badge i { color: var(--gold-light); margin-right: .3rem; }

.capa-revista-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .5rem 0;
}

.capa-revista-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .4rem;
}

.capa-revista-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.04em;
    margin-bottom: 0;
    line-height: 1.15;
}

.capa-revista-year {
    font-size: 2.75rem;
    font-weight: 200;
    color: var(--navy);
    letter-spacing: -.06em;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.capa-revista-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem .75rem;
    margin-bottom: .5rem;
}

.capa-revista-meta-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    color: var(--muted);
}

.capa-revista-meta-item i {
    color: var(--gold);
    font-size: .85rem;
    flex-shrink: 0;
}

/* Bloco de publicação (substitui meta com ícones) */
.capa-publicacao {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.capa-pub-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold);
    margin-bottom: .35rem;
}
.capa-pub-line {
    font-size: .78rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: .6rem;
}
.capa-pub-disclaimer {
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: .6rem;
}
.capa-pub-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--navy-mid);
    line-height: 1.55;
    margin-bottom: 0;
}

/* ── 25. Carta Editorial (capa) ────────────────────────── */
.capa-editorial {
    margin-top: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.capa-editorial-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.5rem;
    background: var(--navy);
    color: rgba(255,255,255,.85);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.capa-editorial-header i {
    color: var(--gold-light);
    font-size: 1.1rem;
}

.capa-editorial-body {
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.capa-editorial-body p {
    font-size: .92rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 1rem;
}

.capa-editorial-body p:last-child { margin-bottom: 0; }

.capa-editorial-footer {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.75rem;
    background: var(--bg);
}

.capa-editorial-footer strong {
    font-size: .9rem;
    color: var(--navy);
}

.capa-editorial-footer span {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .1rem;
}

/* ── 25. Sobre — seções com texto completo ─────────────── */
.sobre-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.sobre-section-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: box-shadow var(--t);
}

.sobre-section-item:hover { box-shadow: var(--shadow-sm); }

.sobre-section-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r);
    background: var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sobre-section-icon i {
    color: var(--gold);
    font-size: 1.15rem;
}

.sobre-section-body { flex: 1; min-width: 0; }

.sobre-section-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

.sobre-section-text {
    font-size: .88rem;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}

/* ── 26. Ficha técnica expediente ──────────────────────── */
.exp-ficha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem 1.5rem;
}

.exp-ficha-item {
    display: flex;
    flex-direction: column;
    padding: .75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

.exp-ficha-key {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: .25rem;
}

.exp-ficha-val {
    font-size: .9rem;
    font-weight: 500;
    color: var(--navy);
}

/* ── 27. Declaração de Privacidade ─────────────────────── */
.privacy-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    border-left: 3px solid var(--navy-light);
}

.privacy-box-icon {
    color: var(--navy-mid);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.privacy-box p {
    font-size: .86rem;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
}

/* ── 27. Pesquisar Trabalhos ────────────────────────────── */
.pesquisa-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    margin-top: .5rem;
}

.pesquisa-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.pesquisa-field label {
    display: block;
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .4rem;
}

.pesquisa-field .form-control,
.pesquisa-field .form-select {
    font-family: var(--font-body);
    font-size: .88rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--t), box-shadow var(--t);
}

.pesquisa-field .form-control:focus,
.pesquisa-field .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(160,120,32,.12);
    outline: none;
    background: var(--white);
}

.pesquisa-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pesquisa-note {
    font-size: .82rem;
    color: var(--muted-2);
    margin: 0;
    line-height: 1.5;
}

.pesquisa-note i { color: var(--muted); }

/* ── 28. Trabalhos Publicados ───────────────────────────── */
.trabalhos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.trabalho-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.4rem 1.5rem;
    transition: box-shadow .18s, border-color .18s;
}
.trabalho-card:hover {
    box-shadow: 0 4px 20px rgba(20,30,51,.08);
    border-color: var(--gold);
}

/* Header: badges + PDF button */
.trabalho-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
    flex-wrap: wrap;
}

.trabalho-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

/* Tipo badge */
.trabalho-tipo-badge {
    display: inline-flex;
    align-items: center;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 20px;
    padding: .22rem .75rem;
}
.trabalho-tipo-badge--artigo {
    background: rgba(20,30,51,.08);
    color: var(--navy);
}
.trabalho-tipo-badge--resumo {
    background: rgba(160,120,32,.1);
    color: var(--gold);
}
.trabalho-tipo-badge--poster {
    background: rgba(80,180,80,.1);
    color: #2a7a2a;
}

/* Edição / Área badges */
.trabalho-edicao-badge,
.trabalho-area-badge {
    display: inline-flex;
    align-items: center;
    font-size: .68rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .2rem .65rem;
}

/* PDF button (top-right) */
.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    color: #c0392b;
    background: rgba(192,57,43,.07);
    border: 1px solid rgba(192,57,43,.18);
    border-radius: 8px;
    padding: .3rem .75rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.btn-pdf-download:hover {
    background: rgba(192,57,43,.14);
    color: #a52b1f;
}
.btn-pdf-download i { font-size: 1.05rem; }

/* Title */
.trabalho-title {
    font-family: var(--font-body);
    font-size: .97rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.45;
    margin: 0 0 .6rem;
    text-transform: uppercase;
    letter-spacing: .01em;
}

/* Authors */
.trabalho-autores {
    font-size: .84rem;
    color: var(--text);
    margin-bottom: .5rem;
    display: flex;
    align-items: baseline;
    gap: .4rem;
}
.trabalho-autores i {
    color: var(--muted);
    font-size: .8rem;
    flex-shrink: 0;
}

/* Publication date inline */
.trabalho-data {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-size: .78rem;
    color: var(--muted);
    margin-left: auto;
    white-space: nowrap;
}

/* Abstract */
.trabalho-resumo {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: .65rem;
}

/* Keyword chips */
.trabalho-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .75rem;
}
.trabalho-tag {
    font-size: .7rem;
    background: rgba(160,120,32,.08);
    color: var(--gold);
    border: 1px solid rgba(160,120,32,.18);
    border-radius: 20px;
    padding: .15rem .6rem;
    font-weight: 500;
}

/* Download button (bottom) */
.trabalho-actions { margin-top: .75rem; }

.btn-baixar-pdf {
    display: inline-flex;
    align-items: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
    background: transparent;
    border: 1.5px solid var(--navy);
    border-radius: 8px;
    padding: .4rem 1rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.btn-baixar-pdf:hover {
    background: var(--navy);
    color: var(--white);
}

/* Empty state */
.trabalhos-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
.trabalhos-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: .75rem;
    color: var(--border);
}
.trabalhos-empty p { font-size: .92rem; }

/* Pagination */
.trabalhos-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.pag-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .83rem;
    font-weight: 600;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    border-radius: 8px;
    padding: .4rem .9rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.pag-btn:hover { background: var(--navy); color: var(--white); }
.pag-info {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
}

/* Rodapé da lista: contagem + botões por-página */
.trab-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.trab-footer-count {
    font-size: .82rem;
    color: var(--muted);
}
.trab-footer-count strong {
    color: var(--navy);
}
.trab-perpage-group {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.trab-perpage-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    cursor: default;
    margin: 0;
}
.trab-perpage-select {
    font-size: .82rem;
    font-family: var(--font-body);
    color: var(--navy);
    border: 1.5px solid var(--navy);
    border-radius: 8px;
    padding: .3rem .7rem;
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.trab-perpage-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176,136,38,.15);
}

/* Responsive */
@media (max-width: 600px) {
    .trabalho-card-header { flex-direction: column; }
    .btn-pdf-download { align-self: flex-start; }
    .trabalho-title { font-size: .9rem; }
    .trabalhos-pagination { gap: .6rem; }
    .trab-footer { flex-direction: column; align-items: flex-start; }
}

/* ── 29. Página Trabalhos ───────────────────────────────── */

/* Filter card */
.trab-filter-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(20,30,51,.05);
}

.trab-filter-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 1.1rem;
}
.trab-filter-header i { font-size: 1rem; color: var(--gold); }

.trab-filter-clear {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    letter-spacing: 0;
    text-transform: none;
}
.trab-filter-clear:hover { color: #c0392b; }

.trab-filter-form { display: flex; flex-direction: column; gap: 1rem; }

.trab-filter-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 1rem;
}
.trab-filter-field--wide { grid-column: span 1; }

.trab-filter-field label {
    display: block;
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
}
.trab-filter-field .form-control,
.trab-filter-field .form-select {
    font-family: var(--font-body);
    font-size: .88rem;
    border-color: var(--border);
    border-radius: var(--r);
    padding: .5rem .85rem;
    color: var(--text);
}
.trab-filter-field .form-control:focus,
.trab-filter-field .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(160,120,32,.12);
    outline: none;
}

.trab-filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trab-filter-count {
    font-size: .84rem;
    color: var(--muted);
    margin-left: auto;
}
.trab-filter-count strong { color: var(--navy); }

/* Active filter chips */
.trab-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.25rem;
    padding: .75rem 1rem;
    background: rgba(160,120,32,.05);
    border: 1px solid rgba(160,120,32,.15);
    border-radius: var(--r);
    font-size: .82rem;
}
.trab-active-label {
    font-weight: 600;
    color: var(--gold);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.trab-active-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .2rem .65rem;
    font-size: .75rem;
    color: var(--navy);
    font-weight: 500;
}
.trab-chip-remove {
    color: var(--muted);
    text-decoration: none;
    margin-left: .15rem;
    display: inline-flex;
    align-items: center;
}
.trab-chip-remove:hover { color: #c0392b; }

/* List */
.trab-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: .5rem;
}

/* Empty */
.trab-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}
.trab-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--border);
}
.trab-empty h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .5rem; }
.trab-empty p { font-size: .9rem; }

/* Tags as links */
.trabalho-tag {
    text-decoration: none;
    transition: background .15s, color .15s;
}
.trabalho-tag:hover {
    background: rgba(160,120,32,.2);
    color: var(--gold);
}

/* Responsive */
@media (max-width: 900px) {
    .trab-filter-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .trab-filter-fields { grid-template-columns: 1fr; }
    .trab-filter-card { padding: 1.1rem 1rem; }
    .trab-filter-actions { flex-direction: column; align-items: flex-start; }
    .trab-filter-count { margin-left: 0; }
}

/* Chips de edição rápida na seção pesquisa (anais) */
.pesquisa-edicoes-rapidas {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}
.pesquisa-edicoes-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .65rem;
}
.pesquisa-edicoes-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.ed-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: .28rem .85rem;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.ed-chip span {
    font-size: .7rem;
    font-weight: 400;
    color: var(--muted);
}
.ed-chip:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}
.ed-chip:hover span { color: rgba(255,255,255,.7); }

/* ── 30. Submissão ──────────────────────────────────────── */
.submissao-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    margin-top: .5rem;
}

.submissao-status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.submissao-status--closed {
    background: rgba(239,68,68,.08);
    color: #b91c1c;
    border: 1px solid rgba(239,68,68,.2);
}

.submissao-text {
    font-size: .92rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: .85rem;
}

.submissao-note {
    font-size: .85rem;
    color: var(--navy-mid);
    margin: 0;
}

.submissao-note i { color: #16a34a; }

/* ── 29. Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .anais-layout { grid-template-columns: 220px 1fr; }
    .anais-section { padding: 2.75rem 2rem; }
    .capa-quicklinks { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    :root { --section-py: 64px; }
    .sobre-grid, .edicao-info-grid, .contato-grid, .info-badge-grid { grid-template-columns: 1fr; }
    .pesquisa-fields { grid-template-columns: 1fr; }
    .exp-ficha { grid-template-columns: 1fr; }
    .capa-revista-wrap { grid-template-columns: 160px 1fr; gap: 1.5rem; padding: 1.5rem; }
    .capa-revista-title { font-size: 1.35rem; }
    .capa-revista-year { font-size: 2.25rem; }
    .capa-revista-meta { grid-template-columns: 1fr; }
    .count-num { font-size: 3rem; }
    .hero-logo { max-height: 180px; }
    .areas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-py: 48px; }

    .anais-layout { grid-template-columns: 1fr; }

    .anais-sidebar {
        position: fixed;
        left: -270px;
        top: 0;
        height: 100vh;
        width: 260px;
        z-index: 1050;
        transition: left .28s cubic-bezier(.4,0,.2,1);
        box-shadow: var(--shadow-lg);
        padding-top: 4.5rem;
        overflow-y: auto;
        max-height: 100vh;
    }

    .anais-sidebar.is-open { left: 0; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1040; }
    .sidebar-overlay.is-active { display: block; }
    .sidebar-mobile-toggle { display: flex; }

    .anais-section { padding: 2.25rem 1.25rem; }
    .capa-banner { padding: 1.75rem; }
    .capa-stats { gap: 1.5rem; }
    .exp-grid { grid-template-columns: 1fr; }
    .exp-reviewers { grid-template-columns: 1fr 1fr; }
    .edition-row { flex-wrap: wrap; }
    .countdown-grid { gap: .5rem; }
    .countdown-sep { font-size: 1.75rem; padding-bottom: .85rem; }
    .count-num { font-size: 2.25rem; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-cta { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .exp-reviewers { grid-template-columns: 1fr; }
    .capa-quicklinks { grid-template-columns: 1fr; }
    .countdown-sep { display: none; }
    .count-num { font-size: 2rem; }
    .edition-row-number { min-width: 60px; }
    .sobre-grid { grid-template-columns: 1fr; }
    .sobre-section-item { flex-direction: column; gap: .85rem; }
    .pesquisa-actions { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .capa-revista-wrap { grid-template-columns: 1fr; }
    .capa-revista-frame { max-width: 200px; margin: 0 auto; }
    .capa-revista-info-col { text-align: center; align-items: center; }
    .capa-revista-meta { grid-template-columns: 1fr; text-align: left; }
}

/* ── 30. Página Programação ─────────────────────────────── */

/* List container */
.prog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
}

/* List item */
.prog-list-item {
    border: 1px solid var(--border);
    border-radius: .75rem;
    background: var(--white);
    margin-bottom: .75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}
.prog-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.prog-list-item--first { border-color: var(--gold); box-shadow: 0 2px 12px rgba(160,120,32,.12); }

/* Header / accordion toggle */
.prog-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    gap: 1rem;
    text-align: left;
}
.prog-list-item--first .prog-list-header { background: linear-gradient(135deg, #fffdf5 0%, #fff 100%); }
.prog-list-header:hover { background: rgba(20,30,51,.025); }

.prog-list-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.prog-list-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem;
    font-family: var(--font-heading);
}
.prog-list-item--first .prog-list-num { background: var(--gold); }

.prog-list-info { flex: 1; min-width: 0; }
.prog-list-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin: 0 0 .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prog-list-dates {
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
    display: flex; align-items: center; gap: .35rem;
}

.prog-list-header-right {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

/* Tags (PDF / Fotos) */
.prog-tag {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 600;
    padding: 3px 9px; border-radius: 20px;
    white-space: nowrap;
}
.prog-tag--pdf  { background: rgba(220,53,69,.1);  color: #dc3545; }
.prog-tag--img  { background: rgba(26,46,77,.08);  color: var(--navy); }

/* Chevron */
.prog-list-chevron i {
    font-size: 1rem;
    color: var(--muted);
    display: block;
    transition: transform .28s;
}

/* Body (collapsed content) */
.prog-list-body {
    padding: 1.25rem 1.4rem 1.4rem;
    border-top: 1px solid var(--border);
}
.prog-list-desc {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 1rem;
    line-height: 1.65;
}

/* PDF bar */
.prog-pdf-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
}
.btn-prog-pdf {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--navy); color: var(--white);
    padding: .55rem 1.2rem; border-radius: .5rem;
    font-weight: 600; font-size: .88rem;
    text-decoration: none;
    transition: background .18s, transform .15s;
    flex: 1;
    justify-content: center;
}
.btn-prog-pdf:hover { background: var(--gold); color: var(--white); transform: translateY(-1px); }
.btn-prog-pdf i:first-child { font-size: 1.15rem; color: #f87171; }
.btn-prog-pdf-dl {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(26,46,77,.07); color: var(--navy);
    border-radius: .5rem; padding: .55rem .75rem;
    text-decoration: none; font-size: 1rem;
    transition: background .18s;
    flex-shrink: 0;
}
.btn-prog-pdf-dl:hover { background: var(--navy); color: var(--white); }

/* Carousel wrapper — orientation-aware */
.prog-carousel-wrapper {
    border-radius: .6rem;
    overflow: hidden;
    position: relative;
    background: #000;
    margin-top: .25rem;
}
.prog-carousel-wrapper--paisagem .carousel-inner { aspect-ratio: 16/9; }
.prog-carousel-wrapper--retrato  .carousel-inner { aspect-ratio: 3/4; max-width: 480px; margin: 0 auto; }

.prog-carousel-wrapper .carousel-item { height: 100%; }
.prog-carousel-wrapper .carousel-inner { height: 100%; }
.prog-carousel-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #1a1a1a;
}
.prog-carousel-wrapper--paisagem img { object-fit: cover; }
.prog-carousel-wrapper--retrato  img { object-fit: contain; }

/* Slide counter */
.prog-carousel-counter {
    position: absolute;
    bottom: 12px; right: 14px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    font-weight: 600;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 640px) {
    .prog-list-header { padding: .85rem 1rem; gap: .6rem; }
    .prog-list-body   { padding: 1rem; }
    .prog-list-title  { font-size: .9rem; }
    .prog-tag         { display: none; }
    .prog-pdf-bar     { flex-wrap: wrap; }
    .btn-prog-pdf     { font-size: .82rem; padding: .5rem 1rem; }
    .prog-carousel-wrapper--retrato .carousel-inner { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   31. SCROLL-TO-TOP BUTTON
   ══════════════════════════════════════════════════════════ */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 990;
    width: 46px;
    height: 46px;
    background: var(--navy);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(20,30,51,.32);
    opacity: 0;
    transform: translateY(16px) scale(.85);
    transition: opacity .3s var(--t), transform .3s var(--t),
                background .2s var(--t), border-color .2s var(--t);
    pointer-events: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: var(--gold);
    border-color: var(--gold-2);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 24px rgba(176,136,38,.4);
}

.scroll-top-btn:active {
    transform: translateY(0) scale(.97);
}

/* ══════════════════════════════════════════════════════════
   32. FOCUS RINGS — Acessibilidade
   ══════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2.5px solid var(--gold);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

a:focus-visible,
button:focus-visible {
    outline: 2.5px solid var(--gold);
    outline-offset: 3px;
}

.btn:focus-visible {
    outline: 2.5px solid var(--gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(176,136,38,.2);
}

/* ══════════════════════════════════════════════════════════
   33. SELEÇÃO DE TEXTO
   ══════════════════════════════════════════════════════════ */
::selection {
    background: rgba(176,136,38,.2);
    color: var(--navy);
}

/* ══════════════════════════════════════════════════════════
   34. SCROLLBAR CUSTOMIZADA (WebKit)
   ══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    border: 1px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

.anais-sidebar::-webkit-scrollbar { width: 4px; }

/* ══════════════════════════════════════════════════════════
   35. NAVBAR MOBILE — fix de visibilidade
   ══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    /* Menu expandido sobre fundo escuro (navbar transparente) */
    .fave-navbar .navbar-collapse {
        background: rgba(13,21,38,.97);
        backdrop-filter: blur(16px);
        border-radius: var(--r);
        margin-top: .6rem;
        padding: .5rem .75rem .75rem;
        border: 1px solid rgba(255,255,255,.08);
        box-shadow: var(--shadow-md);
    }

    /* Menu expandido sobre fundo branco (navbar scrolled) */
    .fave-navbar.scrolled .navbar-collapse {
        background: var(--white);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .fave-navbar.scrolled .navbar-collapse .nav-link {
        color: var(--muted) !important;
    }

    .fave-navbar.scrolled .navbar-collapse .nav-link:hover {
        color: var(--navy) !important;
        background: var(--bg);
    }

    .fave-navbar.scrolled .navbar-collapse .nav-link.active {
        color: var(--gold) !important;
        background: var(--gold-pale);
    }

    /* Links no menu mobile expandido (sem scroll) */
    .fave-navbar:not(.scrolled) .navbar-collapse .nav-link {
        color: rgba(255,255,255,.85) !important;
    }

    .fave-navbar:not(.scrolled) .navbar-collapse .nav-link:hover {
        color: var(--white) !important;
        background: rgba(255,255,255,.1);
    }

    .fave-navbar:not(.scrolled) .navbar-collapse .nav-link.active {
        color: var(--gold-light) !important;
        background: rgba(255,255,255,.08);
    }

    /* Toggler no estado scrolled */
    .fave-navbar.scrolled .navbar-toggler {
        border-color: var(--border);
    }
}

/* ══════════════════════════════════════════════════════════
   36. BOTÕES — micro-animação de hover
   ══════════════════════════════════════════════════════════ */
.btn-gold:hover,
.btn-navy:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-gold:active,
.btn-navy:active {
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   37. CARDS — hover refinado
   ══════════════════════════════════════════════════════════ */
.action-card:hover {
    border-color: rgba(0,0,0,.1);
    box-shadow: 0 8px 32px rgba(20,30,51,.1);
    transform: translateY(-4px);
}

.trabalho-card:hover {
    box-shadow: 0 6px 24px rgba(20,30,51,.1);
    border-color: var(--gold);
}

/* ══════════════════════════════════════════════════════════
   38. NAVBAR — indicador ativo refinado
   ══════════════════════════════════════════════════════════ */
.fave-navbar.scrolled .nav-link.active {
    position: relative;
}

.fave-navbar.scrolled .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 99px;
    opacity: .7;
}

/* ══════════════════════════════════════════════════════════
   39. FOOTER TAGLINE + SUB — levemente mais visível
   ══════════════════════════════════════════════════════════ */
.footer-tagline { color: rgba(255,255,255,.55); }
.footer-sub     { color: rgba(255,255,255,.35); }
.footer-bottom  { color: rgba(255,255,255,.35); }

/* ══════════════════════════════════════════════════════════
   40. TRANSITIONS & LOADING STATE
   ══════════════════════════════════════════════════════════ */

/* Previne flash de conteúdo sem transição */
.fave-navbar { will-change: background, box-shadow; }
.scroll-top-btn { will-change: opacity, transform; }

/* Imagens com fade-in suave ao carregar */
img {
    transition: opacity .3s ease;
    max-width: 100%;   /* garante que imagens nunca causem overflow horizontal */
    height: auto;
}
img[loading="lazy"] {
    opacity: 0;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   41. MOBILE — correções de responsividade
   ══════════════════════════════════════════════════════════ */

/* Largura dos containers */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl { max-width: 90vw !important; }

/* Navbar mais estreita */
.fave-navbar .container { max-width: 70vw !important; }

/* Touch targets mínimos de 44×44 px (WCAG 2.5.5) */
.btn, .nav-link, .footer-links a,
.btn-navy-outline, .btn-gold, .btn-outline-light {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Section badge — aumentado para leitura em mobile */
.section-badge { font-size: .72rem; }

/* ── 576px — telefones em modo retrato ──────────────────── */
@media (max-width: 576px) {

    /* Hero */
    .hero-section { padding: 70px 0 50px; }
    .hero-logo    { max-height: 130px; }
    .hero-eyebrow { font-size: .72rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-dates   { font-size: .85rem; }

    .countdown-wrap { padding: .75rem .5rem; }
    .count-num      { font-size: 1.75rem; }
    .count-label    { font-size: .6rem; }
    .countdown-sep  { display: none; }
    .countdown-caption { font-size: .78rem; }

    /* Seções */
    .section-title  { font-size: 1.5rem; }
    .section-subtitle { font-size: .9rem; }

    /* Botões hero empilhados */
    .hero-cta { gap: .75rem; }
    .hero-cta .btn { width: 100%; max-width: 320px; }

    /* Cards de ação (home) */
    .action-card { padding: 1.5rem 1.25rem; }

    /* Stats */
    .stat-value { font-size: 1.6rem; }
    .stat-label { font-size: .72rem; }

    /* Seção anterior (home) */
    .previous-card { margin-top: 1.5rem; }

    /* Footer */
    .footer-univertix-logo { max-height: 40px; }
    .fave-footer .row > [class*="col-"] { text-align: center; }
    .fave-footer .col-lg-2,
    .fave-footer .col-lg-3 { text-align: left; }

    /* Scroll top */
    .scroll-top-btn { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }

    /* Lideranças */
    .leader-avatar { width: 80px; height: 80px; font-size: 1.4rem; }
}

/* ── 480px — telefones pequenos ─────────────────────────── */
@media (max-width: 480px) {

    /* Reduz padding das seções */
    .section-light,
    .section-navy,
    .section-bg,
    .section-gradient { padding: 40px 0; }

    /* Anais */
    .anais-section { padding: 1.5rem .85rem; }
    .capa-banner   { padding: 1.25rem .85rem; }

    /* Pesquisa */
    .pesquisa-wrap { padding: 1.25rem .85rem 1.5rem; }

    /* Paginação */
    .pagination-wrap { gap: .3rem; }
    .page-btn { min-width: 36px; height: 36px; font-size: .8rem; }

    /* Eyebrow lines — ocultar em tela muito pequena */
    .eyebrow-line { display: none; }

    /* Badges de seção */
    .section-badge { padding: .3rem .85rem; font-size: .68rem; }
}

/* ── 380px — telefones muito pequenos ───────────────────── */
@media (max-width: 380px) {
    html { font-size: 15px; }   /* reduz base levemente para caber conteúdo */

    .hero-logo  { max-height: 100px; }
    .count-num  { font-size: 1.5rem; }
    .hero-cta .btn { padding: .6rem 1rem; font-size: .82rem; }

    /* Navbar brand */
    .brand-label { font-size: .85rem; }
}
