.pdf-verifica-box { background: #ffffff; border: 1px solid #E2E8F0; border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(11,31,58,.08); margin: 24px 0; }
.pdf-verifica-form label { display: block; font-weight: 700; color: #0B1F3A; margin-bottom: 10px; }
.pdf-verifica-row { display: flex; gap: 12px; }
.pdf-verifica-row input { flex: 1; min-height: 48px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 0 14px; font-size: 16px; }
.pdf-verifica-row button { border: 0; border-radius: 10px; background: #123C69; color: #fff; font-weight: 700; padding: 0 22px; cursor: pointer; }
.pdf-result-card { margin-top: 24px; border-radius: 18px; padding: 22px; border: 1px solid #E2E8F0; }
.pdf-result-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pdf-result-header h3 { margin: 0; color: #0B1F3A; }
.pdf-result-header p { margin: 3px 0 0; }
.pdf-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: 0 0 18px; }
.pdf-result-green { background: #F4FBF7; border-color: #BCE3CC; }
.pdf-result-green .pdf-dot { background: #1F8A4C; box-shadow: 0 0 0 6px rgba(31,138,76,.12); }
.pdf-result-yellow { background: #FFF9EA; border-color: #F3D895; }
.pdf-result-yellow .pdf-dot { background: #D99A00; box-shadow: 0 0 0 6px rgba(217,154,0,.14); }
.pdf-result-red { background: #FFF2F1; border-color: #F1B8B2; }
.pdf-result-red .pdf-dot { background: #B3261E; box-shadow: 0 0 0 6px rgba(179,38,30,.13); }
.pdf-result-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.pdf-result-data div { background: #fff; border: 1px solid rgba(226,232,240,.9); border-radius: 12px; padding: 12px; }
.pdf-result-data dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #64748B; font-weight: 700; margin-bottom: 4px; }
.pdf-result-data dd { margin: 0; color: #0B1F3A; font-weight: 700; word-break: break-word; }
.pdf-disclaimer-small { color: #526171; font-size: 13px; margin: 18px 0 0; line-height: 1.55; }
@media (max-width: 720px) { .pdf-verifica-row { flex-direction: column; } .pdf-verifica-row button { min-height: 48px; } .pdf-result-data { grid-template-columns: 1fr; } }

.pdf-public-actions { margin-top: 18px; }
.pdf-public-actions a { display: inline-block; background: #123C69; color: #fff; border-radius: 10px; padding: 10px 14px; text-decoration: none; font-weight: 700; }
.pdf-public-actions a:hover { color: #fff; opacity: .92; }

/* Modulo 3 - Area Società Emittenti */
.pdf-emittente-box,
.pdf-emittente-area {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 14px 38px rgba(11,31,58,.08);
    margin: 24px 0;
}
.pdf-emittente-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid #e6edf3;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.pdf-emittente-head h2 { margin: 0 0 6px; color: #0B1F3A; }
.pdf-emittente-head p { margin: 0; color: #52616f; }
.pdf-emittente-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pdf-btn,
.pdf-front-form button,
#pdf-login-emittente .button-primary {
    display: inline-block;
    background: #123C69;
    color: #fff !important;
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
}
.pdf-btn:hover,
.pdf-front-form button:hover,
#pdf-login-emittente .button-primary:hover { opacity: .92; }
.pdf-btn-light,
.pdf-btn--light,
.pdf-btn--ghost,
.pdf-btn-secondary {
    background: #eef3f8;
    color: #000000 !important;
    text-shadow: none !important;
}
.pdf-notice-success {
    background: #eaf7ef;
    border-left: 5px solid #1F8A4C;
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    color: #0B1F3A;
    font-weight: 700;
}
.pdf-front-table-wrap { overflow-x: auto; }
.pdf-front-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.pdf-front-table th,
.pdf-front-table td {
    border-bottom: 1px solid #e6edf3;
    padding: 13px 10px;
    text-align: left;
    vertical-align: middle;
}
.pdf-front-table th {
    background: #F4F6F8;
    color: #0B1F3A;
    font-weight: 800;
}
.pdf-front-table code {
    background: #eef3f8;
    color: #0B1F3A;
    padding: 4px 7px;
    border-radius: 7px;
}
.pdf-front-form .pdf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.pdf-front-form .pdf-field,
.pdf-emittente-box .login-username,
.pdf-emittente-box .login-password,
.pdf-emittente-box .login-remember {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}
.pdf-front-form label,
.pdf-emittente-box label {
    font-weight: 800;
    color: #0B1F3A;
}
.pdf-front-form input,
.pdf-front-form select,
.pdf-front-form textarea,
.pdf-emittente-box input[type="text"],
.pdf-emittente-box input[type="password"] {
    width: 100%;
    border: 1px solid #ccd7e2;
    border-radius: 10px;
    padding: 12px 13px;
    background: #fff;
    color: #2F3A45;
}
.pdf-front-form input[readonly] { background: #F4F6F8; }
.pdf-front-form small { color: #52616f; }
.pdf-field-full { margin-top: 18px; }
@media (max-width: 800px) {
    .pdf-emittente-head { flex-direction: column; }
    .pdf-emittente-actions { justify-content: flex-start; }
    .pdf-front-form .pdf-form-grid { grid-template-columns: 1fr; }
}

/* STEP 25 - Area società emittente evoluta */
.pdf-emittente-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}
.pdf-dash-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.pdf-dash-card-wide {
    grid-column: span 1;
}
.pdf-dash-card span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.72;
    margin-bottom: 8px;
}
.pdf-dash-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.15;
}
.pdf-dash-card small {
    display: block;
    margin-top: 8px;
    opacity: 0.72;
}
.pdf-form-help {
    margin: 0 0 18px;
    opacity: 0.78;
}
.pdf-front-table-wrap {
    overflow-x: auto;
}
.pdf-front-table th,
.pdf-front-table td {
    white-space: nowrap;
}
@media (max-width: 900px) {
    .pdf-emittente-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .pdf-emittente-dashboard {
        grid-template-columns: 1fr;
    }
}

/* STEP 26 - Verifica pubblica definitiva */
.pdf-form-microcopy {
    margin: 10px 0 0;
    color: #526171;
    font-size: 13px;
    line-height: 1.45;
}
.pdf-contact-details {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(179, 38, 30, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
}
.pdf-contact-details summary {
    cursor: pointer;
    font-weight: 800;
    color: #0B1F3A;
    margin-bottom: 14px;
}
.pdf-negative-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pdf-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.pdf-negative-contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
    color: #0B1F3A;
}
.pdf-negative-contact-form input,
.pdf-negative-contact-form textarea {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
    color: #2F3A45;
    font-size: 15px;
}
.pdf-negative-contact-form .pdf-privacy-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
    font-weight: 600;
    font-size: 13px;
    color: #526171;
}
.pdf-negative-contact-form .pdf-privacy-check input {
    width: auto;
    margin-top: 2px;
}
@media (max-width: 720px) {
    .pdf-contact-grid { grid-template-columns: 1fr; }
}

/* STEP 28 - Pagina pubblica società emittenti aderenti */
.pdf-aderenti-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pdf-aderenti-hero {
    background: linear-gradient(135deg, #0B1F3A 0%, #123C69 100%);
    color: #fff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 18px 40px rgba(11, 31, 58, .16);
}
.pdf-aderenti-hero .pdf-kicker {
    color: #D4AF37;
}
.pdf-aderenti-hero h2 {
    color: #fff;
    margin: 8px 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}
.pdf-aderenti-hero p {
    color: rgba(255,255,255,.86);
    max-width: 880px;
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
}
.pdf-aderenti-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.pdf-aderenti-count {
    display: inline-flex;
    align-self: flex-start;
    background: #EAF0F7;
    color: #0B1F3A;
    border: 1px solid #D7E1EE;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: 13px;
}
.pdf-aderenti-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.pdf-aderente-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(11, 31, 58, .08);
}
.pdf-aderente-card-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}
.pdf-aderente-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #EAF0F7;
    color: #123C69;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    font-weight: 900;
    font-size: 26px;
}
.pdf-aderente-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pdf-aderente-card h3 {
    margin: 0 0 7px;
    color: #0B1F3A;
    font-size: 21px;
    line-height: 1.25;
}
.pdf-aderente-badge {
    display: inline-block;
    background: #E4F4EA;
    color: #1F8A4C;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}
.pdf-aderente-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 16px;
}
.pdf-aderente-meta div {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
}
.pdf-aderente-meta span {
    display: block;
    color: #526171;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}
.pdf-aderente-meta strong {
    color: #0B1F3A;
    font-size: 14px;
    line-height: 1.35;
}
.pdf-aderente-auth {
    margin: 0;
    padding-left: 18px;
    color: #2F3A45;
    line-height: 1.6;
}
.pdf-aderente-muted {
    color: #526171;
    margin: 0;
}
.pdf-aderente-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #E2E8F0;
    margin-top: 18px;
    padding-top: 14px;
}
.pdf-aderente-link {
    color: #123C69;
    font-weight: 800;
    text-decoration: none;
}
.pdf-aderente-link:hover {
    text-decoration: underline;
}
.pdf-aderenti-disclaimer {
    background: #F8FAFC;
    border-left: 4px solid #D4AF37;
    color: #526171;
    border-radius: 12px;
    padding: 16px 18px;
    line-height: 1.55;
}
.pdf-aderenti-disclaimer strong {
    color: #0B1F3A;
}
@media (max-width: 860px) {
    .pdf-aderenti-grid,
    .pdf-aderente-meta {
        grid-template-columns: 1fr;
    }
    .pdf-aderenti-hero {
        padding: 24px;
    }
}

/* STEP 29 - Accreditamento società emittenti */
.pdf-accreditamento-wrap {
    max-width: 1120px;
    margin: 0 auto;
}
.pdf-accreditamento-hero {
    background: linear-gradient(135deg, #0B1F3A, #123C69);
    color: #fff;
    border-radius: 24px;
    padding: 34px;
    margin-bottom: 24px;
    box-shadow: 0 18px 42px rgba(11,31,58,.16);
}
.pdf-accreditamento-hero h2 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}
.pdf-accreditamento-hero p {
    margin: 0;
    color: rgba(255,255,255,.86);
    max-width: 860px;
    line-height: 1.65;
}
.pdf-kicker {
    display: inline-block;
    color: #D4AF37;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: 12px;
}
.pdf-accreditamento-form {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 28px rgba(11,31,58,.08);
}
.pdf-accreditamento-form h3 {
    color: #0B1F3A;
    margin: 26px 0 14px;
    padding-top: 18px;
    border-top: 1px solid #E2E8F0;
}
.pdf-accreditamento-form h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.pdf-accreditamento-form .pdf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.pdf-accreditamento-form label {
    display: block;
    color: #0B1F3A;
    font-weight: 800;
    font-size: 14px;
}
.pdf-accreditamento-form input,
.pdf-accreditamento-form select,
.pdf-accreditamento-form textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 15px;
    color: #0B1F3A;
    background: #fff;
}
.pdf-accreditamento-form textarea {
    resize: vertical;
}
.pdf-field-wide {
    grid-column: 1 / -1;
}
.pdf-checkline {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px;
}
.pdf-checkline input,
.pdf-privacy-check input {
    width: auto !important;
    margin: 0 !important;
}
.pdf-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
@media (max-width: 820px) {
    .pdf-accreditamento-form .pdf-form-grid {
        grid-template-columns: 1fr;
    }
    .pdf-accreditamento-hero,
    .pdf-accreditamento-form {
        padding: 22px;
    }
}

/* STEP 30 - Sicurezza, Privacy e Compliance */
.pdf-local-verify-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 2px dashed #123C69;
    background: #F8FAFC;
    color: #0B1F3A;
    padding: 12px;
    text-align: center;
    box-sizing: border-box;
}
.pdf-local-verify-card strong { font-size: 18px; letter-spacing: .08em; }
.pdf-local-verify-card span { font-family: monospace; font-weight: 800; word-break: break-all; }
.pdf-local-verify-card small { color: #526171; word-break: break-all; }


/* STEP 31 - Credito operativo area emittente */
.pdf-emittente-dashboard .pdf-dash-card small { display:block; margin-top:4px; color:#526171; }


/* STEP 51B - Leggibilità testi su sezioni blu generate dal plugin */
.pdf-aderenti-hero :where(h1,h2,h3,h4,h5,h6,.wp-block-heading,strong,b),
.pdf-accreditamento-hero :where(h1,h2,h3,h4,h5,h6,.wp-block-heading,strong,b) {
    color: #FFFFFF !important;
}
.pdf-aderenti-hero :where(p,li,span,small,em),
.pdf-accreditamento-hero :where(p,li,span,small,em) {
    color: rgba(255,255,255,.86) !important;
}
.pdf-aderenti-hero :where(.pdf-kicker),
.pdf-accreditamento-hero :where(.pdf-kicker) {
    color: #D7EFFF !important;
}
.pdf-aderenti-hero a:not(.pdf-btn):not(.wp-block-button__link),
.pdf-accreditamento-hero a:not(.pdf-btn):not(.wp-block-button__link) {
    color: #D7EFFF !important;
}
.pdf-aderenti-hero a:not(.pdf-btn):not(.wp-block-button__link):hover,
.pdf-accreditamento-hero a:not(.pdf-btn):not(.wp-block-button__link):hover {
    color: #FFFFFF !important;
}

/* Copertura aggiuntiva per blocchi WordPress/shortcode con sfondo blu nell'area frontend plugin. */
:is(
    .has-pdf-blue-900-background-color,
    .has-pdf-blue-800-background-color,
    .has-pdf-blue-700-background-color,
    .has-blue-background-color,
    .has-navy-background-color,
    .has-primary-background-color,
    .wp-block-cover[style*="background-color:#0B1F3A" i],
    .wp-block-cover[style*="background-color: #0B1F3A" i],
    .wp-block-cover[style*="background-color:#102B4E" i],
    .wp-block-cover[style*="background-color: #102B4E" i],
    .wp-block-cover[style*="background-color:#123C69" i],
    .wp-block-cover[style*="background-color: #123C69" i],
    .wp-block-group[style*="background-color:#0B1F3A" i],
    .wp-block-group[style*="background-color: #0B1F3A" i],
    .wp-block-group[style*="background-color:#102B4E" i],
    .wp-block-group[style*="background-color: #102B4E" i],
    .wp-block-group[style*="background-color:#123C69" i],
    .wp-block-group[style*="background-color: #123C69" i]
) :where(h1,h2,h3,h4,h5,h6,.wp-block-heading,strong,b) {
    color: #FFFFFF !important;
}
:is(
    .has-pdf-blue-900-background-color,
    .has-pdf-blue-800-background-color,
    .has-pdf-blue-700-background-color,
    .has-blue-background-color,
    .has-navy-background-color,
    .has-primary-background-color,
    .wp-block-cover[style*="background-color:#0B1F3A" i],
    .wp-block-cover[style*="background-color: #0B1F3A" i],
    .wp-block-cover[style*="background-color:#102B4E" i],
    .wp-block-cover[style*="background-color: #102B4E" i],
    .wp-block-cover[style*="background-color:#123C69" i],
    .wp-block-cover[style*="background-color: #123C69" i],
    .wp-block-group[style*="background-color:#0B1F3A" i],
    .wp-block-group[style*="background-color: #0B1F3A" i],
    .wp-block-group[style*="background-color:#102B4E" i],
    .wp-block-group[style*="background-color: #102B4E" i],
    .wp-block-group[style*="background-color:#123C69" i],
    .wp-block-group[style*="background-color: #123C69" i]
) :where(p,li,span,small,em) {
    color: rgba(255,255,255,.86) !important;
}


/* STEP 51D - Bottoni con fondo chiaro: testo nero obbligatorio.
   Copre area emittenti, shortcode pubblici, pagine commerciali e blocchi generati dal tema. */
:root { --pdf-text-on-light-button: #000000; }

:is(.pdf-btn-light,.pdf-btn--light,.pdf-btn--ghost,.pdf-btn-secondary,.pdf-button-light) {
    color: var(--pdf-text-on-light-button) !important;
    text-shadow: none !important;
}

:is(.pdf-btn-light,.pdf-btn--light,.pdf-btn--ghost,.pdf-btn-secondary,.pdf-button-light) :where(span,strong,em,small,b,i) {
    color: var(--pdf-text-on-light-button) !important;
    text-shadow: none !important;
}

:where(a,button,input[type="button"],input[type="submit"],.wp-block-button__link)[style*="background:#fff" i],
:where(a,button,input[type="button"],input[type="submit"],.wp-block-button__link)[style*="background: #fff" i],
:where(a,button,input[type="button"],input[type="submit"],.wp-block-button__link)[style*="background-color:#fff" i],
:where(a,button,input[type="button"],input[type="submit"],.wp-block-button__link)[style*="background-color: #fff" i],
:where(a,button,input[type="button"],input[type="submit"],.wp-block-button__link)[style*="background:#f" i],
:where(a,button,input[type="button"],input[type="submit"],.wp-block-button__link)[style*="background: #f" i],
:where(a,button,input[type="button"],input[type="submit"],.wp-block-button__link)[style*="background-color:#f" i],
:where(a,button,input[type="button"],input[type="submit"],.wp-block-button__link)[style*="background-color: #f" i] {
    color: var(--pdf-text-on-light-button) !important;
    text-shadow: none !important;
}
