/* =========================================================
   SIENNA SADDLERY — vetrina + negozio
   Identità dalla proposta logo di Francesca Dorigo (ott. 2026):
   terra di Siena come accento, colori secondari tenui (tortora, azzurro polvere, crema, marrone scuro),
   Garamond per i testi, stampatello semplice per le etichette. Font serviti dal sito (EB Garamond, licenza OFL).
   ========================================================= */
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/EBGaramond-400.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/EBGaramond-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/EBGaramond-500.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/EBGaramond-500-italic.woff2') format('woff2'); }

:root {
  /* palette del marchio */
  --siena: #ab4c1a;        /* accento: pulsanti, link, prezzi in offerta */
  --siena-2: #8f3f15;      /* siena più scuro (pulsante al passaggio del mouse) */
  --dark: #3a281c;         /* marrone scuro: testi e fondi scuri */
  --dark-2: #4d3727;
  --taupe: #aea192;        /* tortora: linee e decorazioni (NON per testi: poco contrasto) */
  --sky: #a6b3c3;          /* azzurro polvere */
  --sky-soft: #e3e8ee;
  --sand: #dfd7c9;         /* crema del marchio */
  --cream: #f3eee6;        /* crema chiaro, sui fondi scuri */
  /* superfici e testi */
  --bg: #f5f3ef;
  --bg-2: #ebe5da;
  --surface: #fbfaf7;
  --ink: #3a281c;
  --muted: #6e6255;
  --red: #a23b2a;
  --ok: #4b6b4f;
  --line: rgba(58, 40, 28, .16);
  --shadow: 0 18px 40px -26px rgba(58, 40, 28, .45);
  --radius: 3px;
  --maxw: 1200px;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--serif); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 19px; overflow-x: hidden; }
/* grana leggerissima, come carta: dà calore ai fondi chiari */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.005em; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--siena); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(64px, 10vw, 136px) 0; }
.bg-alt { background: var(--bg-2); }
.bg-sky { background: var(--sky-soft); }
.center { text-align: center; }
.muted { color: var(--muted); }
/* etichetta in stampatello, come le intestazioni della proposta logo */
.eyebrow { font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); display: inline-block; margin-bottom: 14px; }
.label-it { font-style: italic; color: var(--muted); }
.section-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 16px; font-weight: 400; letter-spacing: -.01em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-inline: auto; }
[hidden] { display: none !important; }

/* ---------- pulsanti (stampatello spaziato, angoli quasi retti) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius);
  padding: 14px 26px; font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn--primary { background: var(--siena); color: #fff; }
.btn--primary:hover { background: var(--siena-2); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--light { background: var(--cream); color: var(--dark); }
.btn--light:hover { background: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 32px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link { color: var(--siena); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-sans { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--siena); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- avviso in alto ---------- */
.notice { background: var(--dark); color: var(--cream); text-align: center; font-family: var(--sans); font-size: .78rem; letter-spacing: .04em; padding: 8px 16px; }

