html {
    scroll-behavior: smooth; /* Faz a rolagem deslizar suavemente */
}

/* === HERO (CABEÇALHO) === */
.hero-solucoes {
    background-color: #1a3c34;
    padding: 30px 0 60px 0; 
    text-align: center;
    border-bottom: 4px solid var(--cor-primaria);
}

.hero-solucoes h1 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    
    position: relative;
    display: inline-block; 
    z-index: 1;
}

.hero-solucoes p {
    color: #e0e0e0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 15px; 
}

.hero-solucoes h1::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    height: 12px;
    background-color: rgba(76, 175, 80, 0.4); 
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    transform: rotate(-1deg);
    width: 0%;
    animation: riscoGrossoLoop 3s ease-in-out infinite;
}

.hero-solucoes h1::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 5%;
    height: 3px;
    background-color: var(--cor-primaria); 
    border-radius: 80% 20% 50% 50% / 50%;
    transform: rotate(1deg);
    width: 0%;
    animation: riscoFinoLoop 3s ease-in-out infinite;
}

.hero-solucoes h1 {
    color: #ffffff; 
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-solucoes p {
    color: #e0e0e0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.badge-solucao {
    background-color: #e8f5e9;
    color: var(--cor-primaria);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* === TIMELINE CONTAINER === */
.timeline-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-color: #f8fcf8;
}

/* === A LINHA E A FAÍSCA === */
.linha-central-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100%;
    z-index: 1;
    overflow: visible;
}

.svg-line { width: 100%; height: 100%; overflow: visible; }
.path-bg {
    stroke: #e0e0e0; stroke-width: 4; stroke-linecap: round; opacity: 0.3;
}

.path-fill {
    stroke: var(--cor-primaria);
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
    transition: none;
    filter: drop-shadow(0 0 2px var(--cor-primaria)) drop-shadow(0 0 6px var(--cor-primaria));
}

/* === A NOVA FAÍSCA COM EFEITO === */
#faisca-container {
    transition: opacity 0.1s;
    pointer-events: none;
    transform-box: fill-box;
    transform-origin: center;
}

/* (Branco Quente) */
.faisca-core {
    fill: #ffffff;
    filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #fff);
    animation: pulso-core 0.5s infinite alternate;
}

.faisca-explosion-1 {
    fill: var(--cor-primaria);
    transform-origin: 10px 10px; 

    filter: drop-shadow(0 0 5px var(--cor-primaria)) 
            drop-shadow(0 0 10px var(--cor-primaria));
            
    animation: girar-direita 2s linear infinite;
}

.faisca-explosion-2 {
    fill: #b9f6ca; 
    transform-origin: 10px 10px;
    opacity: 0.8;
    
    animation: girar-esquerda 1.5s linear infinite;
}

/* === ANIMAÇÕES === */
@keyframes girar-direita {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes girar-esquerda {
    0% { transform: rotate(0deg) scale(1.2); }
    50% { transform: rotate(-180deg) scale(0.8); }
    100% { transform: rotate(-360deg) scale(1.2); }
}

@keyframes pulso-core {
    from { r: 3; opacity: 1; }
    to { r: 4; opacity: 0.8; }
}

/* === ITENS DA TIMELINE (CARD E IMAGEM) === */
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.timeline-item {
    scroll-margin-top: 150px; 
}

.timeline-item.reverso {
    flex-direction: row-reverse;
}

/* (BOLINHA) */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: #f0f0f0;
    border: 3px solid #ccc;
    border-radius: 50%;
    z-index: 3;
    transition: 0.3s ease;
    box-shadow: 0 0 0 4px #f8fcf8; 
}

.timeline-item.ativo .timeline-dot {
    background-color: var(--cor-primaria);
    border-color: #fff;
    box-shadow: 0 0 0 4px #f8fcf8, 0 0 15px var(--cor-primaria);
    transform: translate(-50%, -50%) scale(1.2);
}

.timeline-content, .timeline-img {
    width: 45%;
}

.timeline-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    filter: grayscale(100%) opacity(0.6);
    transform: scale(0.95);
}

.timeline-item.ativo .timeline-img img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.25);
}

/* CARD DE TEXTO */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: 0.5s;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.ativo .glass-card {
    opacity: 1;
    transform: translateY(0);
    border-left: 4px solid var(--cor-primaria);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.glass-card h2 {
    color: var(--cor-secundaria);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.glass-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .timeline-item, .timeline-item.reverso {
        flex-direction: column;
        margin-bottom: 60px;
    }
    .linha-central-container, .timeline-dot { left: 20px; }
    .timeline-content, .timeline-img { width: 100%; padding-left: 45px; margin-bottom: 20px; }
    .timeline-content.esquerda, .timeline-content.direita { text-align: left; }
    .hero-solucoes h1 { font-size: 1.8rem; }
}


@keyframes riscoGrossoLoop {
    0% { width: 0%; opacity: 0; }
    20% { width: 105%; opacity: 1; }
    80% { width: 105%; opacity: 1; } 
    100% { width: 0%; opacity: 0; left: 100%; } 
}

@keyframes riscoFinoLoop {
    0% { width: 0%; }
    15% { width: 0%; } 
    35% { width: 90%; } 
    80% { width: 90%; opacity: 1; }
    100% { width: 90%; opacity: 0; }  
}