/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Paleta Cromática Contemporânea (Clara por omissão) */
    --bg-deep: #f8fafd;          /* Fundo claro geral / azul marinho muito suave */
    --bg-card: #ffffff;          /* Fundo dos cartões em branco puro */
    --bg-header: rgba(5, 13, 26, 0.95); /* Header sempre em azul escuro para contraste */
    
    --primary-gold: #b39268;     /* Dourado mais contrastante para legibilidade em fundo claro */
    --subtitle-gold: #8a6b43;    /* Dourado mais escuro para contrastes de texto em fundo claro (WCAG AA) */
    --gold-hover: #9c7b52;       /* Dourado mais escuro para estados hover em fundo claro */
    --gold-hover-text: #7a5d38;  /* Dourado ainda mais escuro para garantir contraste WCAG AA em hover de botões claros */
    --gold-light: rgba(197, 168, 128, 0.1);
    --gold-border: rgba(197, 168, 128, 0.22);
    
    --text-primary: #0f172a;     /* Texto principal em azul-noite charcoal escuro */
    --text-muted: #475569;       /* Texto secundário em cinza-azulado ardósia */
    --text-dark: #050d1a;        /* Texto escuro para botões em fundo dourado */
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 144px;
    
    /* Tipografia Solene e Contemporânea */
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Transições & Sombras */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-gold: 0 4px 20px rgba(15, 23, 42, 0.04); /* Sombra clara muito suave */
    --shadow-gold-hover: 0 10px 30px rgba(15, 23, 42, 0.08); /* Sombra hover clara */
    
    /* Cantos Arredondados */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

/* ==========================================================================
   SOBREPOSIÇÃO DE TEMA ESCURO (Para secções de destaque e estrutura)
   ========================================================================== */
.site-header,
.site-footer {
    --bg-deep: #050d1a;          /* Fundo azul-escuro profundo original */
    --bg-card: #0a182d;          /* Fundo dos cartões em azul noite */
    
    --primary-gold: #dfc49f;     /* Dourado institucional mais claro */
    --subtitle-gold: #dfc49f;    /* Dourado mais claro para legibilidade em fundo escuro */
    --gold-hover: #d4af37;       /* Amarelo-ouro original para foco */
    --gold-hover-text: #dfc49f;  /* Mantém o dourado claro no tema escuro */
    --gold-light: rgba(197, 168, 128, 0.15);
    --gold-border: rgba(197, 168, 128, 0.35);
    
    --text-primary: #ffffff;     /* Texto principal em branco */
    --text-muted: #94a3b8;       /* Texto secundário em cinza azulado suave */
    
    --shadow-gold: 0 4px 20px rgba(197, 168, 128, 0.08);
    --shadow-gold-hover: 0 8px 30px rgba(212, 175, 55, 0.2);
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-muted);
    background-color: var(--bg-deep); /* Fundo azul escuro em todo o site */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* Screen Reader Only (Acessibilidade) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   UTILITÁRIOS E ESTRUTURA
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Linhas Verticais de Grelha Lateral (Visual Grid Lines) */
.site-grid-lines {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: 100vh;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 9999;
    box-sizing: border-box;
}

.grid-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(197, 168, 128, 0) 0%, 
        rgba(197, 168, 128, 0.08) 15%, 
        rgba(197, 168, 128, 0.08) 85%, 
        rgba(197, 168, 128, 0) 100%
    );
}

@media (max-width: 991px) {
    .site-grid-lines {
        display: none;
    }
}


.section {
    padding: 5.5rem 0;
    position: relative;
}

/* Divisórias Douradas Finas */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.section:last-of-type::after {
    display: none;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 5rem auto;
}

.section-header-left {
    text-align: left;
    margin: 0 0 5rem 0;
    max-width: 800px;
}

.section-header-left .separator-gold {
    margin: 1.5rem 0 0 0;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--subtitle-gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Separador Dourado Pequeno */
.separator-gold {
    width: 60px;
    height: 2px;
    background-color: var(--primary-gold);
    margin: 1.5rem auto 0 auto;
}

/* ==========================================================================
   BOTÕES (ESTILO SOLENE / PRESTÍGIO)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 0.95rem;
}

/* Botão Principal: Dourado Sólido */
.btn-primary {
    background-color: var(--primary-gold);
    color: var(--text-dark);
    box-shadow: var(--shadow-gold);
    border: 1px solid var(--primary-gold);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

/* Botão Secundário: Preenchimento Dourado/Bege */
.btn-secondary {
    background-color: var(--primary-gold);
    color: var(--text-dark);
    border: 1px solid var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--gold-hover);
    color: var(--text-dark);
    border-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

/* Botão Dourado Especial */
.btn-gold {
    background-color: var(--primary-gold);
    color: var(--text-dark);
    box-shadow: var(--shadow-gold);
    border: 1px solid var(--primary-gold);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

.accent-text {
    color: var(--primary-gold);
    font-weight: 700;
}

/* ==========================================================================
   CABEÇALHO & NAVEGAÇÃO
   ========================================================================== */
.site-header {
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gold-border);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-img {
    max-height: 144px;
    height: auto;
    width: auto;
    max-width: 100%;
    display: block;
    transition: var(--transition);
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

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

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--primary-gold);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-gold);
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--primary-gold);
}

.nav-user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem !important; /* spacing adjustment */
}

.nav-user-link i {
    font-size: 1.4rem;
    color: var(--primary-gold);
    transition: var(--transition);
}

.nav-user-link:hover i {
    color: var(--gold-hover);
    transform: scale(1.12);
}

.nav-user-link::after {
    display: none !important; /* disable underline for the icon-only item */
}

/* Ocultar o texto da Área Pessoal — apenas mostrar o ícone */
.nav-user-text {
    display: none !important;
}

/* ==========================================================================
   DROPDOWN MENU DE NAVEGAÇÃO
   ========================================================================== */
.nav-item-dropdown {
    position: relative;
}

.nav-link-has-dropdown {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-right: 0;
}

.nav-item-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* cria uma zona invisível entre o link e o menu para não perder o hover */
.nav-item-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 18px;
}

.nav-link-dropdown .fa-chevron-down {
  display: inline-block !important;
  font-size: 0.62rem;
  transition: transform 0.22s ease;
}

.nav-item-dropdown:hover .nav-link-dropdown .fa-chevron-down,
.nav-item-dropdown:focus-within .nav-link-dropdown .fa-chevron-down,
.nav-item-dropdown.is-open .nav-link-dropdown .fa-chevron-down {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: rgba(5, 13, 26, 0.98);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1200;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(5, 13, 26, 0.98);
  border-left: 1px solid var(--gold-border);
  border-top: 1px solid var(--gold-border);
  transform: translateX(-50%) rotate(45deg);
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-left: 2px solid transparent;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.nav-dropdown-item:hover {
  background-color: rgba(197, 168, 128, 0.08);
  border-left-color: var(--primary-gold);
}

.nav-dropdown-item i {
  color: var(--primary-gold);
  margin-top: 0.2rem;
  width: 18px;
  flex-shrink: 0;
}

.nav-dropdown-item span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-dropdown-item strong {
  font-size: 0.96rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.nav-dropdown-item small {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Mobile: dropdown vira lista vertical dentro do menu aberto */
@media (max-width: 991px) {
    .nav-dropdown {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(197,168,128,0.15);
        border-radius: var(--radius-md);
        box-shadow: none;
        margin: 0.5rem 0 0.5rem 1rem;
        min-width: auto;
        display: none;
        backdrop-filter: none;
    }
    .nav-dropdown::before {
        display: none;
    }
    .nav-item-dropdown.is-open .nav-dropdown {
        display: block;
    }
    .nav-link-dropdown {
        width: 100%;
        justify-content: space-between;
    }
}

/* Em janelas estreitas com rato, permitir também a abertura por hover. */
@media (max-width: 991px) and (hover: hover) and (pointer: fine) {
    .nav-item-dropdown:hover .nav-dropdown,
    .nav-item-dropdown:focus-within .nav-dropdown {
        display: block;
    }
}

/* No menu responsivo, mostrar logo à partida as opções de Comunicados. */
@media (max-width: 991px) {
    #nav-comunicados .nav-dropdown {
        display: block;
    }
}

/* Linha separadora editorial do dropdown */
.nav-dropdown-divider {
    height: 1px;
    background: rgba(197,168,128,0.12);
    margin: 0.25rem 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    z-index: 1100;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
}

.hamburger, .hamburger::before, .hamburger::after {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.hamburger {
    position: relative;
    top: 9px;
}

.hamburger::before {
    content: '';
    position: absolute;
    top: -8px;
}

.hamburger::after {
    content: '';
    position: absolute;
    top: 8px;
}

/* Animação do Menu Mobile */
.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    background: radial-gradient(circle at center, var(--bg-card), var(--bg-deep));
    color: var(--text-primary);
    padding: 8rem 0 10rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Video Background Hero */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Fallback image (always rendered, hidden on desktop when video loads) */
.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(0.9) brightness(0.85) contrast(1.1);
    z-index: 0;
}

/* The video element */
.hero-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.75) contrast(1.1);
    z-index: 1;
    display: block;
    pointer-events: none;
}

.hero-video-element.hero-video-unavailable {
    display: none;
}

/* Dark cinematic overlay */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, rgba(5,13,26,0.55) 0%, rgba(5,13,26,0.3) 40%, rgba(5,13,26,0.3) 60%, rgba(5,13,26,0.75) 100%),
        linear-gradient(to right, rgba(5,13,26,0.4) 0%, rgba(5,13,26,0.0) 50%, rgba(5,13,26,0.4) 100%);
    z-index: 2;
}

/* Small, explicit audio control: the video can autoplay safely muted and the
   visitor can opt in to sound without covering the hero content. */
.hero-video-sound-toggle {
    position: absolute;
    right: 1.5rem;
    top: 7rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.6rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(5, 13, 26, 0.64);
    color: #fff;
    box-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-video-sound-toggle:hover,
.hero-video-sound-toggle:focus-visible {
    border-color: var(--primary-gold);
    background: rgba(184, 151, 101, 0.94);
    color: #081321;
    transform: translateY(-2px);
}

.hero-video-sound-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.hero-video-sound-toggle i {
    width: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

/* On mobile: keep the video behind the content */
@media (max-width: 768px) {
    .hero-rotative-title {
        min-height: 3.55em;
    }

    .hero-video-fallback {
        filter: saturate(0.9) brightness(0.7) contrast(1.1);
    }
    .hero-video-overlay {
        background:
            linear-gradient(to bottom, rgba(5,13,26,0.6) 0%, rgba(5,13,26,0.35) 40%, rgba(5,13,26,0.35) 60%, rgba(5,13,26,0.8) 100%);
    }

    .hero-video-sound-toggle {
        right: 1rem;
        top: 6rem;
    }
}

/* Sub-page Hero Section (Shorter Padding) */
.hero-section.hero-subpage {
    padding: 6rem 0 7.5rem 0;
}

.hero-container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: var(--gold-light);
    border: 1px solid var(--gold-border);
    color: var(--primary-gold);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-rotative-title {
    min-height: 2.3em;
}

.hero-title.fade-out {
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

/* Três Pilares no Hero */
.hero-pillars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.5s;
    animation-fill-mode: both;
}

.pillar-tag {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-card);
    border: 1.5px solid var(--primary-gold);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.pillar-tag i {
    color: var(--primary-gold);
}

.pillar-tag:hover {
    transform: translateY(-2px);
    border-color: var(--gold-hover);
    box-shadow: var(--shadow-gold-hover);
}

/* Efeito de Ondulação Suave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 3;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-wave .shape-fill {
    fill: var(--bg-deep);
}

/* ==========================================================================
   SECÇÃO: PORQUE ESTA CAUSA IMPORTA
   ========================================================================== */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

/* Cartões com Borda Dourada Arredondada */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold-hover);
}

/* Ícones Circulares Dourados com Linha Fina */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-gold);
    background-color: transparent;
    color: var(--primary-gold);
    font-size: 1.6rem;
    margin-bottom: 2.25rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background-color: var(--primary-gold);
    color: var(--bg-deep);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ==========================================================================
   SECÇÃO: O QUE GANHA O CIDADÃO
   ========================================================================== */
.grid-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background-color: rgba(10, 24, 45, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gold-border);
    border-left: 4px solid var(--primary-gold);
    transition: var(--transition);
}

.benefit-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.benefit-number {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.benefit-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.benefit-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   SECÇÃO: UMA REALIDADE QUE TEM DE MUDAR
   ========================================================================== */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 5rem;
    align-items: center;
}

/* Moldura Dourada na Imagem */
.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 13, 26, 0.4), transparent);
    pointer-events: none;
}

.campaign-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Bloco Manifesto inspirado nos cartões da referência */
.manifesto-quote {
    background-color: var(--bg-card);
    border: 1.5px solid var(--primary-gold);
    padding: 2.5rem;
    margin: 2.25rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-gold);
    position: relative;
}

.manifesto-quote::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: var(--font-title);
    font-size: 5rem;
    color: rgba(197, 168, 128, 0.15);
    line-height: 1;
}

.quote-text {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.section-paragraph {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
}

.cta-inline {
    margin-top: 2rem;
}

/* ==========================================================================
   SECÇÃO: COMUNICADO (CARTÃO DE ALTA FIDELIDADE)
   ========================================================================== */
.comunicado-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.comunicado-card {
    background-color: var(--bg-card);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    padding: 4rem 3.5rem;
    box-shadow: var(--shadow-gold);
    position: relative;
}

.comunicado-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1.5px solid var(--primary-gold);
    padding-bottom: 1.5rem;
}

.comunicado-seal {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 1px solid var(--primary-gold);
    background-color: var(--bg-deep);
    padding: 5px;
}

.comunicado-seal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comunicado-title {
    font-family: var(--font-body);
    font-size: 2.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-gold);
}

.comunicado-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.comunicado-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

.comunicado-item:last-child {
    border-bottom: none;
}

.comunicado-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comunicado-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.65;
}

.comunicado-signature {
    font-family: 'Alex Brush', cursive, Georgia, serif;
    font-size: 2.6rem;
    color: var(--primary-gold);
    text-align: right;
    margin-top: 3rem;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   SECÇÃO: PERGUNTAS FREQUENTES (ACORDEÃO)
   ========================================================================== */
.faq-accordion {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-gold);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.75rem 2.25rem;
    text-align: left;
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: transparent;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-gold);
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--primary-gold);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
    padding: 0 2.25rem 1.75rem 2.25rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    border-top: 1px solid rgba(197, 168, 128, 0.1);
    padding-top: 1.25rem;
}

.faq-answer-inner a {
    color: var(--primary-gold);
    font-weight: 600;
    border-bottom: 1px dotted var(--primary-gold);
}

.faq-answer-inner a:hover {
    color: var(--gold-hover);
    border-bottom-style: solid;
}

/* ==========================================================================
   SECÇÃO: CALL TO ACTION FINAL / COMO AJUDAR
   ========================================================================== */
.section-cta {
    background: radial-gradient(circle at center, var(--bg-card), var(--bg-deep));
    color: var(--text-primary);
    padding: 8rem 0;
}

.cta-inner {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
}

.cta-desc {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

/* Caixa CTA Principal */
.cta-box {
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
    background-color: var(--bg-card);
    border: 1.5px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-gold);
}

/* Progresso da Petição */
.petition-progress-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.petition-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.petition-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-gold);
}

.petition-percent {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.petition-progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.petition-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a45c, #e7c979, #3aa76d);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.petition-progress-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.petition-progress-stats strong {
  color: var(--text-primary);
}

