/* ──────────────────────────────────────────
   SPINNER LOADING - WIDGET EVENTOS
   ────────────────────────────────────────── */
.muhatu-events-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    text-align: center;
}

.muhatu-events-loading p {
    font-size: 13px;
    color: #718096;
    margin: 12px 0 0 0;
}

/* O anel do spinner */
.muhatu-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #c5a880;
    /* Usa a cor Gold do teu tema */
    border-radius: 50%;
    animation: muhatuSpin 0.8s linear infinite;
}

@keyframes muhatuSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ══════════════════════════════════════════════════════
     DROPDOWN DE UTILIZADOR AUTENTICADO — Header público
  ══════════════════════════════════════════════════════ */

/* Contentor relativo que substitui .hdr-cta-login quando há sessão */
.hdr-user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Botão disparador — pill verde com avatar inicial + nome + seta */
.hdr-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .2s, box-shadow .2s, transform .2s;
    box-shadow: 0 3px 10px rgba(51, 95, 70, .3);
    font-family: inherit;
}

.hdr-user-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(51, 95, 70, .4);
}

/* Avatar circular com iniciais */
.hdr-user-initials {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    flex-shrink: 0;
}

/* Seta (caret) */
.hdr-user-caret {
    font-size: 10px;
    opacity: .8;
    transition: transform .2s;
}

.hdr-user-btn[aria-expanded="true"] .hdr-user-caret {
    transform: rotate(180deg);
}

/* Menu suspenso */
.hdr-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .06);
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 500;
    overflow: hidden;
}

.hdr-user-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Cabeçalho verde do menu */
.hdr-user-menu-head {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    padding: 16px;
    color: #fff;
}

.hdr-user-menu-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hdr-user-menu-email {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.hdr-user-menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(241, 179, 28, .25);
    color: var(--gold);
    border: 1px solid rgba(241, 179, 28, .35);
    border-radius: 50px;
    padding: 2px 8px;
    letter-spacing: .3px;
}

/* Itens do menu */
.hdr-user-menu-items {
    padding: 6px;
}

.hdr-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.hdr-user-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.hdr-user-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--green);
    font-size: 13px;
    flex-shrink: 0;
}

.hdr-user-menu-item.danger {
    color: #dc2626;
}

.hdr-user-menu-item.danger i {
    color: #dc2626;
}

.hdr-user-menu-item.danger:hover {
    background: #fef2f2;
}

.hdr-user-menu-sep {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

/* Ocultar .hdr-cta-login quando utilizador está autenticado */
body.session-active .hdr-cta-login {
    display: none !important;
}

/* ══════════════════════════════════════════════════
     NOTICIAS PAGE — ESTILOS COMPLETOS
  ══════════════════════════════════════════════════ */

/* ── Hero ── */
.hero-noticias {
    background: var(--green);
    position: relative;
    overflow: hidden;
    padding: 160px 0 0;
    /* topbar(36) + header(72) + respiro(52) */
}

.hero-noticias::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/bg-banner.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .07;
    pointer-events: none;
}

.hero-noticias::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 179, 28, .12) 0%, transparent 70%);
    pointer-events: none;
}

/* Breadcrumb no hero */
.hero-noticias-breadcrumb {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.hero-noticias-breadcrumb .container {
    display: flex;
    align-items: center;
    height: 42px;
}

.hero-noticias-breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}

.hero-noticias-breadcrumb a {
    color: rgba(255, 255, 255, .7);
    transition: color .18s;
}

.hero-noticias-breadcrumb a:hover {
    color: var(--gold);
}

.hero-noticias-breadcrumb .sep {
    opacity: .35;
}

/* Conteúdo do hero */
.hero-noticias-inner {
    position: relative;
    z-index: 1;
    padding: 48px var(--gutter) 52px;
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-noticias-text .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(241, 179, 28, .15);
    border: 1px solid rgba(241, 179, 28, .3);
    color: var(--gold);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-noticias-text h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-noticias-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, .7);
    max-width: 480px;
    line-height: 1.7;
}

/* Stats no hero */
.hero-noticias-stats {
    display: flex;
    gap: 36px;
    flex-shrink: 0;
}

.hns-item {
    text-align: center;
}

.hns-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    display: block;
}

.hns-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-top: 4px;
    display: block;
}

/* Wave divider */
.hero-noticias-wave {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 0;
    position: relative;
    z-index: 2;
    background: var(--bg-light);
    margin-top: -2px;
}

.hero-noticias-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ══ SECÇÃO PRINCIPAL ══ */
.noticias-section {
    padding: 56px 0 100px;
    background: var(--bg-light);
}

/* Layout 2 colunas */
.noticias-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ── Toolbar (pesquisa + filtros + contador) ── */
.noticias-toolbar {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 18px 22px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.toolbar-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Campo pesquisa */
.news-search-field {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color .2s, box-shadow .2s;
}

.news-search-field:focus-within {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(161, 125, 36, .1);
    background: #fff;
}

.news-search-field i {
    color: var(--text-light);
    font-size: 13px;
    flex-shrink: 0;
}

.news-search-field input {
    border: none;
    outline: none;
    background: none;
    font-size: 13.5px;
    color: var(--text-dark);
    width: 100%;
    font-family: var(--font-primary);
}

.news-search-field input::placeholder {
    color: var(--text-light);
}

.news-search-clear {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 12px;
    padding: 2px;
    border-radius: 50%;
    display: none;
    transition: color .18s;
    flex-shrink: 0;
}

.news-search-clear:hover {
    color: var(--text-dark);
}

.news-search-clear.visible {
    display: flex;
}

/* Select ordenação */
.news-sort-select {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.news-sort-select label {
    font-weight: 600;
    white-space: nowrap;
}

.news-sort-select select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 28px 8px 11px;
    font-size: 12.5px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--bg-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color .18s;
}

.news-sort-select select:focus {
    border-color: var(--gold-dark);
}

/* Toolbar bottom: filtros + contador */
.toolbar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Chips de filtro */
.news-filter-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
}

