:root{--bg:#EEF2EF;--surface:#FFFFFF;--ink:#16241D;--muted:#55665D;--accent:#24604A;--accent-ink:#FFFFFF;--mark:#E2B53E;--line:#CFD9D3;color-scheme:light}
@media (prefers-color-scheme:dark){:root{--bg:#111A15;--surface:#18241D;--ink:#E6EEE9;--muted:#9DB0A5;--accent:#5FB38D;--accent-ink:#0E1712;--mark:#E2B53E;--line:#2A3A31;color-scheme:dark}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Bricolage Grotesque",system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.55}
.wrap{max-width:960px;margin:0 auto;padding:2rem 1.25rem 4rem}
header{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap;border-bottom:2px solid var(--ink);padding-bottom:1rem}
.logo{font-size:1.6rem;font-weight:800;letter-spacing:-.02em;color:var(--ink);text-decoration:none}
nav a{color:var(--muted);margin-left:1rem;text-decoration:none}
nav a:hover,nav a:focus-visible{color:var(--accent)}
h1{font-size:clamp(2rem,6vw,3.4rem);line-height:1.05;letter-spacing:-.03em;margin:2.5rem 0 .75rem;max-width:18ch}
.lead{color:var(--muted);max-width:60ch;margin:0 0 2rem}
.prodotti{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem}
.prodotto{background:var(--surface);border:1px solid var(--line);padding:1.25rem;display:flex;flex-direction:column;gap:.5rem}
.prodotto .swatch{height:90px;background:var(--accent);opacity:.85}
.prodotto:nth-child(2) .swatch{background:var(--mark)}
.prodotto:nth-child(3) .swatch{background:var(--ink)}
.prodotto h2{font-size:1.15rem;margin:.5rem 0 0}
.prezzo{font-weight:700;font-size:1.1rem}
button,.btn{font:inherit;font-weight:700;background:var(--accent);color:var(--accent-ink);border:0;padding:.7rem 1rem;cursor:pointer;text-decoration:none;display:inline-block;text-align:center}
button:hover,.btn:hover{filter:brightness(1.1)}
button:focus-visible,.btn:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid var(--mark);outline-offset:2px}
section{margin-top:3rem}
form{display:flex;gap:.5rem;flex-wrap:wrap;max-width:520px}
input{font:inherit;flex:1 1 220px;padding:.7rem;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.debug{margin-top:3rem;background:var(--surface);border:1px dashed var(--muted);padding:1rem}
.debug h3{margin:0 0 .5rem;font-size:1rem}
.debug p{margin:0 0 .5rem;color:var(--muted);font-size:.9rem}
.debug pre{margin:0;max-height:260px;overflow:auto;font-size:.8rem;white-space:pre-wrap}
