/* =====================================================================
   ARTETICO — foglio di stile pubblico
   Identità: Cinzel (titoli) + Inter (testi), palette crema/sabbia/bronzo.
   ===================================================================== */

:root {
  --bg: #f5f0ea;
  --bg-soft: #efe7df;
  --paper: #fbf8f4;
  --cream: #f8f3ee;
  --cream-2: #efe5db;
  --dark: #1e0f08;
  --dark-2: #2b1710;
  --text: #241813;
  --muted: #6e625c;
  --line: rgba(36, 24, 19, .12);
  --line-soft: rgba(36, 24, 19, .07);
  --accent: #b98459;
  --accent-2: #d8b08b;
  --accent-dark: #8a5b36;
  --accent-light: #f0c49f;
  --peach: #efb07c;
  --brown: #5a3420;
  --header-bg: rgba(210, 168, 113, .78);
  --header-bg-solid: rgba(210, 168, 113, .95);
  --footer-bg: #a88657;
  --white: #fff;
  --success: #2f7a4f;
  --danger: #b3261e;
  --warning: #a86a12;
  --info: #3d6b8c;
  --shadow: 0 20px 60px rgba(23, 14, 10, .12);
  --shadow-sm: 0 10px 30px rgba(23, 14, 10, .08);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;
  --max: 1380px;
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-main: 76px;
  --nav-h: 0px;
  --announce-h: 0px;
  --header-total: calc(var(--header-main) + var(--nav-h) + var(--announce-h));
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 768px) { :root { --header-main: 88px; } }
@media (min-width: 1200px) { :root { --header-main: 104px; } }
body.has-announcement { --announce-h: 36px; --header-total: calc(var(--header-main) + var(--nav-h) + var(--announce-h)); }
@media (min-width: 1200px) { body.has-desktop-nav { --nav-h: 46px; --header-total: calc(var(--header-main) + var(--nav-h) + var(--announce-h)); } }

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-total) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  padding-top: var(--header-total);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 132, 89, .08), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(185, 132, 89, .06), transparent 28%),
    linear-gradient(180deg, #faf6f1 0%, #f3ece5 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-2); color: var(--dark); }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-xs { width: 13px; height: 13px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 44px; height: 44px; }

.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: fixed; left: 16px; top: -60px; z-index: 2000; background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 12px; transition: top .2s; }
.skip-link:focus { top: 16px; color: #fff; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .02em; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------- */
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.container-wide { width: min(calc(100% - clamp(24px, 4vw, 64px)), 1560px); }
.container-narrow { width: min(calc(100% - 32px), 860px); }
.section { padding: 88px 0; position: relative; }
.section + .section { padding-top: 40px; }
.bg-paper { background: rgba(251, 248, 244, .75); }
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: linear-gradient(135deg, var(--dark-2), #3a2418); color: #fff; }
.bg-dark .lead, .bg-dark p { color: rgba(255, 255, 255, .8); }
.bg-dark .eyebrow { color: var(--accent-light); }
.bg-dark .eyebrow::before { background: var(--accent-light); }
.section.bg-paper, .section.bg-soft, .section.bg-dark { padding: 80px 0; }

/* ---------------------------------------------------------------------
   Tipografia
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow-light { color: #f5cfb0; }
.display { font-family: var(--font-display); font-weight: 600; line-height: .98; letter-spacing: -.02em; font-size: clamp(2.3rem, 5.4vw, 5.6rem); }
.title { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; font-size: clamp(1.9rem, 3.8vw, 3.8rem); color: var(--text); }
.title-sm { font-size: clamp(1.5rem, 2.6vw, 2.4rem); }
.lead { margin: 18px 0 0; max-width: 760px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.75; }
.section-head { margin-bottom: 42px; max-width: 900px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .8; }
.section-head.is-center .lead { margin-inline: auto; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head-row .section-head { margin-bottom: 0; }
.section-label { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0 0 18px; }
.rich { color: var(--text); line-height: 1.8; }
.rich > * + * { margin-top: 1em; }
.rich h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 1.6em; }
.rich h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-top: 1.4em; }
.rich h4 { font-size: 1.05rem; font-weight: 700; margin-top: 1.2em; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich li + li { margin-top: .35em; }
.rich a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: rgba(138, 91, 54, .35); text-underline-offset: 3px; }
.rich a:hover { text-decoration-color: currentColor; }
.rich blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.2rem; }
.rich img { max-width: 100%; height: auto; border-radius: 16px; }
.rich table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 8px; margin-inline: -8px; width: calc(100% + 16px); }
.rich td, .rich th { padding: 14px; vertical-align: top; overflow-wrap: anywhere; line-height: 1.5; background: rgba(255, 255, 255, .7); border: 1px solid var(--line-soft); border-radius: 16px; }
.rich th { text-align: left; font-weight: 700; }
.rich td > div:first-child:not(:only-child) { font-size: 1.2rem; }
.rich img { border-radius: var(--radius-sm); }
.rich table { width: 100%; border-collapse: collapse; }
.rich th, .rich td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.rich iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
.lead-rich { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.8; margin-top: 18px; max-width: 980px; }
.seo-text { color: var(--muted); }
.seo-text h2, .seo-text h3 { color: var(--text); }

/* ---------------------------------------------------------------------
   Pulsanti e link
   --------------------------------------------------------------------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btns.is-center { justify-content: center; }
.btn {
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 800; letter-spacing: .03em; line-height: 1.2; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s, color .3s, border-color .3s;
  cursor: pointer; white-space: nowrap; background: none;
}
.btn:hover { transform: translateY(-3px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 16px 35px rgba(138, 91, 54, .24); }
.btn-primary:hover { color: #fff; box-shadow: 0 20px 40px rgba(138, 91, 54, .32); }
.btn-secondary { background: rgba(255, 255, 255, .7); backdrop-filter: blur(12px); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: #fff; color: var(--text); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-ghost { color: var(--accent-dark); padding-inline: 14px; }
.btn-ghost:hover { background: rgba(185, 132, 89, .1); }
.btn-dark { background: var(--dark-2); color: #fff; }
.btn-dark:hover { background: var(--dark); color: #fff; }
.btn-whatsapp { background: #fff; color: #1f7a45; border-color: rgba(31, 122, 69, .25); }
.btn-whatsapp:hover { background: #effaf3; color: #1f7a45; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-header { min-height: 46px; padding: 0 20px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(43, 23, 16, .82); border-color: rgba(255, 255, 255, .14); }
.btn-header:hover { background: var(--dark-2); color: #fff; transform: translateY(-2px); }
.btn-card { width: 100%; min-height: 44px; font-size: 13px; background: var(--dark-2); color: #fff; }
.btn-card:hover { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; transform: none; }
.btn-card-outline { background: transparent; color: var(--dark-2); border-color: var(--line); }
.btn-card-outline:hover { background: var(--cream); color: var(--dark-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
.link-arrow .icon { transition: transform .25s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow.is-back:hover .icon { transform: translateX(-4px); }
.link-button { background: none; border: 0; padding: 0; color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.icon-link { background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 10px; }
.icon-link:hover { color: var(--danger); background: rgba(179, 38, 30, .07); }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list.is-center { justify-content: center; }
.chip-list.is-small .chip { padding: 7px 12px; font-size: 12.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text);
  transition: background .25s, border-color .25s, transform .25s;
}
.chip:hover, .chip.is-active { background: var(--cream-2); border-color: rgba(138, 91, 54, .35); color: var(--dark-2); transform: translateY(-1px); }
.chip.is-active { background: var(--dark-2); color: #fff; }
.chip small { color: var(--muted); font-weight: 500; }
.chip-remove { background: var(--cream-2); padding: 7px 12px; font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; background: rgba(255, 255, 255, .9); color: var(--dark-2); border: 1px solid var(--line-soft); }
.badge-sale { background: var(--dark-2); color: #fff; border-color: transparent; }
.badge-muted { background: #e9e4df; color: var(--muted); }
.badge-dark { background: rgba(43, 23, 16, .85); color: #fff; }
.badge-success { background: #e6f3eb; color: var(--success); }
.badge-info { background: #e8f0f6; color: var(--info); }
.badge-warning { background: #fbf0dc; color: var(--warning); }
.badge-danger { background: #fbe9e7; color: var(--danger); }
.badge-accent { background: #f7ead9; color: var(--accent-dark); }

.notice { margin: 20px 0; padding: 14px 18px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; border: 1px solid transparent; background: #fff; }
.notice-success { background: #edf7f0; border-color: #cfe7d8; color: #1f5c3a; }
.notice-error { background: #fdf0ee; border-color: #f2cfca; color: #8d2019; }
.notice-info { background: #f6f1eb; border-color: var(--cream-2); color: var(--brown); }
.notice-warning { background: #fdf6e8; border-color: #f1ddb2; color: #7a4f0d; }
.notice a { font-weight: 700; text-decoration: underline; }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.announcement { height: var(--announce-h); display: flex; align-items: center; justify-content: center; background: var(--dark); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; overflow: hidden; white-space: nowrap; }
.announcement a { color: #fff; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .35s, box-shadow .35s, top .3s;
  color: #fff;
}
.site-header.scrolled { background: var(--header-bg-solid); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.header-inner { height: var(--header-main); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; transition: height .3s var(--ease); }
.header-left, .header-right { display: flex; align-items: center; gap: 8px; }
.header-right { justify-content: flex-end; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  backdrop-filter: blur(10px); transition: background .28s, color .28s, transform .28s, border-color .28s; padding: 0 14px; position: relative;
}
.icon-btn:hover, .icon-btn:focus-visible { background: rgba(255, 244, 232, .92); color: var(--accent-dark); border-color: rgba(138, 91, 54, .34); transform: translateY(-2px); outline: none; }
.icon-btn .icon { width: 20px; height: 20px; }
.menu-trigger { width: auto; min-width: 112px; justify-content: flex-start; }
.menu-trigger-label { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.brand-center { display: flex; justify-content: center; }
.brand { display: flex; align-items: center; justify-content: center; }
.brand-logo { width: auto; height: calc(var(--header-main) - 22px); max-height: 84px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .14)); transition: height .3s var(--ease); }
.brand picture { display: contents; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  background: var(--dark-2); color: #fff; font-size: 11px; font-weight: 800; display: none; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .85);
}
.cart-count.has-items { display: inline-flex; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.main-nav { display: none; }
@media (min-width: 1200px) {
  .site-header.scrolled { --header-main: 80px; }
  .main-nav { display: block; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(43, 23, 16, .06); }
  .main-nav-list { list-style: none; height: var(--nav-h); display: flex; align-items: stretch; justify-content: center; gap: 6px; }
  .main-nav-item > a {
    height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 18px; color: #fff;
    font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; position: relative;
  }
  .main-nav-item > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .main-nav-item > a:hover::after, .main-nav-item > a[aria-current]::after, .main-nav-item:focus-within > a::after { transform: scaleX(1); }
  .main-nav-item > a:hover { color: #fff; }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%; background: rgba(251, 248, 244, .98); color: var(--text);
    box-shadow: 0 30px 60px rgba(23, 14, 10, .16); border-top: 1px solid var(--line-soft);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; transition-delay: .08s;
  }
  .has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
  .mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding: 36px 0 40px; }
  .mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 30px; }
  .mega-heading { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; color: var(--dark-2); }
  .mega-col ul { list-style: none; display: grid; gap: 4px; }
  .mega-col a:not(.mega-heading) { font-size: 14px; color: var(--muted); }
  .mega-col a:hover { color: var(--accent-dark); }
  .mega-aside { padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, #fff, var(--cream)); border: 1px solid var(--line-soft); align-self: start; }
  .mega-aside-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
  .mega-aside p { font-size: 14px; color: var(--muted); }
  .mega-aside .btn { margin-top: 8px; }
}
.icon-xs + * { margin-left: 0; }

.search-panel {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 12px); width: min(720px, calc(100% - 24px));
  background: rgba(18, 10, 7, .97); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); padding: 16px; z-index: 1001;
}
.search-form { display: flex; gap: 12px; }
.search-form input {
  flex: 1; min-width: 0; height: 54px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08); color: #fff; padding: 0 18px; outline: none; font-size: 15px;
}
.search-form input::placeholder { color: rgba(255, 255, 255, .6); }
.search-form input:focus { border-color: var(--accent-2); }
.search-form button { height: 54px; padding: 0 22px; border: 0; border-radius: 16px; background: #fff; color: var(--dark); font-weight: 800; }
.search-results { max-height: min(60vh, 520px); overflow: auto; }
.search-results:not(:empty) { margin-top: 12px; }
.search-group-title { color: var(--accent-light); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 14px 6px 8px; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; color: #fff; }
.search-item:hover, .search-item.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.search-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #f7f1ea; }
.search-item span { display: grid; gap: 2px; font-size: 14px; }
.search-item small { color: rgba(255, 255, 255, .6); font-size: 12px; }
.search-item strong { font-weight: 600; }
.search-all { display: block; margin-top: 10px; padding: 12px; text-align: center; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; font-size: 14px; }
.search-all:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.search-empty { color: rgba(255, 255, 255, .7); padding: 14px 8px; font-size: 14px; }

/* ---------------------------------------------------------------------
   Drawer, overlay
   --------------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .48); z-index: 1003; opacity: 0; transition: opacity .3s; }
.overlay.open { opacity: 1; }
.side-drawer {
  position: fixed; top: 0; width: min(430px, 100%); height: 100vh; height: 100dvh; background: #fff; z-index: 1004;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .24); display: flex; flex-direction: column; transition: transform .38s var(--ease); visibility: hidden;
}
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); }
.side-drawer.open { transform: none; visibility: visible; }
.drawer-header { height: 78px; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 18px; border-bottom: 1px solid rgba(36, 24, 19, .08); }
.drawer-title { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--dark); }
.drawer-close { width: 44px; height: 44px; border: 0; border-radius: 14px; background: #f2ece6; color: var(--dark); display: grid; place-items: center; }
.drawer-close:hover { background: var(--cream-2); }
.menu-drawer-content { padding: 18px; overflow: auto; flex: 1; }
.menu-section-title { margin: 18px 0 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-dark); }
.menu-section-title:first-child { margin-top: 0; }
.menu-accordion { display: flex; flex-direction: column; gap: 10px; }
.menu-accordion-item { border-radius: 22px; background: var(--cream); overflow: hidden; }
.menu-accordion-toggle {
  position: relative; display: block; width: 100%; text-align: left; border: 0; padding: 17px 52px 17px 16px; border-radius: 22px;
  font-size: 15px; font-weight: 700; color: var(--text); background: var(--cream); transition: background .25s;
}
.menu-accordion-toggle:not(.is-link)::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 21px; line-height: 1; color: var(--accent-dark); transition: transform .25s; }
.menu-accordion-toggle.is-link::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent-dark); }
.menu-accordion-toggle:hover { background: var(--cream-2); }
.menu-accordion-item.is-open .menu-accordion-toggle { background: var(--cream-2); border-radius: 22px 22px 0 0; }
.menu-accordion-item.is-open .menu-accordion-toggle::after { transform: translateY(-50%) rotate(45deg); }
.menu-submenu { padding: 0 12px 12px; background: var(--cream-2); }
.menu-submenu a { display: block; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); font-size: 14px; font-weight: 600; transition: background .25s, transform .25s; }
.menu-submenu a:hover { background: #fff; transform: translateX(3px); }
.menu-submenu .menu-submenu-all { background: var(--dark-2); color: #fff; text-align: center; font-weight: 700; }
.menu-submenu .menu-submenu-all:hover { background: var(--dark); color: #fff; }
.menu-submenu .menu-submenu-deep { margin-left: 16px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .4); }
.menu-links a { display: block; padding: 15px 14px; border-radius: 16px; font-size: 15px; font-weight: 700; background: var(--cream); margin-bottom: 10px; transition: background .25s, transform .25s; }
.menu-links a:hover { background: var(--cream-2); transform: translateX(3px); }
.menu-cta { margin-top: 16px; }
.menu-cta a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-weight: 800; padding: 0 18px; }
.menu-cta a:hover { color: #fff; }
.menu-contacts { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.menu-contacts a { display: flex; align-items: center; gap: 8px; }

.cart-drawer-body { flex: 1; overflow: auto; padding: 16px 18px; }
.cart-drawer-loading, .cart-drawer-empty { color: var(--muted); padding: 24px 4px; text-align: center; }
.cart-drawer-empty .btn { margin-top: 16px; }
.cart-drawer-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.cart-drawer-item img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: var(--cream); }
.cart-drawer-item .name { font-weight: 700; font-size: 14px; line-height: 1.35; }
.cart-drawer-item small { display: block; color: var(--muted); font-size: 12px; }
.cart-drawer-item .price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.cart-drawer-item .qty-stepper { margin-top: 8px; }
.cart-drawer-item .remove { display: block; margin-top: 6px; background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; text-decoration: underline; }
.cart-drawer-footer { padding: 16px 18px 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; background: var(--paper); }
.cart-drawer-row { display: flex; justify-content: space-between; font-size: 15px; }
.cart-drawer-row strong { font-size: 17px; }
.cart-drawer-discount { color: var(--accent-dark); }
.cart-drawer-note { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------------
   Hero slider
   --------------------------------------------------------------------- */
/* Dimensioni scelte nel pannello (menu Slider): classi hs-* e variabili --hs-* da HeroSlider::layout().
   Larghezza e altezza non superano mai lo schermo, quindi il layout resta responsive. */
.hero-slider-wrap { position: relative; width: 100%; }
.hs-bg-soft { background: var(--bg-soft); }
.hs-bg-dark { background: linear-gradient(180deg, #3a2c24 0%, #1f140f 100%); }
.hero-slider {
  position: relative; width: 100%; margin-inline: auto; overflow: hidden;
  /* tutto schermo: l'altezza visibile sotto l'header */
  height: calc(100vh - var(--header-total));
  height: calc(100svh - var(--header-total));
  min-height: 420px;
}
.hs-w-container .hero-slider { width: min(calc(100% - 32px), var(--max)); }
.hs-w-custom .hero-slider { width: min(100%, var(--hs-maxw)); }
/* automatica: il riquadro ha le proporzioni dell'immagine, che resta intera senza bande */
.hs-h-image .hero-slider { height: auto; min-height: 0; aspect-ratio: var(--hs-ar); }
.hs-h-image.hs-fit-screen .hero-slider {
  max-width: calc((100vh - var(--header-total)) * var(--hs-r));
  max-width: calc((100svh - var(--header-total)) * var(--hs-r));
}
.hs-h-custom .hero-slider {
  min-height: 200px;
  height: min(var(--hs-h), calc(100vh - var(--header-total)));
  height: min(var(--hs-h), calc(100svh - var(--header-total)));
}
.hero-track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; object-position: center; }
.hs-fit-contain .hero-slide img { object-fit: contain; }
.hs-focus-top .hero-slide img { object-position: center top; }
.hs-focus-bottom .hero-slide img { object-position: center bottom; }
.hero-caption { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 90px; background: linear-gradient(0deg, rgba(20, 12, 8, .55), transparent 55%); z-index: 2; }
.hero-copy { color: #fff; max-width: 760px; }
.hero-copy .eyebrow { color: var(--accent-light); }
.hero-copy .lead { color: rgba(255, 255, 255, .88); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18); transition: background .3s, transform .3s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .26); transform: translateY(-50%) scale(1.05); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 4; display: flex; justify-content: center; gap: 10px; }
.hero-dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .38); transition: background .3s, transform .3s; }
.hero-dot.active { background: #fff; transform: scale(1.25); }

/* Hero di pagina */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: 420px; padding: 120px 0 64px; overflow: hidden; background: linear-gradient(135deg, var(--dark-2), #4a2d1d); color: #fff; }
.page-hero.height-large { min-height: min(78vh, 720px); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 11, 7, .8) 0%, rgba(20, 11, 7, .35) 50%, rgba(20, 11, 7, .15) 100%); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-copy { max-width: 820px; }
.page-hero-copy .eyebrow { color: var(--accent-light); }
.page-hero-copy .lead { color: rgba(255, 255, 255, .88); }
.page-hero .breadcrumbs { position: absolute; top: -80px; }

.page-header { padding: 56px 0 32px; }
.page-header.is-compact { padding: 40px 0 16px; }
.page-title { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; font-size: clamp(2rem, 4.4vw, 4rem); }
.page-intro { margin-top: 18px; max-width: 820px; color: var(--muted); font-size: 1.06rem; line-height: 1.8; }
.page-header .chip-list { margin-top: 26px; }

.breadcrumbs { margin: 18px 0 22px; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.breadcrumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }
.breadcrumbs.is-light, .breadcrumbs.is-light [aria-current] { color: rgba(255, 255, 255, .85); }
.breadcrumbs.is-light a:hover { color: #fff; }

/* ---------------------------------------------------------------------
   Marquee promozionale
   --------------------------------------------------------------------- */
.marquee { display: flex; align-items: center; height: 42px; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .08); position: relative; z-index: 2; }
.marquee-dark { background: #000; color: #fff; }
.marquee-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; }
.marquee-light { background: var(--cream-2); color: var(--dark-2); }
a.marquee:hover { color: inherit; }
.marquee-track { display: flex; min-width: max-content; animation: marquee var(--marquee-duration, 20s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 80px; padding-right: 80px; }
.marquee-group span { white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   Card categorie che si girano (flip)
   --------------------------------------------------------------------- */
.section-categories { padding-top: 90px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1400px; align-items: start; }
.cat-card { --flip: 0deg; position: relative; display: flex; flex-direction: column; isolation: isolate; }
.cat-flip {
  position: relative; width: 100%; aspect-ratio: var(--card-ratio, .72); border-radius: 30px 30px 0 0; transform-style: preserve-3d;
  transform: rotateY(var(--flip)); transition: transform .95s var(--ease); box-shadow: var(--shadow);
  animation: cardFloat 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s);
}
.cat-card:hover, .cat-card.is-flipped, .cat-card:focus-within { --flip: 180deg; z-index: 2; }
.cat-card:hover .cat-flip, .cat-card.is-flipped .cat-flip, .cat-card:focus-within .cat-flip { animation-play-state: paused; }
@keyframes cardFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.cat-front, .cat-back { position: absolute; inset: 0; border-radius: 30px 30px 0 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cat-front { background: linear-gradient(180deg, #f7f1ea, #efe3d6); }
.cat-front picture, .cat-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-flip-hint { display: none; }
.cat-back { background: var(--peach); color: var(--dark-2); transform: rotateY(180deg); padding: 20px; display: flex; flex-direction: column; border: 1px solid rgba(43, 23, 16, .08); }
.cat-back-main-link { margin-bottom: 14px; }
.cat-back-main-link a {
  display: block; padding: 11px 12px; border-radius: 14px; background: var(--dark-2); color: #fff; font-size: 13px; font-weight: 700; text-align: center;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 20px rgba(43, 23, 16, .18); transition: background .25s, color .25s, box-shadow .25s;
}
.cat-back-main-link a:hover, .cat-back-main-link a:focus-visible { background: linear-gradient(135deg, #fff4e6, #ffd6ad); color: var(--dark-2); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18), 0 14px 28px rgba(185, 132, 89, .34); }
.cat-back-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; overflow: auto; }
.cat-back-list a {
  min-height: 44px; display: flex; align-items: center; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .34);
  font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 6px 16px rgba(43, 23, 16, .06); border: 1px solid transparent;
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.cat-back-list a:hover, .cat-back-list a:focus-visible { background: linear-gradient(135deg, #fff7ee, #ffe0be); border-color: rgba(255, 255, 255, .78); box-shadow: 0 0 0 3px rgba(255, 255, 255, .16), 0 12px 24px rgba(185, 132, 89, .26); color: var(--dark-2); }
.cat-back-text { font-size: 15px; line-height: 1.6; }
.cat-back-note { margin-top: auto; padding-top: 14px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); text-align: center; }
.cat-mobile-title {
  position: relative; z-index: 3; margin: 0; padding: 18px 20px; border-radius: 0 0 26px 26px; background: #fff;
  border: 1px solid rgba(36, 24, 19, .08); border-top: 0; box-shadow: 0 14px 30px rgba(43, 23, 16, .08);
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1.08; font-weight: 700; text-align: center; color: #111;
}
.cat-mobile-title a { display: block; }
@media (hover: none) {
  .cat-card:hover { --flip: 0deg; }
  .cat-card.is-flipped { --flip: 180deg; }
  .cat-flip-hint { display: grid; place-items: center; position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
}

/* ---------------------------------------------------------------------
   Editoriale 3D (Su misura)
   --------------------------------------------------------------------- */
/* griglia (non posizionamento assoluto): se il testo del pannello è lungo la sezione si allunga e non copre quella successiva */
.split { position: relative; display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 48fr); column-gap: 2%; align-items: center; min-height: 540px; max-width: 1060px; margin: 0 auto; padding: 18px 4%; perspective: 1800px; transform-style: preserve-3d; }
.split-media-stack { position: relative; height: 470px; transform-origin: right center; transform: perspective(1400px) rotateY(12deg) translateZ(-18px); transform-style: preserve-3d; }
.split-media {
  --x0: 12%; --y0: 20px; --z0: -150px; --s0: .88; --x1: -14%; --y1: -6px; --z1: -70px; --s1: .94; --o: .84;
  position: absolute; inset: 0; border-radius: 30px; overflow: hidden; opacity: var(--o);
  box-shadow: 0 28px 60px rgba(23, 14, 10, .24), 0 10px 26px rgba(23, 14, 10, .12);
  animation: splitDrift 9s ease-in-out infinite;
}
.split-media:nth-child(1) { --x0: 18%; --y0: 44px; --z0: -220px; --s0: .82; --x1: -8%; --y1: 24px; --z1: -120px; --s1: .88; --o: .72; animation-delay: 0s; }
.split-media:nth-child(2) { animation-delay: -3s; }
.split-media:nth-child(3) { --x0: 6%; --y0: -6px; --z0: -90px; --s0: .94; --x1: -20%; --y1: -26px; --z1: -10px; --s1: 1; --o: 1; animation-delay: -6s; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media picture { position: absolute; inset: 0; }
@keyframes splitDrift {
  0%, 12%, 100% { transform: translate3d(var(--x0), var(--y0), var(--z0)) scale(var(--s0)) rotateY(-10deg); opacity: 0; }
  18% { opacity: var(--o); }
  34%, 46% { transform: translate3d(var(--x1), var(--y1), var(--z1)) scale(var(--s1)) rotateY(-2deg); opacity: var(--o); }
  58% { opacity: .12; }
  70% { transform: translate3d(var(--x0), var(--y0), var(--z0)) scale(var(--s0)) rotateY(-10deg); opacity: 0; }
}
.split-media-stack:hover .split-media { animation-play-state: paused; }
.split-panel {
  position: relative; z-index: 3; padding: 34px 34px; border-radius: 30px;
  transform-origin: left center; transform: perspective(1400px) rotateY(-10deg) translateZ(18px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .74)); border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(10px); box-shadow: 0 30px 70px rgba(23, 14, 10, .16);
}
.split-panel .lead { font-size: 1.02rem; }
.split-ctas { margin-top: 26px; }
.split-media-stack.reveal.visible { animation: wingLeft 1.45s cubic-bezier(.22, .8, .18, 1) both; }
.split-panel.reveal.visible { animation: wingRight 1.45s cubic-bezier(.22, .8, .18, 1) both; }
@keyframes wingLeft { 0% { transform: perspective(1400px) rotateY(2deg) translate3d(14%, 0, 28px); opacity: 0; } 55% { transform: perspective(1400px) rotateY(16deg) translate3d(-2%, 0, -24px); opacity: 1; } 100% { transform: perspective(1400px) rotateY(12deg) translate3d(0, 0, -18px); opacity: 1; } }
@keyframes wingRight { 0% { transform: perspective(1400px) rotateY(-2deg) translate3d(-14%, 0, 28px); opacity: 0; } 55% { transform: perspective(1400px) rotateY(-14deg) translate3d(2%, 0, 26px); opacity: 1; } 100% { transform: perspective(1400px) rotateY(-10deg) translate3d(0, 0, 18px); opacity: 1; } }

/* ---------------------------------------------------------------------
   Blocchi di contenuto
   --------------------------------------------------------------------- */
.text-block.is-center { text-align: center; margin-inline: auto; }
.text-block.is-center .lead-rich { margin-inline: auto; }
.text-block .btns { margin-top: 26px; }
.text-block.is-center .btns { justify-content: center; }

.text-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.text-image.is-reversed .text-image-media { order: 2; }
.text-image-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--bg-soft); }
.text-image-media img { width: 100%; height: 100%; object-fit: cover; }
.text-image-copy .rich { margin-top: 18px; color: var(--muted); }

.about-story {
  display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 34px; align-items: stretch; padding: 30px; border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .7)); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.about-story-media { position: relative; overflow: hidden; border-radius: 28px; background: var(--bg-soft); }
.about-story-media img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.about-story-content { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 8px 6px; }
.about-story-title { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; font-size: clamp(2.2rem, 4.2vw, 4rem); }
.about-story-copy { color: var(--muted); font-size: 16px; line-height: 1.82; }

.stats-wrap { padding: 32px; border-radius: 30px; background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .56)); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .54); border: 1px solid rgba(36, 24, 19, .06); }
.stat-number { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1; margin-bottom: 10px; color: var(--dark-2); }
.stat-label { color: var(--muted); font-size: 14px; line-height: 1.6; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .72); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 12px 24px rgba(138, 91, 54, .22); }
.feature-icon .icon { width: 24px; height: 24px; }
.feature-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.bg-dark .feature { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }

.process-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: step; }
.process-step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.process-number { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--accent-2); margin-bottom: 14px; }
.process-step h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 14.5px; }

.testimonial { margin: 0; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.6; }
.testimonial figcaption { color: var(--muted); font-size: 14px; }
.stars { --rating: 0; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, #d69a4b calc(var(--rating) / 5 * 100%), #dcd2c8 calc(var(--rating) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }

.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 20px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line-soft); overflow: hidden; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent-dark); transition: transform .25s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--cream); }
.faq-answer { padding: 4px 22px 22px; color: var(--muted); }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--dark); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: var(--dark); color: #fff; cursor: pointer; }
.video-facade picture, .video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s; }
.video-facade:hover img { opacity: 1; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--accent-dark); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); transition: transform .3s; }
.video-play .icon { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
.video-note { position: absolute; left: 0; right: 0; bottom: 14px; font-size: 12px; color: rgba(255, 255, 255, .75); }

.cta-banner { position: relative; overflow: hidden; border-radius: 36px; padding: 64px 42px; color: #fff; background: linear-gradient(120deg, #2b1710, #4e301c); box-shadow: 0 25px 60px rgba(22, 10, 6, .22); }
.cta-banner-media { position: absolute; inset: 0; }
.cta-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(22, 10, 6, .86), rgba(78, 48, 28, .5)); }
.cta-banner-content { position: relative; z-index: 2; max-width: 860px; }
.cta-banner-title { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; font-size: clamp(1.9rem, 4vw, 3.8rem); color: #fff; }
.cta-banner .lead { color: rgba(255, 255, 255, .84); }

.custom-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 38px 40px; border-radius: 30px; background: linear-gradient(135deg, #fff, var(--cream)); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.custom-cta > div:first-child { max-width: 640px; }
.custom-cta p { color: var(--muted); margin-top: 10px; }
.custom-cta .btns { margin-top: 0; }

/* Galleria */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-grid.layout-mosaic { grid-auto-rows: 240px; }
.gallery-grid.layout-mosaic .gallery-item:first-child { grid-row: span 2; grid-column: span 2; }
.gallery-grid.layout-grid .gallery-item { aspect-ratio: 4 / 5; }
.gallery-item { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-sm); }
.gallery-item picture, .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--dark-2); opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; }