.news-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-mid);
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}

.news-chip:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

.news-chip.active {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
}

.news-chip .chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
    flex-shrink: 0;
}

/* Contador de resultados */
.news-results-count {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.news-results-count strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ── GRID DE ARTIGOS ── */
.news-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Estado vazio */
.news-empty {
    display: none;
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.news-empty.visible {
    display: block;
}

.news-empty i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}

.news-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.news-empty p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── CARD DESTAQUE (featured) ── */
.ncard-featured {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    cursor: pointer;
    position: relative;
}

.ncard-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(161, 125, 36, .25);
}

.ncard-featured .ncard-img {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.ncard-featured .ncard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
    display: block;
}

.ncard-featured:hover .ncard-img img {
    transform: scale(1.06);
}

.ncard-featured .ncard-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(51, 95, 70, .35) 0%, transparent 60%);
    pointer-events: none;
}

/* Badge "Destaque" sobre a imagem */
.ncard-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: #5a3a00;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(161, 125, 36, .3);
    z-index: 2;
}

.ncard-featured .ncard-body {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── CARD NORMAL ── */
.ncard {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 220px 1fr;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    cursor: pointer;
    position: relative;
}

.ncard:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(161, 125, 36, .2);
}

.ncard .ncard-img {
    overflow: hidden;
    position: relative;
}

.ncard .ncard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
    display: block;
}

.ncard:hover .ncard-img img {
    transform: scale(1.08);
}

.ncard .ncard-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}

/* ── Partes comuns do card body ── */
.ncard-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Tag de categoria */
.ncard-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ncard-cat.cat-actualidade {
    background: rgba(161, 125, 36, .12);
    color: var(--gold-dark);
}

.ncard-cat.cat-eventos {
    background: rgba(51, 95, 70, .12);
    color: var(--green);
}

.ncard-cat.cat-formacao {
    background: rgba(99, 102, 241, .12);
    color: #4338ca;
}

.ncard-cat.cat-parcerias {
    background: rgba(59, 130, 246, .12);
    color: #1d4ed8;
}

/* Data */
.ncard-date {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ncard-date i {
    color: var(--gold-dark);
    font-size: 10px;
}

/* Tempo de leitura */
.ncard-read-time {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* Título */
.ncard-titulo {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -.2px;
    transition: color .18s;
}

.ncard-link {
    color: var(--text-dark);
}

.ncard:hover .ncard-titulo,
.ncard-featured:hover .ncard-titulo,
.ncard:hover .ncard-link,
.ncard-featured:hover .ncard-link {
    color: var(--gold-dark);
}

.ncard .ncard-titulo {
    font-size: 15px;
}

/* Resumo */
.ncard-resumo {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.ncard .ncard-resumo {
    font-size: 13px;
    -webkit-line-clamp: 2;
    margin-bottom: 14px;
}

/* Rodapé do card: autor + botão */
.ncard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

/* Autor */
.ncard-autor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ncard-autor-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.ncard-autor-nome {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
}

/* Botão Ler Mais */
.btn-ler-mais-v2 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-mid);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    font-family: var(--font-primary);
    flex-shrink: 0;
}

.btn-ler-mais-v2:hover,
.ncard:hover .btn-ler-mais-v2,
.ncard-featured:hover .btn-ler-mais-v2 {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
}

.btn-ler-mais-v2 i {
    transition: transform .2s ease;
}

.btn-ler-mais-v2:hover i {
    transform: translateX(3px);
}

/* Separador de data entre grupos (se implementado) */
.news-group-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Botão "Carregar mais" */
.news-load-more {
    text-align: center;
    margin-top: 12px;
    padding-top: 8px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 32px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-mid);
    cursor: pointer;
    transition: all .2s ease;
    font-family: var(--font-primary);
}

.btn-load-more:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    background: rgba(161, 125, 36, .04);
}

.btn-load-more.loading i {
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ══ SIDEBAR ══ */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 130px;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title i {
    color: var(--gold-dark);
    font-size: 13px;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--grad-gold);
    border-radius: 2px;
}

/* Search widget */
.sidebar-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search-input {
    width: 100%;
    padding: 10px 42px 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    background: var(--bg-light);
}

.sidebar-search-input:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(161, 125, 36, .1);
    background: #fff;
}

.sidebar-search-btn {
    position: absolute;
    right: 6px;
    width: 30px;
    height: 30px;
    background: var(--grad-gold);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: opacity .18s;
}

.sidebar-search-btn:hover {
    opacity: .85;
}

/* Eventos widget */
.evento-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .18s;
}

.evento-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.evento-item:first-child {
    padding-top: 0;
}

