/* VARIÁVEIS DE CORES LCPP */
:root {
    --azul-royal: #1E6FBF;
    --preto-lcpp: #111111;
    --off-white: #F7F8FA;
    --azul-claro: #E8F2FC;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--off-white);
    color: var(--preto-lcpp);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.logo-icon {
    width: 35px; height: 35px;
    background: var(--azul-royal);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--preto-lcpp);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--azul-royal); }

/* Estilo para o link ativo na navegação */
.nav-links a.active {
    color: var(--azul-royal);
    position: relative;
}

/* Linha indicadora abaixo do link */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--azul-royal);
    border-radius: 2px;
}

/* Suavizar a rolagem da página quando clicar no menu */
html {
    scroll-behavior: smooth;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-bg-icon {
    position: absolute;
    right: -50px;
    top: 15%;
    width:700px; height: 880px;
    opacity: 1;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 0.9;
    font-weight: 800;
    margin-bottom: 30px;
}

.text-blue { color: var(--azul-royal); }

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    color: #666;
    margin-bottom: 40px;
}

/* BOTÕES */
.btn-primary, .btn-dark, .btn-light {
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary { background: var(--azul-royal); color: white; }
.btn-dark { background: var(--preto-lcpp); color: white; margin-right: 15px; }
.btn-light { background: var(--azul-claro); color: var(--azul-royal); }

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(30, 111, 191, 0.2); }

/* STATS */
.stats {
    background: var(--preto-lcpp);
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.stat-item h2 { font-size: 3rem; color: var(--azul-royal); }
.stat-item p { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; opacity: 0.7; }

/* CARDS */
.research { padding: 100px 0; }
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }


.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: var(--azul-claro);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(30, 111, 191, 0.1);
}

.card:hover { transform: translateY(-10px); }
.card i { color: var(--azul-royal); margin-bottom: 20px; display: block; }
.card h3 { margin-bottom: 15px; }
.card code { font-size: 0.7rem; color: var(--azul-royal); opacity: 0.5; }

/* ANIMAÇÃO DE REVELAÇÃO */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
.footer {
    background: var(--preto-lcpp);
    color: rgba(255,255,255,0.5);
    justify-content: space-between;
    padding: 40px;
}

.coluna-sobre, .coluna-contato {
  flex: 1; /* Faz as duas colunas dividirem o espaço igualmente */
}

.coluna-contato {
  text-align: right; /* Alinha o texto do bloco da direita */
}

.footer .logo.white { color: white; margin-bottom: 20px; }

/* SEÇÃO SOBRE - MVV */
.about-mvv { padding: 100px 0; background: var(--white); }

.infra-map{background-color: #ffff; padding: 60px;}

.category-tag {
    color: var(--azul-royal);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mvv-card {
    background: var(--azul-claro);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(30, 111, 191, 0.05);
}

.mvv-icon {
    width: 50px; height: 50px;
    background: var(--azul-royal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* TIMELINE */
.timeline-section { padding: 100px 0; background: var(--off-white); }

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--azul-royal);
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-date {
    font-weight: 800;
    color: var(--azul-royal);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 8px;
    width: 14px; height: 14px;
    background: var(--azul-royal);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px rgba(30, 111, 191, 0.1);
}

/* ORGANOGRAMA */
.org-chart-section { padding: 100px 0; background: var(--white); }

.org-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin-top: 60px;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.member-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 260px;
    transition: var(--transition);
}

.member-card:hover {
    border-color: var(--azul-royal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.member-img {
    width: 60px; height: 60px;
    background: #e2e2e2;
    border-radius: 50%;
}

.member-info strong { display: block; font-size: 1rem; color: var(--preto-lcpp); }
.member-info span { font-size: 0.8rem; color: #888; }

.member-card.principal { border-left: 5px solid var(--azul-royal); }

/* GALERIA & MAPA */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover { opacity: 0.8; }

.map-placeholder {
    margin-top: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #eee;
}

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

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 900px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    margin: 0 auto;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

input#searchInput {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--azul-royal);
    border-radius: 8px;
    font-family: var(--fonte-padrao);
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

input#searchInput:focus {
    box-shadow: 0 0 0 2px rgba(30, 111, 191, 0.2);
}


table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid #eaeaea;
}

th {
    background-color: var(--azul-royal);
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
}

th:first-child {
    border-top-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 8px;
}

td {
    font-family: var(--fonte-mono);
    font-size: 15px;
    color: var(--preto-lcpp);
}

tbody tr:nth-child(even) {
    background-color: var(--azul-claro);
}

tbody tr:hover {
    background-color: #d8e8f8;
    transition: background-color 0.2s ease-in-out;
}

.observacao {
    font-size: 14px;
    margin-top: 20px;
    font-style: normal;
    color: #555;
    line-height: 1.4;
    padding-left: 8px;
    border-left: 4px solid var(--azul-royal);
}

/* --- SEÇÃO DE CONTATO --- */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--azul-claro);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(30, 111, 191, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--preto-lcpp);
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--azul-royal);
    box-shadow: 0 0 0 3px rgba(30, 111, 191, 0.2);
}

.form-group input.input-error, 
.form-group textarea.input-error {
    border-color: #d93025;
}

.error-msg {
    color: #d93025;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    min-height: 18px; /* Evita que o layout "pule" quando o erro aparece */
}

.success-msg {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none; /* Oculto por padrão */
}

.success-msg.show {
    display: block;
}