.cta-notice {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 2rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-notice strong {
    color: var(--text-primary);
}

.cta-notice i {
    color: var(--primary-gold);
}

/* Painel de Partilha */
.share-panel {
    border-top: 1px solid var(--gold-border);
    padding-top: 3.5rem;
}

.share-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-gold);
    margin-bottom: 1.75rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--gold-border);
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.share-whatsapp:hover {
    background-color: #1f8b43;
    border-color: #25d366;
}

.share-linkedin:hover {
    background-color: #0b5885;
    border-color: #0077b5;
}

.share-twitter:hover {
    background-color: #121212;
    border-color: #ffffff;
}

.share-facebook:hover {
    background-color: #1153b0;
    border-color: #1877f2;
}

.share-copy:hover {
    background-color: var(--primary-gold);
    color: var(--bg-deep);
}

/* ==========================================================================
   NEWSLETTER NO RODAPÉ (FOOTER)
   ========================================================================== */
.footer-newsletter {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 320px;
}

.footer-newsletter-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold, #c59b27);
    margin: 0 0 0.6rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-newsletter-input-group {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    height: 38px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    box-sizing: border-box;
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--accent-gold, #c59b27);
    box-shadow: 0 0 0 2px rgba(197, 155, 39, 0.2);
}

.footer-newsletter-btn {
    padding: 0 0.85rem;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--accent-gold, #c59b27);
    color: #0f172a;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-newsletter-btn:hover {
    background: #d4a832;
    transform: translateY(-1px);
}

.footer-rgpd-group {
    margin-bottom: 0.25rem;
}

.footer-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
    cursor: pointer;
}

.footer-checkbox-container input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    accent-color: var(--accent-gold, #c59b27);
    flex-shrink: 0;
}

.footer-newsletter-feedback {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.6rem 0.8rem;
    margin-top: 0.6rem;
    border-radius: 8px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.footer-newsletter-feedback.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.footer-newsletter-feedback.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fecaca;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.card-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 991px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.newsletter-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0.75rem 0 1rem 0;
}

.newsletter-description {
    color: var(--text-secondary, #cbd5e1);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.newsletter-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.newsletter-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.newsletter-benefits li i {
    color: var(--accent-gold, #c59b27);
    font-size: 1rem;
}

.newsletter-form-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.75rem;
    backdrop-filter: blur(8px);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.375rem;
}

.form-label .required {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold, #c59b27);
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}

.form-checkbox-group {
    margin-bottom: 1.25rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold, #c59b27);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.btn-block {
    width: 100%;
}

.form-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.form-feedback.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    border-top: 1px solid var(--gold-border);
    padding: 6rem 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 4.5rem;
    padding-bottom: 4.5rem;
}

/* Footer de 4 colunas */
.footer-container-4col {
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: 3rem;
}

.footer-link-highlight {
    color: var(--primary-gold) !important;
    font-weight: 600;
}

.logo-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.logo-img-footer {
    max-height: 110px;
    height: auto;
    width: auto;
    max-width: 100%;
    display: block;
    transition: var(--transition);
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 365px;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Redes Sociais no Footer */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background-color: rgba(197, 168, 128, 0.08);
  color: var(--primary-gold);
  transition: var(--transition);
}

.footer-social a:hover,
.footer-social a:focus {
  background-color: var(--primary-gold);
  color: var(--text-dark);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
}

.footer-social i {
  font-size: 1rem;
}

.footer-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--primary-gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.9rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-gold);
    padding-left: 0.35rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.footer-email i {
    color: var(--primary-gold);
}

.footer-email a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

.footer-peticao-link {
    margin-top: 0.5rem;
}

.link-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-gold);
    font-weight: 700;
    transition: var(--transition);
}

.link-highlight:hover {
    color: var(--gold-hover);
    transform: translateX(4px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2.25rem 0;
    border-top: 1px solid rgba(197, 168, 128, 0.1);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.85rem;
    color: #94a3b8;
}

.sub-copyright {
    font-size: 0.85rem;
    color: #94a3b8;
    opacity: 0.85;
}

/* ==========================================================================
   ANIMAÇÕES CSS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-two-columns {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    :root {
        --header-height: 100px;
    }

    .logo-img {
        max-height: 100px;
        height: auto;
    }

    /* Menu Sanduíche Responsivo */
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-deep);
        padding: 4rem 2rem;
        display: none;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        border-top: 1px solid var(--gold-border);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .nav-link {
        font-size: 1.3rem;
        width: auto;
    }
    
    .btn-header {
        width: 100%;
        max-width: 280px;
        margin-top: 1rem;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .logo-img-footer {
        height: 80px;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    .hero-section {
        padding: 6rem 0 8rem 0;
    }
    
    .hero-section.hero-subpage {
        padding: 4.5rem 0 5.5rem 0;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 340px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-box {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .logo-text {
        font-size: 1.35rem;
    }
    
    .card {
        padding: 2.5rem 1.75rem;
    }
    
    .grid-cards {
        grid-template-columns: 1fr;
    }
    
    .comunicado-card {
        padding: 2.5rem 1.5rem;
    }
    
    .comunicado-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ==========================================================================
   QR CODE STYLES
   ========================================================================== */
.qr-code-wrapper {
    margin: 2.5rem auto 1.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 280px;
    padding: 1.5rem;
    background-color: var(--bg-deep);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.qr-code-wrapper:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.qr-link {
    display: block;
    width: 140px;
    height: 140px;
    padding: 0.5rem;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.qr-link:hover {
    transform: scale(1.05);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* ==========================================================================
   SOBRE O MOVIMENTO & MOBILIZAÇÃO STYLES
   ========================================================================== */
.card-sobre {
    background-color: var(--bg-card);
    border: 1.5px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-sobre:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 25px rgba(197, 168, 128, 0.25);
}

.card-sobre-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    width: 100%;
}

.card-sobre-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background-color: var(--gold-light);
    border: 1px solid var(--gold-border);
    color: var(--primary-gold);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-badge-wa {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.card-sobre-text {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-primary);
}

.card-sobre-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-sobre-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-whatsapp-group {
    background-color: #25d366;
    border-color: #25d366;
    color: #ffffff;
    width: 100%;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-group:hover, .btn-whatsapp-group:focus {
    background-color: #1f8b43;
    border-color: #1f8b43;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.social-channels-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    margin-top: auto;
}

.channels-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-gold);
    margin-bottom: 1.25rem;
}

.channels-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.channel-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gold-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.channel-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-gold);
}

.channel-item.fb:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}

.channel-item.ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    border-color: transparent;
}

.channel-item.email:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--bg-deep);
}



.footer-whatsapp {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-bottom: 1rem;
}

.footer-wa-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.footer-wa-text i {
    color: #25d366;
    margin-right: 0.25rem;
}

/* ==========================================================================
   CAUSA COMUM STYLES & JUSTIFICATION
   ========================================================================== */
.causa-comum-wrapper {
    max-width: 850px;
    margin: 0 auto;
    padding: 1rem 0;
}

.causa-comum-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.causa-comum-card::before {
    content: '\f19c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 8rem;
    color: rgba(197, 168, 128, 0.03);
    pointer-events: none;
}

.causa-comum-text {
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

/* ==========================================================================
   SECÇÃO: CONTACTO
   ========================================================================== */
.section-contacto {
    background: radial-gradient(circle at center, var(--bg-card), var(--bg-deep));
}

.contacto-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
    align-items: start;
}

.contacto-info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-gold);
}

.info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.info-item:last-of-type {
    margin-bottom: 0;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-gold);
    background-color: var(--bg-deep);
    color: var(--primary-gold);
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background-color: var(--primary-gold);
    color: var(--bg-deep);
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.35);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.info-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.link-highlight {
    color: var(--primary-gold);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.link-highlight:hover {
    color: var(--gold-hover);
}

.info-privacy-notice {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background-color: rgba(223, 196, 159, 0.04);
    border: 1px solid rgba(223, 196, 159, 0.12);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-privacy-notice i {
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Formulário genérico */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.form-group label .required {
    color: var(--primary-gold);
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    background-color: var(--bg-deep);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-gold);
    background-color: var(--bg-card);
    box-shadow: 0 0 10px rgba(179, 146, 104, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #f43f5e;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.error-message {
    font-size: 0.8rem;
    color: #f43f5e;
    margin-top: 0.4rem;
    min-height: 18px;
    display: block;
    transition: var(--transition);
}

.btn-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
    width: auto;
    cursor: pointer;
}

.form-feedback {
    margin-top: 0.5rem;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
    display: none;
    font-weight: 500;
}

.form-feedback.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.12);
    border: 1.5px solid #10b981;
    color: #34d399;
}

.form-feedback.error {
    display: block;
    background-color: rgba(244, 63, 94, 0.12);
    border: 1.5px solid #f43f5e;
    color: #fb7185;
}

/* Ajustes de responsividade para o Formulário */
@media (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contacto-form-card {
        padding: 2rem 1.5rem;
    }
    
    .btn-submit {
        width: 100%;
    }
}

/* ==========================================================================
   SECÇÃO: IMPRENSA / NOTÍCIAS
   ========================================================================== */
.section-imprensa {
    background-color: rgba(10, 24, 45, 0.2);
    border-top: 1px solid var(--gold-border);
}

.imprensa-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.imprensa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.imprensa-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-gold);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    transition: var(--transition);
}

.imprensa-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-gold);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.2);
}

.imprensa-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.imprensa-orgao {
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.imprensa-data {
    color: var(--text-muted);
}

.imprensa-headline {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.imprensa-link-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    margin-top: auto;
}

.imprensa-card:hover .imprensa-link-text {
    color: var(--gold-hover);
}

/* ==========================================================================
   CONFORMIDADE LEGAL (RGPD & COOKIES)
   ========================================================================== */

/* Links Legais no Rodapé */
.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.footer-legal-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal-link:hover {
    color: var(--primary-gold);
}

/* Checkbox de Privacidade no Formulário */
.form-group-checkbox {
    margin-top: 0.5rem;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    text-transform: none !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
    letter-spacing: normal !important;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--primary-gold);
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary-gold);
    text-decoration: underline;
    transition: var(--transition);
}

.checkbox-label a:hover {
    color: var(--gold-hover);
}

/* Caixa de Aviso de Privacidade do WhatsApp e Label Opcional */
.whatsapp-notice-box {
    display: none;
    margin-top: -0.75rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
    background-color: rgba(10, 24, 45, 0.4);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.optional-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: none;
    font-weight: 400;
    margin-left: 4px;
    transition: var(--transition);
}

/* Banner de Consentimento de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(10, 24, 45, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--gold-border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.25rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.cookie-banner-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.cookie-banner-title {
    font-family: var(--font-title);
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin: 0;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.cookie-banner-text a {
    color: var(--primary-gold);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--gold-hover);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-banner-actions .btn {
    min-height: 38px;
    padding: 0.58rem 0.75rem;
    font-size: 0.7rem;
}

/* Modal de Preferências de Cookies */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background-color: rgba(5, 13, 26, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.cookie-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.cookie-modal-overlay.show .cookie-modal-card {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    color: var(--primary-gold);
}

.cookie-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-intro {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cookie-modal-option {
    background-color: rgba(5, 13, 26, 0.4);
    border: 1px solid rgba(197, 168, 128, 0.1);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cookie-modal-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-modal-option-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-modal-badge {
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--primary-gold);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.cookie-modal-option-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* Estilo do Interruptor / Switch Toggle */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(148, 163, 184, 0.2);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: rgba(223, 196, 159, 0.2);
    border-color: var(--primary-gold);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(20px);
    background-color: var(--primary-gold);
}

.cookie-switch input:disabled + .cookie-slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-switch input:disabled + .cookie-slider:before {
    background-color: rgba(148, 163, 184, 0.4);
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Responsividade de Rodapé e Banner */
@media (max-width: 992px) {
    .cookie-banner-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer-legal-links {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        padding: 0.75rem 1rem;
    }

    .cookie-banner-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-banner-actions .btn {
        width: 100%;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   OTIMIZAÇÃO DE RESPONSIVIDADE ADICIONAL
   ========================================================================== */

/* Cartão para Páginas Legais (Privacidade, Cookies, Termos) */
.legal-card {
    padding: 4rem 3.5rem;
    line-height: 1.8;
}

/* Redução de Padding e Ajuste de Tipografia em Ecrãs Menores */
@media (max-width: 768px) {
    .legal-card {
        padding: 3rem 2rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1.15rem;
    }
    
    .faq-answer-inner {
        padding: 0 1.5rem 1.25rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .legal-card {
        padding: 2rem 1.25rem;
    }
    
    .faq-question {
        padding: 1rem 1.15rem;
        font-size: 1.05rem;
    }
    
    .faq-answer-inner {
        padding: 0 1.15rem 1rem 1.15rem;
    }
}

/* ==========================================================================
   SECÇÃO ALTERNADA & SECÇÃO: POLÍTICAS LEGAIS
   ========================================================================== */
.section-alt {
    background-color: rgba(10, 24, 45, 0.25);
    border-top: 1px solid var(--gold-border);
    border-bottom: 1px solid var(--gold-border);
}

.section-light-alt {
    background-color: #f1f5f9;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.politicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.politica-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.politica-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-hover);
    box-shadow: var(--shadow-gold-hover);
}

.politica-card i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.politica-card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.politica-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.politica-card span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.politica-card:hover span {
    color: var(--gold-hover);
}


/* ==========================================================================
   HOMEPAGE — SECÇÃO SOBRE O MOVIMENTO
   ========================================================================== */
.section-sobre {
    background-color: var(--bg-deep);
}

.sobre-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.sobre-label {
    margin-bottom: 1.5rem;
}

.sobre-label .separator-gold {
    margin: 1rem auto 0 auto;
}

.sobre-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.sobre-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.sobre-text strong {
    color: var(--text-primary);
}


/* ==========================================================================
   HOMEPAGE — SECÇÃO MENSAGENS (DOIS CARTÕES)
   ========================================================================== */
.section-mensagens {
    background-color: var(--bg-deep);
}

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

.mensagem-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.mensagem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.6;
    transition: var(--transition);
}

.mensagem-card:hover {
    border-color: rgba(197, 168, 128, 0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-hover);
}

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

.mensagem-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.mensagem-card-tag {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--subtitle-gold);
}

.mensagem-card-title {
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.mensagem-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex-grow: 1;
}

.mensagem-card-btn {
    margin-top: 0.5rem;
    align-self: flex-start;
}

/* Override para o botão outline em fundo escuro -> Otimizado para Bege Sólido */
.btn-outline-light {
    background-color: var(--primary-gold);
    color: var(--text-dark);
    border: 1px solid var(--primary-gold);
    padding: 0.75rem 1.75rem;
    font-size: 0.85rem;
    box-shadow: var(--shadow-gold);
}

.btn-outline-light:hover, .btn-outline-light:focus {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

/* Botão outline dourado em fundo claro -> Otimizado para Bege Sólido */
.btn-outline-gold {
    background-color: var(--primary-gold);
    color: var(--text-dark);
    border: 1px solid var(--primary-gold);
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
    box-shadow: var(--shadow-gold);
}

.btn-outline-gold:hover, .btn-outline-gold:focus {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-hover);
}

@media (max-width: 768px) {
    .mensagens-grid {
        grid-template-columns: 1fr;
    }

    .sobre-title {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   PAGE HERO (Páginas internas: comunicado.html, faq.html)
   ========================================================================== */
.page-hero {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-card) 100%);
    padding: 4rem 0 3rem 0;
    border-bottom: 1px solid var(--gold-border);
    margin-top: 0;
}



.page-hero-content {
    max-width: 820px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold-hover);
}

.breadcrumb i {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.page-hero-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 680px;
    margin-bottom: 2rem;
}

/* Navegação interna da página Comunicado */
.comunicado-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.comunicado-nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.comunicado-nav-link:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    background: var(--gold-light);
}

/* Estado activo do tab seleccionado */
.comunicado-nav-link.active {
    color: #050d1a;
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    font-weight: 700;
}

/* Botão "Ver Todos os Comunicados" */
.comunicado-nav-link.ver-todos {
    color: var(--text-muted);
    border-style: dashed;
}

.comunicado-nav-link.ver-todos:hover,
.comunicado-nav-link.ver-todos.active {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    border-style: solid;
    background: var(--gold-light);
}

/* Secção oculta quando filtrada */
.comunicado-section-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .page-hero-title {
        font-size: 2rem;
    }
    .page-hero {
        padding: 3rem 0 2rem 0;
    }
}


/* ==========================================================================
   COMUNICADO — LAYOUT EDITORIAL
   ========================================================================== */
.comunicado-editorial-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3.5rem;
    align-items: start;
    max-width: 1100px;
}

