/* ============================================================
   NAPRO - Customizações visuais
   ============================================================ */

/* --- Previne overflow horizontal que quebra o menu mobile --- */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* --- Banner de consentimento de cookies (menu.html) --- */

#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    display: none;
    z-index: 9999;
}

#acceptCookies {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-left: 10px;
}

/* --- Quem Somos: espaçamento entre seções --- */

.tabs-content .tab .text h3.skew-lines {
    margin-top: 28px;
    margin-bottom: 10px;
}

.tabs-content .tab .text p {
    margin-bottom: 6px;
}

/* --- Páginas de produto: hierarquia de títulos correta --- */

.sidebar-page .post .post-title {
    font-size: 26px;
}

.sidebar-page .post .content-box h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0074B0;
    margin-top: 28px;
    padding-bottom: 6px;
    border-bottom: 2px solid #0074B0;
}

/* --- Sidebar: oculta no mobile --- */

@media (max-width: 767px) {
    .side-bar {
        display: none !important;
    }
}

/* --- Botão de toggle de submenu no mobile (adicionado pelo menu-loader.js) --- */

.nr-mob-toggle {
    display: none; /* oculto em desktop */
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #ffffff;
    font-size: 11px;
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 767px) {
    .nr-mob-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* Garante que o li tenha position relative para o botão se posicionar corretamente */
    .main-menu .navigation li.dropdown {
        position: relative;
    }
}

/* --- Corrige overflow: hidden do responsive.css que cortava o menu mobile --- */

@media (max-width: 767px) {
    .main-header,
    .main-header .header-lower,
    .main-header .auto-container {
        overflow: visible !important;
    }
}

/* --- Cabeçalho: 3 itens de contato alinhados à direita --- */

.header-top-infos > ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
}

.header-top-infos > ul > li {
    width: auto;
    min-width: 160px;
    float: none;
}

/* --- Mega Menu: Produtos em 2 colunas --- */

.main-menu .navbar-collapse > ul > li.mega-dropdown > ul {
    padding: 5px 0 !important;
}

/* Mega menu 2 colunas apenas no desktop */
@media (min-width: 768px) {
    .main-menu .navbar-collapse > ul > li.mega-dropdown {
        position: static;
    }
    .main-menu .navbar-collapse > ul > li.mega-dropdown > ul {
        width: 540px !important;
        display: block !important;
        left: auto;
        -webkit-column-count: 2;
           -moz-column-count: 2;
                column-count: 2;
        -webkit-column-gap: 0;
           -moz-column-gap: 0;
                column-gap: 0;
        -webkit-column-rule: 1px solid rgba(255,255,255,0.50);
           -moz-column-rule: 1px solid rgba(255,255,255,0.50);
                column-rule: 1px solid rgba(255,255,255,0.50);
    }
}

/* Mobile: submenu normal, coluna única */
@media (max-width: 767px) {
    .main-menu .navbar-collapse > ul > li.mega-dropdown {
        position: relative;
    }
    .main-menu .navbar-collapse > ul > li.mega-dropdown > ul {
        width: 100% !important;
        -webkit-column-count: 1 !important;
           -moz-column-count: 1 !important;
                column-count: 1 !important;
        -webkit-column-rule: none !important;
           -moz-column-rule: none !important;
                column-rule: none !important;
    }
}

.main-menu .navbar-collapse > ul > li.mega-dropdown > ul > li {
    -webkit-column-break-inside: avoid;
              page-break-inside: avoid;
                   break-inside: avoid;
    display: block;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}

.main-menu .navbar-collapse > ul > li.mega-dropdown > ul > li:last-child {
    border-bottom: none !important;
}

/* Item do mega menu — texto em linha única, altura fixa para alinhar colunas */
.main-menu .navbar-collapse > ul > li.mega-dropdown > ul > li {
    height: 38px;
}

