/* ==========================================================================
   ECCONEX 2026 - Theme Specific CSS
   ========================================================================== */

/* 1. Layout & Containers complementares
----------------------------------------------------------------------------- */
@media (min-width: 768px) {
    body {
        padding-left: var(--wp--custom--layout--gutter--tablet);
        padding-right: var(--wp--custom--layout--gutter--tablet);
    }
}

@media (min-width: 1024px) {
    body {
        padding-left: var(--wp--custom--layout--gutter--desktop);
        padding-right: var(--wp--custom--layout--gutter--desktop);
    }
}

/* Sections padding responsiveness */
.ecconex-section {
    padding-top: var(--wp--custom--section-spacing--mobile);
    padding-bottom: var(--wp--custom--section-spacing--mobile);
}

@media (min-width: 768px) {
    .ecconex-section {
        padding-top: var(--wp--custom--section-spacing--tablet);
        padding-bottom: var(--wp--custom--section-spacing--tablet);
    }
}

@media (min-width: 1024px) {
    .ecconex-section {
        padding-top: var(--wp--custom--section-spacing--desktop);
        padding-bottom: var(--wp--custom--section-spacing--desktop);
    }
}

/* 2. Interactive States & Accessibility
----------------------------------------------------------------------------- */
a, button, .wp-block-button__link {
    transition: all 0.3s ease;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--azul-ecconex);
    outline-offset: 4px;
}

/* 3. Buttons (Complementos não resolvidos no theme.json)
----------------------------------------------------------------------------- */
/* Primary Hover */
.wp-block-button__link:hover,
.wp-block-button__link:active {
    background-color: var(--wp--preset--color--azul-ecconex) !important;
    color: var(--wp--preset--color--branco) !important;
}

/* Secondary / Outline Button */
.is-style-outline > .wp-block-button__link {
    background-color: transparent !important;
    color: var(--wp--preset--color--azul-ecconex) !important;
    border: 2px solid var(--wp--preset--color--azul-ecconex) !important;
}

.is-style-outline > .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--azul-ecconex) !important;
    color: var(--wp--preset--color--branco) !important;
}

/* Text link / micro CTA */
.is-style-text-link > .wp-block-button__link {
    background: transparent !important;
    color: var(--wp--preset--color--verde-ecconex) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 700;
}

.is-style-text-link > .wp-block-button__link:hover {
    color: var(--wp--preset--color--azul-profundo) !important;
    text-decoration: underline;
}

/* Disabled State */
button:disabled,
.wp-block-button__link[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--wp--preset--color--texto-secundario) !important;
}

/* 4. Cards (Estruturas Genéricas)
----------------------------------------------------------------------------- */
/* Base Card Component (pode ser aplicado a Grupos) */
.ecconex-card {
    background-color: var(--wp--preset--color--branco);
    border: 1px solid var(--wp--preset--color--borda);
    border-radius: var(--wp--custom--radius--md);
    padding: var(--wp--preset--spacing--lg);
    box-shadow: var(--wp--custom--shadow--sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ecconex-card:hover {
    box-shadow: var(--wp--custom--shadow--md);
    transform: translateY(-2px);
}

/* 5. Images 
----------------------------------------------------------------------------- */
/* Ensures images respect object-fit inside blocks */
.wp-block-image img {
    object-fit: cover;
}

.alignfull img {
    border-radius: 0 !important;
}

/* 6. Header & Footer Específicos
----------------------------------------------------------------------------- */
.ecconex-site-header {
    position: fixed; left: 50%; transform: translateX(-50%);
    top: 0;
    z-index: 100;
    background-color: var(--wp--preset--color--branco);
    border-bottom: 1px solid var(--wp--preset--color--borda);
    box-shadow: var(--wp--custom--shadow--sm);
    transition: transform 0.3s ease;
}

.ecconex-header-inner {
    padding-top: var(--wp--preset--spacing--sm);
    padding-bottom: var(--wp--preset--spacing--sm);
}

/* Esconder CTA apenas em telas minúsculas para não acavalar com o logo e o hamburger menu (abaixo de 430px) */
@media (max-width: 480px) {
    .ecconex-header-cta {
        display: none;
    }
}

/* Estilo de links do Footer */
.ecconex-site-footer a,
.ecconex-site-footer .wp-block-navigation-link__content {
    color: var(--wp--preset--color--branco);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ecconex-site-footer a:hover,
.ecconex-site-footer .wp-block-navigation-link__content:hover {
    color: var(--wp--preset--color--verde-ecconex);
}

/* 7. Home Específicos & Responsividade Adicional
----------------------------------------------------------------------------- */
/* Ajuste de colunas (4 itens) em Tablet para ficarem 2x2 */
@media (max-width: 1024px) and (min-width: 768px) {
    .ecconex-pillars .wp-block-columns,
    .ecconex-results .wp-block-columns .wp-block-columns {
        flex-wrap: wrap;
    }
    .ecconex-pillars .wp-block-column,
    .ecconex-results .wp-block-column {
        flex-basis: calc(50% - var(--wp--preset--spacing--md)) !important;
        margin-bottom: var(--wp--preset--spacing--md);
    }
}

/* Ajuste de colunas (3 itens) em Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .ecconex-services .wp-block-columns {
        flex-wrap: wrap;
    }
    .ecconex-services > .wp-block-columns > .wp-block-column {
        flex-basis: 100% !important; /* Title goes full width on tablet */
    }
    .ecconex-services .ecconex-card {
        flex-basis: calc(50% - var(--wp--preset--spacing--md)) !important;
        margin-bottom: var(--wp--preset--spacing--md);
    }
}

/* 8. Refinamentos Visuais - FASE 4.2
----------------------------------------------------------------------------- */
/* Icons loaded via <img> — color is baked into each SVG file */
.ecconex-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--wp--preset--spacing--md);
}
.ecconex-icon img {
    width: 48px;
    height: 48px;
}

