@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ================================================================
   VARIÁVEIS — PALETA GOVERNAMENTAL
   ================================================================ */
:root {
    /* Cores institucionais — verde governamental */
    --ink:          #0d1f12;          /* verde-escuro quase preto */
    --muted:        #4a6b52;          /* verde-acinzentado */
    --line:         #d0e0d4;
    --paper:        #ffffff;
    --soft:         #f0f0f0;
    --primary:      #0a6640;          /* verde institucional profundo */
    --primary-dark: #064d2e;
    --accent:       #c8960a;          /* dourado governamental */
    --gold:         #e8ae1a;
    --shadow:       0 18px 45px rgba(6, 77, 46, 0.16);

    /* Bandas de fundo */
    --band-soft:    #f0f0f0;
    --band-paper:   #e0e0e0;
    --band-gold:    #d0d0d0;

    /* Tipografia */
    --font-display: 'Montserrat', Arial, sans-serif;
    --font-body:    'Montserrat', Arial, sans-serif;

    /* Bordas e raios */
    --radius-sm:    4px;
    --radius-md:    8px;
    --radius-lg:    12px;

    /* Linha decorativa institucional */
    --stripe: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(10, 102, 64, 0.04) 3px,
        rgba(10, 102, 64, 0.04) 6px
    );
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: transform 0.2s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-close i {
    width: 24px;
    height: 24px;
}

.lightbox-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--paper-light);
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.lightbox-img:hover {
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: transform 0.2s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-close i {
    width: 24px;
    height: 24px;
}

/* ================================================================




   RESET & BASE
   ================================================================ */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden; /* evita barra branca lateral em telas pequenas */
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0;
    transition: opacity 0.7s ease;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
}

body.site-loaded {
    opacity: 1;
}

section[id] {
    scroll-margin-top: 90px;
}














img { max-width: 100%; height: auto; }

/* ================================================================
   REVEAL ANIMATION
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible,
.reveal.is-visible {
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
    animation-fill-mode: both;
}

.animate-slide-left.is-visible { animation-name: slideLeftIn; }
.animate-slide-right.is-visible { animation-name: slideRightIn; }
.animate-slide-up.is-visible { animation-name: slideUpIn; }
.animate-slide-down.is-visible { animation-name: slideDownIn; }
.animate-zoom-in.is-visible { animation-name: zoomInSoft; }
.animate-zoom-in-up.is-visible { animation-name: zoomInUp; }
.animate-zoom-in-down.is-visible { animation-name: zoomInDown; }
.animate-wobble.is-visible { animation-name: wobbleIn; }
.animate-swing.is-visible { animation-name: swingIn; transform-origin: top center; }
.animate-pulse.is-visible { animation-name: pulseIn; }
.animate-rubber-band.is-visible { animation-name: rubberBandIn; }
.reveal.is-visible:not(.animate-on-scroll) { animation-name: slideUpIn; }

@keyframes slideLeftIn {
    from { opacity: 0; transform: translateX(-46px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRightIn {
    from { opacity: 0; transform: translateX(46px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(42px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomInSoft {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zoomInUp {
    from { opacity: 0; transform: translateY(38px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes zoomInDown {
    from { opacity: 0; transform: translateY(-18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wobbleIn {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes swingIn {
    from { opacity: 0; transform: translateX(46px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rubberBandIn {
    from { opacity: 0; transform: translateY(34px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .reveal,
    .hero-tagline,
    .president-card {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* ================================================================
   CONTAINER
   ================================================================ */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}
/* O contêiner que envolve o conteúdo das páginas deve ser assim */
.container, .content-wrapper {
    width: 100%;
    max-width: 1200px; /* Impede o texto de espalhar demais em zoom baixo */
    margin-left: auto;  /* Centraliza na esquerda */
    margin-right: auto; /* Centraliza na direita */
    padding: 0 20px;    /* Margem interna de segurança */
}

/* ================================================================
   EYEBROW — rótulo institucional
   ================================================================ */
.eyebrow {
    margin: 0;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}





/* ================================================================
   BOTÕES
   ================================================================ */
button, a, .button { min-height: 44px; min-width: 44px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    border: 0;
    font: inherit;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.button i { width: 18px; height: 18px; }

.button.primary {
    background: #333333;
    color: #fff;
    border-bottom: 3px solid #1a1a1a;
}
.button.primary:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.button.secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-bottom: 3px solid var(--line);
}
.button.secondary:hover {
    background: var(--soft);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.button-small {
    min-height: 38px;
    padding: 6px 14px;
    font-size: 0.82rem;
    align-self: flex-start;
    white-space: nowrap;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 78vh;
    padding: 96px clamp(18px, 5vw, 80px) 60px;
    color: #fff;
    display: grid;
    place-items: center;
}

.hero-slider { position: absolute; inset: 0; }

.hero-slider img {
    position: absolute;
    inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slider img.is-active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    /* degradê inclinado mais escuro no lado esquerdo — padrão governamental */
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.38) 100%
    );
}

/* Faixa dourada na base do hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
    z-index: 3;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
    max-width: 1180px;
    width: 100%;
}

.hero-tagline {
    margin: 0;
    max-width: 720px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.8vw, 4.75rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(32px);
    filter: blur(8px);
}

.hero-tagline.is-visible {
    animation: heroTaglineEnter 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes heroTaglineEnter {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-description {
    max-width: 560px;
    margin: 20px 0 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
}

.hero-content p {
    max-width: 560px;
    margin: 20px 0 0;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
}

/* Card do Presidente */
.president-card {
    overflow: hidden;
    align-self: center;
    max-width: 340px;
    margin-left: auto;
    color: var(--ink);
    background: rgba(255,255,255,0.97);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(34px);
    animation: cardEnter 0.9s ease forwards 0.35s;
}

