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

:root {
  --gold:        #B8935A;
  --gold-light:  #D4B48A;
  --cream:       #FAF8F5;
  --warm-white:  #FFFFFF;
  --light-gray:  #F2EFE9;
  --border:      #E8E3DB;
  --text-dark:   #1C1A17;
  --text-mid:    #5A554C;
  --text-light:  #9A9288;
  --spacing:     80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ===================== NAV ===================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 90px;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-logo { text-decoration: none; }
.nav-logo img { height: 56px; display: block; }

.nav-brand-sub {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 11px; /* Dimensione testo link desktop */
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }

.nav-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-icon {
  width: 18px;
  height: 18px;
  stroke: var(--text-mid);
  fill: none;
  stroke-width: 1.2;
  cursor: pointer;
  transition: stroke 0.25s;
}
.nav-icon:hover { stroke: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px; /* Spaziatura / Dimensione del Tasto */
  background: var(--gold);
  border: 1px solid var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: 9px; /* Dimensione testo tasto */
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm-white);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.nav-cta:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   RESPONSIVE & HAMBURGER MENU SYSTEM
   ========================================================================== */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
  z-index: 210;
  margin-left: 20px;
}

.nav-hamburger span {
  width: 100%;
  height: 1.5px;
  background-color: var(--text-dark);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.h-desktop-only { display: inline-flex; }

/* MEDIA QUERY: Sincronizzazione Mobile — breakpoint unificato a 1024px */
@media screen and (max-width: 1024px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--warm-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 200;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 40px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 16px;
    letter-spacing: 0.2em;
  }

  .collection-feature,
  .collection-feature.feature-reversed {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
}

/* ===================== HERO ===================== */
.hero-wrap { background: var(--warm-white); }

.hero-collezioni {
  position: relative;
  height: 52vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(140deg, #1C1A17 0%, #2C2820 40%, #1C1A14 100%);
}

.hero-collezioni .hero-atm {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 10% 60%, rgba(184,147,90,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0,0,0,0.5) 0%, transparent 70%);
}

.hero-collezioni .hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.012) 59px, rgba(255,255,255,0.012) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.012) 59px, rgba(255,255,255,0.012) 60px);
}

.hero-collezioni-content {
  position: relative;
  z-index: 10;
  padding: 0 56px 32px;
  width: 100%;
}

.hero-collezioni .hero-eyebrow {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.hero-collezioni .hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-collezioni .hero-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero-collezioni .hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-collezioni .hero-sub {
  font-size: 13.2px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.7;
}

/* ===================== LAYOUT ===================== */
.collezioni-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: var(--spacing);
}

/* ===================== SIDEBAR ===================== */
.sidebar {
  position: sticky;
  top: 114px;
  border-right: 1px solid var(--border);
  padding-right: 40px;
}

.sidebar-title {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sidebar-title::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

/* Accordion */
.ac-item { border-bottom: 1px solid var(--border); }
.ac-item:first-of-type { border-top: 1px solid var(--border); }

.ac-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  gap: 10px;
  transition: color 0.25s;
}
.ac-title:hover { color: var(--gold); }

.ac-arrow {
  width: 14px;
  height: 14px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s, stroke 0.25s;
  flex-shrink: 0;
}
.ac-item.open .ac-arrow { transform: rotate(180deg); }
.ac-title:hover .ac-arrow { stroke: var(--gold); }

.ac-content {
  display: none;
  padding-bottom: 16px;
}
.ac-item.open .ac-content { display: block; }

