/* =====================================================================
   Tema "Classico" — foglio di stile del sito pubblico
   Colori, font e angoli arrivano dal pannello (Aspetto) come variabili --c-*, --font-*, --radius*
   stampate dal layout (Branding::headTags). Qui sotto ci sono solo i valori di riserva e le
   tonalità ricavate automaticamente da quei pochi colori: cambiando il colore principale nel
   pannello cambia tutta la palette.
   ===================================================================== */

:root {
  /* valori di riserva (sovrascritti dal pannello) */
  --c-accent: #1f7a6d;
  --c-dark: #16232b;
  --c-text: #1d2529;
  --c-bg: #f6f5f2;
  --c-header: #ffffff;
  --c-footer: #16232b;
  --on-accent: #fff;
  --on-dark: #fff;
  --header-fg: #14181b;
  --footer-fg: #fff;

  /* palette ricavata */
  --bg: var(--c-bg);
  --bg-soft: color-mix(in srgb, var(--c-bg) 92%, var(--c-dark));
  --paper: color-mix(in srgb, var(--c-bg) 35%, #fff);
  --cream: color-mix(in srgb, var(--c-bg) 70%, #fff);
  --cream-2: color-mix(in srgb, var(--c-bg) 86%, var(--c-dark));
  --dark: var(--c-dark);
  --dark-2: color-mix(in srgb, var(--c-dark) 88%, #fff);
  --text: var(--c-text);
  --muted: color-mix(in srgb, var(--c-text) 64%, var(--c-bg));
  --line: color-mix(in srgb, var(--c-text) 12%, transparent);
  --line-soft: color-mix(in srgb, var(--c-text) 7%, transparent);
  --accent: var(--c-accent);
  --accent-2: color-mix(in srgb, var(--c-accent) 62%, #fff);
  --accent-dark: color-mix(in srgb, var(--c-accent) 74%, #000);
  --accent-light: color-mix(in srgb, var(--c-accent) 40%, #fff);
  --peach: color-mix(in srgb, var(--c-accent) 55%, #fff);
  --brown: color-mix(in srgb, var(--c-accent) 45%, var(--c-dark));
  --header-bg: color-mix(in srgb, var(--c-header) 84%, transparent);
  --header-bg-solid: color-mix(in srgb, var(--c-header) 97%, transparent);
  --footer-bg: var(--c-footer);
  --white: #fff;
  --success: #2f7a4f;
  --danger: #b3261e;
  --warning: #a86a12;
  --info: #3d6b8c;
  --shadow: 0 20px 60px rgba(15, 18, 20, .12);
  --shadow-sm: 0 10px 30px rgba(15, 18, 20, .08);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;
  --max: 1380px;
  --font-display: 'Playfair Display', 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, color-mix(in srgb, var(--accent) 8%, transparent), transparent 30%),
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 28%),
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 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: color-mix(in srgb, var(--paper) 75%, transparent); }
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: linear-gradient(135deg, var(--dark-2), var(--dark)); 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: var(--accent-light); }
.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: color-mix(in srgb, var(--accent-dark) 35%, transparent); 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: var(--on-accent); box-shadow: 0 16px 35px color-mix(in srgb, var(--accent-dark) 24%, transparent); }
.btn-primary:hover { color: var(--on-accent); box-shadow: 0 20px 40px color-mix(in srgb, var(--accent-dark) 32%, transparent); }
.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: color-mix(in srgb, var(--accent) 10%, transparent); }
.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: color-mix(in srgb, var(--dark-2) 82%, transparent); 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: var(--on-accent); 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: color-mix(in srgb, var(--accent-dark) 35%, transparent); 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: color-mix(in srgb, var(--dark-2) 85%, transparent); 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: color-mix(in srgb, var(--accent) 14%, #fff); 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: var(--cream); 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: var(--header-fg);
}
.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 color-mix(in srgb, var(--header-fg) 16%, transparent);
  background: color-mix(in srgb, var(--header-fg) 10%, transparent); color: var(--header-fg); 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: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--accent-dark); border-color: color-mix(in srgb, var(--accent-dark) 34%, transparent); 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; }
