/* ============================================================
   Arredamenti Zolesi — concept 2026
   Dark heritage luxury · Fraunces + Instrument Sans
   ============================================================ */

:root {
  --bg: #0b0a08;
  --bg-2: #12100d;
  --ink: #f2ede4;
  --muted: #948c7f;
  --gold: #c9a36a;
  --gold-bright: #e3c088;
  --line: rgba(242, 237, 228, 0.09);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* `clip`, never `hidden`: overflow-x:hidden turns the body into a scroll
     container, which silently disables every `position: sticky` inside it —
     that is, the pinned story and the horizontal gallery stop pinning.
     `clip` hides the same horizontal spill without that side effect. */
  overflow-x: clip;
}

::selection { background: var(--gold); color: var(--bg); }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

em { font-style: italic; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 20px;
}

.h2 {
  font-size: clamp(40px, 6vw, 84px);
  text-wrap: balance;
}

.section-head {
  padding: 0 clamp(24px, 6vw, 96px);
  margin-bottom: clamp(40px, 6vw, 88px);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  /* `transform` is deliberately NOT transitioned here: GSAP owns it (magnetic
     hover, reveal animations) and a CSS transition on the same property fights
     it — that is what left the map button stuck 40px off-centre. */
  transition: color 0.3s var(--ease-out), background-color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
  will-change: transform;
}

/* sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after { left: 130%; }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn--ghost {
  background: transparent;
  border-color: rgba(242, 237, 228, 0.25);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn--outline {
  background: transparent;
  border-color: rgba(242, 237, 228, 0.25);
  color: var(--ink);
  min-height: 42px;
  padding: 8px 22px;
}
.btn--outline:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

.btn--lg { min-height: 60px; padding: 16px 40px; font-size: 17px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__inner { text-align: center; overflow: hidden; }

.preloader__brand {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.preloader__year {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--gold);
}

.preloader__counter {
  position: absolute;
  bottom: 32px;
  right: 40px;
  font-family: var(--font-display);
  font-size: 15vw;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 228, 0.14);
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 99; pointer-events: none; }

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__dot {
  width: 6px; height: 6px;
  background: var(--gold);
}

.cursor__ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(201, 163, 106, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.cursor__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.25s;
}

.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  background: rgba(201, 163, 106, 0.16);
  border-color: var(--gold);
}

.cursor.is-label .cursor__ring {
  width: 84px; height: 84px;
  background: var(--gold);
  border-color: var(--gold);
}
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -16px;
  z-index: 98;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grain 1.4s steps(1) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-7px, 5px, 0); }
  40% { transform: translate3d(6px, -7px, 0); }
  60% { transform: translate3d(-5px, -5px, 0); }
  80% { transform: translate3d(7px, 6px, 0); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, backdrop-filter 0.4s;
}

.nav.is-hidden { transform: translateY(-100%); }

.nav.is-scrolled {
  background: rgba(11, 10, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 13px;
}

/* real Zolesi monogram, traced from the brand mark (masked so it can be tinted) */
.nav__logo-mark {
  display: block;
  width: 27px;
  height: 29px;
  background-color: var(--gold);
  -webkit-mask: url("../img/logo-z.svg") no-repeat center / contain;
  mask: url("../img/logo-z.svg") no-repeat center / contain;
  transition: background-color 0.3s;
}

.nav__logo:hover .nav__logo-mark { background-color: var(--gold-bright); }

.nav__logo-text {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}

.nav__links a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 8px 0;
  transition: color 0.3s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  background: none;
  border: none;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}

.lang-toggle:hover { color: var(--gold-bright); }

.menu__foot .lang-toggle { align-self: flex-start; padding-left: 0; color: var(--gold); }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* narrow phones: the wordmark + language toggle + burger must all fit,
   otherwise the menu button is pushed off-screen and becomes unreachable */
@media (max-width: 420px) {
  .nav { padding: 0 16px; }
  .nav__logo { gap: 9px; }
  .nav__logo-mark { width: 23px; height: 25px; }
  .nav__logo-text { font-size: 11px; letter-spacing: 0.12em; }
  .nav__right { gap: 6px; }
  .lang-toggle { padding: 8px 6px; letter-spacing: 0.12em; }
  .burger { width: 40px; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }

  /* nearly opaque on phones: content scrolling underneath must never ghost
     through the logo or the language toggle */
  .nav.is-scrolled { background: rgba(11, 10, 8, 0.97); }
}

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

