/* Definição de Variáveis de Cor - Baseado nas cores do site */
:root {
    --primary-blue: #3A73C9; /* Cor principal, azul forte */
    --dark-blue: #3A73C9;
    --light-gray: #EEEEF2;
    --dark-gray: #343a40;
    --text-color: #495057;
    --white: #ffffff;
}

/* Reset Básico e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Titillium Web', sans-serif; /* Apply font globally */
    overflow-x: hidden; /* Adicionado para evitar estouro horizontal */
}

body {
    background-color: var(--white);
    color: #538091;
    line-height: 1.7;
    padding-top: 80px; /* Added to prevent content from being hidden by fixed header */
}

.container {
    max-width: 1200px; /* Reverted global container width for narrower content area */
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho e Navegação Aprimorados */
.main-header {
    background-color: var(--white);
    height: 80px; /* Altura ligeiramente reduzida para um visual mais elegante */
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); /* Sombra sutil */
    border-bottom: 1px solid #e9ecef;
}

.main-header .container {
    display: flex;
    justify-content: space-between; /* Align items to the start */
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px; /* Add gap between logo and navigation */
}

.mobile-demo-button {
    display: none; /* Hidden by default */
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .mobile-demo-button {
        display: block;
    }
}

.logo img {
    height: 26px; /* Logo um pouco menor */
    vertical-align: middle; /* Alinhamento vertical */
}

/* Navegação Principal (Desktop) */
.main-nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: 0; /* Remove margin-left as gap handles spacing */
}

.main-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espaçamento entre os itens */
    padding: 0;
    margin: 0;
}

.main-nav li a {
    color: #538091; /* Cor de texto cinza */
    text-decoration: none;
    font-weight: 600; /* Fonte um pouco mais forte */
    font-size: 0.9rem; /* Tamanho de fonte ajustado */
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.main-nav li a:hover,
.main-nav li.dropdown:hover > a {
    color: var(--primary-blue);
}

.main-nav li a:hover::after,
.main-nav li.dropdown:hover > a::after {
    width: 100%;
}

/* Estilos do Dropdown (Desktop) */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px); /* Efeito de surgimento */
    position: absolute;
    background-color: var(--white);
    min-width: 200px; /* Largura mínima maior */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Sombra mais suave */
    z-index: 1;
    padding: 8px;
    border-radius: 6px; /* Bordas mais arredondadas */
    top: 100%;
    left: 0;
    width: max-content;
    border: 1px solid #f0f0f0;
}

.main-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.main-nav .dropdown-menu li {
    display: block;
    width: 100%;
}

.main-nav .dropdown-menu li a {
    color: #538091;
    padding: 8px 12px; /* Padding ajustado */
    text-decoration: none;
    display: flex; /* Usar flex para alinhar ícone e texto */
    align-items: center;
    gap: 8px; /* Espaço entre ícone e texto */
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 4px; /* Borda arredondada para o item */
}

.main-nav .dropdown-menu li a::after {
    display: none; /* Remover sublinhado animado do dropdown */
}

.main-nav .dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
}

.main-nav li a .menu-arrow {
    margin-left: 5px; /* Adiciona espaço à esquerda da seta */
}

/* Botões de Ação no Cabeçalho */
.cta-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto; /* Pushes the cta-container to the right */
}

.demo-button {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border: 2px solid transparent;
}

.demo-button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(58, 115, 201, 0.3);
}

.sales-contact {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    gap: 2px; /* Reduce gap between stacked items */
    border-left: 1px solid #e0e0e0;
    padding-left: 12px;
}

.sales-contact span {
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
}

.sales-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-decoration: none;
}

.sales-contact .fa-whatsapp {
    font-size: 1.3rem;
}

/* Navegação Responsiva (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1001;
}

.main-nav-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 1000;
    padding: 50px 15px 15px;
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.main-nav-panel.open {
    left: 0;
}

.main-nav-panel .close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .cta-container {
        display: none;
    }

    .main-header .container {
        justify-content: space-between;
    }

    .main-nav-container {
        flex-grow: 0;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.7fr; /* Giving the image column slightly more space */
    gap: 40px;
    align-items: center;
}

