:root {
    --navy-deep: #0c1738;
    --navy: #1a2b5e;
    --navy-light: #2b3f7e;
    --gold: #c8a84b;
    --gold-bright: #e4c371;
    --paper: #f8f6f1;
    --card: #ffffff;
    --ink: #181b2e;
    --ink-soft: #54587a;
    --line: #e6e1d3;
    --pmp: #8a2159;
    --pmp-soft: #f7e9f1;
    --alert: #b23a2e;
    --maxw: 1180px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Source Sans 3", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}
.label {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
h1,
h2,
h3,
.headline {
    font-family: "Source Serif 4", serif;
    margin: 0;
    color: var(--navy-deep);
    line-height: 1.15;
}
button {
    font-family: inherit;
    cursor: pointer;
}

/* ---------- FAIXA GOV ---------- */
.gov-strip {
    background: var(--navy-deep);
    color: #b9c2e0;
    font-size: 0.76rem;
    padding: 6px 0;
}
.gov-strip .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.gov-strip strong {
    color: var(--gold-bright);
    font-weight: 600;
}

/* ---------- MASTHEAD ---------- */
.masthead {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 0 16px;
}
.masthead .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.masthead .brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.masthead .brand img {
    height: 56px;
}
.masthead .title-block .kicker {
    display: block;
    color: var(--navy-light);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 2px;
}
.masthead .title-block .paper-name {
    font-family: "Source Serif 4", serif;
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--navy-deep);
    letter-spacing: -0.01em;
}
.masthead .today {
    font-size: 0.8rem;
    color: var(--ink-soft);
    text-align: right;
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.04em;
}

nav.tabs {
    background: var(--navy);
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid var(--navy-deep);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav.tabs .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
nav.tabs .tablist {
    display: flex;
}
nav.tabs a {
    color: #c7ceea;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 0.86rem;
    letter-spacing: 0.03em;
    padding: 14px 18px;
    display: inline-block;
    border-bottom: 3px solid transparent;
}
nav.tabs a:hover {
    color: var(--white, #fff);
}
nav.tabs a.active {
    color: #fff;
    border-color: var(--gold);
}
#navToggle {
    display: none;
    background: none;
    border: none;
    width: 38px;
    height: 32px;
    position: relative;
}
#navToggle span {
    position: absolute;
    left: 5px;
    right: 5px;
    height: 2px;
    background: #fff;
    transition:
        transform 0.2s,
        opacity 0.2s;
}
#navToggle span:nth-child(1) {
    top: 8px;
}
#navToggle span:nth-child(2) {
    top: 15px;
}
#navToggle span:nth-child(3) {
    top: 22px;
}
#navToggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#navToggle.open span:nth-child(2) {
    opacity: 0;
}
#navToggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- SLIDER GENÉRICO (setas / bolinhas) ---------- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(12, 23, 56, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 1.1rem;
    line-height: 1;
}
.slider-arrow:hover {
    background: rgba(12, 23, 56, 0.82);
}
.slider-arrow.prev {
    left: 14px;
}
.slider-arrow.next {
    right: 14px;
}
.slider-dots {
    position: absolute;
    right: 20px;
    bottom: 16px;
    display: flex;
    gap: 6px;
    z-index: 5;
}
.slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
}
.slider-dots button.active {
    background: var(--gold);
}