.ecconex-card {
    transition: all 0.3s ease;
}
.ecconex-card:hover {
    box-shadow: var(--wp--custom--shadow--md);
    transform: translateY(-4px);
}

/* Methodology Flow */
.ecconex-methodology-step {
    position: relative;
    padding: var(--wp--preset--spacing--lg) !important;
    background: var(--wp--preset--color--branco);
    border: 1px solid var(--wp--preset--color--borda);
    border-radius: var(--wp--custom--radius--md);
    box-shadow: var(--wp--custom--shadow--sm);
    z-index: 2;
}

.ecconex-step-number {
    position: absolute;
    top: -20px;
    right: 15px;
    font-size: 4rem;
    font-weight: 700;
    color: var(--wp--preset--color--fundo-neutro);
    line-height: 1;
    margin: 0 !important;
    z-index: -1;
}

/* Linha conectora Desktop */
@media (min-width: 1024px) {
    .ecconex-methodology-grid {
        position: relative;
    }
    .ecconex-methodology-grid::before {
        content: '';
        position: absolute;
        top: 50px;
        left: 5%;
        width: 90%;
        height: 2px;
        background: var(--wp--preset--color--borda);
        z-index: 1;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .ecconex-methodology-grid {
        flex-wrap: wrap !important;
    }
    .ecconex-methodology-step {
        flex-basis: calc(50% - var(--wp--preset--spacing--md)) !important;
        margin-bottom: var(--wp--preset--spacing--lg);
    }
}

/* 9. FASE 4.5 - APROXIMAÇÃO VISUAL (Mockup 01-home.png)
----------------------------------------------------------------------------- */
/* Eyebrow Line (Linha verde antes do título pequeno) */
.ecconex-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.ecconex-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background-color: var(--wp--preset--color--verde-ecconex);
}

/* Button with Arrow */
.has-arrow .wp-block-button__link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}
.has-arrow .wp-block-button__link:hover::after {
    transform: translateX(4px);
}

/* Icon in light green circle */
.ecconex-icon-circle {
    background-color: rgba(0, 196, 134, 0.1); /* Light green */
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.ecconex-icon-circle img {
    width: 32px;
    height: 32px;
}

/* Pillar Card specific styling */
.ecconex-pillar-card {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    padding: 2.5rem 1.5rem !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ecconex-pillar-card .wp-block-heading {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Services Card specific styling */
.ecconex-service-card {
    padding: 0 !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}
.ecconex-service-card-content {
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ecconex-service-icon-overlap {
    position: absolute;
    top: -32px;
    left: 1.5rem;
    background: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ecconex-service-icon-overlap img {
    width: 28px;
    height: 28px;
}

/* Methodology Enhancements */
.ecconex-methodology-step {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}
.ecconex-step-badge {
    background-color: rgba(0, 196, 134, 0.1);
    color: var(--wp--preset--color--verde-ecconex);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
/* Connecting arrows */
@media (min-width: 1024px) {
    .ecconex-methodology-step:not(:last-child)::after {
        content: '→';
        position: absolute;
        top: 12px;
        right: -15px;
        color: var(--wp--preset--color--verde-ecconex);
        font-size: 1.5rem;
        z-index: 10;
    }
    .ecconex-methodology-grid::before {
        display: none; /* Remove old solid line */
    }
}

/* Results Dividers */
@media (min-width: 768px) {
    .ecconex-stat-card:not(:first-child) {
        border-left: 1px solid rgba(255,255,255,0.2);
        padding-left: 1.5rem;
    }
}

/* Overlaid Info Box */
.ecconex-overlay-box {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--wp--preset--color--azul-profundo);
    color: var(--wp--preset--color--branco);
    padding: 1.5rem;
    max-width: 280px;
    border-top-left-radius: var(--wp--custom--radius--md);
}


/* 10. FASE 4.6 - Header logo fallback & Service cards equal height
----------------------------------------------------------------------------- */
/* When no logo is configured, wp-block-site-logo renders empty. 
   This gives it a minimum visual footprint to prevent header collapse. */
.ecconex-site-header .wp-block-site-logo {
    min-width: 140px;
    min-height: 40px;
}

/* Service cards equal height */
.ecconex-services > .wp-block-columns > .wp-block-column > .wp-block-columns {
    align-items: stretch;
}
.ecconex-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ecconex-service-card .wp-block-image {
    margin: 0;
    overflow: hidden;
    border-radius: var(--wp--custom--radius--md) var(--wp--custom--radius--md) 0 0;
}
.ecconex-service-card .wp-block-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 11. FASE 4.8 - Hero Video Background & Modal
----------------------------------------------------------------------------- */
.ecconex-hero {
    position: relative;
    overflow: hidden;
}

.ecconex-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ecconex-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 65, 0.45);
    z-index: 1;
    pointer-events: none;
}

.ecconex-hero .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* Modal do Vídeo */
.ecconex-video-modal {
    padding: 0;
    border: none;
    border-radius: var(--wp--custom--radius--md);
    background: #000;
    width: 90vw;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
.ecconex-video-modal::backdrop {
    background: rgba(15, 39, 65, 0.85);
}
.ecconex-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
}
.ecconex-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.ecconex-modal-content video {
    width: 100%;
    max-height: 80vh;
    border-radius: var(--wp--custom--radius--md);
    outline: none;
}

/* 12. FASE 5 - VISUAL MASTERING: HEADER & HERO
----------------------------------------------------------------------------- */
/* HEADER STICKY & REFINEMENTS */
.ecconex-site-header {
    position: fixed; left: 50%; transform: translateX(-50%);
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(230, 234, 240, 0.8);
    transition: all 0.3s ease;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Active Menu Item (Início) */
.ecconex-main-nav .wp-block-navigation-item:first-child > a {
    position: relative;
    font-weight: 600;
    color: var(--wp--preset--color--azul-ecconex);
}
.ecconex-main-nav .wp-block-navigation-item:first-child > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--wp--preset--color--verde-ecconex);
    border-radius: 2px;
}

/* Menu links hover state */
.ecconex-main-nav .wp-block-navigation-item > a {
    transition: color 0.2s ease;
}
.ecconex-main-nav .wp-block-navigation-item > a:hover {
    color: var(--wp--preset--color--verde-ecconex);
}

/* HERO REFINEMENTS */
.ecconex-hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Refined Gradient Overlay instead of flat color */
.ecconex-hero::after {
    background: linear-gradient(
        90deg, 
        rgba(15, 39, 65, 0.85) 0%, 
        rgba(15, 39, 65, 0.5) 45%, 
        rgba(15, 39, 65, 0.1) 100%
    );
}

/* Right-side element styling */
.ecconex-hero-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}
.ecconex-hero-play-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}
.ecconex-play-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s ease;
}
.ecconex-play-circle svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    margin-left: 2px;
}
.ecconex-hero-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ecconex-progress-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    position: relative;
}
.ecconex-progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%; /* Indicador de progresso verde */
    background: var(--wp--preset--color--verde-ecconex);
}