/* Carosello orizzontale */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 24px; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { scroll-snap-align: start; min-width: 0; }
.image-slide { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.image-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .testimonial { height: 100%; }
.section-testimonials .carousel-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
.section-slider .carousel-track { grid-auto-columns: calc((100% - 18px) / 2); }
.carousel-controls { display: flex; justify-content: flex-end; gap: 10px; }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); display: grid; place-items: center; transition: background .25s, transform .25s; }
.carousel-btn:hover { background: #fff; transform: translateY(-2px); }
.carousel-btn:disabled { opacity: .35; pointer-events: none; }

/* Progetti */
.project-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .8fr); grid-template-rows: 290px 290px; gap: 18px; }
.project-grid.count-1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: 460px; }
.project-grid.count-2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: 420px; }
.project-grid.count-3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: 240px 240px; }
.project-grid.count-4 { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .8fr); }
.project-grid.count-4 .project-card:nth-child(4) { grid-column: span 2; }
.project-card { position: relative; display: block; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); background: var(--bg-soft); }
.project-card:first-child { grid-row: span 2; }
.project-grid.count-1 .project-card:first-child, .project-grid.count-2 .project-card:first-child { grid-row: auto; }
.project-card picture, .project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease); }
.project-card:hover img { transform: scale(1.08); }
.project-label { position: absolute; left: 18px; bottom: 18px; right: 18px; width: fit-content; max-width: calc(100% - 36px); padding: 11px 16px; border-radius: 18px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); font-size: 14px; font-weight: 700; color: var(--text); }
.project-label small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }

.projects-list { display: grid; gap: 34px; }
.project-tile { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.project-tile:nth-child(even) .project-tile-media { order: 2; }
.project-tile-media { border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.project-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-tile:hover .project-tile-media img { transform: scale(1.05); }
.project-tile-body p { color: var(--muted); margin: 14px 0 18px; }
.project-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.project-meta { position: sticky; top: calc(var(--header-total) + 20px); padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.project-meta dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0 0 8px; font-size: 14px; }
.project-meta dt { color: var(--muted); }
.project-meta dd { margin: 0; font-weight: 700; }

/* Sottocategorie e hub */
.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.subcat-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 22px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.subcat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.subcat-media { width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: var(--cream-2); }
.subcat-media img, .subcat-media picture { width: 100%; height: 100%; object-fit: cover; }
.subcat-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; color: var(--accent-dark); }
.subcat-body { display: grid; gap: 2px; min-width: 0; }
.subcat-name { font-weight: 700; line-height: 1.3; }
.subcat-count { font-size: 12.5px; color: var(--muted); }
.subcat-arrow { color: var(--accent-dark); transition: transform .25s; }
.subcat-card:hover .subcat-arrow { transform: translateX(4px); }

.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hub-card { display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hub-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.hub-media img, .hub-media picture { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hub-card:hover .hub-media img { transform: scale(1.05); }
.hub-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hub-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.hub-body p { color: var(--muted); font-size: 14.5px; }
.hub-body .link-arrow { margin-top: auto; }

.category-hero { padding: 8px 0 30px; }
.category-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.category-hero:not(.has-image) .category-hero-grid { grid-template-columns: minmax(0, 1fr); }
.category-hero-media { border-radius: 34px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); background: var(--bg-soft); }
.category-hero-media img, .category-hero-media picture { width: 100%; height: 100%; object-fit: cover; }
.category-meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.category-meta a { color: var(--accent-dark); font-weight: 700; }
.section-subcats { padding-top: 20px; padding-bottom: 20px; }
.section-listing { padding-top: 40px; }

/* ---------------------------------------------------------------------
   Card prodotto
   --------------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.listing .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; border-radius: 26px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line-soft); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; height: 100%; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* foto prodotto sempre intere, mai ritagliate: formato verticale 2:3 come le foto del catalogo (1000×1500) */
.product-media { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: linear-gradient(180deg, #f7f1ea, #efe3d6); }
.product-media img, .product-media > picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease), opacity .45s; }
.product-media-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; }
.product-media-alt { background: linear-gradient(180deg, #f7f1ea, #efe3d6); }
.product-media-alt img, .product-media-alt picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-card:hover .product-media-alt { opacity: 1; }
.product-card:hover .product-media > picture img { transform: scale(1.04); }
.product-badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.product-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.product-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; line-height: 1.25; }
.product-name a:hover { color: var(--accent-dark); }
.product-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.price { font-weight: 800; font-size: 1.08rem; color: var(--dark-2); }
.price-muted { font-weight: 700; font-size: .95rem; color: var(--accent-dark); }
.product-price del, .product-price-big del { color: var(--muted); font-size: .9em; }
.rating-mini { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.product-actions { margin-top: auto; padding-top: 12px; }

/* ---------------------------------------------------------------------
   Listing, filtri, paginazione
   --------------------------------------------------------------------- */
.listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 34px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-total) + 18px); max-height: calc(100vh - var(--header-total) - 36px); overflow: auto; padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.filters-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.filters-title { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.filters-close { display: none; }
.filter-group { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.filter-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14.5px; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; color: var(--accent-dark); font-size: 18px; transition: transform .2s; }
.filter-group[open] summary::after { transform: rotate(45deg); }
.filter-options { list-style: none; display: grid; gap: 6px; margin-top: 12px; }
.filter-tree ul { list-style: none; margin: 6px 0 4px 22px; display: grid; gap: 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-dark); flex: 0 0 auto; }
.check span { flex: 1; }
.check small { color: var(--muted); font-size: 12px; }
.check-lg { font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.range-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.range-fields label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.range-fields input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 10px; }
.filters-actions { display: grid; gap: 8px; margin-top: 16px; }
.listing-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.filters-open { display: none; }
.listing-count { margin: 0; color: var(--muted); font-size: 14px; margin-right: auto; }
.sort-form { display: flex; gap: 8px; align-items: center; }
.sort-select select { height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5b36' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding: 0 40px 0 18px; appearance: none; font-weight: 600; font-size: 14px; }
.listing-results { transition: opacity .25s; }
.listing-results.is-loading { opacity: .45; pointer-events: none; }
.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.link-reset { font-size: 13px; font-weight: 700; color: var(--accent-dark); text-decoration: underline; }
.empty-state { text-align: center; padding: 60px 24px; border-radius: 30px; background: rgba(255, 255, 255, .7); border: 1px dashed var(--line); }
.empty-state .icon-lg { margin: 0 auto 14px; color: var(--accent); }
.empty-state h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 10px; }
.empty-state p { color: var(--muted); max-width: 520px; margin-inline: auto; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 42px; flex-wrap: wrap; }
.pagination ul { list-style: none; display: flex; gap: 6px; }
.page-link { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.page-link:hover { background: #fff; }
.page-link.is-current { background: var(--dark-2); color: #fff; border-color: var(--dark-2); }
.page-gap { display: inline-flex; align-items: center; height: 44px; color: var(--muted); }

/* ---------------------------------------------------------------------
   Scheda prodotto
   --------------------------------------------------------------------- */
.product-page { padding: 0 0 40px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 50px; align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-total) + 18px); display: grid; gap: 14px; }
.gallery-main { position: relative; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #f7f1ea, #efe3d6); box-shadow: var(--shadow); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; }
.gallery-zoom-area { display: block; width: 100%; height: 100%; cursor: zoom-in; overflow: hidden; }
.gallery-zoom-area img, .gallery-zoom-area picture { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease-out; }
.gallery-zoom-area.is-zooming img { transform: scale(2); }
/* galleria: nessun riquadro attorno, si vede solo la foto (con gli angoli arrotondati sulla foto stessa) */
.gallery-main { background: none; box-shadow: none; border-radius: 0; }
.gallery-zoom-area { display: flex; align-items: center; justify-content: center; }
.gallery-zoom-area picture { display: flex; align-items: center; justify-content: center; }
.gallery-zoom-area img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 26px; box-shadow: var(--shadow); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 2; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(43, 23, 16, .7); color: #fff; font-size: 12px; font-weight: 700; z-index: 2; }
.gallery-expand { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; z-index: 2; box-shadow: var(--shadow-sm); }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery-thumb { flex: 0 0 86px; height: 86px; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: var(--cream); opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumb img, .gallery-thumb picture { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active, .gallery-thumb:hover { opacity: 1; border-color: var(--accent); }
.product-summary { display: grid; gap: 18px; padding-top: 6px; }
/* colonna unica "sicura": il contenuto non può allargare la griglia oltre lo schermo */
.product-summary, .purchase-box, .cart-summary, .checkout-summary, .summary-lines, .checkout-main, .coupon-form { grid-template-columns: minmax(0, 1fr); }
.product-cats { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.product-cats a:hover { text-decoration: underline; }
.product-title { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; font-size: clamp(1.9rem, 3.2vw, 3rem); }
.product-price-big { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; }
.product-price-big .price { font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-family: var(--font-display); }
.product-price-big .price-muted { font-size: 1.5rem; }
.price-vat { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.price-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--cream); color: var(--brown); font-size: 13.5px; line-height: 1.55; }
.price-note .icon { margin-top: 2px; color: var(--accent-dark); }
.product-facts { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.product-facts li { display: flex; align-items: center; gap: 10px; }
.product-facts .icon { color: var(--accent-dark); }
.availability { font-weight: 700; }
.availability-disponibile, .availability-disponibile .icon { color: var(--success) !important; }
.availability-esaurito, .availability-non-disponibile { color: var(--danger); }
.product-short { color: var(--muted); }
.purchase-box { display: grid; gap: 12px; padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.add-to-cart-form { display: grid; gap: 12px; }
.purchase-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.custom-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.custom-note a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; }
.qty-stepper { display: inline-flex; align-items: center; height: 58px; border-radius: 999px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.qty-stepper button { width: 46px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--accent-dark); }
.qty-stepper button:hover { background: var(--cream); }
.qty-stepper input { width: 46px; height: 100%; border: 0; text-align: center; font-weight: 800; background: none; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper.is-small { height: 40px; }
.qty-stepper.is-small button { width: 34px; }
.qty-stepper.is-small input { width: 36px; font-size: 14px; }
.trust-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 20px; border-top: 1px solid #e8e1d8; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-icon { color: #a98255; flex: 0 0 auto; margin-top: 2px; }
.trust-list strong { display: block; font-size: 13px; font-weight: 700; color: #171717; line-height: 1.3; }
.trust-list small { display: block; font-size: 12.5px; color: #7a6048; line-height: 1.45; }
.product-codes { font-size: 12.5px; color: var(--muted); margin: 0; }
.product-codes span { color: var(--text); font-weight: 600; }
.tabs { border-radius: 30px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); padding: 10px 30px 30px; }
.tab-list { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; border: 0; background: none; padding: 16px 16px 14px; font-weight: 700; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--dark-2); border-color: var(--accent-dark); }
.tab-panel { padding-top: 26px; }
.tabs.is-enhanced .tab-panel[aria-hidden="true"] { display: none; }
.tabs.is-enhanced .tab-heading { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tab-heading { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 10px; margin: 20px 0 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--success); margin-top: 3px; width: 18px; height: 18px; }
.spec-table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; }
.spec-table tr:nth-child(odd) { background: rgba(248, 243, 238, .6); }
.info-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.info-columns h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.info-columns .icon { color: var(--accent-dark); }
.info-columns p, .info-columns .rich { color: var(--muted); font-size: 14.5px; }
.review-list { list-style: none; display: grid; gap: 16px; margin-bottom: 24px; }
.review { padding: 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line-soft); }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; margin-bottom: 8px; }
.review-head time { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.review h3 { font-size: 15.5px; margin-bottom: 6px; }
.review p { color: var(--muted); font-size: 14.5px; }
.review-reply { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 13.5px; }
.review-form-wrap summary { list-style: none; display: inline-flex; }
.review-form-wrap summary::-webkit-details-marker { display: none; }
.review-form { margin-top: 18px; }
.star-input { border: 0; padding: 0; margin: 0 0 16px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input legend { width: 100%; font-weight: 700; font-size: 14px; margin-bottom: 8px; float: left; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { color: #dcd2c8; cursor: pointer; }
.star-input label .icon { width: 30px; height: 30px; fill: currentColor; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #d69a4b; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent-dark); border-radius: 6px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .08); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy-inner { display: flex; align-items: center; gap: 14px; }
.sticky-buy-info { flex: 1; min-width: 0; display: grid; }
.sticky-buy-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.sticky-buy-info span { font-weight: 800; color: var(--dark-2); }

/* ---------------------------------------------------------------------
   Form
   --------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font-size: 15px; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5b36' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(185, 132, 89, .15); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; background: #fffafa !important; }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 12px; }
.field-check label { font-weight: 500; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.field-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-dark); flex: 0 0 auto; }
.field-check a { color: var(--accent-dark); text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-feedback:empty { display: none; }
.form-feedback { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 600; }
.form-feedback.is-success { background: #edf7f0; color: #1f5c3a; }
.form-feedback.is-error { background: #fdf0ee; color: #8d2019; }
.form-product { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 14px; }
.form-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; padding: 44px; border-radius: 34px; background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .76)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-panel.is-plain { display: block; padding: 34px; }
.form-panel.is-plain .title { margin-bottom: 20px; }
.form-panel-intro .lead { font-size: 1rem; }
.contact-quick { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.contact-quick a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--accent-dark); }
.option-list { display: grid; gap: 10px; }
.option-card { position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.option-card:hover { border-color: rgba(138, 91, 54, .4); }
.option-card:has(input:checked) { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(185, 132, 89, .15); background: #fffcf8; }
.option-card input { width: 18px; height: 18px; accent-color: var(--accent-dark); margin: 0; }
.option-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--accent-dark); }
.option-body { display: grid; gap: 2px; }
.option-body small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.option-price { font-weight: 800; white-space: nowrap; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream-2); margin-bottom: 16px; flex-wrap: wrap; }
.segmented label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; }
.segmented label:has(input:checked) { background: #fff; box-shadow: var(--shadow-sm); }
.segmented input { accent-color: var(--accent-dark); }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line); padding: 0 16px; background: #fff; }
.secure-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.secure-note .icon { color: var(--success); margin-top: 2px; }

/* ---------------------------------------------------------------------
   Carrello, checkout, conferma
   --------------------------------------------------------------------- */
.checkout-steps { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; counter-reset: s; }
.checkout-steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.checkout-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); font-size: 12px; }
.checkout-steps .is-current { background: var(--dark-2); color: #fff; }
.checkout-steps .is-current::before { background: rgba(255, 255, 255, .2); }
.checkout-steps .is-done::before { content: "✓"; background: var(--success); color: #fff; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: start; }
.cart-table { width: 100%; border-collapse: separate; border-spacing: 0; background: rgba(255, 255, 255, .85); border-radius: 26px; overflow: hidden; border: 1px solid var(--line-soft); }
.cart-table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 18px; background: var(--paper); }
.cart-table td { padding: 16px 18px; border-top: 1px solid var(--line-soft); vertical-align: middle; font-size: 14.5px; }
.cart-product { display: flex; gap: 14px; align-items: center; }
.cart-thumb { width: 84px; height: 84px; flex: 0 0 auto; border-radius: 16px; overflow: hidden; background: var(--cream); }
.cart-thumb img, .cart-thumb picture { width: 100%; height: 100%; object-fit: contain; }
.cart-name { font-weight: 700; display: block; }
.cart-product small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; flex-wrap: wrap; }
.cart-summary, .checkout-summary { position: sticky; top: calc(var(--header-total) + 18px); padding: 26px; border-radius: 28px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow); display: grid; gap: 16px; }
.summary-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.coupon-form { display: grid; gap: 8px; font-size: 14px; }
.coupon-form label { font-weight: 700; }
.coupon-applied { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 10px 12px; border-radius: 12px; background: #f7ead9; font-size: 13.5px; }
.summary-rows { margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.summary-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.summary-rows dt small { display: block; color: var(--muted); font-size: 12px; }
.summary-rows dd { margin: 0; font-weight: 700; white-space: nowrap; }
.summary-rows .is-discount dd { color: var(--accent-dark); }
.summary-rows .is-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; }
.summary-rows .is-total dd { font-family: var(--font-display); font-size: 1.4rem; }
.summary-rows .is-vat { color: var(--muted); font-size: 13px; }
.summary-rows .is-vat dd { font-weight: 500; }
.summary-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--brown); background: var(--cream); padding: 10px 12px; border-radius: 12px; margin: 0; }
.summary-trust { list-style: none; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.summary-trust li { display: flex; gap: 8px; align-items: center; }
.summary-lines { list-style: none; display: grid; gap: 14px; }
.summary-lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.summary-thumb { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: visible; background: var(--cream); }
.summary-thumb img, .summary-thumb picture { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; background: var(--cream); }
.summary-qty { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--dark-2); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.summary-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.summary-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.summary-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 34px; align-items: start; }
.checkout-aside { align-self: stretch; }
.checkout-main { display: grid; gap: 20px; }
.checkout-block { margin: 0; padding: 28px; border-radius: 28px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .86); box-shadow: var(--shadow-sm); display: grid; gap: 14px; min-width: 0; }
.checkout-block legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; padding: 0; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--dark-2); color: #fff; font-family: var(--font-body); font-size: 14px; }
/* numerazione automatica dei passaggi: i blocchi nascosti (es. questionario con ritiro in sede) non contano */
.checkout-main { counter-reset: checkout-step; }
.checkout-block:not([hidden]) { counter-increment: checkout-step; }
.checkout-block .step-num:empty::before { content: counter(checkout-step); }

/* Questionario consegna e montaggio */
.questionnaire-intro { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.q-section { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.q-section-title { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.q-section-desc { margin: -6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.q-field { gap: 8px; }
.q-label { font-size: 14px; font-weight: 700; color: var(--text); }
.q-choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.q-choice legend { padding: 0; margin-bottom: 10px; float: none; width: auto; }
.q-options { display: flex; flex-wrap: wrap; gap: 8px; }
.q-option { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; line-height: 1.3; transition: border-color .2s, box-shadow .2s, background .2s; }
.q-option:hover { border-color: rgba(138, 91, 54, .4); }
.q-option:has(input:checked) { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(185, 132, 89, .15); background: #fffcf8; }
.q-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-dark); flex: 0 0 auto; }
.q-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.q-photo { position: relative; width: 92px; height: 92px; margin: 0; border-radius: 14px; overflow: hidden; background: var(--cream); border: 1px solid var(--line-soft); }
.q-photo img { width: 100%; height: 100%; object-fit: cover; }
.q-photo.is-uploading { opacity: .55; }
.q-photo.is-uploading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .8); border-top-color: var(--accent-dark); animation: q-spin .8s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }
.q-photo-remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(43, 23, 16, .78); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.q-photo-add { position: relative; width: 92px; height: 92px; border-radius: 14px; border: 1.5px dashed rgba(138, 91, 54, .45); display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent-dark); cursor: pointer; background: #fffcf8; padding: 8px; }
.q-photo-add span { display: grid; gap: 4px; justify-items: center; }
.q-photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.q-photo-add[hidden] { display: none; }
.q-info { padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 14px; }
.q-confirm { padding-top: 16px; border-top: 1px solid var(--line-soft); font-weight: 600; }
.questionnaire-thanks { display: flex; gap: 12px; align-items: flex-start; }
.questionnaire-thanks .icon { flex: 0 0 auto; margin-top: 3px; }
.q-field[aria-invalid="true"] .q-option, .q-field.has-error .q-option { border-color: var(--danger); }
.checkout-login { margin: 0; font-size: 14px; color: var(--muted); }
.checkout-login a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; }
.checkout-subtitle { font-size: 15px; font-weight: 800; margin-top: 10px; }
.checkout-summary .link-arrow { justify-self: start; }
.section-thanks { padding-top: 40px; }
.thanks-card { text-align: center; padding: 44px 30px; border-radius: 34px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow); margin-bottom: 26px; }
.thanks-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--cream); color: var(--accent-dark); }
.thanks-icon .icon { width: 38px; height: 38px; }
.thanks-icon.is-success { background: #e6f3eb; color: var(--success); }
.thanks-card .title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.thanks-card .lead { margin-inline: auto; }
.thanks-card form { display: inline; }
.bank-box { margin: 24px auto 0; max-width: 560px; text-align: left; padding: 22px 24px; border-radius: 20px; background: var(--cream); }
.bank-box dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0 0 10px; font-size: 14.5px; }
.bank-box dt { color: var(--muted); }
.bank-box dd { margin: 0; }
.order-detail { display: grid; gap: 22px; margin-bottom: 30px; }
.order-timeline { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line-soft); }
.order-timeline li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.order-timeline li span { width: 16px; height: 16px; border-radius: 50%; background: var(--cream-2); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); position: relative; z-index: 1; }
.order-timeline li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--cream-2); }
.order-timeline li:first-child::before { display: none; }
.order-timeline li.is-done { color: var(--dark-2); }
.order-timeline li.is-done span, .order-timeline li.is-done::before { background: var(--accent); }
.order-timeline li.is-current span { box-shadow: 0 0 0 4px rgba(185, 132, 89, .25); }
.tracking-box { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: #e8f0f6; color: #23445c; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.order-items { padding: 24px; border-radius: 26px; background: #fff; border: 1px solid var(--line-soft); display: grid; gap: 16px; }
.order-info { display: grid; gap: 14px; }
.info-card { padding: 20px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line-soft); font-size: 14.5px; }
.info-card h3 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.info-card p { margin: 0; line-height: 1.65; }

