/* v5.0.0 Smart Search Core */
.proloco-search-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid rgba(0,0,0,.08);border-radius:999px;background:#fff;color:var(--col-inchiostro);font-size:22px;font-weight:800;cursor:pointer;box-shadow:var(--ombra-sm);transition:transform .18s ease,background .18s ease}
.proloco-search-toggle:hover{transform:translateY(-1px);background:var(--col-sabbia)}
.proloco-search-overlay{position:fixed;inset:0;z-index:99999;background:rgba(14,18,22,.72);backdrop-filter:blur(14px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility .22s ease;padding:clamp(16px,4vw,48px);overflow:auto}
.proloco-search-overlay.is-open{opacity:1;visibility:visible;pointer-events:auto}
.proloco-search-overlay__panel{max-width:980px;margin:0 auto;background:#fff;border-radius:24px;padding:clamp(22px,4vw,44px);box-shadow:0 30px 80px rgba(0,0,0,.28);position:relative;min-height:360px}
.proloco-search-overlay__panel h2{margin:0 52px 24px 0}
.proloco-search-overlay__close{position:absolute;right:20px;top:18px;width:42px;height:42px;border-radius:999px;border:1px solid var(--col-bordo);background:#fff;font-size:26px;line-height:1;cursor:pointer}
body.proloco-search-open{overflow:hidden}
.proloco-smart-search{width:100%}
.proloco-smart-search__box{display:flex;align-items:center;background:#fff;border:1px solid var(--col-bordo);border-radius:18px;box-shadow:var(--ombra-sm);overflow:hidden}
.proloco-smart-search__input{width:100%;border:0!important;outline:0!important;padding:18px 20px;font-size:clamp(1rem,2.2vw,1.25rem);background:transparent;color:var(--col-inchiostro)}
.proloco-smart-search__clear{width:48px;min-width:48px;height:48px;border:0;background:transparent;font-size:24px;cursor:pointer;color:var(--col-grigio);display:none}.proloco-smart-search.has-value .proloco-smart-search__clear{display:block}
.proloco-smart-search__status{font-size:.9rem;color:var(--col-grigio);margin:12px 2px;min-height:1.2em}
.proloco-smart-search__results{display:grid;gap:20px;margin-top:18px}
.proloco-smart-group{border:1px solid var(--col-bordo);border-radius:18px;background:#fff;overflow:hidden}
.proloco-smart-group__head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--col-sabbia);padding:12px 16px;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;font-weight:900;color:var(--col-inchiostro)}
.proloco-smart-group__head em{font-style:normal;background:var(--col-terra);color:#fff;border-radius:999px;min-width:28px;text-align:center;padding:3px 8px;letter-spacing:0}.proloco-smart-group__items{display:grid;gap:0}.proloco-smart-group__items--card{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;padding:14px}
.proloco-smart-result{display:grid;grid-template-columns:86px 1fr;gap:14px;padding:14px 16px;text-decoration:none;color:inherit;border-top:1px solid var(--col-bordo);transition:background .16s ease,transform .16s ease}.proloco-smart-result:first-child{border-top:0}.proloco-smart-result:hover{background:rgba(14,122,96,.06)}
.proloco-smart-group__items--card .proloco-smart-result{grid-template-columns:1fr;border:1px solid var(--col-bordo);border-radius:14px;padding:0;overflow:hidden}.proloco-smart-result__media{display:block;aspect-ratio:1.25;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,var(--col-terra),var(--col-oliva));align-self:start}.proloco-smart-group__items--card .proloco-smart-result__media{border-radius:0;aspect-ratio:16/10}.proloco-smart-result__media img{display:block;width:100%;height:100%;object-fit:cover}.proloco-smart-result__placeholder{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--col-terra),var(--col-oliva))}
.proloco-smart-result__body{display:flex;flex-direction:column;gap:6px;min-width:0}.proloco-smart-group__items--card .proloco-smart-result__body{padding:14px}.proloco-smart-result__badge{align-self:flex-start;background:rgba(14,122,96,.12);color:var(--col-terra);border-radius:999px;padding:4px 8px;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;font-weight:900}.proloco-smart-result__title{font-family:var(--font-display);font-size:1.08rem;line-height:1.15;color:var(--col-inchiostro)}.proloco-smart-result__title mark{background:rgba(14,122,96,.16);color:inherit;border-radius:4px;padding:0 2px}.proloco-smart-result__excerpt{color:var(--col-grigio);font-size:.92rem;line-height:1.45}.proloco-smart-empty{padding:22px;text-align:center;color:var(--col-grigio);border:1px dashed var(--col-bordo);border-radius:16px;background:#fff}
@media(max-width:900px){.proloco-search-toggle{width:38px;height:38px;font-size:20px}.proloco-search-overlay{padding:12px}.proloco-search-overlay__panel{border-radius:18px;padding:22px}.proloco-smart-result{grid-template-columns:70px 1fr;padding:12px}.proloco-smart-result__excerpt{font-size:.86rem}}
@media(max-width:520px){.proloco-smart-group__items--card{grid-template-columns:1fr}.proloco-smart-result{grid-template-columns:62px 1fr;gap:10px}.proloco-smart-search__input{padding:15px 16px}.proloco-search-overlay__panel h2{font-size:1.5rem}}

/* v5.1.0 Smart Filters */
.proloco-smart-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:14px 0 4px;padding:12px;border:1px solid var(--col-bordo);border-radius:16px;background:rgba(246,241,229,.55)}
.proloco-smart-filters label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:.78rem;font-weight:800;color:var(--col-inchiostro)}
.proloco-smart-filters label span{letter-spacing:.04em;text-transform:uppercase;color:var(--col-grigio)}
.proloco-smart-filters input,.proloco-smart-filters select{width:100%;min-height:40px;border:1px solid var(--col-bordo);border-radius:10px;background:#fff;padding:8px 10px;color:var(--col-inchiostro);font:inherit;font-weight:600}
.proloco-smart-filters__reset{align-self:end;min-height:40px;border:1px solid var(--col-bordo);border-radius:10px;background:#fff;padding:8px 12px;font-weight:900;cursor:pointer;color:var(--col-terra)}
.proloco-smart-filters__reset:hover{background:var(--col-sabbia)}
@media(max-width:620px){.proloco-smart-filters{grid-template-columns:1fr 1fr;padding:10px}.proloco-smart-filters label{font-size:.72rem}.proloco-smart-filters__reset{grid-column:1/-1}}
@media(max-width:420px){.proloco-smart-filters{grid-template-columns:1fr}}
