:root {
    --primary-color: #19422d; /* Dark green */
    --secondary-color: #00a650; /* Vibrant green */
    --accent-color: #e6f6ec;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f4f7f5;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(0,166,80,0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 12%, rgba(0, 166, 80, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 90% 45%, rgba(0, 166, 80, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 20% 85%, rgba(25, 66, 45, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d281a 100%);
    color: var(--white);
    padding: 80px 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 166, 80, 0.15), var(--shadow);
    margin-bottom: -40px;
    position: relative;
    border-bottom: 3px solid rgba(0, 166, 80, 0.4);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 4px solid rgba(255,255,255,0.1);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #bbf7d0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-stats-row {
    margin-bottom: 18px;
}

.total-interactions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.total-interactions .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #4ade80;
    margin-right: 10px;
    line-height: 1;
}

.total-interactions .label {
    font-weight: 600;
    font-size: 1rem;
    margin-right: 12px;
}

.growth-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00a650;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 166, 80, 0.4);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.92rem;
    color: #e2f4ea;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-pill strong {
    color: #ffffff;
}

.hero-pill .pill-growth {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.hero-pill.highlight {
    background: rgba(0, 166, 80, 0.25);
    border-color: rgba(74, 222, 128, 0.4);
}

.hero-pill.highlight .pill-growth.highlight {
    background: #00a650;
    color: #ffffff;
}

/* Section Header Generic */
.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 760px;
    margin: 0 auto;
}

/* Discovery Section */
.discovery-section {
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.discovery-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

.discovery-kpi-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    display: flex;
    flex-direction: column;
}

.discovery-kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.discovery-kpi-card.highlight-card {
    background: linear-gradient(150deg, #ffffff 0%, #edf9f2 100%);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 12px 35px rgba(0, 166, 80, 0.16);
}

.discovery-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.discovery-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.discovery-kpi-card.highlight-card .discovery-kpi-icon {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 6px 15px rgba(0, 166, 80, 0.35);
}

.trend-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e8f8ed;
    color: #128243;
}

.trend-tag.highlight {
    background: #00a650;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 166, 80, 0.3);
}

.discovery-kpi-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.discovery-kpi-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.discovery-kpi-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: auto;
}

/* Split Grid: Devices and Strategic Pillars */
.discovery-split-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr;
    gap: 28px;
    margin-bottom: 30px;
}

.discovery-box {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.discovery-box-header {
    margin-bottom: 22px;
}

.discovery-box-header h3 {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discovery-box-header p {
    color: var(--text-light);
    font-size: 0.92rem;
}

.device-chart-wrapper {
    position: relative;
    max-width: 250px;
    margin: 0 auto 24px auto;
}

.donut-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.donut-center-info .center-val {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.donut-center-info .center-lbl {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 4px;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-item {
    background: #f9fbf9;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #eef3ef;
    transition: var(--transition);
}

.platform-item:hover {
    background: #f0f7f2;
    border-color: #cde7d5;
}

.platform-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.platform-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.platform-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.platform-count {
    font-weight: 700;
    color: var(--primary-color);
}

.platform-count span {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 4px;
}

.platform-progress-bg {
    background: #e5ece6;
    height: 7px;
    border-radius: 10px;
    overflow: hidden;
}

.platform-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.platform-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed #e2eae4;
}

.summary-tag {
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Strategic Pillars */
.strategic-pillars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pillar-card {
    display: flex;
    gap: 16px;
    background: #fbfdfc;
    border: 1px solid #e7eee9;
    padding: 16px 20px;
    border-radius: 14px;
    transition: var(--transition);
}

.pillar-card:hover {
    background: #ffffff;
    border-color: #a8dfbc;
    box-shadow: 0 6px 20px rgba(0, 166, 80, 0.08);
    transform: translateX(4px);
}

.pillar-card.special-highlight {
    background: #f2faf5;
    border-color: #b3e7c8;
}

.pillar-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pillar-card.special-highlight .pillar-icon-box {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 166, 80, 0.3);
}

.pillar-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pillar-badge {
    background: #dff5e7;
    color: #0b7036;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.pillar-content p {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Funnel Summary Banner */
.funnel-banner {
    margin-top: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d281a 100%);
    color: var(--white);
    padding: 24px 30px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    gap: 20px;
}

.funnel-banner-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnel-banner-text p {
    font-size: 0.92rem;
    opacity: 0.88;
}

.funnel-banner-metrics {
    display: flex;
    gap: 20px;
    align-items: center;
}

.funnel-stat {
    text-align: center;
}

.funnel-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #4ade80;
    display: block;
    line-height: 1.1;
}

.funnel-stat-lbl {
    font-size: 0.75rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.funnel-stat-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
}

/* Overview Cards */
.overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card p {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.card .percentage {
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--accent-color);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* Section Transition Dividers na Cor Verde da Logo */
.section-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    padding: 0 20px;
}

.transition-glow {
    position: absolute;
    width: 240px;
    height: 32px;
    background: radial-gradient(circle, rgba(0, 166, 80, 0.35) 0%, rgba(0, 166, 80, 0) 70%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 1;
}

.transition-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 166, 80, 0.3), #00a650, rgba(0, 166, 80, 0.3), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 166, 80, 0.3);
    position: relative;
    z-index: 2;
}

.transition-badge {
    position: relative;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #e8f8ed 100%);
    border: 2px solid #00a650;
    color: #00a650;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin: 0 16px;
    box-shadow: 0 4px 15px rgba(0, 166, 80, 0.22), 0 0 0 4px rgba(0, 166, 80, 0.1);
    transition: var(--transition);
    cursor: default;
}

.transition-badge:hover {
    transform: scale(1.15) rotate(15deg);
    background: #00a650;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 166, 80, 0.45);
}

.transition-badge .badge-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px dashed rgba(0, 166, 80, 0.45);
    animation: rotateRing 14s linear infinite;
}