/* 13. FASE 6 - VISUAL MASTERING PREMIUM (Header, Hero, Sectors)
----------------------------------------------------------------------------- */
/* ================= HEADER ================= */
.ecconex-site-header {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(200, 210, 224, 0.4);
    box-shadow: 0 4px 20px rgba(15, 39, 65, 0.03);
}

.ecconex-header-inner {
    margin: 0 auto;
}

.ecconex-header-logo-container .wp-block-site-logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Nav Typography */
.ecconex-main-nav .wp-block-navigation-item > a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.8rem;
    color: var(--wp--preset--color--azul-profundo);
}

.ecconex-main-nav .wp-block-navigation-item:first-child > a {
    color: var(--wp--preset--color--verde-ecconex);
}

.ecconex-main-nav .wp-block-navigation-item:first-child > a::after {
    height: 2px;
    bottom: 2px;
    width: 60%;
    left: 20%;
    border-radius: 4px;
}

/* Header Button */
.ecconex-header-cta .wp-block-button__link {
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: none;
    transition: all 0.3s ease;
}
.ecconex-header-cta .wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 39, 65, 0.1);
}

/* ================= HERO ================= */
.ecconex-hero {
    min-height: auto; /* Remove hardcoded 85vh */
    padding-top: 120px;
    padding-bottom: 180px; /* Extra bottom padding for sectors overlap */
}

.ecconex-hero::after {
    /* More sophisticated gradient */
    background: linear-gradient(
        90deg, 
        rgba(15, 39, 65, 0.95) 0%, 
        rgba(15, 39, 65, 0.85) 35%, 
        rgba(15, 39, 65, 0.4) 70%,
        rgba(15, 39, 65, 0.1) 100%
    );
}

.ecconex-hero-content-wrapper {
    align-items: flex-start;
}

.ecconex-hero-h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
    max-width: 17ch; /* Forces the text to break nicely in 3-4 lines */
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.ecconex-eyebrow {
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.ecconex-hero-left p:not(.ecconex-eyebrow) {
    max-width: 580px;
    opacity: 0.85;
    margin-bottom: 2.5rem;
}

/* Hero Buttons */
.ecconex-hero-buttons {
    gap: 1rem;
}

.ecconex-hero-buttons .wp-block-button__link {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ecconex-hero-buttons .is-style-fill .wp-block-button__link {
    background-color: var(--wp--preset--color--verde-ecconex);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 39, 65, 0.15);
}
.ecconex-hero-buttons .is-style-fill .wp-block-button__link:hover {
    background-color: #00a873;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 39, 65, 0.2);
}

.ecconex-hero-buttons .is-style-outline .wp-block-button__link {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ecconex-hero-buttons .is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Hero Right Side (Play + Line) */
.ecconex-hero-right-content {
    margin-top: auto;
    padding-bottom: 2rem;
}
.ecconex-play-circle {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(15, 39, 65, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ecconex-play-circle:hover {
    background: var(--wp--preset--color--verde-ecconex);
    border-color: var(--wp--preset--color--verde-ecconex);
    transform: scale(1.05);
}
.ecconex-hero-support-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-align: right;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ================= SECTORS (Overlap) ================= */
.ecconex-sectors {
    background-color: transparent !important;
    padding-top: 0 !important;
    margin-top: -120px; /* Overlap with Hero */
    position: relative;
    z-index: 10;
}

.ecconex-sectors-header {
    background: var(--wp--preset--color--fundo-neutro);
    padding: 3rem 4rem !important;
    border-radius: var(--wp--custom--radius--lg);
    box-shadow: 0 10px 40px rgba(15, 39, 65, 0.08);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
/* Subtle geometric accent for the header */
.ecconex-sectors-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 196, 134, 0.03));
    pointer-events: none;
}

.ecconex-sectors-header .wp-block-heading {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.01em;
}

/* Cards Grid */
.ecconex-sectors-grid {
    padding-bottom: 4rem;
}
.ecconex-sector-card {
    background: #fff;
    border-radius: var(--wp--custom--radius--md);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(15, 39, 65, 0.04);
    border: 1px solid rgba(230, 234, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
/* Green bottom line on hover */
.ecconex-sector-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--wp--preset--color--verde-ecconex);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.ecconex-sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 39, 65, 0.08);
    border-color: transparent;
}
.ecconex-sector-card:hover::after {
    transform: scaleX(1);
}

.ecconex-sector-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--wp--preset--color--verde-ecconex);
}
.ecconex-sector-icon svg {
    width: 100%;
    height: 100%;
}

