/* ═══════════════════════════════════════════════════════════════
   FUNCIONALIDADES SCROLL — prefixo sf-
   ═══════════════════════════════════════════════════════════════ */

.sf-section {
    background: var(--cream, #f8f7f4);
    padding: 100px 0 0;
}

.sf-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 6%;
}

/* ── Cabeçalho ──────────────────────────────────────────────── */

.sf-head {
    text-align: center;
    margin-bottom: 72px;
}

/* ── Layout ─────────────────────────────────────────────────── */

.sf-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ── Imagem sticky (esquerda) ───────────────────────────────── */

.sf-sticky {
    position: sticky;
    top: 120px;
    align-self: start;
}

.sf-sticky__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: transparent;
}

.sf-sticky__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.sf-sticky__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.sf-sticky__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf-sticky__placeholder {
    width: 100%;
    height: 100%;
    background: var(--green-pale, #e1e4cb);
}

/* ── Itens de texto (direita) ───────────────────────────────── */

.sf-items {
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
}

.sf-item {
    padding: 52px 0;
    border-bottom: 1px solid var(--border, rgba(45,106,53,0.15));
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

.sf-item:first-child {
    padding-top: 0;
}

.sf-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sf-item.is-active {
    opacity: 1;
}

/* Imagem mobile — escondida em desktop */
.sf-item__mobile-img {
    display: none;
}

/* ── Badge ──────────────────────────────────────────────────── */

.sf-item__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-mid, #2d6b4a);
    background: var(--green-pale, #e1e4cb);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

/* ── Título ─────────────────────────────────────────────────── */

.sf-item__title {
    font-size: var(--font-size-h3, 24px);
    font-weight: 600;
    color: var(--ink, #1a1f1c);
    line-height: 1.25;
    margin: 0 0 16px;
}

/* ── Descrição ──────────────────────────────────────────────── */

.sf-item__desc {
    font-size: var(--font-size-body, 18px);
    color: var(--ink-mid, #3d4a38);
    line-height: 1.7;
    margin: 0 0 28px;
}

/* ── Link CTA ───────────────────────────────────────────────── */

.sf-item__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--green-mid, #2d6b4a);
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.sf-item__cta:hover {
    color: var(--green-accent, #4a9b70);
    gap: 14px;
}

.sf-item__cta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .sf-layout {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .sf-section {
        padding: 72px 0 60px;
        overflow: visible;
    }

    .sf-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Esconde a coluna de imagem sticky em mobile */
    .sf-sticky {
        display: none;
    }

    .sf-items {
        padding-bottom: 0;
    }

    .sf-item {
        opacity: 1;
        padding: 40px 0;
    }

    /* Mostra imagem dentro de cada item em mobile */
    .sf-item__mobile-img {
        display: block;
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 24px;
        aspect-ratio: 4 / 3;
    }

    .sf-item__mobile-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .sf-head {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .sf-item__title {
        font-size: 20px;
    }

    .sf-item__desc {
        font-size: 16px;
    }
}
