/* ══════════════════════════════════════════════
   RESET & VARIABILI GLOBALI
   ══════════════════════════════════════════════ */

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

:root {
  /* Colori */
  --bg: #FAF7F0;
  --fg: #1A1A1A;
  --muted: #5A5A5A;
  --oro: #C8922A;
  --marrone: #6B3F1F;
  --border: rgba(107, 63, 31, .08);

  /* Font */
  --font-t: 'Playfair Display', Georgia, serif;
  --font-b: 'DM Sans', Arial, sans-serif;

  /* Easing riutilizzabile */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-weight: 300;
  font-size: 1.12rem;
  overflow-x: hidden;
}

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

button {
  font-family: var(--font-b);
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--oro);
  text-decoration: none;
  transition: color .3s;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--marrone);
}

::selection {
  background: var(--oro);
  color: #fff;
}

*:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════ */

/* Contenitore centrato con padding responsivo */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* Padding verticale per le sezioni principali */
.section-pad {
  padding: clamp(48px, 6vw, 90px) 0;
  scroll-margin-top: 80px;
}

/* Etichetta dorata sopra i titoli di sezione */
.label {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 16px;
}

/* Visually hidden, accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Texture grain sovrapposta a tutto il sito */
.grain {
  position: fixed;
  inset: 0;
  z-index: 4999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  contain: strict;
}

/* ══════════════════════════════════════════════
   NAVIGAZIONE
   ══════════════════════════════════════════════ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 60px);
  height: 64px;
  background: transparent;
  transition: background .5s, box-shadow .5s;
}

/* Stato solido dopo scroll (sfondo sfocato) */
#nav.solid {
  background: rgba(250, 247, 240, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: var(--font-t);
  font-size: 1rem;
  font-weight: 700;
  color: var(--marrone);
  letter-spacing: 3px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  gap: 8px;
  justify-self: end;
}

.nav-links a {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color .3s;
}

.nav-links a:hover {
  color: var(--marrone);
}

/* Hamburger menu (visibile solo su mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

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

/* Bottoni lingua e dark mode */
.lang-toggle {
  padding: 4px 10px;
  border: 1px solid rgba(107, 63, 31, .2);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}

.lang-toggle:hover {
  color: var(--marrone);
  border-color: var(--oro);
}

.lang-pill {
  display: flex;
  border: 1px solid rgba(107, 63, 31, .2);
  border-radius: 20px;
  overflow: hidden;
}

.lang-opt {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-b);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .3s, color .3s;
}

.lang-opt.active {
  background: var(--oro);
  color: #fff;
}

.lang-opt:not(.active):hover {
  background: rgba(200, 146, 42, .1);
}

/* ══════════════════════════════════════════════
   HERO — Schermata iniziale a tutto schermo
   ══════════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  text-align: center;
  padding: 0 clamp(16px, 4vw, 48px);
}

.hero-scene {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Sottotitolo "Montefiore Conca — dal 1998" */
.hero-label {
  font-size: .68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeIn 1s ease .3s forwards;
}

