/* Instituto Mutá - estilos do tema */

/* ===== 1. Cores e fontes ===== */
:root {
    --muta-azul: #2a7bd1;
    --muta-azul-claro: #5db3ee;
    --muta-azul-escuro: #17508f;
    --muta-verde: #22401d;
    --muta-verde-medio: #355f28;
    --muta-lima: #a8c93b;
    --muta-lima-claro: #e9f2c9;
    --muta-creme: #f8f7f1;
    --muta-texto: #1f2a1c;
    --muta-texto-suave: #5b6657;

    --fonte-titulo: 'Baloo 2', system-ui, sans-serif;
    --fonte-texto: 'Nunito', system-ui, sans-serif;
}

body {
    font-family: var(--fonte-texto);
    color: var(--muta-texto);
    background: #fff;
}

h1, h2, h3, h4, .fonte-titulo {
    font-family: var(--fonte-titulo);
    font-weight: 700;
    line-height: 1.1;
}

/* ===== 2. Botões ===== */
.btn-muta {
    background: var(--muta-lima);
    color: var(--muta-verde);
    font-weight: 700;
    border: 0;
    border-radius: 50rem;
    padding: .8rem 1.8rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-muta:hover {
    background: #b9d94d;
    color: var(--muta-verde);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 64, 29, .25);
}
.btn-muta-contorno {
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50rem;
    padding: .7rem 1.6rem;
    font-weight: 700;
}
.btn-muta-contorno:hover {
    background: #fff;
    color: var(--muta-azul-escuro);
}

/* ===== 3. Menu ===== */
.menu-muta {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    transition: box-shadow .3s;
}
.menu-muta.rolou { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.menu-muta .navbar-brand img { height: 56px; width: auto; }
.menu-muta .nav-link {
    font-weight: 700;
    color: var(--muta-verde);
    padding-inline: .9rem !important;
}
.menu-muta .nav-link:hover { color: var(--muta-azul); }

/* Item do menu da página atual */
.menu-muta .nav-link.active {
    color: var(--muta-verde);
    font-weight: 700;
    position: relative;
}
.menu-muta .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 60%;
    height: 3px;
    border-radius: 3px;
    background: var(--muta-lima);
    transform: translateX(-50%);
}

/* No mobile (menu aberto), troca o traço por uma barra lateral */
@media (max-width: 991.98px) {
    .menu-muta .nav-link.active::after {
        left: 0;
        bottom: auto;
        top: 50%;
        width: 4px;
        height: 60%;
        transform: translateY(-50%);
    }
    .menu-muta .nav-link.active {
        padding-left: 12px;
    }
}

/* ===== 4. Hero: céu azul + horizonte verde, como na logo ===== */
.hero {
    position: relative;
    background: linear-gradient(160deg, var(--muta-azul-escuro) 0%, var(--muta-azul) 45%, var(--muta-azul-claro) 100%);
    color: #fff;
    padding: 5rem 0 9rem;
    overflow: hidden;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; color: #fff; }
.hero h1 span { color: var(--muta-lima); }
.hero p.lead { max-width: 34rem; opacity: .95; }

/* Estrelinha da logo */
.estrela {
    position: absolute;
    color: #fff;
    animation: brilhar 3s ease-in-out infinite;
}
@keyframes brilhar {
    0%, 100% { opacity: .9; transform: scale(1); }
    50% { opacity: .4; transform: scale(.8); }
}

/* Imagem do hero em formato de "gota", como o desenho da logo */
.hero-foto {
    aspect-ratio: 1 / 1;
    border-radius: 62% 38% 55% 45% / 55% 45% 55% 45%;
    background:
        linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,0)),
        linear-gradient(160deg, #8fd0f7, var(--muta-lima));
    box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .85);
    font-size: 5rem;
}

/* Horizonte verde com a linha lima, como na logo */
.horizonte {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 120px;
}

/* --- 4b. Hero das páginas internas (Quem somos, Projetos, Transparência...) --- */
.hero-pagina { padding: 4rem 0 8rem; }
.hero-pagina h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero-pagina .lead { max-width: 40rem; }