/* logo testuale (finché non viene caricato un logo dal pannello) */
.brand-text { display: inline-block; max-width: min(46vw, 360px); font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.1; letter-spacing: .02em; color: var(--header-fg); text-align: center; overflow-wrap: anywhere; }
.site-footer .brand-text { color: var(--footer-fg); font-size: 1.6rem; text-align: left; max-width: none; }
.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 color-mix(in srgb, var(--header-fg) 18%, transparent); background: color-mix(in srgb, var(--dark-2) 6%, transparent); }
  .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: var(--header-fg);
    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: var(--header-fg); 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: var(--header-fg); }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%; background: color-mix(in srgb, var(--paper) 98%, transparent); color: var(--text);
    box-shadow: 0 30px 60px rgba(15, 18, 20, .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-inner.no-aside { grid-template-columns: minmax(0, 1fr); }
  .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: color-mix(in srgb, var(--dark) 97%, transparent); 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-pages { list-style: none; display: grid; gap: 10px; margin: 0 0 34px; padding: 0; }
.search-pages a { display: grid; gap: 4px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line-soft); color: var(--text); }
.search-pages a:hover { border-color: var(--accent); }
.search-pages span { color: var(--muted); font-size: 14px; }
.search-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--cream); }
.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 color-mix(in srgb, var(--text) 8%, transparent); }
.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: var(--bg-soft); 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: var(--on-accent); 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, var(--dark-2) 0%, var(--dark) 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, color-mix(in srgb, var(--dark) 55%, transparent), transparent 55%); z-index: 2; }
.hero-caption .container { padding-inline: clamp(0px, 5vw, 72px); } /* testo lontano dalle frecce dello slider */
.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), color-mix(in srgb, var(--dark) 72%, var(--accent))); 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, color-mix(in srgb, var(--dark) 80%, transparent) 0%, color-mix(in srgb, var(--dark) 35%, transparent) 50%, color-mix(in srgb, var(--dark) 15%, transparent) 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: var(--on-accent); }
.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, var(--cream), var(--cream-2)); }
.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 color-mix(in srgb, var(--dark-2) 8%, transparent); }
.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 color-mix(in srgb, var(--dark-2) 18%, transparent); 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, #fff, var(--accent-light)); color: var(--dark-2); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18), 0 14px 28px color-mix(in srgb, var(--accent) 34%, transparent); }
.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 color-mix(in srgb, var(--dark-2) 6%, transparent); 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, #fff, color-mix(in srgb, var(--accent-light) 55%, #fff)); border-color: rgba(255, 255, 255, .78); box-shadow: 0 0 0 3px rgba(255, 255, 255, .16), 0 12px 24px color-mix(in srgb, var(--accent) 26%, transparent); 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 color-mix(in srgb, var(--text) 8%, transparent); border-top: 0; box-shadow: 0 14px 30px color-mix(in srgb, var(--dark-2) 8%, transparent);
  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)
   --------------------------------------------------------------------- */
