/* ════════════════════════════════════════════════
   SISTEMAR — restyling elegante
   Palette neutra derivata dal logo · tipografia raffinata
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

:root {
  /* palette TORTORA (default) */
  --accent:      #A6855E;
  --accent-dk:   #8A6C46;
  --accent-soft: #C9B79A;
  --bg:          #F4F0E8;
  --surface:     #FCFAF5;
  --surface-2:   #EFE9DD;
  --ink:         #322E29;
  --ink-2:       #4B463E;
  --muted:       #7A7263;
  --line:        #E4DCCD;
  --dark:        #2C2925;
  --dark-2:      #211F1B;
  --stone:       #CDC4B5;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Jost', 'Helvetica Neue', system-ui, sans-serif;

  --maxw: 1220px;
  --radius: 3px;
  --promo-h: 28px;
}

body[data-palette="pietra"] {
  --accent:      #8C8275;
  --accent-dk:   #6E6456;
  --accent-soft: #BEB6A8;
  --bg:          #F2F1EC;
  --surface:     #FBFAF6;
  --surface-2:   #EAE7DE;
  --ink:         #322F2A;
  --muted:       #777164;
  --line:        #E1DDD3;
  --dark:        #2A2926;
  --dark-2:      #1F1E1B;
  --stone:       #C8C2B6;
}
body[data-palette="oro"] {
  --accent:      #B89460;
  --accent-dk:   #9A7843;
  --accent-soft: #D3BE94;
  --bg:          #F6F1E7;
  --surface:     #FDFAF3;
  --surface-2:   #F0E8D8;
  --ink:         #2C2820;
  --muted:       #7E715A;
  --line:        #E8DEC9;
  --dark:        #29241C;
  --dark-2:      #1E1A14;
  --stone:       #D0C5AE;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.72;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Tipografia ── */
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--accent);
  opacity: .8;
}
.eyebrow.center { justify-content: center; }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--accent-dk); }
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.75;
}

/* ── Layout ── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { padding: 84px 0; }
.section-head { max-width: 660px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* ── Bottoni ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 32px;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 1px;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-outlet { background: var(--accent-dk); color: #fff; font-weight: 600; letter-spacing: .02em; }
.btn-outlet:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--dark-2); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent-dk); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 11px 22px; font-size: .7rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dk);
  transition: gap .25s, color .25s;
}
.link-arrow:hover { gap: 14px; color: var(--ink); }

/* ════════ STRISCIA PROMO (ticker) ════════ */
.promo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--promo-h); overflow: hidden;
  display: flex; align-items: center;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-soft));
  color: var(--dark);
  transition: transform .3s ease;
}
.promo-track {
  display: flex; align-items: center; white-space: nowrap;
  will-change: transform;
  animation: promo-scroll 42s linear infinite;
}
.promo-bar:hover .promo-track,
.promo-bar:focus-within .promo-track { animation-play-state: paused; }
.promo-item {
  font-family: var(--sans); font-weight: 500;
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
}
.promo-dot { padding: 0 13px; opacity: .55; }
@keyframes promo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-track { animation: none; }
}
body.scrolled .promo-bar { transform: translateY(-100%); }

/* ════════ NAVBAR ════════ */
#navbar {
  position: fixed; top: var(--promo-h); left: 0; right: 0; z-index: 1001;
  height: 84px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: height .3s, border-color .3s, background .3s, box-shadow .3s, top .3s;
}
#navbar.scrolled {
  top: 0;
  height: 70px;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  height: 44px; width: auto;
  transition: height .3s, transform .3s;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.06));
}
.brand:hover .brand-mark { transform: scale(1.04); }
#navbar.scrolled .brand-mark { height: 37px; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--sans); font-weight: 500;
  font-size: 1.28rem; letter-spacing: .26em;
  color: var(--ink); padding-left: .26em;
}
.brand-tag {
  font-family: var(--sans); font-weight: 400;
  font-size: .54rem; letter-spacing: .34em;
  color: var(--muted); margin-top: 5px; padding-left: .34em;
}
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: .74rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent); transition: width .3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; letter-spacing: .04em; color: var(--ink-2);
  transition: color .25s;
}
.nav-phone:hover { color: var(--accent-dk); }
.nav-phone svg { width: 16px; height: 16px; color: var(--accent); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 26px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: calc(84px + var(--promo-h)); left: 0; right: 0; z-index: 999;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 28px 32px 34px; flex-direction: column; gap: 4px;
  transition: top .3s;
}
body.scrolled .mobile-menu { top: 70px; }
.mobile-menu.open { display: flex; }
.mobile-menu .mm-mark { height: 40px; width: auto; align-self: center; margin-bottom: 14px; }
.mobile-menu a {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 18px; justify-content: center; }

/* ════════ HERO ════════ */
#hero { position: relative; }
.hero-variant { display: none; }
body[data-hero="ambiente"] .hero-ambiente { display: flex; }
body[data-hero="crema"] .hero-crema { display: flex; }
body[data-hero="split"] .hero-split { display: block; }

/* — Hero split (editoriale, due colonne) — */
.hero-split {
  background: var(--bg);
  padding: 84px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-split::before {
  content: "";
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 38%;
  background: var(--surface-2);
  opacity: .55;
}
.hs-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(44px, 6vw, 86px);
  align-items: start;
}
.hs-copy h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  line-height: 1.07; letter-spacing: -.015em;
  color: var(--ink); margin-bottom: 24px;
}
.hs-copy h1 em { font-style: italic; color: var(--accent-dk); }
.hs-copy .hero-sub {
  font-size: 1.12rem; color: var(--muted);
  max-width: 480px; margin-bottom: 24px; line-height: 1.7;
}
/* Badge outlet nell'hero — priorità all'offerta */
.hero-outlet-badge {
  display: flex; align-items: center; gap: 14px;
  max-width: 480px; margin-bottom: 30px;
  padding: 14px 18px;
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 30px 60px -34px rgba(40,32,22,.55);
  transition: transform .25s, box-shadow .25s;
}
.hero-outlet-badge::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
}
.hero-outlet-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -26px rgba(40,32,22,.6);
}
.hero-outlet-badge .hob-pct {
  position: relative;
  font-family: var(--serif); font-weight: 600; font-size: 1.7rem;
  line-height: 1; color: var(--accent-soft); flex-shrink: 0;
}
.hero-outlet-badge .hob-txt {
  position: relative;
  font-size: 1rem; line-height: 1.4; color: rgba(255,255,255,.78);
}
.hero-outlet-badge svg { position: relative; width: 18px; height: 18px; color: var(--accent-soft); flex-shrink: 0; margin-left: auto; transition: transform .25s; }
.hero-outlet-badge:hover svg { transform: translateX(4px); }
.hs-stats {
  display: flex; gap: clamp(28px, 4vw, 52px);
  margin-top: 38px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hs-stat b {
  display: block;
  font-family: var(--serif); font-weight: 600;
  font-size: 2rem; line-height: 1; color: var(--ink);
}
.hs-stat span {
  display: block; margin-top: 8px;
  font-size: .64rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.hs-media { position: relative; padding: 0 0 64px 0; }
.hs-img-main {
  position: relative; margin: 0;
  aspect-ratio: 4 / 4.7;
  box-shadow: 0 40px 80px -42px rgba(40,32,22,.45);
}
.hs-img-main::before {
  content: "";
  position: absolute; top: -16px; right: -16px;
  width: 58%; height: 58%;
  border: 1px solid var(--accent-soft);
  z-index: 0;
}
.hs-img-main img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hs-img-small {
  position: absolute; left: -12%; bottom: 0;
  width: 52%; aspect-ratio: 4 / 3; margin: 0;
  border: 8px solid var(--bg);
  box-shadow: 0 28px 56px -30px rgba(40,32,22,.5);
  z-index: 2;
}
.hs-img-small img { width: 100%; height: 100%; object-fit: cover; }

/* — Hero ambiente (immagine grande) — */
.hero-ambiente {
  position: relative; min-height: 100vh;
  align-items: center;
  background-color: var(--dark);
  overflow: hidden;
}
.hero-ambiente .hero-img {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(20,18,16,.82) 0%, rgba(20,18,16,.5) 48%, rgba(20,18,16,.15) 100%),
    var(--dark);
  background-size: cover; background-position: center;
}
.hero-ambiente .hero-img.has-img { background-blend-mode: normal; }
.hero-ambiente .container { position: relative; z-index: 2; padding-top: 84px; }
.hero-ambiente .hero-copy { max-width: 680px; }
.hero-eyebrow-light {
  font-size: .76rem; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent-soft);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.hero-eyebrow-light::before { content:""; width: 30px; height: 1px; background: var(--accent-soft); }
.hero-ambiente h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 5.1rem); line-height: 1.04;
  letter-spacing: -.015em; color: #fff; margin-bottom: 26px;
}
.hero-ambiente h1 em { font-style: italic; color: var(--accent-soft); }
.hero-ambiente .hero-sub {
  font-size: 1.18rem; color: rgba(255,255,255,.82);
  max-width: 540px; margin-bottom: 38px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  position: absolute; right: 32px; bottom: 46px; z-index: 2;
  display: flex; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05); backdrop-filter: blur(6px);
}
.hero-stats .stat { padding: 20px 30px; border-right: 1px solid rgba(255,255,255,.14); text-align: center; }
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat-num {
  font-family: var(--serif); font-weight: 600; font-size: 1.9rem;
  color: #fff; line-height: 1;
}
.hero-stats .stat-lbl {
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-top: 8px;
}

/* — Hero crema (logo grande) — */
.hero-crema {
  min-height: 100vh; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--bg); position: relative; padding: 120px 32px 80px;
}
.hero-crema::before, .hero-crema::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 1px; background: var(--line);
}
.hero-crema::before { top: 84px; height: 46px; }
.hero-crema .hero-logo { width: clamp(230px, 26vw, 330px); height: auto; margin-bottom: 30px; }
.hero-crema .hero-place {
  font-size: .72rem; font-weight: 500; letter-spacing: .3em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 26px;
}
.hero-crema h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.12;
  letter-spacing: -.01em; color: var(--ink); max-width: 16ch; margin-bottom: 22px;
}
.hero-crema h1 em { font-style: italic; color: var(--accent-dk); }
.hero-crema .hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 38px; }
.hero-crema .hero-btns { justify-content: center; }
.hero-crema .scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-crema .scroll-hint span { width: 1px; height: 36px; background: var(--line); }

/* ════════ Strip brand / trust ════════ */
.trust {
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 18px 54px;
}
.trust-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.trust-brands { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.trust-brands span {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  color: var(--ink); opacity: .55;
}

/* ════════ CHI SIAMO ════════ */
#chi-siamo { background: var(--bg); padding-top: 24px; border-top: 3px solid var(--accent); }
.chi-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center;
  grid-template-areas: "media head" "media body";
}
.chi-head { grid-area: head; }
.chi-media { grid-area: media; position: relative; }
.chi-body { grid-area: body; }
.chi-media .frame {
  position: absolute; inset: -16px -16px 16px 16px; border: 1px solid var(--accent-soft);
  z-index: 0; pointer-events: none;
}
.chi-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 30px; margin-top: 38px; }
.chi-feat { display: flex; gap: 15px; align-items: flex-start; }
.chi-feat .ico {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--accent); color: var(--accent-dk);
  display: flex; align-items: center; justify-content: center;
}
.chi-feat .ico svg { width: 20px; height: 20px; }
.chi-feat h4 { font-family: var(--sans); font-weight: 500; font-size: .92rem; letter-spacing: .04em; color: var(--ink); margin-bottom: 3px; }
.chi-feat p { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.chi-cta { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }

/* — Foto showroom — */
.chi-photo { position: relative; z-index: 1; margin: 0; aspect-ratio: 4/5; overflow: hidden; background: var(--surface-2); }
.chi-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ════════ COLLEZIONI ════════ */
#catalogo { background: var(--surface); border-top: 3px solid var(--accent); }
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 44px; }
.col-card { background: var(--bg); border: 1px solid var(--line); cursor: pointer; transition: box-shadow .35s, transform .35s; overflow: hidden; }
.col-card:hover { box-shadow: 0 30px 60px -34px rgba(0,0,0,.4); transform: translateY(-5px); }
.col-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.col-cover img, .col-cover .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.col-card:hover .col-cover img { transform: scale(1.06); }
.col-cover-ov {
  position: absolute; inset: 0; background: rgba(20,18,16,0);
  transition: background .4s; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.col-card:hover .col-cover-ov { background: rgba(20,18,16,.4); }
.col-hint {
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
  color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.6); padding: 12px 26px;
}
.col-card:hover .col-hint { opacity: 1; transform: translateY(0); }
.col-info { padding: 28px 30px 30px; }
.col-brand { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.col-name { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; color: var(--ink); margin-bottom: 12px; }
.col-desc { font-size: .92rem; color: var(--muted); line-height: 1.65; margin-bottom: 22px; }
.col-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.col-count { font-size: .74rem; letter-spacing: .08em; color: var(--muted); margin-left: auto; }

/* Collection modal */
.col-modal { display: none; position: fixed; inset: 0; z-index: 1100; background: rgba(18,16,14,.96); flex-direction: column; }
.col-modal.open { display: flex; }
.col-modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 34px; }
.col-modal-bar .t { color: #fff; font-family: var(--serif); font-size: 1.3rem; }
.col-modal-bar .c { color: rgba(255,255,255,.55); font-size: .8rem; letter-spacing: .1em; margin-top: 2px; }
.col-modal-close { color: #fff; font-size: 1.6rem; cursor: pointer; opacity: .75; background: none; border: none; transition: opacity .25s; }
.col-modal-close:hover { opacity: 1; }
.col-modal-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 90px 110px; }
.col-modal-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.col-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.col-arrow:hover { background: rgba(255,255,255,.2); }
.col-prev { left: 22px; } .col-next { right: 22px; }
.col-thumbs { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; gap: 10px; justify-content: center; padding: 0 24px; }
.col-thumb { width: 78px; height: 54px; overflow: hidden; cursor: pointer; opacity: .4; border: 1px solid transparent; transition: opacity .25s, border-color .25s; }
.col-thumb.active { opacity: 1; border-color: #fff; }
.col-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ════════ GALLERIA ════════ */
#galleria { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-item { position: relative; overflow: hidden; cursor: pointer; }
.gal-item img, .gal-item .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .7s ease; }
.gal-item.wide { grid-column: span 2; }
.gal-item.tall { grid-row: span 2; }
.gal-item.tall img, .gal-item.tall .ph { aspect-ratio: auto; height: 100%; }
.gal-item:hover img { transform: scale(1.07); }
.gal-ov { position: absolute; inset: 0; background: rgba(20,18,16,0); display: flex; align-items: center; justify-content: center; transition: background .35s; }
.gal-item:hover .gal-ov { background: rgba(20,18,16,.34); }
.gal-ov svg { width: 30px; height: 30px; color: #fff; opacity: 0; transform: scale(.8); transition: opacity .35s, transform .35s; }
.gal-item:hover .gal-ov svg { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(18,16,14,.94); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* ════════ MERCATINO ════════ */
#mercatino { background: var(--surface); border-top: 3px solid var(--accent); position: relative; }
#mercatino .merc-top .eyebrow { font-size: .82rem; color: var(--accent-dk); }
#mercatino .section-title { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
.merc-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; margin-bottom: 44px; }
.merc-banner { background: var(--ink); color: var(--bg); padding: 30px 32px; position: relative; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(40,32,22,.55); }
.merc-banner::before { content: ""; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); }
.merc-banner .pct { position: relative; font-family: var(--serif); font-size: 3.2rem; font-weight: 600; line-height: .95; color: var(--accent-soft); }
.merc-banner h3 { position: relative; font-family: var(--sans); font-weight: 500; font-size: .96rem; letter-spacing: .04em; margin: 10px 0 6px; }
.merc-banner p { position: relative; font-size: .84rem; color: rgba(255,255,255,.72); }
.merc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 0 0 22px; }
.merc-card { background: var(--bg); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .35s, transform .35s; }
.merc-card:hover { box-shadow: 0 26px 50px -32px rgba(0,0,0,.4); transform: translateY(-4px); }
.merc-img { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.merc-img img, .merc-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.merc-card:hover .merc-img img { transform: scale(1.06); }
.merc-info { padding: 22px 24px 26px; }
.merc-lbl { display: inline-block; font-size: .6rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 4px 10px; margin-bottom: 12px; }
.merc-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.merc-desc { font-size: .84rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.merc-desc .first { color: var(--accent-dk); font-weight: 500; }
.merc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.merc-price .old { width: 100%; font-size: .9rem; color: var(--muted); text-decoration: line-through; text-decoration-color: #8C2020; }
.merc-price .new { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--accent-dk); }
.merc-price .old ~ .new { color: #B01818; }
.merc-price .unit { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; color: var(--accent-dk); }
.merc-price .iva { font-size: .72rem; color: var(--muted); }
.merc-btn { display: block; width: 100%; padding: 12px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; box-sizing: border-box; transition: background .25s, color .25s, border-color .25s; }
.merc-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.merc-note { text-align: center; color: var(--muted); font-size: .8rem; margin-bottom: 0; }

/* ════════ CAROSELLO ════════ */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 26px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 8px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .merc-card,
.carousel-track > .col-card { flex: 0 0 clamp(260px, 30%, 340px); scroll-snap-align: start; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.4);
  transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.carousel-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.carousel-arrow.prev { left: -10px; }
.carousel-arrow.next { right: -10px; }

/* Prima sezione delle pagine interne: spazio per la navbar fissa (84px) */
.page-section { padding-top: 140px; }

/* ════════ CONTATTI ════════ */
#contatti { background: var(--bg); border-top: 3px solid var(--accent); }
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.contact-card:last-child { border-bottom: none; }
.contact-card .ico { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--accent); color: var(--accent-dk); display: flex; align-items: center; justify-content: center; }
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card h4 { font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: .98rem; color: var(--ink); line-height: 1.5; }
.contact-card a:hover { color: var(--accent-dk); }
.orari { margin-top: 24px; border: 1px solid var(--line); background: var(--surface); padding: 26px 28px; }
.orari h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.orari table { width: 100%; font-size: .92rem; border-collapse: collapse; }
.orari td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.orari tr:last-child td { border-bottom: none; }
.orari td:last-child { text-align: right; color: var(--muted); }
.orari .closed { color: var(--accent-dk); }

.map-wrap { aspect-ratio: 3/4; border: 1px solid var(--line); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: none; filter: grayscale(.4) contrast(.95); }

/* ════════ FOOTER ════════ */
footer { background: var(--dark-2); color: rgba(255,255,255,.6); padding: 84px 0 32px; border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .footer-mark { height: 46px; width: auto; margin-bottom: 20px; opacity: .92; }
.footer-brand .fb-name { font-family: var(--sans); font-weight: 500; font-size: 1.5rem; letter-spacing: .26em; color: #fff; }
.footer-brand .fb-rule { width: 54px; height: 1px; background: var(--accent); margin: 16px 0; }
.footer-brand .fb-tag { font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: -8px; margin-bottom: 18px; }
.footer-desc { font-size: .9rem; line-height: 1.7; max-width: 320px; margin-bottom: 24px; }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: background .25s, color .25s, border-color .25s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social a svg { width: 17px; height: 17px; }
footer h4 { font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
footer ul { list-style: none; }
footer li { margin-bottom: 11px; }
footer ul a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color .25s; }
footer ul a:hover { color: var(--accent-soft); }
.footer-contact-line { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .8rem; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }

/* ════════ Placeholder immagini (fallback) ════════ */
img.auto-img {
  width: 100%; height: 100%; object-fit: cover;
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(45deg, transparent 0 11px, color-mix(in srgb, var(--stone) 55%, transparent) 11px 12px);
  color: transparent; font-size: 0;
}
.ph {
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(45deg, transparent 0 11px, color-mix(in srgb, var(--stone) 55%, transparent) 11px 12px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); padding: 16px;
}
.ph span { font-family: 'Courier New', monospace; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; opacity: .8; max-width: 80%; }

/* ════════ Scroll-top & toast ════════ */
#scrollTop { position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, background .25s; z-index: 500; }
#scrollTop svg { width: 18px; height: 18px; }
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { background: var(--accent-dk); }
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(14px); background: var(--ink); color: var(--bg); padding: 15px 28px; font-size: .86rem; letter-spacing: .02em; z-index: 9000; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; display: flex; align-items: center; gap: 10px; }
.toast svg { width: 18px; height: 18px; color: var(--accent-soft); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════ Reveal on scroll (solo con JS attivo) ════════ */
.has-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ════════ TWEAKS PANEL ════════ */
#tweaks { position: fixed; bottom: 22px; right: 22px; z-index: 12000; width: 268px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -28px rgba(0,0,0,.5); display: none; font-family: var(--sans); }
#tweaks.open { display: block; }
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.tw-head .t { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.tw-head button { background: none; border: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.tw-body { padding: 18px; display: flex; flex-direction: column; gap: 22px; }
.tw-group .tw-label { font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tw-seg { display: flex; border: 1px solid var(--line); }
.tw-seg button { flex: 1; padding: 9px 6px; background: var(--bg); border: none; border-right: 1px solid var(--line); font-family: var(--sans); font-size: .7rem; letter-spacing: .06em; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.tw-seg button:last-child { border-right: none; }
.tw-seg button.active { background: var(--accent); color: #fff; }
.tw-swatches { display: flex; gap: 10px; }
.tw-sw { flex: 1; cursor: pointer; border: 1px solid var(--line); padding: 7px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 7px; transition: border-color .2s; }
.tw-sw.active { border-color: var(--ink); }
.tw-sw .dot { width: 100%; height: 22px; }
.tw-sw small { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-split { padding: 112px 0 56px; }
  .hero-split::before { display: none; }
  .hs-grid { grid-template-columns: 1fr; gap: 56px; }
  .hs-media { padding-bottom: 48px; max-width: 560px; }
  .hs-img-main { aspect-ratio: 4 / 3.4; }
  .hs-img-small { left: auto; right: -4%; width: 46%; }
  .chi-grid, .contatti-grid, .merc-top { grid-template-columns: 1fr; gap: 44px; }
  .chi-grid { grid-template-areas: "head" "media" "body"; }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .merc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-stats { position: static; margin-top: 40px; display: inline-flex; }
  .hero-ambiente .container { padding-top: 120px; padding-bottom: 60px; }
  .chi-photo { aspect-ratio: 4/3; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  /* Su mobile niente :hover affidabile → mostro l'overlay/hint delle card al tocco */
  .col-cover-ov { background: rgba(20,18,16,.18); }
  .col-hint { opacity: 1; transform: none; }
  /* Visualizzatore collezioni a tutto schermo */
  .col-modal-body { padding: 0 16px 92px; }
  .col-arrow { width: 44px; height: 44px; font-size: 1.2rem; }
  .col-prev { left: 10px; } .col-next { right: 10px; }
  .col-thumbs { gap: 7px; padding: 0 12px; overflow-x: auto; justify-content: flex-start; }
  .col-thumb { flex: 0 0 auto; width: 62px; height: 44px; }
  /* Carosello: su mobile si scorre con lo swipe, niente frecce */
  .carousel-arrow { display: none; }
  .carousel-track > .merc-card,
  .carousel-track > .col-card { flex-basis: 78%; }
}
@media (max-width: 600px) {
  section { padding: 72px 0; }
  .container { padding: 0 22px; }
  .chi-feats { grid-template-columns: 1fr; }
  .gallery-grid, .collections-grid { grid-template-columns: 1fr; }
  /* Outlet: 2 colonne anche su mobile (4 card visibili, 2 file da 2) */
  .merc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .carousel-track { gap: 14px; }
  .carousel-track > .merc-card { flex-basis: calc(50% - 7px); }
  .carousel-track > .col-card { flex-basis: 86%; }
  /* Card outlet compatte: contenuti ridimensionati per la mezza colonna */
  .merc-info { padding: 12px 12px 14px; }
  .merc-lbl { font-size: .52rem; letter-spacing: .12em; padding: 3px 7px; margin-bottom: 8px; }
  .merc-name { font-size: 1.05rem; line-height: 1.2; margin-bottom: 4px; }
  .merc-desc { font-size: .74rem; line-height: 1.45; margin-bottom: 10px; }
  .merc-price { gap: 5px; margin-bottom: 12px; }
  .merc-price .old { font-size: .78rem; }
  .merc-price .new, .merc-price .unit { font-size: 1.5rem; }
  .merc-price .iva { font-size: .66rem; }
  .merc-btn { padding: 10px 6px; font-size: .64rem; letter-spacing: .1em; }
  .gal-item.wide, .gal-item.tall { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats .stat { flex: 1 1 40%; }
  .hero-split { padding: 100px 0 48px; }
  .hero-outlet-badge { gap: 12px; padding: 12px 14px; }
  .hero-outlet-badge .hob-pct { font-size: 1.45rem; }
  .hs-stats { flex-wrap: wrap; gap: 22px 32px; margin-top: 32px; }
  .hs-img-small { border-width: 5px; }
  .merc-banner { padding: 24px 20px; }
  /* Pulsanti a tutta larghezza per tocco più comodo */
  .hero-btns, .chi-cta { flex-direction: column; align-items: stretch; }
  .hero-btns .btn, .chi-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  section { padding: 60px 0; }
  .lead { font-size: 1rem; }
  .col-info { padding: 22px 22px 24px; }
  .col-name { font-size: 1.5rem; }
  .merc-grid { gap: 11px; }
  .carousel-track { gap: 11px; }
  .carousel-track > .merc-card { flex-basis: calc(50% - 5.5px); }
  .merc-info { padding: 10px 10px 12px; }
  .merc-name { font-size: .96rem; }
  .merc-desc { font-size: .7rem; margin-bottom: 8px; }
  .merc-price .new, .merc-price .unit { font-size: 1.3rem; }
  .merc-btn { padding: 9px 4px; font-size: .6rem; letter-spacing: .08em; }
  .merc-banner .pct { font-size: 2.6rem; }
  .hero-outlet-badge { flex-wrap: wrap; padding: 14px 16px; }
  .hero-outlet-badge .hob-txt { font-size: .92rem; }
  .col-modal-bar { padding: 16px 18px; }
  .col-modal-bar .t { font-size: 1.1rem; }
  /* Scroll-top e toast più vicini ai bordi su schermi piccoli */
  #scrollTop { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}
