/* ===================================================
   METALÚRGICOS DE ITU — STYLESHEET PRINCIPAL
   Design: Jornal Digital Moderno
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:       #BB1719;
    --red-dark:  #8f1012;
    --red-light: #e82022;
    --black:     #0d0d0d;
    --dark:      #1a1a1a;
    --gray-dark: #2d2d2d;
    --gray:      #555;
    --gray-mid:  #888;
    --gray-light:#bbb;
    --border:    #e0e0e0;
    --bg-light:  #f8f8f8;
    --bg-section:#f2f2f2;
    --white:     #ffffff;
    --font:      'Inter', system-ui, sans-serif;
    --font-head: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
    --shadow:    0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
    --radius:    8px;
    --radius-lg: 16px;
    --transition: all .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Top Bar ---------- */
.topbar {
    background: var(--dark);
    color: var(--gray-light);
    font-size: .8rem;
    padding: 6px 0;
    position: relative;
    z-index: 100;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-date { color: var(--gray-light); }
.topbar-sep  { color: var(--gray); }
.topbar-tel {
    display: flex; align-items: center; gap: 6px;
    color: var(--gray-light);
    transition: color .2s;
}
.topbar-tel:hover { color: var(--red-light); }
.topbar-tel svg { width: 14px; height: 14px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-social {
    display: flex; align-items: center;
    color: var(--gray-mid);
    transition: color .2s;
    padding: 2px;
}
.topbar-social:hover { color: var(--red-light); }
.topbar-social svg { width: 16px; height: 16px; }
.topbar-btn {
    background: var(--red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: .78rem;
    font-weight: 600;
    transition: background .2s;
    letter-spacing: .3px;
}
.topbar-btn:hover { background: var(--red-light); }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 150;
    box-shadow: var(--shadow);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.15); }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.header-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform .3s;
}
.header-logo:hover img { transform: scale(1.05); }
.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -.5px;
}
.logo-sub {
    font-size: .85rem;
    font-weight: 600;
    color: var(--dark);
}
.logo-tag {
    font-size: .7rem;
    color: var(--gray-mid);
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* --- Navigation --- */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav li { position: relative; }
.main-nav a {
    display: block;
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark);
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: var(--red); background: #fff0f0; }
.main-nav .has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform .2s;
}
.main-nav .has-dropdown:hover > a::after { transform: rotate(180deg); }
.main-nav .nav-cta {
    background: var(--red);
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 700;
    letter-spacing: .3px;
}
.main-nav .nav-cta:hover { background: var(--red-dark) !important; color: #fff !important; }

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s ease;
    z-index: 99;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 10px 18px;
    font-size: .84rem;
    color: var(--dark);
    border-radius: 0;
    border-bottom: 1px solid var(--bg-section);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: #fff0f0; color: var(--red); padding-left: 24px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
    transition: background .2s;
}
.hamburger:hover { background: var(--bg-light); }
.hamburger span {
    display: block;
    width: 24px; height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Botão fechar + cabeçalho do menu mobile (ocultos no desktop) */
.mobile-nav-close {
    display: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--dark);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s;
    flex-shrink: 0;
}
.mobile-nav-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.mobile-nav-close svg { width: 20px; height: 20px; }
.mobile-nav-header { display: none; }
.mobile-nav-logo-wrap { display: none; }

/* ---------- News Ticker ---------- */
.ticker-wrap {
    background: var(--red);
    color: #fff;
    overflow: hidden;
    font-size: .82rem;
    border-bottom: 1px solid var(--red-dark);
}
.ticker-wrap .container {
    display: flex;
    align-items: center;
    height: 36px;
    gap: 0;
}
.ticker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--red-dark);
    padding: 0 16px;
    height: 100%;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .5px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}
.ticker-label svg { width: 14px; height: 14px; }
.ticker-inner {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.ticker-track {
    display: flex;
    align-items: center;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
}
.ticker-item {
    padding: 0 40px;
    color: rgba(255,255,255,.9);
    font-weight: 500;
    transition: color .2s;
}
.ticker-item::before {
    content: '●';
    margin-right: 40px;
    opacity: .5;
    font-size: .6rem;
}
.ticker-item:hover { color: #fff; text-decoration: underline; }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Hero / Banner ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    min-height: 580px;
    display: flex;
    align-items: center;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .35;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 680px;
}
.hero-content .hero-cat {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 18px;
}
.hero-content h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    margin-bottom: 28px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .95rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(51,85,247,.4);
}
.hero-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(51,85,247,.5);
}
.hero-btn svg { width: 18px; height: 18px; }

