/* =====================================================================
   ACAM — Camada de modernização visual (institucional / cultural)
   Carregada por último: sobrescreve styles.css e bootstrap.css.
   Não altera a lógica PHP nem dimensões dos sliders (717x357).
   Direção: verde esmeralda + dourado berimbau + creme/areia.
   Tipografia: Fraunces (display) + Mulish (texto).
   ===================================================================== */

:root {
    /* Verdes */
    --green-950: #06241A;
    --green-900: #0A3727;
    --green-800: #0F4A33;
    --green-700: #145C3E;
    --green-600: #1B7A50;
    --green-500: #2A9A65;
    --green-300: #8FCBA9;
    --green-100: #DCEFE2;
    /* Dourado / âmbar (berimbau) */
    --gold-700: #9A6A18;
    --gold-600: #BE8722;
    --gold-500: #DDA72D;
    --gold-300: #F2CD72;
    /* Neutros quentes */
    --sand-50:  #FAF7EF;
    --sand-100: #F2ECDF;
    --cream:    #FFFDF8;
    --ink-900:  #14201A;
    --ink-700:  #2B3A31;
    --ink-500:  #5C6A60;
    --line:     #E7E0D1;

    /* Acento tecnológico (mint/emerald glow) */
    --glow: #1FD494;
    --glow-2: #36E6C0;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(14,40,28,.06);
    --shadow-md: 0 16px 38px -16px rgba(14,40,28,.22);
    --shadow-lg: 0 36px 70px -28px rgba(10,55,39,.40);

    --gutter: clamp(18px, 4.5vw, 76px);

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Mulish", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ----------------------------------------------------------- BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden !important; }

body,
body.home {
    font-family: var(--font-body) !important;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-700);
    background: #EEF2EE !important;
    background-image:
        linear-gradient(rgba(20,92,62,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20,92,62,.045) 1px, transparent 1px),
        radial-gradient(1100px 560px at 84% -6%, rgba(31,212,148,.10), transparent 60%),
        radial-gradient(900px 480px at -4% 2%, rgba(20,92,62,.10), transparent 55%) !important;
    background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100% !important;
    background-attachment: fixed !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink-900); letter-spacing: -.01em; }
a { transition: color .25s ease, opacity .25s ease; }

::selection { background: var(--green-500); color: #fff; }

/* --------------------------------------------------------- WRAPPER --- */
/* Full-width: o site preenche toda a tela (sem "card" centralizado) */
#wrapper {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    animation: acamFade .7s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes acamFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Conteúdo principal recebe margem lateral (gutter); o hero é full-bleed */
header, #main, .pagina-content, #appContent > *:not(#hero):not(.hero) { padding-left: var(--gutter); padding-right: var(--gutter); }
header { padding-top: 0; padding-bottom: 0; }
#main { max-width: 1600px; margin: 0 auto !important; }
header { max-width: 1760px; margin: 0 auto !important; }
header .logo { left: var(--gutter) !important; }

/* ---------------------------------------------------------- HEADER --- */
header {
    display: flex !important; align-items: center; justify-content: space-between;
    gap: clamp(16px, 2.5vw, 36px);
    height: 110px !important; position: relative;
    padding-top: 0 !important; padding-bottom: 0 !important;
}
.home header { border-bottom: 0 !important; }
header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
header .logo { position: static !important; left: auto !important; top: auto !important; flex: 0 0 auto; }
header .logo a { display: block; padding: 0 !important; height: auto !important; }
header .logo a img {
    display: block; height: 72px !important;
    filter: drop-shadow(0 6px 14px rgba(14,40,28,.12));
    transition: transform .35s ease;
}
header .logo a:hover img { transform: translateY(-2px) scale(1.02); }
header .border-bottom { display: none !important; }

/* Busca alinhada na mesma linha (flex) */
header .search { float: none !important; margin: 0 !important; flex: 0 0 auto; }
header .search form {
    display: flex; align-items: center;
    background: var(--sand-100);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 4px 4px 6px;
    box-shadow: inset 0 1px 2px rgba(14,40,28,.05);
    transition: box-shadow .25s ease, border-color .25s ease, width .3s ease;
}
header .search form:focus-within { border-color: var(--green-300); box-shadow: 0 0 0 4px rgba(42,154,101,.14); }
header .search form .field {
    height: 38px !important; width: 150px !important;
    background: transparent !important; border: 0 !important;
    color: var(--ink-700) !important; font-family: var(--font-body) !important;
    padding: 0 10px !important; box-shadow: none !important;
}
header .search form .submit {
    width: 38px !important; height: 38px !important; border: 0 !important; cursor: pointer;
    border-radius: 50% !important;
    background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/18px no-repeat !important;
    transition: background-color .25s ease, transform .2s ease;
}
header .search form .submit:hover { background-color: var(--green-700); transform: scale(1.05); }

/* ------------------------------------------------------------ MENU --- */
header .main-menu { float: none !important; margin: 0 !important; flex: 1 1 auto; display: flex; justify-content: center; }
header .main-menu > ul { display: flex; align-items: center; gap: 4px; list-style: none !important; padding: 0 !important; margin: 0 !important; }
header .main-menu ul li { margin-left: 0 !important; position: relative; list-style: none !important; float: none !important; }
header .main-menu ul li a {
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-700) !important;
    padding: 12px 16px !important;
    border-radius: 999px;
    position: relative;
    background: none !important;
}
header .main-menu > ul > li > a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
    background: var(--gold-500); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