.split { position: relative; min-height: 540px; max-width: 1060px; margin: 0 auto; perspective: 1800px; transform-style: preserve-3d; }
.split-media-stack { position: absolute; left: 4%; top: 28px; width: 42%; 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(15, 18, 20, .24), 0 10px 26px rgba(15, 18, 20, .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: absolute; right: 4%; top: 18px; width: 48%; 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(15, 18, 20, .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 color-mix(in srgb, var(--text) 6%, transparent); }
.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: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 12px 24px color-mix(in srgb, var(--accent-dark) 22%, transparent); }
.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%), color-mix(in srgb, var(--text) 18%, #fff) 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, var(--dark-2), color-mix(in srgb, var(--dark) 70%, var(--accent))); box-shadow: 0 25px 60px rgba(15, 18, 20, .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(15, 18, 20, .86), color-mix(in srgb, var(--brown) 50%, transparent)); }
.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, var(--cream), var(--cream-2)); }
.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, var(--cream), var(--cream-2)); }
.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, var(--cream), var(--cream-2)); 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: color-mix(in srgb, var(--dark-2) 70%, transparent); 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 var(--line); }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-icon { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.trust-list strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.trust-list small { display: block; font-size: 12.5px; color: var(--muted); 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: color-mix(in srgb, var(--cream) 60%, transparent); }
.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: color-mix(in srgb, var(--text) 18%, #fff); 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 color-mix(in srgb, var(--accent) 15%, transparent); }
.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: color-mix(in srgb, var(--accent-dark) 40%, transparent); }
.option-card:has(input:checked) { border-color: var(--accent-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); background: var(--paper); }
.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: color-mix(in srgb, var(--accent) 14%, #fff); 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: color-mix(in srgb, var(--accent-dark) 40%, transparent); }
.q-option:has(input:checked) { border-color: var(--accent-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); background: var(--paper); }
.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: color-mix(in srgb, var(--dark-2) 78%, transparent); 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 color-mix(in srgb, var(--accent-dark) 45%, transparent); display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent-dark); cursor: pointer; background: var(--paper); 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 color-mix(in srgb, var(--accent) 25%, transparent); }
.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: var(--on-accent); 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: color-mix(in srgb, var(--footer-fg) 14%, transparent); color: var(--footer-fg); transition: background .25s; }
.social-list a:hover { background: color-mix(in srgb, var(--footer-fg) 28%, transparent); color: var(--footer-fg); }
.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: var(--dark); color: #f3f3f3; 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: var(--footer-fg); overflow: hidden; }
.site-footer a { color: color-mix(in srgb, var(--footer-fg) 86%, transparent); }
.site-footer a:hover { color: var(--footer-fg); }
.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: color-mix(in srgb, var(--footer-fg) 80%, transparent); 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: color-mix(in srgb, var(--footer-fg) 70%, var(--accent)); }
.footer-col ul { list-style: none; }
.footer-col li { font-size: 14px; line-height: 2; color: color-mix(in srgb, var(--footer-fg) 86%, transparent); }
.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: color-mix(in srgb, var(--dark-2) 35%, transparent); 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 color-mix(in srgb, var(--footer-fg) 16%, transparent); font-size: 13px; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal .link-button { color: color-mix(in srgb, var(--footer-fg) 86%, transparent); font-weight: 500; text-decoration: none; font-size: 13px; }
.footer-company { margin: 0; color: color-mix(in srgb, var(--footer-fg) 75%, transparent); }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid color-mix(in srgb, var(--footer-fg) 16%, transparent); color: color-mix(in srgb, var(--footer-fg) 75%, transparent); 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: var(--on-accent); 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: color-mix(in srgb, var(--dark) 94%, transparent); 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(15, 18, 20, .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; gap: 22px; min-height: 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; }
}

/* =====================================================================
   PORTALE (1.2.0): video hero, destinazioni, itinerari, esperienze, blog, galleria foto/video,
   blocchi del builder (titolo, immagine, colonne, pulsanti, spazio, HTML, mappa).
   Stili di base per qualunque tema: il tema "Nautica" li rifinisce in assets/css/theme.css.
   ===================================================================== */