.main-menu .navbar-collapse > ul > li.mega-dropdown > ul > li > a {
    white-space: nowrap;
    font-size: 13px !important;
    padding: 0 15px !important;
    height: 38px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

/* --- Tabela de especificações técnicas --- */

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.spec-table th {
    background-color: #0074B0;
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}
.spec-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e0e0e0;
}
.spec-table tr:nth-child(even) td {
    background-color: #f5f9fd;
}
.spec-table tr:last-child td {
    border-bottom: none;
}
.spec-table td:first-child {
    font-weight: 600;
    color: #36404b;
    width: 45%;
}

/* --- Abas de variações de produto --- */

.product-tabs {
    margin-top: 24px;
}
.product-tabs .nav-tabs {
    border-bottom: 2px solid #0074B0;
}
.product-tabs .nav-tabs > li > a {
    color: #555;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px 3px 0 0;
    border: 1px solid transparent;
    padding: 9px 20px;
}
.product-tabs .nav-tabs > li > a:hover {
    background-color: #e8f3fa;
    border-color: #cce0ef #cce0ef transparent;
    color: #0074B0;
}
.product-tabs .nav-tabs > li.active > a,
.product-tabs .nav-tabs > li.active > a:hover,
.product-tabs .nav-tabs > li.active > a:focus {
    background-color: #0074B0;
    color: #ffffff;
    border-color: #0074B0;
}
.product-tabs .tab-content {
    padding: 24px 0 0;
}

/* --- Carrossel de produtos (index) --- */

.team-section.column-view .column-carousel .image {
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
}

.team-section.column-view .column-carousel .image img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    padding: 10px;
}

.team-section.column-view .column-carousel .post-content {
    min-height: 72px;
}

/* --- Faixa de contato rápido (substitui contact-options) --- */

.contact-strip {
    background-color: #2c3e50 !important;
    padding: 24px 0 !important;
    width: 100%;
}

.contact-strip .auto-container {
    text-align: center;
}

.contact-strip-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 12px 52px;
}

.contact-strip-list li {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: none !important;
}

.contact-strip-list li a {
    color: #bdc3c7 !important;
    font-size: 15px;
    text-decoration: none !important;
    -webkit-transition: color 0.2s;
            transition: color 0.2s;
    white-space: nowrap;
}

.contact-strip-list li a:hover {
    color: #ffffff !important;
}

.contact-strip-list li a .fa {
    color: #4a9fd4;
    margin-right: 5px;
}

/* --- Botão de download de catálogo --- */

.btn-catalogo {
    display: inline-block;
    margin: 20px 0 10px;
    padding: 11px 24px;
    background-color: #0074B0;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background-color 200ms ease;
}

.btn-catalogo:hover {
    background-color: #005a8a;
    color: #ffffff !important;
}

.btn-catalogo .fa {
    margin-right: 8px;
    font-size: 16px;
}

/* --- Cards de equipamentos (Linha de Inspeção Veicular) --- */

.insp-grid {
    margin-top: 28px;
}

.insp-card {
    background: #fff;
    border: 1px solid #e0e8f0;
    border-top: 3px solid #0074B0;
    border-radius: 3px;
    padding: 22px 18px 18px;
    margin-bottom: 24px;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 210px;
    -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    -webkit-transition: box-shadow 0.2s;
            transition: box-shadow 0.2s;
}

.insp-card:hover {
    -webkit-box-shadow: 0 3px 10px rgba(0,116,176,0.15);
            box-shadow: 0 3px 10px rgba(0,116,176,0.15);
}

.insp-card .insp-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #e8f3fa;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-bottom: 14px;
    font-size: 22px;
    color: #0074B0;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.insp-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
    line-height: 1.3;
}

.insp-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    margin: 0 0 14px;
}

.insp-card a.insp-link {
    font-size: 13px;
    color: #0074B0;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #cce0ef;
    padding-bottom: 2px;
    -webkit-transition: color 0.2s, border-color 0.2s;
            transition: color 0.2s, border-color 0.2s;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.insp-card a.insp-link:hover {
    color: #005a8a;
    border-color: #005a8a;
    text-decoration: none;
}