.evento-data {
    flex-shrink: 0;
    width: 46px;
    height: 50px;
    background: var(--grad-gold);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.evento-data .dia {
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.evento-data .mes {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.evento-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 5px;
}

.evento-info .ev-local {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.evento-info .ev-local i {
    color: var(--gold-dark);
    font-size: 10px;
}

.evento-info .ev-tipo {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 5px;
    background: rgba(51, 95, 70, .1);
    color: var(--green);
}

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-cloud-item {
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-mid);
    border: 1px solid var(--border);
    transition: all .18s;
    cursor: pointer;
}

.tag-cloud-item:hover {
    background: var(--gold-dark);
    color: #fff;
    border-color: var(--gold-dark);
}

.tag-cloud-item.active {
    background: var(--gold-dark);
    color: #fff;
    border-color: var(--gold-dark);
}

/* Artigo popular widget */
.popular-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: opacity .18s;
}

.popular-item:hover {
    opacity: .8;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item:first-child {
    padding-top: 0;
}

.popular-rank {
    font-size: 22px;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    margin-top: 2px;
}

.popular-info h5 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 4px;
}

.popular-info span {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CTA Widget */
.sidebar-cta-widget {
    background: var(--green);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.sidebar-cta-widget::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(241, 179, 28, .1);
    pointer-events: none;
}

.sidebar-cta-widget h3 {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
}

.sidebar-cta-widget p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.65;
    margin-bottom: 18px;
    position: relative;
}

.sidebar-cta-widget .btn-gold {
    width: 100%;
    justify-content: center;
    position: relative;
}

/* ══════════════════════════════════════════════════
     MODAL "LER MAIS" — ARTIGO COMPLETO (v3)
  ══════════════════════════════════════════════════ */
.artigo-single-page {
    padding: 55px 0px 100px;
}

.artigo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 8, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 80px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.artigo-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Setas de navegação laterais ── */
.artigo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    cursor: pointer;
    transition: all .22s ease;
    z-index: 10;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}

.artigo-arrow:hover:not(:disabled) {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(161, 125, 36, .4);
}

.artigo-arrow:disabled {
    opacity: .18;
    cursor: default;
    pointer-events: none;
}

.artigo-arrow-left {
    left: 18px;
}

.artigo-arrow-right {
    right: 18px;
}

/* ── Modal container ── */
.artigo-modal {
    background: #fff;
    border-radius: 22px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    transform: translateY(40px) scale(.95);
    transition: transform .36s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .05);
}

.artigo-modal-overlay.open .artigo-modal {
    transform: translateY(0) scale(1);
}

/* ── Reading progress bar ── */
.artigo-reading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-gold);
    z-index: 40;
    border-radius: 0 3px 0 0;
    transition: width .1s linear;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(241, 179, 28, .6);
}

/* ── Header com imagem ── */
.artigo-modal-header {
    position: relative;
    height: 512px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--green-dark);
}

.artigo-modal-header-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .5;
    transform: scale(1.04);
    transition: opacity .4s ease, transform 8s ease;
}

.artigo-modal-overlay.open .artigo-modal-header-img {
    opacity: .55;
    transform: scale(1);
}

.artigo-modal-header-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 30, 20, .2) 0%,
            rgba(15, 30, 20, .55) 40%,
            rgba(15, 30, 20, .96) 100%);
}

/* ── Botão fechar ── */
.artigo-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    cursor: pointer;
    transition: all .22s ease;
    backdrop-filter: blur(4px);
}

.artigo-close-btn:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    transform: rotate(90deg) scale(1.08);
}

/* ── Conteúdo header ── */
.artigo-modal-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 36px;
    z-index: 2;
    will-change: opacity, transform;
}

.artigo-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.artigo-modal-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Variantes de cor por categoria */
.artigo-modal-cat.cat-actualidade {
    background: var(--gold);
    color: #5a3a00;
}

.artigo-modal-cat.cat-eventos {
    background: #22c55e;
    color: #14532d;
}

.artigo-modal-cat.cat-formacao {
    background: #818cf8;
    color: #1e1b4b;
}

.artigo-modal-cat.cat-parcerias {
    background: #38bdf8;
    color: #0c4a6e;
}

.artigo-modal-date {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    display: flex;
    align-items: center;
    gap: 5px;
}

.artigo-modal-read-time {
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.artigo-modal-titulo {
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.4px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

/* ── Tab bar dentro do modal ── */
.artigo-modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
    padding: 0 36px;
    gap: 0;
}

.artigo-modal-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    border: none;
    border-bottom: 2.5px solid transparent;
    background: none;
    cursor: pointer;
    transition: color .18s, border-color .18s;
    font-family: var(--font-primary);
    position: relative;
    white-space: nowrap;
}

.artigo-modal-tab-btn i {
    font-size: 12px;
}

.artigo-modal-tab-btn .tab-badge {
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
    transition: all .18s;
}

.artigo-modal-tab-btn:hover {
    color: var(--text-dark);
}

.artigo-modal-tab-btn.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-dark);
}

.artigo-modal-tab-btn.active .tab-badge {
    background: rgba(161, 125, 36, .12);
    color: var(--gold-dark);
    border-color: rgba(161, 125, 36, .25);
}

/* ── Painéis de tab ── */
.artigo-tab-panel {
    display: none;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    will-change: opacity, transform;
}

.artigo-tab-panel::-webkit-scrollbar {
    width: 5px;
}

.artigo-tab-panel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.artigo-tab-panel.active {
    display: block;
}

/* Tab Artigo */
.artigo-tab-content {
    padding: 32px 36px 28px;
}

/* ── Autor + partilha ── */
.artigo-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.artigo-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artigo-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(161, 125, 36, .25);
}

.artigo-author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.artigo-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.artigo-author-nome {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.artigo-author-role {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ── Partilha ── */
.artigo-share {
    display: flex;
    gap: 7px;
    align-items: center;
}

.artigo-share-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    margin-right: 2px;
}

.artigo-share a,
.artigo-share button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
    font-size: 12px;
    transition: all .18s ease;
    text-decoration: none;
    background: #fff;
    cursor: pointer;
    font-family: var(--font-primary);
}

.artigo-share a:hover,
.artigo-share button:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(161, 125, 36, .25);
}

.artigo-share a.share-fb:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.artigo-share a.share-li:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.artigo-share a.share-wa:hover {
    background: #25d366;
    border-color: #25d366;
}

/* ── Conteúdo do artigo ── */
.artigo-content {
    font-size: 15.5px;
    color: #4a5568;
    line-height: 1.9;
}

.artigo-content p {
    margin-bottom: 20px;
}

.artigo-content p:last-child {
    margin-bottom: 0;
}