.president-card img {
    display: block;
    width: 100%; height: auto;
    background: var(--soft);
    object-fit: contain;
    object-position: center top;
}

.president-message { padding: 18px 20px; }

.president-message .eyebrow { margin-bottom: 10px; }

.president-message blockquote {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.president-message strong,
.president-message span { display: block; }

.president-message strong { color: var(--ink); font-size: 1rem; font-weight: 800; }
.president-message span  { color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ================================================================
   SECÇÃO HISTÓRIA
   ================================================================ */
.history-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr);
    gap: 34px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px;
}

.history-text h2 {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.1;
    color: var(--ink);
}

.history-highlight {
    padding: 28px 22px;
    background: #e8f7ec;
    color: var(--ink);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--accent);
    text-align: center;
}

.history-highlight i { display: block; width: 36px; height: 36px; margin: 0 auto 12px; color: var(--gold); }

.history-highlight strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--ink);
}

.history-highlight span {
    color: var(--ink) !important;
}

/* ================================================================
   SECÇÕES GENÉRICAS
   ================================================================ */
.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px;
}

.section-heading { margin-bottom: 24px; }

.section-heading h2 {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.1;
    color: var(--ink);
}

/* ================================================================
   BOTÕES DE SERVIÇO (atalhos rápidos)
   ================================================================ */
.service-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px;
}

.service-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid transparent;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-body);
    transition: transform 0.15s, box-shadow 0.15s, border-top-color 0.15s;
}

.service-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 102, 64, 0.12);
    border-top-color: var(--accent);
}

.service-button i { width: 28px; height: 28px; color: var(--primary); }

.service-button span {
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ================================================================
   CARDS DE SERVIÇO
   ================================================================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-md);
    transition: transform 0.15s, box-shadow 0.15s, border-top-color 0.15s;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10, 102, 64, 0.12);
    border-top-color: var(--accent);
}

.service-card i { width: 32px; height: 32px; color: var(--primary); margin-bottom: 14px; }

.service-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--ink);
}

.service-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ================================================================
   CARDS DE PROJECTO
   ================================================================ */
.project-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card,
.news-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: transform 0.15s, box-shadow 0.15s, border-left-color 0.15s;
}

.news-card--with-thumb {
    padding: 0;
    overflow: hidden;
}

.news-card-thumb {
    margin: 0;
}

.news-card-body {
    padding: 20px;
}

.project-card:hover,
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10, 102, 64, 0.12);
    border-left-color: var(--accent);
}

.project-card span,
.news-card time {
    display: inline-block;
    padding: 3px 10px;
    background: var(--band-gold);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(200, 150, 10, 0.2);
}

.project-card h3 {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--ink);
}

.news-card h3 {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.project-card p,
.news-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-card--with-media {
    padding: 0;
    overflow: hidden;
    border-left: none;
}

.news-card--modal {
    cursor: pointer;
}

.news-card-thumb {
    width: 100%;
    height: 160px;
    margin: 0;
    overflow: hidden;
}

.news-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-card-body {
    padding: 20px;
    border-left: 4px solid var(--primary);
}

.news-card--with-media:hover {
    border-left-color: transparent;
}

.news-card--with-media:hover .news-card-body {
    border-left-color: var(--accent);
}

.news-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.news-card-body h3 a:hover {
    color: var(--primary);
}

.project-category-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
}

.project-category-institutional-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.project-category-institutional-grid--lead {
    margin-bottom: 24px;
}

.project-category-institutional-grid--footer {
    margin-top: 24px;
    margin-bottom: 0;
}

.project-category-arquivo-footer {
    margin-top: 28px;
}

.documentos-section-wrap {
    background: linear-gradient(180deg, #f3f8f5 0%, #edf4f0 100%);
    border-top: 1px solid rgba(10, 102, 64, 0.08);
    border-bottom: 1px solid rgba(10, 102, 64, 0.08);
}

#documentos .eyebrow {
    color: var(--primary);
}

.project-documentos-heading {
    margin-bottom: 12px;
}

.project-documentos-heading h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--ink);
}

.documentos-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.documentos-preview-grid--full {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.projetos-categoria-section--documentos {
    max-width: 1180px;
}

.documento-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.documento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(29, 78, 216, 0.12);
}

.documento-card-preview {
    position: relative;
    aspect-ratio: 5 / 4;
    max-height: 200px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.documento-card-canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.documento-card-preview-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.72);
}

.documento-card-preview-fallback i,
.documento-card-preview-fallback svg {
    width: 28px;
    height: 28px;
}

.documento-card.is-pdf-ready .documento-card-preview-fallback {
    opacity: 0;
    pointer-events: none;
}

.documento-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    flex: 1;
}

.documento-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
}

.documento-card-data {
    color: var(--muted);
    font-weight: 600;
}

.documento-card-tipo {
    color: #1d4ed8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.documento-card-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--ink);
}

.documento-card-resumo {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.documento-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 2px;
}