header .main-menu > ul > li > a:hover { color: var(--green-700) !important; }
header .main-menu > ul > li > a:hover::after { transform: scaleX(1); }
header .main-menu > ul > li.current > a { color: var(--green-700) !important; }
header .main-menu > ul > li.current > a::after { transform: scaleX(1); }

/* Dropdown (submenus) — posicionamento absoluto abaixo do item pai */
header .main-menu ul li ul.dropdown {
    display: none !important;
    position: absolute !important; top: 100% !important; left: 0 !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-md) !important;
    box-shadow: 0 22px 50px -14px rgba(14,40,28,.30) !important;
    /* padding-top maior cria a folga visual SEM gap de hover (sem margin) */
    padding: 16px 8px 8px !important;
    margin: 0 !important;
    min-width: 220px !important;
    width: max-content !important;
    z-index: 9999 !important;
    list-style: none !important;
    overflow: visible !important;
    background-clip: padding-box;
}
/* Garante stacking acima de tudo (incluindo a barra de busca em viewports estreitos) */
header { z-index: 50 !important; }
header .main-menu { position: relative; z-index: 60; }
header .main-menu ul li { z-index: 1; }
header .main-menu ul li:hover { z-index: 200; }
header .search, header .search form { position: relative; z-index: 1; }
header .main-menu ul li:hover > ul.dropdown { display: block !important; animation: ddFade .22s ease both; }
@keyframes ddFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
header .main-menu ul li ul.dropdown li {
    float: none !important; display: block !important; margin: 0 !important; padding: 0 !important;
    background: transparent !important; border: 0 !important; list-style: none !important;
    position: static !important;
}
header .main-menu ul li ul.dropdown li a {
    display: block !important; width: auto !important;
    background: transparent !important;
    color: var(--ink-700) !important;
    border-radius: 10px !important;
    text-transform: none !important; letter-spacing: .01em !important;
    font-size: 13.5px !important; font-weight: 600 !important;
    padding: 9px 14px !important;
    text-align: left !important;
}
header .main-menu ul li ul.dropdown li a::after { display: none !important; content: none !important; }
header .main-menu ul li ul.dropdown li a:hover {
    background: var(--green-100) !important; color: var(--green-800) !important;
}