.ecconex-sector-card .wp-block-heading {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.ecconex-sector-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ecconex-hero {
        padding-top: 100px;
        padding-bottom: 140px;
    }
    .ecconex-sectors {
        margin-top: -80px;
    }
    .ecconex-sectors-header {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .ecconex-site-header {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    .ecconex-hero-right-content {
        align-items: flex-start;
        margin-top: 2rem;
    }
    .ecconex-hero-progress {
        flex-direction: column;
        align-items: flex-start;
    }
    .ecconex-hero-support-text {
        text-align: left;
    }
    .ecconex-hero {
        padding-top: 80px;
        padding-bottom: 100px;
    }
    .ecconex-sectors {
        margin-top: -40px;
    }
    .ecconex-sectors-header .wp-block-heading {
        font-size: 1.8rem;
    }
}

/* 14. FASE 6.1B - CORREÇÃO CRÍTICA DO TOPO
----------------------------------------------------------------------------- */
/* HEADER */
.ecconex-site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
}
.ecconex-header-logo-container {
    flex: 0 0 auto;
}
.ecconex-main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}
.ecconex-header-cta {
    flex: 0 0 auto;
}
.wp-block-site-title {
    margin: 0;
}
.wp-block-site-title a {
    color: var(--wp--preset--color--azul-profundo) !important;
    text-decoration: none !important;
}

/* HERO */
.ecconex-hero {
    padding-top: 100px !important;
    padding-bottom: 150px !important; /* Slightly reduced */
}
.ecconex-hero::after {
    /* Refined Overlay: Left side dark enough, right side completely transparent */
    background: linear-gradient(
        90deg, 
        rgba(15, 39, 65, 0.88) 0%, 
        rgba(15, 39, 65, 0.75) 45%, 
        rgba(15, 39, 65, 0.3) 65%,
        rgba(15, 39, 65, 0.05) 100%
    ) !important;
}
.ecconex-hero-h1 {
    font-size: clamp(2rem, 3.8vw, 3rem) !important; /* Slightly reduced to guarantee 3 lines */
    line-height: 1.12 !important;
    max-width: 620px !important; /* Explicit width constraint instead of ch */
}

/* SECONDARY CTA (Outline) */
.ecconex-hero-buttons .is-style-outline .wp-block-button__link {
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}
.ecconex-hero-buttons .is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}

/* PLAY BUTTON & SUPPORT TEXT */
.ecconex-play-circle {
    width: 48px !important;
    height: 48px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
}
.ecconex-hero-support-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.85rem !important;
}
.ecconex-progress-bar {
    height: 1px !important; /* Extremely thin */
}
.ecconex-progress-bar::after {
    height: 100% !important;
    background: var(--wp--preset--color--verde-ecconex) !important;
}