/* Titolo decorativo grande "CAVE OVES" */
.deco-title {
  font-family: var(--font-t);
  font-size: clamp(8vw, 11vw, 14vw);
  font-weight: 900;
  line-height: .85;
  letter-spacing: .02em;
  position: relative;
  display: inline-block;
  color: var(--marrone);
  opacity: 0;
  animation: fadeIn 1.2s ease .6s forwards;
  text-shadow:
    0 .06em .08em rgba(26, 26, 26, .18),
    0 .12em .2em rgba(26, 26, 26, .08);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Link rapidi hero (sotto l'erba) */
.hero-links {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}

.hero-link {
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--oro);
  transition: color .3s, letter-spacing .3s;
}

.hero-link:hover {
  color: var(--marrone);
  letter-spacing: 4px;
}

/* ══════════════════════════════════════════════
   PECORE ANIMATE — Sprite che camminano nella hero
   ══════════════════════════════════════════════ */

.sheep {
  position: absolute;
  z-index: 3;
  will-change: transform, opacity;
  contain: layout style;
}

.sheep img {
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   ERBA SVG — Tre layer di fili d'erba animati
   ══════════════════════════════════════════════ */

.grass {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.grass svg {
  position: absolute;
  bottom: 0;
  contain: layout style paint;
}

/* Layer posteriore (più chiaro e piccolo) */
.grass--back {
  z-index: 1;
  opacity: .4;
}

/* Layer intermedio */
.grass--mid {
  z-index: 2;
  opacity: .65;
}

/* Layer frontale (davanti alle pecore) */
.grass--front {
  z-index: 4;
}

/* Singolo filo d'erba con oscillazione CSS */
.grass-blade {
  transform-origin: bottom center;
  animation: sway var(--dur) ease-in-out var(--del) infinite alternate;
}

@keyframes sway {
  0%  { transform: rotate(var(--from)); }
  to  { transform: rotate(var(--to)); }
}

/* ══════════════════════════════════════════════
   INTRO — Sezione "Chi siamo"
   ══════════════════════════════════════════════ */

/* INTRO */

.intro-label-wrap {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-label-wrap::before,
.intro-label-wrap::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--oro);
  opacity: .35;
  max-width: 120px;
}

.intro-label-line {
  padding: 0 16px;
  margin-bottom: 0;
}

.intro-text {
  max-width: 700px;
}

.intro-text h2 {
  font-family: var(--font-t);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.35;
}

.intro-aside {
  max-width: 700px;
  margin-top: 20px;
}

.intro-aside p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
}

/* INTRO PHOTO */

.intro-photo {
  margin: clamp(32px, 5vw, 56px) 0;
  overflow: hidden;
  border-radius: 8px;
}

.intro-photo img {
  width: 100%;
  max-height: clamp(250px, 50vw, 500px);
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(.75) brightness(.95);
  transition: filter .6s;
}

@media (hover: hover) {
  .intro-photo:hover img {
    filter: saturate(1) brightness(1);
  }
}

/* ══════════════════════════════════════════════
   GALLERIA — Storytelling immersivo
   ══════════════════════════════════════════════ */

/* GALLERIA */

.galleria {
  scroll-margin-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 5vw, 48px) clamp(48px, 6vw, 90px);
}

.galleria-strip {
  display: flex;
  width: 100%;
  height: clamp(320px, 45vw, 480px);
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15), 0 0 0 1px var(--border);
}

.galleria-steps {
  display: flex;
  justify-content: space-around;
  position: relative;
  padding: 0 4%;
  margin-bottom: 20px;
}

.galleria-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--oro);
  opacity: .35;
}

.galleria-step {
  position: relative;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--oro);
  background: var(--bg);
  padding: 4px 12px;
  z-index: 1;
}

.galleria-panel {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex .6s var(--ease-out);
  will-change: flex;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .galleria-panel:hover {
    flex: 3;
  }
  .galleria-panel:hover img {
    transform: scale(1.08);
    filter: saturate(1) brightness(1);
  }
  .galleria-panel:hover::after {
    opacity: 1;
  }
  .galleria-panel:hover .galleria-caption:not(.collapsed) {
    transform: translateY(0);
  }
  .galleria-strip:has(.expanded) .galleria-panel:not(.expanded) {
    flex: 1;
  }
  .galleria-strip:has(.expanded) .galleria-panel:not(.expanded) img {
    transform: none;
    filter: saturate(0) brightness(.8);
  }
  .galleria-strip:has(.expanded) .galleria-panel:not(.expanded)::after {
    opacity: 0;
  }
  .galleria-strip:has(.expanded) .galleria-panel:not(.expanded) .galleria-caption {
    transform: translateY(100%);
  }
}

.galleria-panel.expanded {
  flex: 3;
}

.galleria-panel.expanded img {
  transform: scale(1.08);
  filter: saturate(1) brightness(1);
}

.galleria-panel.expanded::after {
  opacity: 1;
}

.galleria-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0) brightness(.8);
  transition: transform .6s var(--ease-out), filter .6s var(--ease-out);
  will-change: transform, filter;
}


.galleria-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  z-index: 1;
  pointer-events: none;
}

.galleria-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.galleria-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 3s ease;
}

