/* ================================================================
   LA FARM SWAG · Site-wide stylesheet
   Estende tokens.css + base.css + components.css + categories.css
   Aggiunge: nav, menu overlay, footer, layout viste, catalog modes,
             product page, gallery feed, lightbox, page transitions.
   ================================================================ */


/* ─────────────────────────────────────────────────────────
   APP-LEVEL LAYOUT
   ───────────────────────────────────────────────────────── */
body {
  perspective: 1500px;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

#view {
  flex: 1;
  position: relative;
  isolation: isolate;
}

/* Body lock-scroll quando overlay (intro o menu) attivo */
body.intro-locked,
body.menu-open {
  overflow: hidden;
  height: 100dvh;
  touch-action: none;
}


/* ─────────────────────────────────────────────────────────
   STICKY TOP NAV
   ───────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 800;
  width: 100%;
  padding: calc(var(--safe-top) + var(--sp-3)) var(--sp-4) var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  background: linear-gradient(180deg, rgba(10, 26, 18, 0.92), rgba(10, 26, 18, 0.78));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.nav[data-hidden="1"] {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-strong);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav__logo-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nav__logo-mark svg,
.nav__logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav__logo-text { display: inline-block; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-md), var(--shadow-inset);
  transition: transform var(--dur-fast) var(--ease-snappy),
              background var(--dur-base) var(--ease-out);
}
.nav__cta:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}
.nav__cta:active { transform: scale(0.97); }

.nav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(245, 240, 225, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-snappy);
}
.nav__menu-btn:hover {
  background: rgba(245, 240, 225, 0.10);
  border-color: var(--accent);
  color: var(--accent);
}
.nav__menu-btn:active { transform: scale(0.94); }
.nav__menu-icon {
  width: 22px; height: 22px;
  display: flex; flex-direction: column; gap: 4px;
  justify-content: center;
}
.nav__menu-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-snappy),
              opacity var(--dur-base) var(--ease-out);
}
.nav__menu-icon span:nth-child(1) { width: 22px; }
.nav__menu-icon span:nth-child(2) { width: 14px; align-self: flex-end; }
.nav__menu-icon span:nth-child(3) { width: 22px; }

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

@media (max-width: 520px) {
  .nav__cta { display: none; }
  .nav__logo-text { font-size: 13px; }
}


/* ─────────────────────────────────────────────────────────
   MENU OVERLAY (hamburger fullscreen)
   ───────────────────────────────────────────────────────── */
.menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 900;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(20, 44, 32, 0.55), transparent 70%),
    linear-gradient(180deg, #0E2418 0%, #050C08 100%);
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + var(--sp-5)) var(--sp-5) calc(var(--safe-bottom) + var(--sp-7));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
  overflow-y: auto;
  isolation: isolate;
}
.menu::before,
.menu::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 28%;
  z-index: 0;
  pointer-events: none;
  background-image: url("../../assets/textures/foliage.svg");
  background-position: center;
  background-size: cover;
  opacity: 0.14;
  filter: blur(2px);
}
.menu::before { left: 0; }
.menu::after  { right: 0; transform: scaleX(-1); }
@media (max-width: 760px) {
  .menu::before, .menu::after { display: none; }
}

.menu[data-open="1"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility 0s;
}

.menu__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-7);
}
.menu__brand {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  letter-spacing: 0.04em;
  color: var(--text-strong);
}
.menu__close {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(245, 240, 225, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-base), border-color var(--dur-base), transform var(--dur-fast);
}
.menu__close:hover {
  background: rgba(245, 240, 225, 0.10);
  border-color: var(--accent);
  color: var(--accent);
}
.menu__close:active { transform: scale(0.94); }

.menu__list {
  position: relative;
  z-index: 2;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-7);
  flex: 1;
}
.menu__item {
  border-bottom: 1px solid var(--border);
}
.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-2);
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out),
              padding var(--dur-base) var(--ease-snappy);
}
.menu__link:hover,
.menu__link[data-active="1"] {
  color: var(--accent);
  padding-left: var(--sp-4);
}
.menu__link-arrow {
  width: 24px; height: 24px;
  opacity: 0.4;
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-snappy);
}
.menu__link:hover .menu__link-arrow {
  opacity: 1;
  transform: translateX(4px);
}
.menu__sub {
  list-style: none;
  padding: 0 var(--sp-2) var(--sp-3) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu__sub-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--dur-base);
}
.menu__sub-link:hover {
  color: var(--text-strong);
}
.menu__sub-link::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
  margin-right: 4px;
}