.menu__links { display: flex; flex-direction: column; gap: 4px; }

.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1.25;
  padding: 4px 0;
}

.menu__links a em {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.menu__foot {
  position: absolute;
  bottom: 40px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.menu__foot a { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* the top padding is a hard floor: without it, on a short screen the
     content is simply laid out from y=0 and slides under the fixed navbar */
  padding: calc(var(--nav-h) + 16px) clamp(24px, 6vw, 96px) clamp(96px, 12vh, 140px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.05);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(11, 10, 8, 0.55) 45%, rgba(11, 10, 8, 0.25) 100%);
}

.hero__watermark {
  position: absolute;
  top: 10vh;
  right: -4vw;
  z-index: 2;
  display: block;
  height: 62vh;
  aspect-ratio: 928 / 985;
  background-color: rgba(201, 163, 106, 0.2);
  -webkit-mask: url("../img/logo-z.svg") no-repeat center / contain;
  mask: url("../img/logo-z.svg") no-repeat center / contain;
  pointer-events: none;
}

.hero__content { position: relative; z-index: 3; max-width: 1080px; }

/* The reveal masks each word and clips to the line box, so a line-height below
   the font's full ascender+descender (~1.25em in Fraunces) cuts descenders —
   the "q" of "qualità", the "g" of "progetto". The box is given the room it
   needs, and the visual tightness is restored with a negative margin. */
.hero__title {
  font-size: clamp(46px, 8.4vw, 128px);
  line-height: 1.26;
}

.hero__line { display: block; }

.hero__line:not(:last-child) { margin-bottom: -0.28em; }

.hero__line--accent em { color: var(--gold); }

.hero__sub {
  margin-top: 28px;
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__foot {
  position: absolute;
  left: clamp(24px, 6vw, 96px);
  right: clamp(24px, 6vw, 96px);
  bottom: 28px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }

.hero__scroll i {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollHint 2.2s var(--ease-out) infinite;
}

@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 700px) {
  .hero__loc { display: none; }
  .hero__watermark { height: 34vh; top: 12vh; right: -8vw; }
}

/* short phones (SE-sized, or any device in landscape-ish height): tighten the
   hero so the whole block still fits one screen instead of growing past it */
@media (max-width: 900px) and (max-height: 720px) {
  /* must clear the absolutely-positioned "Scorri" indicator at the bottom */
  .hero { padding-bottom: 86px; }
  .hero__title { font-size: clamp(32px, 7.4vw, 44px); }
  .hero__sub { margin-top: 16px; font-size: 15px; }
  .hero__cta { margin-top: 22px; gap: 10px; }
  .hero__cta .btn { min-height: 46px; padding: 10px 22px; }
  .hero__watermark { height: 30vh; }
}

/* ---------- Marquee brand ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow-x: auto;
}

.marquee, .recensioni__marquee {
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.marquee::-webkit-scrollbar,
.recensioni__marquee::-webkit-scrollbar { display: none; }

.marquee.is-dragging, .recensioni__marquee.is-dragging { cursor: grabbing; }
.marquee.is-dragging *, .recensioni__marquee.is-dragging *,
.htrack.is-dragging * { user-select: none; }

.marquee__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-style: italic;
  color: var(--muted);
}

.marquee__track i {
  font-size: 9px;
  font-style: normal;
  color: var(--gold);
}

/* ---------- Storia (accordion) ---------- */
.storia {
  padding: clamp(96px, 12vh, 160px) clamp(24px, 6vw, 96px);
  scroll-margin-top: var(--nav-h);
}

.storia__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.storia__list {
  margin-top: clamp(28px, 4vh, 48px);
  border-top: 1px solid var(--line);
}

.storia__item { border-bottom: 1px solid var(--line); }

.storia__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vh, 32px) 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
}

.storia__toggle:hover { color: var(--gold-bright); }

.storia__label {
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* thin gold plus that turns into a close mark when the item opens */
.storia__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform 0.45s var(--ease-out);
}

.storia__icon::before,
.storia__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--gold);
}