@keyframes rotateRing {
    to { transform: rotate(360deg); }
}

/* Footer Transition Wave */
.footer-transition-wave {
    line-height: 0;
    margin-top: 60px;
    margin-bottom: -1px;
    overflow: hidden;
}

.footer-transition-wave svg {
    display: block;
    width: 100%;
    height: 45px;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.chart-container {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.chart-header-block {
    margin-bottom: 20px;
}

.chart-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.chart-container h2 {
    color: var(--primary-color);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0;
}

.chart-badge-highlight {
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 166, 80, 0.25);
}

.chart-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Canvas Wrappers & Alturas Flexíveis */
.chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    flex: 1;
}

.chart-canvas-wrapper.line-canvas-wrapper {
    height: 360px;
    min-height: 340px;
}

/* Controles de Filtros da Linha */
.line-chart-controls {
    margin-bottom: 16px;
}

.chart-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chart-filter-btn {
    background: #f1f6f3;
    border: 1px solid #d8e5dc;
    color: #334155;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.chart-filter-btn:hover {
    background: #e2f2e7;
    border-color: #a4dcba;
    color: var(--primary-color);
    transform: translateY(-1px);
}

.chart-filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(25, 66, 45, 0.25);
}

.chart-filter-btn .btn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.chart-filter-btn .btn-indicator-all {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a650, #0284c7, #d97706);
    display: inline-block;
}

.chart-mobile-helper {
    display: none;
    margin-top: 14px;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    background: #f8fbf9;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px dashed #ceddd2;
}

/* Insights Section */
.insights {
    margin-top: 60px;
}

.insights h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

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

.insight-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.insight-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.insight-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.insight-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Portfolio Section */
.portfolio-section {
    margin-top: 60px;
    margin-bottom: 60px;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.portfolio-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.portfolio-section > p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Seletor de Abas para Computadores (Desktop) */
.desktop-view-tabs {
    display: inline-flex;
    background: #edf5f0;
    padding: 5px;
    border-radius: 30px;
    margin-bottom: 25px;
    gap: 6px;
    border: 1px solid #d4e7dc;
}

.desktop-tab-btn {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: #4b6355;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.desktop-tab-btn:hover {
    color: var(--primary-color);
}

.desktop-tab-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 166, 80, 0.15);
    font-weight: 700;
}

/* Portfolio Desktop Viewer (Padrão para Computadores) */
.portfolio-desktop-viewer {
    display: block;
}

.pdf-container {
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    margin-bottom: 30px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* ===================================================
   PORTFÓLIO: GALERIA INTERATIVA (MOBILE & RESPONSIVA)
   =================================================== */

.portfolio-interactive-gallery {
    display: none; /* Padrão Desktop oculta; media query ativa no mobile */
    text-align: left;
}

/* Barra Superior de Controle */
.gallery-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2eee6;
}

.gallery-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f7ec;
    color: #0b7a3c;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #bce6cc;
}

.gallery-view-switcher {
    display: flex;
    background: #edf5f0;
    padding: 4px;
    border-radius: 25px;
    gap: 4px;
}

.gallery-switch-btn {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4b6355;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-switch-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

/* Status da Prancha no Leitor */
.gallery-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #334155;
}

.gallery-page-indicator strong {
    color: var(--primary-color);
    font-size: 1.15rem;
}

.gallery-arts-tag {
    background: #eef8f2;
    color: var(--secondary-color);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    border: 1px solid #cbe9d6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Quadro da Imagem Principal */
.gallery-canvas-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 2px solid rgba(0, 166, 80, 0.22);
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y pinch-zoom;
}

.gallery-img-wrapper {
    position: relative;
    cursor: zoom-in;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fbf9;
}

.gallery-main-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.gallery-zoom-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 4;
    pointer-events: none;
}

.zoom-pill {
    background: rgba(25, 66, 45, 0.88);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Setas Flutuantes sobre a Imagem */
.gallery-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(25, 66, 45, 0.82);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 8;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.gallery-arrow-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.08);
}

.gallery-arrow-btn.prev { left: 12px; }
.gallery-arrow-btn.next { right: 12px; }

.gallery-arrow-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Botões Inferiores de Navegação */
.gallery-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 10px;
}

.btn-gallery-action {
    background: #ffffff;
    border: 1.5px solid #cfe2d6;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 18px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-gallery-action:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-gallery-action:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.swipe-hint {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: center;
}