/* ---------- testata: menu a sinistra, logo al centro, carrello a destra ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 239, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); color: var(--ink); transition: background .35s, color .35s, border-color .35s; }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; min-height: 84px; padding-inline: max(20px, calc((100vw - var(--maxw)) / 2 + 20px)); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
.brand__mono { width: 40px; height: auto; }
.brand__name { width: 200px; height: auto; }
.brand__mono--chiaro, .brand__name--chiaro { display: none; }
.nav { display: flex; gap: 4px; justify-self: start; }
.nav a { text-decoration: none; padding: 8px 10px; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: inherit; opacity: .78; position: relative; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s ease; }
.nav a:hover { opacity: 1; } .nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; } .nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--siena); }
.header__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit;
  padding: 9px 14px; border: 1px solid currentColor; border-radius: var(--radius); font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.cart-link svg { width: 17px; height: 17px; }
.cart-count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--siena); color: #fff; font-size: .68rem; letter-spacing: 0; display: inline-grid; place-items: center; padding: 0 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; justify-self: start; }
.nav-toggle svg { width: 26px; height: 26px; }
/* in home la testata sta sopra la foto, trasparente; scorrendo torna piena (classe .fissa messa dal JS) */
.header--sopra { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom-color: rgba(243, 238, 230, .22); color: var(--cream); }
.header--sopra .brand__mono, .header--sopra .brand__name { display: none; }
.header--sopra .brand__mono--chiaro, .header--sopra .brand__name--chiaro { display: block; }
.header--sopra.fissa { position: fixed; top: 0; background: rgba(245, 243, 239, .97); backdrop-filter: blur(8px); border-bottom-color: var(--line); color: var(--ink); animation: scende .45s ease; }
.header--sopra.fissa .brand__mono, .header--sopra.fissa .brand__name { display: block; }
.header--sopra.fissa .brand__mono--chiaro, .header--sopra.fissa .brand__name--chiaro { display: none; }
.header.fissa .header__inner { min-height: 68px; }
.header.fissa .brand__name { display: none !important; }
@keyframes scende { from { transform: translateY(-100%); } to { transform: none; } }
@media (max-width: 900px) {
  .header__inner { min-height: 66px; grid-template-columns: 48px 1fr 48px; padding-inline: 12px; }
  .nav-toggle { display: block; }
  .brand__name { width: 150px; }
  .brand { gap: 5px; } .brand__mono { width: 32px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav a::after { display: none; }
  .cart-link { border: 0; padding: 8px; }
  .cart-link span.lbl { display: none; }
}
@media (max-width: 420px) { .brand__name { display: none !important; } .brand__mono { width: 38px; } }

/* ---------- apertura a tutta pagina: foto che si alternano + velo + testo ---------- */
.hero { position: relative; min-height: clamp(580px, 100svh, 940px); display: flex; align-items: flex-end; color: var(--cream); background: var(--dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; opacity: 0; animation: dissolvenza 21s infinite; }
.hero__media img:nth-child(1) { animation-delay: 0s; }
.hero__media img:nth-child(2) { animation-delay: 7s; }
.hero__media img:nth-child(3) { animation-delay: 14s; }
@keyframes dissolvenza { 0% { opacity: 0; transform: scale(1.08); } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.hero__velo { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(32, 21, 14, .86) 0%, rgba(32, 21, 14, .45) 38%, rgba(32, 21, 14, .08) 62%, rgba(32, 21, 14, .42) 100%),
  linear-gradient(to right, rgba(32, 21, 14, .5), rgba(32, 21, 14, 0) 60%); }
.hero__inner { position: relative; width: 100%; padding-top: 140px; padding-bottom: clamp(56px, 9vh, 96px); }
.hero__text { max-width: 720px; }
.hero .eyebrow { color: var(--sand); }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); color: #fff; margin-bottom: 22px; font-weight: 400; line-height: 1.02; letter-spacing: -.015em; }
.hero h1 em { color: var(--sand); }
.hero p { font-size: 1.22rem; max-width: 540px; color: #e8dfd3; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scorri { position: absolute; right: max(20px, calc((100vw - var(--maxw)) / 2 + 20px)); bottom: 40px; width: 1px; height: 64px; background: rgba(243, 238, 230, .35); overflow: hidden; }
.hero__scorri span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream); animation: scorri 2.2s ease-in-out infinite; }
@keyframes scorri { to { top: 100%; } }
@media (max-width: 860px) { .hero { min-height: clamp(560px, 92svh, 820px); } .hero__scorri { display: none; } .hero p { font-size: 1.1rem; } }

/* ---------- nastro con le parole del marchio ---------- */
.nastro { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); padding: 22px 0; }
.nastro__corsa { display: flex; align-items: center; gap: 38px; width: max-content; animation: nastro 55s linear infinite; }
.nastro span { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-style: italic; color: var(--dark); white-space: nowrap; }
.nastro img { width: 34px; height: auto; opacity: .85; }
@keyframes nastro { to { transform: translateX(-50%); } }