.hero-content {
    order: 1;
    text-align: left;
}

.hero-image {
    order: 2;
    justify-self: end; /* Aligns the image to the right within its grid cell */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.1;
    margin-bottom: 20px;
}

.no-wrap {
    white-space: nowrap;
}

.hero-content-if p {
    font-size: 1.2rem;
    color: #538091;
    margin-bottom: 15px;
}

.cta-button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--dark-blue);
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Counter Section */
.counter-section {
    padding: 40px 0;
    background-color: var(--white);
    text-align: center;
}

.counter-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px; /* Adjusted gap for new layout */
}

.counter-item {
    background-color: var(--white);
    border: 1px solid #e0e0e0; /* Thin border */
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Projected shadow */
    flex-basis: calc(25% - 15px); /* 4 items per row with gap */
    min-width: 220px; /* Adjusted min-width */
    height: 120px; /* Fixed height for rectangular shape */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content vertically */
    align-items: flex-start; /* Align content to the start */
    padding: 0 15px 15px 15px; /* Adjust padding to remove top spacing */
    text-align: left;
}

.counter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0; /* Removed space between header and value */
    padding: 10px 0; /* Slightly reduced vertical padding for header */
    width: calc(100% + 30px); /* Span full width of parent's visual box */
    margin-left: -15px; /* Counteract parent's left padding */
    margin-right: -15px; /* Counteract parent's right padding */
    box-sizing: border-box; /* Include padding in width calculation */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.counter-header i {
    font-size: 1.5rem; /* Slightly larger icon size */
    color: #007bff; /* Default icon color */
}

.counter-header h3 {
    font-size: 0.8rem; /* Slightly larger name size */
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}

.counter-value {
    width: 100%;
    text-align: center; /* Center the number */
}

.counter-number {
    font-size: 2.8rem; /* Larger number size */
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1;
}

/* Specific colors for each counter */
.counter-item:nth-child(1) .counter-header {
    background-color: #009BF1;
}

.counter-item:nth-child(1) .counter-header i,
.counter-item:nth-child(1) .counter-header h3 {
    color: var(--white);
}

.counter-item:nth-child(1) .counter-number {
    color: #009BF1;
}

.counter-item:nth-child(2) .counter-header {
    background-color: #00AF91;
}

.counter-item:nth-child(2) .counter-header i,
.counter-item:nth-child(2) .counter-header h3 {
    color: var(--white);
}

.counter-item:nth-child(2) .counter-number {
    color: #00AF91;
}

.counter-item:nth-child(3) .counter-header {
    background-color: #FFA714;
}

.counter-item:nth-child(3) .counter-header i,
.counter-item:nth-child(3) .counter-header h3 {
    color: var(--white);
}

.counter-item:nth-child(3) .counter-number {
    color: #FFA714;
}

.counter-item:nth-child(4) .counter-header {
    background-color: #004977;
}

.counter-item:nth-child(4) .counter-header i,
.counter-item:nth-child(4) .counter-header h3 {
    color: var(--white);
}

.counter-item:nth-child(4) .counter-number {
    color: #004977;
}

@media (max-width: 768px) {
    .counter-item {
        flex-basis: calc(50% - 15px); /* 2 items per row on smaller screens */
    }
}

@media (max-width: 480px) {
    .counter-item {
        flex-basis: 100%; /* 1 item per row on extra small screens */
    }
}

/* About Us Section */
.about-us-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-gray); /* Use light gray background */
}

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-us-content {
    text-align: left;
}

.about-us-video {
    text-align: right;
}

.about-us-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.about-us-section h2 span {
    font-weight: normal; /* For "Somos a" */
    color: #538091; /* Gray color */
}

.about-us-section h2 span:last-child {
    font-weight: bold; /* For "SistemasBR" */
    color: #0073C9; /* Blue color */
}

.about-us-section p {
    font-size: 1.1rem;
    color: #538091;
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 800px; /* Limit paragraph width for readability */
    margin-left: auto;
    margin-right: auto;
}