.menu__cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}


/* ─────────────────────────────────────────────────────────
   PAGE COMMON (entrance reveal)
   ───────────────────────────────────────────────────────── */
.page {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 70px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.page.is-in {
  opacity: 1;
  transform: translateY(0);
}
.page__head {
  padding: var(--sp-8) 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-7);
}
.page__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.page__kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.page__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
.page__lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.5;
}
.page__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: var(--sp-3);
  transition: color var(--dur-base), gap var(--dur-base);
}
.page__back:hover { color: var(--accent); gap: var(--sp-3); }


/* ─────────────────────────────────────────────────────────
   HOW IT WORKS — 3 step cards
   ───────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-9);
}
@media (min-width: 760px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}
.how-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--dur-base) var(--ease-snappy),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.how-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.how-card__num {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--accent);
  line-height: 1;
}
.how-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.how-card__icon svg { width: 28px; height: 28px; }
.how-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: -0.015em;
}
.how-card__body {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.55;
}
.how-card__cta {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--dur-base) var(--ease-snappy);
}
.how-card:hover .how-card__cta { gap: var(--sp-3); }


/* ─────────────────────────────────────────────────────────
   MEETUP / SHIP — city/destination pages
   ───────────────────────────────────────────────────────── */
.city-hero {
  position: relative;
  padding: var(--sp-9) 0 var(--sp-8);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  margin-bottom: var(--sp-7);
}
.city-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(80% 80% at 70% 20%, rgba(242, 194, 0, 0.18), transparent 60%),
    radial-gradient(60% 70% at 20% 100%, rgba(94, 234, 203, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
}
.city-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../../assets/textures/foliage.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: screen;
}
.city-hero__inner {
  position: relative;
  z-index: 1;
  padding-inline: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.city-hero__pin {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.city-hero__pin svg { width: 16px; height: 16px; }
.city-hero__name {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 144px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}
.city-hero__sub {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.4;
}
.city-hero__cta {
  margin-top: var(--sp-3);
  display: inline-flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-9);
}
@media (min-width: 760px) {
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
}
.detail-card {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.detail-card__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.detail-card__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--text-strong);
  line-height: 1;
}
.detail-card__note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}


/* ─────────────────────────────────────────────────────────
   CATALOG — tab bar + 3 modes
   ───────────────────────────────────────────────────────── */
.cat-tabs {
  display: flex;
  gap: var(--sp-1);
  padding: 6px;
  background: rgba(245, 240, 225, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-7);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 1;
  min-width: 110px;
  padding: 10px var(--sp-4);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background var(--dur-base), color var(--dur-base);
}
.cat-tab:hover { color: var(--text-strong); }
.cat-tab[data-active="1"] {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-md);
}

/* ─── Mode 1: Sezioni (accordion) ─── */
.sez-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-9);
}
.sez {
  --cat-accent: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: border-color var(--dur-base);
}
.sez[data-open="1"] { border-color: color-mix(in oklab, var(--cat-accent) 40%, transparent); }
.sez__header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5);
  cursor: pointer;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--cat-accent) 8%, transparent) 0%,
    transparent 60%);
  transition: background var(--dur-base);
}
.sez__header:hover {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--cat-accent) 14%, transparent) 0%,
    transparent 70%);
}
.sez__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--cat-accent);
  line-height: 1;
  min-width: 70px;
}
.sez__title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  line-height: 1.1;
}
.sez__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text-strong);
  letter-spacing: -0.015em;
  line-height: 1;
}
.sez__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sez__chevron {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cat-accent);
  color: #0A1A12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-snappy);
}
.sez[data-open="1"] .sez__chevron { transform: rotate(180deg); }
.sez__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.sez[data-open="1"] .sez__body { grid-template-rows: 1fr; }
.sez__body-inner {
  overflow: hidden;
  padding: 0 var(--sp-5);
}
.sez[data-open="1"] .sez__body-inner {
  padding: 0 var(--sp-5) var(--sp-5);
}

