/* 
   ╔══════════════════════════════════════════════════╗
   ║   DESIGN DECREE — INICIATIVA ICD                ║
   ║   Paleta Nobre, Tríade Tipográfica, Governo      ║
   ╚══════════════════════════════════════════════════╝
*/

/* =========================================
   TOKENS DE GOVERNO (DESIGN SYSTEM)
   ========================================= */
:root {
    /* Paleta Nobre */
    --color-ouro: #F09A0F;
    /* Ouro Profético */
    --color-ouro-dark: #C57C00;
    /* Ouro Profundo */
    --color-terracota: #C55E2C;
    /* Terracota UNI */
    --color-sangue: #9F0E07;
    /* Sangue Nobre */
    --color-preto: #000000;
    /* Preto Total */
    --color-elite-dark: #1A1A1A;
    /* Preto Elite */
    --color-cinza-nobre: #4A4A4A;
    /* Cinza Nobre */
    --color-branco: #FFFFFF;
    /* Branco Glória */
    --color-branco-glass: rgba(255, 255, 255, 0.07);

    /* Aliases semânticos */
    --color-highlight-yellow: var(--color-ouro);
    --color-highlight-red: var(--color-sangue);
    --color-text-grey: var(--color-cinza-nobre);
    --color-text-light: var(--color-branco);

    /* Fundos */
    --bg-primary: #FFFFFF;
    --bg-glass-sidebar: rgba(0, 0, 0, 0.96);

    /* Tríade Tipográfica */
    --font-titles: 'Cormorant Garamond', serif;
    --font-highlights: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Dimensões */
    --sidebar-collapsed: 80px;
    --sidebar-expanded: 320px;
    --container-width: 1200px;

    /* Transições */
    --transition-sidebar: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    --transition-fast: 0.3s ease;
}

/* =========================================
   RESET & BASE
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--color-elite-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* =========================================
   MENU TOGGLE BUTTON (A Chave Minimalista)
   ========================================= */
.gov-menu-toggle {
    position: fixed;
    top: 28px;
    left: 22px;
    z-index: 2000;
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    transition: transform var(--transition-fast);
}

.gov-menu-toggle:hover {
    transform: scale(1.1);
}

.menu-bar {
    width: 28px;
    height: 2px;
    background-color: var(--color-branco);
    border-radius: 2px;
    transition: all var(--transition-fast);
    display: block;
}

/* Toggle → X quando menu ativo */
body.menu-active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

body.menu-active .menu-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.menu-active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* =========================================
   SIDEBAR DE GOVERNO
   80px fechada → 320px aberta
   ========================================= */
.gov-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-collapsed);
    height: 100vh;
    background: var(--color-preto);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 6px 0 40px rgba(0, 0, 0, 0.6);
    transition: width var(--transition-sidebar);
    overflow: hidden;
}

body.menu-active .gov-sidebar {
    width: var(--sidebar-expanded);
}

/* =========================================
   LOGO — LINHA DE FORÇA ÚNICA
   ========================================= */
.gov-logo {
    display: flex;
    flex-direction: column;
    /* logo em cima, ICD vertical embaixo */
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding-top: 10px;
    flex-shrink: 0;
    margin-top: 80px;
    margin-bottom: 0;
    transition: all var(--transition-sidebar);
    gap: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    position: relative;
    gap: 0;
    /* gap começa 0, expande via margin-left no logo-full */
}

/* Logo natural sobre o fundo preto da sidebar — sem filtro forçado */
.logo-icon-silhouette {
    display: none;
    /* removida — logo única via .logo-full */
}

/* Logo iconográfica 2025 — símbolo branco sobre fundo escuro */
.logo-full {
    width: 48px;
    height: 48px;
    object-fit: contain;
    object-position: center;
    opacity: 0.95;
    flex-shrink: 0;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 14px rgba(240, 154, 15, 0.3));
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease, width 0.35s ease, height 0.35s ease;
    pointer-events: auto;
}

.logo-full:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 24px rgba(240, 154, 15, 0.6));
    opacity: 1;
}

body.menu-active .logo-full {
    width: 64px;
    height: 64px;
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 20px rgba(240, 154, 15, 0.4));
}