/* Hero Nav Dots */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dot {
    width: 10px; height: 10px;
    background: rgba(255,255,255,.4);
    border-radius: 50%;
    transition: all .3s;
    cursor: pointer;
}
.hero-dot.active { background: var(--red); width: 28px; border-radius: 5px; }

/* Hero fallback (sem imagem) */
.hero-static {
    min-height: 480px;
    background: linear-gradient(135deg, #0c1d5c 0%, #1b3f96 50%, #0a1845 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-static::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,.02) 40px,
        rgba(255,255,255,.02) 80px
    );
}
.hero-gears {
    position: absolute;
    left: calc(50% + 340px);
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 375px;
    opacity: .15;
    pointer-events: none;
    object-fit: contain;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    background: var(--red);
    color: #fff;
    padding: 28px 0;
}
.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}
.stat-item {
    padding: 0 24px;
    border-right: 1px solid rgba(255,255,255,.2);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    font-family: var(--font-head);
    display: block;
}
.stat-label {
    font-size: .82rem;
    opacity: .85;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: .3px;
}

/* ---------- Section Styles ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-light); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--gray);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto;
}
.section-header .section-line {
    width: 56px; height: 4px;
    background: var(--red);
    border-radius: 2px;
    margin: 16px auto 0;
}
.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header-inline h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-header-inline h2::before {
    content: '';
    width: 5px; height: 28px;
    background: var(--red);
    border-radius: 3px;
    flex-shrink: 0;
}
.section-link {
    font-size: .88rem;
    font-weight: 700;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s;
}
.section-link:hover { gap: 10px; }

/* ---------- Cards de Notícias ---------- */
.news-grid { display: grid; gap: 28px; }
.news-grid-main { grid-template-columns: 2fr 3fr; align-items: start; }
.news-grid-2   { grid-template-columns: repeat(2, 1fr); }
.news-grid-3   { grid-template-columns: repeat(3, 1fr); }
.news-grid-4   { grid-template-columns: repeat(4, 1fr); }

/* Layout horizontal para seções de categoria na home */
.news-catlist { display: flex; flex-direction: column; gap: 16px; }
.news-catlist-item {
    display: flex; gap: 20px; padding: 20px;
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: var(--transition); cursor: pointer;
}
.news-catlist-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.news-catlist-img {
    width: 100px; aspect-ratio: 4/5; flex-shrink: 0;
    border-radius: var(--radius); overflow: hidden; background: var(--bg-section);
}
.news-catlist-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.news-catlist-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.news-catlist-title { font-size: .95rem; font-weight: 700; color: var(--dark); line-height: 1.4; transition: color .2s; }
.news-catlist-item:hover .news-catlist-title { color: var(--red); }
.news-catlist-excerpt { font-size: .83rem; color: var(--gray); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-catlist-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: .76rem; color: var(--gray-mid); }
.news-catlist-read { color: var(--red); font-weight: 700; }
.section-subtitle { font-size: .85rem; color: var(--gray); font-style: italic; margin-top: 2px; }

/* Card principal (featured) */
.card-featured {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    background: var(--dark);
    aspect-ratio: 4/5;
    display: flex;
    align-items: flex-end;
    transition: opacity .25s ease;
}
.card-featured img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    opacity: .6;
}
.card-featured:hover img { transform: scale(1.04); opacity: .55; }
.card-featured .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,.75) 35%, rgba(0,0,0,.05) 65%, transparent 100%);
}
.card-featured .card-body {
    position: relative;
    z-index: 2;
    padding: 28px;
    color: #fff;
}
.card-featured .card-cat {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.card-featured h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color .2s;
}
.card-featured:hover h3 { color: var(--red-light); }
.card-featured p {
    font-size: .88rem;
    opacity: .8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-featured .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: .78rem;
    opacity: .7;
}
.card-featured .card-meta svg { width: 14px; height: 14px; }

