/* ==========================================================================
   ARMIVARIE — design system
   Artigianato italiano + precisione tecnica + sobrietà contemporanea
   ========================================================================== */

/* ---- Font locali (SIL Open Font License 1.1 — licenze in assets/fonts/) --
   Nessuna richiesta a Google Fonts: i file sono ospitati sul sito. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --c-primary: #17211c;        /* verde molto scuro / deep forest */
  --c-primary-2: #1f2b25;
  --c-secondary: #242724;      /* antracite */
  --c-bg: #f1eee6;             /* avorio caldo */
  --c-surface: #fafaf8;        /* bianco caldo */
  --c-surface-2: #f5f3ee;
  --c-border: #d8d4c9;         /* pietra */
  --c-border-strong: #bdb7a8;
  --c-accent: #9a8153;         /* ottone */
  --c-accent-dark: #7d6841;
  --c-accent-light: #c9b68c;
  --c-text: #1c211e;
  --c-muted: #5d615b;
  --c-subtle: #85877f;
  --c-on-dark: #efece4;
  --c-on-dark-muted: #a9aba2;
  --c-success: #2f5b3f;
  --c-success-bg: #e3ebe2;
  --c-danger: #8c3127;
  --c-danger-bg: #f3e3df;
  --c-warning: #7a5a17;
  --c-warning-bg: #f3ead3;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --container: 1200px;
  --header-h: 68px;
  --shadow-sm: 0 1px 2px rgba(23, 33, 28, .06);
  --shadow-md: 0 6px 24px rgba(23, 33, 28, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}


/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0 0 var(--s-3);
  color: var(--c-primary);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 var(--s-4); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
::selection { background: var(--c-accent-light); color: var(--c-primary); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--c-accent-dark); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-2); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
@media (max-width: 600px) { .container { padding: 0 var(--s-4); } }

/* ---- Tipografia di supporto -------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--f-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-dark);
  margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.125rem; color: var(--c-muted); max-width: 60ch; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.upper { text-transform: uppercase; letter-spacing: .08em; }

/* ---- Bottoni ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--c-primary); --btn-fg: var(--c-on-dark); --btn-bd: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 10px 22px;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { --btn-bg: var(--c-primary-2); color: var(--btn-fg); }
.btn svg { width: 18px; height: 18px; flex: none; }
/* fondo ottone scuro: contrasto con il testo bianco conforme WCAG AA */
.btn--accent { --btn-bg: var(--c-accent-dark); --btn-bd: var(--c-accent-dark); --btn-fg: #fff; }
.btn--accent:hover { --btn-bg: #66552f; --btn-bd: #66552f; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-primary); --btn-bd: var(--c-border-strong); }
.btn--ghost:hover { --btn-bg: var(--c-surface); --btn-bd: var(--c-primary); color: var(--c-primary); }
.btn--light { --btn-bg: var(--c-bg); --btn-fg: var(--c-primary); --btn-bd: var(--c-bg); }
.btn--light:hover { --btn-bg: #fff; --btn-bd: #fff; color: var(--c-primary); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--c-on-dark); --btn-bd: rgba(239, 236, 228, .45); }
.btn--outline-light:hover { --btn-bg: rgba(239, 236, 228, .08); --btn-bd: var(--c-accent-light); color: var(--c-on-dark); }
.btn--danger { --btn-bg: var(--c-danger); --btn-bd: var(--c-danger); --btn-fg: #fff; }
.btn--danger:hover { --btn-bg: #74271f; --btn-bd: #74271f; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--c-primary);
  border-bottom: 1px solid var(--c-accent); padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---- Badge -------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: var(--r-sm);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-secondary);
  line-height: 1.4; white-space: nowrap;
}
.badge--new { border-color: var(--c-accent); color: var(--c-accent-dark); }
.badge--used { color: var(--c-muted); }
.badge--available { background: var(--c-success-bg); border-color: transparent; color: var(--c-success); }
.badge--available::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--unavailable { background: var(--c-secondary); border-color: var(--c-secondary); color: var(--c-on-dark); }
.badge--draft { background: var(--c-warning-bg); border-color: transparent; color: var(--c-warning); }
.badge--published { background: var(--c-success-bg); border-color: transparent; color: var(--c-success); }
.badge--archived { background: #e6e4de; border-color: transparent; color: var(--c-muted); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--c-primary); color: var(--c-on-dark);
  border-bottom: 1px solid rgba(154, 129, 83, .35);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--c-on-dark); }
.brand:hover { color: var(--c-on-dark); }
.brand img { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; letter-spacing: .16em;
}
.brand__sub {
  margin-top: 4px; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-accent-light);
}
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__list { display: flex; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-block; padding: 6px 0;
  font-family: var(--f-display); font-weight: 500; font-size: 1.02rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--c-on-dark);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--c-on-dark);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-primary); border-top: 1px solid rgba(154, 129, 83, .3);
    padding: var(--s-4) var(--s-4) var(--s-5);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 14px 4px; font-size: 1.2rem; border-bottom: 1px solid rgba(239, 236, 228, .08); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--c-accent-light); }
  .nav .btn { margin-top: var(--s-4); }
  .brand__name { font-size: 1.45rem; }
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--c-primary); color: var(--c-on-dark-muted); margin-top: var(--s-9); font-size: .92rem; }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent-light); }
.site-footer__grid {
  display: grid; gap: var(--s-6); grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: var(--s-8) 0 var(--s-7);
}
.site-footer h4 {
  font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-light); margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer .brand__name { font-size: 1.9rem; color: var(--c-on-dark); }
