/* ==========================================================================
   Pricing Page Modern Styling - UP Agenzia Web
   ========================================================================== */

.flat-pricing-modern {
    padding: 70px 0 100px;
    position: relative;
    background: #ffffff;
}

/* Header section refinement */
.flat-pricing-modern .heading-section {
    max-width: 780px;
    margin: 0 auto 45px;
    text-align: center;
}

.flat-pricing-modern .badge-pill-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 87, 34, 0.08);
    border: 1px solid rgba(255, 87, 34, 0.2);
    border-radius: 50px;
    color: #ff5722;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
}

.flat-pricing-modern .heading-section h2 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: #120a21;
    margin-bottom: 16px;
}

.flat-pricing-modern .heading-section p {
    font-size: 16px;
    line-height: 1.65;
    color: #64748b;
    margin: 0 auto;
}

/* Switcher / Billing Toggle */
.pricing-switch-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.pricing-switch-box {
    display: inline-flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 60px;
    position: relative;
    border: 1px solid #e2e8f0;
}

.pricing-switch-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pricing-switch-btn.active {
    background: #ffffff;
    color: #120a21;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pricing-switch-btn .badge-discount {
    background: #ff5722;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Pricing Grid & Cards */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
}

.pricing-col {
    padding: 0 15px;
    margin-bottom: 30px;
    display: flex;
}

.pricing-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(18, 10, 33, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.pricing-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(18, 10, 33, 0.09);
    border-color: #cbd5e1;
}

/* Popular / Highlighted Card */
.pricing-card-modern.is-popular {
    border: 2px solid #ff5722;
    box-shadow: 0 15px 45px rgba(255, 87, 34, 0.12);
    transform: translateY(-4px);
}

.pricing-card-modern.is-popular:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 55px rgba(255, 87, 34, 0.18);
}

.pricing-card-modern .badge-popular {
    position: absolute;
    top: 16px;
    right: 18px;
    background: linear-gradient(135deg, #ff5722 0%, #e04412 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.35);
    z-index: 2;
}

/* Card Header & Illustration */
.pricing-card-header {
    padding: 35px 30px 20px;
    background: #fafbfc;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    position: relative;
}

.pricing-card-modern.is-popular .pricing-card-header {
    background: #fff8f5;
    border-bottom: 1px solid #ffede6;
}

.pricing-card-header .pricing-img {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.pricing-card-header .pricing-img img {
    max-height: 85px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 6px 14px rgba(18, 10, 33, 0.08));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.pricing-card-modern:hover .pricing-card-header .pricing-img img {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 12px 22px rgba(255, 87, 34, 0.2));
}

.pricing-plan-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.pricing-card-modern.is-popular .pricing-plan-badge {
    background: #ffe4db;
    color: #d93800;
}

.pricing-plan-name {
    font-size: 26px;
    font-weight: 800;
    color: #120a21;
    margin: 0;
}

/* Card Body */
.pricing-card-body {
    padding: 30px 30px 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.pricing-price-area {
    margin-bottom: 20px;
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pricing-currency {
    font-size: 24px;
    font-weight: 700;
    color: #120a21;
}

.pricing-amount {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #120a21;
    letter-spacing: -1px;
}

.pricing-card-modern.is-popular .pricing-amount,
.pricing-card-modern.is-popular .pricing-currency {
    color: #ff5722;
}

.pricing-period {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.pricing-condition {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 6px;
}

.pricing-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 25px;
    min-height: 44px;
}

.pricing-divider {
    height: 1px;
    background: #f1f5f9;
    margin-bottom: 25px;
}

/* Features List */
.pricing-features-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}

.pricing-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    margin-bottom: 14px;
}

.pricing-features-list li strong {
    color: #120a21;
}

.pricing-features-list li .feat-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-top: 2px;
}

.pricing-card-modern.is-popular .pricing-features-list li .feat-icon {
    background: #fff3ec;
    color: #ff5722;
}

/* Card CTA Button */
.pricing-card-action {
    margin-top: auto;
}

.pricing-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.pricing-cta-btn.btn-outline-custom {
    background: #f8fafc;
    color: #120a21;
    border: 1px solid #cbd5e1;
}

.pricing-cta-btn.btn-outline-custom:hover {
    background: #120a21;
    color: #ffffff;
    border-color: #120a21;
}

.pricing-cta-btn.btn-primary-custom {
    background: #ff5722;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.28);
}

.pricing-cta-btn.btn-primary-custom:hover {
    background: #e04412;
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(255, 87, 34, 0.38);
    transform: translateY(-2px);
}

/* Comparison Table Section */
.flat-comparison-section {
    padding: 80px 0 90px;
    background: #fafbfc;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.comparison-table-wrap {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    padding-left: 28px;
    font-weight: 600;
    color: #1e293b;
    width: 40%;
}