/* 15. FASE 6.2 - VISUAL MASTERING (SEÇÕES INTERNAS)
----------------------------------------------------------------------------- */
/* ================= 3. PRINCIPAIS SOLUÇÕES ================= */
.ecconex-services {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.ecconex-service-card {
    padding: 0 !important; /* Remove generic card padding */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(230, 234, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ecconex-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 39, 65, 0.08);
}
.ecconex-service-card .wp-block-image {
    margin: 0;
    width: 100%;
    height: 220px;
}
.ecconex-service-card .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Remove default image radius */
}
.ecconex-service-card-content {
    padding: 2rem !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ecconex-service-card-content .wp-block-heading {
    font-size: 1.25rem !important;
    font-weight: 700;
    margin-bottom: 1rem !important;
}
/* For the bottom 3 cards without images, add a top accent line */
.ecconex-service-card:not(:has(.wp-block-image)) {
    border-top: 4px solid var(--wp--preset--color--verde-ecconex) !important;
}

/* ================= 4. POR QUE ECCONEX ================= */
.ecconex-why {
    background-color: var(--wp--preset--color--fundo-neutro);
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.ecconex-why {
    counter-reset: why-counter;
}
.ecconex-why .ecconex-card {
    position: relative;
    padding-top: 3.5rem !important; /* Space for the number */
}
.ecconex-why .ecconex-card::before {
    counter-increment: why-counter;
    content: "0" counter(why-counter);
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--wp--preset--color--verde-ecconex);
    letter-spacing: 0.1em;
}

/* ================= 5. SOFTWARE ================= */
.ecconex-software {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.ecconex-software .wp-block-group.has-azul-ecconex-background-color {
    /* Make the empty software block look like a premium tech placeholder */
    background: linear-gradient(135deg, var(--wp--preset--color--azul-ecconex) 0%, rgba(15, 39, 65, 0.4) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    min-height: 400px;
    position: relative;
    overflow: hidden;
}
.ecconex-software .wp-block-group.has-azul-ecconex-background-color::after {
    /* Subtle grid overlay for tech feel */
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

/* ================= 6. METODOLOGIA ================= */
.ecconex-methodology {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.ecconex-methodology-grid {
    position: relative;
}
/* Connecting line behind steps */
.ecconex-methodology-grid::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(230, 234, 240, 0.8);
    z-index: 0;
}
@media (max-width: 768px) {
    .ecconex-methodology-grid::before {
        display: none;
    }
}
.ecconex-methodology-step {
    background: #fff;
    border: none;
    box-shadow: none;
    padding: 0 !important;
    position: relative;
    z-index: 1;
}
.ecconex-step-badge {
    width: 48px;
    height: 48px;
    background: var(--wp--preset--color--verde-ecconex);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border: 4px solid #fff; /* Cuts through the line */
}

/* ================= 7. EXPERIÊNCIA TÉCNICA ================= */
.ecconex-experience {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.ecconex-overlay-box {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: rgba(15, 39, 65, 0.95) !important; /* Override inline */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    border-radius: var(--wp--custom--radius--sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 320px;
}
@media (max-width: 768px) {
    .ecconex-overlay-box {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: -2rem;
        margin-left: 1rem;
        margin-right: 1rem;
        width: auto;
    }
}

/* ================= 8. INDICADORES ================= */
.ecconex-results .wp-block-cover__inner-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.ecconex-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem !important;
    border-radius: var(--wp--custom--radius--sm);
    transition: background 0.3s ease;
}
.ecconex-stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
}
.ecconex-stat-card .wp-block-heading {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
}

/* ================= 9. CONTEÚDO TÉCNICO ================= */
.ecconex-technical {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.ecconex-technical .ecconex-card {
    border-top: 4px solid var(--wp--preset--color--azul-ecconex);
    transition: transform 0.3s ease;
}
.ecconex-technical .ecconex-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--wp--preset--color--verde-ecconex);
}

/* ================= 10. CTA FINAL ================= */
.ecconex-cta {
    min-height: 400px;
}
.ecconex-cta .wp-block-cover__inner-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.ecconex-cta .wp-block-buttons {
    gap: 1rem;
}
/* CTA OUTLINE CONSISTENCY */
.ecconex-cta .is-style-outline .wp-block-button__link {
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}
.ecconex-cta .is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}

/* 16. FASE 6.3 - SOFTWARE E INDICADORES (MOCKUPS)
----------------------------------------------------------------------------- */
/* ================= SOFTWARE MOCKUP ================= */
.ecconex-ui-mockup {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 39, 65, 0.4);
    overflow: hidden;
    font-family: var(--wp--preset--font-family--source-sans);
    color: var(--wp--preset--color--azul-profundo);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ui-mockup-header {
    background: var(--wp--preset--color--fundo-neutro);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(230, 234, 240, 1);
}
.ui-mockup-logo {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
}
.ui-mockup-nav {
    font-size: 0.8rem;
    color: var(--wp--preset--color--texto-secundario);
    font-weight: 600;
}
.ui-mockup-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ui-mockup-title span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--wp--preset--color--texto-secundario);
    font-family: var(--wp--preset--font-family--source-sans);
}
.ui-mockup-kpis {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
}
.ui-kpi-card {
    flex: 1;
    background: var(--wp--preset--color--fundo-neutro);
    border: 1px solid rgba(230, 234, 240, 1);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}
.ui-kpi-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--texto-secundario);
    margin-bottom: 0.5rem;
}
.ui-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--wp--preset--font-family--montserrat);
}
.ui-kpi-value.ui-alert {
    color: #d94545;
}
.ui-mockup-table {
    padding: 1rem 1.5rem 1.5rem;
}
.ui-table-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(230, 234, 240, 1);
    align-items: center;
}
.ui-table-row:last-child {
    border-bottom: none;
}
.ui-table-head {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wp--preset--color--texto-secundario);
    text-transform: uppercase;
    border-bottom: 2px solid rgba(230, 234, 240, 1);
}
.ui-col {
    flex: 1;
    font-size: 0.85rem;
}
.ui-col:first-child {
    flex: 1.5;
    font-weight: 600;
}
.ui-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.ui-badge-green {
    background: rgba(0, 196, 134, 0.15);
    color: #007a53;
}
.ui-badge-yellow {
    background: rgba(245, 166, 35, 0.15);
    color: #9e6900;
}
.ui-progress-mini {
    height: 6px;
    background: rgba(230, 234, 240, 1);
    border-radius: 3px;
    overflow: hidden;
    width: 80%;
}
.ui-progress-bar {
    height: 100%;
    background: var(--wp--preset--color--verde-ecconex);
}

