/* =============================================================================
   CRM-PHP — modulo.css | v2.0 | 2026-03-05
   =============================================================================
   Landing page professionale per modulo pubblico registrazione lead.
   Usato da: views/modulo/form.php + successo.php + errore.php
   ============================================================================= */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --lp-green:       #034a64;
    --lp-green-dark:  #0a6e38;
    --lp-green-light: #e8f7ef;
    --lp-green-glow:  rgba(15, 138, 71, 0.15);
    --lp-dark:        #0d1117;
    --lp-grey:        #636e7b;
    --lp-light:       #f6f8fa;
    --lp-white:       #ffffff;
    --lp-red:         #dc2626;
    --lp-radius:      12px;
    --lp-shadow:      0 4px 24px rgba(0,0,0,0.06);
    --lp-shadow-lg:   0 20px 60px rgba(0,0,0,0.10);
    --lp-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--lp-font);
    color: var(--lp-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   LANDING PAGE (lp-*)
   ============================================================ */

/* --- Top bar --- */
.lp-body {
    min-height: 100vh;
    background: var(--lp-light);
}

.lp-topbar {
    background: var(--lp-white);
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
}
.lp-topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.lp-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.lp-topbar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lp-grey);
    letter-spacing: 0.01em;
}

/* --- Hero section --- */
.lp-hero {
    background: linear-gradient(160deg, #064e2b 0%, #034a64 50%, #066785 100%);
    padding: 56px 20px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lp-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.lp-hero-inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.lp-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.lp-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.lp-hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 28px;
}
.lp-hero-sub strong {
    color: #fff;
}
.lp-trust-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.lp-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    font-weight: 600;
}
.lp-trust-icon {
    font-size: 1.1rem;
}

/* --- Form wrapper --- */
.lp-main {
    padding: 0 16px;
}
.lp-form-wrap {
    max-width: 680px;
    margin: -32px auto 0;
    position: relative;
    z-index: 2;
    background: var(--lp-white);
    border-radius: 18px;
    box-shadow: var(--lp-shadow-lg);
    padding: 32px 28px 28px;
}
.lp-form-wrap--narrow {
    max-width: 440px;
}

/* Titolo e sottotitolo del form embedded (senza logo): testo centrato */
.embed-wrap .lp-form-title,
.embed-wrap .lp-form-sub {
    text-align: center;
}

/* --- Hero compact (login) --- */
.lp-hero--compact {
    padding: 44px 20px 40px;
}
.lp-hero--compact .lp-hero-title {
    font-size: 2rem;
}
.lp-hero--compact .lp-hero-sub {
    margin-bottom: 0;
}

/* --- Alert --- */
.lp-alert {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
}
.lp-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* --- Form sections (stepper) --- */
.lp-section {
    margin-bottom: 28px;
}
.lp-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.lp-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lp-green);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}
.lp-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lp-dark);
    letter-spacing: -0.01em;
}

/* --- Grid --- */
.lp-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}
.lp-grid:last-child { margin-bottom: 0; }
.lp-grid--2 { grid-template-columns: 1fr 1fr; }

/* --- Fields --- */
.lp-field { display: flex; flex-direction: column; }
.lp-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.lp-req { color: var(--lp-red); }
.lp-opt { color: #9ca3af; font-weight: 500; font-size: 0.85em; }

.lp-input,
.lp-select,
.lp-textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: var(--lp-font);
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: var(--lp-white);
    color: var(--lp-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}
.lp-input:focus,
.lp-select:focus,
.lp-textarea:focus {
    outline: none;
    border-color: var(--lp-green);
    box-shadow: 0 0 0 3px var(--lp-green-glow);
}
.lp-input::placeholder,
.lp-textarea::placeholder {
    color: #9ca3af;
}
.lp-input--error {
    border-color: var(--lp-red) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.lp-select {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.lp-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* --- Submit --- */
.lp-submit {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
    text-align: center;
}
.lp-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--lp-green) 0%, #066785 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.08rem;
    font-weight: 700;
    font-family: var(--lp-font);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 6px 24px rgba(15, 138, 71, 0.3);
}
.lp-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(15, 138, 71, 0.35);
}
.lp-btn-submit:active {
    transform: translateY(0);
}
.lp-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.lp-btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.15s;
}
.lp-btn-submit:hover .lp-btn-arrow {
    transform: translateX(3px);
}
.lp-privacy {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 14px;
    line-height: 1.5;
}
.lp-privacy abbr {
    text-decoration: none;
    border-bottom: 1px dotted #9ca3af;
}

/* --- Footer --- */
.lp-footer {
    text-align: center;
    padding: 28px 16px;
    font-size: 0.82rem;
    color: #9ca3af;
}


