/* ============================================================
   PAGAMENTI — PHP nativo (no Elementor)
   Prefisso: tf-pg-*
   v3.9.0
   ============================================================ */

.tf-pg-page {
    --tf-pg-blue: #0d8ecf;
    --tf-pg-navy: #0c2d48;
    --tf-pg-heading: #1a2b38;
    --tf-pg-text: #3a4a52;
    --tf-pg-text-soft: #6a7c83;
    --tf-pg-border: #e6ecf1;
    --tf-pg-bg-soft: #f3f5f7;
    font-family: 'Open Sans', sans-serif;
    color: var(--tf-pg-text);
}

.tf-pg-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.tf-pg-section-head { text-align: center; margin-bottom: 44px; }
.tf-pg-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--tf-pg-heading);
    margin: 0 0 12px;
}
.tf-pg-section-sub { font-size: 16px; color: var(--tf-pg-text-soft); margin: 0; }

/* ---------- HERO ---------- */
.tf-pg-hero {
    background: linear-gradient(135deg, #0c2d48 0%, #14456b 55%, #1a5a86 100%);
    color: #fff;
    padding: 66px 0;
    text-align: center;
}
.tf-pg-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
}
.tf-pg-breadcrumb { font-size: 14px; opacity: 0.92; }
.tf-pg-breadcrumb a { color: #fff; text-decoration: none; opacity: 0.85; }
.tf-pg-breadcrumb a:hover { opacity: 1; }
.tf-pg-breadcrumb span { margin: 0 7px; }

/* ---------- INTRO ---------- */
.tf-pg-intro { background: #fff; padding: 70px 0; text-align: center; }
.tf-pg-intro-title {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--tf-pg-heading);
    margin: 0 0 18px;
}
.tf-pg-intro-title span { color: var(--tf-pg-blue); }
.tf-pg-intro-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--tf-pg-text-soft);
    max-width: 820px;
    margin: 0 auto;
}

/* ---------- METODI ACCETTATI ---------- */
.tf-pg-methods { background: var(--tf-pg-bg-soft); padding: 70px 0; }
.tf-pg-methods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.tf-pg-method-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 26px 30px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(12, 45, 72, 0.06);
    display: flex;
    flex-direction: column;
}
.tf-pg-method-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #eef2f5;
    color: #44525c;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tf-pg-method-icon svg { width: 32px; height: 32px; }
.tf-pg-method-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--tf-pg-heading);
    margin: 0 0 12px;
}
.tf-pg-method-text { font-size: 14.5px; line-height: 1.6; color: var(--tf-pg-text-soft); margin: 0 0 22px; }
.tf-pg-method-badges {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.tf-pg-badge {
    background: #f1f4f6;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #44525c;
}

/* ---------- SICUREZZA ---------- */
.tf-pg-security { background: #fff; padding: 70px 0; }
.tf-pg-security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.tf-pg-security-title {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--tf-pg-heading);
    margin: 0 0 16px;
}
.tf-pg-security-title span { color: var(--tf-pg-blue); }
.tf-pg-security-text { font-size: 16px; line-height: 1.7; color: var(--tf-pg-text-soft); margin: 0 0 30px; }
.tf-pg-sec-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 30px;
}
.tf-pg-sec-feature { display: flex; gap: 14px; align-items: flex-start; }
.tf-pg-sec-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tf-pg-sec-icon svg { width: 22px; height: 22px; }
.tf-pg-sec-name {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--tf-pg-heading);
    margin: 2px 0 4px;
}
.tf-pg-sec-desc { font-size: 13.5px; line-height: 1.5; color: var(--tf-pg-text-soft); margin: 0; }

.tf-pg-security-card {
    background: linear-gradient(150deg, #18a8e6 0%, #0e85c4 100%);
    border-radius: 18px;
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 16px 40px rgba(14, 133, 196, 0.28);
}
.tf-pg-security-card-icon { color: rgba(255, 255, 255, 0.92); margin-bottom: 22px; }
.tf-pg-security-card-icon svg { width: 84px; height: 84px; }
.tf-pg-security-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}
.tf-pg-security-card-text {
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    max-width: 360px;
    margin: 0 auto;
}