/* ================= INDICADORES E RESULTADOS MATRIX ================= */
.ecconex-results-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.ecconex-results-matrix .ecconex-stat-card:nth-child(5) {
    grid-column: 1 / -1;
}
.ecconex-stat-card {
    background: rgba(255, 255, 255, 0.04) !important; /* Override inline */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem !important;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.stat-icon {
    width: 24px;
    height: 24px;
    color: var(--wp--preset--color--verde-ecconex);
}
.stat-icon svg {
    width: 100%;
    height: 100%;
}
.stat-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--wp--preset--font-family--source-sans);
    text-transform: uppercase;
}
.stat-badge-blue {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-badge-green {
    background: rgba(0, 196, 134, 0.2);
    color: var(--wp--preset--color--verde-ecconex);
    border: 1px solid rgba(0, 196, 134, 0.3);
}
.stat-badge-yellow {
    background: rgba(245, 166, 35, 0.2);
    color: #ffd76b;
    border: 1px solid rgba(245, 166, 35, 0.3);
}
.stat-title {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.stat-desc {
    font-family: var(--wp--preset--font-family--source-sans);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 1024px) {
    .ecconex-software-mockup-col {
        margin-top: 3rem;
    }
}
@media (max-width: 768px) {
    .ecconex-results-matrix {
        grid-template-columns: 1fr;
    }
    .ecconex-results-matrix .ecconex-stat-card:nth-child(5) {
        grid-column: 1;
    }
    .ui-mockup-kpis {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    .ui-table-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .ui-col {
        width: 100%;
    }
    .ui-table-head {
        display: none; /* Hide header on mobile, stack content */
    }
    .ui-table-row {
        padding: 1rem 0;
    }
}

/* 17. FASE 6.4 - POR QUE ECCONEX E METODOLOGIA
----------------------------------------------------------------------------- */
/* ================= POR QUE ECCONEX (EDITORIAL) ================= */
.ecconex-why-editorial {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: #ffffff; /* Cleanup background */
}
.ecconex-why-list {
    display: flex;
    flex-direction: column;
    counter-reset: why-editorial-counter;
}
.ecconex-why-item {
    position: relative;
    padding: 2rem 0 2rem 3rem;
    border-bottom: 1px solid rgba(230, 234, 240, 0.8);
}
.ecconex-why-item:first-child {
    padding-top: 0;
}
.ecconex-why-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ecconex-why-item::before {
    counter-increment: why-editorial-counter;
    content: "0" counter(why-editorial-counter);
    position: absolute;
    left: 0;
    top: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--wp--preset--color--verde-ecconex);
    font-family: var(--wp--preset--font-family--source-sans);
    letter-spacing: 0.1em;
}
.ecconex-why-item:first-child::before {
    top: 0;
}
.why-title {
    font-size: 1.15rem !important;
    color: var(--wp--preset--color--azul-profundo) !important;
    margin-bottom: 0.75rem !important;
    font-weight: 700;
    line-height: 1.3;
}
.why-desc {
    font-size: 0.95rem !important;
    color: var(--wp--preset--color--texto-secundario) !important;
    line-height: 1.5;
    margin: 0;
}

/* ================= METODOLOGIA (TIMELINE) ================= */
.ecconex-methodology-timeline {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: var(--wp--preset--color--fundo-neutro); /* Distinct from Why Ecconex */
}
.ecconex-timeline-grid {
    position: relative;
    margin-top: 2rem;
}
.ecconex-timeline-step {
    position: relative;
    padding: 0 1rem;
    flex: 1;
}
.timeline-node {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-dot {
    width: 12px;
    height: 12px;
    background-color: var(--wp--preset--color--verde-ecconex);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--wp--preset--color--fundo-neutro); /* Creates space around dot */
}
.timeline-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wp--preset--color--texto-secundario);
    margin-left: 0.75rem;
    font-family: var(--wp--preset--font-family--source-sans);
    letter-spacing: 0.05em;
}
.timeline-line {
    position: absolute;
    left: 12px; /* starts from dot */
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 2rem);
    height: 1px;
    background-color: rgba(15, 39, 65, 0.15); /* Technical line */
    z-index: 1;
}
.timeline-title {
    font-size: 1.1rem !important;
    color: var(--wp--preset--color--azul-profundo) !important;
    margin-bottom: 0.75rem !important;
    font-weight: 700;
}
.timeline-desc {
    font-size: 0.9rem !important;
    color: var(--wp--preset--color--texto-secundario) !important;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .ecconex-timeline-grid {
        flex-wrap: wrap;
    }
    .ecconex-timeline-step {
        flex-basis: 50%;
        margin-bottom: 2rem;
    }
    .ecconex-timeline-step:nth-child(2) .timeline-line {
        display: none; /* break line at end of row in 2x2 */
    }
}
@media (max-width: 768px) {
    .ecconex-why-item {
        padding: 0;
    }
    .ecconex-why-item::before {
        position: relative;
        display: block;
        top: 0;
        margin-bottom: 0.5rem;
    }
    
    .ecconex-timeline-step {
        flex-basis: 100%;
        display: flex;
        flex-direction: column;
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }
    .timeline-node {
        position: absolute;
        left: 0;
        top: 6px;
        margin-bottom: 0;
    }
    .timeline-number {
        display: none; /* Keep clean on mobile, just dots */
    }
    .timeline-line {
        left: 5px;
        top: 12px;
        width: 1px;
        height: calc(100% + 2rem);
        transform: none;
    }
    .ecconex-timeline-step:last-child .timeline-line {
        display: none;
    }
}

/* 18. FASE 6.5 - SOLUÇÕES E CONTEÚDO TÉCNICO
----------------------------------------------------------------------------- */
/* ================= PRINCIPAIS SOLUÇÕES ================= */
.ecconex-service-card {
    border-radius: 12px !important;
    border: 1px solid rgba(230, 234, 240, 1) !important;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 39, 65, 0.04) !important;
}
.ecconex-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 39, 65, 0.08) !important;
}
.ecconex-service-card .wp-block-image {
    height: auto !important;
    aspect-ratio: 16 / 9;
}
.ecconex-service-card .wp-block-image img {
    border-radius: 12px 12px 0 0 !important;
}
.ecconex-service-card-content {
    padding: 2rem 1.5rem !important;
}