.galleria-slide.active {
  opacity: 1;
  z-index: 1;
}

.galleria-slide.fading {
  z-index: 2;
  transition: opacity 3s ease;
}

.galleria-slide:first-child {
  position: relative;
}

.galleria-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: clamp(16px, 3vw, 28px);
  padding-bottom: 32px;
  color: #fff;
  background: rgba(0,0,0,.65);
  transform: translateY(100%);
  transition: transform .5s var(--ease-out), background .4s;
}

.galleria-panel.expanded .galleria-caption {
  transform: translateY(0);
}

.galleria-caption p {
  font-size: clamp(.82rem, 1.6vw, .95rem);
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.galleria-caption-title {
  font-family: var(--font-t);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.galleria-caption-handle {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}

.galleria-caption-handle span {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--oro);
  opacity: .7;
  transition: opacity .2s;
}

.galleria-caption-handle:hover span {
  opacity: 1;
}

.galleria-caption.collapsed {
  transform: translateY(calc(100% - 28px));
  background: transparent;
}

.galleria-caption.collapsed p,
.galleria-caption.collapsed .galleria-caption-title {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.dark .galleria-strip {
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255,255,255,.08);
}

.galleria-dots {
  display: none;
}

.galleria-desc {
  display: none;
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 601px) {
  .galleria-strip {
    height: clamp(280px, 38vw, 400px);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .galleria-strip {
    height: clamp(300px, 70vw, 420px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0;
    border-radius: 12px;
  }
  .galleria-strip::before,
  .galleria-strip::after {
    content: '';
    flex: 0 0 10vw;
  }
  .galleria-strip::-webkit-scrollbar {
    display: none;
  }
  .galleria-panel {
    flex: 0 0 80vw;
    scroll-snap-align: center;
    border-radius: 12px;
    pointer-events: none;
  }
  .galleria-panel.expanded {
    flex: 0 0 80vw;
  }
  .galleria-panel img {
    filter: saturate(.85) brightness(.95);
  }
  .galleria-panel .galleria-caption {
    display: none;
  }
  .galleria-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    margin-bottom: 20px;
  }
  .galleria-steps::before {
    display: none;
  }
  .galleria-step {
    border-radius: 20px;
    border: 1px solid rgba(200, 146, 42, .35);
    background: transparent;
    font-size: .52rem;
    letter-spacing: .5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  .galleria-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
    width: 100%;
  }
  .galleria-step.active {
    background: var(--oro);
    color: #fff;
    border-color: var(--oro);
  }
  .galleria-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 12px;
  }
  .galleria-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .3s, transform .3s;
    -webkit-tap-highlight-color: transparent;
  }
  .galleria-dot.active {
    background: var(--oro);
    transform: scale(1.3);
  }
  .galleria-desc {
    display: block;
    text-align: center;
    padding: 0 24px;
    margin-top: 6px;
    min-height: 60px;
  }
  .galleria-desc-title {
    font-family: var(--font-t);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 4px;
  }
  .galleria-desc-text {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.6;
  }
}



/* ══════════════════════════════════════════════
   LANA — Testo + video WebM a destra
   ══════════════════════════════════════════════ */

.lana-container {
  position: relative;
}

.lana-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.lana-text h2 {
  font-family: var(--font-t);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.35;
}

.lana-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 20px;
}

.lana-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 8px 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, .3);
  border-radius: 6px;
  transition: background .3s, color .3s;
}

.lana-wa:hover {
  background: rgba(37, 211, 102, .15);
  color: #25D366;
}

.lana-gomitolo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lana-anim {
  width: clamp(140px, 18vw, 220px);
  height: auto;
  background: transparent;
}