/* Account */
.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-total) + 18px); display: grid; gap: 6px; padding: 14px; border-radius: 24px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 14.5px; background: none; border: 0; width: 100%; text-align: left; color: var(--text); }
.account-nav a:hover, .account-nav button:hover { background: var(--cream); }
.account-nav a.is-active { background: var(--dark-2); color: #fff; }
.account-main { display: grid; gap: 22px; min-width: 0; }
.account-welcome p { color: var(--muted); margin-top: 8px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line-soft); display: grid; gap: 4px; }
.stat-card span { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--dark-2); }
.stat-card small { color: var(--muted); font-size: 13px; }
.stat-card.is-link:hover { border-color: var(--accent); }
.table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line-soft); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th { text-align: left; padding: 14px 16px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.data-table td { padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.card-actions form { display: inline; }
.narrow-card { max-width: 520px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; max-width: 1000px; margin: 0 auto; }
.auth-card { padding: 38px; border-radius: 30px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; }
.auth-card.is-soft { background: linear-gradient(135deg, var(--cream), #fff); box-shadow: none; }
.auth-card .title { margin-bottom: 6px; }
.auth-links { text-align: center; font-size: 14px; margin: 0; }
.auth-links a { color: var(--accent-dark); font-weight: 700; }

/* Contatti */
.contact-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 30px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
a.contact-card:hover { transform: translateY(-3px); color: var(--text); }
.contact-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; flex: 0 0 auto; }
.contact-card small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact-card strong { font-size: 15.5px; }
.map-frame { margin-top: 30px; border-radius: 30px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--cream-2); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-facade { width: 100%; height: 100%; border: 0; background: linear-gradient(135deg, var(--cream), var(--cream-2)); display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--accent-dark); font-weight: 800; }
.map-facade small { font-weight: 500; color: var(--muted); }
.social-list { list-style: none; display: flex; gap: 10px; margin-top: 18px; }
.social-list a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; transition: background .25s; }
.social-list a:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.social-list.is-dark a { background: var(--dark-2); }

.search-page-form { display: flex; gap: 10px; margin-top: 22px; max-width: 640px; }
.search-page-form input { flex: 1; min-width: 0; height: 54px; border-radius: 999px; border: 1px solid var(--line); padding: 0 22px; background: #fff; font-size: 15px; }
.search-page-form .btn { min-height: 54px; }
.search-cats { margin-bottom: 34px; }
.section-search .section-label { margin-top: 10px; }
.section-search .product-grid, .section-search .project-grid { margin-bottom: 40px; }

.error-card { text-align: center; padding: 50px 30px; border-radius: 34px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line-soft); box-shadow: var(--shadow); display: grid; gap: 18px; justify-items: center; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 7rem); line-height: 1; color: var(--accent-2); }
.error-card .search-page-form { width: 100%; justify-content: center; }
.debug { text-align: left; white-space: pre-wrap; font-size: 12px; background: #1e0f08; color: #f5e6d6; padding: 18px; border-radius: 14px; max-height: 50vh; overflow: auto; width: 100%; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { position: relative; margin-top: 80px; background: var(--footer-bg); color: #fff; overflow: hidden; }
.site-footer a { color: rgba(255, 255, 255, .86); }
.site-footer a:hover { color: #fff; }
.footer-top { padding: 70px 0 30px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, .9fr); gap: 30px; }
.footer-brand { max-width: 420px; }
.footer-logo .brand-logo { height: 84px; }
.footer-brand p { color: rgba(255, 255, 255, .8); line-height: 1.8; font-size: 14px; margin-top: 16px; }
.footer-heading { margin: 0 0 18px; font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fce0c6; }
.footer-col ul { list-style: none; }
.footer-col li { font-size: 14px; line-height: 2; color: rgba(255, 255, 255, .86); }
.footer-contacts li { display: flex; align-items: center; gap: 8px; }
.footer-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(43, 23, 16, .35); font-weight: 700; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal .link-button { color: rgba(255, 255, 255, .86); font-weight: 500; text-decoration: none; font-size: 13px; }
.footer-company { margin: 0; color: rgba(255, 255, 255, .75); }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .75); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }

/* ---------------------------------------------------------------------
   Elementi flottanti
   --------------------------------------------------------------------- */
.whatsapp-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 950; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px rgba(37, 211, 102, .35); transition: transform .3s var(--ease); }
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.whatsapp-float .icon { width: 30px; height: 30px; }
body.page-product .whatsapp-float { bottom: calc(90px + env(safe-area-inset-bottom)); }
.back-to-top { position: fixed; right: 20px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 940; width: 48px; height: 48px; border-radius: 14px; border: 0; display: grid; place-items: center; background: var(--accent-dark); color: #fff; box-shadow: var(--shadow-sm); }
body.page-product .back-to-top { bottom: calc(158px + env(safe-area-inset-bottom)); }
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3000; display: grid; gap: 10px; width: min(460px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--dark-2); color: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); font-size: 14.5px; animation: toastIn .35s var(--ease); }
.toast.is-error { background: #8d2019; }
.toast a { color: var(--accent-light); font-weight: 700; margin-left: auto; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
.lightbox { position: fixed; inset: 0; z-index: 2500; background: rgba(15, 8, 5, .94); display: grid; place-items: center; padding: 60px 70px; }
.lightbox-stage { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox-stage img { max-width: min(1400px, 100%); max-height: calc(100vh - 150px); object-fit: contain; border-radius: 12px; }
.lightbox-stage figcaption { color: rgba(255, 255, 255, .8); font-size: 14px; text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 13px; margin: 0; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2600; display: flex; justify-content: center; }
.cookie-inner { width: min(860px, 100%); display: flex; align-items: center; gap: 20px; padding: 18px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(23, 14, 10, .2); font-size: 14px; }
.cookie-inner p { margin: 0; color: var(--muted); }
.cookie-inner a { color: var(--accent-dark); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* ---------------------------------------------------------------------
   Animazioni di comparsa
   --------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .split-media-stack.reveal, .js .split-panel.reveal { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .cat-flip, .split-media { animation: none !important; }
  .split-media { opacity: 1; }
  .marquee-track { animation: none; }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carousel-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
}
@media (max-width: 1200px) {
  .hide-tablet { display: none !important; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-story { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-story-media img { min-height: 420px; max-height: 560px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
  .listing .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-layout, .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-height: 0; padding: 0; }
  .split-media-stack, .split-panel { position: relative; inset: auto; width: auto; transform: none !important; }
  .split-media-stack { height: auto; }
  .split-media { position: relative; aspect-ratio: 4 / 3; animation: none; opacity: 1; transform: none; }
  .split-media:not(:last-child) { display: none; }
  .split-media-stack.reveal.visible, .split-panel.reveal.visible { animation: none; }
  .project-grid, .project-grid.count-3, .project-grid.count-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 280px; grid-auto-rows: 240px; }
  .project-card:first-child { grid-row: auto; grid-column: span 2; }
  .project-grid.count-4 .project-card:nth-child(4) { grid-column: auto; }
  .text-image { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .text-image.is-reversed .text-image-media { order: 0; }
  .text-image-media { aspect-ratio: 16 / 10; }
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product-gallery { position: static; }
  .info-columns { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .form-panel { grid-template-columns: minmax(0, 1fr); padding: 32px; gap: 26px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .category-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .category-hero-media { aspect-ratio: 16 / 9; order: -1; }
  .project-detail { grid-template-columns: minmax(0, 1fr); }
  .project-meta { position: static; }
  .project-tile { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .project-tile:nth-child(even) .project-tile-media { order: 0; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary, .checkout-summary { position: static; }
  .checkout-aside { order: -1; }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-nav { position: static; display: flex; overflow-x: auto; padding: 8px; }
  .account-nav a, .account-nav button { white-space: nowrap; width: auto; }
  .account-nav form { display: contents; }
  /* filtri come drawer */
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0 auto 0 0; top: 0; width: min(380px, 92vw); max-height: none; height: 100dvh; z-index: 1005; border-radius: 0 26px 26px 0; transform: translateX(-105%); transition: transform .35s var(--ease); background: #fff; }
  .filters.is-open { transform: none; }
  .filters-close { display: grid; }
  .filters-open { display: inline-flex; }
  .listing .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .product-grid, .listing .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .carousel-track { grid-auto-columns: calc((100% - 18px) / 2.2); }
  .section-testimonials .carousel-track { grid-auto-columns: 85%; }
  .section-slider .carousel-track { grid-auto-columns: 85%; }
  .auth-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .q-options { display: grid; }
  .q-option { width: 100%; }
  .btn-block, .purchase-box .btn, .checkout-summary .btn, .cart-summary .btn { white-space: normal; }
  .hide-mobile { display: none !important; }
  .section { padding: 60px 0; }
  .section + .section { padding-top: 24px; }
  .container, .container-narrow { width: min(calc(100% - 24px), var(--max)); }
  .header-inner { gap: 6px; }
  .header-left, .header-right { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; border-radius: 11px; padding: 0 10px; }
  .icon-btn .icon { width: 18px; height: 18px; }
  .menu-trigger { min-width: 0; }
  .menu-trigger-label { font-size: 11px; }
  .brand-logo { height: 58px; }
  .hs-h-screen .hero-slider { min-height: 360px; }
  .hs-w-container .hero-slider { width: calc(100% - 24px); }
  /* smartphone: proporzioni e altezza dell'immagine verticale */
  .hs-h-image .hero-slider { aspect-ratio: var(--hs-ar-m); }
  .hs-h-image.hs-fit-screen .hero-slider {
    max-width: calc((100vh - var(--header-total)) * var(--hs-r-m));
    max-width: calc((100svh - var(--header-total)) * var(--hs-r-m));
  }
  .hs-h-custom .hero-slider {
    height: min(var(--hs-h-m), calc(100vh - var(--header-total)));
    height: min(var(--hs-h-m), calc(100svh - var(--header-total)));
  }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .hero-caption { padding-bottom: 70px; }
  .marquee { height: 38px; }
  .marquee-group { gap: 50px; padding-right: 50px; }
  .marquee-group span { font-size: 12px; }
  .category-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
  .cat-card { width: min(100%, 340px); }
  .cat-flip { animation: none; border-radius: 24px 24px 0 0; }
  .cat-front, .cat-back { border-radius: 24px 24px 0 0; }
  .cat-back { padding: 16px; }
  .cat-back-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .cat-back-list a { font-size: 12px; min-height: 38px; padding: 8px 12px; }
  .cat-mobile-title { font-size: 1.15rem; padding: 13px 14px; border-radius: 0 0 22px 22px; }
  .split-panel { padding: 26px 22px; }
  .split-ctas { flex-direction: column; }
  .split-ctas .btn { width: 100%; }
  .stats-grid, .stats-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .stats-wrap { padding: 18px; }
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .about-story { padding: 16px; border-radius: 26px; }
  .about-story-media img { min-height: 300px; }
  .cta-banner { padding: 42px 22px; border-radius: 28px; }
  .custom-cta { padding: 28px 22px; }
  .custom-cta .btns { width: 100%; }
  .custom-cta .btn { flex: 1 1 100%; }
  .project-grid, .project-grid.count-2, .project-grid.count-3, .project-grid.count-4 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 240px; }
  .project-card:first-child { grid-column: auto; }
  .gallery-grid, .gallery-grid.cols-3, .gallery-grid.cols-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gallery-grid.layout-mosaic { grid-auto-rows: 160px; }
  .hub-grid { grid-template-columns: minmax(0, 1fr); }
  .product-grid, .listing .product-grid { gap: 12px; }
  .product-body { padding: 12px 12px 14px; }
  .product-name { font-size: .98rem; }
  .product-cat { font-size: 10.5px; }
  .btn-card { font-size: 12px; min-height: 40px; padding: 0 10px; }
  .btn-card .icon { display: none; }
  .carousel-track { grid-auto-columns: 72%; }
  .carousel-controls { display: none; }
  .page-hero { min-height: 360px; padding: 90px 0 44px; }
  .page-hero .breadcrumbs { top: -60px; }
  .page-header { padding: 34px 0 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-panel { padding: 22px; border-radius: 26px; }
  .checkout-block { padding: 20px; border-radius: 22px; }
  .option-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .option-card .option-icon { display: none; }
  .purchase-row { grid-template-columns: minmax(0, 1fr); }
  .purchase-row .qty-stepper { justify-self: start; }
  .trust-list { grid-template-columns: minmax(0, 1fr); }
  .tabs { padding: 6px 16px 20px; border-radius: 22px; }
  .gallery-thumb { flex-basis: 64px; height: 64px; }
  .gallery-track { aspect-ratio: 2 / 3; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { position: relative; padding: 14px; border-top: 1px solid var(--line-soft); }
  .cart-table td { border: 0; padding: 4px 0; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
  .cart-table td:last-child { position: absolute; top: 10px; right: 8px; width: auto; }
  .order-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .order-timeline li:nth-child(4)::before { display: none; }
  .data-table thead { display: none; }
  .data-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; border-top: 1px solid var(--line-soft); gap: 6px; }
  .data-table td { border: 0; padding: 2px 4px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); padding-top: 50px; }
  .footer-bottom { flex-direction: column; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  .search-panel { width: calc(100% - 16px); border-radius: 18px; padding: 12px; }
  .search-form { flex-direction: column; }
  .search-form button { width: 100%; }
  .search-page-form { flex-direction: column; }
  .lightbox { padding: 60px 10px; }
  .lightbox-nav { top: auto; bottom: 14px; transform: none; }
  .whatsapp-float { width: 52px; height: 52px; right: 14px; }
  .back-to-top { right: 16px; }
  .stat-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .rich table, .rich tbody, .rich tr, .rich td, .rich th { display: block; width: 100%; margin-inline: 0; }
  .rich td + td, .rich tr + tr { margin-top: 8px; }
  .menu-trigger-label { display: none; }
  .brand-logo { height: 52px; }
  .product-grid, .listing .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .sticky-buy { display: none; }
}
@media print {
  .site-header, .site-footer, .whatsapp-float, .back-to-top, .cookie-banner, .side-drawer, .overlay, .sticky-buy { display: none !important; }
  body { padding-top: 0; background: #fff; }
}