.documento-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.documento-card-btn i,
.documento-card-btn svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.documento-card-btn--ler {
    flex: 1;
    min-height: 36px;
    padding: 0 12px;
    background: #333;
    color: #fff;
    border-color: #1a1a1a;
    font-size: 0.8rem;
}

.documento-card-btn--ler:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.documento-card-btn--baixar {
    flex: 0 0 auto;
    width: 32px;
    min-height: 32px;
    padding: 0;
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}

.documento-card-btn--baixar:hover {
    background: var(--soft);
    border-color: #1d4ed8;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.documentos-preview-footer {
    margin-top: 18px;
    text-align: center;
}

.documentos-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.documentos-preview-link:hover {
    text-decoration: underline;
}

.documentos-preview-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.1);
    font-size: 0.78rem;
}

.documentos-preview-empty {
    margin: 0;
    padding: 28px 20px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
}

@media (max-width: 1100px) {
    .documentos-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .documentos-preview-grid {
        grid-template-columns: 1fr;
    }

    .documento-card-preview {
        max-height: 180px;
    }

    .documento-card-actions {
        flex-wrap: wrap;
    }

    .documento-card-btn--ler {
        flex: 1 1 100%;
    }
}

.project-arquivo-strip {
    background: #fff;
    border: 1px solid rgba(10, 102, 64, 0.12);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-left-color 0.15s ease;
}

.project-arquivo-strip:hover {
    transform: translateY(-2px);
    border-left-color: var(--accent);
    box-shadow: 0 10px 24px rgba(10, 102, 64, 0.12);
}

.project-arquivo-strip-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 16px;
    color: inherit;
    text-decoration: none;
}

.project-arquivo-strip-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 102, 64, 0.1);
    color: var(--primary);
}

.project-arquivo-strip-icon i,
.project-arquivo-strip-icon svg {
    width: 20px;
    height: 20px;
}

.project-arquivo-strip-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-arquivo-strip-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.project-arquivo-strip-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-arquivo-strip-meta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.project-arquivo-strip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(10, 102, 64, 0.1);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

.project-arquivo-strip-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.project-arquivo-strip-cta i,
.project-arquivo-strip-cta svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    transition: color 0.15s ease, transform 0.15s ease;
}

.project-arquivo-strip:hover .project-arquivo-strip-cta {
    color: var(--primary-dark);
}

.project-arquivo-strip:hover .project-arquivo-strip-cta i,
.project-arquivo-strip:hover .project-arquivo-strip-cta svg {
    color: var(--accent);
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .project-arquivo-strip-cta {
        font-size: 0;
        gap: 0;
    }

    .project-arquivo-strip-cta i,
    .project-arquivo-strip-cta svg {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 768px) {
    .project-category-institutional-grid:not(.project-category-institutional-grid--lead):not(.project-category-institutional-grid--footer) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.project-institutional-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 220px;
}

.project-institutional-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10, 102, 64, 0.1);
}

.project-institutional-card--fdel {
    border-top: 4px solid var(--band-gold);
}

.project-institutional-card.has-featured {
    border-top-color: transparent;
    overflow: hidden;
}

.project-institutional-card-link--featured {
    position: relative;
    min-height: 280px;
    justify-content: flex-end;
}

.project-institutional-card.has-featured .project-category-cover,
.project-institutional-card.has-featured video.project-category-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.project-institutional-card.has-featured .project-category-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.project-institutional-card.has-featured .project-institutional-card-header,
.project-institutional-card.has-featured .project-institutional-card-body,
.project-institutional-card.has-featured .project-institutional-card-cta {
    position: relative;
    z-index: 2;
}

.project-institutional-card.has-featured .project-institutional-card-header {
    background: transparent;
    border-bottom: none;
    color: #fff;
}

.project-institutional-card.has-featured .project-institutional-card-tag,
.project-institutional-card.has-featured .project-institutional-card-copy h3,
.project-institutional-card.has-featured .project-institutional-card-copy p,
.project-institutional-card.has-featured .project-institutional-card-cta {
    color: #fff;
}

.project-institutional-card.has-featured .project-institutional-card-copy p {
    color: rgba(255, 255, 255, 0.88);
}

.project-institutional-card.has-featured .project-institutional-card-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.project-institutional-card.has-featured .project-institutional-card-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.project-institutional-card--arquivo {
    border-top: 4px solid #1d4ed8;
}

.project-institutional-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    padding: 0;
    color: inherit;
    text-decoration: none;
}

.project-institutional-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--paper-light);
    border-bottom: 1px solid var(--line);
}

.project-institutional-card-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
}

.project-institutional-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--band-gold);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.project-institutional-card--arquivo .project-institutional-card-count {
    background: #dbeafe;
    color: #1d4ed8;
}

.project-institutional-card-body {
    display: flex;
    gap: 16px;
    padding: 22px 20px 12px;
    flex: 1;
}

.project-institutional-card-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 102, 64, 0.1);
    color: var(--primary);
}

.project-institutional-card--arquivo .project-institutional-card-icon {
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
}

.project-institutional-card-icon i,
.project-institutional-card-icon svg {
    width: 28px;
    height: 28px;
}

.project-institutional-card-copy h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--ink);
}

.project-institutional-card-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.project-institutional-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px 20px;
    padding-top: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
}

.project-institutional-card--arquivo .project-institutional-card-cta {
    color: #1d4ed8;
}