/* ============================================================
   LOGIN LANDING — layout due colonne (features + form)
   ============================================================ */
.login-landing {
    max-width: 960px;
    margin: -32px auto 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: stretch;   /* pareggia l'altezza delle due colonne */
}

/* Features (colonna sinistra) */
.login-features {
    background: var(--lp-white);
    border-radius: 18px;
    box-shadow: var(--lp-shadow-lg);
    padding: 32px 28px;
}
.login-features-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--lp-dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.login-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f0f1f3;
}
.login-feature:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.login-feature-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-green-light);
    border-radius: 10px;
}
.login-feature strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lp-dark);
    margin-bottom: 2px;
}
.login-feature p {
    font-size: 0.85rem;
    color: var(--lp-grey);
    line-height: 1.5;
    margin: 0;
}

/* Form login (colonna destra) — pareggia altezza colonna sinistra,
   form centrato verticalmente quando avanza spazio */
.login-form-col {
    display: flex;
    align-items: center;
}
.lp-form-wrap--login {
    max-width: 100%;
    margin: 0;
    width: 100%;
}
.login-form-head {
    text-align: center;
    margin-bottom: 24px;
}
.login-form-icon {
    color: var(--lp-green);
    margin-bottom: 8px;
}
.login-form-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--lp-dark);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.login-form-sub {
    font-size: 0.85rem;
    color: var(--lp-grey);
    line-height: 1.5;
}
.login-help {
    text-align: center;
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 16px;
    line-height: 1.5;
}

/* ============================================================
   RISULTATO: successo / errore (rc-*)
   Manteniamo compatibilita con classi esistenti
   ============================================================ */
.mc-body,
.rc-body {
    min-height: 100vh;
    background: linear-gradient(160deg, #064e2b 0%, #034a64 50%, #066785 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    font-family: var(--lp-font);
}
.mc-wrap,
.rc-wrap {
    width: 100%;
    max-width: 580px;
}
.mc-card,
.rc-card {
    background: var(--lp-white);
    border-radius: 18px;
    box-shadow: var(--lp-shadow-lg);
    padding: 36px 28px;
    text-align: center;
}
.rc-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--lp-green-light);
    color: var(--lp-green);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.rc-icon--error {
    background: #fef2f2;
    color: var(--lp-red);
}
.rc-card--error {
    border-top: 4px solid var(--lp-red);
}
.rc-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--lp-dark);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.rc-msg,
.rc-subtitle {
    color: var(--lp-grey);
    font-size: 0.97rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.rc-box {
    background: var(--lp-green-light);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}
.rc-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.rc-row:last-child { margin-bottom: 0; }
.rc-label {
    font-weight: 700;
    color: #065f46;
    min-width: 80px;
}
.rc-value { color: var(--lp-dark); }
.rc-warn {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: #92400e;
    text-align: left;
}
.rc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Bottoni risultato */
.mc-btn,
.rc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--lp-green) 0%, #066785 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: var(--lp-font);
    box-shadow: 0 6px 20px rgba(15, 138, 71, 0.25);
}
.mc-btn:hover,
.rc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 138, 71, 0.32);
}
.mc-btn--wa {
    background: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}
.mc-btn--wa:hover {
    background: #1ebe5a;
}
.mc-btn--ghost,
.rc-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: var(--lp-grey);
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--lp-font);
    transition: background 0.15s;
}
.mc-btn--ghost:hover,
.rc-btn-ghost:hover {
    background: var(--lp-light);
}

.mc-note {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 16px;
    line-height: 1.5;
}
.mc-note a {
    color: var(--lp-green);
    font-weight: 600;
    text-decoration: none;
}
.mc-note a:hover {
    text-decoration: underline;
}

/* Share */
.rc-share { margin-bottom: 20px; }
.rc-share-title { font-weight: 700; font-size: 0.88rem; color: #374151; margin-bottom: 10px; }
.rc-share-img { width: 100%; max-width: 300px; border-radius: 10px; margin: 0 auto 10px; display: block; }
.rc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}
.rc-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #15803d;
    font-weight: 700;
    text-decoration: none;
}

/* ============================================================
   OLD mc-* classes (backward compat for form if still used)
   ============================================================ */