/* ─── ICD VERTICAL — SÓ NO SIDEBAR FECHADO ─── */
.sidebar-icd-label {
    position: absolute;
    top: 154px;

    /* Centro do sidebar = 40px. Elemento com line-height=40px tem 40px de largura. */
    left: 50%;
    transform: translateX(-50%) rotate(180deg);

    /* Vertical: D no topo (próximo à logo), I embaixo */
    writing-mode: vertical-lr;

    font-family: var(--font-highlights);
    font-weight: 700;
    font-size: 22px;
    line-height: 40px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

/* Some quando o menu abre */
body.menu-active .sidebar-icd-label {
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   NAVEGAÇÃO
   ========================================= */
.gov-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 0 0 20px;
}

.gov-nav::-webkit-scrollbar {
    display: none;
}

.menu-item-group {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0s;
    padding: 0 30px;
    margin-bottom: 28px;
}

/* Acender itens em cascata quando menu abre */
body.menu-active .menu-item-group:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.15s;
}

body.menu-active .menu-item-group:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.22s;
}

body.menu-active .menu-item-group:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.29s;
}

body.menu-active .menu-item-group:nth-child(4) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.36s;
}

.menu-link-main {
    font-family: var(--font-highlights);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

/* Cromatismo de Jurisdição */
.color-matriz {
    color: var(--color-ouro);
}

.color-uni {
    color: var(--color-terracota);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.color-conf {
    color: var(--color-sangue);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.color-workshop {
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

/* Links de sub-menu */
.submenu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submenu-link {
    font-family: var(--font-titles);
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.75);
    transition: transform var(--transition-fast), color var(--transition-fast);
    display: block;
    white-space: nowrap;
    position: relative;
    padding-left: 0;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--color-ouro);
    transition: height var(--transition-fast);
}

.submenu-link:hover {
    transform: translateX(8px);
    color: var(--color-branco);
}

.submenu-link.active {
    color: var(--color-ouro);
    font-weight: 600;
}

.submenu-link.active::before {
    height: 100%;
}

/* =========================================
   FOOTER DA SIDEBAR
   ========================================= */
.gov-sidebar-footer {
    padding: 24px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.4s ease 0.4s;
    flex-shrink: 0;
}

body.menu-active .gov-sidebar-footer {
    opacity: 1;
}

.btn-portal {
    display: block;
    width: 100%;
    text-align: center;
    font-family: var(--font-highlights);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-branco);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 13px 0;
    margin-bottom: 18px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-portal:hover {
    background-color: var(--color-ouro);
    border-color: var(--color-ouro);
    color: var(--color-preto);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.social-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
    color: var(--color-ouro);
    transform: translateY(-2px);
}

/* =========================================
   OVERLAY (Fecha menu ao clicar fora)
   ========================================= */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.menu-active .sidebar-overlay {
    opacity: 1;
    pointer-events: all;
}

/* =========================================
   MAIN CONTENT
   ========================================= */
main {
    width: 100%;
    min-height: 100vh;
    padding-left: var(--sidebar-collapsed);
    transition: filter 0.4s ease;
}

/* =========================================
   HERO SECTION — O ALTAR
   ========================================= */
.hero-section {
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Fundo etéreo: nuvem gradiente dourada */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 120%;
    background: radial-gradient(ellipse at 60% 40%,
            rgba(240, 154, 15, 0.10) 0%,
            rgba(159, 14, 7, 0.05) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Segundo véu etéreo — esquerda baixo */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse at 30% 70%,
            rgba(240, 154, 15, 0.06) 0%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: var(--container-width);
    padding: 0 60px;
    z-index: 2;
    position: relative;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-text-column {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.4s;
    padding-right: 10px;
}

.hero-overline {
    font-family: var(--font-highlights);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-sangue);
    margin-bottom: 18px;
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-titles);
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    line-height: 1.0;
    font-weight: 600;
    color: var(--color-elite-dark);
    margin-bottom: 28px;
}

.hero-title .highlight-gold {
    color: var(--color-ouro);
    font-style: italic;
    display: inline-block;
    position: relative;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-ouro), transparent);
    margin-bottom: 28px;
}

.hero-scripture {
    font-family: var(--font-titles);
    font-size: 1.4rem;
    color: var(--color-cinza-nobre);
    max-width: 560px;
    margin-bottom: 44px;
    font-style: italic;
    border-left: 2px solid var(--color-ouro);
    padding-left: 22px;
    line-height: 1.7;
}

.scripture-ref {
    display: block;
    font-family: var(--font-highlights);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 12px;
    color: var(--color-sangue);
    font-style: normal;
    letter-spacing: 1px;
}

