/* L'attributo hidden deve vincere su qualunque display esplicito:
   .quote-context{display:grid} lo aveva battuto e lasciava un riquadro vuoto. */
[hidden]{display:none!important}

:root{--forest:#234a36;--leaf:#5c9a6e;--mint:#a9d2b4;--clay:#a64f2f;--cream:#f6f2e9;--paper:#fffdf8;--ink:#20372b;--muted:#59655b;--line:#ddd5c7;--shadow:0 18px 50px rgba(35,74,54,.12);--radius:20px;--serif:"Fraunces",Georgia,serif;--sans:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);line-height:1.6}
body.no-scroll{overflow:hidden}
a{color:inherit}
button,input,select{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.skip-link{position:fixed;z-index:1000;left:16px;top:10px;padding:10px 16px;background:var(--forest);color:#fff;border-radius:10px;transform:translateY(-150%)}
.skip-link:focus{transform:none}
.wrap{width:min(1180px,calc(100% - 40px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(246,242,233,.94);border-bottom:1px solid rgba(35,74,54,.1);backdrop-filter:blur(12px)}
.nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-family:var(--serif);font-size:1.28rem;font-weight:600}
.brand img{width:42px;height:42px}
.nav-actions{display:flex;align-items:center;gap:10px}
.nav-link,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:10px 16px;background:var(--paper);text-decoration:none;font-weight:700;color:var(--forest)}
.nav-link:hover,.button:hover{border-color:var(--leaf);transform:translateY(-1px)}
.button.primary{background:var(--clay);border-color:var(--clay);color:#fff}
.catalog-hero{padding:76px 0 40px;background:radial-gradient(circle at 85% 20%,rgba(169,210,180,.65),transparent 30%),linear-gradient(180deg,#fbf8f0,var(--cream))}
.eyebrow{display:block;color:var(--clay);font-size:.76rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
h1,h2,h3{font-family:var(--serif);line-height:1.08;margin:0}
h1{max-width:780px;margin-top:12px;font-size:clamp(2.5rem,6vw,5.1rem);letter-spacing:-.045em}
.hero-copy{max-width:720px;margin:20px 0 0;color:var(--muted);font-size:1.08rem}
.catalog-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:32px;padding:34px 0 80px;align-items:start}
.filter-shell{position:sticky;top:96px}
.filter-form{display:grid;gap:18px;padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:0 12px 35px rgba(35,74,54,.07)}
.filter-form label,.filter-title{display:grid;gap:7px;font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.filter-form input,.filter-form select{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px 12px;color:var(--ink)}
.filter-form input:focus,.filter-form select:focus{outline:3px solid rgba(92,154,110,.25);border-color:var(--leaf)}
.filter-check{display:flex!important;grid-template-columns:18px 1fr;align-items:center;gap:10px!important;text-transform:none!important;letter-spacing:0!important;font-weight:700!important}
.filter-check input{width:18px;height:18px}
.filter-actions{display:flex;gap:8px;flex-wrap:wrap}
.filter-actions button{flex:1;border:0;border-radius:10px;padding:10px;background:#eef3ee;color:var(--forest);font-weight:800}
.catalog-main{min-width:0}
.catalog-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.catalog-count{font-weight:800;color:var(--forest)}
.catalog-search{display:grid;gap:7px;margin:0 0 20px;font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.catalog-search input{width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;padding:13px 15px;color:var(--ink);font-size:1rem}.catalog-search input:focus{outline:3px solid rgba(92,154,110,.25);border-color:var(--leaf)}
.active-filters{margin:-10px 0 20px;color:var(--muted);font-size:.84rem}
.mobile-filter-button{display:none}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.product-card{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);box-shadow:0 8px 25px rgba(35,74,54,.07);transition:transform .2s ease,box-shadow .2s ease}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.product-media{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#efe9db;text-decoration:none}
.product-media img{width:100%;height:100%;display:block;object-fit:cover}
.product-placeholder{height:100%;display:grid;place-items:center;padding:20px;text-align:center;background:linear-gradient(145deg,#e8e0d1,#f7f2e8);color:var(--forest);font-family:var(--serif);font-weight:600}.product-placeholder span{max-width:100%;overflow-wrap:anywhere}
.product-badges{position:absolute;z-index:2;left:12px;top:12px;display:flex;gap:6px;flex-wrap:wrap}
.badge{padding:5px 9px;border-radius:999px;background:rgba(255,253,248,.94);color:var(--forest);font-size:.63rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.badge.featured{background:var(--forest);color:#fff}
.wish-button{position:absolute;z-index:3;right:12px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,253,248,.95);color:var(--forest);font-size:1.1rem}
.wish-button[aria-pressed="true"]{background:var(--clay);color:#fff}
.product-content{display:flex;flex:1;flex-direction:column;padding:18px}
.product-category{color:var(--forest);font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.product-card h2{margin-top:7px;font-size:1.35rem}
.product-card h2 a{text-decoration:none}
.product-card h2 a:hover{text-decoration:underline;text-decoration-color:var(--mint);text-underline-offset:4px}
.product-description{display:-webkit-box;overflow:hidden;margin:11px 0 16px;color:var(--muted);font-size:.9rem;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.product-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
.product-price{font-family:var(--serif);font-size:1.42rem;font-weight:600}
.quick-button{border:0;background:transparent;color:var(--forest);font-weight:800;text-decoration:underline;text-decoration-color:var(--mint);text-underline-offset:3px}
.empty-state{padding:60px 24px;border:1px dashed var(--line);border-radius:var(--radius);background:var(--paper);text-align:center;color:var(--muted)}
.empty-state h2{margin-bottom:8px;color:var(--ink)}
dialog{width:min(680px,calc(100% - 28px));max-height:calc(100vh - 40px);padding:0;border:0;border-radius:24px;background:var(--paper);color:var(--ink);box-shadow:0 30px 100px rgba(18,42,29,.35)}
dialog::backdrop{background:rgba(19,40,29,.58);backdrop-filter:blur(3px)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--line)}
.dialog-close{width:40px;height:40px;border:0;border-radius:50%;background:#edf2ed;color:var(--forest);font-size:1.4rem}
.dialog-body{padding:22px}
.quick-layout{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:start}
.quick-layout .product-media{border-radius:16px}
.quick-title{font-size:1.9rem}
.quick-description{color:var(--muted)}
.quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.filters-dialog .dialog-body{padding:18px}
.site-footer{padding:30px 0;border-top:1px solid var(--line);background:#efe9dc;color:var(--muted);font-size:.88rem}
.footer-row{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.footer-links{display:flex;gap:16px;flex-wrap:wrap}
.product-page{padding:42px 0 80px}
.breadcrumb{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px;color:var(--muted);font-size:.85rem}
.product-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:52px;align-items:start}
.product-gallery{position:sticky;top:98px;overflow:hidden;border-radius:28px;background:#eae3d6;box-shadow:var(--shadow)}
.product-gallery .product-media{aspect-ratio:1/1}
.product-detail h1{font-size:clamp(2.25rem,5vw,4.4rem)}
.product-lead{margin:18px 0;color:var(--muted);font-size:1.04rem}
.detail-price{margin:18px 0;font-family:var(--serif);font-size:2rem;font-weight:600}
.detail-notice{padding:14px 16px;border-left:4px solid var(--clay);border-radius:0 12px 12px 0;background:#f4e9e1;color:#6f4936}
.choice-group{margin:24px 0}
.choice-label{display:block;margin-bottom:10px;font-weight:800}
.swatches{display:flex;gap:9px;flex-wrap:wrap}
.swatch{width:38px;height:38px;border:3px solid var(--paper);border-radius:50%;box-shadow:0 0 0 1px var(--line)}
.swatch[aria-checked="true"]{box-shadow:0 0 0 3px var(--forest)}
.swatch-white{background:#f6f2e9}.swatch-black{background:#2b2b2b}.swatch-forest{background:#234a36}.swatch-sage{background:#5c9a6e}.swatch-clay{background:#c8714d}
.quantity{display:flex;align-items:center;gap:8px}
.quantity button{width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
.quantity output{min-width:36px;text-align:center;font-weight:800}
.detail-actions{display:grid;gap:10px;margin-top:26px}
.detail-actions .button{width:100%;border-radius:13px}
.detail-sections{display:grid;gap:18px;margin-top:32px}
.detail-section{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.detail-section h2{margin-bottom:9px;font-size:1.3rem}
.related{margin-top:64px}
.related h2{margin-bottom:20px;font-size:2rem}
.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.related-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--paper)}.related-card .product-media{aspect-ratio:4/3}.related-card a{text-decoration:none}.related-card-body{display:grid;gap:5px;padding:14px}.related-card-body strong{font-family:var(--serif);font-size:1.08rem}.product-status{min-height:24px;margin-top:10px;color:var(--forest);font-size:.86rem;font-weight:700}
@media(max-width:1050px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:760px){.wrap{width:min(100% - 26px,1180px)}.nav{min-height:64px}.nav-link.secondary{display:none}.catalog-hero{padding:48px 0 28px}.catalog-layout{display:block;padding-top:20px}.filter-shell{display:none}.mobile-filter-button{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:9px 14px;background:var(--paper);color:var(--forest);font-weight:800}.product-grid{grid-template-columns:1fr}.product-card{display:grid;grid-template-columns:128px 1fr}.product-card>.product-media{height:100%;min-height:190px;aspect-ratio:auto}.product-content{padding:15px}.product-card h2{font-size:1.16rem}.product-description{-webkit-line-clamp:2}.product-meta{align-items:flex-end}.quick-layout,.product-layout{grid-template-columns:1fr}.quick-layout .product-media{height:auto;aspect-ratio:4/3}.product-gallery{position:static}.product-page{padding-top:24px}.footer-row{display:grid}.filters-dialog .filter-form{border:0;padding:0;box-shadow:none}.related-grid{grid-template-columns:1fr}}
@media(max-width:440px){.product-card{grid-template-columns:108px 1fr}.product-card>.product-media{min-height:180px}.product-badges{left:7px;top:7px}.badge:not(.featured){display:none}.wish-button{right:7px;top:7px}.product-content{padding:13px}.product-description{font-size:.84rem}.quick-button{font-size:.78rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.product-card,.nav-link,.button{transition:none}}

/* Passata pre-pubblicazione: focus visibile, controlli touch e badge non sovrapposti. */
:where(a,button,input,select):focus-visible{outline:3px solid var(--forest);outline-offset:4px}
.brand{white-space:nowrap}.brand img{flex:none}.cart-link{background:var(--forest);border-color:var(--forest);color:#fff}
.catalog-status:empty{display:none}.catalog-status{padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper);font-size:.88rem;color:var(--forest)}
.product-badges{max-width:calc(100% - 72px);pointer-events:none}
.wish-button,.dialog-close{width:44px;height:44px}.quantity button{width:44px;height:44px}
.quick-button{min-height:44px}.product-meta{flex-wrap:wrap}.product-card h2{overflow-wrap:anywhere}
@media(max-width:760px){.nav{gap:10px}.brand{gap:8px;font-size:1.12rem}.brand img{width:34px;height:34px}.nav-actions{gap:6px}.nav-link{padding:9px 11px;font-size:.82rem}.product-badges{max-width:calc(100% - 62px)}.product-content{padding-top:56px}.product-card>.product-media{min-height:218px}}
@media(max-width:359px){.brand{font-size:1rem}.nav-link{padding:9px}.product-card{grid-template-columns:92px 1fr}}

@media(max-width:760px){.product-card .product-placeholder{padding:12px;font-size:.88rem;line-height:1.45}}