.sez-products {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.sez-product {
  --cat-accent: var(--accent);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: background var(--dur-base);
}
.sez-product:hover { background: var(--surface-hover); }
.sez-product__chip {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background: var(--cat-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: #0A1A12;
  flex-shrink: 0;
  line-height: 1;
}
.sez-product__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.sez-product__sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.sez-product__arrow {
  color: var(--cat-accent);
  opacity: 0.6;
  transition: transform var(--dur-base) var(--ease-snappy), opacity var(--dur-base);
}
.sez-product:hover .sez-product__arrow { opacity: 1; transform: translateX(4px); }

.sez--virtual .sez__header {
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 12px,
    rgba(245, 240, 225, 0.04) 12px,
    rgba(245, 240, 225, 0.04) 24px
  );
}

/* ─── Mode 2: Prodotti grid ─── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-9);
}
@media (min-width: 720px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}
@media (min-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Mode 3: Galleria feed ─── */
.gal-empty {
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  margin-bottom: var(--sp-9);
}
.gal-empty__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.gal-empty__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--text-strong);
  margin-bottom: var(--sp-2);
}
.gal-empty__body {
  color: var(--text-muted);
  font-size: var(--fs-base);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.5;
}

.gal-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-9);
}
@media (min-width: 760px) {
  .gal-feed { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
}
@media (min-width: 1100px) {
  .gal-feed { grid-template-columns: repeat(4, 1fr); }
}
.gal-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-snappy),
              border-color var(--dur-base);
}
.gal-item:hover {
  transform: translateY(-3px);
  border-color: var(--cat-accent, var(--accent));
}
.gal-item img,
.gal-item video {
  width: 100%; height: 100%; object-fit: cover;
}
.gal-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-2) var(--sp-3);
  background: linear-gradient(180deg, transparent, rgba(10, 26, 18, 0.92));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.gal-item__type {
  position: absolute;
  top: var(--sp-2); right: var(--sp-2);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(10, 26, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-accent, var(--accent));
}
.gal-item__type svg { width: 14px; height: 14px; }


/* ═══════════════════════════════════════════════════════════
   PRODUCT PAGE (template unico, 18 istanze)
   Pattern galleria: replica MRCK/lasmoke ProductDetail.tsx
   (carosello slide-singolo · aspect-square · frecce + dot + swipe).
   Skin La Farm Swag: accent per prodotto/strain, font, palette.

   Layout:
   - Mobile (<960px): stack vertical
     back → head → strain bar → gallery → description → pricing → sticky CTA
   - Desktop (≥960px): 2-col
     back → head → strain bar (full-width)
     [gallery sticky] | [description + pricing + inline CTA]
   ═══════════════════════════════════════════════════════════ */

.prod {
  --cat-accent: var(--accent);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-block: var(--sp-3) 120px; /* bottom = spazio per sticky CTA */
}

/* ─── Back link (slim, top) ─── */
.prod__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--dur-fast), gap var(--dur-fast);
}
.prod__back:hover { color: var(--cat-accent); gap: var(--sp-2); }

/* ─── Head compact (NIENTE titolo magazine) ─── */
.prod__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
}
.prod__bc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}
.prod__bc a {
  color: var(--cat-accent);
  text-decoration: none;
}
.prod__num {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cat-accent);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}
.prod__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 40px); /* compatto, non magazine */
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0;
}

/* ─── Strain bar (slim, full-width, sopra il layout 2-col) ─── */
.prod .strain-bar {
  padding: 0;
  margin: 0;
  border: 0;
}

/* ─── LAYOUT 2-col (stack mobile, grid desktop) ─── */
.prod__layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* ─── GALLERY CAROUSEL — pattern MRCK/lasmoke ─── */
.prod-gallery {
  position: relative;
  --cat-accent: var(--cat-accent, var(--accent));
}
.prod-gallery__viewport {
  position: relative;
  aspect-ratio: 1 / 1; /* aspect-square come lasmoke */
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid color-mix(in oklab, var(--cat-accent) 30%, transparent);
  box-shadow:
    0 18px 40px color-mix(in oklab, var(--cat-accent) 16%, rgba(0, 0, 0, 0.4));
  isolation: isolate;
}
.prod-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.prod-gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.prod-gallery__slide > img,
.prod-gallery__slide > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.prod-gallery__slide > video {
  object-fit: contain;
}