.site-footer__note { max-width: 36ch; margin-top: var(--s-4); }
.site-footer__bottom {
  border-top: 1px solid rgba(239, 236, 228, .1); padding: var(--s-4) 0;
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; font-size: .8rem;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; padding-top: var(--s-7); } }

/* ---- Sezioni ------------------------------------------------------------ */
.section { padding: var(--s-8) 0; }
.section--tight { padding: var(--s-7) 0; }
.section--surface { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.section--dark { background: var(--c-primary); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--c-on-dark); }
.section--dark .eyebrow { color: var(--c-accent-light); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--s-2) 0 0; color: var(--c-muted); }

.page-head { padding: var(--s-7) 0 var(--s-5); border-bottom: 1px solid var(--c-border); margin-bottom: var(--s-6); }
.page-head h1 { margin-bottom: var(--s-2); }
.page-head p { margin: 0; color: var(--c-muted); max-width: 62ch; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(82vh, 760px);
  display: flex; align-items: flex-end;
  background: var(--c-primary); color: var(--c-on-dark); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  /* velatura per la leggibilità del testo sulla fotografia */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 22, 18, .25) 0%, rgba(15, 22, 18, .15) 40%, rgba(15, 22, 18, .78) 100%);
}
.hero--no-photo::before { background: none; }
.hero--no-photo .hero__media {
  /* fallback senza fotografia: fondo pieno con linee sottili color ottone */
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(154, 129, 83, .12) 0) 0 0 / 120px 100%,
    var(--c-primary);
}
.hero__content { padding-top: var(--s-9); padding-bottom: var(--s-8); }
.hero__logo { max-width: min(360px, 70vw); margin-bottom: var(--s-4); }
.hero__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(3.2rem, 10vw, 6.5rem); letter-spacing: .14em; line-height: .95;
  color: var(--c-on-dark); margin: 0 0 var(--s-3);
}
.hero__sub { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--c-accent-light); margin-bottom: var(--s-5); display: flex; align-items: center; gap: var(--s-3); }
.hero__sub::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero__tagline { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34em; color: rgba(239, 236, 228, .9); margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---- Card articolo ------------------------------------------------------ */
.grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid--4, .grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } }
@media (max-width: 380px) { .grid--4, .grid { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-md); color: inherit; }
.card:hover .card__media img { transform: scale(1.02); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--ease); }
.card__flag { position: absolute; top: var(--s-2); left: var(--s-2); }
.card--unavailable .card__media img { opacity: .55; filter: grayscale(.6); }
.card__body { display: flex; flex-direction: column; gap: 2px; padding: var(--s-4) var(--s-4) var(--s-3); flex: 1; }
.card__brand { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-dark); min-height: 1.1em; }
.card__title {
  font-family: var(--f-display); font-weight: 600; font-size: 1.22rem; line-height: 1.15; color: var(--c-primary); margin: 2px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { font-size: .82rem; color: var(--c-muted); }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  margin-top: auto; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--c-border);
}
.card__price { font-weight: 600; font-size: 1rem; color: var(--c-secondary); font-variant-numeric: tabular-nums; }
.card__price--request { font-weight: 500; font-size: .85rem; color: var(--c-muted); }
@media (max-width: 800px) {
  .card__body { padding: var(--s-3); }
  .card__title { font-size: 1.08rem; }
  .card__foot { padding: var(--s-2) var(--s-3); flex-wrap: wrap; }
  .card__meta { font-size: .76rem; }
}

