/*
Theme Name: Mysol Sweet Lab
Theme URI: https://mysolsweetlab.it
Description: Tema raffinato per pasticceria artigianale italiana.
Author: Mysol Sweet Lab
Version: 5.0
License: GPL v2 or later
Text Domain: mysol-sweet-lab
*/

/* ============================================
   IMPORT FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --ivory:        #fdf8f3;
  --ivory-dark:   #ede3d8;
  --ivory-mid:    #f8f1ea;
  --ivory-deep:   #e5d6c8;

  --copper:       #a86344;
  --copper-mid:   #c27d5a;
  --copper-light: #f5ebe4;

  --ink:          #2e1f16;
  --ink-mid:      #5a3d30;
  --dust:         #9c8878;
  --dust-light:   #d4c9c0;

  --champagne:    #edddc4;
  --blush:        #f5ddd3;
  --white:        #ffffff;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  --radius-sm:    4px;
  --radius-md:    10px;
  --radius-lg:    18px;

  --shadow-xs:    0 1px 4px rgba(26,14,8,.05);
  --shadow-sm:    0 2px 16px rgba(26,14,8,.07);
  --shadow-md:    0 8px 36px rgba(26,14,8,.09);
  --shadow-lg:    0 20px 64px rgba(26,14,8,.13);

  --transition:   0.38s cubic-bezier(.25,.46,.45,.94);
  --transition-fast: 0.2s ease;

  --nav-h:        70px;
  --max-w:        1360px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink-mid);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.12;
}

h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

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

a {
  color: var(--copper);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--copper-mid); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1  { font-size: clamp(2.8rem, 7vw, 5.8rem); }
h2  { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h3  { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4  { font-size: 1.05rem; letter-spacing: .04em; }

p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dust);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--copper);
  opacity: .5;
}

.hero-section,
.story-section--new,
.promo-section,
.contact-section,
.site-footer,
.cat-hero,
.cat-sidebar {
  overflow-x: hidden;
}

.site-nav {
  overflow: visible;
}

/* Prevent horizontal page scroll from 100vw carousel trick */
main, .catalogue-page {
  overflow-x: hidden;
}
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--nav-h);
  background: rgba(253, 248, 243, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ivory-dark);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 4px 24px rgba(26,14,8,.07);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4%, 3.5rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img { height: 38px; width: auto; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .02em;
}

.logo-tagline {
  font-size: 0.58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dust);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1.4rem, 2.5vw, 2.8rem);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--copper); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--copper) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px !important;
  letter-spacing: .1em !important;
  transition: background var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--copper-mid) !important;
  color: var(--white) !important;
}

.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 10001;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.38s cubic-bezier(.25,.46,.45,.94),
              opacity   0.22s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #e8cdb8 0%, #d4aa8a 50%, #b8845a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 10, 5, 0.18) 0%,
    rgba(20, 10, 5, 0.10) 40%,
    rgba(20, 10, 5, 0.52) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(2rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 800px;
  width: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin: 0 auto;
  padding-bottom: 6rem;
}

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
  font-family: var(--font-body);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,.4);
}

.hero-content h1,
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 28px rgba(0,0,0,.18);
  letter-spacing: -.01em;
}

.hero-italic {
  font-style: italic;
  color: rgba(255,255,255,.92);
  font-weight: 300;
}

.hero-content .hero-desc {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255,255,255,.72);
  max-width: 500px;
  margin: 0 auto 2.8rem;
  font-weight: 300;
  letter-spacing: .01em;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.3);
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: 0.62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  z-index: 5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll svg { opacity: .45; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-mid);
  color: var(--white);
  border-color: var(--copper-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168,99,68,.28);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--dust-light);
}

.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--copper);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.85);
}

.btn svg { transition: transform var(--transition-fast); }
.btn:hover svg { transform: translateX(4px); }

/* ============================================
   SECTIONS UTILS
   ============================================ */
.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4%, 3.5rem);
}

