/* ============================================
   SPACCIO DIVANI & LETTI – Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ─── TOKENS ─────────────────────────────── */
:root {
  --cream:       #F7F6F3; /* Warm white */
  --cream-dark:  #EBEAE6; /* Light gray border */
  --sand:        #8C8C8C; /* Secondary gray */
  --sand-dark:   #767676;
  --accent:      #171717; /* Primary black */
  --accent-dark: #000000;
  --warm-grey:   #8C8C8C; /* Secondary gray */
  --dark:        #171717; /* Primary black */
  --dark-soft:   #242424; /* Text black */
  --white:       #FFFFFF; /* Pure white */
  --overlay:     rgba(23, 23, 23, 0.65);
  --shadow-sm:   0 2px 12px rgba(0,0,0,.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.12);
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   20px;
  --transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w:       1280px;
  --nav-h:       90px;
}

/* ─── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ─── TYPOGRAPHY ─────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem);  font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: 'Inter', sans-serif; }
p  { color: var(--warm-grey); line-height: 1.75; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .75rem;
}

/* ─── LAYOUT ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4rem);
}
.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section--alt {
  background: var(--cream);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--sand); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.text-center { text-align: center; }
.section-header { margin-bottom: 3.5rem; }
.section-header p { max-width: 580px; margin: 1rem auto 0; font-size: 1.05rem; }
.section-header.left p { margin-left: 0; }

/* ─── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: #171717;
  color: #FFFFFF;
  border: 1.5px solid #171717;
}
.btn-primary:hover {
  background: #FFFFFF;
  color: #171717;
  border-color: #171717;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.65);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: #171717;
  border: 1.5px solid #171717;
}
.btn-outline-dark:hover {
  background: #171717;
  color: #FFFFFF;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: #0F0F0F;
  transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              backdrop-filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar.scrolled {
  height: 78px;
  background: rgba(15, 15, 15, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo img { 
  height: 52px; 
  width: auto; 
  filter: brightness(0) invert(1); 
  transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.navbar.scrolled .nav-logo img { 
  height: 42px; 
}

.nav-menu { display: flex; align-items: center; gap: 1.1rem; }
.nav-menu a {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: #D8B48A; 
  transition: width 0.3s ease;
}
.nav-menu a:hover::after, 
.nav-menu a.active::after { 
  width: 100%; 
}
.nav-menu a:hover { 
  color: #FFFFFF; 
}
.nav-menu a.active { 
  color: #D8B48A; 
}
.nav-menu .btn { margin-left: .5rem; }

.navbar .btn-primary {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1.5px solid #FFFFFF !important;
  padding: .65rem 1.35rem !important;
  font-size: .74rem !important;
  border-radius: var(--radius-sm) !important;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s ease !important;
}
.navbar .btn-primary:hover {
  background: #FFFFFF !important;
  color: #111111 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px);
}
.navbar.scrolled .btn-primary {
  background: #D8B48A !important;
  color: #111111 !important;
  border-color: #D8B48A !important;
  border: none !important;
}
.navbar.scrolled .btn-primary:hover {
  background: #E2C29C !important;
  border-color: #E2C29C !important;
  color: #111111 !important;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--white); }

/* Mobile nav open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--dark);
  padding: 1.75rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.navbar.scrolled ~ .mobile-nav,
.navbar.scrolled + .mobile-nav {
  top: 72px;
}
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--sand);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--transition);
  letter-spacing: .05em;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .btn { justify-content: center; margin-top: .5rem; }

/* ─── HERO ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(23,23,23,.72) 0%,
    rgba(23,23,23,.45) 55%,
    rgba(23,23,23,.12) 100%
  );
}

/* ─── HERO VIDEO BACKGROUND ─────────────────── */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─── HERO SLIDESHOW ────────────────────────── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.8s ease-in-out, transform 7s ease-out;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.04);
}
.hero-slideshow-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(23,23,23,.78) 0%,
    rgba(23,23,23,.50) 55%,
    rgba(23,23,23,.20) 100%
  );
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.hero-dot.active {
  background: var(--accent, #B5835A);
  border-color: var(--accent, #B5835A);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(181,131,90,0.6);
}
@media (max-width: 768px) {
  .hero-dots {
    bottom: 1.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 680px;
}
.hero-content .eyebrow { color: #D8B48A; }
.hero-content h1 {
  color: #F5F1EA;
  margin-bottom: 1.25rem;
}
.hero-content h1 em {
  color: #D8B48A;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}
.hero-content p {
  color: #D9D4CD;
  font-size: 1.1rem;
  max-width: 520px;
  opacity: 0.85;
}

/* Primary Hero Button ("Le nostre collezioni" - left, slightly bigger) */
#hero-cta-info {
  background: #D8B48A;
  color: #111111;
  border: none;
  padding: .75rem 1.6rem;
  font-size: .8rem;
}
#hero-cta-info:hover {
  background: #E2C29C;
  transform: translateY(-2px);
}

/* Secondary Hero Button ("Visita lo Showroom" - right, slightly smaller) */
#hero-cta-showroom {
  background: transparent;
  color: #F5F1EA;
  border: 1px solid #F5F1EA;
  padding: .65rem 1.35rem;
  font-size: .74rem;
}
#hero-cta-showroom:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: #F5F1EA;
}

/* ─── CONTACT SECTION ANCHOR SCROLL ──────── */
#contatti-main,
#showroom {
  scroll-margin-top: calc(var(--nav-h) + 1.25rem);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: .4; }
}