.placeholder-img {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; letter-spacing: .3em; font-size: .85rem;
  color: var(--c-border-strong); background: var(--c-surface-2);
}

/* Skeleton durante il caricamento */
.skeleton { background: linear-gradient(90deg, #ece9e1 0%, #f4f2ec 50%, #ece9e1 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--r-sm); }
@keyframes sk { to { background-position: -200% 0; } }
.sk-line { height: 12px; margin: 6px 0; }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } * { scroll-behavior: auto !important; } }

.empty {
  text-align: center; padding: var(--s-8) var(--s-5);
  border: 1px dashed var(--c-border-strong); border-radius: var(--r-md); background: var(--c-surface);
}
.empty h3 { margin-bottom: var(--s-2); }
.empty p { color: var(--c-muted); margin-bottom: var(--s-4); }

/* ---- Categorie (home) --------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.cat {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-5);
  min-height: 132px; padding: var(--s-5); background: var(--c-surface); text-decoration: none; color: var(--c-primary);
  transition: background-color .18s var(--ease);
}
.cat:hover { background: #fff; color: var(--c-primary); }
.cat__name { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; letter-spacing: .04em; }
.cat__foot { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--c-muted); }
.cat__foot svg { width: 18px; height: 18px; color: var(--c-accent); transition: transform .18s var(--ease); }
.cat:hover .cat__foot svg { transform: translateX(4px); }
.cat--all { background: var(--c-primary); color: var(--c-on-dark); }
.cat--all:hover { background: var(--c-primary-2); color: var(--c-on-dark); }
.cat--all .cat__foot { color: var(--c-accent-light); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat { min-height: 104px; padding: var(--s-4); } .cat__name { font-size: 1.2rem; } }

/* ---- Servizi ------------------------------------------------------------ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.service { border-top: 1px solid rgba(201, 182, 140, .4); padding-top: var(--s-4); }
.service__num { font-family: var(--f-display); font-size: .9rem; letter-spacing: .2em; color: var(--c-accent-light); }
.service h3 { font-size: 1.4rem; margin: var(--s-2) 0; }
.service p { color: var(--c-on-dark-muted); font-size: .95rem; margin: 0; }
.section:not(.section--dark) .service { border-top-color: var(--c-border-strong); }
.section:not(.section--dark) .service__num { color: var(--c-accent-dark); }
.section:not(.section--dark) .service p { color: var(--c-muted); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---- Blocco contatti ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
.info-list { display: grid; gap: var(--s-4); margin: 0; }
.info-list > div { display: grid; grid-template-columns: 28px 1fr; column-gap: var(--s-3); align-items: start; }
.info-list dt { display: contents; }
.info-list svg { grid-row: span 2; width: 20px; height: 20px; color: var(--c-accent); margin-top: 3px; }
.info-list dt span { grid-column: 2; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.info-list dd { grid-column: 2; margin: 0; font-weight: 500; }
.info-list a { text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-6); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .panel { padding: var(--s-5); } }

/* ---- Catalogo ----------------------------------------------------------- */
.catalog-search { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); }
.search-field { position: relative; flex: 1; }
.search-field svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.search-field input[type="search"] { padding-left: 44px; min-height: 52px; font-size: 1.05rem; }