.mc-alert {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

/* ============================================================
   RICHIESTA DOCUMENTI (rd-*)
   ============================================================ */
.rd-wrap {
    max-width: 860px;
}
.rd-login-cta {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #475569;
}
.rd-login-cta a {
    color: var(--lp-green-dark);
    font-weight: 700;
    text-decoration: none;
}
.rd-login-cta a:hover { text-decoration: underline; }
.rd-note {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 12px;
}
.rd-errors {
    margin-top: 8px;
    padding-left: 18px;
}
.rd-errors li {
    margin-bottom: 3px;
}
.rd-download-grid,
.rd-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.rd-download-item {
    background: #f8fafc;
    border: 1px solid #dbe2ef;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rd-download-item strong {
    font-size: 0.92rem;
    color: #111827;
}
.rd-download-item a {
    font-size: 0.9rem;
    color: var(--lp-green-dark);
    font-weight: 700;
    text-decoration: none;
}
.rd-download-item a:hover {
    text-decoration: underline;
}
.rd-missing {
    font-size: 0.88rem;
    color: #9ca3af;
}
.rd-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}
.rd-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}
.rd-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================================
   PORTAL AREA RICHIESTA DOCUMENTI (rdp-*)
   ============================================================ */
.rdp-main {
    max-width: 560px;
    margin: 36px auto;
    padding: 0 16px 24px;
}
.rdp-card {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}
.rdp-card h1 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    color: #0a1a23;
}
.rdp-sub {
    margin: 0 0 18px;
    color: #64748b;
}
.rdp-form { display: grid; gap: 14px; }
.rdp-links {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}
.rdp-links a {
    color: #0f766e;
    text-decoration: none;
    font-size: 0.92rem;
}
.rdp-links a:hover { text-decoration: underline; }

