/* Reset e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif; /* Fonte de texto limpa e legível */
    line-height: 1.6;
    background-color: #000000; /* Fundo Preto */
    color: #f0f0f0; /* Texto claro */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
h1, h2, h3 {
    text-align: center;
    font-family: 'Montserrat', sans-serif; /* Fonte de títulos moderna e forte */
    font-weight: 700;
}
html {
    scroll-behavior: smooth;
}

/* Cores */
:root {
    --primary-color: #1A3C5E; /* Azul Marinho Profundo - Confiança e Elegância */
    --accent-color: #007bff;  /* Azul Vibrante - Ação */
    --text-color: #333333;
    --light-bg: #111111; /* Fundo escuro para seções alternadas */
    --white: #ffffff;
    --card-bg: #1a1a1a; /* Fundo dos cards (Cinza Escuro) */
}

/* Cabeçalho */
header {
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(255,255,255,0.05); /* Sombra sutil clara */
    color: var(--white);
    padding: 1rem 0;
    position: relative;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}
.logo img {
    max-height: 120px; /* Ajuste este valor para aumentar ou diminuir o logo */
    width: auto;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s;
    position: relative; /* Necessário para a animação da linha */
    padding-bottom: 5px; /* Espaço para a linha abaixo do texto */
}
nav a:hover {
    color: var(--accent-color);
}

/* Animação de linha no menu */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}
nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}
.hamburger div {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}
/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    overflow: hidden;
}
.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
    transition: background 0.3s;
}
.carousel-btn:hover {
    background-color: var(--accent-color);
}
.prev { left: 20px; }
.next { right: 20px; }
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
}
.btn {
    display: inline-block;
    background: var(--accent-color); /* Azul vibrante */
    color: var(--white);
    padding: 12px 35px;
    border: none;
    border-radius: 50px; /* Botão arredondado (Pill shape) */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,123,255,0.2);
}
.btn:hover {
    background: var(--primary-color); /* Azul escuro no hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Seções */
section {
    padding: 4rem 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

/* Grid de Atuação */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards 3D */
.card-3d {
    background-color: transparent;
    width: 100%;
    height: 400px; /* Altura fixa necessária para o efeito 3D */
    perspective: 1000px; /* Profundidade 3D */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); /* Sombra mais suave e elegante */
    border-radius: 15px;
    border: 1px solid rgba(0,123,255,0.1); /* Borda muito sutil */
}

/* Hover apenas em dispositivos com mouse (Desktop) */
@media (hover: hover) {
    .card-3d:hover .card-inner {
        transform: rotateY(180deg);
    }
}

.card-3d.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background-color: var(--card-bg);
    color: var(--white);
}

.card-back {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.card-front h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-back h3 {
    margin-bottom: 1rem;
    color: #fff; /* Título branco no verso para contraste */
}

/* Seção de Estatísticas */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}
.stat-item i {
    font-size: 3rem;
    color: #4da3ff; /* Azul mais claro para contrastar com fundo escuro */
    margin-bottom: 1rem;
}
.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Projetos Detalhados */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
.project-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.05);
}
.project-row:nth-child(even) {
    flex-direction: row-reverse; /* Alterna a posição da imagem */
}
.project-img, .project-info {
    flex: 1;
}
.project-img img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Lista de Atuação Detalhada (Novo Estilo) */
.actuation-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.actuation-item {
    display: flex;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Sombra elegante */
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    border: none; /* Remove borda dura */
    flex-direction: column;
}
.actuation-item:hover {
    transform: translateY(-5px);
}
.actuation-body {
    display: flex;
    gap: 2rem;
    width: 100%;
}
.actuation-icon {
    background: rgba(0, 123, 255, 0.1); /* Fundo azul bem clarinho */
    color: var(--primary-color);
    color: var(--accent-color); /* Melhor contraste no escuro */
    min-width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}
.actuation-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    width: 100%;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}
.actuation-details {
    list-style: none;
    margin-top: 1.5rem;
}
.actuation-details li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}
.actuation-details li i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Seção Como Ajudar */
.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.help-item {
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}
.help-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.help-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Lista de Doações Materiais */
.help-list {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 0 1rem;
}
.help-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}
.help-list li i {
    font-size: 1.2rem;
    margin-bottom: 0;
    margin-right: 10px;
    width: 25px;
    text-align: center;
}