.editorial-block {
    padding: 0;
}

.editorial-block p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.editorial-block p strong {
    color: var(--text-primary);
}

.editorial-block h3 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.editorial-cta {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gold-border);
}

@media (max-width: 900px) {
    .comunicado-editorial-wrapper {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   COMUNICADO — MENSAGEM EDITORIAL (Funcionários / Cidadãos)
   ========================================================================== */
.mensagem-editorial {
    max-width: 860px;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mensagem-editorial-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem 3rem 2rem 3rem;
    background: linear-gradient(135deg, rgba(197,168,128,0.07), rgba(197,168,128,0.03));
    border-bottom: 1px solid var(--gold-border);
}

.mensagem-editorial-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.mensagem-editorial-header h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.mensagem-editorial-lead {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.mensagem-editorial-body {
    padding: 2.5rem 3rem;
}

.mensagem-editorial-body p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.4rem;
}

.mensagem-editorial-body p strong {
    color: var(--text-primary);
}

.mensagem-editorial-body h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--gold-border);
}

.editorial-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.editorial-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.editorial-list li i {
    color: var(--primary-gold);
    font-size: 0.9rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.editorial-list li strong {
    color: var(--text-primary);
}

.mensagem-closing {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gold-border);
    font-size: 0.95rem !important;
}

.mensagem-editorial-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 2rem 3rem 2.5rem 3rem;
    border-top: 1px solid var(--gold-border);
    background: linear-gradient(135deg, rgba(197,168,128,0.05), transparent);
}

@media (max-width: 768px) {
    .mensagem-editorial-header {
        flex-direction: column;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    .mensagem-editorial-body {
        padding: 1.5rem 1.5rem;
    }
    .mensagem-editorial-cta {
        padding: 1.5rem;
        flex-direction: column;
    }
    .mensagem-editorial-cta .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   NAV LINK ACTIVE (para páginas internas)
   ========================================================================== */
.nav-link-active {
    color: var(--primary-gold) !important;
    font-weight: 700;
}

.nav-link-active::after {
    width: 100% !important;
    background-color: var(--primary-gold) !important;
}


/* ==========================================================================
   FAQ PAGE STYLES
   ========================================================================== */
.faq-page-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.faq-featured-answer {
    max-width: 860px;
    margin: 0 auto 2.25rem;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(179, 146, 104, 0.35);
    border-left: 4px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fb 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.faq-featured-answer h2 {
    margin: 0.35rem 0 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.25;
}

.faq-featured-answer p {
    margin: 0.65rem 0 0;
    color: var(--text-muted);
    line-height: 1.75;
}

@media (max-width: 640px) {
    .faq-featured-answer {
        padding: 1.35rem 1.15rem;
    }
}

/* ==========================================================================
   STANDALONE ARTICLE PAGE
   ========================================================================== */
.article-page {
    background: #f8fafd;
}

.article-content-section {
    background: #f8fafd;
}

.article-content-container {
    max-width: 920px;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(179, 146, 104, 0.25);
}

.article-byline img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
}

.article-author,
.article-role,
.article-byline time {
    margin: 0.15rem 0;
}

.article-author {
    color: var(--text-primary);
    font-weight: 700;
}

.article-role,
.article-byline time {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    color: #334155;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.85;
}

.article-body p {
    margin: 0 0 1.55rem;
}

.article-body .article-lead {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.75;
}

.article-cta-card {
    max-width: 760px;
    margin: 3rem auto 0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #0a182d;
    color: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-gold);
}

.article-cta-card h2 {
    margin: 0 0 0.65rem;
    font-family: var(--font-title);
}

.article-cta-card p {
    margin: 0 auto 1.25rem;
    max-width: 580px;
    color: #cbd5e1;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .article-byline {
        margin-bottom: 1.75rem;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.75;
    }

    .article-body .article-lead {
        font-size: 1.12rem;
    }

    .article-cta-card {
        padding: 1.5rem 1.2rem;
    }
}


/* ==========================================================================
   SECTION LIGHT ALT (páginas internas)
   ========================================================================== */
.section-light-alt {
    background-color: #f8fafd;
}

/* Tema claro para page-faq — fundo branco como os comunicados */
.page-faq {
    --bg-deep: #f8fafd;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --primary-gold: #b39268;
    --gold-hover: #9c7b52;
    --gold-border: rgba(179, 146, 104, 0.25);
    --shadow-gold: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-gold-hover: 0 10px 30px rgba(15, 23, 42, 0.10);
    background-color: #f8fafd;
}

.page-faq .section-light-alt {
    background-color: #f0f4f8;
}

.page-faq .section {
    background-color: #f8fafd;
}

/* Cartões do acordeão FAQ em fundo branco com borda suave */
.page-faq .faq-item {
    background-color: #ffffff;
    border: 1px solid rgba(179, 146, 104, 0.22);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.page-faq .faq-item:hover {
    border-color: #b39268;
    box-shadow: 0 4px 20px rgba(179, 146, 104, 0.15);
}

.page-faq .faq-question {
    color: #0f172a;
}

.page-faq .faq-question:hover {
    color: #b39268;
}

.page-faq .faq-answer-inner {
    color: #475569;
    border-top-color: rgba(179, 146, 104, 0.15);
}

/* Cabeçalho de secção em fundo claro */
.page-faq .section-title {
    color: #0f172a;
}

.page-faq .section-desc {
    color: #475569;
}

/* Garantir que a secção CTA mantém o seu fundo escuro */
.page-faq .section-cta {
    --bg-deep: #050d1a;
    --bg-card: #0a182d;
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --primary-gold: #dfc49f;
    --subtitle-gold: #dfc49f;
}


/* ==========================================================================
   BOTÃO FLUTUANTE — JUNTAR-SE AO MOVIMENTO
   ========================================================================== */
.join-floating {
  position: relative; /* Positioned inside .floating-actions-group */
  z-index: 1300;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1rem;
  overflow: hidden;
  background-color: var(--primary-gold);
  color: var(--text-dark);
  border: 1px solid var(--primary-gold);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(197, 168, 128, 0.28);
  transition: width 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
  white-space: nowrap;
  text-decoration: none;
}

.join-floating i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.join-floating-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: max-width 0.28s ease, opacity 0.2s ease;
}

.join-floating:hover,
.join-floating:focus {
  width: 280px;
  justify-content: flex-start;
  box-shadow: 0 14px 34px rgba(197, 168, 128, 0.38);
  transform: translateX(-2px); /* Shift left on expand */
}

.join-floating:hover .join-floating-text,
.join-floating:focus .join-floating-text {
  max-width: 220px;
  opacity: 1;
}


/* ==========================================================================
   PÁGINA DE CONTACTO — contacto.html
   ========================================================================== */


.contacto-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
}

/* Cartão de informações de contacto */
.contacto-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.contacto-info-item:hover {
    border-color: rgba(197,168,128,0.5);
    transform: translateY(-2px);
}

