html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .1rem #fff,0 0 0 .25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* ===================== HERO ===================== */
.hero-banner {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: center;
    background: #eee center right / cover no-repeat;
}

.hero-overlay {
    max-width: 900px;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: clamp(1.8rem,3vw,3rem);
    font-weight: 600;
}

.hero-subtitle {
    margin-top: .5rem;
    font-size: clamp(1rem,1.3vw,1.25rem);
    opacity: .9;
}

.hero-cta {
    margin-top: 1rem;
}

/* HERO carrossel */
.hero-carousel .carousel-item {
    min-height: clamp(360px,55vh,560px);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero-carousel .backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.25);
}

.hero-carousel .caption {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
}

    .hero-carousel .caption .box {
        max-width: 900px;
        padding: 2rem 1rem;
    }

.hero-carousel .title {
    font-size: clamp(1.8rem,3vw,3rem);
    font-weight: 600;
}

.hero-carousel .subtitle {
    font-size: clamp(1rem,1.3vw,1.25rem);
    opacity: .9;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
/* ===================== NAVBAR ===================== */
.site-navbar {
    overflow: visible;
}

    /* permite o logo “sair” da barra */
    .site-navbar.fixed-top, .fixed-top.site-navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
    }

@media (min-width: 992px) {
    body {
        padding-top: 60px; /* compensa a altura */
    }
}

/* ===================== ESTILO PRINCIPAL DO MENU ===================== */
.glass-nav {
    /* --- Posicionamento e Forma --- */
    width: 100% !important; /* Tela inteira */
    margin: 0 !important; /* Sem margens */
    border-radius: 0 !important; /* Removemos arredondamento padrão */
    /* --- O SEGREDO ESTÁ AQUI: Arredondamos apenas os cantos de baixo --- */
    border-bottom-left-radius: 5px !important; /* Canto inferior esquerdo suave */
    border-bottom-right-radius: 5px !important; /* Canto inferior direito suave */
    /* --- Cor (O exato degradê vibrante) --- */
    background: linear-gradient(180deg, #0055A4 0%, #000000e6 100%) !important;
    /* --- Estética Premium --- */
    /* Removemos a linha dura inferior para o arredondamento aparecer */
    border-bottom: 0 !important;
    /* Sombra um pouco mais forte para destacar o arredondamento flutuante */
    box-shadow: 0 10px 20px rgba(0,0,0,.20) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

    /* 1. Cor dos links no Desktop */
    .glass-nav .nav-link,
    .glass-nav .navbar-brand {
        color: #ffffff !important; /* Texto branco puro */
        font-weight: 500;
        transition: all 0.2s ease;
    }

        /* 2. Cor do link quando passa o mouse (Hover) */
        .glass-nav .nav-link:hover,
        .glass-nav .nav-link:focus {
            color: var(--cinap-vermelho) !important;
            text-decoration: underline;
            text-decoration-color: var(--cinap-vermelho);
            text-underline-offset: 3px;
        }

/* ===================== LOGO QUE INVADE A FAIXA ===================== */
.brand-overlap {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
}

    .brand-overlap .brand-logo {
        position: absolute;
        left: -70px;
        bottom: -20px;
        height: 72px;
        width: auto;
        z-index: 1050;
        object-fit: contain;
        display: block;
    }

/* tamanhos do logo */
:root {
    --brand-h-sm: 32px;
    --brand-h-lg: 50px;
}

.brand-logo {
    height: clamp(var(--brand-h-sm),4vw,var(--brand-h-lg));
    width: auto;
    display: block;
    object-fit: contain;
}

/* ===================== AJUSTES PARA O CELULAR (MOBILE) ===================== */
@media (max-width: 991.98px) {
    .brand-overlap {
        height: auto;
    }

        .brand-overlap .brand-logo {
            position: static;
            height: var(--brand-h-sm);
        }

    #mainNavbar {
        /* Degradê vibrante também no celular */
        background: linear-gradient(180deg, #0055A4 0%, #000000e6 100%) !important;
        padding: .75rem 1rem;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        /* Arredondamento inferior também no mobile, um pouco menor */
        border-bottom-left-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
        border-bottom: 0 !important;
        box-shadow: 0 8px 16px rgba(0,0,0,.15);
    }

        #mainNavbar .nav-link,
        #mainNavbar .navbar-brand {
            color: #ffffff !important;
        }

            #mainNavbar .nav-link:hover,
            #mainNavbar .nav-link:focus {
                color: var(--cinap-vermelho) !important;
                text-decoration: underline;
                text-decoration-color: var(--cinap-vermelho);
                text-underline-offset: 3px;
            }

    /* Deixa o ícone do menu "hamburguer" branco */
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }

    .navbar-toggler-icon {
        filter: invert(1) brightness(2);
    }

    .navbar .dropdown-menu {
        position: static;
        float: none;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
}