.segmented { display: inline-flex; border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface); }
.segmented button {
  min-height: 40px; padding: 6px 18px; border: 0; background: none;
  font-family: var(--f-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .92rem; color: var(--c-muted);
}
.segmented button + button { border-left: 1px solid var(--c-border-strong); }
.segmented button[aria-pressed="true"] { background: var(--c-primary); color: var(--c-on-dark); }

.catalog { display: grid; grid-template-columns: 272px 1fr; gap: var(--s-6); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + var(--s-4)); display: grid; gap: var(--s-4); }
.filters__head { display: none; }
.filters__title { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.filter-group { display: grid; gap: var(--s-2); }
.filter-group > label, .filter-group > .label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.filters__actions { display: none; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.results-count { font-size: .95rem; color: var(--c-muted); }
.results-count strong { color: var(--c-text); }
.results-tools { display: flex; gap: var(--s-2); align-items: center; }
.results-tools select { width: auto; min-height: 40px; padding-right: 36px; }
.filters-toggle { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 6px 4px 12px;
  border: 1px solid var(--c-border-strong); border-radius: 999px; background: var(--c-surface);
  font-size: .85rem; color: var(--c-text);
}
.chip span { color: var(--c-muted); }
.chip button { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--c-surface-2); color: var(--c-muted); padding: 0; }
.chip button:hover { background: var(--c-secondary); color: #fff; }
.chip button svg { width: 12px; height: 12px; }
.chips__reset { border: 0; background: none; font-size: .85rem; font-weight: 600; color: var(--c-accent-dark); text-decoration: underline; text-underline-offset: 3px; padding: 4px 6px; }

.load-more { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }

@media (max-width: 960px) {
  .catalog { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(420px, 100%);
    background: var(--c-bg); padding: var(--s-5) var(--s-4) 0; overflow-y: auto;
    transform: translateX(100%); transition: transform .22s var(--ease); visibility: hidden;
    align-content: start; box-shadow: var(--shadow-md);
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; }
  .filters__actions {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-2);
    position: sticky; bottom: 0; background: var(--c-bg); padding: var(--s-4) 0; border-top: 1px solid var(--c-border); margin-top: var(--s-2);
  }
}
.backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(15, 22, 18, .5); }

