/* ----------------------------
   BASE
----------------------------- */
body {
    background-color: rgb(66, 66, 66);
    color: white;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 0;
}

html,
body {
    max-width: 100%;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: visible;
}

.navbar-iframe {
    width: 100%;
    height: 140px;
    /* mesma altura da sua navbar */
    display: block;
    border: none;
    position: relative;
    z-index: 10;
}

.menu-mobile-iframe {
    width: 100%;
    height: 0;
    display: block;
    border: none;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
}


/* REMOVE O Z-INDEX BUGADO QUE FAZIA SUMIR AS CATEGORIAS */
.navbar {
    z-index: 1050;
}

/* AQUI ESTAVA O ERRO PRINCIPAL:
   .navbar * com z-index 5 fazia os ícones desaparecerem */
.navbar * {
    z-index: inherit !important;
}

.logo {
    width: 300px;
    height: auto;
    max-width: 80%;
    margin-bottom: 15px;
}

.btn-search {
    background: #d10808;
    left: 10px;
    margin-bottom: 2px;
    border-radius: 6px;
}

.btn-topo {

    font-size: 14px;
    padding: 5px 15px;
}


h1,
h2,
h3,
p,
video {
    position: relative;
    z-index: 2;
}

/* ----------------------------
   VIDEO DE FUNDO
----------------------------- */
.video {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.title {
    color: rgb(219, 219, 219);
    font-size: 36px;
    text-align: center;
}

footer {
    color: white;
    padding: 40px 0;
    margin-top: 50px;
    border-radius: 10px;
}

/* ----------------------------
   NAV BAR & CATEGORIAS
----------------------------- */

.categorias-nav {
    background: #000;
    border-top: 1px solid #d10808;
    margin-bottom: 10px;
    z-index: 100 !important;
    width: 100%;
}

.categorias-nav ul {
    gap: 8px;
}

.nav_icon {
    width: 28px;
    height: 28px;
    margin-top: 5px;
}

/* LINKS */
.categorias-nav .nav-link {
    color: #e4e4e4;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    margin-top: 6px
}

.categorias-nav .nav-link:hover {
    opacity: 0.7;
    color: #fc1b1b;
}

/* DROPDOWN */
.categorias-nav .dropdown-menu {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    display: block;
    z-index: 9999 !important;
}

.categorias-nav .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.categorias-nav .dropdown-item {
    color: #333;
    padding: 8px 15px;
    transition: 0.3s;
}

.categorias-nav .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #d10808;
}

/* ----------------------------
   FLOATING WHATSAPP
----------------------------- */
.whatsapp-flutuante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 9999;
}

.whatsapp-flutuante:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.25);
    color: white;
}

.whatsapp-flutuante img {
    width: 22px;
}

/* ----------------------------
   SERVIÇOS
----------------------------- */
.card-servico {
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    text-align: center;
}

.servicos {
    width: 270px;
    height: auto;
    border-radius: 9px;
    max-width: 100%;
}

.servicos:hover {
    transition: 0.2s;
    transform: scale(1.05);
}

.swiper {
    width: 90%;
    padding: 30px 0;
}

/* ----------------------------
   SOBRE
----------------------------- */
.info-linha {
    display: flex;
    align-items: right;
    gap: 8px;
    margin-bottom: 8px;
    flex-direction: row-reverse;
    color: #d10808;
}

.info-linha img {
    width: 18px;
    height: 18px;
}

.info-conteudo {
    margin-left: 26px;
    font-size: 16px;
    color: #fff;
}

.link-mapa {
    display: inline-block;
    margin-left: 26px;
    margin-bottom: 4px;
    color: #d10808;
    text-decoration: none;
    font-size: 16px;
    margin-top: 5px;
}

.sobre-text {
    font-size: 16px;
    font-weight: 500;
}

.sobre-col-esq {
    padding-left: 80px;
}

.sobre-col-dir {
    padding-right: 80px;
    text-align: right;
}

.redes {
    transition: transform 0.4s ease;
}

.redes:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* ----------------------------
   PRODUTOS
----------------------------- */
.produto-card {
    background: none;
    height: 280px;
    width: 100%;
    max-width: 280px;
    margin: auto;
    border-radius: 10px;
    transition: 0.3s;
}

.produto-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
}

.produto-img {
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    width: 100%;
}

.produto-titulo {
    font-size: 17px;
    font-weight: 600;
}

.produto-preco {
    font-size: 20px;
    font-weight: 700;
}

.btn-consulte {
    background: #d10808;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border-radius: 6px;
    width: 100%;
}

.btn-consulte:hover {
    background: #ff2a2a;
    font-size: 13px;
}

/* ------------------------------
   MENU HAMBÚRGUER MOBILE
------------------------------ */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background: none;
    font-size: 24px;
    color: white;
    border: none;
    z-index: 10000;
}

/* MENU LATERAL */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #111;
    padding: 20px;
    transition: 0.35s ease;
    z-index: 20000;
    overflow-y: auto;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.4);
}