.storia__icon::before { width: 22px; height: 1.5px; }
.storia__icon::after { width: 1.5px; height: 22px; }

.storia__item.is-open .storia__icon { transform: rotate(45deg); }

/* the panel collapses on its grid row: soft height + fade, no JS measuring */
.storia__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.55s var(--ease-out), opacity 0.4s var(--ease-out),
              visibility 0s linear 0.55s;
}

.storia__item.is-open .storia__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows 0.55s var(--ease-out), opacity 0.4s var(--ease-out);
}

.storia__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.storia__body {
  max-width: 720px;
  margin: 0 auto;
  padding: 6px 4px clamp(24px, 4vh, 40px);
}

.storia__figure { margin: 0 0 18px; }

.storia__figure img {
  height: clamp(300px, 52vh, 540px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  filter: saturate(0.78) contrast(1.02) brightness(0.94);
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, rgba(0, 0, 0, 0.72) 80%, rgba(0, 0, 0, 0.26) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 64%, rgba(0, 0, 0, 0.72) 80%, rgba(0, 0, 0, 0.26) 93%, transparent 100%);
}

.storia__text {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .storia__label { font-size: clamp(19px, 5vw, 26px); }
  .storia__figure img { height: clamp(260px, 60vw, 420px); }
  .storia__text { font-size: 15px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .storia__panel,
  .storia__item.is-open .storia__panel,
  .storia__icon,
  .storia__toggle { transition: none; }
}


/* ---------- Collezioni (horizontal) ---------- */
.collezioni { position: relative; background: var(--bg-2); }

/* The gallery is a genuine horizontal scroller: the page never gets hijacked,
   the strip is swiped/dragged sideways. Being plain CSS overflow, it keeps
   working with reduced motion on and with JavaScript disabled. */
.collezioni__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 10vh, 120px) 0 clamp(48px, 7vh, 88px);
}

.collezioni__head {
  padding: 0 clamp(24px, 6vw, 96px);
  margin-bottom: clamp(32px, 5vh, 64px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* the eyebrow stacks above the heading exactly as in every other section head;
   `space-between` on the parent only has to push the drag hint to the far edge,
   so the two must be grouped — as three siblings the heading ended up stranded
   in the middle of the row. */
.collezioni__headline { min-width: 0; }

.collezioni__head .eyebrow { margin-bottom: 12px; }

.collezioni__hint {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.htrack {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  padding: 0 clamp(24px, 6vw, 96px);
  overflow-x: auto;
  overscroll-behavior-x: contain;      /* don't chain into browser back-swipe */
  scroll-snap-type: none;
  scroll-padding-inline: clamp(24px, 6vw, 96px);
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.htrack::-webkit-scrollbar { display: none; }

.htrack.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.htrack.is-dragging a { pointer-events: none; }   /* a drag must not open a card */

.panel {
  position: relative;
  width: clamp(300px, 34vw, 520px);
  flex-shrink: 0;
  scroll-snap-align: start;
}

.panel__num {
  position: absolute;
  top: -0.35em;
  left: -8px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 110px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 228, 0.28);
  pointer-events: none;
}

.panel__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}

.panel__media img {
  width: 110%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.5s var(--ease-out);
  will-change: transform;
}

.panel:hover .panel__media img { filter: saturate(1.05); }

/* caption overlaid on the image so it is always visible while scrolling */
.panel__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 56px 24px 22px;
  background: linear-gradient(to top, rgba(11, 10, 8, 0.92) 0%, rgba(11, 10, 8, 0.55) 55%, transparent 100%);
  border-radius: 0 0 4px 4px;
  pointer-events: none;
}

.panel__body h3 { font-size: clamp(24px, 2.4vw, 36px); }

.panel__body h3 em { color: var(--gold); }

.panel__brands {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.72);
}

/* clickable brand links inside the caption overlay */
.panel__brands a {
  pointer-events: auto;
  white-space: nowrap;          /* never split a brand name across lines */
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}

.panel__brands a:hover {
  color: var(--gold-bright);
  border-color: rgba(227, 192, 136, 0.5);
}

.panel__brands i {
  font-style: normal;
  margin: 0 7px;
  color: rgba(242, 237, 228, 0.35);
}

