/* Frattin Live Search v4 — stili. Tutto sotto .fls-* per non toccare il resto del sito. */
.fls-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html.fls-bloccato,html.fls-bloccato body{overflow:hidden!important}

/* ---------- barra (shortcode) */
.fls-bar{width:100%;max-width:640px;margin:0 auto;font-family:inherit}
.fls-bar__form{display:flex;align-items:center;gap:10px;height:52px;padding:0 6px 0 16px;background:#fff;border:1.5px solid #d9dbe5;border-radius:12px;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.fls-bar__form:focus-within{border-color:#0000C0;box-shadow:0 0 0 3px rgba(0,0,192,.12)}
.fls-bar__form.is-aperta,.fls-bar__form.is-aperta:focus-within{border-color:transparent;box-shadow:none}
.fls-bar__icon{flex:none;color:#0000C0}
.fls-bar__input{flex:1;min-width:0;height:100%;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;font:inherit;font-size:16px!important;color:#111114}
.fls-bar__input::-webkit-search-cancel-button{display:none}
.fls-bar .fls-bar__submit{flex:none;height:40px;padding:0 18px!important;margin:0!important;border:0!important;outline:0!important;box-shadow:none!important;border-radius:12px!important;background:#0000C0!important;color:#fff!important;font:inherit;font-size:15px!important;font-weight:700!important;line-height:40px!important;text-transform:none!important;cursor:pointer}
.fls-bar .fls-bar__submit:hover,.fls-bar .fls-bar__submit:focus,.fls-bar .fls-bar__submit:active,.fls-bar .fls-bar__submit:focus-visible{background:#00008a!important;color:#fff!important;border:0!important;outline:0!important;box-shadow:none!important}

/* ---------- pannello comune */
.fls-pannello{position:fixed;z-index:100000;box-sizing:border-box;background:#fff;color:#111114;font-family:inherit;-webkit-font-smoothing:antialiased}
.fls-pannello[hidden],.fls-velo[hidden],.fls-pannello [hidden]{display:none!important}
.fls-pannello *{box-sizing:border-box}
.fls-pannello .fls-tit{margin:0!important;padding:0!important;font-family:inherit!important;font-size:16px!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important;color:#111114!important;line-height:1.3!important}
.fls-pannello a{text-decoration:none;color:inherit}
.fls-pannello button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal}
.fls-pannello button:hover,.fls-pannello button:focus{background:none;color:inherit}
.fls-sez{display:flex;flex-direction:column;gap:8px}
.fls-sez__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.fls-sez__head small{font-size:13px;color:#5b5d6b}
.fls-link{font-size:13px!important;font-weight:600!important;color:#0000C0!important;padding:8px 0!important}
.fls-nota{margin:0;font-size:14px;color:#5b5d6b;line-height:1.45}
.fls-nota a{color:#0000C0;text-decoration:underline}

.fls-riga{display:flex!important;align-items:center;gap:12px;width:100%;min-height:46px;padding:0 10px!important;margin:0 -10px!important;width:calc(100% + 20px)!important;border-radius:8px!important;text-align:left;font-size:15px!important;color:#111114!important}
.fls-riga svg{flex:none;color:#5b5d6b}
.fls-riga{justify-content:flex-start!important;text-align:left!important}
.fls-riga span{flex:1;min-width:0;text-align:left!important}
.fls-riga b{font-weight:700}
.fls-riga em{font-style:normal;font-weight:600;color:#0000C0}
.fls-riga small{flex:none;font-size:13px;color:#5b5d6b}
.fls-riga:hover,.fls-riga.is-attivo,.fls-card:hover,.fls-card.is-attivo,.fls-chip.is-attivo,.fls-tile.is-attivo{background:#f0f0ff!important}

.fls-chips{display:flex;flex-wrap:wrap;gap:8px}
.fls-chips--attesa{min-height:38px}
.fls-chip{display:inline-flex!important;align-items:center;gap:6px;height:38px;padding:0 14px!important;border:1px solid #d9dbe5!important;border-radius:999px!important;font-size:14px!important;font-weight:500!important;color:#111114!important;background:#fff!important;white-space:nowrap}
.fls-chip span{color:#5b5d6b;font-weight:400}
.fls-chip:hover{border-color:#0000C0!important}
.fls-chip--on{border:0!important;background:#e8e8ff!important;color:#0000C0!important;font-weight:600!important;gap:8px;padding:0 10px 0 14px!important}
.fls-chip--testo{border-style:dashed!important;color:#5b5d6b!important}

.fls-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fls-tile{display:flex!important;flex-direction:column;gap:4px;padding:12px 10px;background:#f4f5f9;border-radius:12px;color:#111114!important}
.fls-tile span{font-size:14px;font-weight:600}
.fls-tile small{font-size:12px;color:#5b5d6b}
.fls-tile:hover{background:#ececf6}

.fls-cards{display:flex;flex-direction:column;gap:10px}
.fls-card{display:flex!important;gap:12px;align-items:center;padding:6px;margin:-6px;border-radius:12px;color:#111114!important}
.fls-card__img{flex:none;width:104px;height:78px;border-radius:10px;overflow:hidden;background:#e9eaf0;display:flex;align-items:center;justify-content:center;color:#a3a6b6}
.fls-card__img img{width:100%;height:100%;object-fit:cover;display:block}
.fls-card__txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.fls-card__tit{font-size:14px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fls-card__det{font-size:12px;color:#5b5d6b}
.fls-card__prezzo{font-size:15px;font-weight:800;color:#0000C0}
.fls-cards--grandi .fls-card{flex-direction:column;align-items:stretch}
.fls-cards--grandi .fls-card__img{width:100%;height:auto;aspect-ratio:4/3}

.fls-capito{display:flex;flex-direction:column;gap:10px}
.fls-capito p{margin:0;font-size:13px;color:#5b5d6b}

.fls-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 22px;border-radius:12px;background:#0000C0!important;color:#fff!important;font-size:16px;font-weight:700;white-space:nowrap}
.fls-btn:hover{background:#00008a!important;color:#fff!important}
.fls-btn--wa{background:#18a84a!important}
.fls-btn--wa:hover{background:#12873b!important}
.fls-btn--line{background:#fff!important;color:#0000C0!important;border:1.5px solid #0000C0}
.fls-contatti{display:flex;gap:8px}
.fls-contatti .fls-btn{flex:1;height:48px;font-size:15px;padding:0 12px}

.fls-pannello .fls-zero__tit{font-family:inherit!important;font-size:21px!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important;color:#111114!important;line-height:1.25!important;margin:0 0 6px!important}
.fls-zero p{margin:0;font-size:15px;color:#5b5d6b;line-height:1.45}

/* ---------- mobile: schermo intero */
.fls-pannello--mobile{inset:0;display:flex;flex-direction:column;height:100%;height:100dvh}
.fls-m-top{flex:none;display:flex;align-items:center;gap:6px;padding:10px 12px 10px 4px;border-bottom:1px solid #e6e7ee;padding-top:max(10px,env(safe-area-inset-top))}
.fls-icona{width:44px;height:44px;display:flex!important;align-items:center;justify-content:center;flex:none}
.fls-m-campo{flex:1;display:flex;align-items:center;gap:10px;height:46px;padding:0 6px 0 14px;background:#f4f5f9;border:2px solid #0000C0;border-radius:12px;margin:0;color:#0000C0}
.fls-m-campo input{flex:1;min-width:0;height:100%;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;font:inherit;font-size:16px!important;color:#111114}
.fls-m-campo input::-webkit-search-cancel-button{display:none}
.fls-pulisci{width:32px;height:32px;border-radius:50%!important;background:#d9dbe5!important;display:flex!important;align-items:center;justify-content:center;flex:none;color:#111114!important}
.fls-m-corpo{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:16px 20px 24px;display:flex;flex-direction:column;gap:22px}
.fls-m-piede{flex:none;padding:12px 20px;padding-bottom:max(14px,env(safe-area-inset-bottom));border-top:1px solid #e6e7ee;background:#fff}
.fls-m-piede .fls-btn{width:100%}

/* ---------- desktop: tendina */
.fls-velo{position:fixed;z-index:99999;pointer-events:none;background:transparent;box-shadow:0 0 0 200vmax rgba(17,17,20,.45)}
.fls-pannello--desktop{border-radius:18px;box-shadow:0 24px 60px rgba(0,0,40,.22);display:flex;flex-direction:column;overflow:hidden}
.fls-d-corpo{flex:1;overflow-y:auto;min-height:0}
.fls-d-grid{display:grid;grid-template-columns:320px minmax(0,1fr)}
.fls-d-sx{padding:22px 24px;border-right:1px solid #e6e7ee;display:flex;flex-direction:column;gap:20px}
.fls-d-dx{padding:22px 24px}
.fls-d-dx .fls-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.fls-d-dx .fls-card{flex-direction:column;align-items:stretch;margin:-6px}
.fls-d-dx .fls-card__img{width:100%;height:auto;aspect-ratio:4/3}
.fls-d-uno{padding:24px;display:flex;flex-direction:column;gap:22px;max-width:640px}
.fls-d-uno .fls-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.fls-d-uno .fls-card{flex-direction:column;align-items:stretch}
.fls-d-uno .fls-card__img{width:100%;height:auto;aspect-ratio:4/3}
.fls-d-vuoto{padding:22px 24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px}
.fls-d-vuoto .fls-sez[data-fls-riquadri]{grid-column:1/-1}
.fls-d-vuoto .fls-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}
.fls-d-piede{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;border-top:1px solid #e6e7ee;background:#fafbfd}
.fls-d-piede .fls-btn{height:44px;font-size:15px}
.fls-hint{font-size:13px;color:#5b5d6b}

@media (max-width:1100px){
  .fls-d-dx .fls-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fls-d-vuoto .fls-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:no-preference){
  .fls-pannello--mobile:not([hidden]){animation:fls-su .18s ease-out}
  @keyframes fls-su{from{transform:translateY(12px);opacity:.6}to{transform:none;opacity:1}}
}
