/* ── Container ─────────────────────────────────── */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    overflow: hidden;
}

/* ── Linha central ──────────────────────────────── */
.timeline-line {
    position: absolute;
    width: 2px;
    background-color: #d1b49c;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* ── Item ───────────────────────────────────────── */
.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 60px;
    display: flex;
    z-index: 2;

    /* visível por padrão (editor Elementor não roda JS de scroll) */
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* animação ativada só no front-end */
body:not(.elementor-editor-active) .timeline-item {
    opacity: 0;
}
body:not(.elementor-editor-active) .timeline-item.left  { transform: translateX(-50px); }
body:not(.elementor-editor-active) .timeline-item.right { transform: translateX(50px);  }
body:not(.elementor-editor-active) .timeline-item.show  { opacity: 1; transform: translateX(0); }

.timeline-item.left  { left: 0;   justify-content: flex-end;   padding-right: 60px; }
.timeline-item.right { left: 50%; justify-content: flex-start; padding-left:  60px; }

/* ── Ícone ──────────────────────────────────────── */
.timeline-icon {
    position: absolute;
    width: 50px; height: 50px;
    background-color: #f5f0eb;
    border: 2px solid #d1b49c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    z-index: 3;
    font-size: 20px;
    color: #3d2514;
}
.timeline-icon svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.timeline-item.left  .timeline-icon { right: -25px; }
.timeline-item.right .timeline-icon { left:  -25px; }

/* ── Card ───────────────────────────────────────── */
.timeline-content {
    background: #fdfbf9;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #d1b49c;
    width: 100%;
    max-width: 400px;
}
.step-number {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #b8977e;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
}
.timeline-content h3 {
    margin: 0 0 10px;
    color: #3d2514;
    font-family: serif;
    font-size: 22px;
}
.timeline-content p {
    margin: 0;
    color: #61554d;
    font-size: 14px;
    line-height: 1.6;
}

/* ── Responsivo ─────────────────────────────────── */
@media (max-width: 768px) {
    .timeline-line { left: 30px; }
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }
    .timeline-icon { left: 5px !important; right: auto !important; }
}