.bg-ocean { background: linear-gradient(160deg, color-mix(in srgb, var(--dark) 82%, var(--accent)), var(--dark)); color: #fff; }
.bg-ocean .title, .bg-ocean .lead, .bg-ocean p { color: #fff; }
.bg-ocean .lead { color: rgba(255, 255, 255, .78); }
.bg-ocean .eyebrow { color: var(--accent-light); }
.section.bg-ocean { padding: clamp(72px, 9vw, 120px) 0; }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; color: color-mix(in srgb, var(--accent) 70%, #fff);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--dark) 70%, var(--accent)), var(--dark)); }
.media-placeholder .icon-lg { opacity: .7; }
.section-head-btns { margin-top: 0; }
.section-foot-btns { margin-top: 40px; }
.results-count { color: var(--muted); margin: 0 0 22px; }

/* --- Video hero -------------------------------------------------------- */
.hero-video { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; color: #fff; overflow: hidden; background: var(--dark); margin-top: calc(var(--header-total) * -1); padding: calc(var(--header-total) + 40px) 0 120px; }
.hero-video.height-large { min-height: 80vh; min-height: 80svh; }
.hero-video-media, .hero-video-media > picture, .hero-video-overlay { position: absolute; inset: 0; }
.hero-video-media { z-index: -2; }
.hero-video-media img, .hero-video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video-el { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing .hero-video-el { opacity: 1; }
.hero-video-overlay { z-index: -1; background: linear-gradient(180deg, rgba(4, 16, 26, .62) 0%, rgba(4, 16, 26, .28) 38%, rgba(4, 16, 26, .38) 62%, rgba(4, 16, 26, .82) 100%); }
.hero-video.overlay-light .hero-video-overlay { background: linear-gradient(180deg, rgba(4, 16, 26, .45) 0%, rgba(4, 16, 26, .12) 45%, rgba(4, 16, 26, .6) 100%); }
.hero-video.overlay-strong .hero-video-overlay { background: linear-gradient(180deg, rgba(4, 16, 26, .75) 0%, rgba(4, 16, 26, .5) 50%, rgba(4, 16, 26, .9) 100%); }
.hero-video-inner { position: relative; width: min(calc(100% - 32px), var(--max)); }
.hero-video-copy { max-width: 920px; }
.hero-video.align-center .hero-video-copy { margin-inline: auto; text-align: center; }
.hero-video.align-center .hero-video-btns { justify-content: center; }
.hero-video-title { font-family: var(--font-display); font-weight: 500; line-height: .98; letter-spacing: .04em; font-size: clamp(2.6rem, 8vw, 7rem); margin: 0; text-wrap: balance; }
.hero-video-subtitle { margin: 18px 0 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 2.2rem); color: rgba(255, 255, 255, .92); }
.hero-video-text { margin: 18px auto 0; max-width: 640px; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; color: rgba(255, 255, 255, .84); }
.hero-video.align-left .hero-video-text { margin-left: 0; }
.hero-video-foot { position: absolute; left: 0; right: 0; bottom: 28px; }
.hero-video-foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hero-video-bottom { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.hero-scroll { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 28px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 16px; }
.hero-scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hero-scroll 2s infinite; }
@keyframes hero-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
.hero-video-toggle { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(4, 16, 26, .35); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.hero-video-toggle .icon-play { display: none; fill: currentColor; }
.hero-video-toggle .icon-pause { width: 12px; height: 14px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero-video-toggle.is-paused .icon-play { display: block; }
.hero-video-toggle.is-paused .icon-pause { display: none; }
.hero-anchor { display: block; position: relative; top: calc(var(--header-total) * -1); }
/* segnaposto animato (nessun video né copertina caricati) */
.hero-sea { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 18%, rgba(255, 236, 205, .55), transparent 38%), linear-gradient(180deg, #2c6f86 0%, #7fb6bf 46%, #0b4560 50%, #071d2b 100%); }
.hero-sea-waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 52%; animation: hero-waves 18s linear infinite; }
.hero-sea-waves path { fill: rgba(255, 255, 255, .06); }
.hero-sea-waves path:nth-child(2) { fill: rgba(0, 166, 178, .12); }
.hero-sea-waves path:nth-child(3) { fill: rgba(7, 29, 43, .35); }
@keyframes hero-waves { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-sea-waves, .hero-scroll span { animation: none; } }
@media (max-width: 767px) {
  .hero-video { padding-bottom: 110px; }
  .hero-video-foot-inner { flex-direction: column; align-items: center; }
  .hero-video-bottom { font-size: 10.5px; letter-spacing: .24em; text-align: center; }
  .hero-scroll { display: none; }
  .hero-video-toggle { position: absolute; right: 16px; bottom: 0; }
}

/* --- Destinazioni ------------------------------------------------------ */
.dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dest-grid.count-1 { grid-template-columns: minmax(0, 520px); }
.dest-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dest-grid.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dest-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--dark); isolation: isolate; box-shadow: var(--shadow-sm); }
.dest-card-media, .dest-card-media > picture { position: absolute; inset: 0; z-index: -2; }
.dest-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dest-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 16, 26, 0) 35%, rgba(4, 16, 26, .82) 100%); transition: background .5s; }
.dest-card:hover { color: #fff; }
.dest-card:hover img { transform: scale(1.07); }
.dest-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; display: grid; gap: 8px; }
.dest-card-country { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.dest-card-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; margin: 0; }
.dest-card-text { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .82); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dest-card-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.dest-card-cta .icon { transition: transform .3s; }
.dest-card:hover .dest-card-cta .icon { transform: translateX(5px); }
.layout-mosaic .dest-grid.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; }
.layout-mosaic .dest-grid.count-4 .dest-card { aspect-ratio: auto; }
.layout-mosaic .dest-grid.count-4 .dest-card:first-child { grid-column: span 2; grid-row: span 2; }
.layout-mosaic .dest-grid.count-4 .dest-card:nth-child(4) { grid-column: span 2; }
@media (max-width: 1100px) { .dest-grid, .dest-grid.count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dest-grid[data-snap] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .dest-grid[data-snap]::-webkit-scrollbar { display: none; }
  .dest-grid[data-snap] .dest-card { flex: 0 0 78%; scroll-snap-align: start; }
  .dest-grid:not([data-snap]), .dest-grid.count-2 { grid-template-columns: minmax(0, 1fr); }
  .layout-mosaic .dest-grid.count-4 { grid-auto-rows: auto; }
}