/* ============================== HERO / CARROSSEL (full-bleed, tech) === */
.hero {
    position: relative;
    width: 100%;
    height: clamp(460px, 62vh, 640px);
    overflow: hidden;
    background: radial-gradient(120% 120% at 80% 0%, #0d4b34 0%, #07251b 55%, #04150f 100%);
    color: #fff;
    isolation: isolate;
}
.hero::before { /* linha de luz no topo */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 6;
    background: linear-gradient(90deg, transparent, var(--glow) 25%, var(--glow-2) 55%, transparent);
    opacity: .9;
}
.hero__grid { /* malha tecnológica + brilho */
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
        radial-gradient(60% 80% at 88% 18%, rgba(31,212,148,.22), transparent 60%);
    background-size: 52px 52px, 52px 52px, 100% 100%;
    mask-image: linear-gradient(90deg, transparent, #000 40%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.hero__viewport { position: absolute; inset: 0; z-index: 2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero__slide.is-active .hero__img { animation: heroZoom 8s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(4,18,12,.95) 0%, rgba(4,18,12,.82) 32%, rgba(4,18,12,.40) 62%, rgba(4,18,12,.10) 85%),
        linear-gradient(0deg, rgba(4,18,12,.92), transparent 55%);
}

.hero__content {
    position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(120px, 16vh, 170px);
    max-width: min(640px, 70%);
}
.hero__slide .hero__content > * { opacity: 0; transform: translateY(20px); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.hero__slide.is-active .hero__content > *:nth-child(1) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > *:nth-child(2) { transition-delay: .26s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { transition-delay: .37s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { transition-delay: .48s; }

.hero__kicker {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-body); font-weight: 800; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--glow-2);
    padding: 7px 14px; border: 1px solid rgba(31,212,148,.35); border-radius: 999px;
    background: rgba(31,212,148,.08); backdrop-filter: blur(4px);
}
.hero__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 0 rgba(31,212,148,.6); animation: heroPulse 1.8s infinite; }
@keyframes heroPulse { 0% { box-shadow: 0 0 0 0 rgba(31,212,148,.5); } 70% { box-shadow: 0 0 0 9px rgba(31,212,148,0); } 100% { box-shadow: 0 0 0 0 rgba(31,212,148,0); } }

.hero__title { margin: 16px 0 12px !important; padding: 0 !important; }
.hero__title, .hero__title a {
    font-family: var(--font-display) !important; font-weight: 700 !important;
    color: #ffffff !important;
    font-size: clamp(30px, 3.6vw, 52px) !important; line-height: 1.06 !important;
    letter-spacing: -.02em !important;
    text-shadow: 0 4px 22px rgba(0,0,0,.65), 0 2px 6px rgba(0,0,0,.5);
    background: none !important;
    text-transform: none !important;
}
.hero__title a:hover { color: var(--glow-2) !important; }
.hero__excerpt {
    color: rgba(255,255,255,.94) !important;
    font-size: clamp(15px, 1.15vw, 17px) !important;
    font-weight: 500;
    max-width: 540px; margin-bottom: 24px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

.hero__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__date {
    font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--glow-2);
    padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
}
.hero__cta {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 14px; color: #04150f;
    padding: 12px 24px; border-radius: 999px;
    background: linear-gradient(135deg, var(--glow-2), var(--glow));
    box-shadow: 0 16px 40px -14px rgba(31,212,148,.7);
    transition: transform .2s ease, box-shadow .25s ease;
}
.hero__cta span { transition: transform .25s ease; }
.hero__cta:hover { transform: translateY(-2px); color: #04150f; box-shadow: 0 22px 50px -16px rgba(31,212,148,.85); }
.hero__cta:hover span { transform: translateX(5px); }

/* Rail de miniaturas (glass) */
.hero__rail {
    position: absolute; z-index: 5; right: var(--gutter); bottom: clamp(22px, 3vw, 36px);
    display: flex; gap: 12px; max-width: min(620px, 64%);
    padding: 12px; border-radius: 18px;
    background: rgba(8,28,20,.45); border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
}
.hero__chip {
    position: relative; width: 132px; flex: 0 0 auto;
    display: block; text-align: left; cursor: pointer;
    background: transparent !important; border: 0 !important; padding: 0 !important;
    box-shadow: none !important; opacity: .72; transition: opacity .25s ease, transform .25s ease;
}
.hero__chip:hover { opacity: 1; transform: translateY(-3px); }
.hero__chip.is-active { opacity: 1; }
.hero__chip-thumb { display: block; height: 60px; border-radius: 11px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.hero__chip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hero__chip.is-active .hero__chip-thumb { border-color: var(--glow); box-shadow: 0 0 0 2px rgba(31,212,148,.45), 0 0 22px -4px rgba(31,212,148,.7); }
.hero__chip:hover .hero__chip-thumb img { transform: scale(1.08); }
.hero__chip-text {
    display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 700;
    font-size: 11.5px; line-height: 1.3; color: rgba(255,255,255,.82);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__chip.is-active .hero__chip-text { color: #fff; }
.hero__chip-bar { display: block; height: 3px; margin-top: 8px; border-radius: 3px; background: rgba(255,255,255,.16); overflow: hidden; }
.hero__chip-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--glow), var(--glow-2)); }
.hero__chip.is-active .hero__chip-bar i { animation: heroProg var(--hero-dur, 6.5s) linear forwards; }
@keyframes heroProg { from { width: 0; } to { width: 100%; } }

@media (max-width: 900px) {
    .hero { height: auto; min-height: 460px; padding-bottom: 18px; }
    .hero__content { position: static; padding: 150px var(--gutter) 0; max-width: 100%; }
    .hero__rail { position: static; margin: 18px var(--gutter) 0; max-width: 100%; overflow-x: auto; }
    .hero__shade { background: linear-gradient(0deg, rgba(4,21,15,.94) 12%, rgba(4,21,15,.45) 55%, rgba(4,21,15,.7)); }
}

/* -------------------------------------------------- TÍTULOS SEÇÃO ---- */
.marked-title {
    display: flex !important; align-items: center; gap: 18px;
    border: 0 !important; margin-bottom: 26px !important; padding-top: 6px;
}
.marked-title::after {
    content: ""; flex: 1; height: 2px;
    background: linear-gradient(90deg, var(--line), transparent);
    border-radius: 2px;
}
.marked-title a { display: inline-flex; align-items: center; gap: 12px; }
.marked-title h3 {
    background: none !important; color: var(--green-800) !important;
    font-family: var(--font-display) !important; font-weight: 600 !important;
    font-size: 27px !important; line-height: 1.1 !important; height: auto !important;
    padding: 0 !important; letter-spacing: -.015em;
    position: relative;
}
.marked-title a::before {
    content: ""; width: 8px; height: 26px; border-radius: 4px;
    background: linear-gradient(var(--gold-500), var(--gold-600));
    box-shadow: 0 4px 10px -3px var(--gold-600);
}
.marked-title a:hover h3 { color: var(--green-600) !important; }

/* ----------------------------------------------------------- CARDS --- */
article { background: transparent !important; }

article.border { border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 30px !important; }

article .post-thumb {
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--sand-100);
}
article .post-thumb img { display: block; width: 100%; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
article:hover .post-thumb img { transform: scale(1.07); }

article .post-thumb .overlay {
    opacity: 0; transition: opacity .3s ease;
    background: linear-gradient(180deg, rgba(6,36,26,.05), rgba(6,36,26,.62));
}
article:hover .post-thumb .overlay { opacity: 1 !important; }
article .post-thumb .overlay .cat {
    border-bottom: 0 !important; bottom: 16px !important;
    font-family: var(--font-body); font-weight: 800; font-size: 11px !important;
    letter-spacing: .12em; text-transform: uppercase; color: #fff !important;
}
article .post-thumb .overlay .cat .icon {
    background: var(--gold-500); border-radius: 50%;
}

/* Descrições */
article .cat-post-desc { padding-top: 16px; }
article .cat-post-desc h3 a,
article .cat-post-desc h3 {
    color: var(--ink-900) !important;
    font-family: var(--font-display) !important; font-weight: 600 !important;
    font-size: 20px !important; line-height: 1.25 !important;
    text-transform: none !important; letter-spacing: -.01em;
}
article .cat-post-desc h3 a:hover { color: var(--green-600) !important; }

article.twoboxes { border-bottom: 1px solid var(--line) !important; padding-bottom: 18px !important; margin-bottom: 18px !important; }
article.twoboxes.last { border-bottom: 0 !important; }
article.twoboxes h3 a,
article.twoboxes h3 {
    font-family: var(--font-body) !important; font-weight: 700 !important;
    font-size: 14px !important; line-height: 1.4 !important;
    color: var(--ink-700) !important; text-transform: none !important;
}
article.twoboxes h3 a:hover { color: var(--green-600) !important; }
article.twoboxes .post-thumb { border-radius: 12px; }

.date, p.date {
    color: var(--green-600) !important; font-weight: 700 !important;
    font-size: 12px !important; letter-spacing: .04em; text-transform: uppercase;
}

/* -------------------------------------------------------- SIDEBAR ---- */
.sidebar .widget {
    background: var(--cream) !important;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px; box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.sidebar .widget .marked-title { margin: 2px 0 14px !important; }
.banner-block, .banner-iview { border-radius: 12px !important; overflow: hidden; }

/* ----------------------------------------------------------- FORMS --- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
textarea, select {
    font-family: var(--font-body) !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    background: var(--cream) !important;
    color: var(--ink-900) !important;
    padding: 12px 14px !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
    outline: 0 !important; border-color: var(--green-300) !important;
    box-shadow: 0 0 0 4px rgba(42,154,101,.15) !important;
}
button, input[type="submit"], .btn, a.button {
    font-family: var(--font-body) !important; font-weight: 800 !important;
    letter-spacing: .03em; border: 0; cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green-600), var(--green-800)) !important;
    color: #fff !important;
    padding: 12px 26px !important;
    box-shadow: 0 14px 26px -12px rgba(15,74,51,.7);
    transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
button:hover, input[type="submit"]:hover, .btn:hover, a.button:hover {
    transform: translateY(-2px); filter: brightness(1.05);
    box-shadow: 0 20px 34px -14px rgba(15,74,51,.8);
}

/* texto de conteúdo das páginas / detalhe */
#appContent p { color: var(--ink-700); }
#appContent a { color: var(--green-700); }
#appContent a:hover { color: var(--gold-600); }

/* =========================== DETALHE DE NOTÍCIA / PÁGINAS =========== */
/* Coluna de leitura unificada — galeria, info, texto, tudo no mesmo eixo (~960px) */
#main .main-content > article {
    max-width: 960px;
    margin: 0 auto !important;
    width: 100% !important;
    float: none !important;          /* sobrescreve o article { float:left } do legado */
    background: transparent !important;
    display: block;
    padding-bottom: 0 !important;
}
#main .main-content { padding-bottom: 20px !important; }
#main .main-content > article .post-content > *:last-child { margin-bottom: 0 !important; }

#main .left-container article > .marked-title,
#main .main-content > article > .marked-title { margin-bottom: 18px !important; }
#main .left-container article > .marked-title h1,
#main .main-content > article > .marked-title h1 {
    font-family: var(--font-display) !important; font-weight: 700 !important;
    color: var(--ink-900) !important;
    font-size: clamp(28px, 2.6vw, 40px) !important;
    line-height: 1.12 !important; letter-spacing: -.02em !important;
    margin: 0 !important; padding: 0 !important;
    background: none !important; text-transform: none !important;
}

.post-thumb img { width: 100%; height: auto; display: block; border-radius: var(--r-md); }
article > .post-thumb { margin: 0 0 24px !important; box-shadow: var(--shadow-md); border-radius: var(--r-md); overflow: hidden; }

/* Galeria/álbum dentro do detalhe — respeita a mesma coluna */
#main .main-content > article .block_media { max-width: 100%; margin: 0 0 26px; }
#main .main-content > article #gallery-photos { width: 100% !important; max-width: 100% !important; }

.post-info {
    margin: 26px 0 32px !important; padding: 18px 22px !important;
    border-radius: var(--r-md);
    background: linear-gradient(120deg, var(--green-100) 0%, var(--sand-100) 100%);
    border: 1px solid var(--line);
}
.post-info ul {
    display: flex !important; gap: 28px; flex-wrap: wrap;
    list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.post-info ul li {
    font-family: var(--font-body); font-size: 11px !important; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-500) !important;
    padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important;
}
.post-info ul li span {
    display: block; margin-top: 4px;
    font-family: var(--font-display); font-weight: 600; font-style: normal;
    font-size: 17px !important; letter-spacing: -.005em;
    color: var(--green-800) !important; text-transform: none;
}

.post-content {
    font-size: 17px !important; line-height: 1.78 !important;
    color: var(--ink-700);
    max-width: 100%;
}
.post-content p {
    font-size: 17px !important; line-height: 1.78 !important;
    margin-bottom: 18px !important; color: var(--ink-700) !important;
    /* Preenche a largura do artigo para alinhar com galeria/imagens */
    max-width: 100%; text-align: left;
}
.post-content h2, .post-content h3 {
    font-family: var(--font-display); font-weight: 700;
    color: var(--ink-900); margin: 30px 0 10px;
    font-size: 22px; letter-spacing: -.01em;
}
.post-content a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 14px 0; box-shadow: var(--shadow-sm); }
.post-content blockquote {
    border-left: 4px solid var(--green-500); padding: 6px 0 6px 20px;
    margin: 18px 0; color: var(--ink-700); font-style: italic;
    background: var(--sand-100); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* "Notícias Relacionadas" como subtítulo dentro do artigo */
.post-content .marked-title.first { margin-top: 42px !important; }

/* ============================ SIDEBAR PUBLICIDADE ==================== */
.sidebar .widget {
    background: var(--cream) !important;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px; box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.sidebar .widget:empty { display: none !important; }
.sidebar .widget .marked-title {
    margin: 0 0 14px !important; padding-top: 0 !important;
}
.sidebar .widget .marked-title h3 { font-size: 18px !important; }
.sidebar .banner-block { margin-bottom: 12px; }
.sidebar .banner-block:last-child { margin-bottom: 0; }

/* ======================== CARROSSEL DE APOIADORES (fade leve) ========= */
.widget.supporters { padding: 18px; }
.banner-iview, .sup-carousel {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 343 / 230;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #0a1f17 !important;
    box-shadow: 0 8px 24px -10px rgba(14,40,28,.25);
}
.sup-carousel > .sup-slide {
    position: absolute !important; inset: 0 !important; margin: 0 !important;
    opacity: 0; transition: opacity .9s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}
.sup-carousel > .sup-slide.is-active { opacity: 1; pointer-events: auto; }
.sup-carousel > .sup-slide > a,
.sup-carousel > .sup-slide > img { display: block; width: 100%; height: 100%; }
.sup-carousel img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block;
    transform: scale(1.02); transition: transform 7s ease;
}
.sup-carousel > .sup-slide.is-active img { transform: scale(1); }
.sup-carousel::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
    background: linear-gradient(180deg, transparent, rgba(4,18,12,.55));
    pointer-events: none; z-index: 1;
}

/* Pontos de navegação */
.sup-carousel .sup-dots {
    position: absolute; right: 12px; top: 12px;
    display: flex; gap: 6px; z-index: 4;
}
.sup-carousel .sup-dots i {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.45); cursor: pointer;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.sup-carousel .sup-dots i:hover { background: rgba(255,255,255,.85); }
.sup-carousel .sup-dots i.is-active {
    background: var(--glow); transform: scale(1.25);
    box-shadow: 0 0 0 3px rgba(31,212,148,.18), 0 0 12px rgba(31,212,148,.5);
}

/* Barra de progresso (glow mint) */
.sup-carousel .sup-progress {
    position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px;
    background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; z-index: 4;
}
.sup-carousel .sup-progress i {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--glow), var(--glow-2));
    box-shadow: 0 0 14px rgba(31,212,148,.65);
    border-radius: 3px;
    animation: supProg var(--sup-dur, 6s) linear forwards;
}
@keyframes supProg { from { width: 0%; } to { width: 100%; } }