/* Botões de Comando */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-royal {
    background-color: var(--color-elite-dark);
    color: var(--color-branco);
    font-family: var(--font-highlights);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    padding: 16px 32px;
    border: 2px solid var(--color-elite-dark);
    display: inline-block;
    transition: background-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-royal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-ouro);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 0;
}

.btn-royal:hover::after {
    transform: scaleX(1);
}

.btn-royal span,
.btn-royal {
    position: relative;
    z-index: 1;
}

.btn-royal:hover {
    color: var(--color-preto);
    border-color: var(--color-ouro);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(240, 154, 15, 0.25);
}

.btn-ghost {
    color: var(--color-elite-dark);
    font-family: var(--font-highlights);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 28px;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--color-ouro);
    color: var(--color-ouro);
    transform: translateY(-2px);
}

/* =========================================
   HERO — COLUNA DA IMAGEM ETÉREA
   ========================================= */
.hero-image-column {
    position: relative;
    opacity: 0;
    animation: fadeInRight 1.2s ease forwards 0.7s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Sem efeito de nuvens — símbolo exposto com soberania */
    transition: transform 0.6s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

/* ─── SÍMBOLO SOBERANO — PNG com gradiente processado ─── */
.hero-symbol-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    transition: transform 0.6s ease, opacity 0.4s ease;
    opacity: 0.95;
}

.hero-symbol-img:hover {
    opacity: 1;
    transform: scale(1.04);
}


/* =========================================
   HERO VISUAL (círculos decorativos)
   ========================================= */
.hero-visual {
    display: none;
}

/* =========================================
   ANIMAÇÕES
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   DIÁRIO OFICIAL — DECRETOS
   ========================================= */
.decretos-section {
    padding: 60px 60px 100px;
    background: var(--color-branco);
    position: relative;
}

.decretos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    right: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-ouro), transparent);
}

.section-overline {
    font-family: var(--font-highlights);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-sangue);
    margin-bottom: 12px;
    display: block;
}

.section-headline {
    font-family: var(--font-titles);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    color: var(--color-elite-dark);
    margin-bottom: 12px;
    line-height: 1.1;
}

.section-subline {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-cinza-nobre);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 60px;
}

.decretos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: var(--container-width);
}

/* Card do Decreto */
.decreto-card {
    background: var(--color-preto);
    color: var(--color-branco);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.decreto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-ouro), var(--color-sangue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.decreto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(240, 154, 15, 0.15);
}

.decreto-card:hover::before {
    transform: scaleX(1);
}

/* Halo dourado sutil no hover */
.decreto-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 154, 15, 0.06), transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.decreto-card:hover::after {
    opacity: 1;
}

.decreto-numero {
    font-family: var(--font-highlights);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-ouro);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.decreto-numero::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(240, 154, 15, 0.25);
}

.decreto-categoria {
    font-family: var(--font-highlights);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-sangue);
    margin-bottom: 14px;
    display: block;
}

.decreto-titulo {
    font-family: var(--font-titles);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--color-branco);
}

.decreto-excerpt {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 28px;
    border-left: 2px solid rgba(240, 154, 15, 0.3);
    padding-left: 14px;
}

.decreto-link {
    font-family: var(--font-highlights);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-ouro);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-fast);
}

.decreto-link:hover {
    gap: 14px;
}

.decreto-link i {
    font-size: 0.8rem;
}

/* Variantes de cor por decreto */
.decreto-card.decreto-002 {
    background: #0A0A0A;
}

.decreto-card.decreto-003 {
    background: #050505;
}

.decreto-card.decreto-004 {
    background: #060606;
}

.decreto-card.decreto-005 {
    background: #030303;
}

/* Destaque: Primeiro decreto maior */
.decreto-card.decreto-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--color-elite-dark);
    padding: 56px 60px;
}

.decreto-card.decreto-featured .decreto-titulo {
    font-size: 2.8rem;
}

.decreto-featured-verse {
    border-left: 3px solid var(--color-ouro);
    padding: 28px 32px;
    background: rgba(240, 154, 15, 0.04);
}

.decreto-featured-verse blockquote {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
}

.decreto-featured-verse cite {
    font-family: var(--font-highlights);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-ouro);
    font-style: normal;
    text-transform: uppercase;
}