/* ─── PAGE HERO (inner pages) ────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 2rem) 0 2rem;
  overflow: hidden;
  min-height: 42vh;
  max-height: 400px;
  display: flex;
  align-items: flex-end;
}
.page-hero.page-hero--large {
  min-height: 52vh;
  max-height: 480px;
  padding-bottom: 2.75rem;
}
@media (max-width: 768px) {
  .page-hero.page-hero--large {
    min-height: 40vh;
    max-height: 360px;
  }
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero--large .page-hero-bg {
  background-size: cover;
  background-position: center center;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,.6) 0%,
    rgba(10,10,10,.2) 60%,
    rgba(10,10,10,.6) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.page-hero-content h1 {
  color: var(--white);
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
}

/* Button in hero */
.cta-hero-scopri {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,.6) !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.cta-hero-scopri:hover {
  background: #FFFFFF !important;
  color: #171717 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Breadcrumbs (moved to white section below hero) */
.breadcrumb {
  font-size: .78rem;
  color: #8C8C8C;
  margin-bottom: 1.5rem;
  letter-spacing: .05em;
  text-align: left;
}
.breadcrumb a {
  color: #242424;
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span {
  margin: 0 .4rem;
  color: #8C8C8C;
}

/* ─── INTRO TEXT (below hero, product pages) ── */
.intro-text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.intro-text .eyebrow {
  margin-bottom: 1rem;
  text-align: center;
}
.intro-text p {
  font-size: 1.05rem;
  color: #3D3D3D;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.015em;
}
.intro-text p + p {
  margin-top: 1.1rem;
}

/* Compact section spacing for intro directly under hero */
#collezioni,
#divani-intro,
#divani-letto-intro,
#poltrone-intro,
#materassi-intro,
#materassi-reti-intro,
#letti-intro {
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

/* ─── COMPACT COLLECTION ROW (divani) ──────── */
.collection-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}
.coll-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid #EBEBEB;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.4s ease;
}
.coll-card:hover,
.coll-card--active {
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  transform: translateY(-6px);
  border-color: #D8B48A;
}
.coll-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.coll-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: saturate(0.9);
}
.coll-card:hover .coll-card-img img {
  transform: scale(1.08);
  filter: saturate(1.05);
}
.coll-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}
.coll-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
  color: #1A1A1A;
  font-family: 'Playfair Display', serif;
}
.coll-card-body p {
  font-size: 0.83rem;
  color: #5A5A5A;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.coll-card-body .btn {
  font-size: 0.76rem;
  padding: 0.5rem 1rem;
  align-self: flex-start;
  margin-top: 0.6rem;
  border-color: #CCCCCC;
  color: #1A1A1A;
  letter-spacing: 0.06em;
}
.coll-card-body .btn:hover {
  border-color: #1A1A1A;
  background: #1A1A1A;
  color: #FFFFFF;
}