/* ===================== AJUSTES DE NAVEGAÇÃO ===================== */
.navbar-brand {
    padding-top: .25rem;
    padding-bottom: .25rem;
    line-height: 1;
}

.navbar-toggler {
    padding: .25rem .5rem;
    margin-right: 0;
}

.navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-size: 1.25rem 1.25rem;
}

/* garante que o hero/carrossel não sobreponha o menu */
.hero-carousel, .hero-banner, .hero-carousel .backdrop, .hero-carousel .caption {
    position: relative;
    z-index: 0;
}

/* ===================== FOOTER ===================== */
:root {
    /* Fundo do rodapé: Degradê elegante com tons escuros do Azul Cinap */
    --footer-bg1: #002b54;
    --footer-bg2: #00152b;
    --footer-text: #cbd5e1;
    --footer-muted: #9ca3af;
    --accent: #D90429; /* Vermelho da Cinap para os destaques */
}

.footer-dark {
    background: linear-gradient(180deg, var(--footer-bg1) 0%, var(--footer-bg2) 100%);
    color: var(--footer-text);
    border-top: 4px solid #0055A4; /* Uma linha Azul Cinap separando o corpo do rodapé */
}

.footer-section-title {
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: .75rem;
    color: #ffffff; /* Títulos em branco bem vivo */
}

.footer-sep {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);
    margin: 1.25rem 0 1.5rem;
}

.footer-social {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #cfd8e3 !important;
    text-decoration: none;
    transition: transform .15s ease,background .15s ease,border-color .15s ease;
    font-size: 20px;
    line-height: 1;
}

    .footer-social .bi-youtube {
        font-size: 22px;
    }

    .footer-social:visited {
        color: #cfd8e3 !important;
    }

    .footer-social:hover {
        background: var(--accent);
        border-color: rgba(255,255,255,.22);
        transform: translateY(-3px) rotate(360deg);
    }

.footer-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    color: var(--footer-text);
    margin-right: 1.25rem;
    margin-bottom: .25rem;
    white-space: normal;
}

.footer-link {
    color: var(--footer-text) !important;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: #ffffff !important;
        text-decoration: underline;
        text-decoration-color: var(--accent); /* Sublinhado vermelho super moderno */
        text-underline-offset: 3px;
    }

/* WhatsApp flutuante */
.whats-float {
    position: fixed;
    right: 16px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37,211,102,.35);
    z-index: 1060;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

    .whats-float:hover {
        transform: rotate(3deg);
        filter: brightness(1.05);
        box-shadow: 0 12px 28px rgba(37,211,102,.45);
    }

.whats-icon {
    font-size: 28px;
    line-height: 1;
}

@media (max-width:575.98px) {
    .whats-float {
        right: 12px;
        bottom: 12px;
        width: 56px;
        height: 56px;
    }
}

.whats-float, .whats-float:link, .whats-float:visited, .whats-float:hover, .whats-float:active {
    color: #fff !important;
}

/* Ícones inline (ex.: nos contatos) */
.fi {
    color: var(--accent);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
}

/* ===================== NOSSOS PRODUTOS ===================== */
.products-band {
    background: #fff;
    color: rgba(0,0,0,.60);
    --np-gap: 1.25rem;
    --np-img-h: 200px; /* desktop */
    --np-arrow-color: rgba(0,0,0,.80);
}

@media (max-width:575.98px) {
    .products-band {
        --np-img-h: 150px;
    }
}