/* ---------- shop the look: foto con i punti ---------- */
.look { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.look + .look { margin-top: clamp(56px, 9vw, 110px); }
.look--rovescio { grid-template-columns: .65fr 1.35fr; }
.look--rovescio .look__media { order: 2; }
/* il riquadro è grande quanto la foto: i punti (in %) restano sugli accessori anche con le foto verticali */
.look__media { position: relative; width: fit-content; max-width: 100%; justify-self: center; }
.look__media > img { width: auto; max-width: 100%; max-height: 82vh; height: auto; display: block; }
.hotspot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(243, 238, 230, .35); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 2; }
.hotspot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 2px rgba(58, 40, 28, .25); transition: transform .2s, background .2s; }
.hotspot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--cream); animation: pulsa 2.4s ease-out infinite; }
.hotspot:hover::before, .hotspot.on::before, .hotspot.acceso::before { background: var(--siena); transform: scale(1.25); }
@keyframes pulsa { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.look__card { position: absolute; z-index: 3; width: 230px; background: var(--surface); box-shadow: var(--shadow); display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px; text-decoration: none; align-items: center; }
.look__card img { width: 64px; height: 80px; object-fit: cover; background: var(--bg-2); }
.look__card b { display: block; font-weight: 500; font-size: 1.02rem; line-height: 1.2; }
.look__card span { font-family: var(--sans); font-size: .8rem; }
.look__card em { display: block; font-style: normal; font-family: var(--sans); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--siena); margin-top: 4px; }
.look__text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.look__text p { color: var(--muted); }
.look__list { margin-top: 22px; border-top: 1px solid var(--line); }
.look__list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s, color .2s; }
.look__list a:hover, .look__list a.acceso { padding-left: 8px; color: var(--siena); }
.look__list a span:last-child { font-family: var(--sans); font-size: .85rem; white-space: nowrap; }
@media (max-width: 860px) {
  .look, .look--rovescio { grid-template-columns: 1fr; }
  .look--rovescio .look__media { order: 0; }
  .look__card { left: 10px !important; right: 10px !important; top: auto !important; bottom: 10px !important; width: auto; transform: none !important; }
}

/* ---------- galleria "dal maneggio" ---------- */
.mood { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 10px; margin-top: 34px; }
.mood a { position: relative; overflow: hidden; display: block; background: var(--bg-2); }
.mood a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mood img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mood a:hover img { transform: scale(1.05); }
.mood span { position: absolute; left: 12px; bottom: 10px; color: #fff; font-family: var(--sans); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (max-width: 760px) { .mood { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }

/* ---------- comparsa allo scorrimento (solo per ciò che è sotto la piega: nessun lampeggio) ---------- */
.attesa { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.attesa.visto { opacity: 1; transform: none; }

/* foto accanto ai testi (chi siamo, contatti) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 80px; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split .prose { padding-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split img { aspect-ratio: 3 / 2; } }

/* ---------- intestazioni di sezione e pilastri numerati ---------- */
.section-head { max-width: 760px; }
.section-head .eyebrow::before, .toolbar .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--siena); vertical-align: middle; margin-right: 12px; }
.pillars { counter-reset: none; }
.pillars > div { border-top: 1px solid var(--dark); padding-top: 18px; }
.pillars .num { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--siena); margin-bottom: 18px; }
.pillars h3 { font-size: 1.7rem; font-weight: 400; margin-bottom: 8px; }
/* ---------- riquadri a filo (come "Selezione", "Lifestyle" nella proposta) ---------- */
.box-tag { display: inline-block; border: 1px solid var(--taupe); padding: 5px 14px; font-size: 1.05rem; margin-bottom: 14px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px; margin-top: 40px; }
.pillars p { color: var(--muted); }

