/**
 * Facile.Energy — Pagina Pago.Facile / Area Pagamenti (slug: pago-facile)
 * Stile coerente col tema: sfondo crema, card bianche, accenti verdi.
 *
 * @since 1.0.0
 */

body.rei-static-page--pago-facile {
    background: var(--rei-cream, #F4F8F6);
}

.rei-pagofacile {
    /* v2.2: transparent — lascia trasparire la filigrana a tema del main */
    background: transparent;
    color: var(--rei-ink, #157155);
    overflow-x: hidden;
}

.rei-pagofacile * {
    box-sizing: border-box;
}

.rei-pagofacile__container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.rei-pagofacile__hero {
    padding: 80px 0 40px;
    text-align: center;
}

.rei-pagofacile__eyebrow {
    display: inline-block;
    background: #D2F0E6;
    color: var(--rei-green-deep, #157155);
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 28px;
    border: 1px solid rgba(32,164,123, 0.25);
    line-height: 1.2;
}

.rei-pagofacile__title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--rei-ink, #157155);
    margin: 0 0 20px;
    letter-spacing: 0.02em;
}

.rei-pagofacile__intro {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--rei-ink, #157155);
    max-width: 680px;
    margin: 0 auto;
}

/* ==========================================================================
   CARD METODI
   ========================================================================== */
.rei-pagofacile__methods {
    padding: 32px 0 72px;
}

.rei-pagofacile__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.rei-pagofacile__card {
    background: #fff;
    border-radius: 24px;
    padding: 34px 28px;
    box-shadow:
        0 20px 50px -10px rgba(21,113,85, 0.18),
        0 8px 20px -8px rgba(21,113,85, 0.12),
        0 1px 3px rgba(21,113,85, 0.05);
    border: 2px solid var(--rei-green, #20A47B); /* v2.2: contorno verde su tutti i riquadri */
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rei-pagofacile__card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 60px -12px rgba(21,113,85, 0.22),
        0 12px 24px -10px rgba(21,113,85, 0.15),
        0 1px 3px rgba(21,113,85, 0.06);
}

.rei-pagofacile__card--digital {
    border: 2px solid var(--rei-green, #20A47B);
}

.rei-pagofacile__card-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #D2F0E6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 18px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px -4px rgba(32,164,123, 0.25);
}

.rei-pagofacile__card-icon svg {
    width: 44px;
    height: 44px;
    color: var(--rei-green, #20A47B);
    display: block;
}

.rei-pagofacile__card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rei-green, #20A47B);
    margin: 0 0 14px;
    line-height: 1.25;
    text-transform: uppercase;
}

.rei-pagofacile__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--rei-ink, #157155);
    margin: 0 0 18px;
    flex-grow: 1;
}

.rei-pagofacile__iban {
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    color: var(--rei-ink, #157155);
    background: var(--rei-green-vlight, #E4F6F0);
    border: 1px dashed rgba(32,164,123, 0.6);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 18px;
    word-break: break-all;
}

/* Badge circuiti nella card digitale: chip bianchi bordati con LOGO SVG */
.rei-pagofacile__paylogos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, max-content));
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.rei-pagofacile__paylogo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    border: 1px solid rgba(21,113,85, 0.18);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rei-ink, #157155);
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(21,113,85, 0.06);
}

.rei-pagofacile__paylogo-img {
    display: block;
    height: 22px;
    width: auto;
}

.rei-pagofacile__paylogo-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #3C3C3B;
}

/* Bottoni */
.rei-pagofacile__btn {
    display: inline-block;
    background: var(--rei-green, #20A47B);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 13px 28px;
    border-radius: 999px;
    border: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
    align-self: flex-start;
    line-height: 1.2;
    box-shadow:
        0 10px 22px -6px rgba(32,164,123, 0.45),
        0 4px 10px -3px rgba(32,164,123, 0.3);
}

.rei-pagofacile__btn:hover {
    background: var(--rei-green-deep, #157155);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow:
        0 14px 28px -6px rgba(32,164,123, 0.55),
        0 6px 14px -3px rgba(32,164,123, 0.35);
}

.rei-pagofacile__btn--primary {
    background: var(--rei-navy, #157155);
    box-shadow:
        0 10px 22px -6px rgba(21,113,85, 0.4),
        0 4px 10px -3px rgba(21,113,85, 0.25);
}

.rei-pagofacile__btn--primary:hover {
    background: var(--rei-navy-dark, #157155);
    box-shadow:
        0 14px 28px -6px rgba(21,113,85, 0.5),
        0 6px 14px -3px rgba(21,113,85, 0.3);
}

/* ==========================================================================
   AIUTO / CONTATTI
   ========================================================================== */
.rei-pagofacile__help {
    padding: 0 0 80px;
}

.rei-pagofacile__help-box {
    background: var(--rei-green-vlight, #E4F6F0);
    border: 2px solid var(--rei-green, #20A47B); /* v2.2: contorno verde su tutti i riquadri */
    border-radius: 24px;
    padding: 36px 32px;
    text-align: center;
}

.rei-pagofacile__help-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--rei-ink, #157155);
    margin: 0 0 22px;
}

.rei-pagofacile__help-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.rei-pagofacile__help-actions .rei-pagofacile__btn {
    align-self: auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .rei-pagofacile__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .rei-pagofacile__container {
        padding: 0 20px;
    }
    .rei-pagofacile__hero {
        padding: 56px 0 28px;
    }
    .rei-pagofacile__methods {
        padding: 24px 0 48px;
    }
    .rei-pagofacile__card {
        padding: 28px 22px;
    }
    .rei-pagofacile__card-icon {
        width: 64px;
        height: 64px;
    }
    .rei-pagofacile__card-icon svg {
        width: 30px;
        height: 30px;
    }
    .rei-pagofacile__help {
        padding-bottom: 56px;
    }
}