.artigo-content strong {
    color: var(--text-dark);
    font-weight: 700;
}

.artigo-content h3 {
    font-size: 17.5px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 32px 0 14px;
    letter-spacing: -.25px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.artigo-content h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--gold);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

.artigo-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 22px;
    background: linear-gradient(135deg, rgba(161, 125, 36, .05) 0%, rgba(241, 179, 28, .04) 100%);
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.75;
    position: relative;
}

.artigo-content blockquote::before {
    content: '\201C';
    font-size: 48px;
    color: var(--gold);
    opacity: .25;
    position: absolute;
    top: -8px;
    left: 14px;
    line-height: 1;
    font-family: Georgia, serif;
}

.artigo-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.artigo-content ul li {
    padding: 11px 16px 11px 44px;
    position: relative;
    font-size: 14.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.artigo-content ul li:hover {
    background: rgba(161, 125, 36, .04);
}

.artigo-content ul li:last-child {
    border-bottom: none;
}

.artigo-content ul li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

/* ── Tags do artigo ── */
.artigo-tags-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.artigo-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.artigo-tag-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.artigo-tag {
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    transition: all .18s;
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.artigo-tag::before {
    content: '#';
    opacity: .45;
    font-size: 10px;
}

.artigo-tag:hover {
    background: var(--gold-dark);
    color: #fff;
    border-color: var(--gold-dark);
    box-shadow: 0 2px 8px rgba(161, 125, 36, .2);
}

.artigo-tag:hover::before {
    opacity: .6;
}

/* ══ TAB: COMENTÁRIOS ══ */
.comentarios-panel {
    padding: 28px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cabeçalho da secção de comentários */
.comentarios-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.comentarios-titulo {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comentarios-titulo i {
    color: var(--gold-dark);
    font-size: 14px;
}

.comentarios-count-badge {
    background: rgba(161, 125, 36, .12);
    color: var(--gold-dark);
    border: 1px solid rgba(161, 125, 36, .25);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 10px;
}

.comentarios-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.comentarios-sort select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 5px 26px 5px 10px;
    font-size: 11.5px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--bg-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.comentarios-sort select:focus {
    border-color: var(--gold-dark);
}

/* Formulário de novo comentário */
.comentario-form-wrap {
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    transition: border-color .2s, box-shadow .2s;
}

.comentario-form-wrap:focus-within {
    border-color: rgba(161, 125, 36, .4);
    box-shadow: 0 0 0 3px rgba(161, 125, 36, .08);
}

.comentario-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cf-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    flex-shrink: 0;
}

.cf-nome-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.cf-nome-input:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(161, 125, 36, .1);
}

.cf-nome-input::placeholder {
    color: var(--text-light);
}

.cf-textarea {
    width: 100%;
    min-height: 96px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: #fff;
    outline: none;
    resize: vertical;
    line-height: 1.6;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
}

.cf-textarea:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(161, 125, 36, .1);
}

.cf-textarea::placeholder {
    color: var(--text-light);
}

.cf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 10px;
    flex-wrap: wrap;
}

.cf-char-count {
    font-size: 11px;
    color: var(--text-light);
    transition: color .18s;
}

.cf-char-count.warn {
    color: #f59e0b;
}

.cf-char-count.over {
    color: #ef4444;
}

.cf-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--gold-dark);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all .2s ease;
    flex-shrink: 0;
}

.cf-submit-btn:hover:not(:disabled) {
    background: var(--gold);
    color: #5a3a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(161, 125, 36, .3);
}

.cf-submit-btn:disabled {
    opacity: .45;
    cursor: default;
}

.cf-submit-btn.loading i {
    animation: cfSpin .7s linear infinite;
}

