.papia { max-width: 720px; margin: 0 auto; font-size: 20px; line-height: 1.5; color: #1a1a1a; }
.papia * { box-sizing: border-box; }
.papia-card { background: #fff; border: 2px solid #003F73; border-radius: 14px; padding: 24px 20px; }
.papia h1 { font-size: 1.7em; line-height: 1.2; color: #003F73; margin: 0 0 12px; }
.papia h2 { font-size: 1.3em; line-height: 1.25; color: #003F73; margin: 22px 0 10px; }
.papia h3 { font-size: 1.1em; margin: 14px 0 6px; }
.papia p { margin: 0 0 12px; }
.papia-lead { font-size: 1.1em; }
.papia-prog { color: #555; font-size: .85em; margin-bottom: 4px; }
.papia-aiuto { color: #444; font-size: .85em; }
.papia-avviso { background: #eef4fa; border-left: 5px solid #003F73; padding: 12px 16px; margin: 14px 0; border-radius: 6px; }
.papia-avviso p:last-child { margin-bottom: 0; }
.papia-opzioni { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.papia-riga { display: flex; flex-wrap: wrap; gap: 10px; }
.papia-grande, .papia-primario, .papia-copia {
  font: inherit; cursor: pointer; min-height: 56px; padding: 12px 18px; border-radius: 10px;
  border: 2px solid #003F73; background: #fff; color: #003F73; text-align: left;
}
.papia-grande { width: 100%; }
.papia-riga .papia-grande { width: auto; flex: 1 1 120px; text-align: center; }
.papia-grande:hover, .papia-grande:focus, .papia-sel { background: #003F73; color: #fff; }
.papia-primario { background: #003F73; color: #fff; text-align: center; width: 100%; margin-top: 8px; }
.papia-primario:disabled { opacity: .5; cursor: default; }
.papia-copia { min-height: 44px; font-size: .85em; text-align: center; margin-bottom: 12px; }
.papia-link { font: inherit; background: none; border: 0; color: #003F73; text-decoration: underline; cursor: pointer; padding: 14px 0; }
.papia-casella { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin: 6px 0; border: 2px solid #c5d3e0; border-radius: 10px; cursor: pointer; }
.papia-casella input { width: 26px; height: 26px; flex: 0 0 26px; margin-top: 2px; }
.papia-spenta { opacity: .45; cursor: default; }
.papia textarea, .papia input[type=email], .papia input[type=text]:not(.papia-hp) { width: 100%; font: inherit; padding: 12px; border: 2px solid #8aa4bd; border-radius: 10px; }
.papia-errore { color: #a00000; font-weight: 600; min-height: 1em; }
.papia-ok { color: #0a5c2a; font-weight: 600; }
.papia-voce { border-top: 1px solid #d5dde6; padding-top: 6px; margin-top: 10px; }
.papia-etichetta { font-weight: 700; font-size: .85em; margin: 8px 0 2px; color: #003F73; }
.papia-richiesta { background: #f4f6f8; padding: 12px; border-radius: 8px; white-space: pre-wrap; }
.papia-blocco { margin-top: 28px; border-top: 3px solid #003F73; padding-top: 6px; }
.papia-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.papia-nascosta { position: absolute; left: -9999px; }
.papia-giro { width: 48px; height: 48px; border: 6px solid #c5d3e0; border-top-color: #003F73; border-radius: 50%; animation: papia-g 1s linear infinite; margin: 16px 0; }
@keyframes papia-g { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .papia-giro { animation: none; } }
@media (max-width: 480px) { .papia { font-size: 19px; } .papia-card { padding: 18px 14px; } }
.papia-grande::first-letter, .papia-casella span::first-letter { text-transform: uppercase; }
.papia-avviso h2 { margin-top: 0; }
.papia-avviso ol { margin: 0 0 12px; padding-left: 1.3em; }
.papia-avviso li { margin-bottom: 6px; }
.papia-lavoro { border: 2px solid #c5d3e0; border-radius: 10px; margin: 12px 0; }
.papia-lavoro[open] { border-color: #003F73; }
.papia-lavoro summary { cursor: pointer; padding: 14px; font-weight: 700; color: #003F73; font-size: 1.05em; }
.papia-qui { display: block; width: fit-content; background: #D95500; color: #fff; font-size: .7em; border-radius: 6px; padding: 2px 10px; margin-bottom: 6px; }
.papia-corpo { padding: 0 14px 14px; }
.papia-nomecampo { display: block; font-weight: 600; margin-top: 12px; }
.papia-esempio { display: block; color: #444; font-size: .8em; margin-bottom: 4px; }
.papia-avvisocopia { margin-top: 8px; font-weight: 600; color: #003F73; }
.papia-corpo > .papia-etichetta { margin-top: 16px; }