/* Trilha "Início / Página" em pílula translúcida sobre o céu */
.trilha {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
    padding: .35rem 1rem;
    border-radius: 50rem;
    background: rgba(255, 255, 255, .12);
    font-size: .85rem;
    font-weight: 700;
    color: var(--muta-lima);
}
.trilha a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: color .2s;
}
.trilha a:hover { color: #fff; }
.trilha span:not(:last-child) { color: rgba(255, 255, 255, .5); }

/* ===== 5. Números ===== */
.numeros {
    background: var(--muta-verde);
    color: #fff;
    padding: 3rem 0 4rem;
}
.numero-valor {
    font-family: var(--fonte-titulo);
    font-size: 3rem;
    font-weight: 800;
    color: var(--muta-lima);
    line-height: 1;
}

/* ===== 6. Seções gerais ===== */
.secao { padding: 5rem 0; }
.secao-creme { background: var(--muta-creme); }

/* Fundo "céu": azul-claro descendo para o lima, como na logo */
.secao-ceu {
    background: linear-gradient(180deg, #eaf4fd 0%, #f3f8e4 100%);
}

/* Âncoras (/quem-somos/#diretoria) não ficam escondidas atrás do menu fixo */
.secao[id] { scroll-margin-top: 90px; }

.titulo-secao {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--muta-verde);
}
.sobretitulo {
    display: inline-block;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muta-azul);
    margin-bottom: .5rem;
}
.texto-suave { color: var(--muta-texto-suave); }

/* ===== 6b. Componentes compartilhados entre páginas internas ===== */

/* Ícone quadrado padrão */
.t-icone {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 1.2rem;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
}

/* Cartão branco padrão */
.t-card {
    height: 100%;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(23, 80, 143, .08);
    transition: transform .3s, box-shadow .3s;
}
.t-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(23, 80, 143, .14);
}

@media (max-width: 575.98px) {
    .t-card { padding: 1.5rem 1.25rem; gap: 1rem; }
    .t-icone { width: 56px; height: 56px; font-size: 1.5rem; }
}

/* ===== 7. Sobre ===== */
.sobre-foto {
    border-radius: 2rem;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--muta-verde-medio), var(--muta-lima));
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .8);
    font-size: 4rem;
}
.selo-anos {
    position: absolute;
    right: -1rem;
    bottom: -1.5rem;
    background: var(--muta-azul);
    color: #fff;
    border-radius: 1.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 30px rgba(42, 123, 209, .35);
    text-align: center;
}
.selo-anos strong { font-family: var(--fonte-titulo); font-size: 2.4rem; line-height: 1; display: block; }
.valor {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--muta-lima-claro);
    color: var(--muta-verde);
    border-radius: 50rem;
    padding: .4rem 1rem;
    font-weight: 700;
    font-size: .9rem;
}

/* ===== 7b. Missão, Visão e Valores (home) ===== */

/* --- Cartões Missão / Visão --- */
.mvv-card {
    height: 100%;
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(23, 80, 143, .15);
}
.mvv-card h3 { font-size: 2.2rem; margin-bottom: 1rem; }
.mvv-card p  { font-size: 1.1rem; line-height: 1.75; margin: 0; opacity: .95; position: relative; z-index: 1; }

.mvv-missao { background: linear-gradient(160deg, var(--muta-azul-escuro), var(--muta-azul)); }
.mvv-visao  { background: linear-gradient(160deg, var(--muta-verde), var(--muta-verde-medio)); }

/* Gota decorativa no canto, como o desenho da logo */
.mvv-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 62% 38% 55% 45% / 55% 45% 55% 45%;
    background: rgba(255, 255, 255, .08);
}

.mvv-icone {
    width: 72px;
    height: 72px;
    border-radius: 1.3rem;
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: var(--muta-lima);
    color: var(--muta-verde);
    margin-bottom: 1.5rem;
}

/* --- Título "Nossos valores" --- */
.mvv-valores-topo { margin: 4.5rem 0 2.5rem; }
.mvv-subtitulo {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--muta-verde);
    margin-bottom: .75rem;
}
.mvv-traco {
    display: inline-block;
    width: 70px;
    height: 5px;
    border-radius: 50rem;
    background: var(--muta-lima);
}

/* --- Cartões de valores --- */
.mvv-valor {
    height: 100%;
    min-height: 220px;
    background: #fff;
    border-radius: 1.75rem;
    padding: 2.5rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(23, 80, 143, .08);
    transition: transform .3s, box-shadow .3s;
}
/* Faixa lima que aparece no topo ao passar o mouse */
.mvv-valor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--muta-azul), var(--muta-lima));
    transform: scaleX(0);
    transition: transform .35s;
}
.mvv-valor:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(23, 80, 143, .14);
}
.mvv-valor:hover::before { transform: scaleX(1); }