@keyframes cfSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensagem de sucesso/erro */
.cf-feedback {
    display: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cf-feedback.show {
    display: flex;
}

.cf-feedback.success {
    background: rgba(34, 197, 94, .1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, .2);
}

.cf-feedback.error {
    background: rgba(239, 68, 68, .08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, .18);
}

/* Lista de comentários */
.comentarios-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Item de comentário */
.comentario-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    animation: comentarioIn .35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.comentario-item:first-child {
    padding-top: 4px;
}

.comentario-item:last-child {
    border-bottom: none;
}

@keyframes comentarioIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comentario-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Cores de avatar geradas por índice */
.ca-0 {
    background: linear-gradient(135deg, #335f46, #264a37);
}

.ca-1 {
    background: linear-gradient(135deg, #a17d24, #c5910b);
}

.ca-2 {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.ca-3 {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.ca-4 {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.ca-5 {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.ca-6 {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.ca-7 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.comentario-body {
    flex: 1;
    min-width: 0;
}

.comentario-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}

.comentario-nome {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.comentario-data {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.comentario-novo-badge {
    background: rgba(34, 197, 94, .12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, .2);
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 7px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.comentario-texto {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
    word-break: break-word;
}

.comentario-acoes {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comentario-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all .18s;
    font-family: var(--font-primary);
}

.comentario-like-btn:hover {
    background: rgba(161, 125, 36, .08);
    color: var(--gold-dark);
}

.comentario-like-btn.liked {
    color: var(--gold-dark);
}

.comentario-like-btn.liked i {
    font-weight: 900;
}

.comentario-like-btn i {
    font-size: 12px;
}

.comentario-responder-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all .18s;
    font-family: var(--font-primary);
}

.comentario-responder-btn:hover {
    background: rgba(51, 95, 70, .08);
    color: var(--green);
}

/* Formulário de resposta inline */
.comentario-reply-form {
    display: none;
    margin-top: 12px;
    padding: 14px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: 12px;
}

.comentario-reply-form.open {
    display: block;
}

.comentario-reply-form textarea {
    width: 100%;
    min-height: 72px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: #fff;
    outline: none;
    resize: none;
    line-height: 1.55;
    transition: border-color .18s;
    box-sizing: border-box;
}

.comentario-reply-form textarea:focus {
    border-color: var(--gold-dark);
}

.comentario-reply-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.btn-reply-cancel {
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all .15s;
}

.btn-reply-cancel:hover {
    border-color: var(--text-mid);
}

.btn-reply-submit {
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all .18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-reply-submit:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

/* Respostas aninhadas */
.comentario-respostas {
    margin-top: 12px;
    padding-left: 18px;
    border-left: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comentario-resposta {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.comentario-resposta:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comentario-resposta .comentario-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

/* Estado vazio de comentários */
.comentarios-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-light);
}

.comentarios-empty i {
    font-size: 42px;
    display: block;
    margin-bottom: 14px;
    opacity: .4;
}

.comentarios-empty p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Estado de loading */
.comentarios-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-light);
    font-size: 13.5px;
}

.comentarios-loading i {
    animation: cfSpin .8s linear infinite;
    color: var(--gold-dark);
}

/* ── Footer do modal ── */
.artigo-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 36px;
    background: #fafafa;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.artigo-footer-counter {
    font-size: 12px;
    color: var(--text-muted);
}

.artigo-footer-counter strong {
    color: var(--text-dark);
    font-weight: 700;
}

.artigo-footer-nav {
    display: flex;
    gap: 8px;
}

.artigo-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-mid);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    font-family: var(--font-primary);
}

.artigo-nav-btn:hover:not(:disabled) {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    background: rgba(161, 125, 36, .04);
}

.artigo-nav-btn:disabled {
    opacity: .28;
    cursor: default;
}

/* Dots de navegação */
.artigo-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.artigo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all .22s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.artigo-dot.active {
    background: var(--gold-dark);
    width: 20px;
    border-radius: 3px;
}

/* Animação de entrada dos cards */
@keyframes ncardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ncard,
.ncard-featured {
    animation: ncardIn .45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ══ READING PROGRESS BAR ══ */
.artigo-reading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-gold);
    z-index: 40;
    border-radius: 0 3px 0 0;
    transition: width .12s linear;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(241, 179, 28, .5);
}

/* ══ CARD IMAGE FALLBACK ══ */
.ncard-img-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, .5);
    font-size: 32px;
}

.ncard-img-fallback span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .6;
}

/* ══ CHIP COUNT BADGE ══ */
.chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(255, 255, 255, .25);
    color: inherit;
    line-height: 1;
}

.news-chip:not(.active) .chip-count {
    background: var(--bg-light);
    color: var(--text-muted);
}

/* ══ SEPARADOR ENTRE FEATURED E LISTA ══ */
.news-group-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 8px;
}

.news-group-sep span {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .8px;
    white-space: nowrap;
}

.news-group-sep::before,
.news-group-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ══ HERO STAT COUNTER ANIMATION ══ */
.hns-num {
    transition: opacity .3s ease;
}

.hns-num.counting {
    opacity: .6;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
    .noticias-layout {
        grid-template-columns: 1fr 280px;
        gap: 28px;
    }
}

@media (max-width: 860px) {
    .noticias-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }

    .ncard-featured {
        grid-template-columns: 1fr;
    }

    .ncard-featured .ncard-img {
        min-height: 220px;
    }

    .artigo-arrow {
        display: none;
    }

    .artigo-modal-overlay {
        padding: 12px;
    }

    .artigo-modal-footer {
        padding: 12px 22px;
    }

    .artigo-modal-header-content {
        padding: 18px 22px;
    }

    .artigo-tab-content {
        padding: 22px 22px 20px;
    }

    .comentarios-panel {
        padding: 20px 22px 24px;
    }

    .artigo-modal-tabs {
        padding: 0 22px;
    }

    .artigo-author-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .artigo-modal-header {
        height: 200px;
    }
}

@media (max-width: 900px) {
    .hero-noticias {
        padding: 108px 0 0;
    }

    /* header(64) + respiro(44) */
}

@media (max-width: 600px) {
    .hero-noticias {
        padding: 96px 0 0;
    }

    /* header(64) + respiro(32) */
    .ncard {
        grid-template-columns: 1fr;
    }

    .ncard .ncard-img {
        height: 180px;
    }

    .hero-noticias-stats {
        display: none;
    }

    .hero-noticias-inner {
        padding: 32px var(--gutter) 40px;
    }

    .toolbar-top {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search-field {
        max-width: 100%;
    }

    .news-sort-select {
        justify-content: space-between;
    }

    .ncard-featured .ncard-body {
        padding: 22px 20px;
    }

    .artigo-modal-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .artigo-footer-nav {
        width: 100%;
        justify-content: space-between;
    }

    .artigo-modal-tab-btn {
        padding: 12px 12px;
        font-size: 12px;
    }

    .artigo-share {
        flex-wrap: wrap;
    }

    .comentarios-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.artigo-single-page {
    top: 36px;
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
}

.site-main {
    padding: 96px 0 100px;
    background: #fff;
}

/* ═══════════════════════════════════════════════
     HERO DA DENÚNCIA
  ═══════════════════════════════════════════════ */
.den-hero {
    background: linear-gradient(150deg, #1a3a28 0%, var(--green-dark) 50%, #1e2d26 100%);
    position: relative;
    overflow: hidden;
    padding: 168px 0 96px;
    /* topbar(36) + header(72) + respiro(60) */
}

/* Padrão de pontos de fundo */
.den-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(241, 179, 28, .06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Arco dourado decorativo direita */
.den-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 80px solid rgba(241, 179, 28, .06);
    pointer-events: none;
}

/* Decoração geométrica superior esquerda */
.den-hero-deco {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 50px solid rgba(255, 255, 255, .035);
    pointer-events: none;
}

/* Linha dourada de destaque lateral */
.den-hero-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: .6;
}

.den-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
}

/* Breadcrumb */
.den-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 18px;
}