/* ================= SOLUÇÕES ESPECIALIZADAS ================= */
.ecconex-service-specialized {
    background: #ffffff;
    border: 1px solid rgba(230, 234, 240, 1);
    border-left: 3px solid var(--wp--preset--color--verde-ecconex);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}
.ecconex-service-specialized:hover {
    background: var(--wp--preset--color--fundo-neutro);
}
.specialized-icon {
    width: 32px;
    height: 32px;
    color: var(--wp--preset--color--azul-ecconex);
    margin-bottom: 1rem;
}
.specialized-icon svg {
    width: 100%;
    height: 100%;
}
.ecconex-service-specialized .wp-block-heading {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700;
}

/* ================= CONTEÚDO TÉCNICO (EDITORIAL) ================= */
.ecconex-technical {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #ffffff;
}
.ecconex-article-card {
    border-top: 2px solid rgba(230, 234, 240, 1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.3s ease;
}
.ecconex-article-card:hover {
    border-top-color: var(--wp--preset--color--verde-ecconex);
}
.article-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wp--preset--color--verde-ecconex);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    font-family: var(--wp--preset--font-family--source-sans);
}
.article-title {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--wp--preset--color--azul-profundo) !important;
    line-height: 1.3;
    margin-bottom: 1rem !important;
    font-family: var(--wp--preset--font-family--montserrat);
}
.article-desc {
    font-size: 0.95rem;
    color: var(--wp--preset--color--texto-secundario);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}
.article-action {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wp--preset--color--azul-ecconex);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--wp--preset--font-family--source-sans);
}
.article-action .arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}
.ecconex-article-card:hover .article-action .arrow {
    transform: translateX(4px);
    color: var(--wp--preset--color--verde-ecconex);
}

@media (max-width: 1024px) {
    .ecconex-service-specialized {
        margin-bottom: 1rem;
    }
}

/* 19. FASE 6.5B - SANEAMENTO CTAS EDITORIAIS
----------------------------------------------------------------------------- */
.article-action-inactive {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wp--preset--color--texto-secundario);
    font-family: var(--wp--preset--font-family--source-sans);
    opacity: 0.6;
    cursor: default; /* No pointer */
    user-select: none;
}

/* 20. FASE 6.6 - EXPERIÊNCIA TÉCNICA E CTA FINAL
----------------------------------------------------------------------------- */
/* ================= EXPERIÊNCIA TÉCNICA ================= */
.ecconex-experience {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.ecconex-experience-highlight {
    background-color: var(--wp--preset--color--fundo-neutro);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--wp--preset--color--verde-ecconex);
}
.highlight-title {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--wp--preset--color--azul-profundo) !important;
    margin-bottom: 1rem !important;
}
.highlight-desc {
    font-size: 0.95rem;
    color: var(--wp--preset--color--texto-secundario);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.highlight-list {
    font-size: 0.95rem;
    color: var(--wp--preset--color--texto-secundario);
    padding-left: 1.25rem;
    margin-bottom: 0;
}
.highlight-list li {
    margin-bottom: 0.5rem;
}

.ecconex-resp-tecnica {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 39, 65, 0.1);
}
.resp-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--verde-ecconex);
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: var(--wp--preset--font-family--source-sans);
}
.resp-name {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: var(--wp--preset--color--azul-profundo) !important;
    margin-bottom: 0.25rem !important;
    font-family: var(--wp--preset--font-family--montserrat);
}
.resp-role {
    font-size: 0.85rem;
    color: var(--wp--preset--color--texto-secundario);
    margin: 0;
}

/* ================= CTA FINAL ================= */
.ecconex-cta-final .cta-whatsapp .wp-block-button__link {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}
.ecconex-cta-final .cta-whatsapp .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
}

@media (max-width: 768px) {
    .ecconex-experience-highlight {
        padding: 1.5rem;
    }
}

/* 21. FASE 6.7 - HEADER E FOOTER INSTITUCIONAIS
----------------------------------------------------------------------------- */
/* ================= HEADER FLUTUANTE ================= */
.ecconex-site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(15, 39, 65, 0.08);
    border: 1px solid rgba(15, 39, 65, 0.05);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    position: fixed; left: 50%; transform: translateX(-50%);
    top: 24px;
    z-index: 1000;
    margin: 24px auto 0;
    max-width: var(--wp--custom--width--wide, 1200px) !important;
    width: calc(100% - 48px);
    transition: all 0.3s ease;
}

.ecconex-header-logo-container img {
    max-width: 160px;
    height: auto;
    display: block;
}

.ecconex-main-nav .wp-block-navigation-item__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wp--preset--color--azul-profundo);
    font-family: var(--wp--preset--font-family--source-sans);
}

.ecconex-main-nav .wp-block-navigation-item:hover .wp-block-navigation-item__label {
    color: var(--wp--preset--color--verde-ecconex);
}

/* ================= FOOTER ================= */
.ecconex-site-footer {
    border-top: 5px solid var(--wp--preset--color--verde-ecconex);
}
.ecconex-site-footer .wp-block-navigation-item__label {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}
.ecconex-site-footer .wp-block-navigation-item:hover .wp-block-navigation-item__label {
    color: var(--wp--preset--color--verde-ecconex);
}
.ecconex-site-footer .wp-block-navigation {
    gap: 0.5rem;
}