/* Lista prodotti lana */
.lana-prodotti-list {
  margin-top: clamp(20px, 3vw, 32px);
  min-height: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.lana-subsection {
  margin-top: clamp(48px, 6vw, 80px);
  scroll-margin-top: 80px;
}

.subsection-header {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.subsection-header h3 {
  font-family: var(--font-t);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.35;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-sub {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.nav-dropdown:hover .nav-sub,
.nav-dropdown:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
}

.nav-sub li a {
  display: block;
  padding: 6px 20px;
  font-size: .68rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.nav-sub li a:hover {
  background: rgba(200, 146, 42, .08);
}

body.dark .nav-sub {
  background: var(--bg);
  border-color: rgba(250, 247, 240, .1);
}

/* Slideshow immagini lana */
.lana-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 100%;
}

.lana-slides {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lana-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.lana-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--marrone);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.slide-prev { left: 8px; }
.slide-next { right: 8px; }

.slide-prev:hover,
.slide-next:hover {
  background: var(--oro);
  color: #fff;
}

.slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .2s;
}

.slide-dot.active {
  background: #C8922A;
}

body.dark .slide-prev,
body.dark .slide-next {
  background: transparent;
  color: var(--oro);
}

body.dark .slide-prev:hover,
body.dark .slide-next:hover {
  background: var(--oro);
  color: #fff;
}

body.dark .slide-dot {
  background: rgba(255, 255, 255, .3);
}

body.dark .slide-dot.active {
  background: #C8922A;
}

.prodotti-loading {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding: 60px 0;
}

/* Card singolo prodotto */
.prodotto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .prodotto:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(200, 146, 42, .1);
    border-color: var(--oro);
  }
}


.prodotto-img {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.prodotto-sold-out {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(192, 57, 43, .85);
  border-radius: 20px;
  padding: 4px 12px;
}

.prodotto-img > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  filter: saturate(.7);
  transition: transform .6s var(--ease-out), filter .6s;
}

.prodotto-img > .lana-slideshow {
  width: 100%;
  height: 200px;
}

/* Hover: zoom leggero e colori pieni */
@media (hover: hover) {
  .prodotto:hover .prodotto-img > img {
    transform: scale(1.05);
    filter: saturate(1);
  }
}

.prodotto-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.prodotto-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prodotto-body h3 {
  font-family: var(--font-t);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

.prodotto-badge {
  font-size: .68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oro);
  white-space: nowrap;
  display: block;
  margin-bottom: 4px;
}

.prodotto-starting {
  font-size: .9rem;
  font-weight: 600;
  color: var(--marrone);
}

.prodotto-tap-hint {
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--oro);
  font-weight: 600;
  margin-top: auto;
  padding-top: 8px;
}

body.dark .prodotto-starting {
  color: var(--oro);
}


/* Selettore porzione */
.prodotto-porzioni {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.porzioni-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.porzione-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 6px;
  border: 1px solid rgba(200, 146, 42, .5);
  background: rgba(200, 146, 42, .06);
  color: var(--marrone);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.porzione-btn:hover {
  background: rgba(200, 146, 42, .15);
  border-color: var(--oro);
}

.porzione-btn.active {
  background: var(--oro);
  color: #fff;
  border-color: var(--oro);
}

body.dark .porzione-btn {
  color: var(--oro);
}

body.dark .porzione-btn.active {
  background: var(--oro);
  color: #1A1A1A;
}

/* Lightbox immagine prodotto */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10500;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .4);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .3);
}

/* Cursore zoom-in sulle immagini nel modal */
.pm-img img {
  cursor: zoom-in;
}

/* Product modal */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
}

.product-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  z-index: 9700;
  background: var(--bg);
  border-radius: 14px;
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .3s, visibility .3s;
  box-shadow: 0 16px 60px rgba(0, 0, 0, .2);
}

.product-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal-close {
  position: sticky;
  top: 8px;
  float: right;
  z-index: 2;
  margin: 8px 8px 0 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, border-color .2s;
}

.product-modal-close:hover {
  color: var(--marrone);
  border-color: var(--oro);
}

.product-modal-close svg {
  width: 12px;
  height: 12px;
}

.product-modal-body {
  padding: 0 24px 24px;
}

.pm-swipe-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .15);
  margin: 8px auto 4px;
}