.history-section {
    padding: 60px 0;
    background-color: var(--white);
}

.history-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.history-column h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.history-column p {
    font-size: 1.1rem;
    color: #538091;
    line-height: 1.6;
    margin-bottom: 20px;
}

.reason-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.reason-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reason-card {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.reason-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.reason-card p {
    font-size: 1.1rem;
    color: #538091; /* Cor cinza para o texto */
    line-height: 1.6;
    margin-bottom: 20px;
}

.green-pastel {
    background-color: #D9F2EE; /* Specific green color */
    color: #2e8b57; /* Darker green for text */
}

.green-pastel h3 {
    color: #55B092; /* Specific title color for green card */
}

.yellow-pastel {
    background-color: #F7EEDF; /* Specific yellow color */
    color: #b8860b; /* Dark Goldenrod for text */
}

.yellow-pastel h3 {
    color: #EFA71C; /* Specific title color for yellow card */
}

.blue-pastel {
    background-color: #E7F5FD; /* Very light blue */
    color: #4682b4; /* Steel Blue for text */
}

.work-with-us-section {
    padding: 60px 5%; /* Aumenta o padding horizontal */
    background-color: var(--primary-blue);
    color: var(--white);
}

.work-with-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* Reduzido o espaçamento para aproximar os containers */
    align-items: center;
    margin-left: 10%; /* Move o contêiner 10% para a esquerda */
}

.work-with-us-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.work-with-us-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--white);
}

.work-with-us-content .cta-button {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.work-with-us-content .cta-button:hover {
    background-color: #f0f0f0;
}

.work-with-us-image img {
    max-width: 66%; /* Aumentado em 10% */
    height: auto;
}

.work-with-us-image {
    justify-self: start; /* Joga a imagem para a esquerda dentro da coluna */
    margin-left: -50px; /* Move a imagem mais para a esquerda */
}

@media (max-width: 768px) {
    .work-with-us-grid {
        grid-template-columns: 1fr;
        gap: 30px; /* Reduz o espaçamento horizontal no mobile */
    }

    .work-with-us-content {
        order: 2;
        text-align: center;
    }

    .work-with-us-image {
        order: 1;
        text-align: center;
    }

    .work-with-us-content h2,
    .work-with-us-content p {
        text-align: center;
    }

    .work-with-us-content .cta-button {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .reason-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
}

/* Solutions Section */
.solutions-section {
    padding: 60px 0;
    text-align: center;
}

.solutions-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.solutions-section h2 span {
    color: var(--primary-blue);
}

.solution-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for image and text */
    gap: 40px;
    align-items: center;
    text-align: left;
}

.solution-image img {
    max-width: 100%;
    height: auto;
}

.solution-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.sigecom-logo {
    max-width: 200px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 10px;
}

.solution-text-content p {
    font-size: 1.1rem;
    color: #538091;
    line-height: 1.7;
    margin-bottom: 0;
}

.solution-text-content .cta-button {
    margin-top: 10px; /* Space above the button */
    display: inline-flex; /* Allow icon to be next to text */
    align-items: center;
    gap: 8px;
}

.solution-text-content .cta-button i {
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .solution-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .solution-text-content {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .solution-content-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    .solution-image {
        order: 1 !important;
        margin: 0 auto !important;
        display: block;
        text-align: center;
    }

    .solution-text-content {
        order: 2 !important;
        text-align: center;
    }

    .ganhe-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    .ganhe-image {
        order: 1 !important;
        margin: 0 auto !important;
        text-align: center;
    }

    .ganhe-content {
        order: 2 !important;
        text-align: center;
    }

    .fiscal-intelligence-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    .fiscal-intelligence-image {
        order: 1 !important;
        margin: 0 auto !important;
        display: block;
        text-align: center;
    }

    .fiscal-intelligence-content {
        order: 2 !important;
        text-align: center;
    }

    .customer-cta-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    .customer-cta-text {
        order: 1 !important;
        text-align: center;
    }

    .customer-cta-form {
        order: 2 !important;
    }

    .business-understanding-text-left h2 {
        text-align: center !important;
    }

    .business-understanding-grid {
        flex-direction: column !important;
        grid-template-columns: 1fr !important; /* Garante que não seja grid no mobile */
        gap: 20px !important;
    }

    .business-understanding-text-left {
        text-align: center !important;
        order: 1 !important;
    }

    .business-understanding-text-right {
        text-align: center !important;
        order: 2 !important;
    }

    .vertical-line {
        display: none !important;
    }
}

/* Segments Section */
.segments-section {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.segments-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.segments-section h2 span {
    color: var(--primary-blue);
}

.segments-section p {
    font-size: 1.1rem;
    color: #538091;
    margin-bottom: 40px;
}

.segment-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.segment-tags span {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Features Grid for Segment Pages */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 columns on larger screens */
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Ensure a square-like appearance */
    color: inherit !important; /* Inherit color from parent */
    text-decoration: none !important; /* Remove underline */
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none !important; /* Ensure no underline on hover */
}

.feature-item .feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #538091;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1rem;
    color: #538091;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}

/* General Section Title with Split Styling */
.section-title-split {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 40px;
    text-align: center;
}

.section-title-split span {
    font-weight: normal;
    color: #538091;
}

.section-title-split span:last-child {
    font-weight: bold;
    color: var(--primary-blue);
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
    text-align: center;
}

.blog-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.blog-section h2 span {
    color: var(--primary-blue);
}

.blog-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-10px);
}

.blog-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-card .post-content {
    padding: 20px;
}

.blog-post-card .post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.blog-post-card .post-excerpt {
    font-size: 0.95rem;
    color: #538091;
    margin-bottom: 15px;
}

.blog-post-card .read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post-card .read-more i {
    font-size: 0.9rem;
}

/* Footer */
#contact {
    margin-top: auto; /* Pushes footer to the bottom */
}