.contacto-info-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contacto-info-content h4 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.contacto-info-content p,
.contacto-info-content a {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contacto-info-content a:hover {
    color: var(--primary-gold);
}

.contacto-privacy-note {
    padding: 1.25rem 1.5rem;
    background: rgba(197,168,128,0.05);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.contacto-privacy-note i {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.contacto-privacy-note p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.contacto-privacy-note p strong {
    color: var(--text-primary);
}

/* Cartão do formulário */
.contacto-form-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contacto-form-header {
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid var(--gold-border);
    background: linear-gradient(135deg, rgba(197,168,128,0.07), rgba(197,168,128,0.02));
}

.contacto-form-header h2 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.contacto-form-header p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.contacto-form-body {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
}

/* Texto editorial nas páginas de contacto */
.contact-editorial-text {
    max-width: 72ch;
}

.contact-editorial-text p {
    text-align: justify;
    line-height: 1.85;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.contact-editorial-text p strong {
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .contacto-page-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contacto-form-header,
    .contacto-form-body {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   FAIXA DE DESTAQUE / ESTADO DA MOBILIZAÇÃO (PETITION STRIP)
   ========================================================================== */
.petition-strip {
  position: relative;
  z-index: 100;
  width: 100%;
  background: linear-gradient(90deg, #b89765 0%, #d8c29d 50%, #b89765 100%);
  border-bottom: 1px solid rgba(11, 23, 42, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0;
  color: #0b172a;
}

.petition-strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.1rem 1rem;
  position: relative;
}

/* Audio trigger option in petition strip */
.petition-strip-audio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #0b172a !important;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.petition-strip-audio:hover {
  background: linear-gradient(135deg, #2d4a7a, #3d5a9a) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.petition-strip-audio:active {
  transform: translateY(0);
}

.petition-strip-audio i {
  color: #FFFFFF !important;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

@keyframes soft-attention-vibrate {
  0%, 80%, 100% { transform: scale(1) rotate(0deg); }
  83% { transform: scale(1.04) rotate(-3deg); }
  86% { transform: scale(1.04) rotate(3deg); }
  89% { transform: scale(1.04) rotate(-3deg); }
  92% { transform: scale(1.04) rotate(3deg); }
  95% { transform: scale(1.04) rotate(0deg); }
}

.petition-strip-audio:hover i {
  transform: scale(1.15);
}

/* Play state active visual indication */
.petition-strip-audio.playing {
  background: #10B981 !important; /* Emerald green color when playing */
}

.petition-strip-audio.playing i {
  color: #FFFFFF !important;
  animation: pulse-audio 1.5s infinite ease-in-out;
}

@keyframes pulse-audio {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); }
}

.petition-strip-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #e2e8f0;
  text-align: center;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.petition-strip-text #contador-assinaturas {
  font-weight: 900;
  color: #fbbf24;
}

/* Visibility toggles for responsive layouts */
.petition-desktop-only {
  display: block !important;
}
.petition-mobile-only {
  display: none !important;
}

.petition-strip-data {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.petition-strip-item {
  font-size: 0.78rem;
  color: #e2e8f0 !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.015em;
}

.petition-strip-item * {
  color: #e2e8f0 !important;
}

.petition-strip-value {
  font-weight: 900 !important;
  color: #fbbf24 !important;
}

.petition-strip-divider {
  color: rgba(255, 255, 255, 0.3) !important;
  font-size: 1rem;
  font-weight: 900 !important;
}

.text-update-note {
  font-size: 0.72rem;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

.text-update-note i {
  color: #94a3b8 !important;
}

.spinner-slow {
  animation: fa-spin 8s infinite linear;
}

@media (max-width: 768px) {
  .petition-desktop-only {
    display: none !important;
  }
  .petition-mobile-only {
    display: flex !important;
  }

  .petition-strip {
    background: #050d1a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid var(--gold-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .petition-strip-inner {
    min-height: 27px;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .petition-strip-compact-info {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    white-space: normal;
  }

  .petition-strip-label,
  .petition-strip-pct {
    color: #e2e8f0;
    font-size: 0.74rem;
  }

  .petition-strip-label strong,
  .petition-strip-pct {
    color: #fbbf24;
  }

  .petition-strip-track {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-width: 100%;
  }

  .btn-share-strip {
    min-height: 40px;
    padding: 0.45rem 0.9rem;
  }

  .petition-strip-audio {
    margin-bottom: 0.1rem;
    width: fit-content;
    justify-content: center;
  }

  .petition-strip-data {
    gap: 0.5rem 1.2rem;
    justify-content: center;
  }

  .petition-strip-item {
    font-size: 0.8rem;
  }

  .petition-strip-divider {
    display: none;
  }

  .text-update-note {
    font-size: 0.76rem;
    width: 100%;
    justify-content: center;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.4rem;
  }
}

/* Justificar apenas texto corrido */
p,
li,
.section-desc,
.card-text,
.benefit-text,
.section-paragraph,
.quote-text,
.comunicado-card p,
.comunicado-card li,
.faq-answer,
.footer-brand p,
.footer-links p {
  text-align: justify;
  text-justify: inter-word;
}

/* Manter sem justificação elementos de interface */
.hero-title,
.hero-subtitle,
.section-title,
.section-subtitle,
.nav-link,
.btn,
.logo-text,
.petition-strip-text,
.pillar-tag,
.card-title,
.benefit-title,
.benefit-number,
.comunicado-header,
.footer-bottom,
.copyright,
.sub-copyright,
.footer-social,
.footer-social a {
  text-align: inherit;
}

/* Secção em construção */
.construction-box {
  max-width: 780px;
  margin: 3rem auto 0 auto;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold);
  text-align: center;
}

.construction-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.10);
  color: var(--primary-gold);
  font-size: 1.6rem;
  border: 1px solid var(--gold-border);
}

.construction-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.construction-text {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width: 768px) {
  .construction-box {
    padding: 2.25rem 1.25rem;
    margin-top: 2rem;
  }

  .construction-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   SECÇÃO: IMPRENSA / NOTÍCIAS
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    height: 100%;
}

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

.news-source-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.news-source {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-gold);
    background-color: rgba(197, 168, 128, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.8rem;
}

.news-link {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto;
}

.news-link:hover {
    color: var(--gold-hover);
}

.news-link i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.news-link:hover i {
    transform: translateX(3px);
}

.news-link-disabled {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .news-card {
        padding: 1.75rem;
    }
}

/* ==========================================================================
   SECÇÃO: PRÓXIMOS PASSOS
   ========================================================================== */
.section-proximos-passos {
    background-color: #ffffff;
}

/* No tema escuro da página comunicado, forçar fundo e cores claras */
.page-comunicado .section-proximos-passos {
    background-color: #f8fafd;
}

.page-comunicado .proximos-passos-body p,
.page-comunicado .proximos-passos-list li {
    color: #475569 !important;
}

.page-comunicado .proximos-passos-highlight-text strong,
.page-comunicado .proximos-passos-status-card h4,
.page-comunicado .pp-done .pp-timeline-content strong {
    color: #0f172a !important;
}

.page-comunicado .proximos-passos-quote p {
    color: #334155 !important;
}

.proximos-passos-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3.5rem;
    align-items: start;
}

/* Bloco de destaque / anúncio */
.proximos-passos-highlight {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(179,146,104,0.08), rgba(179,146,104,0.04));
    border: 1px solid rgba(179, 146, 104, 0.3);
    border-left: 4px solid #b39268;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.proximos-passos-highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(179, 146, 104, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #b39268;
    font-size: 1.3rem;
}

.proximos-passos-highlight-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.proximos-passos-highlight-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.proximos-passos-highlight-text span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b39268;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Corpo editorial */
.proximos-passos-body p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.proximos-passos-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.proximos-passos-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #334155;
    font-size: 0.97rem;
    line-height: 1.5;
}

.proximos-passos-list li i {
    color: #b39268;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Citação final */
.proximos-passos-quote {
    border-left: 3px solid #b39268;
    margin: 2rem 0 0 0;
    padding: 1.25rem 1.5rem;
    background: rgba(179, 146, 104, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.proximos-passos-quote p {
    font-style: italic;
    color: #334155 !important;
    font-size: 0.97rem !important;
    line-height: 1.7 !important;
    margin-bottom: 0.5rem !important;
}

.proximos-passos-quote cite {
    font-size: 0.85rem;
    color: #b39268;
    font-weight: 600;
    font-style: normal;
}

/* Card lateral de estado / timeline */
.proximos-passos-status-card {
    background: #ffffff;
    border: 1px solid rgba(179, 146, 104, 0.25);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    position: sticky;
    top: 160px;
}

.page-comunicado .proximos-passos-status-card {
    background: #ffffff;
}

.proximos-passos-status-card h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.proximos-passos-status-card h4 i {
    color: #b39268;
}

/* Timeline */
.proximos-passos-timeline {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pp-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.25rem;
    position: relative;
}

.pp-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: rgba(179, 146, 104, 0.2);
}

.pp-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    border: 2px solid;
}

.pp-done .pp-timeline-dot {
    background: #b39268;
    border-color: #b39268;
}

.pp-active .pp-timeline-dot {
    background: #ffffff;
    border-color: #b39268;
    box-shadow: 0 0 0 3px rgba(179, 146, 104, 0.25);
    animation: pp-pulse 2s ease-in-out infinite;
}

.pp-pending .pp-timeline-dot {
    background: #ffffff;
    border-color: rgba(179, 146, 104, 0.35);
}

@keyframes pp-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(179, 146, 104, 0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(179, 146, 104, 0.12); }
}

.pp-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pp-timeline-content strong {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.pp-done .pp-timeline-content strong  { color: #0f172a; }
.pp-active .pp-timeline-content strong { color: #b39268; }
.pp-pending .pp-timeline-content strong { color: #94a3b8; }

.pp-timeline-content span {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

.proximos-passos-cta {
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .proximos-passos-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .proximos-passos-status-card {
        position: static;
    }
}

/* ==========================================================================
   SECTOR DE MOBILIZAÇÃO E CONTADOR INTELIGENTE (BATERIA)
   ========================================================================== */
.section-progresso {
    background-color: #050d1a;
    color: #ffffff;
    padding: 5rem 0;
    position: relative;
    border-bottom: 1px solid rgba(197, 168, 128, 0.1);
}

.mobilizacao-dashboard {
    max-width: 800px;
    margin: 3rem auto 0;
}

.mobilizacao-card {
    background: rgba(10, 24, 45, 0.6);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.mobilizacao-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.mobilizacao-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-gold);
}

.stat-value.text-gold {
    color: #e7c979;
}

/* Battery design */
.battery-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.battery-outer {
    flex-grow: 1;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--text-muted);
    border-radius: 12px;
    padding: 4px;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(197, 168, 128, 0.1);
}

.battery-inner {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.battery-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a45c, #e7c979, #3aa76d);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 20px rgba(58, 167, 109, 0.4);
    transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.battery-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.battery-cap {
    width: 10px;
    height: 24px;
    background: var(--text-muted);
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0 4px 4px 0;
}

.battery-percentage {
    font-size: 2rem;
    font-weight: 800;
    color: #3aa76d;
    min-width: 100px;
    text-align: right;
    font-family: monospace;
}

.mobilizacao-copy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.pulse-gold {
    color: var(--primary-gold);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        text-shadow: 0 0 10px var(--primary-gold);
    }
}

@media (max-width: 768px) {
    .mobilizacao-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .mobilizacao-card {
        padding: 2rem 1.5rem;
    }
    .battery-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    .battery-percentage {
        text-align: center;
        min-width: auto;
    }
    .battery-outer {
        width: 100%;
    }
}

/* ==========================================================================
   MÓDULO 2 — CHATBOT LATERAL DESLIZANTE (AI DRAWER)
   ========================================================================== */
.ai-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000; /* Higher than headers (9999), cookie banners (9999), and floating buttons (99999) */
    display: none; /* Changed from flex to none to prevent layout overflow/margins when closed */
    justify-content: flex-end;
    visibility: hidden;
    transition: visibility 0.4s;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden;
}

.ai-drawer[aria-hidden="false"] {
    display: flex;
    visibility: visible;
}

.ai-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ai-drawer[aria-hidden="false"] .ai-drawer-overlay {
    opacity: 1;
}

.ai-drawer-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: #0a182d;
    border-left: 1px solid var(--gold-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
}

.ai-drawer[aria-hidden="false"] .ai-drawer-content {
    transform: translateX(0);
}

.ai-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-family: var(--font-title);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-drawer-header h3 i {
    font-size: 1.15rem;
}

.ai-drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: var(--transition);
}

.ai-drawer-close:hover {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.ai-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-drawer-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-gold);
    line-height: 1.4;
}

.ai-drawer-chat {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
}

.chat-message.ai-message {
    align-self: flex-start;
}

.chat-message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
    max-width: 80%;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.ai-message .message-avatar {
    background: rgba(197, 168, 128, 0.1);
    color: var(--primary-gold);
    border: 1px solid var(--gold-border);
}

.user-message .message-avatar {
    background: var(--primary-gold);
    color: var(--text-dark);
}

.message-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f1f5f9;
    word-break: break-word;
}

.ai-message .message-content {
    border-top-left-radius: 2px;
}

.user-message .message-content {
    background: rgba(197, 168, 128, 0.08);
    border-color: rgba(197, 168, 128, 0.2);
    color: #ffffff;
    border-top-right-radius: 2px;
}

.ai-typing-placeholder {
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-typing-placeholder::after {
    content: '';
    width: 4px;
    height: 4px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 8px 0 0 var(--primary-gold), 16px 0 0 var(--primary-gold);
    animation: typingDots 1.4s infinite;
    margin-left: 2px;
}

@keyframes typingDots {
    0%, 100% { opacity: 0.2; }
    20% { opacity: 1; }
}

.ai-drawer-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.ai-drawer-suggestions h4 {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.suggestions-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.drawer-suggestion-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.drawer-suggestion-chip:hover {
    background: rgba(197, 168, 128, 0.08);
    border-color: var(--primary-gold);
    color: #ffffff;
    transform: translateY(-1px);
}

.ai-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    display: flex;
    gap: 0.75rem;
    background: #071222;
}

.ai-drawer-footer input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.ai-drawer-footer input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 8px rgba(197, 168, 128, 0.25);
}

.btn-send {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Grupo de Botões Flutuantes Laterais */
.floating-actions-group {
    position: fixed;
    right: 1rem;
    top: 58%;
    transform: translateY(-50%);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px; /* Closely stacked to feel like a unified premium module */
    pointer-events: none; /* Ignore clicks on empty container areas */
}

.floating-actions-group > * {
    pointer-events: auto; /* Re-enable pointer events on the buttons themselves */
}

/* Floating trigger button */
.ai-drawer-trigger {
    position: relative; /* Positioned inside .floating-actions-group */
    z-index: 1300;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d, #2d4a7a) !important; /* Blue gradient matching Assinar Petição */
    color: #ffffff !important;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-drawer-trigger:hover,
.ai-drawer-trigger:focus {
    background: linear-gradient(135deg, #2d4a7a, #3d5a9a) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(26, 54, 93, 0.38) !important;
    transform: scale(1.05); /* Grow slightly on hover */
}

.ai-drawer-trigger i {
    font-size: 1.25rem;
    color: #ffffff !important;
}

/* Tooltip styles */
.ai-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #0f172a;
    color: #ffffff;
    border: 1.5px solid var(--gold-border);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
    letter-spacing: 0.02em;
}

.ai-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0f172a;
}

.ai-drawer-trigger:hover .ai-tooltip,
.ai-drawer-trigger:focus .ai-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 991px) {
    .ai-drawer-content {
        max-width: 100%;
    }
    
    .floating-actions-group {
        position: fixed !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        top: 60% !important; /* Vertically centered on the right side */
        bottom: auto !important;
        right: 0.75rem !important; /* Tighter padding for mobile/tablet screen edges */
        transform: translateY(-50%) !important;
        gap: 8px !important; /* Elegant spacing for touch screens */
        z-index: 99999 !important; /* Force visibility above all bottom banners, footers and safari bars */
        pointer-events: none !important; /* Ignore clicks on empty container areas */
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ai-drawer-trigger,
    .join-floating {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #0a182d !important; /* Standardized navy blue background */
        color: var(--primary-gold) !important; /* Standardized gold icon color */
        border: 1.5px solid var(--primary-gold) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
        transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, background-color 0.24s ease !important;
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ai-drawer-trigger i,
    .join-floating i {
        font-size: 1.15rem !important;
        color: var(--primary-gold) !important; /* Force icon color */
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Disable hover expansion for join-floating on touch screens */
    .join-floating:hover,
    .join-floating:focus {
        width: 50px !important;
        transform: translateY(-3px) scale(1.03) !important;
        box-shadow: 0 12px 30px rgba(197, 168, 128, 0.35) !important;
        justify-content: center !important;
    }

    .join-floating-text {
        display: none !important;
        max-width: 0 !important;
        opacity: 0 !important;
    }

    .ai-drawer-trigger:hover,
    .ai-drawer-trigger:focus {
        transform: translateY(-3px) scale(1.03) !important;
        box-shadow: 0 12px 30px rgba(197, 168, 128, 0.35) !important;
    }
    
    .ai-tooltip {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .floating-actions-group {
        top: auto !important;
        bottom: 1.5rem !important;
        right: 1rem !important;
        transform: none !important;
    }
    
    body.cookie-banner-active .floating-actions-group {
        bottom: 230px !important;
    }
}

@media (max-width: 576px) {
    body.cookie-banner-active .floating-actions-group {
        bottom: 330px !important;
    }
}


/* ==========================================================================
   COMUNICADO DE IMPRENSA — PRESS RELEASE STYLES
   ========================================================================== */

.section-press-release {
    --color-dark: #050d1a;
    --color-gold: var(--primary-gold);
    background: var(--bg-deep);
    padding: 5rem 0;
}

.press-release-wrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--gold-border);
    overflow: hidden;
}

.press-release-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.8rem 2.5rem 1.4rem;
    background: var(--color-dark);
    border-bottom: 3px solid var(--color-gold);
}

.press-release-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.press-release-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.press-release-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(184, 142, 66, 0.12);
    border: 1px solid rgba(184, 142, 66, 0.35);
    border-radius: 3px;
    padding: 0.3rem 0.75rem;
}

.press-release-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}

.press-release-title-block {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.press-release-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.press-release-subtitle {
    font-size: 1rem;
    color: #555;
    line-height: 1.65;
    font-style: italic;
    border-left: 3px solid var(--color-gold);
    padding-left: 1rem;
    margin: 0;
}

.press-release-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 0 2.5rem;
}

.press-release-body {
    padding: 2rem 2.5rem;
    font-size: 1rem;
    line-height: 1.85;
    color: #2a2a2a;
}

.press-release-body p {
    margin-bottom: 1.4rem;
}

.press-release-body p:last-child {
    margin-bottom: 0;
}

.press-release-closing {
    margin: 0 2.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f6f0 0%, #fefcf7 100%);
    border-left: 4px solid var(--color-gold);
    border-radius: 0 4px 4px 0;
}

.press-release-closing p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-dark);
    margin: 0;
}

.press-release-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.8rem 2.5rem 2.2rem;
    background: #fafafa;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.press-release-footer-info {
    flex: 1;
    min-width: 200px;
}

.press-release-contact,
.press-release-petition-note {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.press-release-contact i,
.press-release-petition-note i {
    color: var(--color-gold);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.press-release-contact a,
.press-release-petition-note a {
    color: var(--color-primary);
    text-decoration: underline;
}

.press-release-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.comunicado-subsection {
    margin-top: 4.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--gold-border);
    scroll-margin-top: 2rem;
}

.comunicado-subsection-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.comunicado-subsection-kicker,
.external-publication-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.comunicado-subsection-title {
    max-width: 720px;
    margin: 0.65rem 0 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    line-height: 1.18;
}

.comunicado-subsection-desc {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

.comunicado-subsection-source {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    padding-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: var(--transition);
}

.comunicado-subsection-source i {
    color: var(--primary-gold);
    font-size: 0.75rem;
}

.comunicado-subsection-source:hover {
    color: var(--primary-gold);
}

.external-publication-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-gold);
}

.external-publication-visual {
    position: relative;
    display: flex;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem;
    background: linear-gradient(145deg, #06162e 0%, #0c274b 58%, #17365e 100%);
}

.external-publication-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    transition: transform 0.45s ease;
}

.external-publication-visual:hover .external-publication-image {
    transform: scale(1.02);
}

.external-publication-overlay {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    color: #ffffff;
    background: rgba(5, 13, 26, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition);
}

.external-publication-visual:hover .external-publication-overlay,
.external-publication-visual:focus-visible .external-publication-overlay {
    opacity: 1;
    transform: translateY(0);
}

.external-publication-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem clamp(2rem, 5vw, 4rem);
}

.external-publication-title {
    margin: 0.7rem 0 1rem;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.25;
}

.external-publication-text {
    max-width: 52ch;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

.external-publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin: 1.8rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.external-publication-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.external-publication-meta i {
    color: var(--primary-gold);
}

.external-publication-cta {
    margin-top: auto;
}

@media (max-width: 768px) {
    .press-release-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.4rem 1.5rem 1.2rem;
    }

    .press-release-meta {
        align-items: flex-start;
    }

    .press-release-title-block,
    .press-release-body {
        padding: 1.5rem 1.5rem;
    }

    .press-release-divider {
        margin: 0 1.5rem;
    }

    .press-release-closing {
        margin: 0 1.5rem;
        padding: 1.2rem 1.25rem;
    }

    .press-release-footer {
        flex-direction: column;
        padding: 1.4rem 1.5rem 1.8rem;
    }

    .press-release-actions {
        width: 100%;
    }

    .press-release-actions .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .comunicado-subsection {
        margin-top: 3.25rem;
        padding-top: 2.5rem;
    }

    .comunicado-subsection-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .comunicado-subsection-source {
        padding-bottom: 0;
    }

    .external-publication-card {
        grid-template-columns: 1fr;
    }

    .external-publication-visual {
        min-height: 0;
        padding: 1rem;
    }

    .external-publication-image {
        max-height: none;
    }

    .external-publication-overlay {
        opacity: 1;
        transform: none;
    }

    .external-publication-content {
        padding: 2rem 1.5rem 2.25rem;
    }
}

/* ==========================================================================
   ÁREA PESSOAL & LOGIN PORTAL STYLES
   ========================================================================== */
.login-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 0 4rem 0;
}

.login-card {
    background-color: #ffffff !important;  /* Sempre branco, independente do tema */
    border: 1px solid rgba(179, 146, 104, 0.3) !important;
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.12) !important;
    transition: var(--transition);
    /* Forçar variáveis de tema claro no interior do card */
    --bg-deep: #f0f4f8;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --primary-gold: #b39268;
    --gold-hover: #9c7b52;
    --gold-border: rgba(179, 146, 104, 0.35);
}

.login-card:hover {
    box-shadow: var(--shadow-gold-hover);
    border-color: var(--primary-gold);
}