/* Card Sidebar (pequeno) */
.card-side-list { display: flex; flex-direction: column; gap: 0; }
.card-side {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.card-side:last-child { border-bottom: none; }
.card-side:hover { background: var(--bg-light); margin: 0 -12px; padding: 16px 12px; border-radius: 6px; }
.card-side-img {
    width: 94px; aspect-ratio: 4/5;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-section);
}
.card-side-active { background: var(--bg-light); border-left: 3px solid var(--red); padding-left: 9px !important; }
.card-side-active h3 { color: var(--red) !important; }

/* Wrapper do sidebar — controla altura e exibe "Ver todas" fixo na base */
.news-sidebar-wrap {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Sidebar de notícias — 2 colunas modernas */
.news-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-content: start;
    overflow-y: auto;
    scrollbar-width: none;
    flex: 1;
    min-height: 0;
}
.news-sidebar::-webkit-scrollbar { display: none; }
.side-mini-card {
    display: flex; gap: 8px; padding: 5px;
    border-radius: 8px; cursor: pointer; text-decoration: none;
    transition: background .18s, border-color .18s;
    align-items: flex-start;
    border: 1px solid transparent;
}
.side-mini-card:hover { background: var(--bg-light); border-color: var(--border); }
.side-mini-card.card-side-active { background: var(--bg-light); border-color: var(--red); }
.side-mini-card.card-side-active .side-mini-title { color: var(--red); }
.side-mini-img {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden; background: var(--bg-section);
}
.side-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.side-mini-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.side-mini-body { flex: 1; min-width: 0; }
.side-mini-cat {
    display: block; font-size: .62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; color: var(--red); margin-bottom: 2px;
}
.side-mini-title {
    font-size: .8rem; font-weight: 700; line-height: 1.35; color: var(--dark);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .18s;
}
.side-mini-card:hover .side-mini-title { color: var(--red); }
.side-mini-date { font-size: .68rem; color: var(--gray-mid); margin-top: 3px; }
.side-ver-todas {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 10px 8px 2px; border-top: 1px solid var(--border); margin-top: 4px;
    font-size: .82rem; font-weight: 700; color: var(--red); text-decoration: none;
    transition: color .2s; flex-shrink: 0;
}
.side-ver-todas:hover { color: var(--red-dark); }
.card-side-img img { width: 100%; height: 100%; object-fit: cover; }
.card-side-body { flex: 1; min-width: 0; }
.card-side .card-cat {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--red);
    margin-bottom: 4px;
}
.card-side h3 {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.card-side:hover h3 { color: var(--red); }
.card-side .card-date { font-size: .74rem; color: var(--gray-mid); margin-top: 4px; }

/* Card padrão (grid 3 ou 4) */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-section);
}
.card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .4s ease;
}
.card:hover .card-img img { transform: scale(1.06); }
.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card .card-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--red);
    margin-bottom: 10px;
}
.card h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.card:hover h3 { color: var(--red); }
.card p {
    font-size: .84rem;
    color: var(--gray);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--bg-section);
    font-size: .76rem;
    color: var(--gray-mid);
}
.card .card-read {
    color: var(--red);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    transition: gap .2s;
}
.card:hover .card-read { gap: 8px; }

