.steps-section {
    --st-bg: #f5f4ef;         /* crema del tema */
    --st-card: #ffffff;
    --st-accent: #e8922b;     /* arancione del tema */
    --st-accent-dark: #7a5a1e;/* marrone del link "Qualità e certificazioni" */
    --st-text: #111111;
    --st-muted: #5a5a55;
    --st-border: #e2e0d8;
    --st-marker: 64px;

    padding: 100px 0;
    background: var(--st-bg);
}

/* ---------- Intestazione ---------- */
.steps-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}
.steps-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    margin-bottom: 20px;
    border: 1px solid var(--st-border);
    border-radius: 50px;
    font-size: 15px;
    color: var(--st-text);
}
.steps-tag i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--st-accent);
}
.steps-head h2 {
    margin: 0;
    text-align: center;
}
.steps-head h2 .split-line {
    text-align: center !important;
}

/* ---------- Lista step con linea di collegamento ---------- */
.steps-list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.step-item {
    position: relative;
    display: grid;
    grid-template-columns: var(--st-marker) 1fr;
    gap: 28px;
    padding-bottom: 32px;
}

/* Linea verticale tratteggiata tra un numero e il successivo */
.step-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: var(--st-marker);
    bottom: 0;
    left: calc(var(--st-marker) / 2);
    width: 0;
    border-left: 2px dashed rgba(232, 146, 43, 0.55);
    transform: translateX(-1px);
}

/* ---------- Numero ---------- */
.step-marker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--st-marker);
    height: var(--st-marker);
    border-radius: 50%;
    background: var(--st-accent);
    box-shadow: 0 0 0 8px rgba(232, 146, 43, 0.15);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* ---------- Card step ---------- */
.step-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 32px;
    padding: 22px;
    border: 1px solid var(--st-border);
    border-radius: 28px;
    background: var(--st-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

.step-text {
    padding: 10px 10px 10px 18px;
}
.step-title {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    color: var(--st-text);
}
.step-text p {
    margin: 0;
    font-size: 15px;
    line-height: 24px;
    color: var(--st-muted);
}

.step-image {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
}
.step-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.step-card:hover .step-image img {
    transform: scale(1.05);
}

/* ---------- Link finale ---------- */
.steps-cta {
    max-width: 1100px;
    margin: 24px auto 0;
    padding-left: calc(var(--st-marker) + 28px);
}
.steps-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 19px;
    font-weight: 700;
    color: var(--st-accent-dark);
    text-decoration: none;
}
.steps-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--st-accent);
    border-radius: 50%;
    color: var(--st-accent);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.steps-link-icon svg {
    width: 20px;
    height: 20px;
}
.steps-link:hover .steps-link-icon {
    background: var(--st-accent);
    color: #fff;
    transform: translateX(4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .steps-section { --st-marker: 52px; }
    .step-item { gap: 18px; }
    .step-card { gap: 20px; padding: 16px; }
    .step-title { font-size: 30px; }
    .step-text p { font-size: 15px; }
    .step-marker { font-size: 18px; }
    .steps-cta { padding-left: calc(var(--st-marker) + 18px); }
}

@media (max-width: 767px) {
    .steps-section { --st-marker: 44px; padding: 64px 0; }
    .steps-head { margin-bottom: 36px; }
    .step-item { gap: 14px; padding-bottom: 24px; }
    .step-card { grid-template-columns: 1fr; }
    .step-image { order: -1; }          /* immagine sopra al testo */
    .step-text { padding: 4px 6px 10px; }
    .step-title { font-size: 20px; }
    .step-marker { font-size: 15px; box-shadow: 0 0 0 5px rgba(232, 146, 43, 0.15); }
    .steps-cta { padding-left: 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .step-card,
    .step-image img,
    .steps-link-icon { transition: none; }
    .step-card:hover { transform: none; }
    .step-card:hover .step-image img { transform: none; }
}