.footer-top {
    background-color: #022E4B; /* Dark blue color */
    color: var(--white);
    padding: 40px 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-bottom {
    background-color: #013D64; /* Slightly lighter blue */
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        text-align: center;
    }

    h1, h2, h3, h4, h5, h6, p, li {
        text-align: center !important;
    }

    .about-us-grid {
        grid-template-columns: 1fr;
    }

    .about-us-video {
        order: 1;
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        height: 0;
        overflow: hidden;
    }

    .about-us-video iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .about-us-content {
        order: 2;
        text-align: center; /* Centraliza o texto */
    }

    .about-us-content h2,
    .about-us-content p {
        text-align: center; /* Garante que o texto dentro do conteúdo também seja centralizado */
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .solution-content-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    .solution-image {
        order: 1 !important;
        margin: 0 auto !important;
        display: block;
        text-align: center;
    }

    .solution-text-content {
        order: 2 !important;
        text-align: center;
    }

    .ganhe-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    .ganhe-image {
        order: 1 !important;
        margin: 0 auto !important;
        text-align: center;
    }

    .ganhe-content {
        order: 2 !important;
        text-align: center;
    }

    .fiscal-intelligence-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    .fiscal-intelligence-image {
        order: 1 !important;
        margin: 0 auto !important;
        display: block;
        text-align: center;
    }

    .fiscal-intelligence-content {
        order: 2 !important;
        text-align: center;
    }

    .customer-cta-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
    }

    .customer-cta-text {
        order: 1 !important;
        text-align: center;
    }

    .customer-cta-form {
        order: 2 !important;
    }

    .business-understanding-text-left h2 {
        text-align: center !important;
    }

    .business-understanding-grid {
        flex-direction: column !important;
        grid-template-columns: 1fr !important; /* Garante que não seja grid no mobile */
        gap: 20px !important;
    }

    .business-understanding-text-left {
        text-align: center !important;
        order: 1 !important;
    }

    .business-understanding-text-right {
        text-align: center !important;
        order: 2 !important;
    }

    .vertical-line {
        display: none !important;
    }

    .counter-item {
        flex-basis: calc(50% - 15px); /* 2 items per row on smaller screens */
    }

    .segments-section .segment-tags {
        flex-direction: column;
        align-items: center;
    }

    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .contact-content {
        order: 1 !important;
        text-align: center !important;
    }

    .contact-form {
        order: 2 !important;
        width: 100%;
    }

    .floating-whatsapp-button {
        display: none;
    }

    .whatsapp-bubble {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 12px 25px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .blog-posts-container {
        grid-template-columns: 1fr;
    }
}

/* Client Carousel Section */
.client-carousel-section {
    padding: 80px 0;
    overflow: hidden; /* Adicionado para conter o estouro */
    background-color: var(--light-gray);
}

.client-carousel-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.client-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.client-carousel .swiper-slide img,
.partner-carousel .swiper-slide img {
    max-height: 150px !important;
    height: auto;
    object-fit: contain;
    padding: 10px;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.swiper-pagination {
    display: none;
}

.swiper-pagination-bullet {
    background-color: rgba(0, 0, 0, 0.5); /* Cor dos bullets inativos */
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: background-color 0.3s;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-blue); /* Cor do bullet ativo */
}

.swiper-wrapper {
    padding: 0 !important;
}

.swiper-container {
    overflow: hidden; /* Garante que nada saia dos limites */
    width: 100%; /* Ensure it takes full available width */
    max-width: 100%; /* Ensure it respects parent width */
    box-sizing: border-box;
}

.client-carousel-section .container {
    padding: 0;
}

.floating-whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-blue);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-bubble {
    position: absolute;
    bottom: 15px;
    right: 70px;
    background-color: #3A73C9;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .floating-whatsapp-button {
        display: none;
    }

    .whatsapp-bubble {
        display: none;
    }
}
.main-nav-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.main-nav-panel li {
    width: 100%;
}