/* mobile: native horizontal scroll */
@media (max-width: 900px) {
  /* same scroll-driven horizontal gallery as desktop, just narrower cards */
  .panel { width: 76vw; }
  .panel__media { aspect-ratio: 3 / 4; }
  .panel__body { padding: 48px 18px 18px; }
  .panel__body h3 { font-size: clamp(21px, 5.6vw, 28px); }
  .panel__brands { font-size: 11px; letter-spacing: 0.04em; }
  .panel__brands i { margin: 0 5px; }
  .collezioni__head { margin-bottom: 22px; }
  .htrack { gap: 18px; }
}

/* ---------- Valori ---------- */
.valori {
  position: relative;
  padding: clamp(100px, 14vh, 180px) 0;
  overflow: hidden;
}

/* owner portrait, soft background presence */
.valori__portrait {
  position: absolute;
  right: clamp(-30px, 2vw, 80px);
  bottom: 0;
  width: min(46vw, 620px);
  margin: 0;
  pointer-events: none;
  z-index: 0;
}

.valori__portrait img {
  width: 100%;
  height: auto;
  opacity: 0.3;
  filter: grayscale(1) sepia(0.45) hue-rotate(-12deg) saturate(0.85) brightness(0.62) contrast(1.08);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 16%);
  mask-image: linear-gradient(to top, transparent 0%, #000 16%);
}

.valori__portrait-label {
  position: absolute;
  right: calc(100% + 20px);
  bottom: 44px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.85;
}

.valori__list { list-style: none; position: relative; z-index: 1; }

.valore {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(28px, 4vh, 44px) clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--line);
  position: relative;
  transition: background-color 0.4s var(--ease-out);
}

.valore:last-child { border-bottom: 1px solid var(--line); }

.valore:hover { background: rgba(201, 163, 106, 0.045); }

.valore__num {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

/* hover uses `translate`, not `transform`: GSAP owns `transform` for the
   entrance animation and the two must not fight over the same property */
.valore__title {
  font-size: clamp(30px, 4vw, 56px);
  transition: translate 0.5s var(--ease-out), color 0.4s;
}

.valore:hover .valore__title {
  translate: 12px 0;
  color: var(--gold-bright);
}

.valore__text {
  color: var(--muted);
  max-width: 52ch;
  font-size: clamp(15px, 1.2vw, 17px);
}

@media (max-width: 700px) {
  .valore { grid-template-columns: 1fr; gap: 8px; padding-block: 26px; }

  /* the portrait stays on mobile: smaller, softer, tucked behind the last rows */
  .valori__portrait {
    width: min(82vw, 400px);
    right: -8vw;
  }
  .valori__portrait img { opacity: 0.2; }
  .valori__portrait-label { display: none; }
}

/* ---------- Recensioni ---------- */
.recensioni {
  padding: clamp(100px, 14vh, 180px) 0;
  background: var(--bg-2);
  overflow: hidden;
}

.recensioni__meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}

.recensioni__meta strong {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  font-weight: 400;
}

.recensioni__meta a { color: var(--gold); border-bottom: 1px solid rgba(201, 163, 106, 0.4); }

.stars { color: var(--gold); letter-spacing: 4px; font-size: 15px; }

/* on phones the flex row broke this line into ragged columns; letting it flow
   as normal inline text keeps it reading like one sentence */
@media (max-width: 700px) {
  .recensioni__meta { display: block; line-height: 1.9; }
  .recensioni__meta .stars { margin-right: 8px; }
  .recensioni__meta strong { margin-right: 3px; }
}

.recensioni__marquee { overflow-x: auto; }

.recensioni__track {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  width: max-content;
  padding: 0 clamp(24px, 6vw, 96px);
  will-change: transform;
}

.review {
  position: relative;
  width: min(420px, 82vw);
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 32px 30px;
  background: rgba(11, 10, 8, 0.5);
  transition: border-color 0.4s var(--ease-out);
  will-change: transform;
}

.review:hover {
  border-color: rgba(201, 163, 106, 0.45);
}

/* the whole card is a link to the Google listing; the label sits top-right,
   clear of the quote mark on the left and of the name/date row at the bottom */
.review__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  padding: 15px 22px 0;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  opacity: 0.5;
  transition: opacity 0.35s var(--ease-out);
}