.project-institutional-card-cta i,
.project-institutional-card-cta svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 768px) {
    .project-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .project-category-grid--main {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Layout Programas & Projetos: FDEL fixo + carrossel (3 slots) */
.project-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.project-category-layout__fdel {
    min-width: 0;
}

.project-category-carousel {
    position: relative;
    min-width: 0;
    min-height: 280px;
}

.project-category-carousel__viewport {
    overflow: hidden;
    height: 100%;
    border-radius: var(--radius-md);
}

.project-category-carousel__track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.project-category-carousel__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.project-category-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 1px solid rgba(10, 102, 64, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(10, 102, 64, 0.15);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.project-category-carousel__nav i,
.project-category-carousel__nav svg {
    width: 22px;
    height: 22px;
}

.project-category-carousel__nav--prev {
    left: 8px;
}

.project-category-carousel__nav--next {
    right: 8px;
}

.project-category-carousel.is-hovered .project-category-carousel__nav,
.project-category-carousel:focus-within .project-category-carousel__nav {
    opacity: 1;
    pointer-events: auto;
}

.project-category-carousel__nav:hover {
    background: #fff;
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .project-category-layout {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .project-category-carousel {
        grid-column: span 3;
    }

    .project-category-layout:not(:has(.project-category-layout__fdel)) .project-category-carousel {
        grid-column: 1 / -1;
    }

    .project-category-carousel__viewport {
        width: 100%;
    }
}

.project-institutional-card--in-grid {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.project-institutional-card--in-grid .project-institutional-card-link {
    min-height: 280px;
    flex: 1;
}

.project-institutional-card--in-grid .project-institutional-card-header {
    padding: 12px 14px;
}

.project-institutional-card--in-grid .project-institutional-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 8px;
    flex: 1;
}

.project-institutional-card--in-grid .project-institutional-card-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

.project-institutional-card--in-grid .project-institutional-card-icon i,
.project-institutional-card--in-grid .project-institutional-card-icon svg {
    width: 22px;
    height: 22px;
}

.project-institutional-card--in-grid .project-institutional-card-copy h3 {
    font-size: 0.92rem;
}

.project-institutional-card--in-grid .project-institutional-card-copy p {
    margin-top: 8px;
    font-size: 0.82rem;
    -webkit-line-clamp: 4;
}

.project-institutional-card--in-grid .project-institutional-card-cta {
    margin: auto 14px 14px;
}

.project-category-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--primary);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.project-category-card.has-featured {
    border-top-color: transparent;
    background: #fff;
}

.project-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10, 102, 64, 0.12);
}

.project-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: var(--paper-light);
    border-bottom: 1px solid var(--line);
}

.project-category-card.has-featured .project-category-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
    border-bottom: none;
    color: #fff;
}

.project-category-card.has-featured .project-category-header--overlay h3 {
    color: #fff;
}

.project-category-card.has-featured .project-category-header--overlay .project-category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.project-category-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

video.project-category-cover {
    pointer-events: none;
}

.project-category-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
}

.project-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--band-gold);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.project-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-category-featured {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    height: 100%;
    padding: 0;
    color: #fff;
    text-decoration: none;
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.project-category-featured.no-image {
    background-image: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.project-category-featured:hover {
    transform: scale(1.01);
}

.project-category-featured:hover .project-category-ver-mais {
    color: #fff;
    opacity: 1;
}

.project-category-featured .project-category-ver-mais {
    position: relative;
    z-index: 2;
    text-decoration: none;
    margin-top: 14px;
    color: var(--band-gold);
    opacity: 0.95;
}

.project-category-featured .project-category-ver-mais:hover {
    color: #fff;
}

.project-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.78) 100%
    );
    pointer-events: none;
}

.project-category-featured-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.project-category-featured-content h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.35;
    color: #fff;
}

.project-category-featured-content p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.project-category-featured .project-category-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.projetos-categoria-section {
    max-width: 960px;
    margin: 0 auto;
}

.projetos-categoria-empty {
    text-align: center;
    color: var(--muted);
    padding: 48px 24px;
}

.projetos-categoria-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.projetos-categoria-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.projetos-categoria-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 102, 64, 0.1);
}

.projetos-categoria-item-link {
    display: flex;
    gap: 20px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.projetos-categoria-item-thumb {
    flex: 0 0 160px;
    width: 160px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--paper-light);
}

.projetos-categoria-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projetos-categoria-item-thumb--video {
    position: relative;
    overflow: hidden;
}

.projetos-categoria-item-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projetos-categoria-item-video-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    pointer-events: none;
}

.projetos-categoria-item-video-badge i,
.projetos-categoria-item-video-badge svg {
    width: 28px;
    height: 28px;
}

.projetos-categoria-item-body {
    flex: 1;
    min-width: 0;
}

.projetos-categoria-item-body h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--ink);
}

.projetos-categoria-item-body p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.page-hero-subtitle {
    margin: 12px 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
    .projetos-categoria-item-link {
        flex-direction: column;
    }

    .projetos-categoria-item-thumb {
        width: 100%;
        flex: none;
        height: 180px;
    }
}

.project-category-item {
    border-bottom: 1px solid var(--line);
}

.project-category-item:last-child {
    border-bottom: none;
}

.project-category-item-hidden {
    display: none;
}

.project-category-footer {
    padding: 16px 20px 20px;
    text-align: left;
}

.project-category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.project-category-toggle:hover,
.project-category-toggle:focus {
    background: var(--primary-light);
    border-color: var(--primary);
    color: #fff;
}

.project-category-item-link {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s;
}