.prod-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(10, 26, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 240, 225, 0.18);
  color: var(--text-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-snappy);
}
.prod-gallery__arrow:hover {
  background: rgba(10, 26, 18, 0.92);
  border-color: var(--cat-accent);
  color: var(--cat-accent);
}
.prod-gallery__arrow:active { transform: translateY(-50%) scale(0.92); }
.prod-gallery__arrow--prev { left: var(--sp-3); }
.prod-gallery__arrow--next { right: var(--sp-3); }

.prod-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-3);
}
.prod-gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 240, 225, 0.25);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 0.28s var(--ease-snappy), background var(--dur-base);
}
.prod-gallery__dot.is-active {
  width: 18px;
  background: var(--cat-accent);
}

/* Empty state (no media per strain selezionato) */
.prod-gallery--empty .prod-gallery__viewport {
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-gallery__empty-inner {
  text-align: center;
  padding: var(--sp-5);
}
.prod-gallery__empty-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text-strong);
  margin-bottom: var(--sp-2);
}
.prod-gallery__empty-body {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 420px;
  line-height: 1.5;
  margin: 0 auto;
}

/* ─── Info column ─── */
.prod__right {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.prod__desc {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin: 0;
}
.prod__pricing-wrap {
  margin: 0;
}

/* ─── Inline CTA (solo desktop, nascosto mobile) ─── */
.prod__cta--inline { display: none; }

/* ─── STICKY CTA (mobile only, sempre raggiungibile durante scroll) ─── */
.prod__sticky-cta-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, rgba(10, 26, 18, 0.94) 30%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  display: flex;
  justify-content: center;
  animation: stickyCtaIn 0.4s var(--ease-out) 0.25s both;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
/* Nascondi sticky quando il footer entra in viewport (IntersectionObserver).
   animation: none RIMUOVE il fill-mode 'both' che altrimenti terrebbe opacity:1
   (le proprietà animate vincono sulle dichiarazioni regolari). */
.prod__sticky-cta-wrap.is-hidden {
  animation: none !important;
  opacity: 0 !important;
  transform: translateY(24px) !important;
  pointer-events: none;
  visibility: hidden;
}
.prod__sticky-cta-wrap.is-hidden .prod__cta--sticky {
  pointer-events: none;
}
@keyframes stickyCtaIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.prod__cta--sticky {
  pointer-events: auto;
  width: 100%;
  max-width: 520px;
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP ≥ 960px — pattern MRCK/lasmoke
   - Header + strain bar full-width sopra
   - 2-col grid: gallery sticky sx · info dx
   - Inline CTA in info col (no sticky CTA su desktop)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 960px) {
  .prod {
    padding-block: var(--sp-4) var(--sp-9);
  }
  .prod__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--sp-7);
    row-gap: 0;
    align-items: start;
  }
  .prod__left {
    position: sticky;
    top: calc(70px + var(--sp-5)); /* nav height + padding */
    align-self: start;
  }
  .prod__right {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    min-width: 0; /* impedisce overflow grid */
  }

  /* Inline CTA visibile su desktop */
  .prod__cta--inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    min-height: 64px;
    padding: 0 var(--sp-6);
    border-radius: var(--r-pill);
    background: var(--cat-accent);
    color: #0A1A12;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: var(--fs-base);
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow:
      0 18px 38px color-mix(in oklab, var(--cat-accent) 32%, rgba(0, 0, 0, 0.5)),
      var(--shadow-inset);
    transition: transform var(--dur-fast) var(--ease-snappy), box-shadow var(--dur-base) var(--ease-out);
  }
  .prod__cta--inline:hover {
    transform: translateY(-2px);
    box-shadow:
      0 24px 50px color-mix(in oklab, var(--cat-accent) 42%, rgba(0, 0, 0, 0.5)),
      var(--shadow-inset);
  }
  .prod__cta--inline:active { transform: scale(0.97); }

  /* Sticky CTA hidden on desktop */
  .prod__sticky-cta-wrap { display: none; }

  /* Pricing-grid 1-col su desktop (tabella + calc impilati in info col) */
  .prod .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  /* Niente bottom padding extra su desktop */
  .prod { padding-bottom: var(--sp-9); }
}

