/* APA - Ricerca Unificata. Scoped exclusively to the shortcode. */
.apa-unified-search{font-family:inherit;color:#26394c;max-width:1180px;margin:28px auto 48px;line-height:1.55}
.apa-unified-search *{box-sizing:border-box}
.apa-us-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:28px 28px 22px;background:linear-gradient(105deg,#eef5fa,#f4f7fa 55%,#fdf9ef);border:1px solid #e0eaf1;border-radius:12px 12px 0 0}
.apa-us-eyebrow{font-size:12px!important;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#47758e}
.apa-unified-search .apa-us-heading h2{font-size:29px;line-height:1.2;margin:7px 0;color:#26394c}
.apa-us-heading p{color:#607283;font-size:15px;margin:0}
.apa-us-help{white-space:nowrap;padding:5px 12px;background:#e9f3ed;color:#3c7353;border-radius:30px;font-size:12px;font-weight:650;border:1px solid #cce6d4}
.apa-us-filters{padding:22px 27px 23px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px;background:white;border:1px solid #e0eaf1;border-top:0;border-radius:0 0 12px 12px;box-shadow:0 5px 20px rgba(20,43,59,.07)}
.apa-us-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.apa-us-full{grid-column:1/-1}
.apa-us-field label{font-weight:650;font-size:13px;color:#334d63;margin:0}
.apa-unified-search .apa-us-field input,.apa-unified-search .apa-us-field select{display:block;width:100%;min-height:43px;padding:9px 12px;border:1px solid #d5e0e8;border-radius:6px;background:#fbfcfd;color:#24384b;font-size:14px;font-family:inherit;box-shadow:none}
.apa-unified-search .apa-us-field input:focus-visible,.apa-unified-search .apa-us-field select:focus-visible,.apa-us-actions button:focus-visible,.apa-unified-search a:focus-visible{outline:3px solid #2776a7;outline-offset:3px}
.apa-us-actions{display:flex;gap:14px;align-items:center;grid-column:1/-1;flex-wrap:wrap;padding-top:4px}
.apa-unified-search .apa-us-actions button{border:1px solid #305c77;border-radius:6px;background:#305c77;color:#fff;font-family:inherit;font-weight:700;font-size:14px;min-height:43px;padding:10px 20px;cursor:pointer;box-shadow:none}
.apa-unified-search .apa-us-actions button:hover{background:#204863;color:#fff}
.apa-us-actions a{color:#5b6e7c;text-decoration:underline;font-size:13px}
.apa-us-results-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:34px 0 3px}
.apa-unified-search .apa-us-results-heading h3{font-size:23px;color:#2b4357;margin:0;line-height:1.3}
.apa-us-results-heading span{display:inline-block;color:#47687a;background:#eaf2f7;padding:5px 12px;border-radius:15px;font-size:13px;font-weight:650;white-space:nowrap}
.apa-us-order{font-size:13px!important;color:#697c8a;margin:5px 0 16px!important}
.apa-us-list{display:flex;flex-direction:column;gap:12px}
.apa-us-result{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:21px 24px;border:1px solid #e0e9ef;border-left:4px solid #8ab5c9;background:#f7fbfd;border-radius:8px;min-width:0}
.apa-us-result.apa-us-doc{border-left-color:#9cbeac;background:#f7fbf9}
.apa-us-result-main{min-width:0;flex:1}
.apa-us-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:7px}
.apa-us-type{display:inline-block;border-radius:4px;background:#ddecf5;color:#2d5972;font-size:11px;padding:3px 9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.apa-us-doc .apa-us-type{background:#e1f1e8;color:#3c6d53}
.apa-us-cat{color:#657888;font-size:12px}
.apa-unified-search .apa-us-result h4{font-size:18px;line-height:1.4;font-weight:700;margin:0 0 8px}
.apa-us-result h4 a{color:#a16b20;text-decoration:none}
.apa-us-result h4 a:hover{text-decoration:underline}
.apa-us-summary{color:#667785;font-size:14px;margin:0 0 10px!important;line-height:1.55}
.apa-us-meta{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12px;color:#536777}
.apa-unified-search .apa-us-link{flex:0 0 auto;align-self:center;text-align:center;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #dec59e;border-radius:5px;background:#fff9ef;color:#926523;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.apa-unified-search .apa-us-link:hover{color:#744a11;background:#fef2d9}
.apa-us-empty{background:#f4f7fa;border:1px dashed #beced9;padding:30px;border-radius:8px;text-align:center;color:#395164}
.apa-us-empty p{margin:8px 0 0;color:#6c7b89}
.apa-us-error{margin:20px 0;background:#fff3ee;border:1px solid #edc6ae;border-radius:6px;color:#965027;padding:15px;line-height:1.5}
.apa-us-pagination{display:flex;gap:7px;align-items:center;justify-content:center;flex-wrap:wrap;margin:25px 0}
.apa-unified-search .apa-us-pagination a,.apa-us-pagination .apa-us-active{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e1e8;border-radius:5px;min-width:35px;min-height:35px;text-decoration:none;background:#fff;color:#31556a;font-size:13px;padding:6px 10px}
.apa-us-pagination .apa-us-active{background:#315c74;color:#fff;border-color:#315c74}
.apa-us-footnote{color:#788894;font-size:12px!important;border-top:1px solid #e8eef2;padding:14px 0;margin:25px 0 0!important}
@media(max-width:767px){.apa-unified-search{margin:18px auto 32px}.apa-us-heading{flex-direction:column;padding:20px;gap:10px}.apa-unified-search .apa-us-heading h2{font-size:24px}.apa-us-filters{grid-template-columns:1fr;padding:18px 16px}.apa-us-results-heading{margin-top:26px}.apa-us-result{flex-direction:column;align-items:stretch;gap:12px;padding:16px}.apa-us-link{align-self:flex-start!important}.apa-us-result h4{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){.apa-unified-search *{scroll-behavior:auto!important;transition:none!important}}