.den-breadcrumb a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .2s;
}

.den-breadcrumb a:hover {
    color: var(--gold);
}

.den-breadcrumb i {
    font-size: 9px;
}

/* Badge */
.den-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.den-hero-badge .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .5);
    animation: pulse-red 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, .5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Trust badges no hero */
.den-hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.den-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
}

.den-trust-item i {
    font-size: 13px;
    color: var(--gold);
    opacity: .85;
}

.den-trust-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .15);
}

.den-hero h1 {
    font-size: clamp(30px, 4.5vw, 50px);
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 16px;
    letter-spacing: -.8px;
}

.den-hero h1 span {
    color: var(--gold);
    position: relative;
}

/* Sublinhado dourado animado no texto highlight */
.den-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    opacity: .45;
}

.den-hero p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.7;
    max-width: 520px;
}

/* Painel decorativo à direita — escudo + stats */
.den-hero-shield {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.den-hero-shield-icon {
    width: 136px;
    height: 136px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform .4s ease;
}

.den-hero-shield-icon:hover {
    transform: translateY(-4px);
}

.den-hero-shield-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(241, 179, 28, .12), transparent 70%);
}

.den-hero-shield-icon i {
    font-size: 60px;
    color: rgba(241, 179, 28, .85);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 16px rgba(241, 179, 28, .3));
}

/* Mini stats abaixo do escudo */
.den-hero-mini-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 136px;
}

.den-hero-mini-stat {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
}

.den-hero-mini-stat strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.den-hero-mini-stat span {
    font-size: 10.5px;
    color: rgba(255, 255, 255, .55);
    font-weight: 500;
}

/* Wave SVG */
.den-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
     GARANTIAS STRIP (abaixo do hero)
  ═══════════════════════════════════════════════ */
.den-garantias-strip {
    background: #fff;
    border-bottom: 2px solid var(--border);
    padding: 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.den-garantias-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.den-garantia-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-right: 1px solid var(--border);
    transition: background .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}

/* Indicador de cor ao hover */
.den-garantia-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.den-garantia-item:hover::before {
    transform: scaleX(1);
}

.den-garantia-item:last-child {
    border-right: none;
}

.den-garantia-item:hover {
    background: rgba(51, 95, 70, .025);
}

.den-garantia-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(51, 95, 70, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: var(--green);
    transition: background .25s, color .25s, transform .25s;
}

.den-garantia-item:hover .den-garantia-icon {
    background: var(--green);
    color: #fff;
    transform: scale(1.08);
}

.den-garantia-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.den-garantia-text span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════
     LAYOUT PRINCIPAL
  ═══════════════════════════════════════════════ */
.den-main {
    padding: 60px 0 80px;
    background: var(--bg-light);
}

.den-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* ═══════════════════════════════════════════════
     FORMULÁRIO — CARD PRINCIPAL
  ═══════════════════════════════════════════════ */
.den-form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .06), 0 0 0 1px var(--border);
    overflow: hidden;
}

/* Header do card com gradiente */
.den-form-header {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    padding: 28px 36px;
    position: relative;
    overflow: hidden;
}

.den-form-header::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 20px solid rgba(241, 179, 28, .12);
    pointer-events: none;
}

.den-form-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.den-form-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(241, 179, 28, .18);
    border: 1px solid rgba(241, 179, 28, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.den-form-header-icon i {
    font-size: 20px;
    color: var(--gold);
}

.den-form-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
}

.den-form-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.4;
}

/* Steps progress dentro do header */
.den-steps {
    display: flex;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.den-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.den-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: all .3s;
    flex-shrink: 0;
}

.den-step-circle.active {
    background: #fff;
    color: var(--green);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.den-step-circle.done {
    background: var(--gold);
    color: #fff;
}

.den-step-circle.pending {
    background: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .55);
}

.den-step-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
}

.den-step-item.active .den-step-label {
    color: #fff;
}

.den-step-item.done .den-step-label {
    color: rgba(255, 255, 255, .85);
}

.den-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, .15);
    margin: 0 10px;
    transition: background .4s;
    border-radius: 1px;
}

.den-step-line.done {
    background: var(--gold);
}

/* Barra de progresso */
.den-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, .12);
    position: relative;
    z-index: 1;
    margin-top: 16px;
    border-radius: 2px;
    overflow: hidden;
}

.den-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), #fde68a);
    transition: width .55s cubic-bezier(.4, 0, .2, 1);
    border-radius: 2px;
    position: relative;
}

/* Shimmer animado na barra */
.den-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    animation: progressShimmer 2.2s infinite;
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(300%);
    }
}

/* Body do form */
.den-form-body {
    padding: 32px 36px 24px;
}

/* Seções do formulário */
.den-step-panel {
    display: none;
    animation: stepFadeIn .22s ease-out;
}

.den-step-panel.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Switch anónimo ── */
.den-anon-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: border-color .25s, background .25s, box-shadow .25s;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.den-anon-switch:hover {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(51, 95, 70, .06);
}

.den-anon-switch.on {
    background: rgba(51, 95, 70, .06);
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(51, 95, 70, .08);
}

.den-anon-switch-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.den-anon-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(51, 95, 70, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--green);
    flex-shrink: 0;
    transition: background .2s;
}

.den-anon-switch.on .den-anon-icon {
    background: var(--green);
    color: #fff;
}

.den-anon-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 2px;
}

.den-anon-sub {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Transição suave do idSection */
#idSection {
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .3s ease;
    max-height: 500px;
    opacity: 1;
}

#idSection.hidden-anim {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