.section-pad {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.section-header {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}

.section-header .eyebrow {
  justify-content: center;
  margin-bottom: 1.2rem;
}

.section-header h2 { margin-top: .8rem; }

.section-header p {
  margin-top: 1.2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy compat */
.section-header.centered { text-align: center; }
.section-header.centered .eyebrow { justify-content: center; }
.section-header.centered p { margin: 1.2rem auto 0; }

/* ============================================
   PREVIEW SECTION (homepage categories)
   ============================================ */
.preview-section {
  background: transparent;
  overflow: visible;
}

.preview-section .section-wrap { overflow: visible; }

.preview-grid-outer {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}

.preview-grid-outer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(60px, 8vw, 120px);
  height: 100%;
  background: linear-gradient(to right, transparent, var(--ivory));
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.preview-grid-outer.is-scrollable::after { display: none; }

.preview-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x proximity;

  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;

  justify-content: flex-start;

  padding: 0 clamp(1.5rem, 4%, 3.5rem);
  padding-bottom: 1.2rem;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.preview-grid::-webkit-scrollbar {
  display: none;
}

.preview-grid-outer.is-scrollable .preview-grid {
  justify-content: flex-start;
  padding-left: clamp(1.5rem, calc(50vw - 680px + clamp(1.5rem, 4%, 3.5rem)), 100px);
  padding-right: clamp(60px, 8vw, 120px);
}


.preview-card {
  flex: 0 0 clamp(210px, 26vw, 360px);
  height: clamp(270px, 36vw, 450px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(46,31,22,.09);
  background: var(--ink);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}

.preview-card:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(46,31,22,.18);
}

.preview-card-img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  background: var(--copper-light);
  overflow: hidden;
}

.preview-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.25,.46,.45,.94);
}

.preview-card:hover .preview-card-img img { transform: scale(1.07); }

.preview-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--copper-mid);
  opacity: .3;
}

.preview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(26, 14, 8, 0.48) 68%,
    rgba(26, 14, 8, 0.80) 100%
  );
  z-index: 1;
  transition: opacity var(--transition);
}

.preview-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;

  padding: 1.4rem 1.4rem 1.6rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;

  gap: .8rem;
}

/* Nasconde solo elementi inutili */
.preview-card-tag,
.preview-count {
  display: none;
}

/* Descrizione categoria visibile */
.preview-card-body p {
  display: block;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  text-align: center;
  margin: 0;
  max-width: 95%;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}

.preview-card-body h3 {
  font-size: clamp(.95rem, 1.8vw, 1.3rem);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
}

.preview-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.preview-link {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.38);
  padding: .42rem 1.1rem;
  border-radius: 40px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,.07);
}

.preview-link:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.65);
}

.preview-card-img-wrap {
  display: block;
  overflow: hidden;
}

.preview-section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   STORY / CHI SIAMO
   ============================================ */
.story-section--new { background: var(--ivory-mid); }

.story-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.story-heading .eyebrow {
  margin-bottom: 1.5rem;
  justify-content: flex-start;
}

.story-heading h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 2rem;
}

.story-em {
  font-style: italic;
  color: var(--copper);
}

.story-line {
  width: 40px;
  height: 1px;
  background: var(--dust-light);
}

.story-lead {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink-mid);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 2.4rem;
  font-weight: 300;
}

.story-pillars {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ivory-dark);
}

.story-pillar {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--ivory-dark);
}

.story-pillar-mark {
  font-size: 0.6rem;
  color: var(--copper);
  opacity: .65;
  margin-top: 4px;
  flex-shrink: 0;
}

.story-pillar h4 {
  font-size: 0.88rem;
  letter-spacing: .03em;
  margin-bottom: .3rem;
  color: var(--ink);
}

.story-pillar p {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--dust);
  margin: 0;
}

/* Legacy — hidden */
.story-stat-row { display: none; }

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-section {
  background: linear-gradient(140deg, var(--blush) 0%, var(--champagne) 100%);
  position: relative;
  overflow: hidden;
}