/* Espaçamento entre os banners da sidebar */
.widget.supporters .block_popular_stuff + .space-20 { display: none; }
.widget.supporters .block_popular_stuff { margin-bottom: 14px; }
.widget.supporters .block_popular_stuff:last-child { margin-bottom: 0; }

/* Galeria royalSlider — garante que renderize bem */
#gallery-photos { width: 100% !important; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.rsDefault .rsBullet { background: rgba(0,0,0,.3) !important; }
.rsDefault .rsBullet.rsNavSelected { background: var(--green-600) !important; }
.block_media { margin-bottom: 26px; }

/* ---------------------------------------------------------- FOOTER --- */
footer { margin-top: 50px; }
.footer-top {
    background:
        radial-gradient(80% 130% at 88% 0%, rgba(31,212,148,.16), transparent 55%),
        radial-gradient(70% 120% at 6% 0%, rgba(20,92,62,.45), transparent 60%),
        linear-gradient(165deg, #0c4632 0%, #07271c 45%, #04140e 100%) !important;
    width: 100% !important; max-width: 100% !important;
    border-radius: 0 !important;
    padding: 64px max(var(--gutter), calc((100% - 1600px) / 2)) 34px !important;
    position: relative; overflow: hidden;
    font-family: var(--font-body) !important;
}
.footer-top::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px; opacity: .6; pointer-events: none;
    mask-image: radial-gradient(120% 120% at 50% 0%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000, transparent 80%);
}
.footer-top::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--glow) 30%, var(--glow-2) 60%, transparent);
}
.footer-top > * { position: relative; z-index: 1; }
.footer-top .widget .desc h3,
.footer-top h3 {
    color: #fff !important; font-family: var(--font-display) !important; font-weight: 600 !important;
    font-size: 20px !important; letter-spacing: -.01em;
}
.footer-top .widget.first .desc h3 { font-size: 24px !important; line-height: 1.15 !important; margin-bottom: 8px; }
.footer-top .widget .desc p { color: rgba(255,255,255,.66) !important; font-size: 14px !important; line-height: 1.7 !important; }
.footer-top p, .footer-top li { font-size: 13.5px !important; line-height: 1.65 !important; }
.footer-top .widget .title { border-bottom: 1px solid rgba(255,255,255,.12) !important; margin-bottom: 18px !important; }
.footer-top .widget .title h3 {
    position: relative; display: inline-block;
    background: none !important; height: auto !important;
    padding: 0 0 14px !important; margin-bottom: 0 !important;
}
.footer-top .widget .title h3::after {
    content: ""; position: absolute; left: 0; bottom: -1px; width: 42px; height: 3px;
    background: var(--gold-500); border-radius: 3px;
}
.footer-top, .footer-top p, .footer-top li, .footer-top a { color: rgba(255,255,255,.74) !important; }
/* remove fundos cinza/imagens legadas dentro do footer escuro */
.footer-top .widget .news article,
.footer-top .widget .news article.last { background: transparent !important; }
.footer-top .widget .news article h3 a { color: rgba(255,255,255,.82) !important; font-weight: 700 !important; }
.footer-top .info li { padding: 6px 0; background: none !important; height: auto !important; line-height: 1.5 !important; color: rgba(255,255,255,.74) !important; }
.footer-top .info li.address, .footer-top .info li.phone, .footer-top .info li.mail { padding-left: 26px !important; position: relative; }
.footer-top .info li::before { position: absolute; left: 0; top: 5px; color: var(--gold-500); font-weight: 900; }
.footer-top .info li.address::before { content: "\1F4CD"; }
.footer-top .info li.phone::before { content: "\260E"; }
.footer-top .info li.mail::before { content: "\2709"; }
.footer-top .news article h3 a:hover,
.footer-top a:hover { color: var(--gold-300) !important; }