/* ═══════════════════════════════════════════════════════════
   Legacy fallback styles (vecchio prod__hero non più renderizzato)
   ═══════════════════════════════════════════════════════════ */
.prod__hero {
  position: relative;
  padding: var(--sp-7) 0 var(--sp-6);
  margin-bottom: var(--sp-7);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 60% at 50% 30%,
      color-mix(in oklab, var(--cat-accent) 22%, transparent),
      transparent 70%),
    var(--bg-elevated);
}
.prod__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../../assets/textures/foliage.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: blur(1px);
}
.prod__hero-inner {
  position: relative;
  z-index: 1;
  padding-inline: var(--sp-6);
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .prod__hero-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--sp-8);
  }
}
.prod__cover-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-base);
  border: 1px solid color-mix(in oklab, var(--cat-accent) 40%, transparent);
  box-shadow:
    0 24px 60px color-mix(in oklab, var(--cat-accent) 18%, rgba(0, 0, 0, 0.55));
}
.prod__cover-wrap svg,
.prod__cover-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.prod__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.prod__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.prod__breadcrumb a {
  color: var(--cat-accent);
  text-decoration: none;
}
.prod__name {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
.prod__num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--cat-accent);
  line-height: 1;
}
.prod__desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 540px;
}
.prod__cta-wrap {
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.prod__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 68px;
  padding: 0 var(--sp-7);
  border-radius: var(--r-pill);
  background: var(--cat-accent);
  color: #0A1A12;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 18px 38px color-mix(in oklab, var(--cat-accent) 32%, rgba(0, 0, 0, 0.5)),
    var(--shadow-inset);
  transition: transform var(--dur-fast) var(--ease-snappy),
              box-shadow var(--dur-base) var(--ease-out);
}
.prod__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 50px color-mix(in oklab, var(--cat-accent) 42%, rgba(0, 0, 0, 0.5)),
    var(--shadow-inset);
}
.prod__cta:active { transform: scale(0.97); }
.prod__cta-hint {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ─── Strain pill bar (sopra pricing+galleria, pagina prodotto) ─── */
.strain-bar {
  --cat-accent: var(--accent);
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding: var(--sp-3) 0;
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.strain-bar::-webkit-scrollbar { display: none; }
.strain-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 44px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--surface-glass);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-snappy);
}
.strain-pill:hover {
  border-color: var(--cat-accent);
  color: var(--cat-accent);
  transform: translateY(-1px);
}
.strain-pill[data-active="1"] {
  background: var(--cat-accent);
  border-color: var(--cat-accent);
  color: #0A1A12;
  box-shadow: 0 4px 16px color-mix(in oklab, var(--cat-accent) 32%, transparent);
}
.strain-pill[data-active="1"]:hover {
  transform: translateY(-2px);
}
.strain-pill:active { transform: scale(0.97); }

#strain-content {
  transition: opacity 0.18s var(--ease-out);
}


/* ─── Smart pricing widget (sotto prod hero, sopra galleria) ─── */
.prod__pricing {
  margin-bottom: var(--sp-9);
}
.prod__pricing .section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 860px) {
  .pricing-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.pricing-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  overflow: hidden;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.pricing-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  background: rgba(245, 240, 225, 0.03);
}
.pricing-table tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-base);
  color: var(--text-strong);
}
.pricing-table tbody tr:first-child td { border-top: 0; }
.pricing-table tbody tr:hover { background: rgba(245, 240, 225, 0.04); }
.pricing-note {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  background: rgba(245, 240, 225, 0.02);
}
.pricing-calc {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--cat-accent) 10%, transparent), transparent 60%),
    var(--bg-elevated);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
}
.pricing-calc__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.pricing-calc__row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.pricing-calc__input {
  flex: 1;
  height: 56px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(10, 26, 18, 0.55);
  border: 1.5px solid var(--border-strong);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  width: 100%;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-fast);
}
.pricing-calc__input:focus {
  outline: none;
  border-color: var(--cat-accent, var(--accent));
}
.pricing-calc__unit {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--text-muted);
  padding: 0 var(--sp-2);
}
.pricing-calc__out {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.pricing-calc__total {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--cat-accent, var(--accent));
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pricing-calc__perg {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.prod__gallery {
  margin-bottom: var(--sp-9);
}
.prod__gallery-empty {
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
}
.prod__gallery-empty-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text-strong);
  margin-bottom: var(--sp-2);
}
.prod__gallery-empty-body {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.55;
}