/* Categoria pill */
.cat-noticias   { color: #0066cc; }
.cat-geral      { color: #0066cc; }
.cat-juridico   { color: #6600cc; }
.cat-esportes   { color: #009933; }
.cat-beneficios { color: #cc6600; }
.cat-editais    { color: var(--red); }
.cat-sindicato  { color: #c41a1a; }
.cat-acordo     { color: #7a4f00; }
.cat-eventos    { color: #007080; }
.cat-saude      { color: #006633; }

/* ---------- Quick Access ---------- */
.quick-access { padding: 48px 0; background: var(--bg-section); }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.quick-item:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.quick-icon {
    width: 56px; height: 56px;
    background: #fff0f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.quick-item:hover .quick-icon { background: var(--red); }
.quick-icon svg {
    width: 28px; height: 28px;
    stroke: var(--red);
    transition: stroke .2s;
}
.quick-item:hover .quick-icon svg { stroke: #fff; }
.quick-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

/* ---------- About / Quem Somos ---------- */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}
.about-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 300px;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-badge {
    position: absolute;
    bottom: 0; left: -16px;
    background: var(--red);
    color: #fff;
    padding: 22px 22px 12px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}
.about-badge strong { display: block; font-size: 2rem; font-weight: 900; font-family: var(--font-head); line-height: 1.25; }
.about-badge span  { font-size: .78rem; opacity: .9; line-height: 1; display: block; margin-bottom: 2px; }
.about-text h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}
.about-text h2 span { color: var(--red); }
.about-text p { color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}
.about-tag {
    background: var(--bg-section);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-dark);
    transition: var(--transition);
}
.about-tag:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Benefits Section ---------- */
.benefits-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    background: var(--bg-section);
    padding: 8px;
    border-radius: 12px;
}
.benefits-tab {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: #fff;
    background: #333;
    border: 1.5px solid #333;
}
.benefits-tab.active,
.benefits-tab:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.benefits-panel { display: none; }
.benefits-panel.active { display: block; }

.benefit-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.benefit-info-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.benefit-info-box h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.benefit-info-box h4 svg { width: 18px; height: 18px; }
.benefit-info-box p { font-size: .88rem; color: var(--gray); line-height: 1.7; margin-bottom: 8px; }
.benefit-info-box strong { color: var(--dark); }

/* ---------- Partners Grid (beneficios.php) ---------- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.partner-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}
.partner-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-card img { height: 60px; object-fit: contain; margin: 0 auto 12px; }
.partner-card h5 { font-size: .82rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.partner-card p  { font-size: .76rem; color: var(--gray-mid); }

/* ---------- Benefícios imagens (home) ---------- */
.benef-desc { font-size: .95rem; color: var(--gray); margin-bottom: 20px; }
.benef-img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.benef-img-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    aspect-ratio: 4/3;
    background: var(--bg-section);
}
.benef-img-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.benef-img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.benef-footer { margin-top: 4px; }

/* ---------- Gallery Grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1/1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: block;
    text-decoration: none;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
    transition: background .3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,.55); }
.gallery-album-label {
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: all .3s;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    line-height: 1.3;
}
.gallery-item:hover .gallery-album-label { opacity: 1; transform: translateY(0); }

/* ---------- Diretoria ---------- */
.diretoria-section-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--red);
    border-left: 4px solid var(--red);
    padding-left: 12px;
    margin: 32px 0 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.diretoria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.diretoria-grid-3 { grid-template-columns: repeat(3, 1fr); }
.diretoria-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dir-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    text-align: left;
}
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dir-img {
    width: 80px;
    height: 107px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f0f0f0;
}
.dir-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.dir-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-section) 0%, #e8e8e8 100%);
}
.dir-img-placeholder svg { width: 32px; height: 32px; stroke: var(--gray-light); }
.dir-body { padding: 4px 0; flex: 1; min-width: 0; }
.dir-cargo {
    font-size: .68rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
    line-height: 1.3;
}
.dir-nome {
    font-size: .9rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}
.dir-empresa {
    font-size: .74rem;
    color: var(--gray-mid);
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
}

/* ---------- Historia / Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--red) 0%, var(--border) 100%);
    border-radius: 2px;
}
.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity .5s ease, transform .5s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-year {
    width: 80px;
    flex-shrink: 0;
    text-align: right;
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--red);
    padding-right: 8px;
    padding-top: 4px;
}
.timeline-dot {
    position: absolute;
    left: 72px;
    top: 10px;
    width: 18px; height: 18px;
    background: var(--red);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--red);
    z-index: 1;
}
.timeline-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    flex: 1;
    box-shadow: var(--shadow-sm);
    line-height: 1.7;
    font-size: .9rem;
    color: var(--gray);
    transition: box-shadow .3s;
}
.timeline-content:hover { box-shadow: var(--shadow); }

/* ---------- Forms ---------- */
.form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.form-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.form-subtitle { color: var(--gray); margin-bottom: 12px; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--gray-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .9rem;
    color: var(--dark);
    background: var(--bg-light);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(187,23,25,.12);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}
.form-check input[type=checkbox] {
    width: 18px; height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--red);
}
.form-check label { font-size: .82rem; color: var(--gray); line-height: 1.5; }
.form-actions { display: flex; gap: 12px; margin-top: 14px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .9rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font);
}
.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(51,85,247,.35); }
.btn-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: var(--gray-dark); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Page Hero (interno) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-dark) 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(51,85,247,.05) 40px, rgba(51,85,247,.05) 80px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(51,85,247,.3);
    border: 1px solid rgba(51,85,247,.5);
    color: #ffaaab;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.page-hero p {
    color: rgba(255,255,255,.75);
    font-size: 1rem;
    max-width: 600px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: .8rem;
    color: rgba(255,255,255,.6);
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ---------- Notícia interna ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-header { margin-bottom: 28px; }
.article-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff0f0;
    color: var(--red);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.article-header h1 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 16px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: .82rem;
    color: var(--gray-mid);
    flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta svg { width: 14px; height: 14px; }