.footer-bottom {
    background: #04140e !important;
    width: 100% !important; max-width: 100% !important;
    padding: 18px max(var(--gutter), calc((100% - 1600px) / 2)) !important;
    border-top: 1px solid rgba(255,255,255,.07);
    font-family: var(--font-body) !important;
}
.footer-bottom .copyright p { color: rgba(255,255,255,.55) !important; font-size: 12.5px !important; letter-spacing: .01em; }
.footer-bottom .copyright span { color: var(--glow-2) !important; font-weight: 700; }
.footer-bottom .develop { color: rgba(255,255,255,.45) !important; font-size: 12px !important; }

/* --------------------------------------------------- ALERT / MISC ---- */
.alert {
    border-radius: 14px !important; border: 0 !important;
    box-shadow: var(--shadow-md) !important;
    background: var(--green-800) !important; color: #fff !important;
    font-family: var(--font-body) !important;
}

/* ----------------------------------------------------- RESPONSIVO ---- */
@media (max-width: 1200px) {
    #wrapper, .footer-top, .footer-bottom { width: 100% !important; border-radius: 0 !important; }
}
/* ====================== SEÇÃO DE APOIADORES (institucional clara) ===== */
.apoiadores {
    position: relative; width: 100%; margin-top: 0 !important;
    padding: 56px max(var(--gutter), calc((100% - 1600px) / 2)) 64px !important;
    background: linear-gradient(180deg, #ffffff 0%, var(--sand-50) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink-700);
}
.apoiadores::before {
    content: ""; position: absolute; left: 50%; top: -1px;
    transform: translateX(-50%);
    width: 140px; height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--gold-500));
    border-radius: 3px;
}
.apoiadores__inner { position: relative; max-width: 1280px; margin: 0 auto; }
.apoiadores__head { text-align: center; margin-bottom: 52px; }
.apoiadores__label {
    display: inline-block;
    font-family: var(--font-body); font-weight: 800; font-size: 11px;
    letter-spacing: .32em; text-transform: uppercase;
    color: var(--green-700);
    padding: 6px 14px; border-radius: 999px;
    background: var(--green-100); border: 1px solid var(--green-100);
    margin-bottom: 18px;
}
.apoiadores__title {
    font-family: var(--font-display) !important; font-weight: 700 !important;
    color: var(--ink-900) !important;
    margin: 0 0 14px !important; padding: 0 !important;
    font-size: clamp(28px, 2.8vw, 40px) !important;
    line-height: 1.1 !important; letter-spacing: -.02em !important;
    background: none !important; text-transform: none !important;
}
.apoiadores__sub {
    color: var(--ink-500); font-size: 15.5px; line-height: 1.6;
    max-width: 560px; margin: 0 auto;
}
.apoiadores__grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    max-width: 1200px; margin: 0 auto;
}
.apoiadores__card {
    display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 14px;
    border: 1px solid var(--line);
    padding: 26px 22px; min-height: 130px;
    box-shadow: 0 2px 6px -2px rgba(14,40,28,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    text-decoration: none; color: inherit;
}
.apoiadores__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -16px rgba(20,92,62,.20);
    border-color: var(--green-300);
}
.apoiadores__card img {
    max-width: 100%; max-height: 78px; width: auto; height: auto;
    object-fit: contain; display: block;
    filter: grayscale(.45) opacity(.85);
    transition: filter .35s ease, transform .35s ease;
}
.apoiadores__card:hover img { filter: none; transform: scale(1.04); }
.apoiadores__card.is-broken { display: none; }