.ac-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ac-content ul li a {
  display: block;
  font-size: 12.1px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  text-decoration: none;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.ac-content ul li a:hover,
.ac-content ul li a.active {
  color: var(--gold);
  border-left-color: var(--gold);
}

/* Filter pills */
.sidebar-filter {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.sidebar-filter-title {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border: 1px solid var(--border);
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  background: transparent;
  transition: all 0.25s;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--warm-white);
}

/* ===================== CONTENUTO PRINCIPALE ===================== */

/* Banner categoria */
.cat-banner {
  background: linear-gradient(140deg, #1C1A17 0%, #2C2820 50%, #1A1810 100%);
  padding: 48px 56px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.cat-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(184,147,90,0.06);
  pointer-events: none;
}

.cat-banner-eyebrow {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.cat-banner-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.cat-banner-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cat-banner-title em {
  font-style: italic;
  color: var(--gold);
  text-transform: none;
}

.cat-banner-desc {
  font-size: 13.2px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 360px;
  margin-top: 16px;
  letter-spacing: 0.04em;
}

.cat-banner-num {
  font-family: 'Jost', sans-serif;
  font-size: 132px;
  font-weight: 400;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  position: absolute;
  right: 56px;
  bottom: -10px;
  letter-spacing: -0.05em;
  pointer-events: none;
}

/* Intestazione sezione */
.col-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.col-section-label {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.col-section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.col-section-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.col-section-title em { font-style: italic; color: var(--gold); }

.col-link-all {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s;
}
.col-link-all:hover { color: var(--gold); border-color: var(--gold); }

/* Griglia prodotti */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.prod-grid.two-col  { grid-template-columns: repeat(2, 1fr); }
.prod-grid.four-col { grid-template-columns: repeat(4, 1fr); }

/* Card prodotto */
.prod-card {
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}
.prod-card:hover { background: var(--light-gray); }
.prod-card:hover .prod-img-inner { transform: scale(1.04); }

.prod-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.prod-img.tall { aspect-ratio: 3/4; }

.prod-img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

/* Sfondi placeholder */
.scene-moderno { background: linear-gradient(135deg, #D4CCC0 0%, #C0B8AC 50%, #A8A098 100%); }
.scene-classico { background: linear-gradient(140deg, #C8B898 0%, #B4A484 50%, #A09070 100%); }
.scene-country  { background: linear-gradient(135deg, #C0B498 0%, #A8A080 50%, #948C70 100%); }
.scene-cucina   { background: linear-gradient(140deg, #D0C8BC 0%, #BCB4A8 50%, #A8A094 100%); }
.scene-notte    { background: linear-gradient(135deg, #BCC0C8 0%, #A8ACB4 50%, #949AA4 100%); }
.scene-bagno    { background: linear-gradient(140deg, #C8D0D4 0%, #B4BCC0 50%, #A0A8AE 100%); }
.scene-tappeto  { background: linear-gradient(135deg, #C4B8A8 0%, #B0A494 50%, #9C9080 100%); }
.scene-dark2    { background: linear-gradient(135deg, #3C3428 0%, #504840 50%, #3C3020 100%); }

.prod-body { padding: 20px 24px 24px; }

.prod-cat {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prod-cat::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.prod-name {
  font-family: 'Jost', sans-serif;
  font-size: 19.8px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.prod-desc {
  font-size: 12.1px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-light);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ===================== CTA STRIP ===================== */
.cta-strip {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  padding-right: 30px;
  padding-left: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 48px;
}

.cta-strip-text {
  font-family: 'Jost', sans-serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.2;
}
.cta-strip-text em { font-style: italic; color: var(--gold); }

.cta-strip-sub {
  font-size: 13.2px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  margin-top: 10px;
  line-height: 1.75;
  max-width: 400px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 40px;
  border: 1px solid var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.btn-cta:hover {
  background: var(--gold);
  color: var(--warm-white);
}

/* ===================== FOOTER ===================== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 56px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-copy {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-light);
}
.footer-copy a { color: var(--text-light); text-decoration: none; transition: color 0.25s; }
.footer-copy a:hover { color: var(--gold); }

.footer-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.25s, border-color 0.25s;
}
.footer-back:hover { color: var(--gold); border-color: var(--gold); }

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ===================== RESPONSIVE TABLET (max 1024px) ===================== */
@media (max-width: 1024px) {

  nav { padding: 0 24px; height: 72px; }

  .collezioni-wrap {
    grid-template-columns: 1fr;
    padding: 0 24px;
    padding-top: 48px;
    gap: 32px;
  }

  .sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 32px;
    /* Sidebar a colonna singola su tablet: accordion impilati, filtro sotto */
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .sidebar-title { margin-bottom: 16px; }
  .sidebar-filter {
    margin-top: 24px;
    padding-top: 24px;
  }

  .cat-banner { padding: 40px 32px; }

  .prod-grid              { grid-template-columns: repeat(2, 1fr); }
  .prod-grid.four-col     { grid-template-columns: repeat(2, 1fr); }
}

/* ===================== RESPONSIVE MOBILE (max 768px) ===================== */
@media (max-width: 768px) {

  nav { height: 64px; }
  .hero-collezioni { height: 55vh; }
  .hero-collezioni-content { padding: 0 24px 36px; }
  .hero-collezioni .hero-sub { font-size: 12px; }

  .collezioni-wrap { padding: 0 16px; padding-top: 40px; }

  .sidebar { grid-template-columns: 1fr; }
  .sidebar-title { grid-column: span 1; }

  .prod-grid,
  .prod-grid.two-col,
  .prod-grid.four-col { grid-template-columns: 1fr 1fr; }

  .cat-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 20px;
  }
  .cat-banner-num { display: none; }

  .col-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 16px;
  }
  .btn-cta { width: 100%; justify-content: center; }

  footer { padding: 24px 16px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  #lb-close { color: var(--warm-white, #FAF8F5); text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
}

/* ===================== RESPONSIVE SMALL (max 480px) ===================== */
@media (max-width: 480px) {
  .prod-grid,
  .prod-grid.two-col,
  .prod-grid.four-col { grid-template-columns: 1fr; }
}

/* ===================== FILTRO ===================== */
[data-stile] {
  transition: opacity 0.35s ease;
}
[data-stile][style*="display: none"] {
  pointer-events: none;
}


  /* ── STILE ALLINEAMENTO TAG DEFINITIVO ── */
  .prod-card {
    display: flex !important;
    flex-direction: column;
    height: 100%; /* Forza le card ad avere la stessa altezza nella griglia */
  }
  .prod-body {
    display: flex !important;
    flex-direction: column;
    flex: 1; /* Occupa tutto lo spazio rimasto sotto la foto */
  }
  .prod-desc {
    margin-bottom: 16px; /* Spazio standard tra testo e tag */
  }
  .product-tags {
    margin-top: auto; /* SPINGE I TAG IN FONDO ALLINEATI ALLO STESSO LIVELLO */
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }