/* Portale certificati P.R.A. — Metal Sud. Colori del marchio: blu notte e turchese. */
:root { --blu: #201c3f; --turchese: #19b7c0; --turchese-scuro: #0f8d94; --fondo: #f4f6f8; --testo: #1f2430; --tenue: #5b6474; --bordo: #dde2e8; --ok: #12b76a; --ko: #c0392b; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--testo); background: var(--fondo); }
a { color: var(--turchese-scuro); }
.contenitore { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.testata { background: #fff; border-bottom: 3px solid var(--turchese); }
.testata-riga { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; flex-wrap: wrap; }
.marchio img { display: block; height: 50px; width: auto; }
.testata-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.testata-nav a { color: var(--blu); text-decoration: none; font-weight: 600; }
.testata-nav a:hover { color: var(--turchese-scuro); }
.testata-titolo { color: var(--blu); font-weight: 700; }
main.contenitore { padding: 32px 16px 48px; }
h1, h2 { color: var(--blu); line-height: 1.2; }
h1 { font-size: 30px; margin: 0 0 10px; }
h2 { font-size: 21px; margin: 0 0 10px; }
.intro { margin-bottom: 22px; }
.intro p { color: var(--tenue); max-width: 640px; }
.riquadro { background: #fff; border: 1px solid var(--bordo); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.modulo { display: grid; gap: 16px; max-width: 560px; }
.modulo.stretto { max-width: 420px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--blu); }
input[type=text], input[type=email], input[type=password], input[type=search], select { font: inherit; padding: 11px 12px; border: 1px solid var(--bordo); border-radius: 7px; width: 100%; background: #fff; color: var(--testo); }
input:focus, select:focus { outline: 2px solid var(--turchese); outline-offset: 1px; border-color: var(--turchese); }
.bottone { display: inline-block; font: inherit; font-weight: 700; background: var(--turchese); color: #fff; border: 0; border-radius: 7px; padding: 12px 22px; cursor: pointer; text-decoration: none; justify-self: start; }
.bottone:hover { background: var(--turchese-scuro); }
.bottone.secondario { background: #fff; color: var(--ko); border: 1px solid var(--ko); }
.nota { font-size: 14px; color: var(--tenue); margin: 0; }
.esito-ok { border-left: 4px solid var(--ok); }
.esito-ko { border-left: 4px solid var(--ko); background: #fff; padding: 14px 16px; border-radius: 7px; }
.riquadro.esito-ko { padding: 18px 20px; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aiuto { color: var(--tenue); }
.aiuto h2 { font-size: 18px; }
.documenti { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.documenti a { display: block; padding: 10px 14px; border: 1px solid var(--bordo); border-radius: 7px; text-decoration: none; color: var(--blu); font-weight: 600; }
.documenti a::before { content: "PDF"; font-size: 11px; font-weight: 700; color: #fff; background: var(--ko); border-radius: 4px; padding: 2px 5px; margin-right: 10px; vertical-align: 1px; }
.documenti a:hover { border-color: var(--turchese); }
.piede { background: var(--blu); color: #c9cbe0; font-size: 14px; padding: 22px 0; }
.piede a { color: #fff; }
.piede p { margin: 4px 0; }
/* Pannello */
.schede { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.schede a { padding: 8px 14px; border-radius: 7px; text-decoration: none; color: var(--blu); font-weight: 600; }
.schede a.attiva { background: var(--blu); color: #fff; }
.schede-utente { margin-left: auto; font-size: 14px; color: var(--tenue); }
.schede-utente a { padding: 0; font-weight: 400; }
.cerca { display: flex; gap: 10px; margin-bottom: 10px; }
.tabella { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.tabella th, .tabella td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--bordo); vertical-align: top; overflow-wrap: anywhere; }
.tabella th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--tenue); }
.tabella tr.spento td { opacity: .5; }
.azioni { display: flex; gap: 6px; }
.piccolo { font: inherit; font-size: 13px; padding: 5px 9px; border: 1px solid var(--bordo); border-radius: 6px; background: #fff; cursor: pointer; }
.manca { color: var(--ko); font-weight: 700; }
.pagine { display: flex; gap: 16px; justify-content: center; margin-top: 14px; }
@media (max-width: 640px) {
  h1 { font-size: 25px; }
  .riquadro { padding: 18px; }
  .schede-utente { margin-left: 0; width: 100%; }
  .tabella th:nth-child(4), .tabella td:nth-child(4) { display: none; }
}