/* ─── MECHANISM CARDS (divani-letto) ────────── */
.dl-meccanismi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.dl-mec-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #EBEBEB;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.dl-mec-card:hover {
  box-shadow: 0 20px 48px rgba(0,0,0,0.11);
  transform: translateY(-6px);
}
.dl-mec-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.dl-mec-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: saturate(0.9);
}
.dl-mec-card:hover .dl-mec-card-img img {
  transform: scale(1.07);
  filter: saturate(1.05);
}
.dl-mec-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}
.dl-mec-card-body .eyebrow {
  margin-bottom: 0.5rem;
}
.dl-mec-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.dl-mec-card-body p {
  font-size: 0.88rem;
  color: #5A5A5A;
  line-height: 1.65;
}
@media (max-width: 768px) {
  .dl-meccanismi-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ─── FILTERABLE PRODUCT GALLERY ───────────── */
.gallery-filter-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.gallery-filter-header h2 {
  margin-bottom: 0;
}
.gallery-reset-btn {
  flex-shrink: 0;
  font-size: .82rem;
}


/* ─── PROD GRID (divani gallery) ─────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}
.prod-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.prod-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: saturate(0.88);
}
.prod-item:hover img {
  transform: scale(1.09);
  filter: saturate(1.05);
}
.prod-item:hover {
  box-shadow: 0 14px 36px rgba(0,0,0,0.13);
}
.prod-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.82) 0%, transparent 100%);
  color: #FAFAF8;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.25rem 0.875rem 0.6rem;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94);
  font-weight: 600;
}
.prod-item:hover .prod-label { transform: translateY(0); }
.prod-hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
  margin: 0; padding: 0;
}
.prod-visible { opacity: 1; transform: scale(1); }

/* ─── GALLERY GRID (letti, divani) ──────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: saturate(0.9);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(10,10,10,0.78) 0%, transparent 100%);
  color: #FAFAF8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ─── CARDS ──────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.75rem; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p  { font-size: .92rem; margin-bottom: 1.25rem; }

/* ─── CATEGORY CARDS ─────────────────────── */
.cat-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(0.25,0.46,0.45,0.94);
}
.cat-card:hover img { transform: scale(1.07); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,23,23,.82) 0%, rgba(23,23,23,.15) 65%, transparent 100%);
  transition: var(--transition);
}
.cat-card:hover .cat-card-overlay { background: linear-gradient(to top, rgba(23,23,23,.9) 0%, rgba(23,23,23,.25) 70%, transparent 100%); }
.cat-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.75rem;
  color: var(--white);
}
.cat-card-body h3 { color: var(--white); margin-bottom: .4rem; }
.cat-card-body p { color: rgba(250,250,248,.75); font-size: .9rem; margin-bottom: 1rem; }

.cat-card-body .eyebrow {
  color: #D8B48A !important;
}
.cat-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #D8B48A;
  transition: gap var(--transition);
}
.cat-card:hover .cat-card-arrow { gap: .7rem; }

/* ─── CAT-CARD MOBILE ────────────────────── */
@media (max-width: 768px) {
  .cat-grid-section .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  .cat-card {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
  }
  .cat-card-body {
    padding: 1.25rem 1rem;
  }
  .cat-card-body h3 {
    font-size: 1.1rem;
  }
  .cat-card-body p {
    display: none;
  }

  .cat-card-arrow {
    font-size: 0.72rem;
  }
}
@media (max-width: 400px) {
  .cat-grid-section .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }
  .cat-card {
    aspect-ratio: 4 / 3;
  }
}

/* ─── STATS BAR ──────────────────────────── */
.stats-bar {
  background: var(--dark);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  display: block;
}
.stat-label { font-size: .82rem; color: var(--sand); letter-spacing: .08em; text-transform: uppercase; margin-top: .25rem; }

/* ─── FEATURE SPLIT ──────────────────────── */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; }
.feature-split-img { position: relative; overflow: hidden; }
.feature-split-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-split-content {
  padding: clamp(3rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-split-content.bg-cream { background: var(--cream); }
.feature-split-content.bg-dark  { background: var(--dark); }
.feature-split-content.bg-dark h2 { color: var(--white); }
.feature-split-content.bg-dark p  { color: var(--sand); }

/* ─── ICON LIST ──────────────────────────── */
.icon-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 2rem 0; }
.icon-list-item { display: flex; align-items: flex-start; gap: 1rem; }
.icon-list-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(140,140,140,.12);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}
.icon-list-text h4 { margin-bottom: .2rem; font-size: .95rem; }
.icon-list-text p  { font-size: .88rem; }
/* ─── PORTFOLIO MASONRY GRID ─────────────── */
.portfolio-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  background: var(--white);
}

