/* ====================================================
   TOOLBAR (filtri + vista)
   ==================================================== */
.toolbar {
  padding: 20px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: 8px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  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);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--warm-white);
}

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

.sort-select {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-mid);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 6px 24px 6px 0;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239A9288' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.view-btns {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.view-btn.active,
.view-btn:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.view-btn svg {
  width: 14px; height: 14px;
  stroke: var(--text-mid);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.2s;
}

.view-btn.active svg,
.view-btn:hover svg { stroke: var(--warm-white); }

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

/* ====================================================
   GRIGLIA PRODOTTI
   ==================================================== */
.products-section {
  padding: 40px 56px 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.products-grid.view-2 { grid-template-columns: repeat(2, 1fr); }
.products-grid.view-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  position: relative;
  overflow: visible !important;
}

.product-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.products-grid.view-2 .product-img { aspect-ratio: 16/9; }

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

/* Overlay hover immagine */
.product-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28,26,23,0);
  z-index: 1;
  transition: background 0.4s ease;
  pointer-events: none;
}

.product-img::after {
  content: 'Scopri';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 10px));
  z-index: 2;
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0);
  white-space: nowrap;
  transition: color 0.35s, transform 0.4s;
  pointer-events: none;
}

.product-card:hover .product-img::before { background: rgba(28,26,23,0.4); }
.product-card:hover .product-img::after {
  color: rgba(255,255,255,0.95);
  transform: translate(-50%, -50%);
}

/* Badges */
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 99;
  transform: translateZ(0);
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--gold);
  padding: 4px 12px;
}

.product-body {
  padding: 20px 24px 24px;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
}