.promo-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.promo-circle {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(168,99,68,.10);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.promo-circle-2 {
  width: 280px;
  height: 280px;
  border: 1px solid rgba(168,99,68,.07);
  bottom: -80px;
  left: 10%;
  top: auto;
  right: auto;
}

.promo-inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.promo-inner .eyebrow {
  color: var(--copper);
  justify-content: center;
  margin-bottom: 1.4rem;
}

.promo-inner .eyebrow::before,
.promo-inner .eyebrow::after {
  background: var(--copper);
  opacity: .35;
}

.promo-inner h2 { color: var(--ink); margin-bottom: 1.3rem; }
.promo-inner p { color: var(--ink-mid); font-size: 1.02rem; line-height: 1.9; margin-bottom: 2.4rem; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section { background: var(--ivory); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  background: var(--copper-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.contact-item:hover .contact-item-icon {
  background: var(--copper);
  color: var(--white);
}

.contact-item-body h4 {
  font-size: 0.78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 4px;
}

.contact-item-body p,
.contact-item-body a {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin: 0;
}

.contact-item-body a:hover { color: var(--copper); }

.contact-map {
  background: var(--ivory-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-sm);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(.75) contrast(.92);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 1.2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4%, 3.5rem);
}

.footer-top,
.footer-top--slim {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 1.2rem;
}

.footer-logo-img {
  width: 110px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
  transition: opacity .2s;
}

.footer-logo:hover .footer-logo-img { opacity: 1; }

.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-tagline { color: rgba(255,255,255,.35); }

.footer-brand p {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,.4);
}

.footer-social {
  display: flex;
  gap: .7rem;
  margin-top: 1.4rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: rgba(255,255,255,.35);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.footer-col ul a,
.footer-col ul li {
  color: rgba(255,255,255,.42);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  line-height: 1.5;
}

.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  padding-top: .5rem;
}

/* ============================================
   CATALOGUE PAGE
   ============================================ */
.catalogue-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.cat-hero {
  background: linear-gradient(140deg, var(--ivory-mid) 0%, var(--blush) 100%);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4%, 3.5rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ivory-dark);
}

.cat-hero-noise {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cat-hero-text .eyebrow {
  color: var(--copper);
  margin-bottom: .9rem;
  justify-content: flex-start;
}

.cat-hero-text .eyebrow::before,
.cat-hero-text .eyebrow::after {
  background: var(--copper);
  opacity: .4;
}

.cat-hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: .7rem;
}

.cat-hero-text p {
  color: var(--dust);
  max-width: 460px;
  margin: 0;
  font-size: .95rem;
}

.cat-hero-filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

.cat-filter-btn {
  padding: .5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 1.5px solid var(--ivory-deep);
  background: var(--white);
  color: var(--ink-mid);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.cat-body { background: var(--ivory); }

.cat-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

.cat-sidebar {
  position: sticky;
  top: var(--nav-h);
  padding: 2.2rem clamp(.8rem, 1.8vw, 1.8rem);
  border-right: 1px solid var(--ivory-dark);
  min-height: calc(100vh - var(--nav-h));
}

.cat-sidebar-title {
  font-size: 0.65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 1.1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--ivory-dark);
}

.cat-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.cat-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-mid);
  transition: all var(--transition-fast);
}

.cat-menu a:hover,
.cat-menu a.current {
  background: var(--white);
  color: var(--copper);
  box-shadow: var(--shadow-xs);
}

.cat-menu-count {
  font-size: 0.7rem;
  color: var(--dust);
  background: var(--ivory-dark);
  padding: 1px 7px;
  border-radius: 50px;
}

.cat-main {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}

.cat-category {
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.cat-category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--ivory-dark);
  flex-wrap: wrap;
}

.cat-category-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.cat-category-desc {
  font-size: 0.9rem;
  color: var(--dust);
  max-width: 480px;
  line-height: 1.8;
  margin-top: .4rem;
}

.cat-view-all {
  font-size: 0.72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.cat-view-all:hover {
  gap: 10px;
  color: var(--copper-mid);
}

/* Products grid */
/* ── Product carousel row ─────────────────── */
.cat-products-outer {
  position: relative;
}

.cat-products {
  display:flex;
  flex-wrap:nowrap;
  gap:.9rem;

  overflow-x:auto;
  overflow-y:hidden;

  scroll-snap-type:x proximity;

  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;

  touch-action:pan-x;

  scrollbar-width:none;
  -ms-overflow-style:none;

  padding-bottom:.8rem;
  align-items:stretch;
}

.cat-products::-webkit-scrollbar{
  display:none;
}

/* Product card — full-image overlay style */
.product-card {
  flex: 0 0 clamp(180px, 22vw, 280px);
  height: clamp(230px, 28vw, 340px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--ink);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(46,31,22,.10);
  border: none;
  display: block;
}

.product-card:hover {
  transform: scale(1.025);
  box-shadow: 0 14px 40px rgba(46,31,22,.20);
}

/* Full-bleed image */
.product-image-wrap {
  position: absolute;
  inset: 0;
  display: block;
}

.product-image {
  width: 100%;
  height: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.25,.46,.45,.94);
  display: block;
}

.product-card:hover .product-image img { transform: scale(1.06); }

.product-image--placeholder {
  width: 100%;
  height: 100%;
  background: var(--copper-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper-mid);
  opacity: .35;
}

/* Thin gradient always visible at bottom — just enough for the title */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(26, 14, 8, 0.55) 72%,
    rgba(26, 14, 8, 0.88) 100%
  );
  z-index: 1;
  transition: opacity var(--transition);
}

/* On hover: deeper overlay so description text stays readable */
.product-card:hover::after {
  background: linear-gradient(
    to bottom,
    transparent 15%,
    rgba(26, 14, 8, 0.45) 45%,
    rgba(26, 14, 8, 0.92) 100%
  );
}

/* Text overlaid at bottom */
.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.2rem 1.1rem 1.3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
  margin: 0;
}