.pm-img {
  width: 100%;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.pm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.pm-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.pm-slideshow .lana-slides {
  height: 100%;
}

.pm-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.pm-head h3 {
  font-family: var(--font-t);
  font-size: 1.5rem;
  font-weight: 700;
}

.pm-head .prodotto-badge {
  font-size: .72rem;
}

.pm-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.pm-desc.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-desc-toggle {
  background: none;
  border: none;
  color: var(--oro);
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  transition: color .2s;
}

.pm-desc-toggle:hover {
  color: var(--marrone);
}

.pm-details {
  margin-bottom: 14px;
  border: 1.5px dashed rgba(200, 146, 42, .4);
  border-radius: 6px;
  background: rgba(200, 146, 42, .03);
  padding: 12px 16px;
}

.pm-details-toggle {
  background: none;
  border: none;
  color: var(--oro);
  font-family: var(--font-b);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pm-details-toggle:hover {
  color: var(--oro);
}

.pm-details-arrow {
  display: inline-block;
  width: 10px;
  height: 2px;
  background: var(--oro);
  border-radius: 1px;
  position: relative;
}

.pm-details-arrow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--oro);
  border-radius: 1px;
  transition: transform .25s;
  transform: rotate(90deg);
}

.pm-details.open .pm-details-arrow::after {
  transform: rotate(0deg);
}

.pm-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, margin .3s;
}

.pm-details.open .pm-details-list {
  max-height: 200px;
  margin-top: 10px;
}

.pm-details-list li {
  font-size: .78rem;
  color: var(--muted);
  position: relative;
  padding-left: 10px;
  white-space: nowrap;
}

.pm-details-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--oro);
}

body.dark .pm-details {
  background: rgba(200, 146, 42, .05);
  border-color: rgba(200, 146, 42, .3);
}

.pm-section {
  margin-bottom: 14px;
}

.porzioni-label,
.colori-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 6px;
  display: block;
}

.pm-actions {
  margin-top: 18px;
}

.prodotto-unavail {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c0392b;
  background: rgba(192, 57, 43, .08);
  border: 1px solid rgba(192, 57, 43, .2);
  border-radius: 20px;
  padding: 6px 16px;
  margin-top: 12px;
}

.pm-section .colori-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pm-section .colore-btn {
  border-radius: 20px;
}

.colore-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
  background: transparent;
  border-color: rgba(200, 146, 42, .2);
}

.colore-btn:disabled:hover {
  background: transparent;
}

.colore-desc {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 6px;
}

/* Contenitore bottoni azioni prodotto */
.prodotto-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  align-items: stretch;
}

.cart-view-link {
  background: none;
  border: none;
  color: var(--oro);
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
}

.cart-view-link:hover {
  color: var(--marrone);
}


/* ══════════════════════════════════════════════
   CONTATTI — Due colonne: social + luogo/mappa
   ══════════════════════════════════════════════ */

.contatti-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.contatti-header h2 {
  font-family: var(--font-t);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

.contatti-cards {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* Colonna sinistra: link social */
.contatti-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contatto-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

@media (hover: hover) {
  .contatto-link:hover {
    border-color: var(--oro);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 146, 42, .08);
  }
}

.contatto-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contatto-link strong {
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro);
}

.contatto-icon {
  color: var(--oro);
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.contatto-detail {
  font-size: .88rem;
  color: var(--muted);
}

/* Colonna destra: luogo + orari + mappa */
.contatti-right {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 32px);
}

.contatto-place {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
}

.contatto-place strong {
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro);
}

.map-wrap {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.orari {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 280px;
}

.orari-label {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 8px;
}

.orari-row {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--muted);
  padding: 3px 0;
}

.orari-closed span:last-child {
  color: rgba(192, 57, 43, .7);
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

footer {
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-t);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--marrone);
  display: block;
  margin-bottom: 8px;
}

footer p {
  font-size: .8rem;
  color: var(--muted);
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a,
.footer-social a {
  font-size: .78rem;
  color: var(--muted);
}

.footer-nav a {
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--oro);
}

.footer-copy {
  text-align: center;
  font-size: .68rem;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  opacity: .5;
}

/* ══════════════════════════════════════════════
   CARRELLO — Modulo rimovibile
   Per rimuovere: cancellare questo blocco CSS,
   il blocco HTML #cart-drawer e il blocco JS CARRELLO
   ══════════════════════════════════════════════ */