/* ITEM PADRÃO */
.mobile-menu-list li {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    margin-bottom: 10px;
    background: #1d1d1d;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s;
}

.mobile-menu-list li img {
    width: 28px;
    margin-right: 12px;
}

.mobile-menu-list li span {
    font-size: 18px;
    font-weight: 600;
}

/* ACORDEÃO */
.accordion-item {
    flex-direction: column;
    align-items: stretch;
}

.accordion-item:hover {

    transition: 0.3s;
    color: #d10808;
}

.accordion-content a:hover {

    transition: 0.2s;
    color: #d10808;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 12px 14px;
}

.accordion-header .arrow {
    margin-left: auto;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;

    border-radius: 6px;
    transition: max-height 0.35s ease;
    margin-top: 10px;
}

.accordion-content li {
    display: block;
    padding: 10px 15px;
    background: transparent;
    margin: 0;
}

.accordion-content li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.accordion-item.open .accordion-content {
    max-height: 500px;
    /* suficiente pro conteúdo */
}

.accordion-item.open .arrow {
    transform: rotate(180deg);
}

.mobile-menu.show {
    left: 0;
}

.close-btn {
    position: absolute;
    top: 0px;
    right: 6px;

    font-size: 26px;
    line-height: 1;
    background: transparent;
    border: none;
    color: #bbb;

    cursor: pointer;
    padding: 4px;
    z-index: 21000;

    transition: color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}


.mobile-menu-list {
    list-style: none;
    padding: 0;
}

.mobile-menu-list li {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    margin-bottom: 10px;
    background: #1d1d1d;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s;
}

.mobile-menu-list li img {
    width: 28px;
    margin-right: 12px;
}

.mobile-menu-list li span {
    font-size: 18px;
    font-weight: 600;
}

/* Esconde a NAVBAR 2 no mobile */
@media (max-width: 1200px) {
    .categorias-nav {
        display: none !important;
    }

    .hamburger-btn {
        display: block;
    }
}


/* ----------------------------
   RESPONSIVIDADE UNIVERSAL
----------------------------- */

@media(max-width: 1600px) {

    .nav_icon {
        width: 18px;
        height: 18px;
        margin-top: 5px;
    }

    /* LINKS */
    .categorias-nav .nav-link {
        color: #e4e4e4;
        font-weight: 700;
        font-size: 14px;
        white-space: nowrap;
    }
}

@media (max-width: 1400px) {
    .categorias-nav .nav-link {
        font-size: 14px;
        padding: 0 8px;
    }

    .nav_icon {
        width: 22px;
        height: 22px;
    }
}

/* 📱 MOBILE - Navbar vira MENU HORIZONTAL rolável */
@media (max-width: 992px) {

    .categorias-nav ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 12px;
    }

    .categorias-nav ul::-webkit-scrollbar {
        height: 6px;
    }

    .categorias-nav ul::-webkit-scrollbar-thumb {
        background: #d10808;
        border-radius: 10px;
    }

    .nav_icon {
        width: 18px;
        height: 18px;
    }

    .categorias-nav .nav-link {
        font-size: 16px;
    }
}

/* CELULARES */
@media (max-width: 768px) {

    .title {
        font-size: 32px;
        padding: 0 10px;
    }

    .logo {
        max-width: 70%;
    }

    .sobre-col-esq,
    .sobre-col-dir {
        padding: 20px;
        text-align: center;
    }

    .produto-card {
        max-width: 90%;
    }

    .whatsapp-flutuante {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }

    footer h3,
    footer h5 {
        text-align: center !important;
        margin-right: 0 !important;
    }

    .accordion-header {
        padding: 14px 16px;
        gap: 10px;
    }

    .accordion-header span {
        font-size: 16px;
    }

    .accordion-header .nav_icon {
        width: 22px;
        height: 22px;
    }

    .sobre-col-dir,
    .sobre-col-esq {
        text-align: center !important;
        padding: 20px !important;
    }

    .info-linha {
        flex-direction: row !important;
        justify-content: center;
    }

    .info-conteudo,
    .link-mapa {
        margin-left: 0 !important;
        text-align: center;
    }

    .whatsapp-flutuante {
        padding: 12px;
        border-radius: 50%;
    }

    .whatsapp-flutuante span,
    .whatsapp-flutuante::after {
        display: none;
    }

    .whatsapp-flutuante img {
        width: 26px;
        margin: 0;
    }

}


/* CELULARES MUITO PEQUENOS */
@media (max-width: 480px) {
    .title {
        font-size: 27px;
    }

    .servicos {
        width: 100%;
    }

    .produto-img {
        height: 130px;
    }
}

/* TABLETS */
@media (min-width: 768px) and (max-width: 1024px) {

    .sobre-col-esq,
    .sobre-col-dir {
        padding: 40px;
    }
}

.video-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 30px;
    aspect-ratio: 16 / 5;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* preenche sem distorcer */
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .video-wrapper {
        width: 100%;
        height: 220px;
        /* FORÇA altura visível */
        aspect-ratio: auto;
        border-radius: 0;
    }

    .video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}