@media (max-width: 1024px) {
    .ecconex-header-cta {
        display: none;
    }
}
@media (max-width: 768px) {
    .ecconex-site-header {
        top: 16px;
        margin-top: 16px;
        width: calc(100% - 32px);
        padding: 0.75rem 1rem;
    }
    .ecconex-site-footer .wp-block-columns {
        flex-direction: column;
    }
    .ecconex-site-footer .wp-block-column {
        margin-bottom: 2rem;
    }
    .ecconex-site-footer .wp-block-column:last-child {
        margin-bottom: 0;
    }
}

/* ================= HERO OVERLAY FIX ================= */
.ecconex-hero {
    margin-top: 0 !important;
    padding-top: 140px !important; /* Compensa o topo para não cobrir o conteúdo */
}
@media (max-width: 768px) {
    .ecconex-hero {
        margin-top: 0 !important;
        padding-top: 100px !important;
    }
}

/* ================= SCROLL MARGINS ================= */
.ecconex-section, .ecconex-hero, .ecconex-sectors, .ecconex-technical, .ecconex-experience, #solucoes {
    scroll-margin-top: 100px;
}

/* 22. FASE 6.8 - INTERNATIONAL QUALITY PASS
----------------------------------------------------------------------------- */
/* ================= CORREÇÃO 1 & 2: HEADER & HERO ================= */
.ecconex-site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: var(--wp--custom--width--wide, 1200px) !important;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(15, 39, 65, 0.05);
    border: 1px solid rgba(15, 39, 65, 0.04);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    z-index: 9999;
    margin: 0 !important;
}
.ecconex-hero {
    margin-top: 0 !important;
    padding-top: 130px !important; /* Compensar Header Fixed */
}
@media (max-width: 768px) {
    .ecconex-site-header {
        top: 12px;
        width: calc(100% - 24px);
        padding: 0.5rem 1rem;
    }
    .ecconex-hero {
        padding-top: 110px !important;
    }
}

/* ================= CORREÇÃO 3 & 4: SETORES ================= */
.ecconex-sectors {
    margin-top: -100px; /* Reduzir overlap para adequar ao novo Hero */
}
.ecconex-sectors-header {
    padding: 2.5rem 3rem !important;
    margin-bottom: 1.5rem;
}
.ecconex-sectors-grid {
    padding-bottom: 1rem; /* Reduz whitespace com Soluções */
}
.ecconex-sector-card {
    padding: 2rem 1.5rem; /* Reduz padding interno dos cards */
}
.ecconex-sector-icon {
    margin-bottom: 1rem !important;
}

/* ================= CORREÇÃO 5: PRINCIPAIS SOLUÇÕES ================= */
.ecconex-services {
    padding-top: 1rem !important;
}
.ecconex-service-card-content {
    padding: 1.5rem !important; /* Ajuste sutil de padding */
}

/* ================= CORREÇÃO 6: POR QUE ECCONEX ================= */
/* Remover Sticky se a janela for muito pequena (ex: laptop baixo) */
@media (max-height: 800px) {
    .ecconex-why-editorial .wp-block-column:first-child {
        position: relative !important;
        top: 0 !important;
    }
}
.ecconex-why-item {
    margin-bottom: 2.5rem !important; /* Densidade */
}

/* ================= CORREÇÃO 7: SOFTWARE ECCONEX ================= */
.ecconex-ui-mockup {
    transform: scale(1.05);
    transform-origin: center right;
}
.ecconex-software {
    padding-bottom: 2rem !important; /* Reduz espaço azul inútil */
}

/* ================= CORREÇÃO 8: METODOLOGIA ================= */
.ecconex-methodology-intro {
    max-width: 760px;
    margin: 0 auto 3rem auto !important;
    text-align: center;
}
.ecconex-methodology-intro h2 {
    font-size: 2.2rem !important;
}
/* Alinhamento dos steps */
.ecconex-timeline-step .wp-block-heading,
.ecconex-timeline-step p {
    text-align: left !important;
}
.ecconex-timeline-grid {
    margin-top: 2rem !important;
}

/* ================= CORREÇÃO 10: INDICADORES (MOBILE) ================= */
@media (max-width: 768px) {
    .ecconex-results {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .ecconex-stat-card {
        padding: 1rem !important;
        gap: 1rem !important;
    }
    .ecconex-stat-card .wp-block-heading {
        font-size: 1.5rem !important; /* Ligeiramente menor */
    }
}

/* ================= CORREÇÃO 11: CONTEÚDO TÉCNICO ================= */
.article-action-inactive {
    opacity: 0.35; /* Tornar estado inativo ainda mais discreto */
}

/* ================= CORREÇÃO 12: CTA FINAL ================= */
.ecconex-cta-final {
    min-height: 50vh !important;
}

/* ================= MOBILE DENSITY PASS ================= */
@media (max-width: 768px) {
    .ecconex-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .wp-block-columns {
        gap: 1.5rem !important;
    }
    .ecconex-service-card-content, .ecconex-service-specialized {
        padding: 1.25rem !important;
    }
}


/* Fix mobile padding for Sectors Header */
@media (max-width: 768px) {
    .ecconex-sectors-header {
        padding: 1.5rem !important;
    }
}

/* ================= CORREÇÃO LOGOS HEADER/FOOTER ================= */
.ecconex-header-logo-container .wp-block-image {
    margin: 0;
}
.ecconex-header-logo-container img {
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
}

.ecconex-footer-logo {
    margin-bottom: 1rem;
}
.ecconex-footer-logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
}