/* Estilos do Cartão PIX */
.qr-code-container {
    margin: 1rem auto;
    padding: 10px;
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    display: inline-block;
}
.qr-img {
    width: 150px;
    height: 150px;
    display: block;
}
.pix-key-box {
    background: #e7f1ff;
    padding: 0.8rem;
    border-radius: 5px;
    color: var(--primary-color);
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    border: 1px dashed var(--accent-color);
}
.pix-key-box strong {
    font-size: 1.1rem;
    font-family: monospace;
    margin-top: 5px;
}

.help-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.link-btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}

/* Seção Citação/Versículo */
.quote-section {
    background-color: var(--primary-color); /* Fundo preto */
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    margin: 2rem 0;
}
.quote-section blockquote {
    font-size: 1.8rem;
    font-style: italic;
    font-family: 'Montserrat', sans-serif; /* Mantendo consistência */
    font-weight: 300;
    max-width: 800px;
    margin: auto;
}
.quote-section cite {
    display: block;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #4da3ff;
    font-style: normal;
    font-weight: bold;
}

/* Depoimentos */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #ccc;
}
.testimonial-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent-color);
}
.testimonial-card .author {
    font-weight: bold;
    color: var(--white);
    text-align: center;
}

/* Mapa de Contato */
.map-container {
    margin-top: 3rem;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Rodapé */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.social-icons {
    margin-bottom: 1rem;
}
.social-icons a {
    color: var(--white);
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: #4da3ff; /* Azul vibrante no hover */
}

.mobile-menu-icon {
    display: none;
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    .hamburger {
        display: flex;
        order: 2;
    }
    nav {
        order: 3;
        width: 100%;
    }
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        display: none;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 0;
        text-align: center;
    }
    nav a {
        padding: 1rem;
        display: block;
        color: var(--white);
        border-bottom: 1px solid #333;
    }
    nav a:hover {
        color: var(--accent-color);
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 5rem 1rem;
    }
    section {
        padding: 3rem 1rem;
    }
    .stats-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .stats-section {
        min-height: 60vh;
        display: flex;
        align-items: center;
    }
    .stats-section .container {
        flex-direction: column;
        justify-content: center;
    }
    .project-row, .project-row:nth-child(even) {
        flex-direction: column;
        gap: 1.5rem;
    }
    .actuation-body {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .actuation-details li {
        justify-content: center; /* Centraliza a lista no mobile */
        text-align: left;
    }
    .help-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Animação de Borda Infinita (Galeria Rolante) */
.infinite-border {
    width: 100%;
    overflow: hidden;
    background: var(--primary-color);
    padding: 15px 0;
    white-space: nowrap;
    position: relative;
    border-top: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
}

.infinite-border-track {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
}

.infinite-border img {
    height: 120px;
    width: auto;
    margin: 0 10px;
    border-radius: 8px;
    border: 2px solid var(--white);
    display: inline-block;
    vertical-align: middle;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Estilos da Página de Contato --- */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info ocupa menos espaço, Mapa ocupa mais */
    gap: 2rem;
    align-items: stretch;
}

.contact-info-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-header {
    margin-bottom: 2rem;
    color: var(--white);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--accent-color);
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-socials-title {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.contact-social-buttons {
    display: flex;
    gap: 1rem;
}

.contact-social-btn {
    width: 55px;
    height: 55px;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-social-btn:hover {
    transform: translateY(-5px) scale(1.1); /* Efeito de pulo e aumento */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.contact-social-btn.facebook { background: #3b5998; }
.contact-social-btn.instagram { background: #E1306C; }
.contact-social-btn.whatsapp { background: #25D366; }

.contact-map {
    width: 100%;
    min-height: 550px; /* Mapa bem maior */
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Uma coluna no celular */
    }
    .contact-map {
        min-height: 400px;
    }
}

.contact-text strong {
    color: var(--white);
}
.contact-text span {
    color: #ccc;
}

/* Estilos para a página Sobre (Lista com Ícones) */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.about-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}
.about-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}
.about-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    min-width: 60px;
    text-align: center;
    margin-top: 5px; /* Alinhamento visual com o topo do texto */
}
.about-item p {
    margin: 0;
    text-align: justify;
}
@media (max-width: 768px) {
    .about-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-item p {
        text-align: center;
    }
}

/* Animação Logo Rodapé */
@keyframes pulse-logo {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.footer-logo-anim {
    animation: pulse-logo 2s infinite;
}