/* ============================================================
   Pricing Layout v4 — Horizontal Stack
   Scope: tutto sotto .pricing-v4
   ============================================================ */

.pricing-v4 {
    --pv4-accent: var(--accent, #00CFB4);
    --pv4-accent-soft: rgba(0, 207, 180, 0.08);
    --pv4-accent-strong: rgba(0, 207, 180, 0.18);
    --pv4-text: #111827;
    --pv4-muted: #6b7280;
    --pv4-border: #e5e7eb;
    --pv4-bg-soft: #f9fafb;
    --pv4-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
    --pv4-shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.pricing-v4 .pv4-section {
    padding: 1rem 0 4rem;
}

/* ---- Stack ---- */
.pricing-v4 .pv4-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---- Row card ---- */
.pricing-v4 .pv4-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 32%) 1fr;
    gap: 2rem;
    background: #fff;
    border: 1px solid var(--pv4-border);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pricing-v4 .pv4-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--pv4-shadow);
}

.pricing-v4 .pv4-row--featured {
    border-color: var(--pv4-accent);
    background: linear-gradient(90deg, var(--pv4-accent-soft) 0%, #ffffff 35%);
    box-shadow: var(--pv4-shadow-lg);
}


/* ---- Lead column (price + CTA) ---- */
.pricing-v4 .pv4-row__lead {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding-right: 2rem;
    border-right: 1px solid var(--pv4-border);
}

.pricing-v4 .pv4-row--featured .pv4-row__lead {
    border-right-color: var(--pv4-accent-strong);
}

.pricing-v4 .pv4-row__tag {
    display: inline-block;
    width: fit-content;
    background: var(--pv4-bg-soft);
    color: var(--pv4-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .65rem;
    border-radius: 999px;
}

.pricing-v4 .pv4-row--featured .pv4-row__tag {
    background: var(--pv4-accent);
    color: #fff;
}

.pricing-v4 .pv4-row__name {
    font-size: 1.75rem;
    margin: 0;
    color: var(--pv4-text);
}

.pricing-v4 .pv4-row__desc {
    margin: 0;
    color: var(--pv4-muted);
    font-size: .95rem;
    line-height: 1.5;
}

.pricing-v4 .pv4-row__price {
    margin-top: auto;
    padding-top: .5rem;
}

.pricing-v4 .pv4-row__price > div {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.pricing-v4 .pv4-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--pv4-text);
}

.pricing-v4 .pv4-price-amount--text {
    font-size: 2rem;
    display: inline-block;
}

.pricing-v4 .pv4-price-strike {
    font-size: 1.1rem;
    color: var(--pv4-muted);
    text-decoration: line-through;
}

.pricing-v4 .pv4-price-period {
    font-size: .9rem;
    color: var(--pv4-muted);
    font-weight: 500;
}

.pricing-v4 .pv4-row__equiv {
    margin: .35rem 0 0;
    font-size: .85rem;
    color: var(--pv4-muted);
}

.pricing-v4 .pv4-row__cta {
    width: 100%;
    margin-top: 1rem;
}

/* ---- Features column ---- */
.pricing-v4 .pv4-row__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1.25rem;
}

.pricing-v4 .pv4-row__intro {
    margin: 0 0 .65rem;
    font-size: .8rem;
    font-weight: 500;
    font-style: italic;
    color: var(--pv4-muted);
}

.pricing-v4 .pv4-subsection {
    display: flex;
    flex-direction: column;
}

.pricing-v4 .pv4-subsection + .pv4-subsection {
    margin-top: .25rem;
}

.pricing-v4 .pv4-subsection__title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--pv4-muted);
    margin: 0 0 .65rem;
    font-weight: 700;
}

.pricing-v4 .pv4-features {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 1.25rem;
}

.pricing-v4 .pv4-features li {
    break-inside: avoid;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--pv4-text);
    margin-bottom: .55rem;
}

.pricing-v4 .pv4-features li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Trattino per il blocco "Caratteristiche" */
.pricing-v4 .pv4-bullet--dash {
    flex-shrink: 0;
    display: inline-block;
    width: 12px;
    height: 2px;
    margin-top: 10px;
    margin-right: 2px;
    background: var(--pv4-muted);
    border-radius: 1px;
}


/* ---- Tooltip (Bootstrap) ---- */
.pricing-v4 .pv4-tip {
    border-bottom: 1px dashed var(--pv4-muted);
    cursor: help;
}

/* ---- Note ---- */
.pricing-v4 .pv4-note {
    text-align: center;
    margin: 2.5rem auto 0;
    max-width: 640px;
    font-size: .9rem;
    color: var(--pv4-muted);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .pricing-v4 .pv4-row {
        grid-template-columns: 1fr;
        padding: 1.75rem;
    }
    .pricing-v4 .pv4-row__lead {
        border-right: none;
        border-bottom: 1px solid var(--pv4-border);
        padding-right: 0;
        padding-bottom: 1.25rem;
    }
    .pricing-v4 .pv4-row--featured .pv4-row__lead {
        border-bottom-color: var(--pv4-accent-strong);
    }
}

@media (max-width: 576px) {
    .pricing-v4 .pv4-row {
        padding: 1.5rem;
    }
    .pricing-v4 .pv4-features {
        columns: 1;
    }
    .pricing-v4 .pv4-price-amount {
        font-size: 2rem;
    }
}
