@font-face {
    font-family: 'Arch';
    src: url('assets/fontes/arch.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'New Sun Regular';
    src: url('assets/fontes/New Sun Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-red: #BC0713;
    --primary-black: #303030;
    --primary-white: #F1EDE3;
    --bg-light: #f5f5f5;
    --text-color: #333333;
    --text-muted: #666666;
    --footer-bg: #5a7d7c;
    --header-bg: #BC0713;
    --header-text: #F1EDE3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    font-family: 'Arch', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--primary-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-black);
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--primary-white);
}

.bg-black {
    background-color: var(--primary-black);
}

.bg-red {
    background-color: var(--primary-red);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #9a0610;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-black);
    color: var(--primary-black);
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-outline:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

/* Header */
.header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo-img {
    height: 72px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--header-text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-white);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-donate {
    background-color: var(--primary-white);
    color: var(--header-bg) !important;
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-donate::after {
    display: none;
}

.btn-donate:hover {
    background-color: var(--primary-black);
    color: var(--primary-white) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-white);
    border-radius: 2px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    /* min-height: 60vh; */
    width: 100%;
    aspect-ratio: 4401 / 1692;
    background-image: url('assets/BANNER.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    text-align: center;
    padding: 40px;
}

.banner-text {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Iniciativas */
.iniciativas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.iniciativa-card {
    background-color: var(--primary-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iniciativa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    width: 100%;
}

.card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrap svg {
    width: 72px;
    height: 72px;
    stroke: rgba(255,255,255,0.9);
}

.card-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-details li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
}


.card-details li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
    font-family: 'New Sun Regular', sans-serif;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-black);
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Paper texture on cards */
.iniciativa-card,
.pillar-card,
.step-card,
.parceiro-card,
.pix-box,
.noticia-card,
.athis-quote-box {
    background-image: url('assets/FUNDO.png');
    background-size: cover;
}

/* Quero Ajudar / PIX */
.quero-ajudar {
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pix-container {
    display: flex;
    justify-content: center;
}

.pix-box {
    background-color: var(--primary-white);
    padding: 40px;
    border-radius: 8px;
    color: var(--primary-black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left: 10px solid var(--primary-red);
}

.pix-box h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.pix-qr {
    display: block;
    max-width: 200px;
    width: 100%;
    margin: 0 auto 20px auto;
}

.pix-key {
    font-size: 2rem;
    font-family: monospace;
    margin-bottom: 10px;
    color: var(--primary-red);
    word-break: break-all;
}

.pix-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.pre-footer-bg {
    background-image: url('assets/papel verde.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 15 / 1;
    width: 100%;
    margin-bottom: -2px;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--primary-white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(241, 237, 227, 0.8);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-white);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-contact a {
    color: rgba(241, 237, 227, 0.8);
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: var(--primary-white);
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(241, 237, 227, 0.2);
    color: rgba(241, 237, 227, 0.6);
    font-size: 0.9rem;
}

/* Sobre Nós Section */
.sobre-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.sobre-content .lead-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 20px;
    line-height: 1.5;
}

.sobre-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.sobre-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pillar-card {
    background-color: var(--primary-white);
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--primary-red);
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(188, 7, 19, 0.08);
    color: var(--primary-red);
    border-radius: 50%;
    margin-bottom: 15px;
}

.pillar-icon svg {
    width: 24px;
    height: 24px;
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-black);
    font-weight: 700;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* O que é ATHIS Section */
.athis-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.athis-quote-box {
    background-color: var(--primary-white);
    padding: 40px;
    border-left: 6px solid var(--primary-red);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.law-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.athis-quote-box blockquote {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-black);
    position: relative;
}

.athis-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.athis-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: var(--primary-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    border-top: 4px solid var(--primary-black);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--primary-red);
}

.step-num {
    font-family: 'New Sun Regular', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-red);
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
}

.step-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-black);
    font-weight: 700;
    padding-right: 40px;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Parceiros Section */
.parceiros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

.parceiro-card {
    background-color: var(--primary-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3/2;
}

.parceiro-card:hover {
    transform: translateY(-5px);
}

.parceiro-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.parceiro-card:hover img {
    filter: grayscale(0%);
}

/* Grid de Notícias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Notícias Cards */
.noticia-card {
    background-color: var(--primary-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.noticia-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #8a050e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    position: relative;
}

.noticia-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.15) 10%, transparent 10.01%);
    background-size: 10px 10px;
    opacity: 0.3;
}

.noticia-img-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

.noticia-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.noticia-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    background-color: rgba(188, 7, 19, 0.1);
    color: var(--primary-red);
    padding: 4px 8px;
    border-radius: 4px;
}

.noticia-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.noticia-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-black);
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-summary {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-btn {
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Legado - mantido por compatibilidade */
.carousel-placeholder {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Modal Estilos */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--primary-white);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    padding: 40px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 6px solid var(--primary-red);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

.modal-body h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-black);
    text-transform: uppercase;
}

.modal-body p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.98rem;
}

.modal-highlight {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-red);
    padding: 15px 20px;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
}


/* Responsive */
@media (max-width: 992px) {
    .banner-text {
        font-size: 2rem;
    }

    .hero-banner {
        min-height: 25vh;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .athis-info-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .parceiros-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100px;
        left: -100%;
        width: 100%;
        background-color: var(--header-bg);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
    }

    .nav-link::after {
        display: none;
    }

    .btn-donate {
        display: inline-block;
        margin-top: 10px;
    }

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

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

    .sobre-content .lead-text {
        font-size: 1.15rem;
    }

    .athis-quote-box blockquote {
        font-size: 1.2rem;
    }
}

@media (max-width: 460px) {
    .hero-banner {
        min-height: 18vh;
    }
}