.project-category-item-link:hover {
    background: var(--paper-light);
}

.project-category-item-link:hover .project-category-ver-mais {
    color: var(--primary);
}

.project-category-ver-mais {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.15s;
}

.project-category-ver-mais i {
    width: 14px;
    height: 14px;
}

.project-category-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-category-empty {
    margin: 0;
    padding: 18px 20px;
    color: var(--muted);
    font-size: 0.92rem;
    flex: 1;
    display: flex;
    align-items: center;
}

.arquivo-docs-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.arquivo-docs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.arquivo-docs-table th,
.arquivo-docs-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.arquivo-docs-table th {
    background: var(--paper-light);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.arquivo-docs-table tbody tr:last-child td {
    border-bottom: none;
}

.arquivo-docs-resumo {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.arquivo-docs-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.arquivo-docs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.arquivo-docs-title-btn {
    border: none;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.arquivo-docs-title-btn:hover strong {
    color: var(--primary);
}

.service-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-modal-content {
    background: #fff;
    width: min(900px, 94vw);
    border-radius: 14px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.projeto-modal-content {
    display: flex;
    flex-direction: column;
}

.projeto-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.projeto-modal-header-copy {
    min-width: 0;
}

.projeto-modal-categoria {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
}

.projeto-modal-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--ink);
}

.projeto-modal-close,
.pdf-reader-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projeto-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 88px);
}

.projeto-modal-hero {
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.projeto-modal-hero img,
.projeto-modal-hero video {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.projeto-detalhe-hero-video {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.projeto-modal-texto {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    white-space: pre-line;
}

.projeto-modal-pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.projeto-modal-galeria-wrap {
    margin-top: 24px;
}

.projeto-modal-galeria-wrap h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--ink);
}

.projeto-modal-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.projeto-modal-galeria button {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.projeto-modal-galeria img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.pdf-reader-modal {
    z-index: 10001;
}

.pdf-reader-content {
    background: #fff;
    width: min(1100px, 96vw);
    height: min(92vh, 900px);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.pdf-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.pdf-reader-header h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--ink);
}

#pdf-reader-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #f5f5f5;
}

.arquivo-docs-thumb-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-light);
    color: var(--primary);
    font-weight: 800;
}

.projeto-institucional-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.projeto-institucional-card h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
}

.projeto-institucional-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.projeto-institucional-lista {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.projeto-institucional-lista--cols {
    columns: 2;
    column-gap: 28px;
}

.project-category-badge--hero {
    display: inline-block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .projeto-institucional-lista--cols {
        columns: 1;
    }

    .arquivo-docs-table thead {
        display: none;
    }

    .arquivo-docs-table,
    .arquivo-docs-table tbody,
    .arquivo-docs-table tr,
    .arquivo-docs-table td {
        display: block;
        min-width: 0;
    }

    .arquivo-docs-table tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .arquivo-docs-table td {
        border: none;
        padding: 6px 16px;
    }

    .arquivo-docs-table td::before {
        content: attr(data-label) ': ';
        font-weight: 700;
        color: var(--ink);
    }
}

.galeria-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.galeria-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.galeria-filter-btn:hover,
.galeria-filter-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.galeria-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.galeria-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10, 102, 64, 0.12);
}

.galeria-thumb {
    width: 100%;
    height: 180px;
    margin: 0;
}

.galeria-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-caption {
    padding: 14px 16px;
}

.galeria-categoria {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--band-gold);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.galeria-caption h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--ink);
}

.galeria-empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
}

.galeria-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.galeria-preview-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.galeria-preview-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.galeria-preview-thumb--empty {
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.galeria-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(10, 102, 64, 0.12);
}

.galeria-preview-thumb {
    width: 100%;
    height: 160px;
    margin: 0;
}

.galeria-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-preview-caption {
    padding: 12px 14px;
}

.galeria-preview-caption span {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.galeria-preview-caption h3 {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--ink);
}

.projeto-detalhe-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.projeto-detalhe-meta {
    padding: 20px 24px 0;
}

.projeto-detalhe-categoria {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--band-gold);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.projeto-detalhe-hero-img {
    margin: 20px 24px 0;
    height: 360px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.projeto-detalhe-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projeto-detalhe-body {
    padding: 24px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.projeto-detalhe-galeria {
    padding: 0 24px 24px;
}

.projeto-detalhe-galeria h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    color: var(--ink);
}

.projeto-detalhe-galeria-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ================================================================
   INDICADORES NUMÉRICOS
   ================================================================ */
.indicadores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;

    max-width: 900px;
    margin: 0 auto;
}

.indicador-card {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.indicador-card:hover {
    transform: translateY(-4px);
}

.indicador-card strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--primary);
    font-family: var(--font-display);
}

.indicador-card span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .indicadores-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================================================
   NEWSLETTER
   ================================================================ */
.newsletter-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 28px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px;
}

.newsletter-section h2 {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
}

.newsletter-section p:not(.eyebrow) {
    max-width: 640px;
    margin: 14px 0 0;
    color: var(--muted);
}

.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.newsletter-form input {
    min-height: 48px;
    width: 100%;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.newsletter-form .button { text-transform: uppercase; }

/* ================================================================
   PAGE HERO (páginas internas)
   ================================================================ */
.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    padding: 120px clamp(18px, 5vw, 80px) 60px;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: 1;
}

