:root {
    /* Cores G4 Electric */
    --g4-electric-orange: #FF6B00; /* Laranja vibrante do logo */
    --g4-electric-navy: #000066;   /* Azul escuro da tipografia */
    
    /* Cores G4 Smart Solutions */
    --g4-smart-blue: #00A3FF;     /* Ciano do ícone G4 */
    --g4-smart-dark: #0D1B2A;     /* Fundo escuro do ícone */
    
    /* Auxiliares */
    --white: #FFFFFF;
    --gray-light: #F4F4F4;
}
.main-header {
    background-color: var(--white);
    border-bottom: 3px solid var(--g4-electric-orange);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-electric { max-height: 60px; }
.logo-smart { max-height: 40px; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--g4-electric-navy);
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--g4-electric-orange);
}

.logo-smart-area {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.powered-by {
    font-size: 10px;
    color: var(--g4-smart-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.main-footer {
    background-color: var(--g4-smart-dark);
    color: var(--white);
    padding: 60px 0 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.footer-column h3 {
    color: var(--g4-electric-orange);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--gray-light);
    text-decoration: none;
    transition: 0.3s;
}

.footer-column a:hover {
    color: var(--g4-smart-blue);
}

.footer-mini-logo {
    max-height: 30px;
    filter: brightness(0) invert(1); /* Deixa o logo branco no fundo escuro */
    margin-top: 10px;
}

.footer-bottom {
    background-color: #050a10;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
/* Layout Geral */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hero Section */
.hero-home { padding: 80px 0; color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.badge-new { background: var(--g4-electric-orange); padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.hero-text h1 { font-size: 2.8rem; margin: 20px 0; line-height: 1.2; }
.btn-orange { background: var(--g4-electric-orange); color: white; padding: 15px 30px; border-radius: 5px; text-decoration: none; font-weight: bold; }
.btn-outline { border: 2px solid white; color: white; padding: 13px 30px; border-radius: 5px; text-decoration: none; margin-left: 10px; }

/* Services */
.services-section { padding: 80px 0; background: var(--gray-light); }
.section-title { text-align: center; margin-bottom: 50px; color: var(--g4-electric-navy); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 40px; border-radius: 10px; transition: 0.3s; text-align: center; border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-10px); border-color: var(--g4-electric-orange); }
.card-icon { font-size: 40px; margin-bottom: 20px; }

/* Ads Placeholder */
.ad-placeholder { background: #eee; height: 90px; display: flex; align-items: center; justify-content: center; margin: 20px auto; border: 1px dashed #ccc; }

/* Blog Home */
.blog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.post-content { padding: 20px; }
/* Single Page & Sidebar */
.single-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 30px; }
.post-header h1 { font-size: 2.5rem; color: var(--g4-electric-navy); margin-bottom: 10px; }
.post-meta { font-size: 0.9rem; color: #666; margin-bottom: 20px; }
.entry-content { line-height: 1.8; font-size: 1.1rem; color: #333; }
.entry-content h2, .entry-content h3 { margin: 30px 0 15px; color: var(--g4-electric-orange); }
.ad-spot { background: #f9f9f9; padding: 20px; text-align: center; margin: 30px 0; border: 1px solid #eee; }

/* Sidebar */
.sidebar-widget { background: #fff; padding: 20px; border: 1px solid #eee; margin-bottom: 30px; border-radius: 5px; }
.sidebar-widget h4 { border-bottom: 2px solid var(--g4-electric-orange); padding-bottom: 10px; margin-bottom: 15px; }
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { margin-bottom: 10px; border-bottom: 1px solid #f0f0f0; padding-bottom: 5px; }

/* Blog List Grid */
.blog-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.blog-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.blog-item-content { padding: 20px; }
.blog-item h2 a { color: var(--g4-electric-navy); text-decoration: none; font-size: 1.3rem; }
.py-5 { padding-top: 50px; padding-bottom: 50px; }

/* Responsive */
@media (max-width: 768px) {
    .single-layout, .hero-grid { grid-template-columns: 1fr; }
}
/* Page Header */
.page-header {
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--g4-smart-blue);
    text-decoration: none;
}

/* Page Layout */
.page-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}

.entry-content {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* CTA de Página */
.page-cta {
    background: var(--gray-light);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--g4-electric-orange);
    margin-top: 50px;
    text-align: center;
}

.page-cta h3 {
    color: var(--g4-electric-navy);
    margin-bottom: 10px;
}

/* Sidebar Services List */
.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.services-list a {
    color: var(--g4-electric-navy);
    text-decoration: none;
    font-weight: 500;
}

.services-list a:hover {
    color: var(--g4-electric-orange);
}

.ad-placeholder-sidebar {
    background: #f0f0f0;
    min-height: 600px; /* Tamanho padrão de anúncio vertical */
    border: 1px dashed #ccc;
}

/* Ajuste Responsivo */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
}
/* --- Menu Burger (Mobile) --- */
.burger-menu {
    display: none; /* Escondido no Desktop */
    cursor: pointer;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--g4-electric-navy);
    border-radius: 3px;
    transition: 0.3s;
}

/* Transforma o hambúrguer em um "X" quando ativo */
.burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* --- Botão Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--g4-electric-orange);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Escondido por padrão */
    opacity: 0;
    transition: 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    display: block;
    opacity: 1;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    .burger-menu { display: flex; }
    
    .main-nav {
        display: none; /* Esconde o menu original */
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        border-bottom: 2px solid var(--g4-electric-orange);
    }
    
    .main-nav.active { display: block; }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }
}
.calculadora-autonomia {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.calculadora-autonomia h3 { color: var(--g4-electric-navy); margin-bottom: 15px; }

.input-group { margin-bottom: 15px; text-align: left; }
.input-group label { display: block; font-size: 0.9rem; margin-bottom: 5px; font-weight: bold; }
.input-group input, .input-group select { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
}

.btn-calc {
    width: 100%;
    background: var(--g4-electric-orange);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-calc:hover { background: #e66000; }

.resultado-box {
    margin-top: 20px;
    padding: 15px;
    background: var(--g4-smart-blue);
    color: white;
    border-radius: 5px;
    text-align: center;
}