/* Toggle switch visual */
.den-toggle {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #d1d5db;
    position: relative;
    flex-shrink: 0;
    transition: background .25s;
    cursor: pointer;
}

.den-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    transition: transform .25s;
}

.den-toggle.on {
    background: var(--green);
}

.den-toggle.on::after {
    transform: translateX(20px);
}

/* ── Separador de secção ── */
.den-section-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 20px;
}

.den-section-sep-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.den-section-sep-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.den-section-sep-label i {
    color: var(--gold-dark);
    font-size: 11px;
}

/* ── Campos do formulário ── */
.den-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.den-field {
    margin-bottom: 16px;
}

.den-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.den-label .req {
    color: #ef4444;
    margin-left: 2px;
}

.den-label .opt {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 11.5px;
    margin-left: 4px;
}

.den-input,
.den-select,
.den-textarea {
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}

.den-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.den-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.65;
}

.den-input:focus,
.den-select:focus,
.den-textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(51, 95, 70, .1);
}

.den-input.is-invalid,
.den-select.is-invalid,
.den-textarea.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .08);
}

/* Input com ícone */
.den-input-wrap {
    position: relative;
}

.den-input-wrap .den-field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.den-input-wrap .den-input {
    padding-left: 38px;
}

/* Char count */
.den-charcount {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    transition: color .2s;
}

.den-charcount.warn {
    color: #f97316;
}

.den-charcount.over {
    color: #ef4444;
}

/* ── Radio cards (tipo de denúncia) ── */
.den-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.den-type-card {
    position: relative;
    cursor: pointer;
}

.den-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.den-type-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 11px;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
    user-select: none;
    position: relative;
}

.den-type-label:hover {
    border-color: var(--green);
    background: rgba(51, 95, 70, .04);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .07);
}

.den-type-card input:checked+.den-type-label {
    border-color: var(--green);
    background: rgba(51, 95, 70, .07);
    box-shadow: 0 0 0 3px rgba(51, 95, 70, .12), 0 4px 12px rgba(51, 95, 70, .1);
}

/* Checkmark no canto superior direito */
.den-type-label::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #fff;
    transition: all .2s;
    font-size: 0;
}

.den-type-card input:checked+.den-type-label::after {
    background: var(--green);
    border-color: var(--green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 4L11 1' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
}

.den-type-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}

.den-type-card input:checked+.den-type-label .den-type-icon {
    transform: scale(1.05);
}

.den-type-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    padding-right: 18px;
    /* espaço para o checkmark */
}

/* Cores por tipo */
.icon-red {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
}

.icon-orange {
    background: rgba(249, 115, 22, .1);
    color: #f97316;
}

.icon-purple {
    background: rgba(139, 92, 246, .1);
    color: #8b5cf6;
}

.icon-gold {
    background: rgba(241, 179, 28, .12);
    color: var(--gold-dark);
}

.icon-blue {
    background: rgba(59, 130, 246, .1);
    color: #3b82f6;
}

.icon-green {
    background: rgba(51, 95, 70, .1);
    color: var(--green);
}

.icon-slate {
    background: rgba(100, 116, 139, .1);
    color: #64748b;
}

.icon-rose {
    background: rgba(244, 63, 94, .1);
    color: #f43f5e;
}

.den-type-card input:checked+.den-type-label .den-type-icon.icon-red {
    background: #ef4444;
    color: #fff;
}

.den-type-card input:checked+.den-type-label .den-type-icon.icon-orange {
    background: #f97316;
    color: #fff;
}

.den-type-card input:checked+.den-type-label .den-type-icon.icon-purple {
    background: #8b5cf6;
    color: #fff;
}

.den-type-card input:checked+.den-type-label .den-type-icon.icon-gold {
    background: var(--gold-dark);
    color: #fff;
}

.den-type-card input:checked+.den-type-label .den-type-icon.icon-blue {
    background: #3b82f6;
    color: #fff;
}

.den-type-card input:checked+.den-type-label .den-type-icon.icon-green {
    background: var(--green);
    color: #fff;
}

.den-type-card input:checked+.den-type-label .den-type-icon.icon-slate {
    background: #64748b;
    color: #fff;
}

.den-type-card input:checked+.den-type-label .den-type-icon.icon-rose {
    background: #f43f5e;
    color: #fff;
}

/* ── Radio pills (sim/não) ── */
.den-radio-pills {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.den-pill-card {
    position: relative;
}

.den-pill-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.den-pill-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all .2s;
    user-select: none;
}

.den-pill-label:hover {
    border-color: var(--green);
    color: var(--green);
}

.den-pill-card input:checked+.den-pill-label {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(51, 95, 70, .3);
}

/* ── Checkbox de confirmação ── */
.den-confirm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.den-confirm-check:has(input:checked) {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.den-confirm-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.den-confirm-check-text {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.55;
}

.den-confirm-check-text a {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* ── Tip de orientação para o textarea ── */
.den-desc-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(59, 130, 246, .04);
    border: 1px solid rgba(59, 130, 246, .15);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: -8px;
    margin-bottom: 16px;
    font-size: 11.5px;
    color: #374151;
    line-height: 1.5;
}

.den-desc-tip i {
    color: #3b82f6;
    font-size: 12px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── Alerta urgência ── */
.den-urgencia-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(239, 68, 68, .04);
    border: 1px solid rgba(239, 68, 68, .2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    gap: 12px;
    cursor: pointer;
    transition: background .2s;
}

.den-urgencia-row:has(input:checked) {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .35);
}

.den-urgencia-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    cursor: pointer;
}

.den-urgencia-row label i {
    font-size: 14px;
}

.den-urgencia-row input[type="checkbox"] {
    accent-color: #ef4444;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.den-urgencia-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Alertas inline ── */
#denAlerts {
    margin-bottom: 0;
}