.mvv-valor-icone {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    color: var(--muta-azul);
    background: var(--muta-lima-claro);
    transition: background .3s, color .3s;
}
.mvv-valor:hover .mvv-valor-icone {
    background: var(--muta-azul);
    color: #fff;
}

.mvv-valor-texto {
    font-family: var(--fonte-titulo);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.25;
    color: var(--muta-verde);
    max-width: 16rem;
}

/* Celular: um pouco mais compacto */
@media (max-width: 575.98px) {
    .mvv-card { padding: 2.25rem 1.75rem; }
    .mvv-valor { min-height: 0; padding: 2rem 1.5rem; }
}

/* ===== 8. Projetos ===== */
.card-projeto {
    border: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}
.card-projeto:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
}
.card-projeto h3 { color: var(--muta-verde); }
.card-projeto .capa {
    height: 180px;
    display: grid;
    place-items: center;
    font-size: 3.5rem;
    color: #fff;
}
.capa-azul { background: linear-gradient(135deg, var(--muta-azul), var(--muta-azul-claro)); }
.capa-verde { background: linear-gradient(135deg, var(--muta-verde-medio), var(--muta-lima)); }
.capa-mista { background: linear-gradient(135deg, var(--muta-azul-escuro), var(--muta-verde-medio)); }
.card-projeto .etiqueta {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muta-azul);
}
.link-seta {
    font-weight: 700;
    color: var(--muta-verde);
    text-decoration: none;
}
.link-seta i { transition: transform .2s; display: inline-block; }
.link-seta:hover i { transform: translateX(4px); }

/* ===== 9. Linha do tempo (home, horizontal) ===== */
.linha-tempo { position: relative; }
.linha-tempo::before {
    content: "";
    position: absolute;
    top: 1.6rem;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--muta-azul), var(--muta-lima));
}
.marco { position: relative; text-align: center; padding-top: 3.5rem; }
.marco::before {
    content: "";
    position: absolute;
    top: .95rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--muta-azul);
}
.marco-ano { font-family: var(--fonte-titulo); font-size: 1.6rem; color: var(--muta-verde); }

/* ===== 10. Notícias ===== */
.card-noticia {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    height: 100%;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}
.card-noticia .capa { aspect-ratio: 16 / 10; }
.card-noticia .data { font-size: .85rem; color: var(--muta-texto-suave); }
.card-noticia h3 { font-size: 1.3rem; }
.card-noticia a { color: var(--muta-verde); text-decoration: none; }
.card-noticia a:hover { color: var(--muta-azul); }

/* ===== 11. Chamada para doação ===== */
.chamada-doacao {
    position: relative;
    background: linear-gradient(135deg, var(--muta-verde) 0%, var(--muta-verde-medio) 100%);
    color: #fff;
    border-radius: 2rem;
    padding: 3.5rem;
    overflow: hidden;
}
.chamada-doacao h2 { color: #fff; }
.chamada-doacao::after {
    content: "";
    position: absolute;
    right: -6rem;
    top: -6rem;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 201, 59, .35), transparent 70%);
}

/* ===== 12. Parceiros ===== */
.parceiro {
    height: 80px;
    border-radius: 1rem;
    background: #fff;
    border: 1px dashed #d6dccf;
    display: grid;
    place-items: center;
    color: #a3ab9d;
    font-weight: 700;
}