.login-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.login-avatar-icon {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.login-header h2 {
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.development-notice {
    display: flex;
    gap: 1rem;
    background: var(--gold-light);
    border: 1px solid var(--gold-border);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.25rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.development-notice i {
    color: var(--primary-gold);
    font-size: 1.25rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.development-notice p {
    margin: 0;
}

.form-group {
    margin-bottom: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group .input-wrapper input[type="text"],
.form-group .input-wrapper input[type="email"],
.form-group .input-wrapper input[type="password"] {
    width: 100% !important;
    padding: 0.9rem 1.25rem 0.9rem 3.25rem !important;
    background-color: #f0f4f8 !important;  /* Fundo claro forçado independente do tema */
    border: 1.5px solid rgba(179, 146, 104, 0.4) !important;
    border-radius: var(--radius-md) !important;
    color: #0f172a !important;             /* Texto escuro forçado para legibilidade */
    font-size: 1rem !important;
    box-shadow: none !important;
    transition: var(--transition) !important;
    -webkit-appearance: none;
    appearance: none;
}

.form-group .input-wrapper input::placeholder {
    color: #64748b !important;  /* Placeholder cinza médio visível em fundo claro */
    opacity: 1 !important;
}

.form-group .input-wrapper input[type="text"]:focus,
.form-group .input-wrapper input[type="email"]:focus,
.form-group .input-wrapper input[type="password"]:focus {
    border-color: #b39268 !important;  /* Dourado institucional */
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(179, 146, 104, 0.2) !important;
    background-color: #ffffff !important;  /* Branco no foco */
}

.input-icon {
    position: absolute;
    left: 1.15rem;
    color: #b39268 !important;  /* Dourado forçado para contraste em fundo claro */
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 1;
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
}

.remember-me input {
    accent-color: var(--primary-gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password-link:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gold-border);
}

.login-divider::before {
    margin-right: 1.25rem;
}

.login-divider::after {
    margin-left: 1.25rem;
}

.register-prompt {
    text-align: center;
}

.register-prompt p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .login-card {
        padding: 2.5rem 1.75rem;
    }
    
    .form-actions-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media print {
    .site-header,
    .petition-strip,
    .page-hero,
    .comunicado-nav,
    .press-release-actions,
    .ai-drawer,
    .ai-drawer-trigger,
    .floating-actions-group,
    .join-floating,
    .cookie-banner,
    .site-footer,
    .btn,
    .print-hide {
        display: none !important;
    }

    /* Se um comunicado específico for selecionado para impressão */
    body.is-printing-specific section:not(:has(.print-target)),
    body.is-printing-specific .press-release-wrapper:not(.print-target),
    body.is-printing-specific .comunicado-card:not(.print-target) {
        display: none !important;
    }

    body.is-printing-specific .print-target {
        display: block !important;
        background: white !important;
        color: #1a1a1a !important;
        box-shadow: none !important;
        padding: 1.5rem !important;
        margin: 0 !important;
    }

    .press-release-wrapper {
        background: white !important;
        color: #1a1a1a !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .press-release-header {
        background: #050d1a !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .press-release-body {
        font-size: 11pt !important;
        line-height: 1.7 !important;
        color: #1a1a1a !important;
    }
}

@media (max-width: 576px) {
    .press-release-title {
        font-size: 16pt;
    }
}

/* ==========================================================================
   DASHBOARD / ÁREA PESSOAL STYLES
   ========================================================================== */
#ap-dashboard {
    background: #f8fafd;
    min-height: calc(100vh - 80px);
    padding-bottom: 4rem;
}

.dash-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    position: sticky;
    top: 80px; /* Below the main navbar */
    z-index: 90;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.dash-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-title);
    font-weight: 600;
    color: #0f172a;
}

.dash-topbar-left i {
    color: var(--primary-gold);
}

.dash-badge {
    background: var(--primary-gold);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dash-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.dash-logout-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.dash-logout-btn:hover {
    background: #fef2f2;
}

.dash-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2.5rem;
}

.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.dash-welcome h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.dash-name {
    color: var(--primary-gold);
}

.dash-welcome p {
    color: #64748b;
    font-size: 1.05rem;
}

.dash-welcome-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-metric-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.dash-metric-primary {
    border-color: rgba(179, 146, 104, 0.3);
    background: linear-gradient(to bottom right, #ffffff, #fdfbfa);
}

.dash-metric-icon {
    background: #f1f5f9;
    color: #3b82f6;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.dash-metric-primary .dash-metric-icon {
    background: rgba(179, 146, 104, 0.1);
    color: var(--primary-gold);
}

.dash-metric-body {
    display: flex;
    flex-direction: column;
}

.dash-metric-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dash-metric-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-title);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.dash-metric-sub {
    font-size: 0.8rem;
    color: #94a3b8;
}

.dash-metric-sub strong {
    color: #10b981;
}

.dash-progress-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.dash-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.dash-progress-pct {
    color: var(--primary-gold);
    font-size: 1.25rem;
    font-weight: 700;
}

.dash-progress-track {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.dash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), #d4af37);
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.dash-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}

.dash-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dash-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dash-panel-full {
    grid-column: 1 / -1;
}

.dash-panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
}

.dash-panel-header i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.dash-panel-header h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: #0f172a;
    margin: 0;
}

.dash-panel-link {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-decoration: none;
}

.dash-panel-link:hover {
    text-decoration: underline;
}

.dash-actions-list {
    display: flex;
    flex-direction: column;
}

.dash-action-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background 0.2s;
    color: inherit;
}

.dash-action-item:last-child {
    border-bottom: none;
}

.dash-action-item:hover {
    background: #f8fafc;
}

.dash-action-item:hover .dash-action-arrow {
    transform: translateX(4px);
    color: var(--primary-gold);
}

.dash-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-action-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-action-text strong {
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.dash-action-text span {
    color: #64748b;
    font-size: 0.85rem;
}

.dash-action-arrow {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dash-activity-list {
    padding: 0.5rem 1.5rem;
}

.dash-activity-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem 0;
    position: relative;
}

.dash-activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 2rem;
    bottom: -0.5rem;
    width: 2px;
    background: #e2e8f0;
}