/* ---------- categorie: riquadri con foto ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; }
.cat { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); text-decoration: none; color: #fff; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cat:hover img { transform: scale(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 29, 20, .78), rgba(43, 29, 20, 0) 55%); }
.cat span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.cat b { font-weight: 500; font-size: 1.3rem; display: block; line-height: 1.15; }
.cat small { display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); margin-top: 6px; }
@media (max-width: 860px) { .cats { grid-template-columns: 1fr 1fr; } .cat b { font-size: 1.1rem; } }

/* ---------- servizi ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 34px; }
.feature { padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.feature h3 { font-size: 1.35rem; margin-bottom: 6px; }
.feature p { color: var(--muted); }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.strip > div { border-top: 1px solid var(--dark); padding-top: 14px; }
.strip b { display: block; font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.strip small { color: var(--muted); font-size: 1rem; }

.cta-band { background: var(--siena); color: #fff; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 400; }
.cta-band p { color: #f6e3d6; max-width: 560px; }

/* ---------- schede prodotto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 22px; }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card__img { aspect-ratio: 4 / 5; background: var(--bg-2); position: relative; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card__img img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease, transform .4s ease; }
.card:hover .card__img img.alt { opacity: 1; }
.card__body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card__brand { font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card__name { font-size: 1.18rem; line-height: 1.25; }
.card__price { margin-top: 4px; font-family: var(--sans); font-size: .92rem; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--siena); color: #fff; font-family: var(--sans); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; padding: 5px 9px; }
.tag--out { background: var(--dark); }
.price-old { text-decoration: line-through; color: var(--muted); margin-left: 8px; font-size: .9em; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; } .card__name { font-size: 1.02rem; } .card__price { font-size: .82rem; } .tag { top: 8px; left: 8px; } }

/* ---------- negozio ---------- */
.page-head { padding-top: 40px; padding-bottom: 14px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.crumbs { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-bottom: 80px; }
.filters { position: sticky; top: 96px; align-self: start; }
.filters h2 { font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 8px 0 10px; }
.filters button.chip { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 0; cursor: pointer; font-size: 1.05rem; color: var(--muted); }
.filters button.chip:hover { color: var(--ink); }
.filters button.chip.on { color: var(--ink); font-style: italic; }
.filters button.chip.on::before { content: "— "; color: var(--siena); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.input, .select, textarea.input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--sans); font-size: .95rem; }
.input:focus, .select:focus { border-color: var(--dark); outline: none; }
.search { max-width: 320px; }
.toolbar .select { width: auto; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); border: 1px solid var(--line); }
.loading { color: var(--muted); padding: 40px 0; text-align: center; font-style: italic; }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .filters h2 { display: none; }
  .filters button.chip { width: auto; white-space: nowrap; border: 1px solid var(--line); padding: 7px 14px; font-size: .98rem; }
  .filters button.chip.on { border-color: var(--dark); }
  .filters button.chip.on::before { content: ""; }
}