/* Link para ver todos os decretos */
.decretos-cta {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.decretos-cta::before,
.decretos-cta::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

/* =========================================
   PORTAIS — ESTRUTURA READY
   ========================================= */
.portais-section {
    padding: 100px 60px;
    background: var(--color-preto);
    position: relative;
    overflow: hidden;
}

.portais-section::before {
    content: 'ICD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-titles);
    font-size: 30vw;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.01);
    pointer-events: none;
    letter-spacing: -5px;
    line-height: 1;
    user-select: none;
}

.portais-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.portais-header .section-overline {
    text-align: center;
    display: block;
}

.portais-header .section-headline {
    color: var(--color-branco);
}

.portais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.portal-card {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 36px;
    cursor: pointer;
    transition: flex-grow 0.5s ease;
}

.portal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.portal-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.portal-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.portal-card:hover .portal-bg {
    transform: scale(1.05);
}

.portal-card.portal-uni .portal-bg {
    background-color: #1a0800;
    background-image: linear-gradient(135deg, #2d1200 0%, #1a0800 100%);
}

.portal-card.portal-conf .portal-bg {
    background-color: #0a0005;
    background-image: linear-gradient(135deg, #15000a 0%, #0a0005 100%);
}

.portal-card.portal-matrix .portal-bg {
    background-color: #0a0a00;
    background-image: linear-gradient(135deg, #1a1500 0%, #0a0a00 100%);
}

/* ── PORTAL OVERLAY (sobre imagem real) ── */
.portal-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.portal-overlay--terracota {
    background: linear-gradient(160deg,
            rgba(42, 14, 0, 0.78) 0%,
            rgba(26, 8, 0, 0.65) 50%,
            rgba(13, 4, 0, 0.55) 100%);
}

.portal-overlay--sangue {
    background: linear-gradient(160deg,
            rgba(31, 0, 5, 0.82) 0%,
            rgba(15, 0, 3, 0.70) 50%,
            rgba(7, 0, 2, 0.58) 100%);
}

.portal-overlay--ouro {
    background: linear-gradient(160deg,
            rgba(26, 21, 0, 0.80) 0%,
            rgba(13, 10, 0, 0.68) 50%,
            rgba(5, 4, 0, 0.56) 100%);
}

.portal-card:hover .portal-bg-overlay {
    opacity: 0.75;
}

.portal-content {
    position: relative;
    z-index: 2;
    transform: translateY(16px);
    transition: transform 0.4s ease;
}

.portal-card:hover .portal-content {
    transform: translateY(0);
}

.portal-sigla {
    font-family: var(--font-highlights);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.portal-card.portal-uni .portal-sigla {
    color: var(--color-terracota);
}

.portal-card.portal-conf .portal-sigla {
    color: var(--color-sangue);
}

.portal-card.portal-matrix .portal-sigla {
    color: var(--color-ouro);
}

.portal-nome {
    font-family: var(--font-titles);
    font-size: 2.4rem;
    color: var(--color-branco);
    line-height: 1.1;
    margin-bottom: 14px;
}

.portal-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 28px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-bottom 0.5s ease;
}

.portal-card:hover .portal-desc {
    max-height: 120px;
}

.portal-action {
    font-family: var(--font-highlights);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-fast), color var(--transition-fast);
    color: rgba(255, 255, 255, 0.5);
}

.portal-card:hover .portal-action {
    color: var(--color-branco);
    gap: 14px;
}

.portal-card.portal-uni:hover .portal-action {
    color: var(--color-terracota);
}

.portal-card.portal-conf:hover .portal-action {
    color: var(--color-sangue);
}

.portal-card.portal-matrix:hover .portal-action {
    color: var(--color-ouro);
}

/* =========================================
   PÁGINAS INTERNAS
   ========================================= */
.page-header {
    padding: 120px 60px 60px;
}

.page-title {
    font-family: var(--font-titles);
    font-size: 3.5rem;
    color: var(--color-elite-dark);
    margin-bottom: 10px;
    max-width: 800px;
}

.page-container {
    padding: 0 60px 80px;
    max-width: calc(var(--container-width) + 120px);
}

.page-container p {
    margin-bottom: 24px;
    color: var(--color-cinza-nobre);
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-container h2 {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    color: var(--color-elite-dark);
    margin-top: 56px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-ouro);
    display: inline-block;
}

.page-container h3 {
    font-family: var(--font-highlights);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-sangue);
    margin-top: 32px;
    margin-bottom: 16px;
}

.page-container ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 24px;
    color: var(--color-cinza-nobre);
}