.review:hover .review__link,
.review__link:focus-visible { opacity: 1; }

.review__mark {
  position: absolute;
  top: 6px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}

.review p {
  font-size: 15.5px;
  color: var(--ink);
  opacity: 0.85;
}

.review footer {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.review cite {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--gold-bright);
}

.review time { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(140px, 22vh, 260px) clamp(24px, 6vw, 96px);
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(201, 163, 106, 0.13), transparent 70%);
  pointer-events: none;
}

.cta__title {
  position: relative;
  font-size: clamp(52px, 9vw, 140px);
  line-height: 1.26;                 /* room for the descender of "progetto." */
}

.cta__line { display: block; }

.cta__line:not(:last-child) { margin-bottom: -0.26em; }

.cta__title em { color: var(--gold); }

.cta__sub {
  position: relative;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
}

.cta__buttons {
  position: relative;
  margin-top: 44px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Mappa ---------- */
.mappa {
  padding: clamp(100px, 14vh, 180px) clamp(24px, 6vw, 96px);
  background: var(--bg-2);
}

.mappa__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.mappa__title { margin-bottom: 4px; }

.mappa__title em { color: var(--gold); }

.mappa__addr {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  margin: 20px 0 32px;
}

.mappa__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(201, 163, 106, 0.06), transparent 70%),
    var(--bg);
}

.mappa__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.88) hue-rotate(185deg) grayscale(0.35) contrast(0.92);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}

.mappa__frame iframe.is-ready { opacity: 1; }

.mappa__load {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.3s, opacity 0.5s var(--ease-out);
}

.mappa__load svg { color: var(--gold); }

.mappa__load:hover { color: var(--gold-bright); }

.mappa__load small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .mappa__inner { grid-template-columns: 1fr; }
  /* the directions button reads better centred once the column is full width */
  .mappa__info .btn { display: flex; width: fit-content; margin: 0 auto; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(64px, 10vh, 110px) clamp(24px, 6vw, 96px) 0;
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 80px);
  max-width: 1200px;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__col p, .footer__col a {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer__col a:hover { color: var(--gold-bright); }

.footer__note { font-size: 13.5px; opacity: 0.75; }

.footer__social { margin-top: 18px; display: flex; gap: 20px; }
.footer__social a { display: inline; }

.footer__bottom {
  margin-top: clamp(48px, 8vh, 90px);
  padding: 24px 0 140px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__privacy {
  position: relative;
  z-index: 1;
  color: var(--muted);
  border-bottom: 1px solid rgba(201, 163, 106, 0.4);
  transition: color 0.3s;
}

.footer__privacy:hover { color: var(--gold-bright); }

.footer__watermark {
  position: absolute;
  bottom: -0.32em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 163, 106, 0.18);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Category pages ---------- */
.nav__left { display: flex; align-items: center; }

.nav__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 14px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}

.nav__back:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateX(-3px);
}

@media (max-width: 560px) {
  /* the arrow already covers "go back", so the button can step aside */
  .nav__back { width: 36px; height: 36px; margin-right: 10px; }
  #backLink { display: none; }
}

.cat-hero {
  position: relative;
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 48px) clamp(24px, 6vw, 96px) clamp(48px, 8vh, 84px);
  overflow: hidden;
}

.cat-hero__media { position: absolute; inset: 0; z-index: 0; }

.cat-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.85) contrast(1.04);
}

.cat-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--bg) 3%, rgba(11, 10, 8, 0.6) 55%, rgba(11, 10, 8, 0.3) 100%);
}

.cat-hero__num {
  position: absolute;
  top: calc(var(--nav-h) + 8px);
  right: -1vw;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(120px, 26vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 163, 106, 0.2);
  pointer-events: none;
}

.cat-hero__content { position: relative; z-index: 3; max-width: 900px; }

.cat-hero__title { font-size: clamp(40px, 7.4vw, 92px); }

.cat-hero__title em { color: var(--gold); font-style: normal; }

.cat-hero__lead {
  margin-top: 20px;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  text-wrap: pretty;
}

.cat-brands { padding: clamp(64px, 10vh, 120px) clamp(24px, 6vw, 96px) clamp(40px, 6vh, 72px); }

