/* =========================================================
   FUNDO ANIMADO DA TELA DE INICIO (frames em canvas)
   So mexe no background: textos, icones e botoes continuam iguais.
   ========================================================= */

.inicio {
    isolation: isolate;
}

/* canvas fica atras do overlay e atras de todo o conteudo */
.inicio > canvas.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s ease;
}

.inicio.hero-bg-on > canvas.hero-bg {
    opacity: 1;
}

/* overlay mais leve, so para o texto continuar legivel */
.inicio.hero-bg-on::before {
    backdrop-filter: none;
    background:
        linear-gradient(90deg, rgba(4, 8, 16, .62) 0%, rgba(4, 8, 16, .28) 55%, rgba(4, 8, 16, .10) 100%);
}

body.light .inicio.hero-bg-on::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, .26) 55%, rgba(255, 255, 255, .06) 100%);
}

/* celular: texto fica por cima do meio, entao o veu cobre a tela toda */
@media screen and (max-width: 767px) {
    .inicio.hero-bg-on::before {
        background: linear-gradient(180deg, rgba(4, 8, 16, .45) 0%, rgba(4, 8, 16, .30) 60%, rgba(4, 8, 16, .45) 100%);
    }

    body.light .inicio.hero-bg-on::before {
        background: linear-gradient(180deg, rgba(255, 255, 255, .50) 0%, rgba(255, 255, 255, .28) 60%, rgba(255, 255, 255, .50) 100%);
    }
}

@media print {
    .inicio > canvas.hero-bg { display: none; }
}