/* ─────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────── */
.footer {
  position: relative;
  padding: var(--sp-8) 0 calc(var(--sp-7) + var(--safe-bottom));
  border-top: 1px solid var(--border);
  margin-top: var(--sp-7);
  background: linear-gradient(180deg, var(--bg-deep), #050C08);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
@media (min-width: 720px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer__brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer__logo-mark { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; }
.footer__logo-mark svg,
.footer__logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  color: var(--text-strong);
  letter-spacing: 0.04em;
}
.footer__tag {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 320px;
  line-height: 1.5;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer__list a {
  color: var(--text-strong);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--dur-base);
}
.footer__list a:hover { color: var(--accent); }
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 700;
  text-decoration: none;
  margin-top: var(--sp-3);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  flex-wrap: wrap;
}


/* ─────────────────────────────────────────────────────────
   LIGHTBOX (galleria)
   ───────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 12, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.lightbox[data-open="1"] {
  display: flex;
  opacity: 1;
}
/* Blocca lo scroll della pagina mentre il lightbox è aperto (no jump dietro). */
body.lb-open { overflow: hidden; }
.lightbox__media {
  max-width: min(96vw, 1200px);
  max-height: 90dvh;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__media img,
.lightbox__media video {
  max-width: 100%;
  max-height: 90dvh;
  border-radius: var(--r-md);
}

/* Variante recensione: screenshot (tipicamente verticali/alti).
   A SCORRERE è il box media interno, NON la backdrop: scrollare un elemento
   position:fixed con backdrop-filter su iOS/Telegram WebView causa flicker e
   rendering corrotto. Così la sfocatura resta ferma e l'immagine scorre dentro
   un box pulito, centrato, mai più alto dello schermo. X fissa sempre visibile. */
.lightbox--review {
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 64px) var(--sp-3) calc(var(--safe-bottom) + var(--sp-4));
}
.lightbox--review .lightbox__media {
  width: min(94vw, 460px);
  max-width: min(94vw, 460px);
  max-height: 100%;          /* mai più alto dell'area visibile */
  min-height: 0;             /* CRITICO: lascia restringere il flex item → parte lo scroll interno */
  overflow-y: auto;          /* scorre l'immagine DENTRO il box, non la backdrop */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: none;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.lightbox--review .lightbox__media img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
}
.lightbox--review .lightbox__caption { display: none; }   /* niente "Recensione cliente" */
.lightbox--review .lightbox__close {
  position: fixed;
  top: calc(var(--safe-top) + var(--sp-3));
  right: var(--sp-3);
  background: rgba(10, 26, 18, 0.92);
  border-color: var(--accent, #F2C200);
  color: var(--accent, #F2C200);
  z-index: 1010;
}
.lightbox__close {
  position: absolute;
  top: calc(var(--safe-top) + var(--sp-4));
  right: var(--sp-4);
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: rgba(245, 240, 225, 0.1);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__caption {
  position: absolute;
  bottom: calc(var(--safe-bottom) + var(--sp-4));
  left: 50%;
  transform: translateX(-50%);
  padding: 8px var(--sp-4);
  border-radius: var(--r-pill);
  background: rgba(10, 26, 18, 0.85);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}


/* ─────────────────────────────────────────────────────────
   LOADING
   ───────────────────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-9);
  color: var(--text-muted);
}
.loading__dots { display: inline-flex; gap: 6px; }
.loading__dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: loadDot 1.2s ease-in-out infinite;
}
.loading__dots span:nth-child(2) { animation-delay: 0.15s; }
.loading__dots span:nth-child(3) { animation-delay: 0.30s; }
@keyframes loadDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.7); }
  40% { opacity: 1; transform: scale(1.1); }
}


/* ─────────────────────────────────────────────────────────
   MOBILE OVERRIDES
   ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page__head { padding: var(--sp-7) 0 var(--sp-5); }
  .city-hero__inner { padding-inline: var(--sp-5); }
  .prod__hero-inner { padding-inline: var(--sp-5); }
  .sez__num { font-size: 32px; min-width: 50px; }
  .sez-product { grid-template-columns: 48px 1fr auto; }
  .sez-product__chip { width: 48px; height: 48px; font-size: 18px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
}


/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .page { opacity: 1 !important; transform: none !important; }
}

/* ─── LIVE BANNER (editabile da admin) ─── */
.lbanner {
  position: relative;
  z-index: 810;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-5);
  padding-top: calc(var(--safe-top) + 10px);
  background: var(--accent, #F2C200);
  color: #0A1A12;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-sm, 0.92rem);
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.3;
}
.lbanner[hidden] { display: none; }
.lbanner__text { flex: 1 1 auto; }
.lbanner__close {
  flex: 0 0 auto;
  background: rgba(0,0,0,0.14);
  color: inherit;
  border: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lbanner__close:hover { background: rgba(0,0,0,0.25); }

/* ─── RECENSIONI (home) ─── */
.reviews-rail {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--sp-3);
  scrollbar-width: none;
}
.reviews-rail::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: start;
  flex: 0 0 78%;
  max-width: 340px;
  background: var(--bg-elevated, #14201a);
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 18px);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.review-card__stars { color: #F2C200; font-size: 1.1rem; letter-spacing: 2px; }
.review-card__body { color: var(--text); line-height: 1.55; font-size: var(--fs-base); }
.review-card__author { color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm); margin-top: auto; }
@media (min-width: 760px) {
  .review-card { flex-basis: 320px; }
}

/* ─── RESTA IN CONTATTO (anti-ban) ─── */
.contact-warn {
  background: rgba(242, 194, 0, 0.10);
  border: 1px solid rgba(242, 194, 0, 0.45);
  border-radius: var(--r-lg, 18px);
  padding: var(--sp-5);
  color: var(--text-strong, #EDE7D6);
  font-size: var(--fs-lg, 1.05rem);
  line-height: 1.55;
  margin-bottom: var(--sp-6);
}
.contact-channels__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--text-strong);
  margin-bottom: var(--sp-4);
}
.contact-channels__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 460px;
}

/* ─── SEZIONE INFO (sotto ogni prodotto) — evidenziata ─── */
.prod-info {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border: 1.5px solid rgba(242, 194, 0, 0.45);
  border-radius: var(--r-lg, 18px);
  background:
    linear-gradient(180deg, rgba(242, 194, 0, 0.09), transparent 55%),
    var(--bg-elevated, #14201a);
  box-shadow: 0 0 0 1px rgba(242, 194, 0, 0.18),
              0 14px 40px rgba(0, 0, 0, 0.35);
}
.prod-info__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 6.5vw, 32px);
  color: var(--accent, #F2C200);
  line-height: 1.05;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid rgba(242, 194, 0, 0.35);
}
.prod-info__terms {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.prod-info__terms li {
  color: var(--text-strong, #EDE7D6);
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 600;
  line-height: 1.4;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.prod-info__booking {
  color: var(--text);
  line-height: 1.55;
  font-size: clamp(14px, 3.8vw, 16px);
  padding: var(--sp-4);
  background: rgba(242, 194, 0, 0.12);
  border-left: 4px solid var(--accent, #F2C200);
  border-radius: 10px;
  margin-bottom: var(--sp-4);
}
.prod-info__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  align-items: baseline;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border);
}
.prod-info__label { color: var(--accent, #F2C200); font-weight: 800; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.03em; min-width: 110px; }
.prod-info__value { color: var(--text-strong); font-weight: 700; font-size: clamp(15px, 4vw, 17px); }
.prod-info__link { color: var(--accent, #F2C200); text-decoration: none; }

@media (max-width: 640px) {
  .prod-info { padding: var(--sp-4); }
  .prod-info__label { min-width: 100%; }
}

/* ─── RECENSIONI · screenshot (mosaico masonry, immagine intera) ─── */
.reviews-shots {
  column-count: 2;
  column-gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
@media (min-width: 640px) { .reviews-shots { column-count: 3; column-gap: var(--sp-4); } }
@media (min-width: 1040px) { .reviews-shots { column-count: 4; } }
.review-shot {
  display: block;
  width: 100%;
  margin: 0 0 var(--sp-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated, #14201a);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -webkit-tap-highlight-color: transparent;   /* non cliccabile: niente flash al tap */
}
.review-shot img {
  width: 100%;
  height: auto;        /* altezza naturale → screenshot intero, niente taglio */
  display: block;
}