/* Base style for all links in the panel */
.main-nav-panel a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem; /* Consistent padding */
    color: var(--text-color);
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.main-nav-panel a:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
}

/* Remove border from the very last link in the menu */
.main-nav-panel > ul > li:last-child > a:not(.dropdown-toggle) {
    border-bottom: none;
}

/* Icon base styles */
.main-nav-panel .menu-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

/* Sizing for Font-Awesome icons */
.main-nav-panel i.menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Sizing for Image icons */
.main-nav-panel img.menu-icon {
    width: 20px;  /* Make it same as the font-awesome width */
    height: 20px;
    object-fit: contain; /* Ensure image scales nicely */
}

/* Dropdown toggle arrow */
.main-nav-panel .dropdown-toggle {
    justify-content: space-between;
}

.main-nav-panel .dropdown-toggle .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.main-nav-panel .dropdown-toggle .fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

/* Submenu styles */
.main-nav-panel .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f8f9fa; /* Light gray background for submenu */
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav-panel .dropdown-menu.show {
    max-height: 1000px; /* Large enough for any submenu */
}

/* Submenu link styles */
.main-nav-panel .dropdown-menu a {
    padding-left: 2.5rem; /* Indent submenu items */
    font-weight: 500; /* Lighter font for submenu items */
    font-size: 0.9rem;
    color: #538091;
}

.main-nav-panel .dropdown-menu a:hover {
    background-color: #e9ecef;
}

/* Remove bottom border for last item in a submenu */
.main-nav-panel .dropdown-menu li:last-child > a {
    border-bottom: none;
}

/* CTA Section for Construcao, Moda, Mercados, LojasVarejo, Servicos */
.cta-section-construcao {
    background-color: var(--primary-blue); /* Blue background */
    padding: 60px 0;
    text-align: center;
    margin-top: 0; /* Add space above the section */
}

.cta-content-construcao {
    display: flex;
    justify-content: space-between; /* Puts space between text and button */
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 20px; /* Space between items */
}

.cta-content-construcao p {
    color: var(--white); /* White text for the paragraph */
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0; /* Remove default paragraph margin */
    flex-grow: 1; /* Allows paragraph to take available space */
    text-align: left; /* Align text to the left */
}

.cta-content-construcao .cta-button {
    background-color: var(--white); /* White button background */
    color: var(--primary-blue); /* Blue text for the button */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent button text from wrapping */
}