/* título */
.np-title {
    margin: 0 0 .25rem;
    font-weight: 700;
}

.np-underline {
    width: 56px;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* trilho */
.np-track {
    position: relative;
    display: flex;
    gap: var(--np-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .np-track::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

/* cards (4/3/2/1) */
/* ===================== CARDS DO CARROSSEL (4 POR LINHA) ===================== */
.np-card {
    position: relative;
    overflow: hidden;
   
    flex: 0 0 calc((100% - (3 * var(--np-gap, 1.25rem))) / 4) !important;
    scroll-snap-align: start;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,.15);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center;
    z-index: 1;
}

/* Efeito Hover: O card salta da tela */
.np-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25) !important;
    z-index: 10;
}

/* --- Ajustes Responsivos Blindados --- */

/* Em Tablets grandes e Notebooks menores, mostra 3 cards */
@media (max-width: 1199.98px) {
    .np-card {
        flex: 0 0 calc((100% - (2 * var(--np-gap, 1.25rem))) / 3) !important;
    }
}

/* Em Tablets em pé, mostra 2 cards */
@media (max-width: 991.98px) {
    .np-card {
        flex: 0 0 calc((100% - (1 * var(--np-gap, 1.25rem))) / 2) !important;
    }
}

/* Em TODOS os celulares (até 768px), mostra EXATAMENTE 1 card */
@media (max-width: 767.98px) {
    .np-card {
        /* Ocupa 100% do espaço, garantindo apenas 1 card na tela */
        flex: 0 0 100% !important;
    }

    /* seta um pouco mais próxima da foto no celular */
    .np-wrap {
        padding: 0 25px !important;
    }
}
/* 1 por tela */

/* imagem do card + efeito hover */
. /*np-img {
    display: block;
    width: 100%;
    height: var(--np-img-h);
    object-fit: cover;
    background: #e5e7eb;
    transition: transform .25s ease, filter .25s ease;
    will-change: transform, filter;
}*/
.np-card .np-img {
    display: block;
    width: 100%;
    height: 220px; /* ajuste a gosto */
    object-fit: cover; /* preenche sem distorcer */
}

/* Legenda em cima da imagem, no rodapé */
.np-card .np-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    /* faixa/gradiente para dar contraste */
    background: linear-gradient( to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,0) 100% );
}


/* ===================== EFEITO HOVER NO CARD INTEIRO (POP-OUT) ===================== */
.np-card:hover {
    /* Aumenta o card inteiro (foto e faixa) e levanta ele 5px */
    transform: scale(1.05) translateY(-5px);
    /* Cria uma sombra mais forte embaixo para dar o efeito 3D de flutuação */
    box-shadow: 0 15px 30px rgba(0,0,0,0.25) !important;
    /* Garante que o card que cresceu passe por cima dos outros */
    z-index: 10;
}

/* Setas por cima do conteúdo */
.np-arrow {
    z-index: 5;
}

/* Responsivo opcional */
@media (min-width: 992px) {
    .np-card .np-img {
        height: 260px;
    }
}

/* ===== SETAS DO CARROSSEL (LIMPAS E AZUIS) ===== */
.np-wrap {
    position: relative;
    /* Criamos um espaço lateral (padding) de 40px para as setas caberem fora das imagens */
    padding: 0 40px;
}

.np-arrow {
    width: 40px;
    height: 40px !important;
    z-index: 5;
    cursor: pointer;
    background: transparent !important; /* Removemos o fundo */
    color: #0055A4 !important; /* Azul Cinap Sólido na seta */
    transition: all 0.2s ease;
}

    /* Deixamos o ícone da seta bem grande e visível */
    .np-arrow i {
        font-size: 2.5rem;
        line-height: 1;
    }

    /* Efeito Hover: Como não tem mais fundo, a seta fica VERMELHA e dá um leve zoom! */
    .np-arrow:hover, .np-arrow:focus-visible {
        background-color: transparent !important;
        color: var(--cinap-vermelho) !important;
        transform: scale(1.2); /* Seta cresce um pouquinho */
    }

    .np-arrow:focus {
        box-shadow: none !important;
    }

    /* Joga a seta esquerda para fora do trilho de imagens */
    .np-arrow.arrow-left {
        left: -10px;
    }

    /* Joga a seta direita para fora do trilho de imagens */
    .np-arrow.arrow-right {
        right: -10px;
    }