/* Icona carrello nella navbar */
.cart-toggle {
  position: relative;
  padding: 4px 8px;
  border: 1px solid rgba(107, 63, 31, .2);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  cursor: pointer;
  transition: color .3s, border-color .3s;
  line-height: 1;
}

.cart-toggle:hover {
  color: var(--marrone);
  border-color: var(--oro);
}

.cart-badge {
  font-size: .68rem;
  font-weight: 700;
  color: var(--oro);
  display: none;
}

.cart-badge.visible {
  display: inline;
}

/* Overlay scuro dietro il drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Drawer laterale */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 90vw);
  height: 100%;
  z-index: 9001;
  background: var(--bg);
  box-shadow: -4px 0 24px rgba(0, 0, 0, .1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s var(--ease-out);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-t);
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color .2s;
}

.cart-close:hover {
  color: var(--fg);
}

.cart-clear {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: rgba(192, 57, 43, .08);
  color: #c0392b;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s;
}

.cart-clear:hover {
  background: rgba(192, 57, 43, .18);
}

/* Corpo scrollabile */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
  padding: 40px 0;
}

/* Singolo item nel carrello */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-name {
  flex: 1;
  font-size: .85rem;
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-qty button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--fg);
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s;
}

.cart-item-qty button:hover {
  border-color: var(--oro);
}

.cart-item-qty span {
  font-size: .8rem;
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

.cart-item-remove {
  background: rgba(192, 57, 43, .08);
  border: none;
  border-radius: 6px;
  color: #c0392b;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.cart-item-remove:hover {
  background: rgba(192, 57, 43, .18);
  color: #a93226;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 4px;
  margin-top: 8px;
  border-top: 2px solid var(--oro);
  font-size: .9rem;
  font-weight: 700;
  color: var(--fg);
}

/* Footer con bottone invio */
.cart-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: none;
}

.cart-footer.visible {
  display: block;
}

.cart-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-error {
  font-size: .78rem;
  color: #c0392b;
  text-align: center;
}

.cart-checkout-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(200, 146, 42, .3);
  border-radius: 8px;
  background: transparent;
  color: var(--oro);
  font-family: var(--font-b);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: not-allowed;
  opacity: .45;
  transition: background .3s, color .3s, opacity .3s;
}

.cart-checkout-btn:not([disabled]) {
  cursor: pointer;
  opacity: 1;
  background: var(--oro);
  color: #fff;
  border-color: var(--oro);
}

.cart-checkout-btn:not([disabled]):hover {
  background: var(--marrone);
  border-color: var(--marrone);
}

.cart-fields {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--oro);
  border-radius: 8px;
  background: rgba(200, 146, 42, .04);
}

.cart-fields-title {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 2px;
}

.cart-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(200, 146, 42, .3);
  border-radius: 6px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-b);
  font-size: .8rem;
  transition: border-color .2s;
}

.cart-input:focus {
  outline: none;
  border-color: var(--oro);
}

.cart-input[readonly] { cursor: pointer; }


.cart-form-reset {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 32px;
  min-height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(192, 57, 43, .12);
  color: #c0392b;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.cart-form-reset:hover {
  background: rgba(192, 57, 43, .25);
}

.cart-delivery-toggle {
  display: flex;
  gap: 6px;
}