.cta-content-construcao .cta-button:hover {
    background-color: #f0f0f0; /* Slightly darker white on hover */
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .cta-content-construcao {
        flex-direction: column; /* Stack items vertically on small screens */
        text-align: center;
    }

    .cta-content-construcao p {
        text-align: center; /* Center text on small screens */
    }
}

.business-understanding-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.business-understanding-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.business-understanding-text-left h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: right;
    line-height: 1.3;
}

.business-understanding-text-left .gray-text {
    color: #538091;
    font-weight: normal;
}

.business-understanding-text-left .blue-text {
    color: var(--primary-blue);
}

.vertical-line {
    width: 2px;
    height: 100px;
    background-color: #e0e0e0;
}

.business-understanding-text-right p {
    font-size: 1.1rem;
    color: #538091;
    line-height: 1.6;
}

.segment-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.segment-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #538091;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 150px;
}

.segment-button a {
    color: inherit; /* Garante que a cor seja herdada do .segment-button */
    text-decoration: none; /* Remove o sublinhado */
}

.segment-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.segment-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.segment-name {
    font-weight: 600;
}

.customer-cta-section {
    padding: 60px 0;
    background-color: var(--white);
}

.customer-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.customer-cta-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.customer-cta-text-p {
    font-size: 1.1rem;
    color: #538091;
    line-height: 1.6;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.benefits-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #538091;
}

.final-phrase {
    font-size: 1.1rem;
    color: #538091;
    line-height: 1.6;
    margin-bottom: 20px;
}

.customer-cta-form iframe {
    width: 100%;
    height: 665px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.contact-section {
    padding: 0 0 30px 0; /* Removido padding superior, mantido o inferior */
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-content {
    text-align: left;
}

.contact-content .contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    padding-top: 40px;    /* Adicionado espaço acima do título */
    margin-bottom: 60px; /* Aumentado ainda mais o espaçamento inferior */
}

.contact-content .contact-title span {
    font-weight: normal;
    color: #538091;
}

.contact-content .contact-title span:last-child {
    font-weight: bold;
    color: var(--primary-blue);
}

.contact-form iframe {
    width: 100%;
    height: 665px; /* Adjust height as needed */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.join-us-section {
    padding: 60px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.join-us-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.join-us-section h2 span {
    font-weight: normal;
    color: #538091;
}

.join-us-section h2 span:last-child {
    font-weight: bold;
    color: var(--primary-blue);
}

.join-us-section p {
    font-size: 1.1rem;
    color: #538091;
    margin-bottom: 30px;
}

.join-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas */
    gap: 40px;
    align-items: center;
}

.join-us-content {
    text-align: left; /* Texto à esquerda */
}

.join-us-image {
    text-align: right; /* Imagem à direita */
}

.join-us-image img {
    max-width: 60%; /* Ajuste conforme necessário */
    height: auto;
}

@media (max-width: 768px) {
    .join-us-grid {
        grid-template-columns: 1fr;
    }

    .join-us-content {
        order: 2;
        text-align: center;
    }

    .join-us-image {
        order: 1;
        text-align: center;
    }

    .join-us-image img {
        max-width: 80%; /* Ajuste para mobile */
    }
}

.cta-section {
    padding: 60px 0;
}

.ganhe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.ganhe-image {
    order: 1;
}

.ganhe-content {
    order: 2;
}

.ganhe-image img {
    max-width: 70%;
    height: auto;
}

.ganhe-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.ganhe-content p {
    font-size: 1.1rem;
    color: #538091;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: white;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-blue);
}

.fiscal-intelligence-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.fiscal-intelligence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    text-align: left;
}

.fiscal-intelligence-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fiscal-intelligence-image img {
    max-width: 80%;
    height: auto;
}

.fiscal-intelligence-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.fiscal-intelligence-content p {
    font-size: 1.1rem;
    color: #538091;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pdvgo-section {
    padding: 40px 0 60px 0;
}

.pdvgo-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.pdvgo-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.main-nav .dropdown-menu li a img.menu-icon {
    width: 20px; /* Adjust as needed */
    height: 20px; /* Adjust as needed */
    margin-right: 8px; /* Space between icon and text */
    vertical-align: middle;
}

.segment-icon {
    color: var(--primary-blue);
}

.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.main-nav-panel .menu-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
    margin-right: 12px;
    text-align: center;
}