/* ---- Form (pubblico + admin) -------------------------------------------- */
.input, input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="email"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.4; color: var(--c-text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  appearance: none; -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--c-subtle); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(154, 129, 83, .18); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d615b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px;
}
textarea { min-height: 160px; resize: vertical; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---- Combobox (menu a tendina con ricerca) ------------------------------ */
.combo { position: relative; }
.combo__input { padding-right: 64px !important; }
.combo__btns { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: flex; }
.combo__btn { width: 30px; height: 34px; border: 0; background: none; color: var(--c-muted); display: grid; place-items: center; padding: 0; }
.combo__btn:hover { color: var(--c-primary); }
.combo__btn svg { width: 16px; height: 16px; }
.combo__list {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 260px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  background: var(--c-surface); border: 1px solid var(--c-border-strong); border-radius: var(--r-sm); box-shadow: var(--shadow-md);
}
.combo__opt { display: flex; justify-content: space-between; gap: var(--s-2); padding: 9px 10px; border-radius: 3px; cursor: pointer; font-size: .95rem; }
.combo__opt small { color: var(--c-subtle); font-variant-numeric: tabular-nums; }
.combo__opt mark { background: none; color: var(--c-accent-dark); font-weight: 700; }
.combo__opt[aria-selected="true"], .combo__opt:hover { background: var(--c-bg); }
.combo__opt--new { color: var(--c-accent-dark); font-weight: 600; }
.combo__empty { padding: 10px; color: var(--c-muted); font-size: .9rem; }

/* ---- Pagina dettaglio --------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: var(--s-5) 0; font-size: .85rem; color: var(--c-muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--c-border-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li:last-child { color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: var(--s-5); } }

.gallery__main {
  position: relative; aspect-ratio: 4 / 3; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--c-border); border-radius: 50%; background: rgba(250, 250, 248, .92); color: var(--c-primary);
}
.gallery__nav:hover { background: #fff; border-color: var(--c-border-strong); }
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__nav--prev { left: var(--s-3); }
.gallery__nav--next { right: var(--s-3); }
.gallery__count { position: absolute; right: var(--s-3); bottom: var(--s-3); padding: 2px 8px; border-radius: var(--r-sm); background: rgba(23, 33, 28, .75); color: #fff; font-size: .78rem; font-variant-numeric: tabular-nums; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); margin-top: var(--s-2); }
.gallery__thumb { aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-surface); overflow: hidden; opacity: .7; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.gallery__thumb:hover { opacity: 1; }

.product__brand { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent-dark); margin-bottom: var(--s-2); }
.product__title { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: var(--s-3); }
.product__badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.product__price { font-family: var(--f-display); font-weight: 600; font-size: 2.2rem; color: var(--c-primary); line-height: 1; margin-bottom: var(--s-2); font-variant-numeric: tabular-nums; }
.product__price--request { font-size: 1.5rem; color: var(--c-muted); }
.product__views { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--c-muted); margin-bottom: var(--s-5); }
.product__views svg { width: 18px; height: 18px; }
.specs { width: 100%; border-collapse: collapse; margin-bottom: var(--s-5); font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.specs th { width: 38%; font-weight: 500; color: var(--c-muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 12px; }
.specs td { font-weight: 500; }
.product__desc { margin-top: var(--s-7); max-width: 75ch; }
.product__desc h2 { font-size: 1.6rem; }
.product__desc-text { white-space: pre-line; color: var(--c-secondary); }

.cta-box { background: var(--c-primary); color: var(--c-on-dark); border-radius: var(--r-md); padding: var(--s-5); }
.cta-box h2 { color: var(--c-on-dark); font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s-2); }
.cta-box p { color: var(--c-on-dark-muted); font-size: .92rem; margin-bottom: var(--s-4); }
.cta-box__actions { display: grid; gap: var(--s-2); }
.cta-box__ref { margin-top: var(--s-3); font-size: .78rem; color: var(--c-on-dark-muted); letter-spacing: .06em; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 16, 14, .94); display: grid; place-items: center; padding: var(--s-5); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: var(--s-3); right: var(--s-3); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox .gallery__nav { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }

/* ---- Pagine istituzionali ----------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } }
.values { display: grid; gap: 0; border-top: 1px solid var(--c-border); }
.values div { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border); }
.values strong { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }
.values span { color: var(--c-muted); }
@media (max-width: 500px) { .values div { grid-template-columns: 1fr; gap: 2px; } }
.notice { font-size: .85rem; color: var(--c-muted); border-left: 2px solid var(--c-accent); padding: var(--s-2) var(--s-4); background: var(--c-surface); }

/* ---- Messaggi / toast --------------------------------------------------- */
.toast-wrap { position: fixed; z-index: 200; left: 50%; bottom: var(--s-5); transform: translateX(-50%); display: grid; gap: var(--s-2); width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: var(--r-sm); background: var(--c-secondary); color: #fff; box-shadow: var(--shadow-md); font-size: .95rem; animation: toast-in .2s var(--ease); }
.toast--error { background: var(--c-danger); }
.toast--success { background: var(--c-success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-size: .95rem; }
.alert--error { background: var(--c-danger-bg); color: var(--c-danger); }
.alert--warning { background: var(--c-warning-bg); color: var(--c-warning); }

.noscript { padding: var(--s-4); background: var(--c-warning-bg); color: var(--c-warning); text-align: center; }

/* Scheletro pagina dettaglio */
.product--loading { margin-top: var(--s-7); }
.sk-line--sm { width: 30%; }
.sk-line--title { width: 80%; height: 32px; }
.sk-line--price { width: 40%; height: 28px; margin-top: var(--s-5); }
.contact-map { margin: var(--s-5) 0 0; }

/* ==========================================================================
   Aggiornamento: logo, lingua, servizi, mappa, avviso vendita
   ========================================================================== */

/* Logo nell'header e nel footer */
.brand { flex: none; }
.brand .brand__logo { height: 50px; width: auto; max-width: none; }
.site-footer .brand .brand__logo { height: 72px; }
@media (max-width: 600px) { .site-header .brand .brand__logo { height: 42px; } }

/* Selettore lingua IT / EN */
.lang { display: inline-flex; border: 1px solid rgba(239, 236, 228, .3); border-radius: var(--r-sm); overflow: hidden; }
.lang__btn {
  min-width: 38px; min-height: 32px; padding: 4px 8px; border: 0; background: none;
  font-family: var(--f-display); font-weight: 600; font-size: .9rem; letter-spacing: .1em; color: var(--c-on-dark-muted);
}
.lang__btn + .lang__btn { border-left: 1px solid rgba(239, 236, 228, .3); }
.lang__btn:hover { color: #fff; }
.lang__btn[aria-pressed="true"] { background: var(--c-accent-dark); color: #fff; }
@media (max-width: 900px) {
  .nav .lang { align-self: flex-start; margin-top: var(--s-4); }
  .lang__btn { min-width: 52px; min-height: 40px; font-size: 1rem; }
}

/* Hero con fotografia */
.hero__logo { width: min(300px, 62vw); height: auto; margin-bottom: var(--s-4); filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .35)); }
.hero__media img { object-position: center 40%; }
.hero::before { background: linear-gradient(90deg, rgba(12, 18, 15, .78) 0%, rgba(12, 18, 15, .35) 55%, rgba(12, 18, 15, .15) 100%), linear-gradient(180deg, transparent 55%, rgba(12, 18, 15, .6) 100%); }
.hero__services {
  display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-6) 0 0; max-width: 820px;
}
.hero__services a {
  display: inline-block; padding: 6px 12px; border: 1px solid rgba(201, 182, 140, .55); border-radius: var(--r-sm);
  background: rgba(12, 18, 15, .45); color: var(--c-on-dark); text-decoration: none;
  font-family: var(--f-display); font-weight: 500; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
}
.hero__services a:hover { border-color: var(--c-accent-light); background: rgba(154, 129, 83, .35); color: #fff; }
@media (max-width: 600px) { .hero__services a { font-size: .82rem; padding: 5px 9px; } .hero__services { margin-top: var(--s-5); } }

/* Servizi in evidenza */
.section-head__sub { color: var(--c-on-dark-muted) !important; max-width: 60ch; }
.services--featured { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.services--featured .service {
  border: 1px solid rgba(201, 182, 140, .28); border-top: 2px solid var(--c-accent);
  border-radius: var(--r-md); padding: var(--s-5); background: rgba(255, 255, 255, .03);
}
.services--featured .service h3 { font-size: 1.5rem; }
.services--featured .service p { font-size: 1rem; }
@media (max-width: 900px) { .services--featured { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services--featured { grid-template-columns: 1fr; } .services--featured .service { padding: var(--s-4); } }

/* Mappa */
.map { display: grid; gap: var(--s-3); }
.map__box { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2); }
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s-2); padding: var(--s-5); text-align: center; }
.map__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.map__actions .btn { flex: 1 1 200px; }
.contact-col { display: grid; gap: var(--s-4); }
.contact-more { margin-top: var(--s-4); }
.panel__hours { margin-top: var(--s-5); }
@media (max-width: 800px) { .map__box { aspect-ratio: 1 / 1; } }

/* Avviso vendita in sede nella scheda articolo */
.sale-notice {
  display: grid; grid-template-columns: 26px 1fr; gap: var(--s-3);
  padding: var(--s-4); margin-bottom: var(--s-5);
  background: var(--c-warning-bg); border: 1px solid #e3d3a7; border-left: 4px solid var(--c-accent); border-radius: var(--r-md);
}
.sale-notice > svg { width: 24px; height: 24px; color: var(--c-accent-dark); margin-top: 2px; }
.sale-notice strong { display: block; font-family: var(--f-display); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary); }
.sale-notice p { margin: 4px 0 var(--s-2); font-size: .95rem; color: var(--c-secondary); }
.sale-notice__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.15rem; color: var(--c-primary); text-decoration: none; }
.sale-notice__phone svg { width: 18px; height: 18px; }
.sale-notice__phone:hover { color: var(--c-accent-dark); }
.cta-box__legal { margin: var(--s-3) 0 0; font-size: .78rem; color: var(--c-on-dark-muted); }
.product__back { margin-top: var(--s-7); }
.product__notfound { margin-top: var(--s-7); }
.product__notfound h1 { font-size: 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.brand:has(.brand__logo) .brand__text { padding-left: var(--s-3); border-left: 1px solid rgba(201, 182, 140, .4); }
@media (max-width: 380px) { .site-header .brand__sub { display: none; } }

/* ==========================================================================
   Verifica maggiore età
   ========================================================================== */
/* Finché non c'è la conferma il sito resta oscurato (anche prima che compaia la finestra) */
html.age-pending body { overflow: hidden; }
html.age-pending body > :not(.age-gate) { filter: blur(6px); pointer-events: none; user-select: none; }
html.age-pending body::after {
  content: ""; position: fixed; inset: 0; z-index: 900;
  background: rgba(10, 15, 12, .9);
}
.age-gate {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
  display: grid; place-items: center; padding: var(--s-4);
}
.age-gate__box {
  width: min(520px, 100%); padding: var(--s-6);
  background: var(--c-primary); color: var(--c-on-dark);
  border: 1px solid rgba(201, 182, 140, .35); border-top: 3px solid var(--c-accent); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.age-gate__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.age-gate__logo { height: 64px; width: auto; }
.age-gate .eyebrow { color: var(--c-accent-light); }
.age-gate__title { color: var(--c-on-dark); font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: var(--s-4); }
.age-gate p { color: rgba(239, 236, 228, .88); }
.age-gate__note {
  font-size: .92rem; padding: var(--s-3) var(--s-4);
  border-left: 2px solid var(--c-accent); background: rgba(255, 255, 255, .04);
}
.age-gate__actions { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.age-gate .btn { white-space: normal; text-align: center; }
@media (max-width: 480px) { .age-gate__box { padding: var(--s-5) var(--s-4); } .age-gate__logo { height: 52px; } }

/* Tabella orari: Giorno / Mattina / Pomeriggio */
.hours th, .hours td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.hours thead th { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); padding-top: 0; }
.hours tbody th { font-weight: 600; color: var(--c-secondary); }
.hours td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours td:last-child { text-align: left; }
.hours__all { text-align: center !important; font-weight: 600; letter-spacing: .06em; color: var(--c-primary); }
@media (max-width: 420px) { .hours { font-size: .88rem; } .hours td { white-space: normal; } }

/* ==========================================================================
   Pre-deploy: pagine generate dal server, legali, mappa su richiesta, preferenze
   ========================================================================== */
.page-head--tight { padding-top: var(--s-4); }
.section-gap { margin-top: var(--s-7); }
.empty__title { font-size: 1.5rem; }
.table-wrap { overflow-x: auto; margin: var(--s-4) 0; }

/* Header: selettore lingua come link */
a.lang__btn { display: inline-grid; place-items: center; text-decoration: none; }
.lang__btn[aria-current="true"] { background: var(--c-accent-dark); color: #fff; }

/* Footer con dati aziendali */
.site-footer__title { font-family: var(--f-display); font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-light); margin-bottom: var(--s-4); }
.site-footer .brand .brand__logo { height: 72px; }
.site-footer__bottom p { margin: 0; }
.site-footer__company { color: var(--c-on-dark); }
.site-footer__company a { color: var(--c-on-dark); text-decoration: underline; text-decoration-color: rgba(201, 182, 140, .5); }
.site-footer__bottom { flex-direction: column; align-items: flex-start; }

/* Catalogo: form GET */
.catalog-form { display: block; }
.filter-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-group > legend { padding: 0; margin-bottom: var(--s-2); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.segmented--radio { display: inline-flex; }
.segmented--radio label { position: relative; }
.segmented--radio input { position: absolute; opacity: 0; inset: 0; }
.segmented--radio span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; cursor: pointer;
  font-family: var(--f-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .92rem; color: var(--c-muted);
}
.segmented--radio label + label span { border-left: 1px solid var(--c-border-strong); }
.segmented--radio input:checked + span { background: var(--c-primary); color: var(--c-on-dark); }
.segmented--radio input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.filters__buttons { display: grid; gap: var(--s-2); }
.filters-toggle[hidden] { display: none !important; }
a.chip { text-decoration: none; padding-right: 10px; }
a.chip:hover { border-color: var(--c-primary); color: var(--c-text); }
.chip__x { font-size: 1.1rem; line-height: 1; color: var(--c-muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: var(--s-4); margin-top: var(--s-6); flex-wrap: wrap; }
@media (max-width: 960px) {
  .filters__buttons { position: sticky; bottom: 0; background: var(--c-bg); padding: var(--s-4) 0; border-top: 1px solid var(--c-border); }
}

/* Galleria: miniature come link */
.gallery__thumbs { list-style: none; padding: 0; }
.gallery__thumb { display: block; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.product__note { font-size: .85rem; color: var(--c-muted); margin: var(--s-2) 0 var(--s-3); }
.notice--lang { margin: 0 0 var(--s-4); }
.cta-box p { color: rgba(239, 236, 228, .85); }

/* Mappa: segnaposto locale, iframe Google solo su richiesta */
.map__box { background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(154, 129, 83, .14) 0) 0 0 / 48px 48px,
    linear-gradient(0deg, transparent calc(100% - 1px), rgba(154, 129, 83, .14) 0) 0 0 / 48px 48px,
    var(--c-surface-2); }
.map__placeholder { position: relative; inset: auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-2); padding: var(--s-5); text-align: left; }
.map__pin { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: var(--c-accent-light); }
.map__pin svg { width: 24px; height: 24px; }
.map__address { margin: 0; }
.map__title { font-size: 1.2rem; margin: var(--s-2) 0 0; }
.map__text { font-size: .85rem; color: var(--c-muted); margin: 0; }
.map__consent { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.map__consent[hidden] { display: none; }
.map__consent .btn { justify-self: start; }
.map__remember { display: flex; gap: var(--s-2); align-items: flex-start; font-size: .82rem; color: var(--c-muted); }
.map__remember input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--c-primary); }
.map .map__box { aspect-ratio: auto; min-height: 400px; }
@media (max-width: 800px) { .map .map__box { min-height: 340px; } }

/* Pagine legali */
.legal { max-width: 860px; }
.legal__date { font-size: .9rem; color: var(--c-muted); }
.legal__body h2 { font-size: 1.5rem; margin-top: var(--s-6); }
.legal__body h3 { font-size: 1.2rem; margin-top: var(--s-5); }
.legal__body ul { padding-left: 1.2em; }
.legal__body li { margin-bottom: var(--s-2); }
.legal__body table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--c-surface); }
.legal__body th, .legal__body td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal__body thead th { background: var(--c-surface-2); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.legal__body code { font-size: .85em; background: var(--c-surface-2); padding: 1px 5px; border-radius: 3px; }
.legal-data { display: grid; gap: 0; border-top: 1px solid var(--c-border); }
.legal-data div { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--c-border); }
.legal-data dt { font-weight: 600; color: var(--c-muted); }
.legal-data dd { margin: 0; }
@media (max-width: 560px) { .legal-data div { grid-template-columns: 1fr; gap: 2px; } }
.legal__nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--c-border); font-size: .9rem; }