/* ===== 13. Rodapé ===== */
.rodape {
    background: var(--muta-verde);
    color: rgba(255, 255, 255, .8);
    padding: 4rem 0 0;
}
.rodape h4 { color: #fff; font-size: 1.2rem; }
.rodape a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.rodape a:hover { color: var(--muta-lima); }
.rodape .redes a {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    margin-right: .4rem;
    font-size: 1.1rem;
}
.rodape .redes a:hover { background: var(--muta-lima); color: var(--muta-verde); }
.rodape-base {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 3rem;
    padding: 1.2rem 0;
    font-size: .9rem;
}

/* ===== 14. Animação de entrada ao rolar ===== */
.aparecer { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.aparecer.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .aparecer { opacity: 1; transform: none; transition: none; }
    .estrela { animation: none; }
}

/* ===== 15. Ajustes de tablet/celular ===== */
@media (max-width: 991.98px) {
    .hero { padding: 3rem 0 8rem; text-align: center; }
    .hero p.lead { margin-inline: auto; }
    .linha-tempo::before { display: none; }
    .selo-anos { right: 1rem; }
    .chamada-doacao { padding: 2.5rem 1.5rem; text-align: center; }
}

/* =====================================================================
   16. Experiência mobile
   Tudo aqui está dentro de @media: o desktop (≥ 992px) não é afetado.
   Para desfazer, basta apagar este bloco inteiro.
   ===================================================================== */

/* Barra fixa de doação: escondida por padrão (desktop nunca vê) */
.barra-doacao { display: none; }

/* ---------- Tablet e celular (< 992px) ---------- */
@media (max-width: 991.98px) {

    /* Hero: some a decoração, fica a mensagem */
    .hero .estrela { display: none; }
    .hero .row > :has(.hero-foto) { display: none; }   /* a coluna inteira da gota */
    .hero-foto { display: none; }                      /* reserva, caso a gota esteja fora de uma coluna */

    /* Barra fixa de doação */
    .barra-doacao {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;                                 /* abaixo do menu (1030) */
        padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(6px);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform .3s ease, visibility .3s;
    }
    .barra-doacao.mostrar {
        transform: none;
        visibility: visible;
    }
}

/* ---------- Celular (< 768px) ---------- */
@media (max-width: 767.98px) {

    /* Ritmo geral: menos espaço morto entre as seções */
    .secao { padding: 3.25rem 0; }

    /* Menu fixo mais baixo (sobra mais tela) e itens fáceis de tocar */
    .menu-muta .navbar-brand img { height: 44px; }
    .menu-muta .nav-link { padding-block: .7rem; }

    /* Hero */
    .hero { padding: 2.5rem 0 6rem; }
    .hero p.lead { font-size: 1.05rem; line-height: 1.6; }
    .horizonte { height: 80px; }

    /* Números */
    .numeros { padding: 2rem 0 2.5rem; }
    .numero-valor { font-size: 2.4rem; }

    /* Sobre: o selo repete o "29 anos" do bloco de números */
    .selo-anos { display: none; }
    .sobre-foto { aspect-ratio: 16 / 9; font-size: 3rem; }

    /* Missão e visão mais compactas */
    .mvv-card { padding: 2rem 1.5rem; }
    .mvv-card h3 { font-size: 1.8rem; }
    .mvv-icone {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Valores: de card alto para linha compacta (todos continuam visíveis) */
    .mvv-valores-topo { margin: 3rem 0 1.5rem; }
    .row:has(> * > .mvv-valor) { --bs-gutter-y: .75rem; }
    .mvv-valor {
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
        padding: 1rem 1.25rem;
        border-radius: 1.25rem;
    }
    .mvv-valor-icone {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    .mvv-valor-texto {
        font-size: 1.05rem;
        max-width: none;
    }

    /* Projetos: carrossel horizontal, mostrando a ponta do próximo card */
    .row:has(> * > .card-projeto) {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;                          /* espaço para a sombra */
        scrollbar-width: none;
    }
    .row:has(> * > .card-projeto)::-webkit-scrollbar { display: none; }
    .row:has(> * > .card-projeto) > * {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: start;
    }
    /* Cards fora da tela não ficam presos invisíveis pela animação de entrada */
    .row:has(> * > .card-projeto) > .aparecer {
        opacity: 1;
        transform: none;
    }
    .card-projeto .capa { height: 130px; font-size: 2.75rem; }

    /* Notícias: lista compacta, com miniatura à esquerda e título à direita */
    .row:has(> * > .card-noticia) { --bs-gutter-y: .75rem; }
    .card-noticia {
        display: flex;
        align-items: stretch;
        border-radius: 1rem;
    }
    .card-noticia > .capa {
        flex: 0 0 96px;
        width: 96px;
        aspect-ratio: auto;
        min-height: 96px;
    }
    .card-noticia > :not(.capa) { padding: .9rem 1rem !important; }
    .card-noticia h3 { font-size: 1.05rem; margin-bottom: 0; }
    .card-noticia h3 + p { display: none; }           /* resumo fica para a página da notícia */
}

/* Telas de toque: sem efeitos de "passar o mouse", que no celular grudam após o toque */
@media (hover: none) {
    .card-projeto:hover,
    .mvv-valor:hover,
    .t-card:hover,
    .btn-muta:hover { transform: none; }
    .mvv-valor:hover::before { transform: scaleX(0); }
    .mvv-valor:hover .mvv-valor-icone {
        background: var(--muta-lima-claro);
        color: var(--muta-azul);
    }
}

@media (prefers-reduced-motion: reduce) {
    .barra-doacao { transition: none; }
}

/* ===== Projetos da home: carrossel no celular (só CSS, sem JS) ===== */
.carrossel-dica {
    text-align: center;
    font-size: .85rem;
    font-weight: 700;
    color: var(--muta-verde);
    opacity: .7;
    margin: .5rem 0 0;
}

@media (max-width: 767.98px) {
    .projetos-carrossel {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: calc(var(--bs-gutter-x) * .5);
        padding-bottom: 1.5rem;          /* espaço para a sombra do card não ser cortada */
        scrollbar-width: none;           /* esconde a barra no Firefox */
    }
    .projetos-carrossel::-webkit-scrollbar { display: none; }   /* Chrome/Safari */

    .projetos-carrossel > [class*="col-"] {
        flex: 0 0 82%;                   /* 82% = mostra uma "espiada" do próximo card */
        max-width: 82%;
        scroll-snap-align: start;
    }

    /* Os cards fora da tela ficam escondidos à direita, então a animação de entrada
       pode não disparar neles. No carrossel eles aparecem direto. */
    .projetos-carrossel .aparecer {
        opacity: 1;
        transform: none;
    }
}


.sobre-foto {
    border-radius: 2rem;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--muta-verde-medio), var(--muta-lima));
    padding: 10px;
    box-shadow: 0 20px 40px rgba(23, 80, 143, .12);
}
.sobre-foto-quadro {
    position: relative;
    height: 100%;
    border-radius: calc(2rem - 10px);
    overflow: hidden;                 /* segura o desfoque dentro da moldura */
}
/* Fundo: a mesma foto, ampliada e desfocada */
.sobre-foto-quadro::before {
    content: "";
    position: absolute;
    inset: -30px;
    background: var(--foto) center / cover;
    filter: blur(20px) brightness(.85);
}
/* Frente: a foto inteira, sem corte */
.sobre-foto-quadro img {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.hero-foto {
    aspect-ratio: 1 / 1;
    border-radius: 62% 38% 55% 45% / 55% 45% 55% 45%;
    background:
        linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,0)),
        linear-gradient(160deg, #8fd0f7, var(--muta-lima));
    padding: 10px;                     /* espessura da borda */
    box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.hero-foto img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 30%;       /* 0% prende no topo, 100% no pé */
    border-radius: 62% 38% 55% 45% / 55% 45% 55% 45%;   /* mesma gota da moldura */
}

   .hero-foto img {
       object-fit: cover;
       object-position: 32% 22%;
   }
   
   @media (max-width: 768px) {
    .hero-foto img {
        object-position: 30% 20%;
    }
}


.parceiros-carrossel {
    overflow: hidden;
    /* esmaece as bordas para os logos "entrarem" e "saírem" suavemente */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.parceiros-trilha {
    display: flex;
    width: max-content;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: parceiros-rolar 40s linear infinite;
}

/* pausa quando o mouse passa por cima */
.parceiros-carrossel:hover .parceiros-trilha {
    animation-play-state: paused;
}

.parceiros-item {
    flex: 0 0 auto;
    width: 180px;
    height: 90px;
    margin-right: 16px; /* usar margin, não gap, para o loop fechar certinho em -50% */
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
}

.parceiros-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .7;
    transition: filter .3s, opacity .3s;
}

.parceiros-item:hover img {
    filter: none;
    opacity: 1;
}

@keyframes parceiros-rolar {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .parceiros-item {
        width: 140px;
        height: 72px;
    }
    .parceiros-trilha {
        animation-duration: 30s;
    }
}

/* quem desativou animações no sistema rola manualmente */
@media (prefers-reduced-motion: reduce) {
    .parceiros-trilha { animation: none; }
    .parceiros-carrossel { overflow-x: auto; }
}

.capa-foto {
    position: relative;
    overflow: hidden;
}

.capa-foto img {
    position: absolute;
    inset: 6px;                      /* espessura da moldura, nos 4 lados */
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: cover !important;
    object-position: center 25%;
    border-radius: 14px 14px 8px 8px;
}

@media (max-width: 767px) {
    .projetos-carrossel .card-projeto .capa {
        height: 190px;
    }
}