.article-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
}
.article-img img { width: 100%; max-height: 480px; object-fit: cover; }
.article-content {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gray-dark);
}
.article-content h2, .article-content h3 {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--dark);
    margin: 32px 0 16px;
}
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.2rem; }
.article-content p { margin-bottom: 1.3em; }
.article-content .art-p-emoji { margin-top: 0.6em; }
.article-content .art-blank { padding: 0.6rem 0; margin: 0; line-height: 0; font-size: 0; overflow: hidden; }
.article-content a { color: var(--red); text-decoration: underline; }
.article-content img { border-radius: var(--radius); margin: 20px auto; }
.article-content ul, .article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--dark); }
.article-content blockquote {
    border-left: 4px solid var(--red);
    padding: 16px 24px;
    background: var(--bg-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--gray);
    font-style: italic;
    margin: 24px 0;
}
.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}
.article-share span { flex: 0 0 100%; font-weight: 700; font-size: .88rem; color: var(--dark); }
.share-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}
.share-btn.fb { background: #1877f2; color: #fff; }
.share-btn.wa { background: #25d366; color: #fff; }
.share-btn.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.share-btn.tw { background: #1da1f2; color: #fff; }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn svg { width: 16px; height: 16px; }

/* ---------- Editais ---------- */
.edital-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
}
.edital-item:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateX(4px); }
.edital-icon {
    width: 52px; height: 52px;
    background: #fff0f0;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.edital-icon svg { width: 28px; height: 28px; stroke: var(--red); }
.edital-info { flex: 1; min-width: 0; }
.edital-info h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.edital-info p  { font-size: .8rem; color: var(--gray-mid); }
.edital-item .btn { flex-shrink: 0; }

/* ---------- Paginação ---------- */
.paginacao {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.pg-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: .84rem;
    font-weight: 600;
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--dark);
    transition: var(--transition);
}
.pg-btn:hover { border-color: var(--red); color: var(--red); }
.pg-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.pg-prev, .pg-next { font-weight: 700; }

/* ---------- CTA Banner ---------- */
.cta-banner {
    background-color: #0f1113;
    color: #fff;
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Textura de aço escovado + brilhos vermelhos */
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.2-5.6-14zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z'/%3E%3C/svg%3E") -70px -70px / 220px 220px no-repeat,
        radial-gradient(ellipse 55% 110% at 100% 50%, rgba(51,85,247,0.5) 0%, transparent 65%),
        radial-gradient(ellipse 30% 80% at 0% 50%, rgba(51,85,247,0.2) 0%, transparent 55%),
        repeating-linear-gradient(-55deg, transparent, transparent 2px, rgba(255,255,255,0.018) 2px, rgba(255,255,255,0.018) 3px);
    pointer-events: none;
}
/* Engrenagem grande à direita */
.cta-banner::after {
    content: '';
    position: absolute;
    right: -90px;
    top: 50%;
    transform: translateY(-50%) rotate(14deg);
    width: 420px;
    height: 420px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.2-5.6-14zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.14;
    pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-banner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
    background: #fff;
    color: var(--red);
    border: 2px solid #fff;
}
.btn-white:hover { background: transparent; color: #fff; }

/* ---------- Boletins / Jornais ---------- */
.jornal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.jornal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.jornal-img {
    height: 200px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.jornal-img img { height: 100%; object-fit: cover; }
.jornal-img-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-light);
}
.jornal-img-ph svg { width: 56px; height: 56px; stroke: var(--gray-light); }
.jornal-body { padding: 20px; }
.jornal-edicao { font-size: .76rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.jornal-body h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.jornal-body .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* ---------- Alert boxes ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: .88rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(51,85,247,.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .3s;
    z-index: 500;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); }
.footer-body { padding: 64px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
}
.footer-col { }
.footer-brand .footer-logo { display: inline-block; margin-top: -16px; margin-bottom: 2px; }
.footer-brand .footer-logo img { width: 125px; opacity: .9; }
.footer-brand p { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    color: rgba(255,255,255,.7);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-title {
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: .84rem;
    color: rgba(255,255,255,.6);
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--red); font-size: 1rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .83rem;
    color: rgba(255,255,255,.65);
}
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--red); }
.footer-contact a { color: rgba(255,255,255,.65); transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.horarios { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; }
.footer-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn-footer-cta,
.btn-footer-denuncie {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: .83rem;
    font-weight: 700;
    transition: var(--transition);
}
.btn-footer-cta { background: var(--red); color: #fff; }
.btn-footer-cta:hover { background: var(--red-dark); }
.btn-footer-denuncie { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.15); }
.btn-footer-denuncie:hover { background: rgba(255,255,255,.15); color: #fff; }
/* Sedes no rodapé */
.footer-sedes { border-top: 1px solid rgba(255,255,255,.1); padding: 40px 0; }
.footer-sedes-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); margin-bottom: 24px; }
.footer-sedes-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.footer-sede-card { }
.footer-sede-name {
    display: flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 800; color: #fff;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-sede-name svg { stroke: var(--red); flex-shrink: 0; }
.footer-sede-info { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-sede-info li { display: flex; gap: 9px; font-size: .79rem; line-height: 1.55; color: rgba(255,255,255,.58); }
.footer-sede-info > li > svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; stroke: var(--red); }
.footer-sede-info a { color: rgba(255,255,255,.65); transition: color .2s; }
.footer-sede-info a:hover { color: #fff; }
.footer-sede-times { display: flex; flex-direction: column; gap: 2px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes countUp {
    from { opacity: 0; transform: scale(.8); }
    to   { opacity: 1; transform: scale(1); }
}
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.stagger.visible > * { opacity: 1; transform: none; transition-delay: .4s; }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: .07s; }
.stagger.visible > *:nth-child(3) { transition-delay: .14s; }
.stagger.visible > *:nth-child(4) { transition-delay: .21s; }
.stagger.visible > *:nth-child(5) { transition-delay: .28s; }
.stagger.visible > *:nth-child(6) { transition-delay: .35s; }
.stagger.visible > *:nth-child(7) { transition-delay: .42s; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ---------- Admin link ---------- */
.admin-edit-bar {
    position: fixed;
    bottom: 28px; left: 28px;
    display: flex;
    gap: 8px;
    z-index: 500;
}
.admin-edit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--dark);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: .85;
}
.admin-edit-btn:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .news-grid-main { grid-template-columns: 1fr; }
    .card-featured { aspect-ratio: 4/5; }
    .about-wrap { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-sedes-grid { grid-template-columns: repeat(2,1fr); gap: 28px; }
    .quick-grid { grid-template-columns: repeat(5, 1fr); }
    .diretoria-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); padding: 16px; }
    .stat-item:nth-child(2n) { border-right: none; }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
    .card-featured, .news-sidebar-wrap { min-width: 0; }
    .news-sidebar-wrap { height: auto !important; }
    .hamburger { display: flex; }
    .header-logo img { width: 54px; height: 54px; }
    .logo-title { font-size: 1.1rem; }

    /* ── Menu mobile: Magazine Sidebar ── */
    .main-nav { display: flex; flex-direction: column; position: fixed; inset: 0; top: 0; background: #fff; z-index: 200; padding: 0; overflow-y: auto; transform: translateX(100%); transition: transform .38s cubic-bezier(.4,0,.2,1), visibility .38s; visibility: hidden; border-left: 4px solid var(--red); box-shadow: -6px 0 32px rgba(0,0,0,.12); }
    .main-nav.open { transform: translateX(0); visibility: visible; }

    /* Header sticky */
    .mobile-nav-header { display: flex; align-items: center; padding: 16px 18px; background: #fff; border-bottom: 1px solid #ebebeb; flex-shrink: 0; position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 10px rgba(0,0,0,.06); gap: 14px; }
    .mobile-nav-logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: 1; min-width: 0; }
    .mobile-nav-logo-wrap img { height: 80px; width: auto; flex-shrink: 0; display: block; margin-left: -24px; }
    .mobile-nav-brand { min-width: 0; flex: 1; line-height: 1.2; }
    .mobile-nav-brand-name { display: block; font-size: 1.35rem; font-weight: 900; color: var(--red); letter-spacing: -.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mobile-nav-brand-sub { display: block; font-size: .92rem; font-weight: 600; color: var(--dark); white-space: nowrap; }
    .mobile-nav-brand-tag { display: block; font-size: .7rem; color: var(--gray-mid); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
    .mobile-nav-close { display: flex; flex-shrink: 0; min-width: 36px; width: 36px; height: 36px; border-radius: 50%; background: #f2f2f2; border: 1px solid #e2e2e2; color: #333; align-items: center; justify-content: center; }
    .mobile-nav-close svg { width: 16px; height: 16px; }
    .mobile-nav-close:hover { background: var(--red); border-color: var(--red); color: #fff; }

    /* Lista */
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 44px; margin: 0; }
    .main-nav li { width: 100%; margin: 0; padding: 0; list-style: none; }

    /* Links base */
    .main-nav a { display: flex; align-items: center; padding: 12px 18px; font-size: .75rem; font-weight: 600; color: #1a1a2e; border-bottom: none; border-radius: 0; width: 100%; box-sizing: border-box; transition: color .15s, background .15s; }
    .main-nav a:hover, .main-nav a.active { color: var(--red); background: #fff5f5; }

    /* Links simples (Início, Galeria, etc.): com seta */
    .main-nav > ul > li:not(.has-dropdown) > a:not(.nav-cta) { font-size: .94rem; font-weight: 800; color: #111; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid #f0f0f0; }
    .main-nav > ul > li:not(.has-dropdown) > a:not(.nav-cta)::after { content: ''; display: block; flex-shrink: 0; width: 8px; height: 8px; border-right: 2px solid var(--red); border-top: 2px solid var(--red); transform: rotate(45deg); opacity: .55; margin-left: 8px; }
    .main-nav > ul > li:not(.has-dropdown) > a:not(.nav-cta):hover::after { opacity: 1; }

    /* Labels de seção */
    .main-nav .has-dropdown > a { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: var(--red) !important; padding: 19px 18px 6px; background: transparent !important; gap: 9px; display: flex; align-items: center; }
    .main-nav .has-dropdown > a::before { content: ''; display: block; flex-shrink: 0; width: 22px; height: 2px; background: var(--red); }
    .main-nav .has-dropdown > a::after { display: none; }

    /* Sub-links */
    .main-nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: #f8f9fa; border-radius: 0; padding: 3px 0 10px; margin: 0; min-width: unset; border-bottom: 1px solid #ebebeb; }
    .main-nav .dropdown a { font-size: .97rem; color: #555; font-weight: 500; padding: 10px 18px 10px 28px; border-bottom: none; background: transparent; display: flex; align-items: center; gap: 10px; }
    .main-nav .dropdown a::before { content: ''; display: block; flex-shrink: 0; width: 6px; height: 6px; background: var(--red); border-radius: 50%; opacity: .6; }
    .main-nav .dropdown a:hover { color: var(--red); background: #fff0f0; }

    /* CTA Associe-se */
    .main-nav .nav-cta { background: var(--red) !important; color: #fff !important; border-radius: 10px; margin: 15px 18px 0; padding: 13px 24px; text-align: center; justify-content: center; display: flex; border-top: none; font-weight: 800; font-size: .75rem; letter-spacing: .8px; text-transform: uppercase; width: calc(100% - 36px); box-shadow: 0 4px 18px rgba(220,38,38,.3); }
    .main-nav .nav-cta:hover { background: var(--red-dark) !important; box-shadow: 0 6px 22px rgba(220,38,38,.45); }
}

@media (max-width: 768px) {
    .news-grid-2, .news-grid-3, .news-grid-4 { grid-template-columns: 1fr; }
    .news-catlist-img { width: 80px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .benef-img-grid { grid-template-columns: repeat(2, 1fr); }
    .diretoria-grid, .diretoria-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-sedes-grid { grid-template-columns: 1fr; }
    .benefit-info-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .topbar-date, .topbar-sep { display: none; }
    .ticker-label { display: none; }
    .timeline::before { left: 0; }
    .timeline-item { flex-direction: column; padding-left: 24px; }
    .timeline-year { width: auto; text-align: left; padding-right: 0; padding-bottom: 0; }
    .timeline-dot { left: -8px; }
    .about-badge { left: 0; bottom: 0; padding-top: 18px; }
    .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
    .cta-banner-btns { flex-direction: column; align-items: center; }
    .article-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
    .article-share { flex-wrap: wrap; }
    .cta-gears-deco { display: none; }
    .cta-banner::after { display: none; }
    .cta-banner::before {
        background:
            radial-gradient(ellipse 55% 110% at 100% 50%, rgba(51,85,247,0.5) 0%, transparent 65%),
            radial-gradient(ellipse 30% 80% at 0% 50%, rgba(51,85,247,0.2) 0%, transparent 55%),
            repeating-linear-gradient(-55deg, transparent, transparent 2px, rgba(255,255,255,0.018) 2px, rgba(255,255,255,0.018) 3px);
    }
    .cta-dash { display: none; }
    .cta-line2 { display: block; }
    .news-sidebar-wrap { display: flex; flex-direction: column; overflow: visible; height: auto !important; }
    .news-sidebar { flex: 0 0 auto; overflow: visible; height: auto; max-height: none; }
    .side-ver-todas { margin-top: 8px; }
    .card-featured { aspect-ratio: 4/5; width: 100%; max-width: 100%; }
    .section { padding: 44px 0; }
    .section-header { margin-bottom: 28px; }
    .hero-cat { margin-top: 14px; }
    .hero-content { padding-bottom: 22px; }
}

@media (max-width: 640px) {
    .mvv-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .quick-grid { grid-template-columns: 1fr 1fr; }
    .stats-bar .container { grid-template-columns: 1fr 1fr; }
    .partners-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .benef-img-grid { grid-template-columns: repeat(2, 1fr); }
    .diretoria-grid, .diretoria-grid-4 { grid-template-columns: 1fr; }
    /* Lista de notícias da home: uma por linha e metade dos itens em telas muito estreitas */
    .news-sidebar { grid-template-columns: 1fr; }
    .news-sidebar .side-mini-card:nth-child(n+8) { display: none; }
}

/* ── Azul reservado: botões, stats bar, hero ────────────────── */
.btn-primary { background: #3355F7; border-color: #3355F7; }
.btn-primary:hover { background: #2644D4; border-color: #2644D4; box-shadow: 0 4px 12px rgba(51,85,247,.35); }
.stats-bar { background: #3355F7; }
.hero-btn { background: #3355F7; }
.hero-btn:hover { background: #2644D4; }
.hero-content .hero-cat { background: #3355F7; }

/* Hero estático — texto branco sobre fundo escuro */
.hero-static .hero-content { color: #fff; }
.hero-static .hero-content p { color: rgba(255,255,255,.85); }

/* ── Lightbox: mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
    #lb-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 95vw !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }
    #lb-img-box {
        max-width: 95vw !important;
        max-height: 72vh !important;
        line-height: 0 !important;
    }
    #lb-img {
        max-width: 95vw !important;
        max-height: 72vh !important;
        width: auto !important;
        height: auto !important;
    }
    /* Nav criada por JS abaixo da imagem */
    #lb-nav-mobile {
        display: flex !important;
        gap: 8px !important;
        width: 95vw !important;
        margin-top: 8px !important;
    }
    #lb-nav-mobile #lb-prev,
    #lb-nav-mobile #lb-next {
        position: static !important;
        transform: none !important;
        left: auto !important; right: auto !important; top: auto !important;
        flex: 1 !important;
        height: 52px !important;
        width: auto !important;
    }
}