.comparison-table thead th {
    background: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    color: #120a21;
    border-bottom: 1px solid #e2e8f0;
    padding-top: 22px;
    padding-bottom: 22px;
}

.comparison-table thead th.th-popular {
    background: #fff8f5;
    color: #ff5722;
    border-bottom: 2px solid #ff5722;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: #f8fafc;
}

.comparison-table tbody tr.group-header th {
    background: #f1f5f9;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 12px 28px;
}

.comparison-table .check-yes {
    color: #059669;
    font-size: 16px;
}

.comparison-table .check-no {
    color: #cbd5e1;
    font-size: 14px;
}

.comparison-table .text-val {
    font-weight: 700;
    color: #120a21;
    font-size: 13px;
}

/* Guarantees 4-col */
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.guarantee-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.guarantee-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.guarantee-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.guarantee-box h4 {
    font-size: 19px;
    font-weight: 700;
    color: #120a21;
    margin-bottom: 10px;
}

.guarantee-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Modern FAQ Accordion */
.pricing-faq-section {
    padding: 90px 0 100px;
    background: #ffffff;
}

.accordion-pricing {
    max-width: 860px;
    margin: 0 auto;
}

.accordion-item-custom {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 16px;
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item-custom.active {
    background: #ffffff;
    border-color: #ff5722;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.08);
}

.accordion-btn-custom {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: #120a21;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 15px;
}

.accordion-item-custom.active .accordion-btn-custom {
    color: #ff5722;
}

.accordion-btn-custom .acc-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.accordion-item-custom.active .accordion-btn-custom .acc-icon {
    background: #ff5722;
    color: #ffffff;
    transform: rotate(180deg);
}

.accordion-content-custom {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.accordion-item-custom.active .accordion-content-custom {
    max-height: 350px;
    padding: 0 24px 22px;
}

.accordion-content-custom p {
    font-size: 15px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

/* Bottom CTA Banner */
.pricing-bottom-cta {
    background: linear-gradient(135deg, #120a21 0%, #1e123a 100%);
    border-radius: 24px;
    padding: 60px 45px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(18, 10, 33, 0.2);
    margin-top: 40px;
}

.pricing-bottom-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.25) 0%, rgba(255, 87, 34) 70%);
    pointer-events: none;
}

.pricing-bottom-cta h3 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.pricing-bottom-cta p {
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 600px;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pricing-card-modern.is-popular {
        transform: none;
    }
    .pricing-bottom-cta {
        padding: 40px 25px;
        text-align: center;
    }
    .pricing-bottom-cta .cta-actions {
        margin-top: 25px;
        justify-content: center;
    }
    .pricing-bottom-cta p {
        margin: 0 auto;
    }
}

/* --------------------------------------------------------------------------
   Modern Newsletter Section (from Home)
   -------------------------------------------------------------------------- */
.home-newsletter-widget {
    padding: 80px 0;
    background: #f8fafc;
}

.newsletter-card-inner {
    background: linear-gradient(135deg, #120a21 0%, #1e1335 100%);
    border-radius: 24px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(18, 10, 33, 0.1);
}

.newsletter-card-inner::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.18) 0%, rgba(255, 87, 34, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.newsletter-title-col h2 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 12px;
}

.newsletter-title-col p {
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

.newsletter-form-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-form-col form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-input-field {
    flex: 1;
    min-width: 250px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

.newsletter-input-field::placeholder,
.newsletter-input-field::-webkit-input-placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
}

.newsletter-input-field:focus {
    border-color: #ff5722 !important;
    background: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.3) !important;
}

.newsletter-btn-submit {
    padding: 14px 30px;
    background: #ff5722 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.newsletter-btn-submit:hover {
    background: #f4511e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4) !important;
}

.newsletter-privacy-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
}

.newsletter-feedback {
    display: none;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    animation: fadeInNewsletter 0.3s ease;
}

.newsletter-feedback.success {
    display: block !important;
    background: #e8fff1 !important;
    color: #0f5132 !important;
    border: 1px solid #c3e6cb !important;
}

.newsletter-feedback.error {
    display: block !important;
    background: #fff0f0 !important;
    color: #842029 !important;
    border: 1px solid #f5c2c7 !important;
}

@keyframes fadeInNewsletter {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .newsletter-card-inner {
        padding: 40px 30px;
    }
    .newsletter-title-col {
        margin-bottom: 25px;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .newsletter-title-col h2 {
        font-size: 26px;
    }
    .newsletter-form-col form {
        flex-direction: column;
    }
    .newsletter-btn-submit {
        width: 100%;
        justify-content: center;
    }
}

