/* =====================================================================
   estia/landing-metodo — eyebrow + titolo (highlight gold) + lead + grid
   di step card con icona circolare cream.
   ===================================================================== */
.estia-landing-metodo {
    background: var(--white);
    padding: clamp(72px, 10vw, 130px) clamp(24px, 4vw, 72px);
    font-family: var(--font-body);
    color: var(--text-dark);
    box-sizing: border-box;
}

/* Modifier "is-flush": vedi landing-hero/style.css. */
.estia-landing-metodo.is-flush {
    padding-top: 0;
    padding-bottom: 0;
}
.estia-landing-metodo,
.estia-landing-metodo *,
.estia-landing-metodo *::before,
.estia-landing-metodo *::after { box-sizing: inherit; }

.estia-landing-metodo__inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.estia-landing-metodo__eyebrow {
    display: inline-block;
    color: var(--yellow);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2.4px;
    margin-bottom: 24px;
}

.estia-landing-metodo__title {
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0 0 18px;
}
.estia-landing-metodo__title em {
    font-style: normal;
    color: var(--yellow);
}

.estia-landing-metodo__lead {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 auto 64px;
    text-wrap: pretty;
}

.estia-landing-metodo__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2vw, 32px);
    text-align: left;
}

.estia-landing-metodo__step {
    --estia-metodo-step-delay: 260ms;
    background: var(--white);
    border: 1px solid #e9e6de;
    border-radius: 18px;
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.estia-landing-metodo__step:nth-child(2) { --estia-metodo-step-delay: 420ms; }
.estia-landing-metodo__step:nth-child(3) { --estia-metodo-step-delay: 580ms; }
.estia-landing-metodo__step:nth-child(4) { --estia-metodo-step-delay: 740ms; }
.estia-landing-metodo__step:nth-child(5) { --estia-metodo-step-delay: 900ms; }
.estia-landing-metodo__step:nth-child(6) { --estia-metodo-step-delay: 1060ms; }
.estia-landing-metodo__step:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 6px rgba(20, 40, 90, .04), 0 16px 32px rgba(20, 40, 90, .08);
    border-color: transparent;
}

.estia-landing-metodo__icon {
    width: 134.4px;
    height: 134.4px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #fafafa;
    margin: 8px auto 28px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.estia-landing-metodo__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Icone SVG (filled): padding interno per centrarle nel cerchio con respiro
   ed evitare il clipping del border-radius. Scoped alle sole .svg, così i PNG
   bundlati (es. landing acquista) restano invariati. */
.estia-landing-metodo__icon img[src$=".svg"] {
    padding: 33.9px;
}

.estia-landing-metodo__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}
.estia-landing-metodo__num {
    color: var(--yellow);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.estia-landing-metodo__time {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.estia-landing-metodo__step-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 18px;
    padding-bottom: 16px;
    position: relative;
}
.estia-landing-metodo__step-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
}

.estia-landing-metodo__step-body {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.estia-landing-metodo--animated .estia-landing-metodo__eyebrow,
.estia-landing-metodo--animated .estia-landing-metodo__title,
.estia-landing-metodo--animated .estia-landing-metodo__lead,
.estia-landing-metodo--animated .estia-landing-metodo__step,
.estia-landing-metodo--animated .estia-landing-metodo__step > * {
    opacity: 0;
}
.estia-landing-metodo--animated .estia-landing-metodo__eyebrow,
.estia-landing-metodo--animated .estia-landing-metodo__title,
.estia-landing-metodo--animated .estia-landing-metodo__lead,
.estia-landing-metodo--animated .estia-landing-metodo__step {
    transform: translateY(18px);
}
.estia-landing-metodo--animated .estia-landing-metodo__step {
    transform: translateY(28px) scale(.97);
}
.estia-landing-metodo--animated .estia-landing-metodo__step > * {
    transform: translateY(10px);
}
.estia-landing-metodo--animated .estia-landing-metodo__eyebrow,
.estia-landing-metodo--animated .estia-landing-metodo__title,
.estia-landing-metodo--animated .estia-landing-metodo__lead,
.estia-landing-metodo--animated .estia-landing-metodo__step,
.estia-landing-metodo--animated .estia-landing-metodo__step > * {
    transition-property: opacity, transform;
    transition-timing-function: var(--ease-default);
}
.estia-landing-metodo--animated .estia-landing-metodo__eyebrow {
    transition-duration: 520ms;
    transition-delay: 20ms;
}
.estia-landing-metodo--animated .estia-landing-metodo__title {
    transition-duration: 560ms;
    transition-delay: 100ms;
}
.estia-landing-metodo--animated .estia-landing-metodo__lead {
    transition-duration: 560ms;
    transition-delay: 180ms;
}
.estia-landing-metodo--animated .estia-landing-metodo__step {
    transition-duration: 620ms;
    transition-delay: var(--estia-metodo-step-delay);
}
.estia-landing-metodo--animated .estia-landing-metodo__step > * {
    transition-duration: 480ms;
    transition-delay: calc(var(--estia-metodo-step-delay) + 130ms);
}
.estia-landing-metodo--animated.is-visible .estia-landing-metodo__eyebrow {
    opacity: 1;
    transform: translateY(0);
}
.estia-landing-metodo--animated.is-visible .estia-landing-metodo__title {
    opacity: 1;
    transform: translateY(0);
}
.estia-landing-metodo--animated.is-visible .estia-landing-metodo__lead {
    opacity: 1;
    transform: translateY(0);
}
.estia-landing-metodo--animated.is-visible .estia-landing-metodo__step {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.estia-landing-metodo--animated.is-visible .estia-landing-metodo__step > * {
    opacity: 1;
    transform: translateY(0);
}
.estia-landing-metodo--animated.is-visible .estia-landing-metodo__icon img {
    animation: estiaLandingMetodoIconSettle 720ms var(--ease-default) calc(var(--estia-metodo-step-delay) + 180ms) both;
}
.estia-landing-metodo--animated.is-visible .estia-landing-metodo__step:hover {
    transform: translateY(-4px);
}

@keyframes estiaLandingMetodoIconSettle {
    0% {
        transform: scale(.92);
    }
    62% {
        transform: scale(1.035);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .estia-landing-metodo--animated .estia-landing-metodo__eyebrow,
    .estia-landing-metodo--animated .estia-landing-metodo__title,
    .estia-landing-metodo--animated .estia-landing-metodo__lead,
    .estia-landing-metodo--animated .estia-landing-metodo__step,
    .estia-landing-metodo--animated .estia-landing-metodo__step > *,
    .estia-landing-metodo--animated.is-visible .estia-landing-metodo__eyebrow,
    .estia-landing-metodo--animated.is-visible .estia-landing-metodo__title,
    .estia-landing-metodo--animated.is-visible .estia-landing-metodo__lead,
    .estia-landing-metodo--animated.is-visible .estia-landing-metodo__step,
    .estia-landing-metodo--animated.is-visible .estia-landing-metodo__step > *,
    .estia-landing-metodo--animated.is-visible .estia-landing-metodo__icon img {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

@media (max-width: 1099px) {
    .estia-landing-metodo__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 819px) {
    .estia-landing-metodo__grid { grid-template-columns: 1fr; }
}