.dash-activity-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-top: 0.35rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.dash-dot-green { background: #10b981; box-shadow: 0 0 0 4px #d1fae5; }
.dash-dot-gold { background: var(--primary-gold); box-shadow: 0 0 0 4px rgba(179, 146, 104, 0.2); }
.dash-dot-blue { background: #3b82f6; box-shadow: 0 0 0 4px #dbeafe; }

.dash-activity-text {
    display: flex;
    flex-direction: column;
}

.dash-activity-text strong {
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.dash-activity-text span {
    color: #64748b;
    font-size: 0.85rem;
}

.dash-comms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.dash-comm-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.dash-comm-card:hover {
    border-color: var(--primary-gold);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dash-comm-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.dash-comm-card h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.dash-comm-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.dash-comm-date {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.dash-comm-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-decoration: none;
}

.dash-comm-link:hover {
    text-decoration: underline;
}

/* Responsivo para Dashboard */
@media (max-width: 992px) {
    .dash-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dash-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dash-topbar-inner {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   DASHBOARD / ÁREA PESSOAL LAYOUT
   ========================================================================== */
.portal-container {
    display: flex;
    gap: 2.5rem;
    margin: 3rem auto;
    min-height: 70vh;
    align-items: flex-start;
}
.portal-container .container {
    max-width: none;
    padding: 0;
}

.portal-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.user-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.user-info span {
    font-size: 0.8rem;
    color: #64748b;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav .nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
    transition: all 0.2s;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background: #f8fafc;
    color: #0f172a;
}

.sidebar-nav .nav-item:hover i,
.sidebar-nav .nav-item.active i {
    color: var(--primary-gold);
}

.sidebar-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #fef2f2;
}

.portal-content {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.portal-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.portal-header h2 {
    font-family: var(--font-title);
    color: #0f172a;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.portal-header p {
    color: #64748b;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #64748b;
}

.stat-card.status-ok .stat-icon {
    background: #dcfce7;
    color: #16a34a;
}

.stat-card.status-warning .stat-icon {
    background: #fef3c7;
    color: #d97706;
}

.stat-data h3 {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-data p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.ap-table th, .ap-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.table-responsive {
    overflow-x: auto;
}

/* Toggle Menu Mobile para a Área Pessoal */
.mobile-sidebar-toggle {
    display: none;
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 991px) {
    .portal-container {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem auto;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    .portal-sidebar {
        width: 100%;
        display: none; /* Escondido por defeito no mobile */
        margin-bottom: 1.5rem;
    }
    
    .portal-sidebar.is-open {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-header h2 {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   TOOLTIPS DE SEGURANÇA E SUPORTE DE DADOS
   ========================================================================== */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: help;
    margin-left: 6px;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    vertical-align: middle;
}

.info-tooltip:hover {
    color: #c5a880; /* Premium gold accent */
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #0f172a; /* Slate 900 background */
    color: #f1f5f9; /* Slate 100 text */
    text-align: left;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 400;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(197, 168, 128, 0.3); /* gold subtle border */
    text-transform: none; /* prevent uppercase inheritance */
    white-space: normal;
}

/* Tooltip Arrow */
.info-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Ajustes de responsividade para tooltips no mobile */
@media (max-width: 768px) {
    .info-tooltip .tooltip-text {
        width: 200px;
        bottom: auto;
        top: 125%;
    }
    .info-tooltip .tooltip-text::after {
        top: auto;
        bottom: 100%;
        border-color: transparent transparent #0f172a transparent;
    }
    .info-tooltip:hover .tooltip-text {
        transform: translateX(-50%) translateY(5px);
    }
}

/* ==========================================================================
   BLOCO DE NOTAS (Portal)
   ========================================================================== */
.notas-date-nav {
    background: #fafbfc;
}

.notas-date-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.notas-date-nav input[type="date"] {
    flex: 0 0 auto;
    min-width: 180px;
    cursor: pointer;
}

#notas-conteudo {
    transition: border-color 0.2s ease;
}

#notas-conteudo:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

#notas-titulo:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

#notas-save-btn {
    transition: all 0.2s ease;
}

#notas-save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   DASHBOARD PORTAL — CLASSES DINÂMICAS
   ========================================================================== */

/* Audit Tab sub-navigation */
.audit-tab-btn {
    padding: 0.85rem 1.5rem;
    border: none;
    background: none;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.audit-tab-btn.active {
    color: #1a365d;
    border-bottom-color: var(--primary-gold);
}

/* Portal tab fade transition */
.portal-tab {
    display: none;
    opacity: 0;
}
.portal-tab.active {
    display: block;
    opacity: 1;
}

/* Document Official Card (from dynamic list) */
.doc-official-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
.doc-official-icon {
    font-size: 2rem;
    color: #1a365d;
    flex-shrink: 0;
}
.doc-official-info {
    display: flex;
    flex-direction: column;
}
.doc-official-link {
    color: #1a365d;
    font-weight: 600;
    text-decoration: none;
}
.doc-official-meta {
    font-size: 0.85rem;
    color: #64748b;
}

/* Orgao Card (for dynamic Orgaos Sociais) */
.orgao-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}
.orgao-card-title {
    color: #1a365d;
    margin: 0 0 1rem 0;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
    font-family: var(--font-title);
    font-size: 1.1rem;
}
.orgao-card-membros {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}
.orgao-card-membros li {
    color: #334155;
    font-size: 0.95rem;
}

/* ==========================================================================
   CALENDÁRIO CARDS + NOTIFICAÇÕES
   ========================================================================== */

/* Navigation badge (notification counter) */
.nav-badge {
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
}

/* Calendário cards */
.cal-month-group { margin-bottom: 2rem; }
.cal-month-title { font-family: var(--font-title); color: #0f172a; font-size: 1.3rem; margin: 0 0 1rem 0; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-gold); }

.cal-card { display: flex; align-items: stretch; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 0.75rem; transition: box-shadow 0.2s ease; }
.cal-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.cal-card-today { border-left: 4px solid #ef4444; background: #fff5f5; }
.cal-card-week { border-left: 4px solid #f59e0b; }
.cal-card-past { opacity: 0.6; }

.cal-date-box { background: #f8fafc; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem 1.25rem; min-width: 80px; text-align: center; border-right: 1px solid #e2e8f0; }
.cal-date-box .day-num { font-size: 1.8rem; font-weight: 700; color: #1a365d; line-height: 1; }

.cal-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.cal-badge-today { background: #fee2e2; color: #991b1b; }
.cal-badge-week { background: #fef3c7; color: #92400e; }
.cal-badge-past { background: #f1f5f9; color: #64748b; }

.cal-btn-acessar { display: inline-flex; align-items: center; gap: 0.4rem; background: #1a365d; color: #fff; text-decoration: none; padding: 0.45rem 1rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; margin-top: 0.25rem; transition: background 0.2s; }
.cal-btn-acessar:hover { background: #2d4a7a; }

/* Notifications */
#notificacoes-list .btn-mark-read { background: none; border: none; color: #b79b5c; cursor: pointer; font-size: 1.2rem; padding: 0.25rem; transition: color 0.2s; }
#notificacoes-list .btn-mark-read:hover { color: #ef4444; }

/* ==========================================================================
   BOTÕES DE DOWNLOAD (Atas, Documentos Oficiais, Confidenciais)
   ========================================================================== */
.btn-download-doc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #1a365d;
    color: #fff;
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.btn-download-doc:hover {
    background: #2d4a7a;
    color: #fff;
}
.btn-download-doc i {
    font-size: 0.8rem;
}

/* Upload label (inline upload button for existing docs) */
.btn-upload-doc-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-upload-doc-label:hover {
    background: #e2f5ea;
    border-color: #86efac;
    color: #166534;
}

/* ==========================================================================
   GESTÃO DE ÓRGÃOS — Cards de administração
   ========================================================================== */
.orgaos-admin-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}
.orgaos-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.orgaos-admin-header strong {
    color: #1a365d;
}
.orgaos-admin-sigla {
    color: #64748b;
    font-size: 0.85rem;
}
.orgaos-admin-actions {
    display: flex;
    gap: 0.4rem;
}
.orgaos-admin-members {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.org-member-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 2px;
    font-size: 0.78rem;
    color: #0369a1;
    font-weight: 500;
}
.org-member-tag small {
    color: #64748b;
}
.org-member-tag button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
}
.orgaos-admin-add {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}
.orgaos-admin-add select {
    flex: 1;
    min-width: 130px;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #fff;
}

/* ==========================================================================
   ÓRGÃOS SOCIAIS — Ícones de informação e descrições
   ========================================================================== */
.cargo-info-icon {
    display: inline-block;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #f0f9ff;
    border: 1px solid #b79b5c;
    color: #b79b5c;
    text-align: center;
    line-height: 14px;
    font-weight: 700;
    font-size: 0.7rem;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
    transition: background 0.2s;
}
.cargo-info-icon:hover {
    background: #b79b5c;
    color: #fff;
}
.org-description {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    line-height: 1.5;
}

/* ==========================================================================
   BOTÃO ASSINAR (Assinaturas Conjuntas — Direção)
   ========================================================================== */
.btn-sign-doc {
    margin-left: 0.5rem;
    flex-shrink: 0;
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s ease, transform 0.15s ease;
}
.btn-sign-doc:hover {
    background: #6d28d9;
    transform: scale(1.03);
}
.btn-sign-doc:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}
.btn-sign-doc i {
    font-size: 0.8rem;
}

/* ==========================================================================
   🎨 REDESIGN 2026 — Sidebar, Dashboard Header, Cards, Badges, Animações
   ========================================================================== */

/* --- BODY background escuro para contraste --- */
body { background: #f1f5f9; }

/* --- SIDEBAR BRAND LOGO --- */
.sidebar-brand {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0 0.25rem 1.25rem 0.25rem;
    border-bottom: 1px solid rgba(197,168,128,0.2);
    margin-bottom: 1.25rem;
}
.sidebar-logo-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-gold), #9c7b52);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
}
.sidebar-brand span {
    font-family: var(--font-title); font-size: 1rem; font-weight: 700; color: #0f172a;
}

/* --- USER AVATAR com iniciais --- */
.user-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #1a365d, #2d4a7a);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(26,54,93,0.3);
}
.user-avatar i { font-size: 1.2rem; }

/* --- ROLE BADGE na sidebar --- */
.user-role-badge {
    display: inline-block;
    padding: 2px 8px; border-radius: 10px;
    font-size: 0.65rem; font-weight: 700;
    background: var(--gold-light); color: var(--primary-gold);
    border: 1px solid var(--gold-border);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- SIDEBAR nav items com hover suave e transição --- */
.sidebar-nav .nav-item {
    border-radius: 8px; margin-bottom: 2px;
    padding: 0.6rem 0.85rem; font-size: 0.88rem;
    transition: all 0.18s ease;
    border-left: 3px solid transparent;
}
.sidebar-nav .nav-item:hover {
    background: #f8fafc; border-left-color: var(--primary-gold);
}
.sidebar-nav .nav-item.active {
    background: linear-gradient(90deg, rgba(26,54,93,0.08), transparent);
    border-left-color: #1a365d; font-weight: 700; color: #1a365d;
}
.sidebar-nav .nav-item i { width: 22px; text-align: center; }

/* --- SIDEBAR FOOTER links --- */
.sidebar-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-home-link {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 0.85rem; border-radius: 8px;
    font-size: 0.82rem; color: #64748b; text-decoration: none;
    transition: all 0.15s;
}
.sidebar-home-link:hover { background: #f1f5f9; color: #1a365d; }

/* --- STATS GRID com gradientes --- */
.stats-grid { gap: 1rem; }
.stat-card {
    border-radius: 14px; border: none;
    background: linear-gradient(135deg, #fff, #f8fafd);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem; transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.stat-card.status-ok { border-left: 4px solid #16a34a; }
.stat-card.status-warning { border-left: 4px solid #f59e0b; }
.stat-card .stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.stat-card.status-ok .stat-icon { background: #dcfce7; color: #16a34a; }
.stat-card.status-warning .stat-icon { background: #fef3c7; color: #f59e0b; }
.stat-card .stat-icon { background: #e0f2fe; color: #0284c7; }
.stat-card .stat-data h3 { font-size: 2rem; font-weight: 800; }
.stat-card .stat-data p { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* --- PORTAL HEADER com separador --- */
.portal-header {
    margin-bottom: 2rem; padding-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
}
.portal-header h2 {
    font-family: var(--font-title); font-size: 1.8rem; font-weight: 700;
    color: #0f172a; margin-bottom: 0.25rem;
}
.portal-header p { color: #64748b; font-size: 0.92rem; }

/* --- DASH PANEL cards arredondados --- */
.dash-panel {
    border-radius: 14px; border: 1px solid #e2e8f0;
    background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 1.5rem; overflow: hidden;
}
.dash-panel-header {
    background: #fafbfc; border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem; display: flex; align-items: center; gap: 0.75rem;
}
.dash-panel-header i { color: var(--primary-gold); font-size: 1.1rem; }
.dash-panel-header h3 { font-size: 0.95rem; font-weight: 700; color: #1a365d; }

/* --- TABELA moderna com hover e zebra --- */
.ap-table { border-radius: 0; overflow: hidden; }
.ap-table thead { background: #f8fafc; }
.ap-table th { font-size: 0.7rem; letter-spacing: 0.05em; font-weight: 700; color: #64748b; padding: 0.8rem 1rem; }
.ap-table td { padding: 0.8rem 1rem; font-size: 0.85rem; }
.ap-table tbody tr:hover { background: #f8fafc; }
.ap-table tbody tr:nth-child(even) { background: #fafbfc; }

/* --- BOTÕES primários com gradiente --- */
.btn-primary {
    background: linear-gradient(135deg, #1a365d, #2d4a7a);
    border: none; color: #fff; border-radius: 8px;
    padding: 0.65rem 1.25rem; font-weight: 600; font-size: 0.85rem;
    transition: all 0.2s; box-shadow: 0 2px 8px rgba(26,54,93,0.2);
}
.btn-primary:hover { background: linear-gradient(135deg, #2d4a7a, #3d5a9a); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,54,93,0.3); }

/* --- BOTÃO GOLD --- */
.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold), #9c7b52);
    border: none; color: #fff; border-radius: 8px;
    padding: 0.65rem 1.25rem; font-weight: 600; font-size: 0.85rem;
    transition: all 0.2s; box-shadow: 0 2px 8px rgba(179,146,104,0.3);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(179,146,104,0.4); }

/* --- MODAL overlay com backdrop blur --- */
.modal-overlay { backdrop-filter: blur(4px); }
.modal-content { border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }

/* --- BADGE de notificação pulsante --- */
.nav-badge {
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* --- ORGAO CARD com hover elegante --- */
.orgaos-admin-card {
    border-radius: 12px; border: 1px solid #e2e8f0;
    background: #fff; padding: 1.25rem; margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.orgaos-admin-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

/* --- SEARCH INPUT com ícone --- */
#atas-search, #notas-search {
    border-radius: 8px; border: 1px solid #e2e8f0;
    padding: 0.55rem 0.75rem; font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#atas-search:focus, #notas-search:focus {
    border-color: var(--primary-gold); box-shadow: 0 0 0 3px rgba(179,146,104,0.12);
    outline: none;
}

/* --- NOTA RECENTE hover --- */
#notas-recent-list > div:hover { background: #fafbfc \!important; }


/* ==========================================================================
   CALENDÁRIO GRELHA TRADICIONAL
   ========================================================================== */
.cal-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.5rem; }
.cal-nav h3 { font-family:var(--font-title); font-size:1.5rem; font-weight:700; color:var(--text-primary); margin:0; }
.cal-weekdays, .cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.cal-weekday { background:#0f172a; color:#f8fafc; text-align:center; font-weight:700; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.05em; padding:0.5rem 0; border-radius:2px; }
.cal-cell { background:#fff; min-height:90px; border:1px solid #e2e8f0; padding:4px; font-size:0.72rem; transition:background 0.1s; overflow:hidden; }
.cal-cell:hover { background:#f8fafc; }
.cal-cell-outside { background:#f1f5f9; color:#cbd5e1; }
.cal-cell-today { border:2px solid #b79b5c; background:#fffbeb; }
.cal-day-number { font-weight:700; margin-bottom:2px; color:#475569; }
.cal-cell-today .cal-day-number { color:#b79b5c; font-size:0.9rem; }
.cal-event { padding:1px 4px; margin:1px 0; border-radius:3px; font-size:0.63rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.cal-event-time { font-weight:600; margin-right:2px; }
.cal-event-public { background:#e0f2fe; color:#0369a1; border-left:2px solid #0284c7; }
.cal-event-mine { background:rgba(197,168,128,0.18); color:#7c5e2e; border-left:2px solid var(--primary-gold); }

/* ==========================================================================
   ÓRGÃOS SOCIAIS — Cards oficiais com ✅/❌
   ========================================================================== */
.orgao-card-display {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.orgao-card-header {
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-gold);
}

/* ==========================================================================
   TESTEMUNHOS SECTION
   ========================================================================== */
.section-testemunhos {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-deep);
}

.testemunhos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.testemunho-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.testemunho-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold-hover);
}

.testemunho-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-deep);
}

.testemunho-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.testemunho-card:hover .testemunho-img {
    transform: scale(1.05);
}

.testemunho-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 41, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
}

.testemunho-img-wrapper:hover .testemunho-zoom-overlay {
    opacity: 1;
}

.testemunho-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.testemunho-quote {
    margin-bottom: 1.25rem;
}

.testemunho-quote i {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.6;
}

.testemunho-quote p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-style: italic;
    text-align: justify;
}

.testemunho-quote p:last-child {
    margin-bottom: 0;
}

.testemunho-author {
    border-top: 1px solid var(--gold-border);
    padding-top: 1.25rem;
}

.testemunho-author h3 {
    font-family: var(--font-title);
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
}

.testemunho-author .author-role {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testemunho-author .author-detail {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* Testemunho de Vídeo */
.testemunho-video-container {
    max-width: 800px;
    margin: 4rem auto 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-gold);
}

.testemunho-video-container .video-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.testemunho-video-container .video-header i {
    color: var(--primary-gold);
    font-size: 1.75rem;
}

.testemunho-video-container .video-header h3 {
    font-family: var(--font-title);
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.testemunho-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 13, 26, 0.98);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: #f1f5f9;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--primary-gold);
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: #cbd5e1;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .section-testemunhos {
        padding: 4rem 0;
    }
    
    .testemunhos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testemunho-video-container {
        padding: 1.5rem;
        margin-top: 3rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
}

/* Testemunho Áudio */
.testemunho-audio-container {
    max-width: 800px;
    margin: 4rem auto 0 auto;
    background: #111a36;
    border: 1px solid rgba(179, 146, 104, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.testemunho-audio-container .audio-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.testemunho-audio-container .audio-header i {
    color: var(--primary-gold);
    font-size: 1.75rem;
}

.testemunho-audio-container .audio-header h3 {
    font-family: var(--font-title);
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
}

.audio-card-player {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(179, 146, 104, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.25rem;
}

.audio-text h4 {
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.audio-text p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.88rem;
}

.testemunho-audio-player {
    width: 100%;
    border-radius: var(--radius-sm);
    outline: none;
}

/* Customizing default audio player appearance slightly */
audio.testemunho-audio-player::-webkit-media-controls-panel {
    background-color: #1a223f;
}
audio.testemunho-audio-player::-webkit-media-controls-play-button,
audio.testemunho-audio-player::-webkit-media-controls-current-time-display,
audio.testemunho-audio-player::-webkit-media-controls-time-remaining-display {
    color: #ffffff;
}

/* Scroll reveal classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .testemunho-audio-container {
        padding: 1.5rem;
        margin-top: 3rem;
    }
    .audio-card-player {
        padding: 1rem;
    }
}

/* ==========================================================================
   Playlist Audio Player Styles & Landing Page Updates Banner
   ========================================================================== */

/* Playlist Layout */
.audio-playlist-card, .video-playlist-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.audio-tracks-list, .video-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.audio-track-btn, .video-track-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
}

.audio-track-btn:hover, .video-track-btn:hover {
    background: rgba(179, 146, 104, 0.05);
    border-color: rgba(179, 146, 104, 0.3);
    transform: translateY(-2px);
}

.audio-track-btn.active, .video-track-btn.active {
    background: rgba(179, 146, 104, 0.12);
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(179, 146, 104, 0.1);
}

.audio-track-btn .track-number, .video-track-btn .track-number {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #94a3b8;
    transition: all 0.2s;
    flex-shrink: 0;
}

.audio-track-btn.active .track-number, .video-track-btn.active .track-number {
    background: var(--primary-gold);
    color: #111a36;
}

.audio-track-btn .track-info, .video-track-btn .track-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.audio-track-btn .track-name, .video-track-btn .track-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.audio-track-btn .track-meta, .video-track-btn .track-meta {
    font-size: 0.8rem;
    color: #94a3b8;
}

.audio-track-btn .track-duration, .video-track-btn .track-duration {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.audio-card-player-integrated {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Updates Banner Styles */
.latest-updates-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid rgba(179, 146, 104, 0.25);
    border-left: 4px solid var(--primary-gold);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 0 auto 3rem auto;
    max-width: 820px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.latest-updates-banner .updates-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.latest-updates-banner .updates-label i {
    animation: pulse-update 2s infinite;
}

@keyframes pulse-update {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.latest-updates-banner .updates-content {
    flex-grow: 1;
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.latest-updates-banner .update-date {
    font-weight: 700;
    color: var(--primary-gold);
    margin-right: 0.5rem;
}

.latest-updates-banner .update-text {
    font-weight: 500;
    color: var(--text-muted);
}

.latest-updates-banner .updates-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.latest-updates-banner .updates-link:hover {
    color: var(--gold-hover-text);
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .audio-playlist-card {
        gap: 1rem;
    }
    .audio-card-player-integrated {
        padding: 1rem;
    }
    .audio-track-btn {
        padding: 0.85rem 1rem;
    }
    .audio-track-btn .track-name {
        font-size: 0.92rem;
    }
    .latest-updates-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
        margin-bottom: 2rem;
    }
    .latest-updates-banner .updates-link {
        align-self: flex-end;
    }
}

/* ==========================================================================
   Updates Drawer and Floating Info Button Styles
   ========================================================================== */

/* Floating updates trigger button */
.updates-drawer-trigger {
    position: relative;
    z-index: 1300;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d, #2d4a7a) !important; /* Blue gradient matching Assinar Petição */
    color: #ffffff !important;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.updates-drawer-trigger:hover,
.updates-drawer-trigger:focus {
    background: linear-gradient(135deg, #2d4a7a, #3d5a9a) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(26, 54, 93, 0.38) !important;
    transform: scale(1.05);
}

.updates-drawer-trigger i {
    font-size: 1.25rem;
    color: #ffffff !important;
}

.updates-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #0f172a;
    color: #ffffff;
    border: 1.5px solid var(--gold-border);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
    letter-spacing: 0.02em;
}

.updates-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0f172a;
}

.updates-drawer-trigger:hover .updates-tooltip,
.updates-drawer-trigger:focus .updates-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Atalho de notícias da landing page para a área central de Atualidade */
.updates-floating-link {
    position: relative;
    isolation: isolate;
    z-index: 1300;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f2d699 0%, #c89f52 48%, #a97a2e 100%);
    color: #071426;
    text-decoration: none;
    border: 2px solid #fff0c9;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.32), 0 14px 30px rgba(0, 0, 0, 0.34), 0 0 24px rgba(229, 191, 120, 0.38);
    animation: updates-floating-bob 4.5s ease-in-out infinite;
    transition: box-shadow 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.updates-floating-link::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -9px;
    border: 1px solid rgba(242, 214, 153, 0.7);
    border-radius: inherit;
    animation: updates-attention-ring 2.9s ease-out infinite;
    pointer-events: none;
}

.updates-news-glyph {
    position: relative;
    z-index: 1;
    width: 25px;
    height: 21px;
    display: block;
    border: 2px solid #071426;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.updates-news-glyph::before,
.updates-news-glyph::after {
    content: '';
    position: absolute;
    display: block;
    background: #071426;
}

.updates-news-glyph::before {
    top: 4px;
    left: 4px;
    width: 6px;
    height: 11px;
    border-radius: 1px;
}

.updates-news-glyph::after {
    top: 4px;
    right: 3px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    box-shadow: 0 4px 0 #071426, 0 8px 0 #071426;
}

.updates-floating-link:hover,
.updates-floating-link:focus-visible {
    color: #071426;
    filter: brightness(1.06) saturate(1.08);
    box-shadow: 0 0 0 5px rgba(197, 168, 128, 0.45), 0 16px 34px rgba(0, 0, 0, 0.38), 0 0 32px rgba(242, 214, 153, 0.58);
    transform: scale(1.05);
    outline: 2px solid #fff0c9;
    outline-offset: 3px;
    animation-play-state: paused;
}

.updates-floating-link:focus:not(:focus-visible) {
    outline: none;
}

.updates-floating-link .updates-tooltip {
    right: 76px;
    font-weight: 700;
}

.updates-floating-link:hover .updates-tooltip,
.updates-floating-link:focus-visible .updates-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.updates-new-dot {
    position: absolute;
    z-index: 2;
    top: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    border: 2px solid #071426;
    border-radius: 50%;
    background: #e5bf78;
    box-shadow: 0 0 0 0 rgba(229, 191, 120, 0.65);
    animation: updates-new-dot-pulse 2.9s ease-out infinite;
}

.updates-button-tag {
    position: absolute;
    z-index: 2;
    right: -7px;
    bottom: -7px;
    padding: 0.24rem 0.38rem;
    border: 1px solid #fff0c9;
    border-radius: 999px;
    background: #0c213f;
    color: #fff0c9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1;
}

@keyframes updates-floating-bob {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(3px); }
}

@keyframes updates-attention-ring {
    0%, 55%, 100% { opacity: 0.72; transform: scale(0.92); }
    75% { opacity: 0; transform: scale(1.18); }
}

@keyframes updates-new-dot-pulse {
    0%, 65%, 100% { box-shadow: 0 0 0 0 rgba(229, 191, 120, 0.55); }
    78% { box-shadow: 0 0 0 7px rgba(229, 191, 120, 0); }
}

@media (max-width: 991px) {
    .updates-floating-link {
        width: 58px;
        height: 58px;
    }

    .updates-floating-link .updates-tooltip {
        right: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
.updates-floating-link,
.updates-new-dot,
.updates-floating-link::before {
        animation: none;
    }
}

#comunicado-imprensa,
#comunicados-principais,
#publicacao-albufeira,
#funcionarios-publicos,
#cidadaos,
#noticias,
#proximos-passos {
    scroll-margin-top: 8rem;
}

/* Página central de notícias, comunicados e iniciativas */
.nav-dropdown-item-highlight {
    background: rgba(197, 168, 128, 0.08);
    border-left: 2px solid var(--primary-gold);
}

.nav-dropdown-item-highlight strong {
    color: var(--primary-gold);
}

.actualidade-hero {
    padding-bottom: 2.5rem;
}

.actualidade-hero-copy {
    max-width: 780px;
    margin-top: 1.5rem;
}

.actualidade-hero-title {
    margin: 0.7rem 0 1rem;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 5vw, 3.45rem);
    line-height: 1.1;
}

.actualidade-hero-text {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

.actualidade-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 2rem;
}

.actualidade-filter {
    border: 1px solid var(--gold-border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.6rem 1rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.actualidade-filter:hover,
.actualidade-filter:focus-visible {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    outline: none;
}

.actualidade-filter.is-active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #071426;
}

.actualidade-section {
    background: var(--bg-deep);
}

.actualidade-section-header {
    margin-bottom: 0;
}

.actualidade-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.actualidade-card {
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 1.65rem;
    border: 1px solid rgba(197, 168, 128, 0.24);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(20, 35, 58, 0.88), rgba(11, 19, 41, 0.96));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    transition: var(--transition);
}

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

.actualidade-card-featured {
    border-color: rgba(197, 168, 128, 0.56);
    background: linear-gradient(145deg, rgba(48, 63, 77, 0.96), rgba(15, 28, 50, 0.98));
}

.actualidade-card-with-image {
    grid-column: 1 / -1;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    min-height: 390px;
    padding: 0;
    overflow: hidden;
}

.actualidade-card-image-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 390px;
    padding: 1.2rem;
    overflow: hidden;
    background: #f4f2ec;
}

.actualidade-card-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.actualidade-card-image-link:hover .actualidade-card-image,
.actualidade-card-image-link:focus-visible .actualidade-card-image {
    transform: scale(1.025);
}

.actualidade-card-image-label {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(7, 20, 38, 0.9);
    color: #fff0c9;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.actualidade-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1.65rem;
}

.actualidade-card-body .actualidade-card-link {
    margin-top: auto;
}

.actualidade-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.actualidade-card-topline time {
    white-space: nowrap;
}

.actualidade-category {
    color: var(--primary-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.actualidade-category i {
    margin-right: 0.35rem;
}

.actualidade-card h3 {
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-size: 1.34rem;
    line-height: 1.25;
}

.actualidade-card p {
    margin: 0 0 1.35rem;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.actualidade-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    color: var(--primary-gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.actualidade-card-link:hover {
    color: var(--text-primary);
}

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

.actualidade-empty i {
    display: block;
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.actualidade-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(197, 168, 128, 0.22);
    border-radius: var(--radius-lg);
    background: rgba(197, 168, 128, 0.05);
}

.actualidade-footer-cta p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .actualidade-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .actualidade-card-with-image {
        grid-template-columns: 1fr;
    }

    .actualidade-card-image-link {
        min-height: 0;
        max-height: 520px;
    }

    .actualidade-card-image {
        max-height: 520px;
    }

    .actualidade-card {
        min-height: 0;
    }

    .actualidade-footer-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Updates Drawer */
.updates-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: flex-end;
}

.updates-drawer[aria-hidden="false"] {
    display: flex;
}

.updates-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 13, 26, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.updates-drawer[aria-hidden="false"] .updates-drawer-overlay {
    opacity: 1;
}

.updates-drawer-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 100%;
    background-color: #0b1329; /* Dark deep background matches card players */
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(179, 146, 104, 0.15);
}

.updates-drawer[aria-hidden="false"] .updates-drawer-content {
    transform: translateX(0);
}

.updates-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.updates-drawer-header h3 {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.updates-drawer-header h3 i {
    color: var(--primary-gold);
}

.updates-drawer-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.updates-drawer-close:hover {
    color: #ffffff;
}

.updates-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.updates-drawer-intro {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.updates-drawer-chat {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.update-message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.updates-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(179, 146, 104, 0.15);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.update-message .message-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 16px 16px 16px;
    padding: 1rem;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
    flex-grow: 1;
}

.update-message .message-content p {
    margin: 0 0 0.5rem 0;
}

.update-message .message-content p:last-of-type {
    margin-bottom: 0;
}

.update-tag-date {
    display: block;
    font-size: 0.72rem;
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

@media (max-width: 991px) {
    .updates-drawer-content {
        max-width: 100%;
    }
}

/* ==========================================================================
   Artigos de Opinião Subsection
   ========================================================================== */
.artigos-grid {
    margin-top: 3rem;
}

.artigo-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold) !important;
    box-shadow: var(--shadow-gold-hover) !important;
}

.artigo-avatar-wrapper img {
    transition: var(--transition);
}

.artigo-card:hover .artigo-avatar-wrapper img {
    transform: scale(1.05);
}

/* Article Modal Styles */
.article-modal {
    display: none;
    align-items: center;
    justify-content: center;
}

.article-modal[aria-hidden="false"] {
    display: flex !important;
}

.article-modal-close:hover {
    color: var(--primary-gold) !important;
    transform: rotate(90deg);
}

.article-text-columns p {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for Artigo Card */
@media (max-width: 768px) {
    .artigo-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem !important;
    }
    .artigo-avatar-wrapper {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 1rem;
    }
    .article-modal {
        padding: 1rem !important;
    }
    .article-modal-content {
        padding: 1.5rem !important;
        max-height: 90vh !important;
    }
    .modal-article-title {
        font-size: 1.5rem !important;
    }
    .article-modal-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    .modal-article-tag {
        align-self: flex-start;
    }
}

/* Activities Row & Card Reveal Layout (2 by 2 scroll reveal) */
.activities-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Base state of cards inside revealable rows */
.activities-row.scroll-reveal .card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Revealed state triggered by IntersectionObserver on the row */
.activities-row.scroll-reveal.revealed .card {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 769px) {
    /* Centering the 5th activity card if it's alone on the last row */
    .single-activity-row {
        display: flex;
        justify-content: center;
    }
    .single-activity-row .card {
        width: calc(50% - 1.25rem);
    }
    
    /* Stagger transition delay for the second card in each row on desktop */
    .activities-row.scroll-reveal .card:nth-child(2) {
        transition-delay: 0.18s;
    }
}

@media (max-width: 768px) {
    .activities-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .single-activity-row .card {
        width: 100%;
    }
}

/* ==========================================================================
   MELHORIAS DE WEB DESIGN & UX (2026 REFRESH)
   ========================================================================== */

/* Shimmer Effect nos Botões de Destaque */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(30deg);
    animation: btnShimmer 4s infinite;
}

@keyframes btnShimmer {
    0% { transform: translateX(-100%) rotate(30deg); }
    30% { transform: translateX(100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* Micro-cópia rápida sob o CTA */
.cta-quick-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Melhora do Ritmo Vertical nos Cartões de Mensagem */
.mensagem-card-text {
    line-height: 1.7;
}

/* Balão Proativo da Amália (Chatbot Engagement Tooltip) */
.amalia-proactive-bubble {
    position: absolute;
    right: 72px; /* Posicionado à esquerda do botão circular da Amália */
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    background: #0a182d;
    border: 1px solid var(--primary-gold);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 1350;
    pointer-events: auto;
    animation: bubblePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.amalia-proactive-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -7px;
    width: 12px;
    height: 12px;
    background: #0a182d;
    border-top: 1px solid var(--primary-gold);
    border-right: 1px solid var(--primary-gold);
    transform: translateY(-50%) rotate(45deg);
}

.amalia-bubble-close {
    position: absolute;
    top: 4px;
    right: 8px;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    border: none;
    background: transparent;
}

.amalia-bubble-close:hover {
    color: #ffffff;
}

.amalia-bubble-text {
    font-size: 0.84rem;
    color: #ffffff;
    line-height: 1.4;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes bubblePop {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Redução Compacta do Header no Scroll Mobile */
.site-header.scrolled-compact {
    --header-height: 80px;
    background-color: rgba(5, 13, 26, 0.98);
}

.site-header.scrolled-compact .logo-img {
    max-height: 70px;
}

/* Secção de Vídeo de Testemunho em Destaque */
.video-testimonial-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
    background: rgba(10, 24, 45, 0.7);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.testimonial-video-player {
    width: 100%;
    height: auto;
    max-height: 380px;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-gold);
    background: rgba(197, 168, 128, 0.12);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--gold-border);
}

.testimonial-speaker-name {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
}

.testimonial-speaker-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5e1;
    font-style: italic;
}

@media (max-width: 991px) {
    .video-testimonial-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* ==========================================================================
   INFOGRÁFICO COMPARATIVO EDITORIAL (ANTES VS DEPOIS)
   ========================================================================== */
.comparative-infographic {
    margin-top: 3.5rem;
    background: rgba(10, 24, 45, 0.65);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
}

.comparative-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparative-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-gold);
    background: rgba(197, 168, 128, 0.12);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--gold-border);
    margin-bottom: 0.75rem;
}

.comparative-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
}

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

.comparative-card {
    background: rgba(15, 23, 42, 0.75);
    border-radius: 12px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparative-card.current-state {
    border-top: 3px solid #f43f5e;
}

.comparative-card.proposed-state {
    border-top: 3px solid #10b981;
}

.card-status-badge {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-negative { color: #f43f5e; }
.status-positive { color: #10b981; }

.comparative-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparative-list li {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left !important;
}

.comp-list-content {
    flex: 1;
    text-align: left !important;
}

.comp-list-content strong {
    color: #ffffff;
    font-weight: 700;
    margin-right: 0.2rem;
}

.comparative-list li i {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.current-state .comparative-list li i { color: #f43f5e; }
.proposed-state .comparative-list li i { color: #10b981; }

@media (max-width: 768px) {
    .comparative-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SECÇÃO KIT DO APOIANTE (ADVOCACY KIT)
   ========================================================================== */
.section-advocacy-kit {
    padding: 3.5rem 0;
}

.advocacy-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 24, 45, 0.95));
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.advocacy-info {
    max-width: 600px;
}

.advocacy-title {
    font-family: var(--font-title);
    font-size: 2rem;
    color: #ffffff;
    margin: 0.5rem 0 0.8rem 0;
}

.advocacy-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.65;
}

.advocacy-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 240px;
}

@media (max-width: 991px) {
    .advocacy-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .advocacy-actions {
        width: 100%;
    }
}

/* ==========================================================================
   TOAST DE PROVA SOCIAL INSTITUCIONAL
   ========================================================================== */
.social-proof-toast {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: rgba(10, 24, 45, 0.95);
    border: 1px solid var(--primary-gold);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1040;
    max-width: 320px;
    backdrop-filter: blur(10px);
    animation: toastSlide 0.4s ease-out;
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-close {
    position: absolute;
    top: 4px;
    right: 8px;
    color: #94a3b8;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.toast-close:hover { color: #ffffff; }

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.toast-text strong {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.3;
}

.toast-text small {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ==========================================================================
   BARRA DE AÇÃO RÁPIDA DE RODAPÉ PARA TELEMÓVEIS
   ========================================================================== */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 13, 26, 0.96);
    border-top: 1px solid var(--gold-border);
    padding: 0.6rem 1rem;
    z-index: 998;
    backdrop-filter: blur(12px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.mobile-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.mobile-action-btn.primary-action {
    background: var(--primary-gold);
    color: var(--text-dark);
}

.mobile-action-btn.whatsapp-action {
    background: #25d366;
    color: #ffffff;
}

.mobile-action-btn.share-action {
    background: var(--primary-gold);
    color: var(--text-dark);
}

.mobile-action-btn.news-action {
    background: #0c213f;
    border: 1px solid var(--primary-gold);
    color: #fff0c9;
}

.mobile-action-btn.share-action:active,
.mobile-action-btn.share-action:focus-visible {
    background: var(--gold-hover);
}

/* ==========================================================================
   ELEMENTOS DE MARKETING & CONVERSÃO CÍVICA
   ========================================================================== */
.hero-email-warning {
    margin-top: 0.85rem;
    margin-bottom: 1.2rem;
    font-size: 0.86rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 650px;
    text-align: left;
}

.parliament-goal-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--gold-border);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    margin-top: 0.85rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.parliament-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.88rem;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.parliament-goal-header span {
    color: var(--primary-gold);
    font-weight: 600;
}

.parliament-goal-header strong {
    color: #ffffff;
    font-weight: 700;
}

.parliament-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.parliament-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c5a880 0%, #e6cb9c 100%);
    border-radius: 999px;
    transition: width 1s ease-in-out;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.5);
}

/* Performance móvel & resposta de toque instantânea */
a, button, .btn, .mobile-action-btn, .nav-link {
    touch-action: manipulation;
}

.glass-card, .mobile-action-bar, .social-proof-toast, .nav-dropdown, .parliament-goal-box {
    will-change: transform;
    transform: translateZ(0);
}

/* ==========================================================================
   FAIXA DE ASSINATURAS DO TOPO (PETITION STRIP PROGRESS BAR)
   ========================================================================== */
.petition-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.petition-strip-progress-wrapper {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.petition-strip-compact-info {
    flex: 1;
    max-width: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.82rem;
    color: #0b172a;
    white-space: nowrap;
}

.petition-strip-label {
    color: #1e293b;
    font-weight: 600;
}

.petition-strip-label strong {
    color: #0b172a;
    font-weight: 900;
}

.petition-strip-label i {
    color: #855319;
}

.petition-strip-track {
    flex: 1;
    max-width: 180px;
    height: 6px;
    background: rgba(11, 23, 42, 0.18);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.petition-strip-fill {
    height: 100%;
    background: linear-gradient(90deg, #0b172a 0%, #1e3a8a 100%);
    border-radius: 999px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(11, 23, 42, 0.4);
}

.petition-strip-pct {
    color: #0b172a;
    font-weight: 900;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}

.btn-share-strip {
    background: #0b172a;
    border: 1px solid rgba(11, 23, 42, 0.4);
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.32rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(11, 23, 42, 0.25);
}

.btn-share-strip i {
    color: #c5a880;
}

.btn-share-strip:hover {
    background: #1e293b;
    color: #c5a880 !important;
    box-shadow: 0 4px 12px rgba(11, 23, 42, 0.4);
    transform: translateY(-1px);
}

.btn-share-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

/* ==========================================================================
   LINHA DO TEMPO CÍVICA (CAMINHO ATÉ À AR)
   ========================================================================== */
.section-parliament-roadmap {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4.5rem 0;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.roadmap-step {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roadmap-step.active {
    border-color: var(--primary-gold);
    box-shadow: 0 0 25px rgba(197, 168, 128, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

.roadmap-step-badge {
    position: absolute;
    top: -12px;
    background: #1e293b;
    color: var(--primary-gold);
    border: 1px solid var(--gold-border);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.roadmap-step.active .roadmap-step-badge {
    background: var(--primary-gold);
    color: #0b172a;
}

.roadmap-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.roadmap-step.active .roadmap-icon-circle {
    background: rgba(197, 168, 128, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.roadmap-step h3 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.roadmap-step p {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 1.2rem;
    flex: 1;
}

.step-status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    display: inline-block;
}

.step-status-tag.current {
    background: rgba(37, 211, 102, 0.15);
    color: #48bb78;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.step-status-tag.pending {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-status-tag.final {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-share-option:hover {
    border-color: var(--primary-gold);
    background: rgba(15, 23, 42, 0.95);
    transform: translateX(3px);
}

.share-opt-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.share-opt-text strong {
    font-size: 0.92rem;
    color: #ffffff;
}

.share-opt-text small {
    font-size: 0.78rem;
    color: #94a3b8;
}

.opt-arrow {
    color: #64748b;
    font-size: 0.9rem;
}

/* ==========================================================================
   MODAL DE PARTILHA WHATSAPP PARA 3 CONTACTOS
   ========================================================================== */
.whatsapp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 13, 26, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.whatsapp-modal-content {
    background: #0b172a;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    padding: 1.8rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.whatsapp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.whatsapp-modal-close:hover {
    color: #ffffff;
}

.whatsapp-modal-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.whatsapp-icon-circle {
    width: 56px;
    height: 56px;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #25d366;
    margin-bottom: 0.75rem;
}

.whatsapp-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.whatsapp-modal-subtitle {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.4;
}

.whatsapp-message-preview {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 1.2rem;
}

.preview-label {
    font-size: 0.78rem;
    color: var(--primary-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 0.35rem;
}

#whatsapp-param-message {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
    border-left: 3px solid #25d366;
    padding-left: 0.75rem;
    font-style: normal;
}

.whatsapp-contacts-selector {
    background: rgba(37, 211, 102, 0.05);
    border: 1px dashed rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.2rem;
}

.selector-instruction {
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

.contact-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.86rem;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.contact-checkbox-label:hover {
    border-color: rgba(37, 211, 102, 0.4);
}

.contact-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #25d366;
    cursor: pointer;
}

.btn-whatsapp-send {
    width: 100%;
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.btn-whatsapp-send:hover:not(.btn-disabled) {
    background: #1eb956;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-send.btn-disabled {
    background: #334155;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.whatsapp-lock-note {
    font-size: 0.78rem;
    color: #fbbf24;
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-action-bar {
        display: flex;
        gap: 0.75rem;
        padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
    }
    .mobile-action-btn {
        min-height: 48px; /* Target de toque ergonómico de 48px (Apple HIG / Google Material) */
    }
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }
    .social-proof-toast {
        bottom: calc(78px + env(safe-area-inset-bottom));
        left: 12px;
        right: 12px;
        max-width: none;
    }
    .hero-title {
        font-size: clamp(1.6rem, 5.5vw, 2.6rem);
        line-height: 1.25;
    }
    .section-title {
        font-size: clamp(1.45rem, 5vw, 2.2rem);
    }
    .ai-drawer-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        border-radius: 0 !important;
    }
}

/* Ajuste final mobile: preservar a hierarquia desktop num ecrã compacto. */
@media (max-width: 768px) {
    :root {
        --header-height: 84px;
    }

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

    .logo-img {
        max-height: 76px;
    }

    .main-nav {
        top: var(--header-height);
        height: calc(100dvh - var(--header-height));
        padding: 2.5rem 1.25rem 4rem;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-list {
        gap: 1.35rem;
    }

    .nav-list > li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 0.55rem 0;
    }

    .btn-header {
        margin-top: 0.25rem;
    }

    .hero-section {
        padding: 4.5rem 0 7rem;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 2.6rem);
        line-height: 1.18;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 2rem;
    }

    .hero-actions {
        gap: 0.85rem;
        margin-bottom: 2.5rem;
    }

    .pillar-tag {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
    }

    .section {
        padding: 3.75rem 0;
    }

    .floating-actions-group {
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }

    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .mobile-action-bar {
        gap: 0.5rem;
        padding: 0.55rem 0.75rem max(0.6rem, env(safe-area-inset-bottom));
    }

    .mobile-action-btn {
        min-width: 0;
        padding: 0.7rem 0.55rem;
        font-size: 0.72rem;
        line-height: 1.15;
    }

    .comunicado-nav {
        gap: 0.4rem;
    }

    .comunicado-nav-link {
        flex: 1 1 auto;
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
        letter-spacing: 0.05em;
        text-align: center;
    }

    .whatsapp-modal-overlay {
        inset: 0;
        width: auto;
        height: auto;
        padding: 0.75rem;
    }

    .whatsapp-modal-content {
        max-height: calc(100dvh - 1.5rem);
        overflow-y: auto;
        padding: 1.35rem 1rem;
    }

    #whatsapp-param-message {
        max-height: 180px;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title {
        font-size: clamp(1.9rem, 10vw, 2.25rem);
    }

    .hero-actions .btn {
        max-width: 100%;
    }

    .page-hero-title {
        font-size: 1.85rem;
    }
}

/* Ajustes finais para páginas internas e reprodução móvel. */
.page-comunicado .page-hero-title,
.page-comunicado .page-hero-subtitle,
.page-testemunhos .page-hero-title,
.page-testemunhos .page-hero-subtitle {
    display: none !important;
}

.page-testemunhos .section-testemunhos > .container > .section-header {
    display: none !important;
}

.page-comunicado .page-hero,
.page-testemunhos .page-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.page-testemunhos .section-testemunhos {
    padding-top: 2rem !important;
}

.hero-video-bg {
    isolation: isolate;
    background: #050d1a;
}

.hero-video-element {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (max-width: 768px) {
    .petition-strip {
        background: linear-gradient(90deg, #b89765 0%, #d8c29d 50%, #b89765 100%) !important;
        color: #0b172a !important;
        border-top-color: rgba(11, 23, 42, 0.18) !important;
        border-bottom-color: rgba(11, 23, 42, 0.25) !important;
    }

    .petition-strip .petition-strip-item,
    .petition-strip .petition-strip-item *,
    .petition-strip .petition-strip-label,
    .petition-strip .petition-strip-pct {
        color: #0b172a !important;
    }

    .petition-strip .petition-strip-value {
        color: #5f421d !important;
    }

    .petition-strip .petition-strip-divider,
    .petition-strip .text-update-note,
    .petition-strip .text-update-note i {
        color: rgba(11, 23, 42, 0.62) !important;
    }

    .comunicado-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .comunicado-nav-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hero-video-bg,
    .hero-video-element,
    .hero-video-fallback,
    .hero-video-overlay {
        width: 100%;
        height: 100%;
    }

    .hero-video-element {
        object-fit: cover;
        object-position: 50% 50%;
    }
}

/* Páginas internas: retirar o cabeçalho editorial repetido e aproximar o conteúdo. */
.page-hero .page-hero-title,
.page-hero .page-hero-subtitle {
    display: none !important;
}

.page-hero {
    padding: 1.25rem 0 1.1rem;
}

.page-hero .breadcrumb {
    margin-bottom: 0;
}

.page-comunicado .page-hero {
    padding-bottom: 1rem;
}

.page-comunicado .comunicado-nav {
    margin-top: 0.85rem;
}

/* Navegação mobile: alvos táteis amplos e interação imediata. */
@media (max-width: 991px) {
    .main-nav {
        z-index: 1090;
    }

    .menu-toggle,
    .main-nav a {
        touch-action: manipulation;
    }

    .nav-list > li {
        min-height: 44px;
    }

    .nav-list > li > .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding-inline: 1rem;
    }

    .nav-dropdown-item {
        min-height: 52px;
    }
}

/* ============================================================================
   MOBILE POLISH PASS — hierarquia, toque, overflow e acessibilidade
   ============================================================================ */

/* Evita que os elementos de conversão se sobreponham quando o menu está aberto. */
body.mobile-menu-open .floating-actions-group,
body.mobile-menu-open .mobile-action-bar {
    display: none !important;
}

@media (max-width: 768px) {
    /* Primeira dobra mais limpa: a faixa deixa de consumir quase todo o ecrã. */
    .petition-strip {
        padding: 0;
    }

    .petition-strip-inner {
        min-height: 0;
        padding: 0.45rem 1rem 0.55rem;
        gap: 0.45rem;
    }

    .petition-strip-audio {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }

    .petition-strip-compact-info {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
        flex-wrap: wrap;
        gap: 0.15rem 0.35rem;
        white-space: nowrap;
    }

    .petition-strip-label,
    .petition-strip-pct {
        min-width: 0;
        flex: 1 1 auto;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .petition-strip-pct {
        text-align: right;
    }

    .petition-strip-track {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        height: 5px;
    }

    .btn-share-strip {
        min-height: 36px;
        padding: 0.35rem 0.85rem;
        font-size: 0.74rem;
    }

    .hero-section {
        padding: 2.25rem 0 5.5rem;
    }

    .hero-video-element {
        display: block;
    }

    .hero-video-fallback {
        filter: saturate(0.85) brightness(0.62) contrast(1.08);
    }

    .hero-video-overlay {
        background: linear-gradient(
            to bottom,
            rgba(5, 13, 26, 0.68) 0%,
            rgba(5, 13, 26, 0.42) 45%,
            rgba(5, 13, 26, 0.84) 100%
        );
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        margin-bottom: 1.25rem;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.15rem);
        line-height: 1.16;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 0.75rem 1rem;
        line-height: 1.2;
        white-space: normal;
    }

    .hero-pillars {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    /* Mantém uma única camada de conversão fixa e só a revela após o início do scroll. */
    body {
        padding-bottom: 0;
    }

    body.mobile-action-bar-visible {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .mobile-action-bar {
        display: none !important;
    }

    .mobile-action-bar.is-visible {
        display: flex !important;
    }

    body.cookie-banner-active .mobile-action-bar,
    body.mobile-menu-open .mobile-action-bar {
        display: none !important;
    }

    .floating-actions-group {
        display: none !important;
    }

    /* O texto corrido ganha leitura natural em ecrãs estreitos. */
    p,
    li,
    .section-desc,
    .card-text,
    .benefit-text,
    .section-paragraph,
    .quote-text,
    .comunicado-card p,
    .comunicado-card li,
    .faq-answer,
    .footer-brand p,
    .footer-links p {
        text-align: left;
        text-justify: auto;
    }

    /* Reintroduz um título editorial compacto nas páginas internas. */
    .page-hero {
        padding: 1rem 0 1.25rem;
    }

    .page-hero .page-hero-title,
    .page-hero .page-hero-subtitle {
        display: block !important;
    }

    .page-hero-title {
        font-size: clamp(1.7rem, 7vw, 2.15rem);
        line-height: 1.15;
        margin: 0.7rem 0 0.45rem;
    }

    .page-hero-subtitle {
        font-size: 0.92rem;
        line-height: 1.5;
        margin: 0;
    }

    /* Indicação visual de que a navegação editorial continua para a direita. */
    .comunicado-nav {
        position: relative;
    }

    .comunicado-nav::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 2rem;
        height: calc(100% - 0.35rem);
        pointer-events: none;
        background: linear-gradient(90deg, rgba(248, 250, 253, 0), var(--bg-deep));
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    /* Em tablet, a faixa volta a ser horizontal e ainda mais discreta. */
    .petition-strip-inner {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .petition-strip-audio,
    .btn-share-strip {
        flex: 0 0 auto;
    }

    .petition-strip-compact-info {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .petition-strip-track {
        order: initial;
        flex: 1 1 auto;
        min-width: 5rem;
    }
}

@media (max-width: 480px) {
    /* Corrige o min-content overflow dos cartões em 320 px. */
    .video-testimonial-card > *,
    .video-wrapper,
    .testimonial-video-player,
    .video-testimonial-info {
        min-width: 0;
        width: 100%;
    }

    .video-testimonial-card {
        padding: 1rem;
    }

    .mensagem-card {
        padding: 2rem 1.25rem;
    }

    .mensagem-card-btn {
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        padding: 0.7rem 1rem;
        white-space: normal;
        line-height: 1.25;
    }

    .btn-outline-gold.btn-sm {
        width: 100%;
        max-width: 100%;
        padding: 0.7rem 1rem;
        white-space: normal;
        line-height: 1.25;
    }

    .cookie-banner {
        max-height: 46vh;
        overflow-y: auto;
        padding: 1rem;
    }

    .cookie-banner-title {
        font-size: 1.1rem;
    }

    .cookie-banner-text {
        font-size: 0.8rem;
        line-height: 1.45;
        text-align: left;
    }

    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .cookie-banner-actions .btn {
        width: 100%;
        min-height: 44px;
        padding: 0.6rem 0.45rem;
        font-size: 0.68rem;
        line-height: 1.15;
        white-space: normal;
    }

    .cookie-banner-actions .btn:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 360px) {
    /* Mantém o CTA primário visível no primeiro ecrã de 320 px. */
    .petition-strip-inner {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
        gap: 0.35rem;
    }

    .petition-strip-label,
    .petition-strip-pct {
        font-size: 0.61rem;
    }

    .btn-share-strip {
        width: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    .hero-section {
        padding-top: 1.25rem;
        padding-bottom: 4rem;
    }

    .hero-badge {
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.75rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.85rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }

    .hero-actions {
        gap: 0.55rem;
        margin-bottom: 1rem;
    }

    .hero-actions .btn {
        min-height: 46px;
    }
}

@media (max-width: 480px) {
    /* Mostra apenas o total, a percentagem e a partilha no mobile. */
    .petition-strip {
        position: relative;
        z-index: 1010;
        isolation: isolate;
    }

    .petition-strip-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "info share";
        align-items: center;
        gap: 0.45rem;
        padding: 0.35rem 0.7rem 0.4rem;
    }

    .petition-strip-audio,
    .petition-strip-track {
        display: none;
    }

    .petition-strip-compact-info {
        grid-area: info;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto;
        width: auto;
        max-width: none;
        gap: 0.3rem;
        align-items: center;
        min-width: 0;
        overflow: visible;
        white-space: nowrap;
    }

    .petition-strip-label,
    .petition-strip-pct {
        font-size: 0.68rem;
        line-height: 1.15;
    }

    .petition-strip-label {
        white-space: nowrap;
    }

    .petition-strip-pct {
        white-space: nowrap;
    }

    .btn-share-strip {
        grid-area: share;
        width: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .btn-share-strip i {
        font-size: 0.9rem;
    }

    .btn-share-strip-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .hero-video-element {
        display: none !important;
    }

    .hero-video-sound-toggle {
        display: none !important;
    }
}