/* Ajustes para o celular não espremer a tela */
@media (max-width: 575.98px) {
    .np-wrap {
        padding: 0 25px; /* Menos espaço no celular */
    }

    .np-arrow.arrow-left {
        left: -5px;
    }

    .np-arrow.arrow-right {
        right: -5px;
    }

    .np-arrow i {
        font-size: 2rem;
    }
}

/* ================================================================ */
/* DAQUI PARA BAIXO É A IDENTIDADE VISUAL DO SITE - NÃO EXCLUIR !!! */
/* ================================================================ */

.foto-quadrada {
    width: 100%;
    max-width: 320px; /* ajuste se quiser maior/menor */
    aspect-ratio: 1/1; /* quadrado */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* sem fundo branco */
    padding: 0;
    border: 0;
    box-shadow: none;
}

    .foto-quadrada img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* use 'cover' se quiser preencher cortando */
        border: 0;
        outline: 0;
        box-shadow: none;
    }

/* ================== Identidade Visual Refinada ================== */

:root {
    /* O novo Azul Vibrante extraído da sua imagem */
    --cinap-azul: #0061A8; 
    --cinap-vermelho: #D90429; 
}

/* Cabeçalho dos cards (menu lateral) */
.card-header.small-header {
    background-color: #e9ecef;
    color: var(--cinap-azul);
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #dcdcdc;
    font-weight: 600;
}

/* Corpo dos cards */
.card.small-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
}

/* Botões principais */
.btn-primary {
    background: linear-gradient(180deg, #0055A4 0%, #000000e6 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,.15); 
    transition: all 0.3s ease;
}

    .btn-primary:hover,
    .btn-primary:focus {
        /* Aqui você pode colocar um degradê do seu Vermelho Cinap (#D90429 para um vermelho mais escuro) */
        background: linear-gradient(180deg, #D90429 0%, #90021A 100%) !important;
        border: none !important;
        color: #fff !important;
        /* Efeito de "levantar" o botão ao passar o mouse */
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,.25);
    }

/* Selects e inputs */
.form-select:focus,
.form-control:focus {
    border-color: var(--cinap-azul);
    /* Sombreamento usando o RGB do novo azul (0, 97, 168) */
    box-shadow: 0 0 0 0.2rem rgba(0, 97, 168, 0.2); 
}

/* Paginação */
.pagination .page-link {
    color: var(--cinap-azul);
    font-size: 0.85rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--cinap-azul);
    border-color: var(--cinap-azul);
    color: #fff;
}

.pagination .page-link:hover {
    background-color: var(--cinap-vermelho);
    border-color: var(--cinap-vermelho);
    color: #fff;
}

/* Labels dos selects */
.small-label {
    font-size: 0.8rem;
    color: var(--cinap-azul);
    font-weight: 500;
}

/* Fundo geral */
body {
    background-color: #f8f9fa;
}

/* Ajuste opcional para hover do card */
.card.small-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}

/* ===================== AJUSTE DE COR DO SUBMENU NO MOBILE ===================== */
@media (max-width: 991.98px) {
    /* Pinta de branco os links que estão dentro do menu que se expande ("Catálogo", "Lançamentos", etc) */
    .navbar-nav .dropdown-menu .dropdown-item {
        color: #ffffff !important;
        opacity: 0.85; /* Deixa um branco levemente suave para diferenciar dos menus principais */
    }

        /* Ajuste para quando o cliente encostar o dedo (Hover/Focus) no celular */
        .navbar-nav .dropdown-menu .dropdown-item:hover,
        .navbar-nav .dropdown-menu .dropdown-item:focus {
            background-color: rgba(255, 255, 255, 0.1) !important; /* Fundo levemente claro ao tocar */
            color: #ffffff !important;
            opacity: 1; /* Branco total ao tocar */
        }

    /* Tira a borda padrão do submenu do Bootstrap no celular para ficar mais limpo */
    .navbar-nav .dropdown-menu {
        border: none !important;
        background-color: transparent !important;
    }
}