/* Tira Horizontal de Miniaturas (Thumbnails Strip) */
.gallery-thumbnails-wrapper {
    margin-top: 22px;
    background: #f8fbf9;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #e1eee5;
}

.thumbnails-heading {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-thumbnails-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #b7dbcb transparent;
}

.gallery-thumbnails-strip::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails-strip::-webkit-scrollbar-thumb {
    background-color: #b7dbcb;
    border-radius: 10px;
}

.thumb-card {
    flex: 0 0 76px;
    width: 76px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #dbe8e0;
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    outline: none;
    text-decoration: none;
}

.thumb-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.thumb-card.active {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 14px rgba(0, 166, 80, 0.35);
    transform: translateY(-3px);
}

.thumb-card img {
    width: 100%;
    height: 98px;
    object-fit: cover;
    display: block;
}

.thumb-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    padding: 3px 0;
    background: #f1f7f3;
    text-align: center;
}

.thumb-card.active .thumb-label {
    background: var(--secondary-color);
    color: #ffffff;
}

/* Modo Feed Vertical */
.gallery-feed-view {
    margin-top: 15px;
}

.feed-intro {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 20px;
    font-weight: 600;
}

.feed-page-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid #e1eee5;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.feed-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f8fbf9;
    border-bottom: 1px solid #e6f0e9;
}

.feed-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.feed-arts-count {
    font-size: 0.78rem;
    font-weight: 600;
    background: #e6f7ec;
    color: #0b7a3c;
    padding: 3px 10px;
    border-radius: 10px;
}

.feed-img-box {
    position: relative;
    cursor: zoom-in;
    background: #fafafa;
}

.feed-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

.feed-zoom-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(25, 66, 45, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ===================================================
   LIGHTBOX MODAL PARA AMPLIAÇÃO DAS ARTES
   =================================================== */

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.portfolio-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 28, 18, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 20px;
}

.lightbox-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lightbox-close-btn:hover {
    background: #e11d48;
    transform: scale(1.08);
}

.lightbox-header-bar {
    text-align: center;
    padding-top: 5px;
}

.lightbox-badge {
    background: rgba(0, 166, 80, 0.25);
    border: 1px solid rgba(0, 166, 80, 0.5);
    color: #a7f3d0;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    display: inline-block;
}

.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 10px 0;
    gap: 10px;
    overflow: hidden;
}

.lightbox-img-box {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.lightbox-img-box img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 10;
}

.lightbox-nav-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.lightbox-footer-bar {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    padding-bottom: 5px;
}

.portfolio-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,166,80,0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25,66,45,0.4);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

footer p {
    opacity: 0.8;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .charts-section {
        grid-template-columns: 1fr;
    }

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

    .discovery-split-grid {
        grid-template-columns: 1fr;
    }

    .funnel-banner {
        flex-direction: column;
        text-align: center;
    }

    .funnel-banner-text h4 {
        justify-content: center;
    }

    .funnel-banner-metrics {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    .funnel-stat-arrow {
        display: none;
    }

    /* Em tablets e telas até 992px, ativar a Galeria Interativa Touch */
    .desktop-view-tabs {
        display: none !important;
    }

    .portfolio-desktop-viewer {
        display: none !important;
    }

    .portfolio-interactive-gallery {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        border-bottom-left-radius: 35px;
        border-bottom-right-radius: 35px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-highlights {
        justify-content: center;
    }

    .total-interactions {
        justify-content: center;
    }

    .discovery-kpi-value {
        font-size: 2.4rem;
    }

    .pillar-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-section {
        padding: 30px 16px;
    }

    /* Alternância Inteligente do Portfólio no Celular: Exibe a Galeria de Postagens */
    .portfolio-desktop-viewer {
        display: none !important;
    }

    .portfolio-interactive-gallery {
        display: block !important;
    }

    /* Otimização Crítica do Gráfico de Linhas no Celular */
    .chart-container {
        padding: 22px 14px;
    }

    .chart-canvas-wrapper.line-canvas-wrapper {
        height: 400px; /* Expansão vertical generosa para evitar linhas juntas */
        min-height: 400px;
    }

    .chart-canvas-wrapper.bar-canvas-wrapper {
        height: 310px;
    }

    .chart-mobile-helper {
        display: block;
    }

    .chart-filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .chart-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .chart-filter-btn {
        flex-shrink: 0;
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .section-transition {
        margin: 35px auto;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .total-interactions .number {
        font-size: 1.8rem;
    }

    .funnel-banner-metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .chart-canvas-wrapper.line-canvas-wrapper {
        height: 420px; /* Em telas muito estreitas, altura extra para separar os pontos */
        min-height: 420px;
    }

    .gallery-top-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-view-switcher {
        width: 100%;
        justify-content: center;
    }

    .gallery-switch-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    .gallery-arrow-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .gallery-arrow-btn.prev { left: 8px; }
    .gallery-arrow-btn.next { right: 8px; }

    .thumb-card {
        flex: 0 0 66px;
        width: 66px;
    }

    .thumb-card img {
        height: 84px;
    }

    .lightbox-container {
        padding: 10px;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}