/* Faixa dourada na base */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
    z-index: 3;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(26px);
    animation: heroEnter 0.9s ease forwards 0.15s;
}

.page-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.05;
    font-size: clamp(2.45rem, 7vw, 4rem);
}

.page-hero p:not(.eyebrow) {
    max-width: 640px;
    margin: 18px 0 0;
    font-size: 1.15rem;
}

/* ================================================================
   BANDAS COLORIDAS (páginas internas)
   ================================================================ */
#todos-servicos  { background: var(--band-soft);  box-shadow: 0 0 0 100vmax var(--band-soft);  clip-path: inset(0 -100vmax); padding-bottom: 78px; }
#todos-projetos  { background: var(--band-gold);  box-shadow: 0 0 0 100vmax var(--band-gold);  clip-path: inset(0 -100vmax); padding-bottom: 78px; }
#todas-noticias  { background: var(--band-paper); box-shadow: 0 0 0 100vmax var(--band-paper); clip-path: inset(0 -100vmax); padding-bottom: 78px; }
#sobre-historia  { background: var(--band-paper); box-shadow: 0 0 0 100vmax var(--band-paper); clip-path: inset(0 -100vmax); padding-bottom: 40px; }
#indicadores     { background: var(--band-soft);  box-shadow: 0 0 0 100vmax var(--band-soft);  clip-path: inset(0 -100vmax); padding-bottom: 78px; }

/* ================================================================
   ANIMAÇÕES
   ================================================================ */
@keyframes heroEnter {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardEnter {
    to { opacity: 1; transform: translateX(0); }
}

/* ================================================================
   RESPONSIVO
   ================================================================ */
@media (max-width: 1024px) {
    .site-header-inner { padding: 12px 18px; }
    .section { padding: 62px 18px; }

    .service-grid,
    .news-grid,
    .project-grid,
    .project-category-grid,
    .galeria-grid,
    .galeria-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .mobile-menu-btn,
    .lang-selector,
    .header-right {
        display: flex !important;
    }
}

@media (min-width: 861px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

@media (max-width: 860px) {
    .hero-inner           { grid-template-columns: 1fr; }
    .president-card       { max-width: none; margin-left: 0; }
    .history-section      { grid-template-columns: 1fr; padding-top: 54px; }
    .service-buttons      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .newsletter-section   { grid-template-columns: 1fr; }

    .service-grid,
    .news-grid,
    .project-grid,
    .project-category-grid,
    .galeria-grid,
    .galeria-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hero-inner           { grid-template-columns: 1fr; }
    .president-card       { max-width: none; margin-left: 0; }
    .history-section      { grid-template-columns: 1fr; padding-top: 54px; }
    .service-buttons      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .newsletter-section   { grid-template-columns: 1fr; }

    .service-grid,
    .news-grid,
    .project-grid,
    .project-category-grid,
    .galeria-grid,
    .galeria-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .indicadores-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero { min-height: 70vh; padding: 76px 18px; }

    .hero-tagline { font-size: clamp(2.1rem, 8vw, 3.4rem); }

    .section-heading h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); }

    .page-hero { padding: 100px 18px 50px; }

    .page-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }

    .service-grid,
    .news-grid,
    .project-grid,
    .project-category-grid,
    .galeria-grid,
    .galeria-preview-grid,
    .projeto-detalhe-galeria-grid {
        grid-template-columns: 1fr;
    }

    .projeto-detalhe-hero-img {
        height: 220px;
    }

    .mobile-menu-btn { display: flex; }

    .indicadores-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-img-container {
        height: 180px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .site-brand {
        gap: 8px;
    }

    .site-brand img {
        width: 40px;
        height: 40px;
    }

    .site-brand strong {
        font-size: 0.9rem;
    }

    .header-buttons {
        gap: 8px;
    }

    .indicador-card {
        padding: 20px 16px;
        gap: 14px;
    }

    .indicador-card strong {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero { min-height: 64vh; }
    .hero-tagline { font-size: clamp(1.9rem, 9vw, 2.8rem); }
    .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .section-heading h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .section { padding: 46px 14px; }
    .service-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .lightbox-img-container {
        height: 160px;
    }

    .scroll-to-top {
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
    }
}

/* Hero compacto usado em páginas de contactos para reduzir espaço vazio */
.page-hero--compact {
    min-height: 36vh;
    padding: 48px clamp(12px, 4vw, 40px) 34px;
}

/* Permite que a primeira secção suba e se sobreponha ao hero (efeito card) */
.section--overlap {
    margin-top: -48px;
    padding-top: 64px; /* mantém espaçamento interno suficiente */
}

@media (max-width: 768px) {
    .page-hero--compact { min-height: 30vh; padding: 40px 18px 28px; }
    .section--overlap { margin-top: -28px; padding-top: 38px; }
}

@media (max-width: 480px) {
    .page-hero--compact { min-height: 28vh; padding: 32px 12px 22px; }
    .section--overlap { margin-top: -20px; padding-top: 26px; }
}

@media (max-width: 860px) {
    .sobre-page-grid,
    .divisao-administrativa-grid,
    .urbanizacao-grid,
    .clima-grid,
    .populacao-grid,
    .indicadores-grid,
    .visao-grid,
    .valores-grid,
    .turismo-patrimonio-grid,
    .turismo-visitar-grid,
    .investir-grid {
        grid-template-columns: 1fr !important;
    }

    .clima-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================================
   PÁGINA SOBRE — CARDS
   ================================================================ */
.sobre-stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 61, 46, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sobre-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 61, 46, 0.1);
}