.rdp-logout {
    margin-right: 24px;
    color: #0a1a23;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 14px;
    background: #fff;
}
.rdp-area {
    max-width: 1080px;
    margin: 24px auto 36px;
    padding: 0 16px;
}
.rdp-profile {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.rdp-profile h1 {
    margin: 0 0 6px;
    font-size: 1.8rem;
    color: #0a1a23;
}
.rdp-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.rdp-profile-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}
.rdp-profile-grid span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.rdp-profile-grid strong {
    font-size: 0.95rem;
    color: #0a1a23;
}
.rdp-shipping .rdp-request-head p {
    max-width: 720px;
}
.rdp-shipping-checks {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}
.rdp-shipping-checks--optional {
    margin-top: 6px;
}
.rdp-shipping-label {
    margin: 0;
    font-weight: 700;
    color: #0a1a23;
}
.rdp-checkbox-block {
    padding-top: 28px;
}
.rdp-subsection-title {
    margin: 8px 0 8px;
    font-size: 0.95rem;
    color: #0a1a23;
}
.rdp-btn-save-profile {
    max-width: 440px;
}
.rdp-empty {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.rdp-empty p { margin: 0 0 14px; color: #475569; }
.rdp-list { display: grid; gap: 14px; }
.rdp-request {
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 16px;
    padding: 18px 18px 14px;
}
.rdp-request-new {
    margin-bottom: 14px;
}
.rdp-alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #86efac;
}
.rdp-upload-help {
    background: #f8fafc;
    border: 1px solid #dbe2ef;
    border-radius: 12px;
    padding: 12px 14px;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 14px;
}
.rdp-request-form .lp-section {
    margin-bottom: 18px;
}
.rdp-doc-dynamic {
    margin-bottom: 12px;
}
.rdp-doc-dynamic h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #0a1a23;
}
.rdp-upload-field[style*="display: none"] {
    margin: 0;
}
.rdp-submit {
    padding-top: 16px;
}
.rdp-request-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.rdp-request-head h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: #0a1a23;
}
.rdp-request-head p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
}
.rdp-state {
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.rdp-state.is-pending { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.rdp-state.is-progress { background: #ecfeff; color: #155e75; border-color: #a5f3fc; }
.rdp-state.is-waiting { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.rdp-state.is-shipped { background: #f0fdf4; color: #166534; border-color: #86efac; }
.rdp-state.is-completed { background: #dcfce7; color: #14532d; border-color: #4ade80; }
.rdp-state.is-cancelled { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

.rdp-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.rdp-meta div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
}
.rdp-meta span {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.rdp-meta strong {
    font-size: 0.88rem;
    color: #0a1a23;
}
.rdp-doc-status h3,
.rdp-doc-list h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #0a1a23;
}
.rdp-doc-status { margin-bottom: 12px; }
.rdp-doc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rdp-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-size: 0.82rem;
}
.rdp-pill.is-ok {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}
.rdp-pill.is-missing {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}
.rdp-doc-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.rdp-doc-list th, .rdp-doc-list td {
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 8px;
    text-align: left;
    vertical-align: top;
}
.rdp-doc-list th {
    color: #475569;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rdp-doc-list a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}
.rdp-doc-list a:hover { text-decoration: underline; }

.rdp-hero-slider {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #dbe2ef;
    border-radius: 16px;
    padding: 14px 14px 10px;
}
.rdp-slider-track {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 230px;
}
.rdp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    cursor: pointer;
}
.rdp-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.rdp-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.rdp-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(2, 6, 23, 0.8), rgba(15, 118, 110, 0.55));
}
.rdp-slide-content {
    position: relative;
    z-index: 1;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 24px;
}
.rdp-slide-content h3 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.rdp-slide-content p {
    margin: 0;
    max-width: 70%;
    color: rgba(255, 255, 255, 0.9);
}
.rdp-slide-cta {
    margin-top: 4px;
    align-self: flex-start;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #034a64 0%, #066785 100%);
    cursor: pointer;
}
.rdp-slider-controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.rdp-slider-nav {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0a1a23;
    border-radius: 8px;
    height: 30px;
    width: 30px;
    cursor: pointer;
}
.rdp-slider-dots {
    display: flex;
    gap: 8px;
}
.rdp-slider-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: #cbd5e1;
    cursor: pointer;
}
.rdp-slider-dots button.is-active {
    background: #034a64;
}
.rdp-iframe-modal[hidden] {
    display: none;
}
.rdp-iframe-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}
.rdp-iframe-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
}
.rdp-iframe-panel {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100vw - 24px));
    height: min(80vh, 760px);
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 26px 50px rgba(2, 6, 23, 0.35);
}
.rdp-iframe-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
}
.rdp-iframe-close {
    border: 0;
    background: transparent;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    color: #334155;
}
.rdp-iframe-panel iframe {
    width: 100%;
    height: calc(100% - 53px);
    border: 0;
}
.rdp-modal-open {
    overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Login landing: tablet — stack to single column */
@media (max-width: 820px) {
    .login-landing {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .login-form-col {
        position: static;
        order: -1; /* form prima delle features su mobile */
    }
    .login-features-title { font-size: 1.1rem; }
}

@media (max-width: 640px) {
    .lp-hero { padding: 40px 16px 36px; }
    .lp-hero-title { font-size: 1.75rem; }
    .lp-hero-sub { font-size: 0.98rem; }
    .lp-trust-row { gap: 16px; }
    .lp-trust-item { font-size: 0.82rem; }

    .lp-form-wrap {
        margin-top: -24px;
        padding: 24px 18px 22px;
        border-radius: 14px;
    }
    .lp-grid--2 { grid-template-columns: 1fr; }
    .lp-section-title { font-size: 1.05rem; }
    .lp-step { width: 28px; height: 28px; font-size: 0.78rem; }
    .lp-input, .lp-select, .lp-textarea {
        font-size: 16px; /* evita zoom su iOS */
        padding: 12px 12px;
    }
    .lp-btn-submit { font-size: 1rem; padding: 15px 24px; }
    .lp-topbar-label { display: none; }
    .lp-logo { height: 32px; }

    /* Login landing mobile */
    .login-landing { margin-top: -24px; gap: 20px; }
    .login-features { padding: 24px 18px; border-radius: 14px; }
    .login-feature-icon { width: 36px; height: 36px; font-size: 1.2rem; }
    .rd-download-grid,
    .rd-upload-grid { grid-template-columns: 1fr; }
    .rdp-profile-grid,
    .rdp-meta { grid-template-columns: 1fr; }
    .rdp-request-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .rdp-checkbox-block {
        padding-top: 0;
    }
    .rdp-slide-content h3 {
        font-size: 1.3rem;
    }
    .rdp-slide-content p {
        max-width: 100%;
        font-size: 0.92rem;
    }
    .rdp-slider-track {
        min-height: 190px;
    }
    .rdp-iframe-panel {
        width: calc(100vw - 12px);
        margin-top: 8px;
        height: calc(100vh - 16px);
    }
    .rdp-logout {
        margin-right: 16px;
        padding: 7px 12px;
    }

    /* Successo/errore mobile */
    .mc-body, .rc-body { padding: 16px; }
    .mc-card, .rc-card {
        padding: 28px 18px;
        border-radius: 14px;
    }
    .rc-title { font-size: 1.5rem; }
    .rc-row { flex-direction: column; gap: 2px; }
    .rc-label { min-width: 0; }
}

@media (max-width: 380px) {
    .lp-hero-title { font-size: 1.5rem; }
    .lp-trust-row { flex-direction: column; align-items: center; gap: 8px; }
}

/* =============================================================================
   HONEYPOT ANTIBOT (7.2)
   Campo nascosto visualmente, invisibile ai tab e agli screen reader umani.
   I bot compilano tutti i campi => il submit viene invalidato server-side.
   ============================================================================= */
.lp-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