/* ---------- HERO SLIDER (topo da home) ---------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    margin-bottom: 36px;
    background: var(--navy-deep);
}
.hero-slider .track {
    display: flex;
    transition: transform 0.5s ease;
}
.hero-slide {
    position: relative;
    min-width: 100%;
    aspect-ratio: 21/9;
    display: block;
    color: #fff;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-slide .ph-bg {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide .ph-bg.pmp-thumb {
    background: linear-gradient(135deg, var(--pmp) 0%, #b24c86 100%);
}
.hero-slide .ph-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.05) 0 1px,
        transparent 1px 26px
    );
}
.hero-slide .ph-bg .ph-icon {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Oswald", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}
.hero-slide .ph-bg .ph-icon svg {
    display: block;
    margin: 0 auto 8px;
    opacity: 0.9;
}
.hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(12, 23, 56, 0.92) 0%,
        rgba(12, 23, 56, 0.4) 48%,
        rgba(12, 23, 56, 0.05) 78%
    );
}
.hero-slide .info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 56px 26px 32px;
    max-width: 760px;
}
.hero-slide .info .tag {
    margin-bottom: 10px;
}
.hero-slide .info h2 {
    color: #fff;
    font-family: "Source Serif 4", serif;
    font-size: clamp(1.25rem, 2.6vw, 1.85rem);
    margin: 0 0 8px;
    line-height: 1.2;
}
.hero-slide .info p {
    color: #d7dbec;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    max-width: 56ch;
}
.hero-slide .info .date {
    color: #aeb6d6;
    font-size: 0.76rem;
    font-family: "Oswald", sans-serif;
    margin-top: 8px;
    display: block;
}

@media (max-width: 760px) {
    .hero-slide {
        aspect-ratio: 4/5;
    }
    .hero-slide .info {
        padding: 16px 18px 14px;
    }
    .hero-slide .info p {
        display: none;
    }
    .slider-arrow {
        top: 14px;
        transform: none;
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        background: #fff;
        color: var(--navy-deep);
        border: none;
    }
}

/* ---------- SEÇÃO GENÉRICA ---------- */
section {
    padding: 52px 0;
}
.section-head {
    max-width: 640px;
    margin-bottom: 32px;
}
.section-head .label {
    color: var(--navy-light);
    font-size: 0.76rem;
    display: block;
    margin-bottom: 8px;
}
.section-head h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.section-head p {
    color: var(--ink-soft);
    margin-top: 10px;
    line-height: 1.6;
}

/* ---------- CARDS DE POSTAGEM ---------- */
.thumb {
    aspect-ratio: 1/1;
    width: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumb.pmp-thumb {
    background: linear-gradient(135deg, var(--pmp) 0%, #b24c86 100%);
}
.thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.05) 0 1px,
        transparent 1px 26px
    );
}
.thumb .ph-icon {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Oswald", sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 0 16px;
}
.thumb .ph-icon svg {
    display: block;
    margin: 0 auto 8px;
    opacity: 0.9;
}

.tag {
    display: inline-block;
    font-family: "Oswald", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}
.tag.noticias {
    background: #e7ecfb;
    color: var(--navy);
}
.tag.patrulha-mp {
    background: var(--pmp-soft);
    color: var(--pmp);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(12, 23, 56, 0.09);
}
.card .body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.card .meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.card .date {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.03em;
}
.card h3 {
    font-size: 1.08rem;
    line-height: 1.3;
}
.card p.excerpt {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.card .read {
    font-family: "Oswald", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.03em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ---------- FEATURED / HERO POST ---------- */
.featured {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--card);
    margin-bottom: 36px;
}
.featured .thumb {
    aspect-ratio: auto;
    min-height: 320px;
}
.featured .body {
    padding: 30px 32px;
}
.featured h2.title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin: 12px 0 14px;
}
.featured p.excerpt {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 20px;
}

/* ---------- BOTÃO "CARREGAR MAIS" ---------- */
.loadmore-wrap {
    text-align: center;
    margin-top: 36px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 13px 26px;
    border-radius: 2px;
    border: 2px solid transparent;
    font-size: 0.88rem;
}
.btn-gold {
    background: var(--gold);
    color: var(--navy-deep);
}
.btn-gold:hover {
    background: var(--gold-bright);
}
.btn-outline-navy {
    border-color: var(--navy);
    color: var(--navy);
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}
.btn-pmp {
    background: var(--pmp);
    color: #fff;
}
.btn-pmp:hover {
    background: #9e2a66;
}

/* ---------- PÁGINA DE POST INDIVIDUAL ---------- */
.post-head {
    max-width: 760px;
    margin: 0 auto 28px;
}
.post-head .tag {
    margin-bottom: 14px;
}
.post-head h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    margin: 6px 0 14px;
}
.post-head .date {
    font-family: "Oswald", sans-serif;
    color: var(--ink-soft);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}