.sobre-stat-card strong {
    display: block;
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 10px;
}

.sobre-stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.sobre-stat-card .sobre-stat-detail {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    line-height: 1.5;
}

.sobre-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 8px 24px rgba(15, 61, 46, 0.05);
}

.sobre-panel h3 {
    color: var(--ink);
    margin-bottom: 16px;
}

.sobre-panel p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.sobre-panel p:last-child {
    margin-bottom: 0;
}

.sobre-info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 24px 26px;
    box-shadow: 0 6px 20px rgba(15, 61, 46, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sobre-info-card--accent { border-left-color: var(--accent); }
.sobre-info-card--gold { border-left-color: var(--gold); }

.sobre-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 61, 46, 0.09);
}

.sobre-info-card h4 {
    color: var(--ink);
    margin-bottom: 10px;
}

.sobre-info-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.sobre-climate-stat {
    border-radius: 14px;
    padding: 26px 22px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 61, 46, 0.15);
}

.sobre-climate-stat strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}

.sobre-climate-stat span {
    opacity: 0.9;
    font-size: 0.95rem;
}

.sobre-climate-stat--dark { background: var(--primary-dark); }
.sobre-climate-stat--primary { background: var(--primary); }
.sobre-climate-stat--accent { background: var(--accent); }

.sobre-mission-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px 28px;
    box-shadow: 0 8px 24px rgba(15, 61, 46, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sobre-mission-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 61, 46, 0.1);
}

.sobre-mission-card i {
    width: 36px;
    height: 36px;
    color: var(--primary);
    margin-bottom: 14px;
}

.sobre-mission-card h3 {
    color: var(--ink);
    margin-bottom: 10px;
}

.sobre-mission-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.sobre-value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 6px 18px rgba(15, 61, 46, 0.05);
}

.sobre-value-card h4 {
    color: var(--ink);
    margin-bottom: 8px;
}

.sobre-value-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.92rem;
    margin: 0;
}

.main-nav .header-quick-access {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.main-nav .header-quick-access:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

@media (hover: none) and (pointer: coarse) {
    .service-button:hover,
    .main-nav a:hover,
    .button:hover { transform: none; }

    .service-button:active,
    .button:active { transform: scale(0.98); }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close:hover {
    background: var(--muted) !important;
}

.service-detail-btn:hover {
    background: var(--primary-dark) !important;
}

/* GARANTIR QUE O HAMBÚRGUER SÓ APAREÇA NO MOBILE */
@media (min-width: 861px) {
    .mobile-menu-btn,
    .header-right .mobile-menu-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 860px) {
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 6px 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}



.brand {
    display: flex;
    align-items: center;  /* já tem, está bem */
    gap: 10px;
    text-decoration: none !important;
    border-bottom: 0 !important;
    opacity: 0;
    transform: translateY(-10px);
    animation: brandEnter 0.8s ease forwards 0.2s;
}

.brand,
.brand * {
    text-decoration: none !important;
}

@keyframes brandEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    animation: none;
}

@keyframes logoBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(-2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(2deg);
    }
}

.brand-logo img{
    border-radius: 50%;
    background: #046004;
 
}

.brand:hover .brand-logo img {
    transform: scale(1.03);
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--primary-dark);
    background: transparent;
    border-radius: 8px;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand strong {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.08;
}

.brand small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
}

.brand:hover strong,
.brand:hover small {
    transform: translateX(4px);
}

.brand:hover strong {
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.brand:hover,
.brand:focus,
.brand:visited {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
    margin-left: auto;
}

.main-nav a.active,
.dropdown-menu a.active,
.submenu-menu a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 800;
    border-bottom: none !important;
    text-decoration: none !important;
}

.dropdown-toggle.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 800;
    border-bottom: none !important;
    text-decoration: none !important;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: 6px;
    border-bottom: none !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.main-nav a i {
    width: 18px;
    height: 18px;
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 6px;
    background: transparent;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-toggle i {
    width: 18px;
    height: 18px;
}

.dropdown-icon {
    transition: transform 0.2s ease;
}

.dropdown.is-open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 8px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 20;
}

.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.dropdown.is-open .dropdown-menu {
    display: flex;
}