.product-title a {
  color: #fff;
  text-decoration: none;
}

/* Description: hidden by default, slides up on hover */
.product-description {
  font-size: 0.75rem;
  color: rgba(255,255,255,.80);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition:
    max-height 0.4s cubic-bezier(.25,.46,.45,.94),
    opacity    0.35s ease,
    transform  0.35s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.product-card:hover .product-description {
  max-height: 160px;   /* abbastanza per qualsiasi descrizione ragionevole */
  opacity: 1;
  transform: translateY(0);
}

.product-description p { margin: 0; font-size: inherit; color: inherit; }

.carousel-nav {
  display: none !important;
}

/* Si attivano e mostrano solo su schermi da PC (es. sopra i 1024px) */
@media (min-width: 1024px) {
  .carousel-nav {
    display: flex !important;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.2rem;
    padding-right: clamp(1.5rem, 4%, 3.5rem);
  }
}

.carousel-arrow{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(185,135,88,.25);
    border-radius:999px;

    background:rgba(255,255,255,.75);
    backdrop-filter:blur(10px);

    color:var(--copper);

    cursor:pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.carousel-arrow:hover{
    background:var(--ivory);
    border-color:rgba(185,135,88,.45);
    transform:translateY(-1px);
}

.carousel-arrow svg{
    width:16px;
    height:16px;
}

.carousel-arrow:active{
    transform:translateY(0);
}
/* Hide price, footer, button */
.product-footer { display: none; }
.product-btn    { display: none; }
.product-price  { display: none; }

/* Catalogue empty state */
.cat-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--dust);
}

.cat-empty svg { opacity: .25; margin: 0 auto 2rem; display: block; }
.cat-empty h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--ink); }
.cat-empty p { max-width: 380px; margin: 0 auto; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up { animation: fadeUp .6s ease both; }
.animate-up-delay-1 { animation-delay: .1s; }
.animate-up-delay-2 { animation-delay: .2s; }
.animate-up-delay-3 { animation-delay: .3s; }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1100px) {
  .hero-section { height: 100svh; min-height: 600px; }
  .hero-scroll { display: none; }

  .story-layout { grid-template-columns: 1fr; gap: 3rem; }

  .cat-layout { grid-template-columns: 1fr; }

  .cat-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--ivory-dark);
    padding: 1.4rem clamp(1.5rem, 4%, 3.5rem);
    min-height: auto;
  }

  .cat-menu { flex-direction: row; flex-wrap: wrap; gap: .45rem; }
  .cat-menu a { padding: .45rem .85rem; font-size: 0.82rem; }

  .footer-top,
  .footer-top--slim { grid-template-columns: 1fr 1fr; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-map { height: 280px; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    right: 1rem;
    left: auto;
    width: 200px;
    background: #fdf8f3;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
    gap: 0;
    z-index: 9997;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(26,14,8,.18);
    border: 1px solid #ede3d8;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    list-style: none;
    width: 100%;
  }

  .nav-links li a {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: #2e1f16;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0.65rem 1.2rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .nav-links li a::after { display: none; }

  .nav-links li a:hover {
    background: #f5ebe4;
    color: #a86344;
  }

  .nav-links li:last-child a {
    margin: 0.5rem 0.75rem 0.25rem;
    width: calc(100% - 1.5rem);
    background: #a86344;
    color: #fff !important;
    text-align: center;
    border-radius: 50px;
    padding: 0.6rem 1rem;
  }

  .nav-links li:last-child a:hover {
    background: #c27d5a;
  }

  .nav-hamburger { display: flex; }

  .nav-hamburger { display: flex; }

  .preview-grid { gap: 0.8rem; padding-left: 1.2rem; }

 .preview-card {
  flex: 0 0 clamp(240px, 26vw, 360px);
  height: clamp(340px, 36vw, 460px);

  .cat-products {
    gap: .7rem;
  }

  .product-card {
    flex: 0 0 58vw;
    height: 72vw;
  }

  .cat-hero-inner { flex-direction: column; align-items: flex-start; }

  .footer-top,
  .footer-top--slim { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .product-card {
    flex: 0 0 70vw;
    height: 85vw;
  }
}

/* ============================================
   WOOCOMMERCE
   ============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-notice {
  background: var(--copper-light);
  border-color: var(--copper);
  color: var(--copper);
}

.woocommerce .star-rating span::before { color: var(--copper); }

.woocommerce span.onsale {
  background: var(--copper);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: .06em;
  min-width: auto;
  padding: 3px 10px;
  height: auto;
  line-height: 1.4;
}

/* ============================================
   PRINT / ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

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