        /* =========================================
           VARIÁVEIS GLOBAIS E RESET
           ========================================= */
        :root { 
            --primary-blue: #003366; 
            --accent-gold: #D4AF37; 
            --dark-black: #1A1A1A; 
            --light-gray: #F8F9FA; 
            --text-gray: #4A4A4A; 
            --white: #FFFFFF;
            --btn-blue: #0056b3;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Inter', sans-serif; color: var(--text-gray); background: var(--white); line-height: 1.6; overflow-x: hidden; }
        a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
        img { max-width: 100%; height: auto; display: block; }
        ul { list-style: none; }
        .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

        /* =========================================
           HEADER E NAVEGAÇÃO DESKTOP
           ========================================= */
        .header { position: fixed; top: 0; width: 100%; background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.08); z-index: 1000; padding: 1rem 0; transition: 0.3s; }
        .nav-wrapper { display: flex; justify-content: space-between; align-items: center; position: relative; }
        .logo-container { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1006; }
        .logo-img { height: 40px; width: auto; }
        .nav-menu { display: flex; gap: 2rem; align-items: center; }
        .nav-item, .nav-item-link { position: relative; font-weight: 600; color: var(--dark-black); cursor: pointer; padding: 0.5rem 0; font-size: 0.95rem; }
        .nav-item::after, .nav-item-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent-gold); transition: 0.3s; }
        .nav-item:hover::after, .nav-item-link:hover::after { width: 100%; }
        .nav-item:hover, .nav-item-link:hover { color: var(--primary-blue); }

        .dropdown { opacity: 0; visibility: hidden; position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-top: 3px solid var(--accent-gold); border-radius: 0 0 8px 8px; padding: 1rem 0; min-width: 260px; display: flex; flex-direction: column; transform: translateY(10px); transition: 0.3s; }
        .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
        .dropdown a { padding: 0.7rem 1.5rem; font-weight: 500; font-size: 0.9rem; display: block; border-left: 2px solid transparent; }
        .dropdown a:hover { color: var(--primary-blue); background: var(--light-gray); border-left-color: var(--accent-gold); padding-left: 1.8rem; }

        .header-actions { display: flex; align-items: center; gap: 1.5rem; border-left: 1px solid #eee; padding-left: 1.5rem; }
        .search-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; transition: 0.3s; }
        .search-btn svg { width: 20px; height: 20px; fill: var(--dark-black); transition: 0.3s; }
        .search-btn:hover svg { fill: var(--primary-blue); }
        .social-links-header { display: flex; gap: 0.8rem; }
        .social-links-header svg { width: 18px; height: 18px; fill: var(--dark-black); transition: 0.3s; }
        .social-links-header a:hover svg { fill: var(--accent-gold); transform: translateY(-2px); }
        .menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1005; }
        .menu-toggle span { width: 30px; height: 3px; background: var(--primary-blue); transition: 0.3s; border-radius: 2px; }

        .search-overlay { position: absolute; top: 70px; right: 0; background: var(--white); padding: 1.5rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: none; z-index: 1001; border: 1px solid #eaeaea; animation: fadeIn 0.2s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        .search-overlay.active { display: block; }
        .search-container { display: flex; gap: 10px; align-items: center; }
        .search-input { padding: 0.8rem 1.2rem; border: 1px solid var(--primary-blue); border-radius: 6px; width: 300px; font-family: 'Inter', sans-serif; font-size: 0.95rem; outline: none; color: var(--dark-black); }
        .search-input::placeholder { color: #888; }
        .search-submit { background: var(--primary-blue); color: var(--white); border: none; padding: 0.8rem 1.5rem; border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s; font-family: 'Inter', sans-serif; }
        .search-submit:hover { background: var(--accent-gold); color: var(--dark-black); }

        /* =========================================
           SEÇÕES DO SITE
           ========================================= */
        .hero { padding: 180px 0 120px; background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(0,51,102,0.85) 100%), url('/assets/img/foto_home.webp') center/cover no-repeat; color: var(--white); text-align: center; position: relative; }
        .hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; margin-bottom: 1.5rem; line-height: 1.1; }
        .hero h1 span { color: var(--accent-gold); }
        .hero p { font-size: 1.2rem; color: #e0e0e0; max-width: 750px; margin: 0 auto 2.5rem; font-weight: 300; }
        .btn-primary { display: inline-block; background: var(--accent-gold); color: var(--dark-black); padding: 1.2rem 3rem; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }
        .btn-primary:hover { background: #fff; color: var(--primary-blue); transform: translateY(-3px); }

        .why-section { padding: 5rem 0; background: var(--light-gray); text-align: center; }
        .why-section h2 { font-size: 2.2rem; color: var(--dark-black); margin-bottom: 3rem; font-weight: 700; }
        .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
        .why-card { background: var(--white); padding: 2.5rem 1.5rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; }
        .why-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
        .why-card h3 { color: var(--primary-blue); font-size: 1.8rem; margin-bottom: 0.5rem; font-weight: 700; }
        .why-card p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.5; }

        .section-padding { padding: 6rem 0; background: var(--light-gray); }
        .section-title { text-align: center; font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 1rem; font-weight: 700; }
        .section-subtitle { text-align: center; color: var(--text-gray); margin-bottom: 4rem; font-size: 1.1rem; max-width: 600px; margin: auto; }
        .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
        .service-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.4s; border-bottom: 4px solid transparent; }
        .service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-bottom-color: var(--accent-gold); }
        .service-img { width: 100%; height: 240px; object-fit: cover; }
        .service-content { padding: 2.5rem 2rem; }
        .service-content h3 { font-size: 1.4rem; color: var(--dark-black); margin-bottom: 1rem; font-weight: 700; }
        .service-content p { margin-bottom: 1.5rem; font-size: 1rem; }
        .link-arrow { color: var(--primary-blue); font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; text-transform: uppercase; font-size: 0.85rem; }
        .link-arrow:hover { color: var(--accent-gold); gap: 0.8rem; }

        .cisp-section { background: var(--primary-blue); color: var(--white); padding: 6rem 0; }
        .cisp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
        .cisp-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--accent-gold); }
        .cisp-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.8; }
        .btn-outline { display: inline-block; border: 2px solid var(--accent-gold); color: var(--accent-gold); padding: 1rem 2.5rem; border-radius: 4px; font-weight: 700; text-transform: uppercase; transition: 0.3s; }
        .btn-outline:hover { background: var(--accent-gold); color: var(--primary-blue); }
        .cisp-image img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }

        .testimonial-card { transition: all 0.3s ease; }
        .testimonial-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important; border-bottom-color: var(--accent-gold) !important; }
        .testimonial-card:hover .video-thumbnail img { opacity: 0.85; transform: scale(1.05); }
        .testimonial-card:hover .play-icon { transform: translate(-50%, -50%) scale(1.15) !important; color: var(--white) !important; }

        .video-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
        .video-modal.active { display: flex; align-items: center; justify-content: center; opacity: 1; }
        .video-modal-content { position: relative; width: 90%; max-width: 900px; background: #000; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.3s ease; }
        .video-modal.active .video-modal-content { transform: scale(1); }
        .close-modal { position: absolute; top: -40px; right: 0; color: #fff; font-size: 35px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
        .close-modal:hover { color: var(--accent-gold); }
        .video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
        .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

        .blog-cta-section { padding: 5rem 0; background: var(--white); text-align: center; }
        .blog-cta-section h2 { font-size: 2.2rem; color: var(--dark-black); margin-bottom: 1rem; font-weight: 700; }
        .blog-cta-section p { color: var(--text-gray); font-size: 1.1rem; max-width: 700px; margin: 0 auto 2.5rem; line-height: 1.6; }
        .btn-blue { display: inline-block; background: var(--btn-blue); color: var(--white); padding: 1rem 2.5rem; border-radius: 6px; font-weight: 700; transition: 0.3s; font-size: 1.05rem; }
        .btn-blue:hover { background: var(--primary-blue); transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0,86,179,0.3); }

        .footer { background: var(--dark-black); color: var(--white); padding: 5rem 0 0; font-size: 0.95rem; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4rem; margin-bottom: 4rem; }
        .footer-col h4 { font-size: 1.1rem; margin-bottom: 2rem; color: #888; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 0.5rem; }
        .footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: #333; }
        .footer-col ul li { margin-bottom: 1rem; }
        .footer-col ul a { color: #b0b0b0; transition: 0.3s; display: inline-block; }
        .footer-col ul a:hover { color: var(--white); transform: translateX(5px); }
        .footer-bottom { background: #111; padding: 2rem 0; border-top: 1px solid #222; text-align: center; color: #666; font-size: 0.85rem; }

        .floating-container { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 1rem; z-index: 999; }
        .float-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 20px rgba(0,0,0,0.2); cursor: pointer; transition: 0.3s; border: none; }
        .float-btn:hover { transform: scale(1.1); }
        .btn-whatsapp { background: #25D366; }
        .btn-chat { background: var(--primary-blue); border: 2px solid var(--accent-gold); }
        .float-btn svg { width: 32px; height: 32px; fill: #fff; }
        /* =========================================
           CHAT IA WINDOW (CISP IA)
           ========================================= */
        .chat-window {
            position: fixed;
            bottom: 90px;
            right: 2rem;
            width: 360px;
            height: 550px;
            background: var(--white);
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
            display: flex;
            flex-direction: column;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(0,51,102,0.1);
            overflow: hidden;
        }

        .chat-window.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .chat-header {
            background: linear-gradient(145deg, var(--primary-blue) 0%, #001224 100%);
            color: var(--white);
            padding: 1.2rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 3px solid var(--accent-gold);
        }

        .chat-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            font-size: 1.05rem;
        }

        .close-chat {
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.8rem;
            cursor: pointer;
            transition: color 0.3s;
            line-height: 1;
        }

        .close-chat:hover { color: var(--accent-gold); }

        .chat-body {
            flex: 1;
            padding: 1.5rem;
            overflow-y: auto;
            background: #f4f7f6;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-message {
            max-width: 85%;
            padding: 0.8rem 1.2rem;
            border-radius: 12px;
            font-size: 0.95rem;
            line-height: 1.5;
            animation: fadeInChat 0.3s ease;
            word-wrap: break-word;
        }

        @keyframes fadeInChat {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .bot-message {
            background: var(--white);
            color: var(--dark-black);
            align-self: flex-start;
            border-bottom-left-radius: 2px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            border-left: 3px solid var(--accent-gold);
        }

        .user-message {
            background: var(--primary-blue);
            color: var(--white);
            align-self: flex-end;
            border-bottom-right-radius: 2px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .chat-footer {
            padding: 1rem;
            background: var(--white);
            border-top: 1px solid #eee;
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .chat-footer input {
            flex: 1;
            padding: 0.8rem 1.2rem;
            border: 1px solid #ddd;
            border-radius: 25px;
            outline: none;
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            transition: border-color 0.3s;
        }

        .chat-footer input:focus { border-color: var(--primary-blue); }

        .chat-footer button {
            background: var(--primary-blue);
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.3s, background 0.3s;
        }

        .chat-footer button:hover {
            background: var(--accent-gold);
            transform: scale(1.05);
        }

        @media (max-width: 768px) {
            .chat-window {
                width: calc(100% - 2rem);
                right: 1rem;
                bottom: 90px;
                height: 65vh;
            }
        }
        /* =========================================
           RESPONSIVIDADE E MENU MOBILE BLINDADO
           ========================================= */
        @media (max-width: 1100px) {
            .header-actions { display: none; }
            .menu-toggle { display: flex; z-index: 1005; }
            .cisp-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

            /* Fundo em Degradê Elegante */
            .nav-menu {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                background: linear-gradient(145deg, var(--primary-blue) 0%, #001224 100%);
                padding: 100px 2rem 2rem 2rem;
                z-index: 999;
                overflow-y: auto;
                transform: translateY(-100%);
                transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
                border-bottom: 8px solid var(--accent-gold);
            }

            .nav-menu.active { transform: translateY(0); }

            .nav-item, .nav-item-link {
                color: var(--white);
                font-size: 1.3rem;
                text-align: center;
                padding: 1rem 0;
                width: 100%;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                display: block;
                transition: color 0.3s ease;
            }

            /* CORREÇÃO DO BUG DE COR NO HOVER DO MOBILE */
            .nav-item:hover, .nav-item-link:hover, .nav-item.open {
                color: var(--accent-gold) !important;
            }

            .nav-item::after, .nav-item-link::after { display: none; }

            /* BLOQUEIO TOTAL DO HOVER DO DESKTOP NO MOBILE */
            .nav-item:hover .dropdown {
                opacity: 0 !important;
                visibility: hidden !important;
                display: none !important;
                transform: none !important;
            }

            /* Submenu Base (Escondido) */
            .dropdown {
                position: static !important;
                background: rgba(0, 0, 0, 0.25) !important; /* Fundo escurecido para destacar */
                border-radius: 8px;
                box-shadow: none !important;
                border: none !important;
                min-width: 100%;
                padding: 0 !important;
                margin-top: 10px;
                display: none !important;
                transform: none !important;
            }

            /* Submenu Ativado via JS */
            .nav-item.open .dropdown {
                display: flex !important;
                flex-direction: column;
                opacity: 1 !important;
                visibility: visible !important;
                animation: fadeInSub 0.3s ease forwards;
            }

            @keyframes fadeInSub {
                from { opacity: 0; transform: translateY(-10px); }
                to { opacity: 1; transform: translateY(0); }
            }

            .dropdown a { 
                color: #A0B0C0 !important; 
                font-size: 1.05rem; 
                text-align: center; 
                padding: 1rem 0 !important; 
                border: none !important; 
                border-bottom: 1px solid rgba(255,255,255,0.05) !important; 
            }
            .dropdown a:last-child { border-bottom: none !important; }
            .dropdown a:hover { background: rgba(255,255,255,0.05) !important; color: var(--accent-gold) !important; }

            .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--accent-gold); }
            .menu-toggle.active span:nth-child(2) { opacity: 0; }
            .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--accent-gold); }
        }

        @media (max-width: 768px) {
            .hero { padding: 140px 0 80px; }
            .why-grid { grid-template-columns: 1fr; }
            .search-overlay { right: 10px; left: 10px; width: auto; }
            .search-input { width: 100%; }
            .testimonials-grid { grid-template-columns: 1fr !important; }
            #depoimentos-video h2 { font-size: 2rem !important; }
        }
/* ========================================= */
/* ESTILOS EXCLUSIVOS DO BLOG E CARDS        */
/* ========================================= */

/* Layout Principal com Sidebar */
.blog-layout {
    display: grid; 
    grid-template-columns: 280px 1fr; /* 280px para a sidebar, o resto para os cards */
    gap: 3rem;
    align-items: start;
}

/* Grid de 3 colunas para os cards */
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Força exatamente 3 colunas */
    gap: 2rem; 
    align-items: stretch;
}

/* Estilos do Card */
.blog-card { 
    background: #FFFFFF; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s, box-shadow 0.3s; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    position: relative; 
    border: 1px solid #eaeaea;
    text-decoration: none;
}
.blog-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-color: #D4AF37;
}
.blog-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    display: block;
}
.blog-card-content { 
    padding: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}
.blog-card h3 { 
    font-size: 1.1rem; 
    color: #1A1A1A; 
    margin-bottom: 0.8rem; 
    font-weight: 700; 
    line-height: 1.4; 
}
.blog-card p { 
    color: #4A4A4A; 
    font-size: 0.9rem; 
    line-height: 1.5; 
    margin-bottom: 1.5rem; 
    flex-grow: 1; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.blog-card span.read-more { 
    color: #003366; 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

/* Tags de Categoria */
.category-tag { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: #003366; 
    color: #FFFFFF; 
    padding: 4px 12px; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    z-index: 2; 
}
.blog-card[data-category="tecnologia"] .category-tag { background: #D4AF37; color: #1A1A1A; }
.blog-card[data-category="limpeza"] .category-tag { background: #008080; }
.blog-card[data-category="estrategia"] .category-tag { background: #4A4A4A; }
.blog-card[data-category="controle-acesso"] .category-tag { background: #28a745; }
.blog-card[data-category="infraestrutura"] .category-tag { background: #ffc107; color: #333; }

/* Botões de Filtro da Sidebar */
.filter-btn { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    background: none; 
    border: none; 
    border-bottom: 1px solid #eee; 
    padding: 0.8rem 0; 
    color: #4A4A4A; 
    font-family: 'Inter', sans-serif; 
    font-size: 0.95rem; 
    cursor: pointer; 
    transition: 0.3s; 
    text-align: left; 
}
.filter-btn:hover, .filter-btn.active { 
    color: #003366; 
    font-weight: 700; 
    border-bottom-color: #D4AF37; 
}

/* RESPONSIVIDADE DO BLOG */
@media (max-width: 1100px) {
    .blog-layout { grid-template-columns: 1fr !important; }
    .sidebar-sticky { position: relative !important; top: 0 !important; margin-bottom: 3rem; }
}
@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); } /* 2 colunas no tablet */
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; } /* 1 coluna no mobile */
}
/* ========================================= */
/* ESTILOS EXCLUSIVOS DO BLOG E CARDS        */
/* ========================================= */

.blog-layout {
    display: grid; 
    grid-template-columns: 280px 1fr; /* Sidebar de 280px, o resto para os cards */
    gap: 3rem;
    align-items: start;
}

.blog-content-area {
    width: 100%;
}

.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* 3 colunas fixas */
    gap: 2rem; 
    align-items: stretch;
}

.blog-card { 
    background: #FFFFFF; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s, box-shadow 0.3s; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    position: relative; 
    border: 1px solid #eaeaea;
    text-decoration: none;
}
.blog-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-color: #D4AF37;
}
.blog-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    display: block;
}
.blog-card-content { 
    padding: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}
.blog-card h3 { 
    font-size: 1.1rem; 
    color: #1A1A1A; 
    margin-bottom: 0.8rem; 
    font-weight: 700; 
    line-height: 1.4; 
}
.blog-card p { 
    color: #4A4A4A; 
    font-size: 0.9rem; 
    line-height: 1.5; 
    margin-bottom: 1.5rem; 
    flex-grow: 1; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.blog-card span.read-more { 
    color: #003366; 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.category-tag { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: #003366; 
    color: #FFFFFF; 
    padding: 4px 12px; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    z-index: 2; 
}

.blog-card[data-category="tecnologia"] .category-tag { background: #D4AF37; color: #1A1A1A; }
.blog-card[data-category="limpeza"] .category-tag { background: #008080; }
.blog-card[data-category="estrategia"] .category-tag { background: #4A4A4A; }
.blog-card[data-category="controle-acesso"] .category-tag { background: #28a745; }
.blog-card[data-category="infraestrutura"] .category-tag { background: #ffc107; color: #333; }

.filter-btn { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    background: none; 
    border: none; 
    border-bottom: 1px solid #eee; 
    padding: 0.8rem 0; 
    color: #4A4A4A; 
    font-family: 'Inter', sans-serif; 
    font-size: 0.95rem; 
    cursor: pointer; 
    transition: 0.3s; 
    text-align: left; 
}
.filter-btn:hover, .filter-btn.active { 
    color: #003366; 
    font-weight: 700; 
    border-bottom-color: #D4AF37; 
}

/* RESPONSIVIDADE */
@media (max-width: 1100px) {
    .blog-layout { grid-template-columns: 1fr; }
    .sidebar-sticky { position: relative; top: 0; margin-bottom: 3rem; }
}
@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* CTA DO ARTIGO */
.article-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001f3f 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 15px 30px rgba(0,51,102,0.2);
}
.article-cta h3 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.article-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.btn-cta {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--dark-black);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-cta:hover {
    background: var(--white);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .article-container {
        padding: 2rem;
        margin: -30px 1rem 3rem;
    }
    .article-content h2 { font-size: 1.6rem; }
    .article-content h3 { font-size: 1.3rem; }
    .article-cta { padding: 2rem 1.5rem; }
}
/* ========================================= */
/* ECOSSISTEMA DO BLOG (INDEX E ARTIGOS)     */
/* ========================================= */

/* -----------------------------------------
   1. LAYOUT DO INDEX (DOSSIÊ / GRID)
----------------------------------------- */
.blog-layout {
    display: grid; 
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}
.blog-content-area { width: 100%; }
.blog-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
    align-items: stretch;
}
.blog-card { 
    background: #FFFFFF; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s, box-shadow 0.3s; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    position: relative; 
    border: 1px solid #eaeaea;
    text-decoration: none;
}
.blog-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    border-color: #D4AF37;
}
.blog-card img { 
    width: 100%; height: 200px; object-fit: cover; display: block;
}
.blog-card-content { 
    padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; 
}
.blog-card h3 { 
    font-size: 1.1rem; color: #1A1A1A; margin-bottom: 0.8rem; font-weight: 700; line-height: 1.4; 
}
.blog-card p { 
    color: #4A4A4A; font-size: 0.9rem; line-height: 1.5; margin-bottom: 1.5rem; flex-grow: 1; 
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; 
}
.blog-card span.read-more { 
    color: #003366; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; 
}
.category-tag { 
    position: absolute; top: 15px; left: 15px; background: #003366; color: #FFFFFF; padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; z-index: 2; 
}
.blog-card[data-category="tecnologia"] .category-tag { background: #D4AF37; color: #1A1A1A; }
.blog-card[data-category="limpeza"] .category-tag { background: #008080; }
.blog-card[data-category="estrategia"] .category-tag { background: #4A4A4A; }
.blog-card[data-category="controle-acesso"] .category-tag { background: #28a745; }
.blog-card[data-category="infraestrutura"] .category-tag { background: #ffc107; color: #333; }

.filter-btn { 
    display: flex; justify-content: space-between; width: 100%; background: none; border: none; border-bottom: 1px solid #eee; padding: 0.8rem 0; color: #4A4A4A; font-family: 'Inter', sans-serif; font-size: 0.95rem; cursor: pointer; transition: 0.3s; text-align: left; 
}
.filter-btn:hover, .filter-btn.active { color: #003366; font-weight: 700; border-bottom-color: #D4AF37; }


/* -----------------------------------------
   2. LAYOUT INTERNO DAS MATÉRIAS (ARTIGOS)
----------------------------------------- */
.article-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.article-hero img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    z-index: 1;
}
.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.article-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--white);
}
.article-hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: #e0e0e0;
}
.article-category {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--dark-black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.article-container {
    max-width: 800px;
    margin: -50px auto 4rem;
    background: var(--white);
    padding: 4rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}
.article-content h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin: 3rem 0 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}
.article-content h3 {
    font-size: 1.5rem;
    color: var(--dark-black);
    margin: 2.5rem 0 1rem;
    font-weight: 700;
}
.article-content p { margin-bottom: 1.5rem; }
.article-content ul { margin-bottom: 2rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.8rem; position: relative; }
.article-content strong { color: var(--dark-black); font-weight: 700; }

.highlight-box {
    background: var(--light-gray);
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    color: var(--primary-blue);
}
.article-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001f3f 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 15px 30px rgba(0,51,102,0.2);
}
.article-cta h3 { font-size: 2rem; color: var(--accent-gold); margin-bottom: 1rem; }
.article-cta p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }
.btn-cta {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--dark-black);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}
.btn-cta:hover { background: var(--white); transform: translateY(-3px); }


/* -----------------------------------------
   3. RESPONSIVIDADE UNIFICADA
----------------------------------------- */
@media (max-width: 1100px) {
    .blog-layout { grid-template-columns: 1fr; }
    .sidebar-sticky { position: relative; top: 0; margin-bottom: 3rem; }
}
@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .article-container { padding: 2rem; margin: -30px 1rem 3rem; }
    .article-content h2 { font-size: 1.6rem; }
    .article-content h3 { font-size: 1.3rem; }
    .article-cta { padding: 2rem 1.5rem; }
}