@media (min-width: 861px) {
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu,
    .submenu:hover .submenu-menu,
    .submenu:focus-within .submenu-menu {
        display: flex;
    }

    .dropdown:hover .dropdown-icon,
    .dropdown:focus-within .dropdown-icon {
        transform: rotate(180deg);
    }

    .submenu:hover .submenu-toggle i:last-child,
    .submenu:focus-within .submenu-toggle i:last-child {
        transform: rotate(90deg);
    }
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.submenu {
    display: flex;
    flex-direction: column;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submenu-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.submenu-toggle span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.submenu-toggle i:last-child {
    transition: transform 0.2s ease;
}

.submenu.is-open .submenu-toggle i:last-child {
    transform: rotate(90deg);
}

.submenu-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 16px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.submenu.is-open .submenu-menu {
    display: flex;
}

.submenu-menu a {
    padding-left: 16px !important;
    font-size: 0.85rem !important;
}

.submenu-empty {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
}

.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-dropdown-toggle i:first-child {
    margin-right: 8px;
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 16px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.mobile-dropdown.is-open .mobile-dropdown-menu {
    display: flex;
}

.mobile-dropdown-menu a {
    padding-left: 16px !important;
    font-size: 0.95rem !important;
}

.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.lang-toggle:hover {
    opacity: 0.8;
}

.lang-toggle svg {
    width: 24px;
    height: 24px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 8px;
    min-width: 120px;
    display: none;
    z-index: 20;
}

.lang-dropdown.is-open {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lang-dropdown a {
    display: block;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.lang-dropdown a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 860px) {
    .site-header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav {
        display: none;
    }

    .lang-selector {
        margin-left: 12px;
    }

    .mobile-menu-btn,
    .lang-selector,
    .header-right {
        display: flex !important;
    }
}

@media (min-width: 861px) {
    .mobile-menu-btn,
    .header-right .mobile-menu-btn {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: 1rem;
    }

}

.mobile-menu-btn {
    display: flex !important;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.15);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(88%, 320px);
    max-width: 320px;
    height: 100%;
    background: var(--primary-dark);
    z-index: 1000;
    padding: 24px 20px;
    overflow-y: auto;
    box-shadow: 8px 0 32px rgba(0,0,0,0.35);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.15);
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
    margin-top: 4px;
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.15);
}

.mobile-nav a svg {
    width: 20px;
    height: 20px;
}
.site-footer {
    padding: 52px 18px 24px;
    color: #fff;
    background: var(--primary-dark);
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.site-footer p {
    margin: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.footer-brand strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
}

.footer-brand p {
    margin: 12px 0 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.footer-brand p,
.site-footer li,
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-grid > div:nth-child(2) ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer .footer-grid > div:nth-child(2) li {
    line-height: 1.3;
}

.site-footer .footer-grid > div:nth-child(2) a {
    display: block;
    min-height: 0;
    min-width: 0;
    line-height: 1.05;
    padding: 0;
}

.site-footer .footer-grid > div:nth-child(2) h3 {
    margin-bottom: 0.35rem !important;
}

.site-footer .footer-contacts {
    display: grid;
    gap: 15px;
}

.site-footer .footer-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.45;
}

.site-footer li {
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.15;
    margin-bottom: 8px;
}

 

.site-footer svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    color: var(--gold);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-action {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    min-height: 40px;
    padding: 8px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 34px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .footer-grid,
    .footer-bottom {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        justify-items: center;
    }
}
/* ================================================================
   BOTÃO VOLTAR AO TOPO (Alinhado ao Grid de 1200px)
   ================================================================ */
.scroll-to-top-btn {
    position: fixed;
    
    /* ALINHAMENTO DINÂMICO: Centraliza e empurra para a borda do layout de 1200px */
    left: 50%;
    margin-left: calc(1200px / 2 + 24px);
    bottom: 24px;   /* Posição padrão quando está no meio da página */
    z-index: 9999;
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    
    background: var(--primary, #0a6640);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    
    /* ESTADO INICIAL: Invisível (Surgirá quando você for para baixo) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    
    /* Transições suaves para não dar trancos na tela */
    transition: opacity 0.3s ease, 
                visibility 0.3s ease, 
                transform 0.3s ease, 
                background 0.2s ease, 
                bottom 0.1s ease-out; /* Transição rápida para acompanhar o scroll no footer */
}

/* Injetado pelo JS ao rolar para baixo */
.scroll-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Quando chega perto do rodapé, mantém fixo, mas deixa o JS controlar o 'bottom' dinamicamente */
.scroll-to-top-btn.at-footer {
    position: fixed; 
}

/* Efeito do mouse por cima - AJUSTADO: Agora só aplica quando visível para não quebrar o transform */
.scroll-to-top-btn.is-visible:hover {
    background: var(--primary-dark, #064d2e);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Setinha interna */
.scroll-to-top-btn i, 
.scroll-to-top-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

/* Responsividade para Telas Médias/Notebooks (Garante que o botão não suma para fora da tela) */
@media (max-width: 1280px) {
    .scroll-to-top-btn {
        left: auto;
        right: 24px;
        margin-left: 0;
    }
}

/* Responsividade para Celulares */
@media (max-width: 480px) {
    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        left: auto;
        right: 16px;
        margin-left: 0;
    }
}

/* ================================================================
   SPLASH SCREEN
   ================================================================ */
#splash-screen {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    overflow: hidden;
}
#splash-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--stripe);
    pointer-events: none;
}
#splash-screen.splash-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent), var(--primary-dark));
}
.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}
.splash-emblem {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    animation: splashFadeDown 0.7s ease both;
}
.splash-emblem::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(200, 150, 10, 0.3);
}
.splash-emblem img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
}
.splash-name {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 6px;
    animation: splashFadeUp 0.7s 0.2s ease both;
}
.splash-sub {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 24px;
    animation: splashFadeUp 0.7s 0.35s ease both;
}
.splash-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin-bottom: 28px;
    animation: splashFadeUp 0.7s 0.45s ease both;
}
.splash-loader-track {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    overflow: hidden;
    animation: splashFadeUp 0.7s 0.5s ease both;
}
.splash-loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 99px;
    animation: splashLoad 2.6s ease forwards;
}
.splash-msg {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    animation: splashFadeUp 0.7s 0.6s ease both;
}
@keyframes splashLoad     { to { width: 100%; } }
@keyframes splashFadeDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes splashFadeUp   { from { opacity:0; transform:translateY(14px);  } to { opacity:1; transform:translateY(0); } }
body.splash-active { overflow: hidden; }