.main-nav-panel img.menu-icon {
    width: 18px;
    height: 18px;
}

.main-nav-panel .dropdown-menu li a .menu-icon {
    width: 16px;
    height: 16px;
}

.main-nav-panel .dropdown-menu li a i.menu-icon {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.main-nav .dropdown-menu li a i.menu-icon {
    font-size: 18px;
    width: 18px;
    text-align: center;
}

.main-nav-panel .dropdown-menu {
    display: none;
}

.main-nav-panel .dropdown-menu.show {
    display: block;
}

.main-nav-panel ul ul {
    padding-left: 1rem;
}

.main-nav-panel ul ul li a {
    padding-left: 1rem;
}

.main-nav-panel .dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.main-nav-panel .dropdown-toggle .fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

.main-nav-panel .dropdown-toggle {
    justify-content: space-between;
    padding-right: 1rem;
}

.main-nav-panel ul {
    width: 100%;
}

.main-nav-panel li {
    width: 100%;
}

.main-nav-panel a {
    width: 100%;
    box-sizing: border-box;
}

.main-nav-panel .dropdown-menu {
    width: 100%;
    box-sizing: border-box;
}

.main-nav-panel .dropdown-menu li {
    width: 100%;
}

.main-nav-panel .dropdown-menu a {
    width: 100%;
}

.main-nav-panel .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    display: block; /* Keep it in the layout flow */
}

.main-nav-panel .dropdown-menu.show {
    max-height: 500px; /* Adjust to fit content */
}

.main-nav-panel .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-nav-panel .dropdown-toggle .fa-chevron-down {
    margin-left: auto;
}

.main-nav-panel .dropdown-menu {
    padding-left: 0;
}

.main-nav-panel .dropdown-menu li a {
    padding-left: 2rem;
}

.main-nav-panel .dropdown-menu {
    background-color: #f0f8ff;
}

.main-nav-panel .dropdown-menu li a:hover {
    background-color: #e6f2ff;
}

.main-nav-panel .dropdown-toggle {
    border-bottom: none;
}

.main-nav-panel > ul > li > a {
    border-bottom: 1px solid #eee;
}

.main-nav-panel > ul > li:last-child > a {
    border-bottom: none;
}

.main-nav-panel .dropdown-menu {
    border-top: 1px solid #eee;
}

.main-nav-panel .dropdown-menu li:last-child a {
    border-bottom: none;
}

.main-nav-panel .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, border-top-width 0.3s ease-out;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 0px solid #eee;
}

.main-nav-panel .dropdown-menu.show {
    max-height: 1000px; /* Large enough for any submenu */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid #eee;
}

.main-nav-panel .dropdown-toggle {
    padding: 0.8rem 1rem;
}

.main-nav-panel .dropdown-menu li a {
    padding: 0.5rem 2rem;
}

.main-nav-panel .demo-button {
    margin: 1rem;
    width: auto;
}

.main-nav-panel .sales-contact-mobile {
    padding: 1rem;
}

.main-nav-panel {
    padding: 0;
}

.main-nav-panel > ul {
    padding: 0;
}

.main-nav-panel > ul > li > a {
    padding: 0.8rem 1rem;
}

.main-nav-panel .close-button {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #3A73C9;
    cursor: pointer;
}

.main-header .container {
    justify-content: space-between;
}

.main-nav-container {
    flex-grow: 0;
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
}

@media (min-width: 993px) {
    .menu-toggle {
        display: none;
    }
}
.main-nav-panel {
    display: flex;
}

@media (min-width: 769px) {
    .main-nav-panel {
        display: none !important;
    }
    .menu-toggle {
        display: none !important;
    }
    .main-nav {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }
    .menu-toggle {
        display: block !important;
    }
}
.menu-toggle, .close-button {
    color: #3A73C9;
}