/* --- Itinerari ---------------------------------------------------------- */
.itin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.itin-grid.count-1 { grid-template-columns: minmax(0, 760px); }
.itin-grid.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.itin-card { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); border-radius: var(--radius-lg); overflow: hidden; background: #fff; color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); transition: transform .4s var(--ease), box-shadow .4s; }
.itin-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow); }
.itin-grid.count-3 .itin-card { grid-template-columns: minmax(0, 1fr); }
.itin-grid.count-3 .itin-card-media { aspect-ratio: 16 / 10; }
.itin-card-media { position: relative; overflow: hidden; min-height: 220px; background: var(--dark); }
.itin-card-media picture, .itin-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.itin-card:hover .itin-card-media img { transform: scale(1.06); }
.itin-card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.itin-route { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.itin-point { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
.itin-line { position: relative; flex: 1; min-width: 40px; height: 18px; display: grid; place-items: center; }
.itin-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed currentColor; opacity: .55; }
.itin-line .icon { position: relative; background: inherit; padding: 0 4px; box-sizing: content-box; }
.itin-card .itin-line .icon { background: #fff; }
.itin-card-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; margin: 0; }
.itin-card-text { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.itin-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.itin-facts span { display: inline-flex; align-items: center; gap: 6px; }
.itin-card-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.itin-card-cta .icon { transition: transform .3s; }
.itin-card:hover .itin-card-cta .icon { transform: translateX(5px); }
.bg-ocean .itin-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(8px); }
.bg-ocean .itin-card:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.bg-ocean .itin-card .itin-line .icon { background: transparent; }
.bg-ocean .itin-route, .bg-ocean .itin-card-cta { color: var(--accent-light); }
.bg-ocean .itin-card-text, .bg-ocean .itin-facts { color: rgba(255, 255, 255, .74); }
.itin-route.is-large { margin-top: 18px; font-size: 13px; max-width: 560px; color: inherit; }
.has-image .itin-route.is-large { color: #fff; }
@media (max-width: 900px) {
  .itin-grid, .itin-grid.count-3 { grid-template-columns: minmax(0, 1fr); }
  .itin-card { grid-template-columns: minmax(0, 1fr); }
  .itin-card-media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* --- Esperienze --------------------------------------------------------- */
.exp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.exp-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exp-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.exp-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .78); border: 1px solid var(--line-soft); color: var(--text); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
a.exp-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.exp-card-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-dark); background: color-mix(in srgb, var(--accent) 12%, #fff); }
.exp-card-icon .icon { width: 26px; height: 26px; }
.exp-card-body { display: grid; gap: 8px; }
.exp-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; margin: 0; }
.exp-card-text { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.exp-card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.exp-card.has-image { padding: 0; overflow: hidden; min-height: 380px; color: #fff; background: var(--dark); justify-content: flex-end; isolation: isolate; }
.exp-card.has-image:hover { color: #fff; }
.exp-card-media, .exp-card-media > picture { position: absolute; inset: 0; z-index: -2; }
.exp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.exp-card.has-image:hover img { transform: scale(1.06); }
.exp-card.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(4, 16, 26, .85)); }
.exp-card.has-image .exp-card-body { padding: 28px; }
.exp-card.has-image .exp-card-text { color: rgba(255, 255, 255, .82); }
.exp-card.has-image .exp-card-more { color: #fff; }
@media (max-width: 1000px) { .exp-grid, .exp-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .exp-grid, .exp-grid.cols-2, .exp-grid.cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* --- Articoli ------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-grid.count-1 { grid-template-columns: minmax(0, 560px); }
.post-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line-soft); box-shadow: 0 1px 0 rgba(0, 0, 0, .02); transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.post-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.post-card-media picture, .post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media img { transition: transform 1.2s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 22px; flex: 1; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: var(--muted); }
.post-card-cat { position: relative; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.post-card-cat:hover { text-decoration: underline; }
.post-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.18; margin: 0; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card-title a:hover { color: var(--accent-dark); }
.post-card-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }
.post-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; font-size: 12.5px; color: var(--muted); }
.post-card-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; color: var(--accent-dark); }
.post-card-time { display: inline-flex; align-items: center; gap: 5px; }
.post-card.is-large { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.post-card.is-large .post-card-media { aspect-ratio: auto; min-height: 380px; }
.post-card.is-large .post-card-body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.post-card.is-large .post-card-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.post-featured { margin-bottom: 36px; }
@media (max-width: 1000px) { .post-grid, .post-grid.count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .post-grid, .post-grid.count-2, .post-grid.count-3 { grid-template-columns: minmax(0, 1fr); }
  .post-card.is-large { grid-template-columns: minmax(0, 1fr); }
  .post-card.is-large .post-card-media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* --- Galleria foto e video ---------------------------------------------- */
.media-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.media-gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-gallery.layout-masonry { display: block; columns: 3 280px; column-gap: 16px; }
.media-gallery.layout-masonry.cols-2 { columns: 2 320px; }
.media-gallery.layout-masonry.cols-4 { columns: 4 220px; }
.media-gallery.layout-masonry .media-item { display: block; margin-bottom: 16px; break-inside: avoid; }
.media-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-soft); }
.media-gallery.layout-grid .media-item { aspect-ratio: 4 / 3; }
.media-gallery.layout-grid .media-item picture, .media-gallery.layout-grid .media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item img { width: 100%; transition: transform 1s var(--ease); }
.media-item:hover img { transform: scale(1.05); }
.media-item.is-video .media-placeholder { aspect-ratio: 16 / 9; }
.media-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--dark); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); transition: transform .3s; }
.media-play .icon { fill: currentColor; margin-left: 3px; }
.media-item:hover .media-play { transform: translate(-50%, -50%) scale(1.08); }
.media-zoom { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .88); color: var(--dark); opacity: 0; transition: opacity .3s; }
.media-item:hover .media-zoom, .media-item:focus-visible .media-zoom { opacity: 1; }
.media-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(4, 16, 26, .75)); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.media-item:hover .media-caption, .media-item:focus-visible .media-caption { opacity: 1; transform: none; }
.lightbox-video { width: min(92vw, 1280px); aspect-ratio: 16 / 9; max-height: 80vh; border: 0; border-radius: 12px; background: #000; }
@media (max-width: 900px) { .media-gallery, .media-gallery.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: none) { .media-caption { opacity: 1; transform: none; } }

/* --- Intestazioni di elenchi e schede ----------------------------------- */
.listing-head { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.listing-head.has-image { color: #fff; min-height: clamp(420px, 62vh, 640px); display: flex; align-items: flex-end; margin-top: calc(var(--header-total) * -1); padding-top: calc(var(--header-total) + 60px); background: var(--dark); }
.listing-head-media { position: absolute; inset: 0; z-index: -2; }
.listing-head-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-head.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 16, 26, .55), rgba(4, 16, 26, .25) 40%, rgba(4, 16, 26, .85)); }
.listing-head-inner { position: relative; width: min(calc(100% - 32px), var(--max)); }
.listing-title { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; font-size: clamp(2.4rem, 5.5vw, 5rem); margin: 0; max-width: 1000px; text-wrap: balance; }
.listing-intro { margin-top: 18px; max-width: 720px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.has-image .listing-intro, .has-image .listing-intro p { color: rgba(255, 255, 255, .86); }
.has-image .eyebrow { color: var(--accent-light); }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip-nav .chip { padding: 8px 14px; font-size: 13px; }
.blog-search { display: flex; max-width: 460px; margin-top: 26px; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.blog-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 18px; outline: none; }
.blog-search button { border: 0; background: var(--dark-2); color: #fff; width: 48px; display: grid; place-items: center; }

/* --- Schede destinazione / itinerario ----------------------------------- */
.entity-layout { display: grid; gap: clamp(32px, 5vw, 72px); }
.entity-layout.has-aside { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: start; }
.entity-lead { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.45; margin: 0 0 28px; color: var(--text); }
.entity-body { font-size: 16.5px; }
.entity-aside { position: sticky; top: calc(var(--header-total) + 24px); display: grid; gap: 22px; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .8); border: 1px solid var(--line-soft); }
.aside-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 0; }
.facts { display: grid; gap: 14px; margin: 0; }
.facts dt { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 600; }
.highlights { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.highlights li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.highlights .icon { color: var(--accent-dark); }
.facts-bar { border-block: 1px solid var(--line-soft); background: rgba(255, 255, 255, .7); }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin: 0; padding: 22px 0; }
.facts-row dt { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts-row dt .icon { color: var(--accent-dark); }
.facts-row dd { margin: 6px 0 0; font-weight: 600; font-size: 15px; }
.stops-title { margin: 48px 0 26px; }
.stops { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 0; }
.stop { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 20px; padding-bottom: 34px; }
.stop::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; border-left: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.stop:last-child::before { display: none; }
.stop-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-dark) 30%, transparent); }
.stop-body { display: grid; gap: 6px; padding-top: 6px; }
.stop-label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.stop-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 0; }
.stop-place { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.stop-body p { color: var(--muted); margin: 4px 0 0; }
.stop-media { margin-top: 12px; border-radius: var(--radius-sm); overflow: hidden; max-width: 640px; }
.booking-box { display: grid; gap: 14px; }
.booking-box h3 { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.booking-price { display: grid; gap: 2px; margin: 0; }
.booking-price small { color: var(--muted); font-size: 12.5px; }
.booking-price strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; }
.booking-price span { color: var(--muted); font-size: 13px; }
.booking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.booking-list li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.booking-notice { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 8%, #fff); color: var(--text); font-size: 14px; line-height: 1.6; }
.booking-small { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 960px) {
  .entity-layout.has-aside { grid-template-columns: minmax(0, 1fr); }
  .entity-aside { position: static; }
}

/* --- Articolo ------------------------------------------------------------ */
.preview-bar { position: sticky; top: var(--header-total); z-index: 40; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-size: 13.5px; background: #fdf6e8; color: #7a4f0d; border-bottom: 1px solid #f1ddb2; }
.preview-bar a { font-weight: 700; text-decoration: underline; }
.post-header { padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-title { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.01em; font-size: clamp(2.2rem, 5vw, 4.2rem); margin: 0; text-wrap: balance; }
.post-lead { margin: 22px 0 0; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.65; color: var(--muted); }
.post-byline { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.post-cover { margin: 0 auto clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); overflow: hidden; }
.post-cover img { width: 100%; max-height: 720px; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 56px; padding-bottom: clamp(48px, 7vw, 96px); }
.post-layout.has-toc { grid-template-columns: minmax(200px, 260px) minmax(0, 760px); }
.post-toc { position: sticky; top: calc(var(--header-total) + 24px); align-self: start; font-size: 14px; }
.post-toc summary { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); cursor: pointer; margin-bottom: 12px; }
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-left: 1px solid var(--line); }
.post-toc li { padding-left: 14px; }
.post-toc li.toc-l3 { padding-left: 28px; font-size: 13px; }
.post-toc a { color: var(--muted); display: block; line-height: 1.4; }
.post-toc a:hover, .post-toc a.is-active { color: var(--accent-dark); }
.post-body { font-size: 17.5px; line-height: 1.85; }
.post-body > p:first-child::first-letter { font-family: var(--font-display); float: left; font-size: 4.2em; line-height: .85; padding: 6px 10px 0 0; color: var(--accent-dark); }
.post-body h2, .post-body h3 { scroll-margin-top: calc(var(--header-total) + 20px); }
.post-body figure { margin: 2em 0; }
.post-body figure img, .post-body figure video { width: 100%; border-radius: var(--radius-sm); }
.post-body figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }
.post-body .video-frame { display: block; margin: 2em 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chip-tag { font-weight: 500; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.share-label { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share-link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--text); transition: background .25s, color .25s; }
.share-link:hover { background: var(--dark-2); color: #fff; }
.post-faq { margin-top: 48px; }
.post-faq h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 18px; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.post-nav-link { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: #fff; }
.post-nav-link.is-next { text-align: right; grid-column: 2; }
.post-nav-link small { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-nav-link.is-next small { justify-content: flex-end; }
.post-nav-link span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.post-nav-link:hover { border-color: var(--accent); }
@media (max-width: 1000px) {
  .post-layout.has-toc { grid-template-columns: minmax(0, 760px); }
  .post-toc { position: static; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .7); border: 1px solid var(--line-soft); }
}
@media (max-width: 640px) {
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav-link.is-next { grid-column: auto; }
  .post-body { font-size: 16.5px; }
}

/* --- Richiesta informazioni ------------------------------------------- */
.info-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, var(--dark), color-mix(in srgb, var(--dark) 72%, var(--accent))); box-shadow: var(--shadow); }
.info-cta-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1; margin: 0 0 10px; }
.info-cta p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 620px; }
.info-cta .btns { margin-top: 0; }