/* =========================================
   RESPONSIVE — MOBILE DE ELITE
   ========================================= */
@media (max-width: 1024px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 40px;
    }

    .hero-image-column {
        display: none;
        /* Imagem some no tablet intermediário, foco no texto */
    }

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

    .decreto-card.decreto-featured {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 32px;
    }

    .decreto-card.decreto-featured .decreto-titulo {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    /* Sidebar mobile: oculta totalmente, toggle abre fullscreen */
    .gov-sidebar {
        width: 0;
        border-right: none;
    }

    body.menu-active .gov-sidebar {
        width: 100vw;
    }

    /* Main sem indentação no mobile */
    main {
        padding-left: 0;
    }

    /* Toggle visível no mobile */
    .gov-menu-toggle {
        left: 18px;
        top: 22px;
    }

    /* Menu bars ficam brancas por padrão no mobile (fundo pode ser branco) */
    .menu-bar {
        background-color: var(--color-elite-dark);
    }

    body.menu-active .menu-bar {
        background-color: var(--color-branco);
    }

    /* Hero mobile */
    .hero-section {
        height: auto;
        min-height: 100svh;
        padding: 90px 0 60px;
        align-items: flex-start;
    }

    .hero-content-grid {
        grid-template-columns: 1fr;
        padding: 0 24px;
        gap: 0;
    }

    .hero-image-column {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.8rem, 8vw, 3.5rem);
    }

    .hero-scripture {
        font-size: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-royal,
    .btn-ghost {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
    }

    /* Decretos mobile */
    .decretos-section {
        padding: 60px 24px;
    }

    .decretos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .decreto-card.decreto-featured {
        grid-column: auto;
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    /* Portais mobile */
    .portais-section {
        padding: 60px 24px;
    }

    .portais-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .portal-card {
        min-height: 280px;
    }

    .portal-desc {
        max-height: 120px;
        /* Sempre visível no mobile */
    }

    /* Páginas internas mobile */
    .page-header,
    .page-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-headline {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .decreto-card {
        padding: 28px 22px;
    }

    .decreto-titulo {
        font-size: 1.6rem;
    }
}

/* Forçar contraste alto em texto sobre gradientes etéreos */
@media (max-width: 768px) {
    .hero-title {
        text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
    }


    .hero-scripture {
        background: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        border-radius: 2px;
        padding: 16px 18px 16px 22px;
    }
}

/* ═══════════════════════════════════════════════════════════
   MANIFESTO FUNDACIONAL — IDEO WHITESPACE × REALEZA ICD
   ═══════════════════════════════════════════════════════════ */

.manifesto-fundacional {
    background: transparent;
    /* herda o bege etéreo do hero */
    padding: 48px 0 32px;
    /* respiro vertical generoso dentro do hero */
    position: relative;
}

.manifesto-container {
    max-width: 580px;
    position: relative;
    padding-left: 20px;
    /* espaço para a borda decorativa */
    border-left: 3px solid #F09A0F;
    /* Ouro Profético — linha de autoridade */
}

/* Linha reservada via ::before para efeito de gradiente no futuro */
.manifesto-container::before {
    content: none;
}

/* O TEXTO DO MANIFESTO */
.texto-manifesto {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.65rem, 2.4vw, 2.6rem);
    /* escala fluida — imponente mas legível */
    font-weight: 400;
    /* peso editorial, não agressivo */
    line-height: 1.55;
    /* espaçamento elegante entre linhas */
    color: #000000;
    /* Deep Black — autoridade pura */
    letter-spacing: -0.01em;
    margin: 0 0 36px 0;
    font-style: italic;
    /* aspas editoriais — voz de manifestante */
}

/* ASSINATURA */
.assinatura-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 2px;
}

.assinatura-nome {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-ouro);
    /* Ouro Profético #F09A0F */
    margin: 0;
}

.assinatura-cargo {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(0, 0, 0, 0.48);
    /* Deep Black com transparência — hierarquia sutil */
    text-transform: uppercase;
    margin: 0;
}

/* RESPONSIVIDADE DO MANIFESTO */
@media (max-width: 768px) {
    .manifesto-fundacional {
        padding: 32px 0 24px;
    }

    .manifesto-container::before {
        left: -16px;
    }

    .texto-manifesto {
        font-size: clamp(1.4rem, 5vw, 1.9rem);
    }
}