* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 222, 89, 0.18), transparent 20%),
        radial-gradient(circle at bottom right, rgba(74, 222, 128, 0.14), transparent 22%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    color: #1f2937;
}

.home-moderna {
    padding-top: 20px; /*limite da borda entre o cabeçalho com a foto principal*/
}

/* HERO */
.hero {
    position: relative;
    min-height: 78vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 22, 45, 0.82) 0%,
        rgba(7, 22, 45, 0.55) 45%,
        rgba(7, 22, 45, 0.20) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 40px 0;
}

.hero-texto {
    max-width: 680px;
    color: #fff;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(245, 243, 243, 0.18);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    max-width: 620px;
}

.hero-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
    margin-bottom: 40px;
}

.btn-principal,
.btn-secundario,
.link-ver-tudo,
.btn-doar-teste,
.btn-noticia {
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-principal {
    background: #ffffff;
    color: #0f172a;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.btn-principal:hover {
    transform: translateY(-2px);
}

.btn-secundario {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: bold;
    backdrop-filter: blur(8px);
}

.btn-secundario:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

/* CARDS DE ATALHO */
.cards-atalho {
    width: min(1200px, 92%);
    margin: 60px auto 0;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.atalho-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.atalho-icone {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #eef2ff);
    font-size: 24px;
    margin-bottom: 16px;
}

.atalho-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0f172a;
}

.atalho-card p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.97rem;
}

/* BLOCOS GERAIS */
.bloco-conteudo,
.bloco-destaques,
.bloco-noticias,
.bloco-parceiros {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 90px 0;
}

.bloco-duplo {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 34px;
    align-items: center;
}

.bloco-texto,
.video-card,
.bloco-doacao,
.noticia-card,
.parceiro-card,
.destaque-card {
    border-radius: 28px;
}

.bloco-texto {
    background: #ffffff;
    padding: 38px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.bloco-texto h2,
.bloco-destaques h2,
.bloco-noticias h2,
.bloco-parceiros h2,
.bloco-doacao h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 18px;
}

.bloco-texto p,
.bloco-doacao p {
    font-size: 1rem;
    line-height: 1.9;
    color: #475569;
}

.bloco-texto p + p {
    margin-top: 14px;
}

.secao-mini {
    display: inline-block;
    margin-bottom: 14px;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.secao-mini-clara {
    color: #dbeafe;
}

.video-card {
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.video-topo {
    padding: 16px 20px;
    color: #fff;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    font-weight: bold;
}

.video-card video {
    width: 100%;
    display: block;
    min-height: 500px;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

.secao-topo {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.link-ver-tudo {
    color: #2563eb;
    font-weight: 700;
}

.link-ver-tudo:hover {
    color: #1d4ed8;
}

/* DESTAQUES */
.grid-destaques {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.destaque-card {
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    min-height: 250px;
}

.destaque-card img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.destaque-card:hover img {
    transform: scale(1.05);
}

/* DOAÇÃO */
.bloco-doacao {
    width: min(1200px, 92%);
    margin: 40px auto 0;
    padding: 42px;
    background: linear-gradient(135deg, #0f3c88, #2563eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.24);
}

.bloco-doacao h2,
.bloco-doacao p {
    color: #fff;
}

.bloco-doacao p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
}

.btn-doar-teste {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    background: #fff;
    color: #0f172a;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.btn-doar-teste:hover {
    transform: translateY(-2px);
}

/* NOTÍCIAS */
.grid-noticias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.noticia-card {
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.noticia-imagem img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.noticia-conteudo {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.noticia-conteudo h3 {
    font-size: 1.15rem;
    color: #0f172a;
    line-height: 1.45;
    min-height: 72px;
}

.btn-noticia {
    align-self: flex-start;
    background: #eff6ff;
    color: #2563eb;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
}

.btn-noticia:hover {
    background: #dbeafe;
}

/* PARCEIROS */
.grid-parceiros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.parceiro-card {
    min-height: 130px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border-radius: 24px;
}

.parceiro-card img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    display: block;
}

/* CARROSSEL APENAS DOS PARCEIROS */
.carrossel-wrapper {
    position: relative;
    margin-top: 28px;
    width: 100%;
}

.carrossel-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
}

.carrossel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carrossel-track .parceiro-card {
    flex: 0 0 25%;
    min-width: 25%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrossel-track .parceiro-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    z-index: 0;
}

.carrossel-track .parceiro-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    max-height: 80px;
    margin: 0 auto;
}

.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.carrossel-btn:hover {
    background: #2563eb;
}

.carrossel-btn.prev {
    left: -10px;
}

.carrossel-btn.next {
    right: -10px;
}

/* ESTADO VAZIO */
.estado-vazio {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    text-align: center;
    color: #64748b;
}

/* RESPONSIVO */
@media (max-width: 1100px) {
    .cards-atalho,
    .grid-destaques,
    .grid-noticias {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-parceiros {
        grid-template-columns: repeat(3, 1fr);
    }

    .bloco-duplo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-moderna {
        padding-top: 85px;
    }

    .hero {
        min-height: 72vh;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .hero-content,
    .bloco-conteudo,
    .bloco-destaques,
    .bloco-noticias,
    .bloco-parceiros,
    .cards-atalho,
    .bloco-doacao {
        width: min(94%, 94%);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards-atalho,
    .grid-destaques,
    .grid-noticias,
    .grid-parceiros {
        grid-template-columns: 1fr;
    }

    .bloco-conteudo,
    .bloco-destaques,
    .bloco-noticias,
    .bloco-parceiros {
        padding: 70px 0;
    }

    .bloco-texto,
    .noticia-conteudo,
    .bloco-doacao {
        padding: 24px;
    }

    .video-card video {
        min-height: 320px;
        object-fit: contain;
        object-position: center center;
    }

    .bloco-doacao {
        flex-direction: column;
        align-items: flex-start;
    }

    .secao-topo {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-doar-teste {
        width: 100%;
    }

    .carrossel-track .parceiro-card {
        flex: 0 0 50%;
        min-width: 50%;
    }

    .carrossel-btn.prev {
        left: -4px;
    }

    .carrossel-btn.next {
        right: -4px;
    }
}

@media (max-width: 480px) {
    .carrossel-track .parceiro-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .hero-botoes {
        flex-direction: column;
    }

    .btn-principal,
    .btn-secundario {
        width: 100%;
        text-align: center;
    }

    .hero {
        min-height: 68vh;
    }

    .video-card video {
        min-height: 260px;
    }
}