/* ---------- pagina prodotto ---------- */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); padding-bottom: 80px; }
.gallery__main { aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumbs button { width: 72px; height: 90px; padding: 0; border: 1px solid transparent; overflow: hidden; cursor: pointer; background: var(--bg-2); }
.gallery__thumbs button.on { border-color: var(--dark); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 14px; }
.product__price { font-family: var(--sans); font-size: 1.3rem; }
.product__vat { color: var(--muted); font-size: .95rem; margin: 4px 0 22px; font-style: italic; }
.opt { margin: 18px 0; }
.opt__label { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.opt__label span { color: var(--muted); letter-spacing: .06em; text-transform: none; font-size: .85rem; }
.opt__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__choices button { min-width: 50px; padding: 10px 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: var(--sans); font-size: .85rem; border-radius: var(--radius); }
.opt__choices button:hover { border-color: var(--dark); }
.opt__choices button.on { border-color: var(--dark); background: var(--dark); color: var(--cream); }
.opt__choices button.na { color: #a99d91; text-decoration: line-through; }
.buy { display: flex; gap: 10px; align-items: stretch; margin: 22px 0 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.qty button { width: 42px; height: 48px; border: 0; background: none; font-size: 1.15rem; cursor: pointer; }
.qty input { width: 40px; border: 0; text-align: center; background: none; -moz-appearance: textfield; font-family: var(--sans); }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy .btn { flex: 1; min-width: 200px; }
.stock { font-family: var(--sans); font-size: .82rem; letter-spacing: .03em; }
.stock--ok { color: var(--ok); } .stock--low { color: var(--siena); } .stock--out { color: var(--red); }
.product__desc { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; white-space: pre-line; }
.product__info { margin-top: 22px; display: grid; gap: 6px; font-size: 1rem; color: var(--muted); }
.product__info span::before { content: "— "; color: var(--taupe); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ---------- carrello e cassa ---------- */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; padding-bottom: 80px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.box { background: var(--surface); border: 1px solid var(--line); padding: 26px; }
.box + .box { margin-top: 18px; }
.two-col > .box + .box { margin-top: 0; }
.box h2 { font-size: 1.5rem; margin-bottom: 16px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line img { width: 76px; height: 95px; object-fit: cover; background: var(--bg-2); }
.line__name { font-size: 1.12rem; text-decoration: none; }
.line__var { color: var(--muted); font-size: .95rem; }
.line__msg { color: var(--red); font-family: var(--sans); font-size: .8rem; }
.line__right { text-align: right; display: grid; gap: 8px; justify-items: end; font-family: var(--sans); font-size: .92rem; }
.line .qty button { width: 34px; height: 36px; }
.line .qty input { width: 32px; }
.remove { background: none; border: 0; color: var(--muted); font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; cursor: pointer; }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .row span:last-child { font-family: var(--sans); font-size: .92rem; }
.summary .row--tot { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 1.25rem; }
.summary .row--tot span:last-child { font-size: 1.05rem; font-weight: 600; }
.summary small { color: var(--muted); font-style: italic; }
.summary .btn { margin-top: 18px; }
.hint { font-size: .95rem; color: var(--muted); margin-top: 12px; }
.hint--ok { color: var(--ok); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.field small { color: var(--muted); font-size: .88rem; font-style: italic; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: 1px solid var(--line); cursor: pointer; background: var(--surface); }
.choice + .choice { margin-top: 10px; }
.choice:has(input:checked) { border-color: var(--dark); background: var(--bg); }
.choice input { margin-top: 5px; accent-color: var(--siena); width: 17px; height: 17px; flex: none; }
.choice b { display: block; font-weight: 500; font-size: 1.08rem; }
.choice small { color: var(--muted); font-size: .95rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; margin-top: 12px; }
.check input { margin-top: 5px; accent-color: var(--siena); width: 17px; height: 17px; flex: none; }
.alert { padding: 12px 16px; margin: 12px 0; font-family: var(--sans); font-size: .9rem; border-left: 3px solid currentColor; }
.alert--err { background: #f6e3dd; color: #7c2416; }
.alert--ok { background: #e2ebe0; color: #2f4d33; }
.alert--info { background: var(--sky-soft); color: #33404f; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 1rem; }
.mini-line span:last-child { font-family: var(--sans); font-size: .88rem; white-space: nowrap; }

/* ---------- ordine ---------- */
.order-state { text-align: center; padding: 44px 20px 26px; }
.order-state .big { width: 92px; margin: 0 auto 6px; }
.order-state h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 14px 0 10px; }
.code { font-family: var(--sans); font-size: 1.05rem; letter-spacing: .14em; color: var(--siena); }
.steps { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.steps span { padding: 6px 12px; border: 1px solid var(--line); font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.steps span.on { background: var(--dark); border-color: var(--dark); color: var(--cream); }
.test-pay { border: 1px dashed var(--siena); background: var(--surface); padding: 22px; text-align: center; }
.test-pay .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.test-pay .btn--ghost { color: var(--dark); }

/* ---------- testi (privacy, condizioni) ---------- */
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 1.6rem; margin: 32px 0 8px; }
.prose p, .prose li { margin-bottom: 10px; }
.prose ul { list-style: disc; padding-left: 22px; }
.draft { border-left: 2px solid var(--siena); background: var(--surface); padding: 12px 16px; margin: 16px 0 26px; font-size: 1rem; }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding-bottom: 80px; }
.info-cards .box h2 { font-size: 1.3rem; }

/* ---------- piè di pagina ---------- */
.footer { background: var(--dark); color: #d9cfc2; padding: 64px 0 28px; font-size: 1rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer__logo { width: 76px; margin-bottom: 18px; }
.footer__name { width: 220px; }
.footer__payoff { font-style: italic; color: var(--sand); margin-top: 14px; max-width: 320px; }
.footer h3 { font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); margin-bottom: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer li { margin-bottom: 6px; }
.footer__legal { border-top: 1px solid rgba(243,238,230,.16); margin-top: 44px; padding-top: 20px; font-family: var(--sans); font-size: .72rem; letter-spacing: .04em; color: #a99d91; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.pay-icons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pay-icons span { border: 1px solid rgba(243,238,230,.28); padding: 3px 8px; font-family: var(--sans); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- avviso a scomparsa ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--dark); color: var(--cream); padding: 13px 20px;
  box-shadow: var(--shadow); z-index: 100; font-family: var(--sans); font-size: .85rem; display: flex; gap: 16px; align-items: center; max-width: calc(100% - 32px); }
.toast a { color: #fff; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .nastro__corsa { transform: none; }
  .hero__media img { opacity: 0; } .hero__media img:first-child { opacity: 1; }
  .attesa { opacity: 1; transform: none; }
}
@media print { .header, .footer, .notice, .nav-toggle { display: none !important; } body { background: #fff; } }