.product-brand {
  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;
}
.product-brand::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.product-name {
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 12.1px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tag {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 3px 10px;
}

/* Classi Immagini */

/* collezione moderna */
.scene-notte-1 { background-image: url('../images/notte-mod/Matisse_generale.jpg'); background-size: cover; background-position: center; }
.scene-notte-2 { background-image: url('../images/notte-mod/Matrix_1.jpg'); background-size: cover; background-position: center; }
.scene-notte-3 { background-image: url('../images/notte-mod/Azzura_amb.jpg'); background-size: cover; background-position: center; }
.scene-notte-4 { background-image: url('../images/notte-mod/Brenda_amb.jpg'); background-size: cover; background-position: center; }
.scene-notte-5 { background-image: url('../images/notte-mod/Frame_Variante.jpg'); background-size: cover; background-position: center; }
.scene-notte-6 { background-image: url('../images/notte-mod/Molto_amb_2020.jpg'); background-size: cover; background-position: center; }
.scene-notte-7 { background-image: url('../images/notte-mod/LIGHT.png'); background-size: cover; background-position: center; }
.scene-notte-8 { background-image: url('../images/notte-mod/ICON.png'); background-size: cover; background-position: center; }

.scene-giorno-1 { background-image: url('../images/giorno-mod/06Amb_DM1_cam06.jpg'); background-size: cover; background-position: center; }
.scene-giorno-2 { background-image: url('../images/giorno-mod/brad_fondale-colorato2.webp'); background-size: cover; background-position: center; }
.scene-giorno-3 { background-image: url('../images/giorno-mod/DUBAI_1.jpg'); background-size: cover; background-position: center; }
.scene-giorno-4 { background-image: url('../images/giorno-mod/Madia_Libra_vert.jpg'); background-size: cover; background-position: center; }
.scene-giorno-5 { background-image: url('../images/giorno-mod/MAGNUM_1.jpg'); background-size: cover; background-position: center; }
.scene-giorno-6 { background-image: url('../images/giorno-mod/PARIGI_1.jpg'); background-size: cover; background-position: center; }
.scene-giorno-7 { background-image: url('../images/giorno-mod/Tavolo_Spider_Rett_Vert.jpg'); background-size: cover; background-position: center; }
.scene-giorno-8 { background-image: url('../images/giorno-mod/vision_amb_fondalecolorato.webp'); background-size: cover; background-position: center; }


.scene-cucine-1 { background-image: url('../images/cucine-mod/sp22.webp'); background-size: cover; background-position: center; }
.scene-cucine-2 { background-image: url('../images/cucine-mod/twenty.webp'); background-size: cover; background-position: center; }
.scene-cucine-3 { background-image: url('../images/cucine-mod/sp22zen.webp'); background-size: cover; background-position: center; }
.scene-cucine-4 { background-image: url('../images/cucine-mod/line.webp'); background-size: cover; background-position: center; }

.scene-bagno-1 { background-image: url('../images/bagno-mod/arredobagno_wengè_dezotti_web_3-650x719.jpg'); background-size: cover; background-position: center; }
.scene-bagno-2{ background-image: url('../images/bagno-mod/arredobagno_moderno_legno_dezotti_web_3-1024x683.jpg'); background-size: cover; background-position: center; }
.scene-bagno-3 { background-image: url('../images/bagno-mod/pavimento_in_rovere_listoni_dezotti_venezia_4-1024x683.jpg'); background-size: cover; background-position: center; }
.scene-bagno-4 { background-image: url('../images/bagno-mod/arredobagno_rovere_dezotti_web_7-1024x683.jpg'); background-size: cover; background-position: center; }


/* collezione classica */

.scene-nottec-1 { background-image: url('../images/notte-cla/CVL023-prestigemobili8.jpg'); background-size: cover; background-position: center; }
.scene-nottec-2 { background-image: url('../images/notte-cla/CVL012-prestigemobili-1.jpg'); background-size: cover; background-position: center; }
.scene-nottec-3 { background-image: url('../images/notte-cla/CVL009A20P-prestigemobili-3.jpg'); background-size: cover; background-position: center; }
.scene-nottec-4 { background-image: url('../images/notte-cla/cabina-armadio-GRANDUCA-prestigemobili-10.jpg'); background-size: cover; background-position: center; }
.scene-nottec-5 { background-image: url('../images/notte-cla/cabina-armadio-milano-prestige-mobili-9-768x493.jpg'); background-size: cover; background-position: center; }
.scene-nottec-6 { background-image: url('../images/notte-cla/cabina-armadio-ROMA-prestigemobili-1.jpg'); background-size: cover; background-position: center; }
.scene-nottec-7 { background-image: url('../images/notte-cla/comodino-essenza-ciliegio-maniglia-ottone-CVN004-prestigemobili.jpg'); background-size: cover; background-position: center; }
.scene-nottec-8 { background-image: url('../images/notte-cla/comodino-finitura-sabbia-maniglie-nikel-lucido-CVN027-prestigemobili-3.jpeg'); background-size: cover; background-position: center; }
.scene-nottec-9 { background-image: url('../images/notte-cla/CVM019-prestigemobili2.jpg'); background-size: cover; background-position: center; }
.scene-nottec-10 { background-image: url('../images/notte-cla/CVM018-prestigemobili-2-2048x1280.jpg'); background-size: cover; background-position: center; }

.scene-giornoc-1 { background-image: url('../images/giorno-cla/libreria-essenza-ciliegio-con-ripiani-frassino-massiccio-CVA009-prestigemobili-1.jpg'); background-size: cover; background-position: center; }
.scene-giornoc-2 { background-image: url('../images/giorno-cla/divano-verde-finitura-pepenero-rivestito-pelle-CVE033-prestigemobili-6-768x576.jpg'); background-size: cover; background-position: center; }
.scene-giornoc-3 { background-image: url('../images/giorno-cla/divano-bianco-essenza-ciliegio-rivestito-tessuto-CVH032-prestigemobili-1-768x576.jpg'); background-size: cover; background-position: center; }
.scene-giornoc-4 { background-image: url('../images/giorno-cla/tavolo-rettangolare-con-piano-impiallacciato-CVF073-prestigemobili-2.jpg'); background-size: cover; background-position: center; }
.scene-giornoc-5 { background-image: url('../images/giorno-cla/tavolo-vetro-bronzato-lucido-CVF096-prestigemobili-3.jpg'); background-size  : cover; background-position: center; }
.scene-giornoc-6 { background-image: url('../images/giorno-cla/tavolo-essenza-ciliegio-laccato-CVF092-prestigemobili-1-768x561.jpg'); background-size: cover; background-position: center; }
.scene-giornoc-7 { background-image: url('../images/giorno-cla/credenza-finitura-ciliegio-decori-ottone-CVA018-prestigemobili-2-768x794.jpg'); background-size: cover; background-position: center; }

.scene-cucinec-1 { background-image: url('../images/cucine-cla/cucina-DAMA-prestigemobili-2.jpg'); background-size: cover; background-position: center; }
.scene-cucinec-2 { background-image: url('../images/cucine-cla/cucina-SCOTT02-prestigemobili-9.jpg'); background-size: cover; background-position: center; }
.scene-cucinec-3 { background-image: url('../images/cucine-cla/cucina-diamante-02-prestige-mobili-1.jpg'); background-size: cover; background-position: center; }
.scene-cucinec-4 { background-image: url('../images/cucine-cla/'); background-size: cover; background-position: center; }

.scene-bagnoc-1 { background-image: url('../images/bagno-cla/caravaggio.jpg'); background-size: cover; background-position: center; }
.scene-bagnoc-2{ background-image: url('../images/bagno-cla/ligabue.jpg'); background-size: cover; background-position: center; }
.scene-bagnoc-3 { background-image: url('../images/bagno-cla/liszt.jpg'); background-size: cover; background-position: center; }
.scene-bagnoc-4 { background-image: url('../images/bagno-cla/vangogh.jpg'); background-size: cover; background-position: center; }

/* ====================================================
   EMPTY STATE
   ==================================================== */
.no-results {
  display: none;
  text-align: center;
  padding: 80px 0;
  grid-column: 1/-1;
}
.no-results p {
  font-family: 'Jost', sans-serif;
  font-size: 30.8px;
  font-weight: 300;
  color: var(--text-light);
  font-style: italic;
}

/* ====================================================
   CTA BOTTOM
   ==================================================== */
.cta-bottom {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-bottom-quote {
  font-family: 'Jost', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.2;
}
.cta-bottom-quote span { color: var(--gold); }

.cta-bottom-sub {
  font-size: 13.2px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 320px;
  margin-top: 12px;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 32px;
  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: all 0.3s;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--warm-white);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */

/* ── Tablet landscape (≤ 1024px) ───────────────────── */
@media (max-width: 1024px) {
  .toolbar {
    padding: 16px 32px;
  }

  .products-section {
    padding: 32px 32px 64px;
  }

  /* view-4 scala a 3 colonne */
  .products-grid.view-4 { grid-template-columns: repeat(3, 1fr); }

  .cta-bottom {
    padding: 48px 32px;
    gap: 32px;
  }
}

/* ── Tablet portrait (≤ 768px) ─────────────────────── */
@media (max-width: 768px) {

  /* --- Navbar: nav-back accanto all'hamburger, testo ridotto --- */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  /* nav-back nella navbar: compatto, senza sottolineatura */
  .nav-actions .nav-back {
    font-size: 8px;
    letter-spacing: 0.18em;
    border-bottom: none;
    padding-bottom: 0;
    color: var(--text-light);
    white-space: nowrap;
  }

  /* --- Toolbar --- */
  .toolbar {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Filtri: scroll orizzontale silenzioso */
  .toolbar-filters {
    order: 2;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .toolbar-filters::-webkit-scrollbar { display: none; }

  .toolbar-label { display: none; }

  .toolbar-right {
    order: 1;
    margin-left: auto;
  }

  /* Nasconde sort, mantiene view buttons */
  .sort-select { display: none; }

  /* --- Griglia: 2 colonne --- */
  .products-section {
    padding: 24px 20px 56px;
  }

  .products-grid,
  .products-grid.view-2,
  .products-grid.view-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Card body compatto */
  .product-body { padding: 14px 16px 18px; }
  .product-name { font-size: 18.7px; }
  .product-desc { display: none; }

  /* --- CTA bottom: verticale --- */
  .cta-bottom {
    padding: 40px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .cta-bottom-sub { max-width: 100%; }
}

/* ── Mobile (≤ 480px) ──────────────────────────────── */
@media (max-width: 480px) {

  /* nav-back: ancora più compatto */
  .nav-actions .nav-back {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  /* Nasconde i view-toggle, forza colonna singola */
  .view-btns { display: none; }

  .products-section { padding: 20px 16px 48px; }

  .products-grid,
  .products-grid.view-2,
  .products-grid.view-4 {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  /* Su colonna singola: immagine più alta, testo pieno */
  .product-img { aspect-ratio: 3/2; }
  .product-body { padding: 16px 18px 20px; }
  .product-name { font-size: 24.2px; }
  .product-desc { display: block; }
  .product-tags { display: none; }

  .toolbar { padding: 12px 16px; }

  .cta-bottom { padding: 36px 16px; gap: 24px; }

  .btn-outline-gold {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .no-results p { font-size: 24.2px; }
}

/* ── Mobile XS (≤ 360px) ───────────────────────────── */
@media (max-width: 360px) {
  .nav-actions .nav-back { display: none; } /* troppo stretto: scompare, resta solo hamburger */
  .filter-btn { padding: 7px 14px; font-size: 8px; }
  .product-name { font-size: 22px; }
}