.cart-del-btn {
  flex: 1;
  padding: 7px 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3px;
  border: 1px solid rgba(200, 146, 42, .3);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.cart-del-btn.active {
  background: rgba(200, 146, 42, .15);
  color: var(--marrone);
  border-color: var(--oro);
}

body.dark .cart-del-btn.active {
  color: #FAF7F0;
}


/* Mini-calendario */
.cal-drop {
  display: none;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 100%;
  margin-bottom: 4px;
  z-index: 10;
  background: var(--bg);
  border: 1px solid var(--oro);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
}

.cal-drop.open { display: block; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal-head button {
  background: none;
  border: none;
  color: var(--oro);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .2s;
}

.cal-head button:hover { background: rgba(200,146,42,.1); }

.cal-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-dow {
  font-size: .6rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
  letter-spacing: .5px;
}

.cal-day {
  font-size: .75rem;
  padding: 6px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
  border: none;
  background: none;
  color: var(--fg);
}

.cal-day:hover { background: rgba(200,146,42,.12); }
.cal-day.today { font-weight: 700; color: var(--oro); }
.cal-day.selected { background: var(--oro); color: #fff; }
.cal-day.disabled { color: var(--muted); opacity: .35; pointer-events: none; }
.cal-day.empty { pointer-events: none; }

/* Bottone "Aggiungi" nelle card prodotto */
.cart-add-btn {
  color: #fff;
  border: none;
  background: var(--oro);
  cursor: pointer;
  font-size: .8rem;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: .5px;
  width: 100%;
  justify-content: center;
  transition: background .2s, transform .15s;
}

.cart-add-btn:hover {
  background: var(--marrone);
}

.cart-add-btn:active {
  transform: scale(.96);
}

.cart-add-btn.added {
  background: var(--marrone);
  color: #fff;
  border: none;
  animation: addBounce .3s ease;
}

.cart-add-btn.color-unavail {
  background: var(--muted);
  opacity: .5;
  cursor: not-allowed;
}

.cart-add-btn.color-unavail:hover {
  background: var(--muted);
}

@keyframes addBounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

body.dark .cart-add-btn {
  color: #1A1A1A;
  background: var(--oro);
}

body.dark .cart-add-btn:hover {
  background: #e2b94e;
}

body.dark .cart-add-btn.added {
  background: var(--marrone);
  color: #fff;
}

/* ══════════════════════════════════════════════
   FINE CARRELLO
   ══════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════════ */

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(200, 146, 42, .3);
  background: var(--bg);
  color: var(--oro);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--oro);
  color: #fff;
}


/* ══════════════════════════════════════════════
   NAV LINK ATTIVO
   ══════════════════════════════════════════════ */

.nav-links a.active {
  color: var(--oro);
}

/* ══════════════════════════════════════════════
   ANIMAZIONE REVEAL — Elementi che appaiono dal basso
   ══════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   DARK MODE — Override variabili colore
   ══════════════════════════════════════════════ */

body.dark {
  --bg: #1A1A1A;
  --fg: #FAF7F0;
  --muted: #A8A8A8;
}

body.dark .grain {
  opacity: .015;
}

body.dark #nav.solid {
  background: rgba(26, 26, 26, .9);
}

body.dark .nav-toggle span {
  background: var(--fg);
}

body.dark .prodotto {
  border-color: rgba(250, 247, 240, .15);
}

/* ══════════════════════════════════════════════
   MENU MOBILE — Overlay fullscreen
   ══════════════════════════════════════════════ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s;
}

.mobile-menu a {
  font-family: var(--font-t);
  font-size: 1.6rem;
  color: var(--fg);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--oro);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Adattamenti per schermi ≤ 768px
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Mostra hamburger, nascondi link desktop */
  .nav-toggle  { display: flex; }
  .nav-links   { display: none; }

  .grain { display: none; }

  /* Apri menu mobile */
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
  }

  /* Contatti: colonna singola, social in riga compatta */
  .contatti-cards {
    grid-template-columns: 1fr;
  }

  .contatti-left {
    flex-direction: row;
    gap: 8px;
  }

  .contatto-link {
    flex: 1;
    min-width: 0;
    padding: 12px 10px;
    gap: 8px;
    justify-content: center;
  }

  .contatto-link-text .contatto-detail {
    display: none;
  }

  .contatto-link strong {
    font-size: .58rem;
    letter-spacing: 1px;
  }

  .contatto-icon {
    width: 22px;
    height: 22px;
  }

  .lana-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lana-gomitolo {
    order: -1;
  }

  .lana-anim {
    width: 120px;
  }



  /* Prodotti: gap più stretto su mobile */
  .lana-prodotti-list {
    gap: 12px;
  }

  .prodotto {
    padding: 12px;
  }


  /* Footer: colonna singola */
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .lana-prodotti-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .prodotto-img > img {
    height: 140px;
  }

  .prodotto-img > .lana-slideshow {
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