/* --- Blocchi del builder ------------------------------------------------- */
.section-heading .heading-block { max-width: 900px; }
.section-heading.align-center .heading-block { margin-inline: auto; text-align: center; }
.section-heading.align-center .lead { margin-inline: auto; }
.section-heading.align-right .heading-block { margin-left: auto; text-align: right; }
.section-heading.size-large .title { font-size: clamp(2.4rem, 5.6vw, 5rem); }
.section-heading.size-small .title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.image-block { margin: 0; }
.image-block img { width: 100%; border-radius: var(--radius); }
.image-block-full .image-block img { border-radius: 0; }
.section-image.ratio-16x9 img { aspect-ratio: 16 / 9; object-fit: cover; }
.section-image.ratio-4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.section-image.ratio-1x1 img { aspect-ratio: 1; object-fit: cover; }
.section-image.ratio-3x4 img { aspect-ratio: 3 / 4; object-fit: cover; }
.image-block figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.columns-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.columns-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.column-item { display: flex; flex-direction: column; gap: 12px; }
.style-cards .column-item { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .8); border: 1px solid var(--line-soft); }
.column-media { border-radius: var(--radius-sm); overflow: hidden; }
.column-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.column-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 0; }
.column-btns { margin-top: auto; padding-top: 6px; }
@media (max-width: 900px) { .columns-grid, .columns-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .columns-grid, .columns-grid.cols-2, .columns-grid.cols-4 { grid-template-columns: minmax(0, 1fr); } }
.section-buttons .btns { margin-top: 0; }
.btns.is-left { justify-content: flex-start; }
.btns.is-right { justify-content: flex-end; }
.block-spacer.h-sm { height: 24px; }
.block-spacer.h-md { height: 56px; }
.block-spacer.h-lg { height: 96px; }
.block-spacer.h-xl { height: 150px; }
.block-spacer { display: flex; align-items: center; }
.block-spacer hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section-map .map-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.section-map .map-frame iframe { width: 100%; height: 100%; border: 0; }
.section-map .map-facade { width: 100%; height: 100%; }
.section-map .map-frame { aspect-ratio: auto; margin-top: 0; }
.entity-aside .map-frame { margin-top: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
