/*
 * Blocchi nuovi MB92 (19/11/2026): parti comuni. Sito ed editor.
 * Ogni blocco ha poi il suo style.css nella cartella del blocco.
 */
.mb92-nb {
    --nb-ink: #1d1d1f;
    --nb-muted: #545860;
    --nb-line: rgba(0, 0, 0, .12);
    --nb-accent: #7d272d;
    --nb-card: #fff;
    --nb-surface: transparent;
    background: var(--nb-surface);
}
.mb92-nb--white { --nb-surface: #fff; }
.mb92-nb--light-gray { --nb-surface: #f1f1f1; }
.mb92-nb--tan { --nb-surface: #ece9e4; }
.mb92-nb--red { --nb-surface: #7d272d; --nb-accent: #fff; }
.mb92-nb--dark { --nb-surface: #232529; --nb-accent: #c9a26b; }
.mb92-nb--red,
.mb92-nb--dark {
    --nb-ink: #fff;
    --nb-muted: rgba(255, 255, 255, .78);
    --nb-line: rgba(255, 255, 255, .22);
    --nb-card: rgba(255, 255, 255, .07);
    color: #fff;
}
.mb92-nb--white { --nb-card: #f6f6f6; }

/* Titolo e testo introduttivo */
.mb92-nb__intro { margin-bottom: 48px; }
.mb92-nb__intro .text > :last-child,
.mb92-nb__intro .button-cta { margin-bottom: 0; }

/* Etichetta piccola sopra i titoli degli elementi (numeri degli step ecc.) */
.mb92-nb__kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--nb-accent);
    font-family: var(--font-buttons, 'Open Sans', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

/* Ingresso morbido degli elementi quando arrivano a schermo (solo sito) */
@media (prefers-reduced-motion: no-preference) {
    .mb92-nb [data-nb-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
    .mb92-nb [data-nb-reveal].is-in { opacity: 1; transform: none; }
}

/*
 * Editor: il testo introduttivo occupa tutta la riga ed è centrato come sul sito;
 * gli elementi (blocchi mb92/...) li dispone ogni blocco nel suo style.css.
 */
.editor-styles-wrapper .mb92-nb__editor > .acf-innerblocks-container > .wp-block:not([data-type^="mb92/"]) {
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
}
.editor-styles-wrapper .mb92-nb__editor > .acf-innerblocks-container > .wp-block:not([data-type^="mb92/"]):last-of-type {
    margin-bottom: 0;
}
.editor-styles-wrapper .mb92-nb__hint {
    display: block;
    margin: 0 0 18px;
    color: var(--nb-muted);
    font-size: 12px;
    font-style: italic;
    letter-spacing: .02em;
    text-align: center;
}
/* Editor: la lineetta del tema sotto i titoli (.underline) vale solo per il titolo
   della sezione, non per i titoli dentro gli elementi (schede, domande...) */
.editor-styles-wrapper .mb92-nb__editor .wp-block[data-type^="mb92/"] :is(h2, h3, h4) { padding-bottom: 0; }
.editor-styles-wrapper .mb92-nb__editor .wp-block[data-type^="mb92/"] .wp-block[data-type="core/heading"] { margin-bottom: 14px !important; }
.editor-styles-wrapper .mb92-nb__editor .wp-block[data-type^="mb92/"] :is(h2, h3, h4)::before { display: none; }