/* Finestra 18+: testo aggiuntivo e link alle pagine legali */
.age-gate__small { font-size: .8rem; color: rgba(239, 236, 228, .7) !important; }
.age-gate__legal { font-size: .8rem; margin: var(--s-4) 0 0; color: rgba(239, 236, 228, .7) !important; }
.age-gate__legal a { color: var(--c-accent-light); }
.age-gate .lang { border-color: rgba(239, 236, 228, .3); }

/* Pannello preferenze cookie (sito pubblico) */
.dialog { border: 0; border-radius: var(--r-lg); padding: var(--s-6); width: min(520px, calc(100% - 32px)); background: var(--c-surface); color: var(--c-text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.dialog::backdrop { background: rgba(15, 22, 18, .55); }
.dialog form { display: grid; gap: var(--s-3); }
.dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.cookie-dialog h2 { font-size: 1.5rem; margin: 0; }
.cookie-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.cookie-dialog__x { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; color: var(--c-muted); flex: none; }
.cookie-dialog__x svg { width: 20px; height: 20px; }
.consent-row { display: flex; justify-content: space-between; gap: var(--s-4); align-items: flex-start; padding: var(--s-3); border: 1px solid var(--c-border); border-radius: var(--r-md); cursor: pointer; }
.consent-row p { margin: 4px 0 0; }
.consent-row input { width: 20px; height: 20px; flex: none; accent-color: var(--c-primary); margin-top: 2px; }
.cookie-dialog__actions .btn { flex: 1 1 auto; }
@media (max-width: 480px) { .dialog { padding: var(--s-5) var(--s-4); } .cookie-dialog__actions { display: grid; } }

/* ==========================================================================
   Correzioni dai test multi-dispositivo (320–1920 px)
   ========================================================================== */
/* Le colonne delle griglie possono restringersi sotto la larghezza del contenuto */
.product > *, .contact-grid > *, .catalog > *, .split > * { min-width: 0; }
/* Pulsanti con testo lungo (numero di telefono, indicazioni): vanno a capo invece di allargare la pagina */
.cta-box .btn, .map__actions .btn, .filters__buttons .btn, .empty .btn { white-space: normal; text-align: center; }
/* Finestra 18+ più alta dello schermo: si scorre dall'inizio (logo e domanda sempre raggiungibili) */
.age-gate { display: flex; align-items: flex-start; justify-content: center; }
.age-gate__box { margin: auto 0; flex: 0 1 520px; min-width: 0; }
@media (max-width: 360px) {
  .age-gate { padding: var(--s-2); }
  .age-gate__box { padding: var(--s-4) var(--s-3); }
  .age-gate__title { font-size: 1.7rem; }
}
/* Target touch: link di navigazione con area cliccabile di almeno 32px */
.link-arrow { min-height: 32px; }
.legal__nav a { display: inline-flex; align-items: center; min-height: 36px; }
.lang__btn { min-height: 32px; }
/* Tabelle delle pagine legali: scorrono dentro il riquadro senza allargare la pagina */
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.legal__body table { min-width: 520px; }
/* Orari: le fasce orarie non vanno a capo; su schermi molto stretti carattere e margini ridotti */
.hours td { white-space: nowrap !important; }
@media (max-width: 380px) {
  .hours { font-size: .8rem; }
  .hours th, .hours td { padding-right: 4px; }
  .panel { padding: var(--s-4); }
}