.post-cover {
    max-width: 900px;
    margin: 0 auto 32px;
}
.post-body {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
}
.post-body p {
    margin: 0 0 20px;
}
.post-gallery {
    max-width: 900px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.post-slider {
    position: relative;
    max-width: 900px;
    margin: 32px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
}
.post-slider .track {
    display: flex;
    transition: transform 0.4s ease;
}
.post-slide {
    position: relative;
    min-width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0c1738;
}
.post-slide img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) brightness(0.55);
    transform: scale(1.15);
}
.post-slide img.fg {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.back-link {
    max-width: 680px;
    margin: 0 auto 20px;
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
}

/* ---------- PATRULHA MARIA DA PENHA (páginas fixas) ---------- */
.pmp-hero {
    background: linear-gradient(
        120deg,
        #3b1339 0%,
        #6e1e52 55%,
        var(--navy) 100%
    );
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pmp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0 1px,
        transparent 1px 46px
    );
}
.pmp-hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 48px;
    align-items: center;
    padding: 56px 24px;
}
.pmp-hero img {
    width: min(220px, 80%);
    margin: 0 auto;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4));
}
.pmp-hero h1 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.pmp-hero p {
    color: #e7d3e4;
    line-height: 1.65;
    max-width: 56ch;
    margin: 14px 0 24px;
}

.fear-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--alert);
    color: #fff;
    padding: 18px 24px;
    border-radius: 4px;
    max-width: 520px;
    margin: 0 auto 8px;
    box-shadow: 0 10px 24px rgba(178, 58, 46, 0.35);
}
.fear-btn .ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fear-btn .txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.fear-btn .txt .t {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.fear-btn .txt .d {
    font-size: 0.82rem;
    color: #f6d9d5;
    margin-top: 2px;
}
.fear-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.tip {
    background: var(--card);
    border-left: 4px solid var(--pmp);
    padding: 18px 20px;
}
.tip h4 {
    font-family: "Oswald", sans-serif;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--navy-deep);
    margin: 0 0 6px;
}
.tip p {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.contact-item {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 20px;
    text-align: center;
}
.contact-item .lbl {
    font-family: "Oswald", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--pmp);
    text-transform: uppercase;
}
.contact-item .val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-top: 6px;
}

/* ---------- LEGISLAÇÃO ---------- */
.doc-list {
    border-top: 1px solid var(--line);
}
.doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
}
.doc-row .doc-name {
    font-weight: 700;
    color: var(--navy-deep);
}
.doc-row .doc-desc {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-top: 3px;
}
.doc-row .go {
    font-family: "Oswald", sans-serif;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 20px;
}

/* ---------- SOBRE / TIMELINE ---------- */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 28px;
    border-left: 2px solid var(--line);
}
.tl-item {
    position: relative;
    padding-bottom: 34px;
}
.tl-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--navy);
}
.tl-item .yr {
    font-family: "Oswald", sans-serif;
    color: var(--navy-light);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
.tl-item h4 {
    font-size: 1.05rem;
    color: var(--navy-deep);
    margin: 4px 0 6px;
    font-family: "Source Serif 4", serif;
}
.tl-item p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.placeholder-note {
    background: #fbf3dc;
    border: 1px dashed var(--gold);
    color: #7a5c12;
    font-size: 0.82rem;
    padding: 12px 16px;
    margin: 0 auto 28px;
    max-width: 760px;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--navy-deep);
    color: #8b93b8;
    padding: 34px 0 22px;
    font-size: 0.82rem;
}
footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
footer .fbrand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c6cce4;
}
footer .fbrand img {
    height: 28px;
}
footer .flinks {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
footer .flinks a:hover {
    color: var(--gold-bright);
}
.foot-note {
    max-width: var(--maxw);
    margin: 20px auto 0;
    padding: 16px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.74rem;
    color: #5c648c;
    text-align: center;
}

/* Sobre nós — cabeçalho centralizado, parágrafos numa coluna mais larga */
.section-head.about-center {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}
.post-body.about-center {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured {
        grid-template-columns: 1fr;
    }
    .pmp-hero .wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tips-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .post-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 760px) {
    .masthead .wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .masthead .today {
        text-align: left;
    }
    nav.tabs .tablist {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 78%;
        max-width: 320px;
        background: var(--navy-deep);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 22px 30px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 90;
        overflow-y: auto;
    }
    nav.tabs .tablist.open {
        transform: translateX(0);
    }
    nav.tabs a {
        padding: 16px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    #navToggle {
        display: block;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    section {
        padding: 40px 0;
    }
}