/* SEÇÃO DO BLOG */
.blog-section {
    padding: 100px 0;
    background: var(--off-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(30, 111, 191, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--azul-claro);
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--azul-royal);
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.25rem;
    color: var(--preto-lcpp);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-loading {
    text-align: center;
    grid-column: 1 / -1;
    color: #888;
    padding: 40px;
}
/* Container principal da faixa */
.carrossel-parceiros {
  background-color: #f8f9fa; /* Cor de fundo da faixa */
  padding: 60px 0;
  overflow: hidden; /* Esconde os logos que saem da tela */
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.carrossel-parceiros:hover .carrossel-track {
  animation-play-state: paused;
}

/* Trilho que desliza */
.carrossel-track {
  display: flex;
  width: calc(250px * 16); /* Largura aproximada do slide x total de itens */
  animation: rolar 20s linear infinite; /* Animação contínua */
}

/* Estilo de cada slide/logo */
.slide {
  width: 250px;
  margin: 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 100%;
  max-height: 100px; /* Ajuste a altura máxima para alinhar todos os logos */
  filter: grayscale(100%); /* Opcional: deixa os logos em P&B para padrão */
  opacity: 0.7;
  transition: all 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%); /* Mostra a cor original ao passar o mouse */
  opacity: 1;
}

/* Animação que faz o carrossel andar */
@keyframes rolar {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move metade do caminho para resetar sem solavancos */
  }
}

/* =========================================================
   RESPONSIVIDADE LCPP
   Ajustes adicionais para tablets e dispositivos móveis.
   Mantém o layout original no desktop.
   ========================================================= */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 0 auto;
    background: var(--preto-lcpp);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

img, svg, video, iframe {
    max-width: 100%;
}

textarea {
    resize: vertical;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-actions {
        gap: 8px;
    }

    .hero-bg-icon {
        width: 520px;
        height: auto;
        right: -100px;
    }

    .grid-2 {
        gap: 30px;
    }

    .infra-map {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    
    nav,
    .navbar,
    header nav {
        width: 100%;
        height: auto;
        min-height: 60px;
        padding: 10px 16px;
        box-sizing: border-box;
    }

    nav .container,
    .navbar .container,
    .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-content {
        position: relative;
    }

    nav img,
    .navbar img,
    .logo img {
        max-width: 150px;
        height: auto;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul,
    .navbar ul,
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 10px 0;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        box-sizing: border-box;
        z-index: 1000;
    }

    nav ul.active,
    .navbar ul.active,
    .nav-links.active {
        display: flex;
    }

    nav ul li,
    .navbar ul li,
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    nav ul li a,
    .navbar ul li a,
    .nav-links li a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        box-sizing: border-box;
    }

    .nav-actions {
        display: none;
    }

    .hero {
        min-height: 100svh;
        height: auto;
        padding: 110px 0 70px;
    }

    .hero-bg-icon {
        width: 360px;
        height: auto;
        right: -150px;
        top: 20%;
        opacity: .28;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
        line-height: .95;
        max-width: 100%;
        margin-bottom: 22px;
    }

    .hero p {
        font-size: 1.05rem;
        max-width: 100%;
        margin-bottom: 28px;
    }

    .hero .btn-primary,
    .hero .btn-dark,
    .hero .btn-light {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
    }

    .stats,
    .research,
    .about-mvv,
    .blog-section,
    .contact-section {
        padding: 65px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 15px;
    }

    .stat-item h2 {
        font-size: 2.2rem;
    }

    .card-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 28px 24px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table-container {
        padding: 16px;
        border-radius: 12px;
    }

    .table-container .table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 650px;
    }

    th, td {
        padding: 12px;
        white-space: nowrap;
    }

    .contact-wrapper {
        width: 100%;
        padding: 26px 20px;
    }

    .infra-map {
        padding: 35px 20px;
    }

    .footer {
        padding: 35px 24px;
    }

    .footer .container {
        flex-direction: column;
        gap: 28px;
    }

    .coluna-sobre,
    .coluna-contato {
        width: 100%;
        text-align: left;
    }

    .carrossel-parceiros {
        padding: 40px 0;
    }

    .slide {
        width: 180px;
        margin: 0 15px;
    }

    .slide img {
        max-height: 75px;
    }

    .post-title {
        font-size: clamp(2rem, 9vw, 3.2rem);
        overflow-wrap: anywhere;
    }

    .post-body {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo img {
        height: 46px !important;
        max-width: 165px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-bg-icon {
        width: 280px;
        right: -135px;
        top: 30%;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 14vw, 3.3rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn-primary,
    .hero .btn-dark,
    .hero .btn-light {
        width: 100%;
        margin: 0 0 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 16 / 10;
    }

    .table-container {
        margin-left: 0;
        margin-right: 0;
        padding: 12px;
    }

    .contact-wrapper {
        padding: 22px 16px;
    }

    .form-group input,
    .form-group textarea,
    input#searchInput {
        font-size: 16px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .footer {
        padding: 30px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.admin-post-item {
    gap: 12px;
}

@media (max-width: 600px) {
    body[style*="padding: 50px 0"] {
        padding: 28px 0 !important;
    }

    .admin-post-item {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .admin-post-item span {
        flex: 1 1 100%;
        overflow-wrap: anywhere;
    }

    .admin-post-item button {
        width: 100%;
        margin-top: 4px;
    }
}

/*celulares menores*/
@media (max-width: 480px) {

    nav,
    .navbar,
    header nav {
        min-height: 55px;
        padding: 8px 12px;
    }

    nav img,
    .navbar img,
    .logo img {
        max-width: 125px;
    }

    .menu-toggle,
    .hamburger {
        width: 40px;
        height: 40px;
    }
}


/* Desktop */
@media (min-width: 769px) {

    .menu-toggle,
    .hamburger {
        display: none !important;
    }

    nav ul,
    .navbar ul,
    .nav-links {
        display: flex !important;
    }
}