/* ===== Pricing Section ===== */
.pricing-section {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: var(--light-gray);
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1.1rem;
}

/* ===== Pricing Grid ===== */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* ===== Pricing Cards ===== */
.pricing-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

/* Featured card (annuale) */
.pricing-card-featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
}

.pricing-card-featured:hover {
    transform: scale(1.03) translateY(-5px);
}

/* Badge sconto */
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* ===== Prezzo ===== */
.price {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    font-weight: 700;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.price-period {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

.price-equivalent {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.6;
    margin-bottom: 1rem;
}

/* ===== Features list ===== */
.features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    padding: 0;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* ===== Subscribe button ===== */
.btn-subscribe {
    width: 100%;
    margin-top: auto;
    padding: 0.8rem 2rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.stripe-buy-button-container {
    margin-top: auto;
}

/* ===== FAQ ===== */
.pricing-faq {
    max-width: 700px;
    margin: 0 auto;
}

.pricing-faq h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
}

/* ===== Pricing message ===== */
.pricing-section .form-message {
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .pricing-container {
        grid-template-columns: 1fr;
    }

    .pricing-card-featured {
        transform: none;
        order: -1;
    }

    .pricing-card-featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    .pricing-section {
        padding: 7rem 0 3rem;
    }

    .pricing-header h1 {
        font-size: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }
}
