/* ==========================================================================
   Manuale Ready Pro – frontend pubblico v3
   Compatibile con IE11 (controllo WebBrowser dell'assistente) e browser moderni:
   niente variabili CSS, niente "gap" sui flex, niente grid obbligatorio.

   Palette (dai colori del logo)
   rosso        #E30613   accenti, voce attiva, pulsanti principali
   rosso scuro  #1A5CA8   link nel testo (contrasto 6.9:1 su bianco)
   nero         #16365C   testi forti, badge, header hero
   testo        #1F2933
   secondario   #52606D   (5.4:1 su bianco)
   bordi        #E1E5EA
   sfondo       #F1F4F8
   tinta rossa  #E6EEF8
   ========================================================================== */

/* font ospitati sul sito (cartella /fonts, licenza SIL OFL): niente richieste a Google */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"), url("../fonts/figtree-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"), url("../fonts/figtree-latin-600-normal.woff") format("woff"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"), url("../fonts/figtree-latin-700-normal.woff") format("woff"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/figtree-latin-800-normal.woff2") format("woff2"), url("../fonts/figtree-latin-800-normal.woff") format("woff"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"), url("../fonts/jetbrains-mono-latin-400-normal.woff") format("woff"); }

html { -webkit-text-size-adjust: 100%; }
*, *:before, *:after { box-sizing: border-box; }
body.rp {
    margin: 0;
    background: #FFFFFF;
    color: #1F2933;
    font-family: "Figtree", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.rp a { color: #1A5CA8; }
.rp a:hover { color: #123F75; }
.rp button { font-family: inherit; line-height: 1.2; }
.rp input, .rp select { font-family: inherit; font-size: inherit; color: inherit; }
.rp input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.rp button { cursor: pointer; }
.rp img { max-width: 100%; height: auto; border: 0; }
.rp [hidden] { display: none !important; }
.rp-i { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.rp-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.rp :focus { outline: 2px solid #1A5CA8; outline-offset: 2px; }
.rp :focus:not(:focus-visible) { outline: none; }
.rp :focus-visible { outline: 2px solid #1A5CA8; outline-offset: 2px; }
.rp-main:focus, .rp h1[tabindex]:focus { outline: none; }

.rp-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: #16365C; color: #FFFFFF !important; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.rp-skip:focus { top: 8px; }

/* barra di caricamento */
#rp-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: #E30613; z-index: 200; opacity: 0; transition: width .3s ease, opacity .2s ease; }
#rp-progress.is-on { opacity: 1; width: 70%; transition: width 4s cubic-bezier(.1,.6,.2,1), opacity .1s; }
#rp-progress.is-done { opacity: 0; width: 100%; transition: width .2s ease, opacity .3s ease .2s; }

/* ------------------------------------------------------------- pulsanti */
.rp-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid #C9D2DD; background: #FFFFFF; color: #1F2933 !important; font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.2; }
.rp-btn .rp-i { margin-right: 8px; }
.rp-btn:hover { border-color: #16365C; }
.rp-btn-ghost { min-height: 36px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: #2D3A47 !important; border-color: #E1E5EA; }
.rp-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #1F2933; }
.rp-icon-btn:hover { background: #F4F6F9; }

/* ------------------------------------------------------------- header */
.rp-header { position: relative; position: -webkit-sticky; position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-top: 4px solid #E30613; border-bottom: 1px solid #E1E5EA; }
.rp-header-in { display: flex; align-items: center; min-height: 64px; padding: 0 16px; }
.rp-header-in > * { margin-right: 16px; }
.rp-header-in > *:last-child { margin-right: 0; }
.rp-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.rp-logo img { display: block; height: 36px; width: auto; }
.rp-logo-sub { margin-left: 16px; padding-left: 16px; border-left: 1px solid #E1E5EA; font-size: 14px; font-weight: 600; color: #52606D; white-space: nowrap; }
.rp-hsearch { position: relative; flex: 1 1 auto; max-width: 680px; margin-left: auto !important; margin-right: auto !important; }

/* box di ricerca (header, hero, pagina non trovata) */
.rp-sbox { display: flex; align-items: stretch; height: 44px; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 10px; overflow: hidden; }
.rp-sbox:focus-within { border-color: #16365C; background: #FFFFFF; }
.rp-sbox:focus-within .rp-kbd { display: none; }
.rp-sbox select { flex: 0 0 auto; max-width: 190px; border: 0; border-right: 1px solid #E1E5EA; background: transparent; padding: 0 10px; font-size: 14px; color: #2D3A47; border-radius: 0; }
.rp-sbox input[type=search] { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; padding: 0 12px; font-size: 15px; color: #1F2933; -webkit-appearance: none; border-radius: 0; }
.rp-sbox input::-ms-clear { display: none; }
.rp-sbox button { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border: 0; background: #E30613; color: #FFFFFF; padding: 0 14px; font-size: 15px; font-weight: 700; }
.rp-sbox button:hover { background: #1A5CA8; }
.rp-sbox button span { margin-left: 8px; }
.rp-sbox-h button span { display: none; }
.rp-kbd { align-self: center; margin-right: 8px; font-family: inherit; font-size: 12px; color: #52606D; border: 1px solid #C9D2DD; border-radius: 6px; padding: 1px 7px; background: #FFFFFF; }

/* suggerimenti */
.rp-suggest { position: absolute; left: 0; right: 0; top: 52px; z-index: 60; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 12px; box-shadow: 0 12px 32px rgba(22,40,64,.16); padding: 6px; max-height: 70vh; overflow-y: auto; }
.rp-sg { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: #1F2933 !important; }
.rp-sg-t { display: block; font-size: 15px; font-weight: 600; }
.rp-sg-c { display: block; font-size: 12.5px; color: #52606D; margin-top: 2px; }
.rp-sg.is-active, .rp-sg:hover { background: #F4F6F9; box-shadow: inset 3px 0 0 #E30613; }
.rp-sg-all { display: flex; justify-content: space-between; margin-top: 4px; padding: 10px 12px; border-top: 1px solid #E6EBF1; font-size: 14px; font-weight: 700; text-decoration: none; }
.rp-sg-none { padding: 12px; color: #52606D; font-size: 14px; }
.rp mark { background: #FFE08A; color: inherit; border-radius: 3px; padding: 0 2px; }

.rp-lang { display: flex; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 8px; padding: 3px; flex-shrink: 0; }
.rp-lang a { font-size: 13px; font-weight: 700; color: #2D3A47; border-radius: 6px; padding: 6px 10px; text-decoration: none; margin-right: 2px; }
.rp-lang a:last-child { margin-right: 0; }
.rp-lang a.is-on { color: #FFFFFF; background: #16365C; }

.rp-only-mobile { display: none !important; }

/* ------------------------------------------------------------- layout */
.rp-layout { display: flex; align-items: flex-start; min-height: calc(100vh - 68px - 52px); }
.rp-main { flex: 1 1 auto; min-width: 0; padding: 28px 40px 64px; }

/* ------------------------------------------------------------- sidebar / indice */
.rp-sidebar { position: relative; position: -webkit-sticky; position: sticky; top: 68px; flex: 0 0 auto; width: 320px; height: calc(100vh - 68px); display: flex; flex-direction: column; background: #FFFFFF; border-right: 1px solid #E1E5EA; }
.rp-side-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px 20px; }
.rp-side-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #16365C; }
.rp-side-filter { padding: 4px 12px 10px; }
.rp-side-filter input { width: 100%; height: 38px; border: 1px solid #E1E5EA; border-radius: 8px; padding: 0 12px; font-size: 14px; background: #FFFFFF; -webkit-appearance: none; }
.rp-side-filter input:focus { background: #FFFFFF; border-color: #16365C; }
.rp-side-scroll { flex: 1 1 auto; overflow-y: auto; -ms-overflow-style: -ms-autohiding-scrollbar; padding: 0 8px 24px; }
.rp-resizer { position: absolute; top: 0; right: -4px; bottom: 0; width: 8px; cursor: col-resize; z-index: 5; }
.rp-resizer:hover, .rp-resizing .rp-resizer { background: rgba(227,6,19,.25); }
.rp-resizing { cursor: col-resize; -webkit-user-select: none; -ms-user-select: none; user-select: none; }
.rp-expand-side { display: none; }
.rp-scrim { display: none; }

body.rp-side-collapsed .rp-sidebar { display: none; }
body.rp-side-collapsed .rp-expand-side { display: flex !important; position: -webkit-sticky; position: sticky; top: 80px; margin: 12px 0 0 8px; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid #E1E5EA; border-radius: 10px; background: #FFFFFF; color: #1F2933; flex-shrink: 0; }

.rp-tree ul { list-style: none; margin: 0; padding: 0; }
.rp-tree ul ul { margin: 2px 0 6px 13px; padding-left: 6px; border-left: 1px solid #E1E5EA; }
.rp-tree > ul > .rp-tn { margin-bottom: 1px; }
.rp-tree > ul > .rp-tn > .rp-tr > .rp-ta { font-size: 15px; font-weight: 600; color: #1F2933 !important; }
.rp-tree > ul > .rp-tn.is-open { padding-bottom: 4px; }
.rp-tn > ul { display: none; }
.rp-tn.is-open > ul { display: block; }
.rp-tr { display: flex; align-items: center; min-height: 34px; border-radius: 8px; }
.rp-tr:hover { background: #F2F5F9; }
.rp-tr:hover > .rp-ta { color: #16365C !important; }
.rp-tt { flex: 0 0 auto; width: 28px; height: 34px; padding: 0; border: 0; background: transparent; color: #7B8794; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.rp-tt .rp-i { transition: transform .15s ease; }
.rp-tn.is-open > .rp-tr > .rp-tt .rp-i { -ms-transform: rotate(90deg); transform: rotate(90deg); }
.rp-tn.is-loading > .rp-tr > .rp-tt { opacity: .4; }
.rp-tdot { flex: 0 0 auto; width: 28px; height: 34px; display: flex; align-items: center; justify-content: center; }
.rp-tdot:after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #9AA5B1; }
.rp-tdot-v:after { display: none; }
.rp-tdot-v { color: #7B8794; }
.rp-ta { flex: 1 1 auto; min-width: 0; display: block; padding: 7px 10px 7px 2px; font-size: 14.5px; line-height: 20px; color: #3E4C59 !important; text-decoration: none; }
.rp-tl { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* la voce aperta si legge sempre per intero */
.rp-tn.is-active > .rp-tr .rp-tl { white-space: normal; overflow: visible; }
.rp-tn.is-active > .rp-tr { align-items: flex-start; }
/* sigla del modulo: testo grigio, non badge, cosi' tutti i titoli partono allineati */
.rp-tcode { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #7B8794; }
.rp-tn.is-active > .rp-tr .rp-tcode, .rp-tn.is-open > .rp-tr .rp-tcode { color: #E30613; }
.rp-tn.is-active > .rp-tr { background: #E3ECF7; box-shadow: inset 3px 0 0 #E30613; }
.rp-tn.is-active > .rp-tr > .rp-ta { color: #16365C !important; font-weight: 700; }
.rp-tn.is-active > .rp-tr > .rp-tdot:after { background: #E30613; }
.rp-tn.is-open > .rp-tr > .rp-ta { color: #16365C !important; font-weight: 700; }
.rp-tn.is-open > .rp-tr > .rp-tt { color: #16365C; }

.rp-code { display: inline-block; flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; line-height: 1.5; color: #FFFFFF; background: #16365C; border-radius: 4px; padding: 0 5px; }

.rp-tfilter-res ul { list-style: none; margin: 0; padding: 0; }
.rp-tfilter-res a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #1F2933 !important; }
.rp-tfilter-res a:hover { background: #F4F6F9; }
.rp-tf-t { display: block; font-size: 14.5px; font-weight: 600; }
.rp-tf-p { display: block; font-size: 12.5px; color: #52606D; }
.rp-tf-none { padding: 10px; font-size: 14px; color: #52606D; }

/* ------------------------------------------------------------- pagina topic */
.rp-page { display: flex; align-items: flex-start; max-width: 1160px; margin: 0 auto; }
.rp-page-narrow { max-width: 780px; }
.rp-article { flex: 1 1 auto; min-width: 0; max-width: 800px; }
.rp-aside { flex: 0 0 260px; width: 260px; margin-left: 40px; position: -webkit-sticky; position: sticky; top: 92px; }
.rp-aside:empty { display: none; }

.rp-crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; }
.rp-crumbs li { display: inline-flex; align-items: center; margin: 2px 6px 2px 0; }
.rp-crumbs a { color: #52606D !important; text-decoration: none; }
.rp-crumbs a:hover { color: #1A5CA8 !important; text-decoration: underline; }
.rp-crumbs .rp-i { margin-left: 6px; color: #7B8794; }
.rp-crumbs [aria-current] { color: #1F2933; font-weight: 600; }

.rp-head h1 { margin: 0 0 14px; font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: #16365C; }
.rp-meta { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.rp-meta > * { margin: 0 8px 8px 0; }
.rp-badge { display: inline-flex; align-items: center; font-size: 13px; color: #2D3A47; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 999px; padding: 5px 10px; }
.rp-badge .rp-i { margin-right: 6px; }
.rp-actions { display: inline-flex; margin-left: auto !important; }
.rp-actions .rp-btn { margin-left: 8px; }

.rp-alert { display: flex; align-items: flex-start; background: #FFF6E5; border: 1px solid #F2D9A6; border-radius: 10px; padding: 12px 14px; font-size: 15px; color: #6B4500; margin-bottom: 22px; }
.rp-alert .rp-i { margin-right: 12px; margin-top: 1px; }

/* contenuti dei topic (testo da editor, HTML libero, codice, immagini) */
.rp-content { font-size: 17px; line-height: 1.7; color: #1F2933; word-wrap: break-word; overflow-wrap: break-word; }
.rp-content > * + * { margin-top: 18px; }
.rp-content p { margin: 0 0 1em; }
.rp-content h2 { font-size: 26px; line-height: 1.25; font-weight: 800; margin: 1.6em 0 .5em; color: #16365C; }
.rp-content h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 1.4em 0 .4em; color: #16365C; }
.rp-content h4 { font-size: 18px; font-weight: 700; margin: 1.2em 0 .4em; }
.rp-content ul, .rp-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.rp-content li { margin: .25em 0; }
.rp-content blockquote { margin: 1em 0; padding: 12px 16px; background: #FFFFFF; border: 1px solid #E1E5EA; border-left: 4px solid #16365C; border-radius: 8px; color: #2D3A47; }
.rp-content strong, .rp-content b { color: #1F2933; }
.rp-content img { border-radius: 6px; }
.rp-content table { border-collapse: collapse; width: 100%; font-size: 15px; background: #FFFFFF; }
.rp-content th, .rp-content td { border: 1px solid #E1E5EA; padding: 8px 10px; text-align: left; vertical-align: top; }
.rp-content th { background: #F7F8FA; font-weight: 700; }
.rp-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
.rp-content .button { display: inline-block; font-size: .88em; font-weight: 700; line-height: 1.3; padding: 1px 8px; border: 1px solid #B8C3D0; border-bottom-width: 2px; border-radius: 6px; background: #FFFFFF; color: #1F2933; white-space: nowrap; }
.rp-content .text-list { padding-left: 1.4em; }
.rp-html { overflow-x: auto; }

/* codice */
.rp-codewrap { position: relative; border-radius: 12px; background: #FFFFFF; border: 1px solid #E1E5EA; overflow: hidden; margin: 18px 0; }
.rp-codebar { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; background: #F7F8FA; border-bottom: 1px solid #E1E5EA; }
.rp-codelang { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #52606D; }
.rp-copy { display: inline-flex; align-items: center; height: 32px; border: 0; border-radius: 8px; background: #16365C; color: #FFFFFF; font-size: 13px; font-weight: 600; padding: 0 12px; }
.rp-copy .rp-i { margin-right: 6px; }
.rp-copy:hover { background: #E30613; }
.rp-codewrap pre, .rp-content pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-size: 13.5px; line-height: 1.6; white-space: pre; word-wrap: normal; tab-size: 4; }
.rp-codewrap pre { background: #FFFFFF !important; color: #1F2933; border: 0; }
.rp-codewrap pre code { font-family: inherit; white-space: pre !important; word-break: normal !important; }
.rp-content code { font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-size: .9em; }
.rp-content p code, .rp-content li code { background: #E6EBF1; padding: 1px 5px; border-radius: 4px; }

/* immagini */
.rp-figure { margin: 22px 0; }
.rp-zoom { position: relative; display: inline-block; max-width: 100%; border: 1px solid #E1E5EA; border-radius: 12px; background: #FFFFFF; overflow: hidden; cursor: zoom-in; line-height: 0; box-shadow: 0 1px 2px rgba(22,40,64,.06), 0 8px 24px rgba(22,40,64,.06); }
.rp-zoom img { display: block; border-radius: 0; }
.rp-zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; font-size: 13px; line-height: 1; font-weight: 600; color: #FFFFFF; background: rgba(22,40,64,.82); border-radius: 8px; padding: 7px 10px; opacity: 0; transition: opacity .15s ease; }
.rp-zoom-hint .rp-i { margin-right: 6px; }
.rp-zoom:hover .rp-zoom-hint, .rp-zoom:focus .rp-zoom-hint { opacity: 1; }

/* video (caricato solo al clic) */
.rp-video { position: relative; max-width: 720px; margin: 22px 0; }
.rp-video:before { content: ""; display: block; padding-top: 56.25%; }
.rp-video-btn, .rp-video iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; overflow: hidden; }
.rp-video-btn { padding: 0; background: #16365C; }
.rp-video-thumb { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: cover; background-position: center; opacity: .9; }
.rp-video-btn:hover .rp-video-thumb { opacity: 1; }
.rp-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #E30613; color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.rp-play .rp-i { margin-left: 3px; }
.rp-play-s { width: 36px; height: 36px; margin: -18px 0 0 -18px; }

.rp-file { display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid #E1E5EA; border-radius: 10px; background: #FFFFFF; text-decoration: none; font-weight: 600; }
.rp-file .rp-i { margin-right: 8px; }

.rp-inline-search { display: flex; max-width: 560px; height: 44px; border: 1px solid #C9D2DD; border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.rp-inline-search input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 12px; -webkit-appearance: none; }
.rp-inline-search button { display: flex; align-items: center; border: 0; background: #16365C; color: #FFFFFF; padding: 0 14px; font-size: 15px; font-weight: 700; }
.rp-inline-search button span { margin-left: 6px; }

/* sottoargomenti */
.rp-sub { margin-top: 36px; }
.rp-sub h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; color: #16365C; }
.rp-cards { list-style: none; margin: 0 -5px; padding: 0; display: flex; flex-wrap: wrap; }
.rp-cards li { width: 50%; padding: 5px; }
.rp-card { display: flex; align-items: center; height: 100%; padding: 12px 14px; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 10px; text-decoration: none; color: #1F2933 !important; font-weight: 600; line-height: 1.3; }
.rp-card:hover { border-color: #16365C; }
.rp-card-i { flex: 0 0 auto; width: 34px; height: 34px; margin-right: 12px; border-radius: 9px; background: #E6EEF8; color: #1B4F8C; display: flex; align-items: center; justify-content: center; }
.rp-card .rp-code { margin-right: 8px; }

/* precedente / successivo */
.rp-pn { display: flex; margin-top: 40px; }
.rp-pn > * { flex: 1 1 0; min-width: 0; }
.rp-pn > * + * { margin-left: 12px; }
.rp-pn a { display: block; padding: 16px 18px; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 12px; text-decoration: none; }
.rp-pn a:hover { border-color: #16365C; }
.rp-pn-next { text-align: right; }
.rp-pn-l { display: block; font-size: 13px; color: #52606D; }
.rp-pn-t { display: block; font-size: 16px; font-weight: 700; color: #1F2933; margin-top: 2px; }

/* colonna destra */
.rp-box { background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.rp-box-h { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #52606D; }
.rp-box-h2 { margin: 0; font-size: 18px; font-weight: 800; color: #16365C; }
.rp-box-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.rp-box-row a { font-size: 14px; font-weight: 600; }
.rp-links { list-style: none; margin: 0; padding: 0; }
.rp-links a { display: block; padding: 6px 0; font-size: 15px; font-weight: 600; text-decoration: none; line-height: 1.35; }
.rp-links a:hover { text-decoration: underline; }
.rp-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid #E6EBF1; }
.rp-toc a { display: block; padding: 5px 0 5px 12px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: #2D3A47 !important; text-decoration: none; line-height: 1.35; }
.rp-toc a.is-sub { padding-left: 24px; font-size: 13.5px; }
.rp-toc a:hover, .rp-toc a.is-on { color: #16365C !important; border-left-color: #E30613; font-weight: 600; }
.rp-vlist { list-style: none; margin: 0; padding: 0; }
.rp-vlist li + li { margin-top: 12px; }
.rp-vlist a, .rp-vgrid a { display: block; text-decoration: none; color: #1F2933 !important; }
.rp-vthumb { position: relative; display: block; border-radius: 8px; background: #2D3A47 center / cover no-repeat; overflow: hidden; }
.rp-vthumb:before { content: ""; display: block; padding-top: 56.25%; }
.rp-vt { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.3; }

/* ------------------------------------------------------------- home */
.rp-home { max-width: 1080px; margin: 0 auto; }
.rp-home > * + * { margin-top: 40px; }
.rp-hero { position: relative; overflow: hidden; background: #1D1D1B; color: #FFFFFF; border-radius: 16px; padding: 44px 48px; }
.rp-hero > * { position: relative; }
.rp-hero-deco { position: absolute !important; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 40px; background: #E30613; -ms-transform: rotate(18deg); transform: rotate(18deg); }
.rp-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FFFFFF; }
.rp-eyebrow:before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: #E30613; vertical-align: 1px; }
.rp-hero h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.1; font-weight: 800; max-width: 620px; color: #FFFFFF; }
.rp-hero-sub { margin: 0 0 22px; font-size: 17px; color: #D5DBE3; max-width: 620px; }
.rp-hero-search { height: 56px; max-width: 720px; background: #FFFFFF; border: 0; border-radius: 12px; }
.rp-hero-search:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.rp-hero-search select { max-width: 200px; }
.rp-hero-search input[type=search] { font-size: 17px; padding: 0 16px; }
.rp-hero-search button { padding: 0 22px; font-size: 16px; }
.rp-sec h2 { margin: 0 0 16px; font-size: 22px; font-weight: 800; color: #16365C; }
.rp-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.rp-sec-h h2 { margin: 0 16px 0 0; }
.rp-sec-h p { margin: 0; font-size: 14px; color: #52606D; }
.rp-start-l, .rp-mod-l, .rp-pills, .rp-vgrid, .rp-updates ul { list-style: none; margin: 0; padding: 0; }
.rp-start-l { display: flex; flex-wrap: wrap; margin: -6px; }
.rp-start-l li { width: 20%; padding: 6px; }
.rp-start { display: block; height: 100%; padding: 18px; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 12px; text-decoration: none; color: #1F2933 !important; }
.rp-start:hover { border-color: #16365C; }
.rp-start-i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 10px; background: #E6EEF8; color: #1B4F8C; }
.rp-start-t { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.rp-mod-l { display: flex; flex-wrap: wrap; margin: -5px; }
.rp-mod-l li { width: 33.333%; padding: 5px; }
.rp-mod { display: flex; align-items: center; height: 100%; padding: 12px 14px; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 10px; text-decoration: none; color: #1F2933 !important; }
.rp-mod:hover { border-color: #16365C; }
.rp-mod-c { flex: 0 0 auto; min-width: 58px; margin-right: 12px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #FFFFFF; background: #16365C; border-radius: 6px; padding: 6px; }
.rp-mod:hover .rp-mod-c { background: #E30613; }
.rp-mod-t { font-size: 15px; font-weight: 600; line-height: 1.3; }
.rp-two { display: flex; flex-wrap: wrap; margin: 40px -12px 0; }
.rp-two > .rp-box { flex: 1 1 380px; min-width: 0; margin: 0 12px 24px; padding: 22px 24px; }
.rp-updates .rp-box-h2 { margin-bottom: 8px; }
.rp-updates a { display: block; padding: 10px 0; border-top: 1px solid #E6EBF1; text-decoration: none; }
.rp-updates li:first-child a { border-top: 0; }
.rp-up-t { display: block; font-size: 15px; font-weight: 600; color: #1F2933; }
.rp-up-m { display: block; font-size: 13px; color: #52606D; }
.rp-updates a:hover .rp-up-t { color: #1A5CA8; }
.rp-vgrid { display: flex; flex-wrap: wrap; margin: -6px; }
.rp-vgrid li { width: 50%; padding: 6px; }
.rp-pills { display: flex; flex-wrap: wrap; margin: -4px; }
.rp-pills li { padding: 4px; }
.rp-pill { display: inline-block; font-size: 15px; font-weight: 600; color: #1F2933 !important; text-decoration: none; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 999px; padding: 9px 16px; }
.rp-pill:hover { border-color: #16365C; }

/* ------------------------------------------------------------- ricerca */
.rp-search-page { max-width: 1160px; margin: 0 auto; }
.rp-search-head h1 { margin: 0 0 24px; font-size: 30px; font-weight: 800; color: #16365C; }
.rp-search-cols { display: flex; align-items: flex-start; }
.rp-search-f { flex: 0 0 260px; width: 260px; margin-right: 32px; }
.rp-search-f .rp-box-h { margin-top: 0; }
.rp-search-f .rp-box-h + * { margin-bottom: 22px; }
.rp-search-r { flex: 1 1 auto; min-width: 0; }
.rp-seg { display: flex; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 10px; padding: 3px; }
.rp-seg a { flex: 1 1 0; text-align: center; padding: 8px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #2D3A47 !important; text-decoration: none; }
.rp-seg a.is-on { background: #16365C; color: #FFFFFF !important; font-weight: 700; }
.rp-facets { list-style: none; margin: 0; padding: 0; }
.rp-facets a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; color: #2D3A47 !important; text-decoration: none; line-height: 1.3; }
.rp-facets a:hover { background: #F4F6F9; }
.rp-facets a.is-on { background: #FFFFFF; border: 1px solid #E1E5EA; font-weight: 700; color: #1F2933 !important; box-shadow: inset 3px 0 0 #E30613; }
.rp-res-l { list-style: none; margin: 0; padding: 0; }
.rp-res { display: flex; align-items: flex-start; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.rp-res-i { flex: 0 0 auto; width: 36px; height: 36px; margin-right: 14px; border-radius: 9px; background: #E6EEF8; color: #1B4F8C; display: flex; align-items: center; justify-content: center; }
.rp-res-i.is-video { background: #FDF0DC; color: #8A5200; }
.rp-res-b { flex: 1 1 auto; min-width: 0; }
.rp-res-t { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; color: #1F2933 !important; text-decoration: none; }
.rp-res-t:hover { color: #1A5CA8 !important; text-decoration: underline; }
.rp-res-c { margin-top: 4px; font-size: 13px; color: #52606D; }
.rp-res-x { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: #3E4C59; }
.rp-more-w { text-align: center; margin: 18px 0 0; }
.rp-noresults { background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 12px; padding: 20px 24px; }
.rp-noresults p { margin: 0 0 8px; }
.rp-noresults ul { margin: 0 0 18px; }
.rp-nf { margin: 18px 0; max-width: 640px; background: #FFFFFF; }
.rp-empty h1 { font-size: 32px; margin: 0 0 12px; color: #16365C; }

/* ------------------------------------------------------------- footer, toast, lightbox */
.rp-footer { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 18px 24px; background: #FFFFFF; border-top: 1px solid #E1E5EA; color: #52606D; font-size: 13px; }
.rp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; -ms-transform: translate(-50%, 20px); transform: translate(-50%, 20px); background: #16365C; color: #FFFFFF; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.rp-toast.is-on { opacity: 1; -ms-transform: translate(-50%, 0); transform: translate(-50%, 0); }

.rp-lb { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 400; background: rgba(20,20,19,.92); display: flex; align-items: center; justify-content: center; }
.rp-lb-fig { margin: 0; max-width: 94%; max-height: 90%; text-align: center; }
.rp-lb-fig img { max-width: 100%; max-height: 82vh; background: #FFFFFF; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.rp-lb-cap { color: #C9D2DD; font-size: 14px; margin-top: 10px; }
.rp-lb-btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.rp-lb-btn:hover { background: rgba(255,255,255,.24); }
.rp-lb-close { right: 16px; top: 16px; }
.rp-lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.rp-lb-next { right: 16px; top: 50%; margin-top: -24px; }
body.rp-noscroll { overflow: hidden; }

.rp-debug { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 500; max-height: 45vh; display: flex; flex-direction: column; background: #16365C; color: #FFE08A; border: 2px solid #E30613; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.4); font-size: 13px; }
.rp-debug-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 12px; background: #E30613; color: #FFFFFF; }
.rp-debug-h button { border: 0; background: transparent; color: #FFFFFF; font-size: 22px; line-height: 1; width: 32px; height: 32px; }
.rp-debug-b { overflow: auto; padding: 10px 12px; font-family: Consolas, "Courier New", monospace; white-space: pre-wrap; word-break: break-word; }
.rp-debug-b pre { margin: 0 0 10px; white-space: pre-wrap; font-family: inherit; color: #FFE08A; }
.rp-debug-b div { margin-bottom: 8px; }

/* ------------------------------------------------------------- modalita' assistente (dentro Ready Pro) */
.rp-assistant .rp-logo-sub, .rp-assistant .rp-kbd { display: none; }
.rp-assistant .rp-main { padding: 20px 24px 40px; }
.rp-assistant .rp-aside { display: none; }
.rp-assistant .rp-header { position: relative; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1279px) {
    .rp-aside { display: none; }
    .rp-start-l li { width: 33.333%; }
    .rp-mod-l li { width: 50%; }
}
@media (max-width: 1023px) {
    .rp-only-mobile { display: inline-flex !important; }
    .rp-only-desktop, body.rp-side-collapsed .rp-expand-side { display: none !important; }
    .rp-logo-sub, .rp-kbd { display: none; }
    .rp-header-in { padding: 0 8px; }
    .rp-header-in > * { margin-right: 6px; }
    .rp-logo img { height: 28px; }
    .rp-hsearch { display: none; margin: 0 !important; }
    body.rp-msearch .rp-hsearch { display: block; position: absolute; left: 8px; right: 8px; top: 100%; margin-top: 8px !important; max-width: none; z-index: 70; }
    body.rp-msearch .rp-hsearch .rp-sbox { background: #FFFFFF; box-shadow: 0 8px 24px rgba(22,40,64,.18); border-color: #16365C; }
    .rp-lang { margin-left: auto; }
    .rp-assistant .rp-hsearch { display: block; flex: 1 1 auto; }
    .rp-assistant [data-action=msearch] { display: none !important; }

    .rp-sidebar, body.rp-side-collapsed .rp-sidebar { display: flex; position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 86%; max-width: 360px; z-index: 90; border-top: 4px solid #E30613; -ms-transform: translateX(-105%); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 8px 0 32px rgba(22,40,64,.25); visibility: hidden; }
    body.rp-drawer-open .rp-sidebar { -ms-transform: none; transform: none; visibility: visible; }
    body.rp-drawer-open .rp-scrim { display: block; position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 85; background: rgba(22,40,64,.55); }
    .rp-resizer { display: none; }
    .rp-side-head { padding: 8px 8px 4px 18px; }
    .rp-side-title { font-size: 18px; letter-spacing: 0; text-transform: none; color: #1F2933; }
    .rp-side-filter input { height: 44px; font-size: 16px; }
    .rp-ta { font-size: 16px; padding-top: 10px; padding-bottom: 10px; }
    .rp-tt, .rp-tdot { height: 44px; width: 36px; }

    .rp-main { padding: 20px 18px 48px; }
    .rp-head h1 { font-size: 28px; }
    .rp-content { font-size: 16px; }
    .rp-actions { margin-left: 0 !important; }
    .rp-actions .rp-btn { margin: 0 8px 0 0; }
    .rp-start-l li, .rp-mod-l li { width: 50%; }
    .rp-hero { padding: 28px 22px; }
    .rp-hero h1 { font-size: 30px; }
    .rp-hero-deco { width: 140px; height: 140px; right: -50px; top: -50px; }
    .rp-hero-search { height: 52px; }
    .rp-search-cols { display: block; }
    .rp-search-f { width: auto; margin: 0 0 18px; }
    .rp-facets { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px 4px; }
    .rp-facets li { flex: 0 0 auto; margin-right: 6px; }
    .rp-facets a { white-space: nowrap; background: #FFFFFF; border: 1px solid #E1E5EA; border-radius: 999px; }
    .rp-res { padding: 14px; }
    .rp-res-i { display: none; }

    /* frecce precedente/successivo fisse in basso */
    .rp-pn { position: -webkit-sticky; position: sticky; bottom: 0; margin: 32px -18px -48px; padding: 10px 12px 12px; background: #FFFFFF; border-top: 1px solid #E1E5EA; box-shadow: 0 -6px 16px rgba(22,40,64,.06); }
    .rp-pn a { padding: 8px 12px; border-radius: 12px; }
    .rp-pn-prev { flex: 0 0 auto !important; width: auto; }
    .rp-pn-prev .rp-pn-t { display: none; }
    .rp-pn-next { background: #16365C !important; border-color: #16365C !important; }
    .rp-pn-next .rp-pn-l { color: #B7C4D3; }
    .rp-pn-next .rp-pn-t { color: #FFFFFF; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rp-footer { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 18px 24px; background: #FFFFFF; border-top: 1px solid #E1E5EA; color: #52606D; font-size: 13px; }
}
@media (max-width: 599px) {
    .rp-cards li, .rp-vgrid li { width: 100%; }
    .rp-start-l li { width: 50%; }
    .rp-mod-l li { width: 100%; }
    .rp-sbox select { display: none; }
    .rp-hero-search button span { display: none; }
    .rp-actions .rp-btn span { display: none; }
    .rp-actions .rp-btn .rp-i { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rp *, .rp *:before, .rp *:after { transition: none !important; animation: none !important; }
}