.portfolio-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.portfolio-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.portfolio-header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D8B48A;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.portfolio-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 500;
  color: #111111;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.portfolio-header p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  color: #666666;
  line-height: 1.6;
  font-weight: 400;
}

/* Masonry Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

/* Cards */
.portfolio-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #171717;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  position: relative;
}

.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.05);
}

/* Gradient Overlay & Editorial Meta */
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.90) 0%,
    rgba(15, 15, 15, 0.40) 50%,
    rgba(15, 15, 15, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-meta {
  transform: translateY(12px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover .portfolio-card-meta {
  transform: translateY(0);
}

.portfolio-card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D8B48A;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.portfolio-card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.portfolio-card-location {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
  font-weight: 400;
}

.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #D8B48A;
  transition: gap 0.3s ease, color 0.3s ease;
}

.portfolio-card:hover .portfolio-card-link {
  gap: 0.65rem;
  color: #E2C29C;
}

/* Grid Sizing Spans */
.p-span-7 {
  grid-column: span 7;
  height: 400px;
}

.p-span-5 {
  grid-column: span 5;
  height: 400px;
}

.p-span-4 {
  grid-column: span 4;
  height: 360px;
}

.p-span-8 {
  grid-column: span 8;
  height: 360px;
}

.p-span-6 {
  grid-column: span 6;
  height: 380px;
}

.p-span-12 {
  grid-column: span 12;
  height: 380px;
}

.portfolio-footer {
  text-align: center;
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.btn-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #111111;
  background: transparent;
  color: #111111;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.btn-editorial:hover {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
  transform: translateY(-2px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .p-span-7,
  .p-span-5,
  .p-span-4,
  .p-span-8,
  .p-span-6,
  .p-span-12 {
    grid-column: span 1;
    height: 330px;
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .p-span-7,
  .p-span-5,
  .p-span-4,
  .p-span-8,
  .p-span-6,
  .p-span-12 {
    grid-column: span 1;
    height: 280px;
  }
}
/* ─── REVIEWS ────────────────────────────── */
/* ─── REVIEWS CAROUSEL ───────────────────── */
.reviews-track-wrapper {
  overflow: hidden;
  position: relative;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  cursor: grab;
}
.reviews-track-wrapper:active { cursor: grabbing; }
.reviews-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* width set dynamically by JS */
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.review-text { font-style: italic; font-size: .92rem; color: var(--dark-soft); margin-bottom: 1.25rem; line-height: 1.75; flex: 1; }
.review-stars { color: #F4B400; font-size: 1.05rem; margin-bottom: .85rem; letter-spacing: .1em; }
.review-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #1A73E8;
  display: grid; place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}
.review-card:nth-child(5n+1) .review-avatar { background: #4285F4; }
.review-card:nth-child(5n+2) .review-avatar { background: #EA4335; }
.review-card:nth-child(5n+3) .review-avatar { background: #34A853; }
.review-card:nth-child(5n+4) .review-avatar { background: #F29900; }
.review-card:nth-child(5n+5) .review-avatar { background: #A142F4; }

.review-name { font-weight: 600; font-size: .9rem; }
.review-location { font-size: .75rem; color: #5f6368; }

/* Dots */
.review-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: none; cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.review-dot.active {
  background: #1A73E8;
  transform: scale(1.4);
}



/* ─── FAQ ────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--cream-dark);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--dark);
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  font-weight: 500;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--sand-dark);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--accent);
  transition: all var(--transition);
}
.faq-item.open .faq-icon { background: var(--accent); color: var(--white); border-color: var(--accent); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(0.25,0.46,0.45,0.94), padding .3s;
  padding-bottom: 0;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.5rem; }
.faq-answer p { font-size: .95rem; }

/* ─── PROMO CARDS ────────────────────────── */
.promo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
}
.promo-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.promo-card:hover img { transform: scale(1.04); }
.promo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,23,23,.88) 0%, rgba(23,23,23,.2) 100%);
}
.promo-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 3px;
  z-index: 2;
}
.promo-card-body {
  position: relative;
  z-index: 2;
  padding: 2rem 1.75rem;
  color: var(--white);
  width: 100%;
}
.promo-card-body h3 { color: var(--white); margin-bottom: .5rem; }
.promo-card-body p { color: rgba(250,250,248,.78); font-size: .9rem; margin-bottom: 1.25rem; }

/* ─── CONTACT FORM ───────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140,140,140,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-privacy {
  font-size: .82rem;
  color: var(--warm-grey);
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.form-privacy input[type="checkbox"] { margin-top: 3px; accent-color: var(--accent); }
.form-privacy a { color: var(--accent); text-decoration: underline; }
.form-success {
  display: none;
  background: rgba(37,211,102,.12);
  border: 1.5px solid rgba(37,211,102,.4);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: #1a7a3a;
  font-weight: 500;
}

/* ─── CONTACT INFO ───────────────────────── */
.contact-info-box {
  background: var(--dark);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  color: var(--white);
  height: 100%;
}
.contact-info-box h3 { color: var(--white); margin-bottom: 2rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1.1rem;
}
.contact-info-text { flex: 1; }
.contact-info-text strong { display: block; color: var(--white); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .25rem; }
.contact-info-text p, .contact-info-text a { color: #A8A8A8; font-size: .95rem; }
.contact-info-text a:hover { color: var(--white); }
.hours-grid { display: grid; gap: .4rem; margin-top: .5rem; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; }
.hours-day { color: #A8A8A8; font-size: .88rem; }
.hours-time { color: #D6D6D6; font-size: .88rem; font-weight: 500; }

/* ─── MAP ────────────────────────────────── */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 350px;
  box-shadow: var(--shadow-md);
}
.map-container iframe {
  width: 100%; height: 100%;
  border: none;
}

/* ─── ABOUT TIMELINE ─────────────────────── */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #303030, #8C8C8C, transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #8C8C8C;
  font-weight: 600;
  margin-bottom: .25rem;
}
.timeline-item h4 { margin-bottom: .4rem; }
.timeline-item p { font-size: .9rem; }

/* ─── VALUES ─────────────────────────────── */
.value-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(140,140,140,.15), rgba(140,140,140,.08));
  display: grid; place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--accent);
}
.value-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.value-card p  { font-size: .88rem; }

/* ─── DIVIDER ────────────────────────────── */
.divider { width: 56px; height: 2px; background: var(--accent); margin: 1.25rem 0; }
/* ─── CTA BANNER ─────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 100%);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.cta-content {
  text-align: left;
}

.cta-content .eyebrow {
  color: #D8B48A !important;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.cta-content h2 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 500;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.cta-content .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start !important;
  margin-top: 0;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
  font-weight: 700;
  padding: 0.95rem 2.2rem;
}

.cta-banner .btn-primary:hover {
  background: #EBEAE6;
  color: var(--dark);
  border-color: #EBEAE6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.28);
}

.cta-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 4 / 3;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-media:hover img {
  transform: scale(1.04);
}

@media (max-width: 991px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cta-content {
    text-align: center;
  }
  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-content .btn-group {
    justify-content: center !important;
  }
}



/* ─── FOOTER ─────────────────────────────── */
.footer {
  background: #111111;
  color: #D6D6D6;
  padding: 2.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #282828;
}
.footer-logo { margin-bottom: 0.75rem; }
.footer-logo img { height: 40px; width: auto; opacity: 1; }
.footer-brand p { font-size: 0.84rem; line-height: 1.5; color: #A8A8A8; }

.footer-features {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-features li {
  font-size: 0.82rem;
  color: #D6D6D6;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
}
.footer-features .check {
  color: #D8B48A;
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col ul a {
  font-size: 0.84rem;
  color: #D6D6D6;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: #FFFFFF; }
.footer-contact p { font-size: 0.84rem; color: #D6D6D6; margin-bottom: 0.35rem; line-height: 1.4; }
.footer-contact p.footer-orari, .footer-orari { color: #A8A8A8 !important; font-size: 0.80rem; line-height: 1.4; }
.footer-contact a { color: #D6D6D6; transition: color var(--transition); font-size: 0.84rem; }
.footer-contact a:hover { color: #FFFFFF; }
.footer-contact h4 { color: #FFFFFF; }
.footer-bottom {
  background: #0A0A0A;
  margin: 0 calc(-1 * clamp(1rem, 5vw, 4rem));
  padding: 1rem clamp(1rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #A8A8A8;
}
.footer-bottom a { color: #A8A8A8; transition: color var(--transition); }
.footer-bottom a:hover { color: #FFFFFF; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 0.75rem !important; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid #303030;
  display: grid; place-items: center;
  color: #A8A8A8;
  font-size: 0.8rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: #FFFFFF; border-color: #FFFFFF; color: #111111; }


/* ─── COOKIE BANNER ──────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #111111;
  border-top: 1px solid #303030;
  padding: 1.5rem clamp(1rem, 5vw, 3rem);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 -8px 32px rgba(0,0,0,.3);
}
#cookie-banner.visible { display: flex; }
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text p { color: #D6D6D6; font-size: .88rem; line-height: 1.6; }
.cookie-text a { color: #FFFFFF; text-decoration: underline; }
.cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cookie-btn {
  padding: .6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.cookie-btn-accept {
  background: #FFFFFF;
  color: #111111;
  border-color: #FFFFFF;
}
.cookie-btn-accept:hover { background: #E0E0E0; border-color: #E0E0E0; }
.cookie-btn-reject {
  background: transparent;
  color: #D6D6D6;
  border-color: #303030;
}
.cookie-btn-reject:hover { border-color: #8C8C8C; color: #FFFFFF; }
.cookie-btn-manage {
  background: transparent;
  color: rgba(140,140,140,.6);
  border-color: transparent;
  text-decoration: underline;
  font-size: .78rem;
  padding: .6rem .75rem;
}

/* ─── BACK TO TOP ────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  border: none;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
  .collection-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar {
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100%;
  }
  .nav-logo img {
    height: 54px;
    max-width: 190px;
  }
  .nav-menu { display: none; }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }
  .grid-2  { grid-template-columns: 1fr; }
  .grid-3  { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: 1fr; }
  /* cat-card grid is handled separately via .cat-grid-section */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split-img { min-height: 280px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .page-hero { min-height: 300px; }
  /* Collection row: 2 cols on tablet */
  .collection-row { grid-template-columns: repeat(2, 1fr); }
  /* Product grid: 2 cols on tablet */
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-filter-header { flex-direction: column; align-items: flex-start; }

}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.span-2 { grid-column: span 1; }
  .btn-group { flex-direction: column; width: 100%; }
  .btn-group .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-content h1 { font-size: 1.85rem; }
  .collection-row { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
}

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

/* ─── CMS PROMO CARDS (sanity.js driven — Horizontal Split) ─── */
#promo-cards-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.promo-single-card {
  display: flex;
  flex-direction: row;
  margin-bottom: 2rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #E5E5E5;
  box-shadow: 0 10px 36px rgba(0,0,0,0.06);
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
  min-height: 315px;
}
.promo-card-img-wrap {
  flex: 0 0 600px;
  width: 600px;
  height: 315px;
  background: #F4F4F4;
  position: relative;
  overflow: hidden;
  aspect-ratio: 600 / 315;
}
.promo-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.promo-single-card:hover .promo-card-img-wrap img {
  transform: scale(1.03);
}
.promo-card-content {
  flex: 1;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo-card-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}
.promo-card-content .promo-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 1rem;
  display: block;
}
.promo-card-content .promo-desc {
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
@media (max-width: 960px) {
  .promo-single-card {
    flex-direction: column;
    max-width: 600px;
  }
  .promo-card-img-wrap {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 315;
  }
  .promo-card-content {
    padding: 1.75rem 1.5rem;
  }
  .promo-card-content h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .promo-card-content {
    padding: 1.5rem 1.25rem;
  }
  .promo-card-content h2 {
    font-size: 1.35rem;
  }
}

/* ─── SHOWROOM PHOTO SLIDER (chi-siamo.html) ─── */
.showroom-slider {
  position: relative;
  max-width: 1040px;
  margin: 2rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  background: #000;
  aspect-ratio: 16 / 9;
}
.showroom-slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}
.showroom-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.03);
}
.showroom-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}
.showroom-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showroom-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 2.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0) 100%);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  pointer-events: none;
}
.showroom-slide-caption span {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #F5F5F5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.showroom-slide-counter {
  font-size: 0.85rem;
  color: var(--sand);
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

/* Arrows & Dots */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.4);
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.slider-arrow:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow.prev { left: 1.25rem; }
.slider-arrow.next { right: 1.25rem; }

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.slider-dot.active {
  background: #FFFFFF;
  width: 26px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .showroom-slider {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }
  .slider-arrow {
    width: 38px;
    height: 38px;
  }
  .slider-arrow.prev { left: 0.75rem; }
  .slider-arrow.next { right: 0.75rem; }
  .showroom-slide-caption {
    padding: 1.25rem 1.25rem;
  }
  .showroom-slide-caption span {
    font-size: 0.85rem;
  }
}