/* auto-fit, not auto-fill: categories carry 1 to 4 brands, and auto-fill kept
   the empty tracks — Cucine's three cards sat in a four-column row with a hole
   on the right, and Trasformabili's single card had three.
   The max stays `1fr`: a definite max (e.g. 420px) would be used to compute the
   repetition count and drop the row to two columns. The lone-card case is
   handled on the card instead. */
.brand-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vh, 44px);
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  /* a category with a single brand gets one full-width track; cap the card so
     it keeps a normal shape, left-aligned under the heading like every other
     row of cards rather than stretched across the whole row */
  max-width: 420px;
  margin-inline-end: auto;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.35s var(--ease-out), background-color 0.35s var(--ease-out),
              transform 0.35s var(--ease-out);
}

.brand-card:hover {
  border-color: rgba(201, 163, 106, 0.45);
  background: rgba(201, 163, 106, 0.05);
  transform: translateY(-3px);
}

.brand-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.15;
}

.brand-card__host {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.brand-card svg { color: var(--gold); flex-shrink: 0; }

.brand-card:hover svg { color: var(--gold-bright); }

.cat-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}

.cat-cta {
  position: relative;
  padding: clamp(72px, 12vh, 140px) clamp(24px, 6vw, 96px);
  text-align: center;
  overflow: hidden;
}

.cat-cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(201, 163, 106, 0.12), transparent 70%);
  pointer-events: none;
}

.cat-cta__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(32px, 5.2vw, 68px);
}

.cat-cta__lead {
  position: relative;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
}

.cat-cta__buttons {
  position: relative;
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cat-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 clamp(24px, 6vw, 96px);
  padding: 28px 0 clamp(56px, 9vh, 96px);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.cat-nav__link, .cat-nav__all {
  color: var(--muted);
  transition: color 0.3s;
}

.cat-nav__link span { color: var(--ink); }

.cat-nav__link:hover, .cat-nav__all:hover { color: var(--gold-bright); }

.cat-nav__all {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11.5px;
}

@media (max-width: 700px) {
  .cat-nav { font-size: 13px; }
  .cat-nav__all { order: 3; width: 100%; text-align: center; padding-top: 6px; }
}

/* the panel is now a link to its category page */
.panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  transition: gap 0.35s var(--ease-out);
}

.panel:hover .panel__cta { gap: 13px; }

/* ---------- Cookie consent (modal: dimmed page, scroll locked) ---------- */
.cookies-scrim {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: rgba(11, 10, 8, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cookies-scrim[hidden] { display: none; }

.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 40px 32px;
  background: rgba(18, 16, 13, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 163, 106, 0.32);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.cookies[hidden] { display: none; }

.cookies h3 {
  font-size: clamp(24px, 3vw, 30px);
}

.cookies h3 em { color: var(--gold); }

.cookies p {
  font-size: 16px;
  color: var(--muted);
}

.cookies p a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 163, 106, 0.4);
  transition: color 0.3s;
}

.cookies p a:hover { color: var(--gold-bright); }

.cookies__actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
  margin-top: 6px;
}

.cookies .btn { min-height: 52px; padding: 12px 34px; font-size: 15px; }

@media (max-width: 600px) {
  .cookies { padding: 28px 24px; }
  .cookies__actions { flex-direction: column-reverse; }
  .cookies .btn { width: 100%; justify-content: center; }
}

/* ---------- Legal page ---------- */
.legal {
  padding: calc(var(--nav-h) + clamp(48px, 8vh, 96px)) clamp(24px, 6vw, 96px) clamp(64px, 10vh, 120px);
}

.legal__article { max-width: 720px; }

.legal__title {
  font-size: clamp(40px, 6vw, 72px);
  margin: 8px 0 40px;
}

.legal section { margin-bottom: 36px; }

.legal h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.legal p { color: var(--muted); font-size: 16px; }

.legal p a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 163, 106, 0.4);
  transition: color 0.3s;
}

.legal p a:hover { color: var(--gold-bright); }

.legal__updated {
  margin-top: 48px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer--legal { padding-top: 0; }

.footer--legal .footer__bottom { margin-top: 0; padding-bottom: 40px; }

.footer--legal .footer__bottom a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 163, 106, 0.4);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Titolo di sezione riservato ai lettori di schermo e ai motori di ricerca */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