/* ---------- COME FUNZIONA (steps outline) ---------- */
.tf-pg-how { background: var(--tf-pg-bg-soft); padding: 70px 0; }
.tf-pg-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 0;
}
.tf-pg-steps::before {
    content: "";
    position: absolute;
    top: 44px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: #d3dde4;
    z-index: 0;
}
.tf-pg-step {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    text-align: center;
    padding: 0 10px;
}
.tf-pg-step-num {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--tf-pg-blue);
    color: var(--tf-pg-blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tf-pg-step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--tf-pg-heading);
    margin: 0 0 10px;
}
.tf-pg-step-text { font-size: 14px; line-height: 1.55; color: var(--tf-pg-text-soft); margin: 0; }

/* ---------- FAQ ACCORDION (+/-) ---------- */
.tf-pg-faq { background: #fff; padding: 70px 0; }
.tf-pg-faq-list { max-width: 920px; margin: 0 auto; }
.tf-pg-faq-item {
    border: 1px solid var(--tf-pg-border);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
}
.tf-pg-faq-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--tf-pg-navy);
    transition: background 0.2s;
}
.tf-pg-faq-q:hover { background: #f7fafc; }
.tf-pg-faq-toggle { flex: 0 0 auto; color: var(--tf-pg-blue); display: inline-flex; }
.tf-pg-faq-toggle svg { width: 22px; height: 22px; }
.tf-pg-toggle-v { transition: opacity 0.2s; }
.tf-pg-faq-item.is-open .tf-pg-toggle-v { opacity: 0; }
.tf-pg-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.tf-pg-faq-a-inner {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--tf-pg-text-soft);
}
.tf-pg-faq-a-inner strong { color: var(--tf-pg-navy); }

/* ---------- CTA ---------- */
.tf-pg-cta {
    background: linear-gradient(135deg, #0c5a8a 0%, #1283c0 100%);
    padding: 70px 0;
    text-align: center;
    color: #fff;
}
.tf-pg-cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}
.tf-pg-cta-text { font-size: 17px; color: rgba(255, 255, 255, 0.92); margin: 0 0 30px; }
.tf-pg-cta-btn {
    display: inline-block;
    background: #fff;
    color: #0c5a8a;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 15px 38px;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tf-pg-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .tf-pg-methods-grid { grid-template-columns: repeat(2, 1fr); }
    .tf-pg-security-grid { grid-template-columns: 1fr; gap: 36px; }
    .tf-pg-security-card { order: -1; }

    /* steps 2x2, linea nascosta */
    .tf-pg-steps { flex-wrap: wrap; gap: 36px 0; }
    .tf-pg-steps::before { display: none; }
    .tf-pg-step { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 768px) {
    .tf-pg-hero { padding: 50px 0; }
    .tf-pg-hero-title { font-size: 36px; }
    .tf-pg-intro { padding: 50px 0; }
    .tf-pg-intro-title { font-size: 28px; }
    .tf-pg-section-title, .tf-pg-security-title { font-size: 26px; }
    .tf-pg-cta-title { font-size: 28px; }
    .tf-pg-methods, .tf-pg-security, .tf-pg-how, .tf-pg-faq, .tf-pg-cta { padding: 56px 0; }
    .tf-pg-sec-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .tf-pg-container { padding: 0 16px; }
    .tf-pg-hero-title { font-size: 30px; }
    .tf-pg-intro-title { font-size: 24px; }
    .tf-pg-section-title, .tf-pg-security-title { font-size: 23px; }
    .tf-pg-methods-grid { grid-template-columns: 1fr; }
    .tf-pg-step { flex: 0 0 100%; max-width: 100%; }
    .tf-pg-step-num { width: 72px; height: 72px; font-size: 27px; }
    .tf-pg-cta-btn { width: 100%; }
}
