/* ============================================================
   Portale Gestione Incassi — La Fontana
   portale.css  v1.0.0
   Shortcode: [ar_portale]
   ============================================================ */

/* ─── Wrapper ───────────────────────────────────────────────── */
.arp-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
}

/* ─── Avviso configurazione (solo admin) ────────────────────── */
.arp-config-notice {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    margin-bottom: 0;
}
.arp-config-notice a {
    color: #b45309;
    font-weight: 600;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.arp-hero {
    background: #1e40af;
    color: #fff;
    padding: 36px 32px 32px;
    text-align: center;
    border-radius: 0 0 16px 16px;
    margin-bottom: 0;
}

.arp-hero__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 10px;
}

.arp-hero__title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.arp-hero__sub {
    font-size: 15px;
    opacity: .85;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 20px;
}

.arp-hero__guide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.45);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}
.arp-hero__guide:hover {
    background: rgba(255,255,255,.28);
    color: #fff;
    text-decoration: none;
}
.arp-hero__guide-icon {
    font-size: 16px;
}

/* ─── Banner utente loggato ─────────────────────────────────── */
.arp-logged-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 14px 20px;
    margin: 24px 20px 0;
    flex-wrap: wrap;
}
.arp-logged-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.arp-logged-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.arp-logged-text strong {
    font-size: 15px;
    color: #14532d;
}
.arp-logged-text span {
    font-size: 13px;
    color: #16a34a;
}
.arp-logged-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: #16a34a;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.arp-logged-btn:hover {
    background: #15803d;
    color: #fff;
    text-decoration: none;
}

/* ─── Sezioni ────────────────────────────────────────────────── */
.arp-section {
    padding: 28px 20px 0;
}
.arp-section__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #94a3b8;
    margin-bottom: 16px;
}

/* ─── Divider ────────────────────────────────────────────────── */
.arp-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 28px 20px 0;
}

/* ─── Percorsi (2 card) ─────────────────────────────────────── */
.arp-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.arp-path {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}
.arp-path:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.09);
}

.arp-path--primary {
    border-color: #bfdbfe;
    border-width: 2px;
}

.arp-path__badge {
    display: inline-block;
    padding: 3px 10px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    align-self: flex-start;
}
.arp-path__badge--teal {
    background: #e1f5ee;
    color: #0f6e56;
}

.arp-path__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.arp-path__icon--blue { background: #eff6ff; }
.arp-path__icon--teal { background: #e1f5ee; }

.arp-path__head {}

.arp-path__title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.arp-path__desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* ─── Steps ─────────────────────────────────────────────────── */
.arp-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.arp-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 9px 12px;
}

.arp-step__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    color: #fff;
}
.arp-step__num--blue { background: #1d4ed8; }
.arp-step__num--teal { background: #0f6e56; }

.arp-step__text {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
}
.arp-step__text strong {
    color: #1e293b;
}

/* ─── Bottoni percorso ──────────────────────────────────────── */
.arp-path__btn {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, opacity .2s;
    margin-top: auto;
}
.arp-path__btn--blue {
    background: #1d4ed8;
    color: #fff;
}
.arp-path__btn--blue:hover {
    background: #1e40af;
    color: #fff;
    text-decoration: none;
}
.arp-path__btn--teal {
    background: #0f6e56;
    color: #fff;
}
.arp-path__btn--teal:hover {
    background: #085041;
    color: #fff;
    text-decoration: none;
}
.arp-path__btn--disabled {
    opacity: .45;
    cursor: default;
    pointer-events: none;
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    color: #94a3b8;
    margin-top: auto;
}

/* ─── Risorse ────────────────────────────────────────────────── */
.arp-resources {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arp-resource {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: #1e293b;
    transition: border-color .15s, background .15s;
    cursor: pointer;
}
.arp-resource:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    text-decoration: none;
    color: #1e293b;
}
.arp-resource--info {
    cursor: default;
}
.arp-resource__icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.arp-resource__title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}
.arp-resource__sub {
    font-size: 12px;
    color: #64748b;
}
.arp-resource__arrow {
    margin-left: auto;
    font-size: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* ─── Come funziona ─────────────────────────────────────────── */
.arp-how {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.arp-how__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 90px;
    max-width: 140px;
}

.arp-how__bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.arp-how__bubble--1 { background: #eff6ff; }
.arp-how__bubble--2 { background: #f0fdf4; }
.arp-how__bubble--3 { background: #fffbeb; }
.arp-how__bubble--4 { background: #f5f3ff; }

.arp-how__label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.45;
}

.arp-how__arrow {
    font-size: 18px;
    color: #cbd5e1;
    flex-shrink: 0;
    margin-top: -20px;
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.arp-faq {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.arp-faq__item {
    border-bottom: 1px solid #f1f5f9;
}
.arp-faq__item:last-child {
    border-bottom: none;
}

.arp-faq__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    gap: 12px;
    transition: background .15s;
    font-family: inherit;
}
.arp-faq__q:hover {
    background: #f8fafc;
}
.arp-faq__q--open {
    color: #1d4ed8;
}

.arp-faq__arrow {
    font-size: 16px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform .2s;
    display: inline-block;
}
.arp-faq__q--open .arp-faq__arrow {
    transform: rotate(90deg);
    color: #1d4ed8;
}

.arp-faq__a {
    padding: 0 18px 16px 18px;
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
}

/* ─── Footer ────────────────────────────────────────────────── */
.arp-footer {
    margin: 28px 20px 0;
    padding: 20px 0 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}
.arp-footer p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}
.arp-footer p strong {
    color: #64748b;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .arp-hero {
        padding: 28px 20px 24px;
        border-radius: 0;
    }
    .arp-hero__title {
        font-size: 21px;
    }
    .arp-hero__sub {
        font-size: 14px;
    }
    .arp-paths {
        grid-template-columns: 1fr;
    }
    .arp-how {
        gap: 6px;
    }
    .arp-how__bubble {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    .arp-how__step {
        min-width: 70px;
    }
    .arp-how__label {
        font-size: 11px;
    }
    .arp-how__arrow {
        font-size: 14px;
        margin-top: -16px;
    }
    .arp-logged-banner {
        flex-direction: column;
        align-items: flex-start;
        margin: 16px 12px 0;
    }
    .arp-logged-btn {
        width: 100%;
        justify-content: center;
    }
    .arp-section {
        padding: 20px 12px 0;
    }
    .arp-divider {
        margin: 20px 12px 0;
    }
    .arp-footer {
        margin: 20px 12px 0;
    }
}