.den-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    animation: alertSlide .2s ease;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.den-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.den-alert.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.den-alert i {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Footer do form (botões) ── */
.den-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px 28px;
    border-top: 1px solid var(--border);
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
    gap: 12px;
}

.btn-den-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(51, 95, 70, .28);
}

.btn-den-next:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(51, 95, 70, .35);
}

.btn-den-next:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.btn-den-next.submit-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 14px rgba(220, 38, 38, .3);
}

.btn-den-next.submit-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 6px 18px rgba(220, 38, 38, .4);
}

.btn-den-prev {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid #d1d5db;
    border-radius: 50px;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.btn-den-prev:hover {
    border-color: var(--green);
    color: var(--green);
}

.btn-den-prev.hidden {
    visibility: hidden;
}

/* spinner */
.den-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .65s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Separador de secção melhorado ── */
.den-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 18px;
}

.den-section-title-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(51, 95, 70, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--green);
    flex-shrink: 0;
}

.den-section-title h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: .02em;
}

.den-section-title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

/* ═══════════════════════════════════════════════
     ESTADO DE SUCESSO
  ═══════════════════════════════════════════════ */
.den-success-state {
    padding: 60px 36px 48px;
    text-align: center;
}

.den-success-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 38px;
    color: #fff;
    box-shadow: 0 10px 32px rgba(51, 95, 70, .3);
    animation: popBounce .5s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popBounce {
    from {
        transform: scale(.3);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.den-success-ref {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(51, 95, 70, .06), rgba(51, 95, 70, .03));
    border: 1.5px solid rgba(51, 95, 70, .2);
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-family: monospace;
    letter-spacing: .1em;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.den-success-ref:hover {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(51, 95, 70, .08);
}

.den-success-ref strong {
    color: var(--green);
    font-size: 16px;
}

.den-success-ref .copy-hint {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0;
    background: var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: .7;
}

.den-success-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.den-success-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.den-success-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.den-success-step-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.den-success-step-text strong {
    color: var(--text-dark);
}

/* Animação escalonada nos steps de sucesso */
.den-success-step {
    animation: fadeSlideIn .4s ease both;
}

.den-success-step:nth-child(1) {
    animation-delay: .3s;
}

.den-success-step:nth-child(2) {
    animation-delay: .5s;
}

.den-success-step:nth-child(3) {
    animation-delay: .7s;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════
     SIDEBAR
  ═══════════════════════════════════════════════ */
.den-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 130px;
}

/* Card de confidencialidade */
.den-side-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06), 0 0 0 1px var(--border);
}

.den-side-card-header {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.den-side-card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(241, 179, 28, .18);
    border: 1px solid rgba(241, 179, 28, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.den-side-card-header-icon i {
    font-size: 18px;
    color: var(--gold);
}

.den-side-card-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.den-side-card-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.den-side-card-body {
    padding: 20px 24px;
}

/* Items de garantia na sidebar */
.den-side-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.den-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.den-side-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.den-side-item-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.den-side-item-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Card de contacto urgente */
.den-side-urgent {
    background: linear-gradient(150deg, #dc2626 0%, #b91c1c 50%, #7f1d1d 100%);
    border-radius: 16px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(220, 38, 38, .2);
}

.den-side-urgent::before {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 18px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.den-side-urgent-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.den-side-urgent-header i {
    font-size: 20px;
    color: rgba(255, 255, 255, .85);
}

.den-side-urgent h4 {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.den-side-urgent p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 12px;
    line-height: 1.5;
}

.den-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    transition: background .2s;
    margin-bottom: 8px;
}

.den-contact-link:last-child {
    margin-bottom: 0;
}

.den-contact-link:hover {
    background: rgba(255, 255, 255, .2);
}

.den-contact-link i {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    width: 18px;
    text-align: center;
}

.den-contact-link span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* Card "Como funciona" */
.den-side-how {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06), 0 0 0 1px var(--border);
}

.den-side-how h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.den-side-how h4 i {
    color: var(--gold-dark);
    font-size: 13px;
}

.den-how-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.den-how-step:last-child {
    margin-bottom: 0;
}

.den-how-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 1px;
}

.den-how-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.den-how-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
     RESPONSIVE
  ═══════════════════════════════════════════════ */
@media (max-width: 960px) {
    .den-hero {
        padding: 108px 0 96px;
    }

    /* header(64) + respiro(44) */
    .den-layout {
        grid-template-columns: 1fr;
    }

    .den-sidebar {
        position: static;
    }

    .den-garantias-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .den-hero-shield {
        display: none;
    }

    .den-hero-inner {
        grid-template-columns: 1fr;
    }
}

/* Tablet: layout da sidebar em linha */
@media (max-width: 960px) and (min-width: 641px) {
    .den-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .den-side-card {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .den-hero {
        padding: 88px 0 72px;
    }

    /* header(64) + respiro(24) */
    .den-type-grid {
        grid-template-columns: 1fr;
    }

    .den-grid-2 {
        grid-template-columns: 1fr;
    }

    .den-form-body {
        padding: 24px 20px 20px;
    }

    .den-form-footer {
        padding: 16px 20px 24px;
        flex-wrap: wrap;
    }

    .den-form-header {
        padding: 22px 20px;
    }

    .den-garantias-inner {
        grid-template-columns: 1fr 1fr;
    }

    .den-garantia-item {
        border-bottom: 1px solid var(--border);
    }

    .den-garantia-item:nth-child(odd) {
        border-right: 1px solid var(--border);
    }

    .den-garantia-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .den-step-label {
        display: none;
    }

    .den-success-state {
        padding: 40px 20px 32px;
    }

    .den-hero-trust {
        gap: 12px;
    }

    .den-trust-sep {
        display: none;
    }

    .den-hero h1 {
        letter-spacing: -.5px;
    }
}