/* ========================== NOTÍCIAS RELACIONADAS ==================== */
.related-news {
    padding: 64px max(var(--gutter), calc((100% - 1600px) / 2)) 80px;
    background: var(--cream);
}
.related-news__inner { max-width: 1280px; margin: 0 auto; }
.related-news__head { text-align: center; margin-bottom: 36px; }
.related-news__label {
    display: inline-block;
    font-family: var(--font-body); font-weight: 800; font-size: 11px;
    letter-spacing: .3em; text-transform: uppercase;
    color: var(--green-700);
    padding: 6px 14px; border-radius: 999px;
    background: var(--green-100);
    margin-bottom: 14px;
}
.related-news__title {
    font-family: var(--font-display) !important; font-weight: 700 !important;
    color: var(--ink-900) !important;
    margin: 0 !important; padding: 0 !important;
    font-size: clamp(26px, 2.4vw, 36px) !important;
    line-height: 1.1 !important; letter-spacing: -.02em !important;
    background: none !important; text-transform: none !important;
}
.related-news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    max-width: 1200px; margin: 0 auto;
}
/* Sobrescreve completamente o card legado (article.small.single) */
.related-news__grid .span4 {
    width: 100% !important; float: none !important;
    margin: 0 !important; padding: 0 !important;
}
.related-news__grid article,
.related-news__grid article.small.single {
    width: 100% !important; margin: 0 !important;
    background: #fff !important; border-radius: 14px;
    overflow: hidden; box-shadow: 0 2px 10px -3px rgba(14,40,28,.10);
    border: 1px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease;
}
.related-news__grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -16px rgba(20,92,62,.22);
}
.related-news__grid article .post-thumb {
    width: 100% !important; height: 180px;
    position: relative; overflow: hidden;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.related-news__grid article .post-thumb img {
    width: 100% !important; height: 100% !important;
    object-fit: cover; display: block;
    transition: transform .5s ease;
}
.related-news__grid article:hover .post-thumb img { transform: scale(1.06); }
.related-news__grid article .post-thumb .overlay {
    background: linear-gradient(180deg, rgba(6,36,26,0) 40%, rgba(6,36,26,.65));
    opacity: 0; transition: opacity .25s ease;
}
.related-news__grid article:hover .post-thumb .overlay { opacity: 1 !important; }
.related-news__grid article .post-thumb .overlay .cat {
    bottom: 14px !important; border-bottom: 0 !important;
    text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: 11px;
}
.related-news__grid article .cat-post-desc {
    padding: 16px 18px 18px;
}
.related-news__grid article .cat-post-desc h3,
.related-news__grid article .cat-post-desc h3 a {
    font-family: var(--font-display) !important; font-weight: 600 !important;
    color: var(--ink-900) !important;
    font-size: 17px !important; line-height: 1.28 !important;
    margin: 0 !important; padding: 0 !important; letter-spacing: -.005em;
    text-transform: none !important;
}
.related-news__grid article .cat-post-desc h3 a:hover { color: var(--green-700) !important; }
.related-news__grid article .cat-post-desc p.date {
    margin-bottom: 6px !important;
}

/* ===================== RESPONSIVIDADE GLOBAL ========================== */
@media (max-width: 1200px) {
    #wrapper, .footer-top, .footer-bottom { width: 100% !important; border-radius: 0 !important; }
}

/* TABLET — até 980px */
@media (max-width: 980px) {
    :root { --gutter: clamp(16px, 4.2vw, 36px); }

    /* Header: ainda em uma linha mas mais compacto */
    header { height: auto !important; padding: 12px var(--gutter) !important; flex-wrap: wrap; gap: 12px; }
    header .logo a img { height: 56px !important; }
    header .main-menu > ul { gap: 0; flex-wrap: wrap; justify-content: center; }
    header .main-menu ul li a { padding: 8px 12px !important; font-size: 12px !important; letter-spacing: .04em !important; }
    header .main-menu > ul > li > a::after { left: 12px; right: 12px; bottom: 4px; }
    header .search { order: 99; flex: 1 1 100%; display: flex; justify-content: center; }
    header .search form .field { width: 220px !important; }

    /* Hero mais curto e empilhado */
    .hero { height: auto !important; min-height: 480px; padding-bottom: 24px; }
    .hero__content { position: static !important; padding: 80px var(--gutter) 0 !important; max-width: 100% !important; bottom: auto !important; }
    .hero__title, .hero__title a { font-size: clamp(26px, 5vw, 38px) !important; }
    .hero__rail {
        position: static !important; margin: 22px var(--gutter) 0 !important;
        max-width: calc(100% - 2 * var(--gutter)) !important;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        padding: 10px;
    }
    .hero__shade {
        background:
            linear-gradient(0deg, rgba(4,18,12,.94) 12%, rgba(4,18,12,.55) 55%, rgba(4,18,12,.7));
    }

    /* Apoiadores */
    .apoiadores { padding: 48px var(--gutter) !important; margin-top: 32px; }
    .apoiadores__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

    /* Conteúdo principal */
    .row-fluid .span2 { width: 100% !important; float: none !important; margin-left: 0 !important; }
    .row-fluid .span2 + .span2 { margin-top: 24px; }
    .main-content { padding: 0 var(--gutter) !important; }

    /* Footer */
    .footer-top { padding: 44px var(--gutter) 24px !important; }
    .footer-top .widget { width: 100% !important; float: none !important; margin: 0 0 28px !important; }
    .footer-top .widget.last { margin-bottom: 0 !important; }
    .footer-bottom { padding: 14px var(--gutter) !important; flex-direction: column; text-align: center; }
    .footer-bottom .copyright, .footer-bottom .develop { float: none !important; }
    .footer-bottom .copyright p { font-size: 12px !important; }

    /* Detalhe da notícia */
    .post-info ul { gap: 18px; }
    .post-content { font-size: 16px !important; }
    .post-content p { font-size: 16px !important; }
}

/* MOBILE — até 640px */
@media (max-width: 640px) {
    body, body.home { font-size: 14.5px; }

    header { padding: 10px var(--gutter) !important; }
    header .logo a img { height: 46px !important; }
    header .main-menu ul li a { padding: 7px 10px !important; font-size: 11.5px !important; }
    header .search form .field { width: 100% !important; max-width: 280px; }

    /* Hero compacto */
    .hero { min-height: 420px; }
    .hero__content { padding-top: 70px !important; }
    .hero__kicker { font-size: 10.5px !important; padding: 5px 10px !important; letter-spacing: .18em; }
    .hero__title, .hero__title a { font-size: clamp(24px, 7vw, 32px) !important; line-height: 1.1 !important; }
    .hero__excerpt { font-size: 14px !important; -webkit-line-clamp: 3; }
    .hero__meta { gap: 12px; }
    .hero__cta { padding: 10px 18px !important; font-size: 13px !important; }
    .hero__date { padding: 6px 10px !important; font-size: 11px !important; }
    .hero__chip { width: 110px; }
    .hero__chip-thumb { height: 52px; }

    /* Títulos de seção */
    .marked-title h3 { font-size: 22px !important; }
    .apoiadores__title { font-size: 24px !important; }
    .apoiadores__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .apoiadores__card { padding: 16px 10px; min-height: 100px; }
    .apoiadores__card img { max-height: 64px; }

    /* Detalhe da notícia */
    #main .left-container article > .marked-title h1,
    .main-content article > .marked-title h1 {
        font-size: 24px !important;
    }
    .post-info { padding: 14px 16px !important; }
    .post-info ul { gap: 14px; }
    .post-info ul li { font-size: 10px !important; }
    .post-info ul li span { font-size: 15px !important; }
    .post-content { font-size: 15.5px !important; line-height: 1.72 !important; }
    .post-content p { font-size: 15.5px !important; }
    .post-content h2, .post-content h3 { font-size: 18px; }

    /* Cards de conteúdo */
    article.twoboxes .post-thumb { width: 36% !important; }
    article.twoboxes .right-desc { width: 60% !important; }
    article.twoboxes h3 { font-size: 13px !important; }

    /* Footer */
    .footer-top { padding: 38px var(--gutter) 20px !important; }
    .footer-top .widget .desc h3, .footer-top h3 { font-size: 18px !important; }
    .footer-top .widget.first .desc h3 { font-size: 22px !important; }
}
