/* ============================================================
   BOTTEGA IBLEA — Design system
   Palette: crema, terracotta, pistacchio, miele, espresso
   Font: Fraunces (serif) + Karla (sans) + Caveat (mano)
   ============================================================ */

:root {
  --cream: #f5ecdc;
  --paper: #fbf4e6;
  --sand: #ead9bd;
  --espresso: #2b1d10;
  --coffee: #4a3826;
  --terra: #a8432e;
  --terra-deep: #8a3423;
  --terra-soft: #c96a4e;
  --pistachio: #7c8b5b;
  --pistachio-deep: #5f6f42;
  --honey: #d9a13b;
  --honey-deep: #b57f1e;
  --line: rgba(43, 29, 16, 0.16);
  --line-soft: rgba(43, 29, 16, 0.1);
  --shadow: 0 18px 40px -22px rgba(43, 29, 16, 0.45);
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;
}

/* ---------- Reset ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--coffee);
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(43, 29, 16, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--espresso);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--espresso); color: var(--cream);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em; cursor: pointer; border: 0;
  padding: 13px 26px; border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--terra); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(168, 67, 46, 0.7);
}
.btn-primary:hover { background: var(--terra-deep); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--espresso);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--terra); color: var(--terra); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Barra annunci ---------- */

.top-strip {
  background: var(--espresso); color: var(--sand);
  text-align: center; font-size: 0.82rem; letter-spacing: 0.06em;
  padding: 8px 16px; text-transform: uppercase;
}
.top-strip strong { color: var(--honey); font-weight: 700; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 244, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--espresso); }
.brand:hover { color: var(--espresso); }
.brand-seal { display: grid; place-items: center; color: var(--terra); }
.brand-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1; }
.brand-text em { font-style: normal; color: var(--pistachio-deep); }

.primary-nav { display: flex; gap: 30px; }
.primary-nav a {
  color: var(--coffee); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.03em; position: relative; padding: 4px 0;
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--terra);
  transition: width 0.22s ease;
}
.primary-nav a:hover::after, .primary-nav a.is-active::after { width: 100%; }
.primary-nav a.is-active { color: var(--terra); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.cart-link {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--espresso); border: 1.5px solid var(--line);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.cart-link:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-2px); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--honey); color: var(--espresso);
  font-size: 0.72rem; font-weight: 800; line-height: 20px; text-align: center;
  opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-count.has-items { opacity: 1; transform: scale(1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--espresso);
  margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 0 18px; border-top: 1px solid var(--line-soft);
}
.mobile-nav a { padding: 12px 4px; font-weight: 700; color: var(--espresso); border-bottom: 1px dashed var(--line-soft); }
.mobile-nav.is-open { display: flex; }
body.nav-lock { overflow: hidden; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-hand); font-size: 1.35rem; color: var(--terra);
  margin-bottom: 6px;
}
.hero-kicker::before {
  content: ''; width: 42px; height: 2px; background: var(--terra); display: inline-block;
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.01em; margin-bottom: 0.35em;
}
.hero-title em { font-style: italic; color: var(--terra); }
.hero-sub { font-size: 1.12rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-note { font-family: var(--font-hand); font-size: 1.2rem; color: var(--pistachio-deep); margin: 0; }

.hero-media { position: relative; }
.hero-media img {
  border-radius: 8px 40px 8px 40px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%;
  border: 10px solid var(--paper);
}
.hero-stamp {
  position: absolute; top: -22px; left: -22px;
  width: 96px; height: 96px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--terra); color: var(--paper);
  font-family: var(--font-hand); font-size: 1.25rem; line-height: 1.1; text-align: center;
  transform: rotate(-10deg);
  box-shadow: 0 12px 24px -10px rgba(168, 67, 46, 0.6);
}
.hero-note-tag {
  position: absolute; bottom: -18px; right: 12px;
  background: var(--honey); color: var(--espresso);
  font-family: var(--font-hand); font-size: 1.25rem; padding: 6px 18px;
  border-radius: 999px; transform: rotate(3deg);
  box-shadow: 0 10px 20px -10px rgba(43, 29, 16, 0.5);
}

/* ---------- Trust strip ---------- */

.trust-strip {
  margin-top: 56px; border-block: 1px dashed var(--line);
  background: rgba(251, 244, 230, 0.7);
}
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 22px 0; text-align: center;
}
.trust-item { font-size: 0.9rem; font-weight: 700; color: var(--espresso); }
.trust-item span { display: block; font-family: var(--font-hand); font-size: 1.4rem; color: var(--pistachio-deep); margin-bottom: 2px; }

/* ---------- Sezioni ---------- */

.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-kicker {
  font-family: var(--font-hand); font-size: 1.4rem; color: var(--terra);
  margin: 0 0 4px;
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-sub { font-size: 1.05rem; }

/* ---------- Card prodotto (look etichetta) ---------- */

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 26px;
}

.pcard {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 6px 22px -18px rgba(43, 29, 16, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.pcard-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.pcard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.3, 1);
}
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(43, 29, 16, 0.25));
}
.pcard-badges {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px;
}
.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--honey); color: var(--espresso);
  padding: 4px 10px; border-radius: 999px;
  width: fit-content;
  box-shadow: 0 4px 10px -4px rgba(43, 29, 16, 0.4);
}
.badge:nth-child(2) { background: var(--pistachio); color: #fff; }

.pcard-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; flex: 1;
  border-top: 3px double var(--line);
}
.pcard-cat {
  font-family: var(--font-hand); font-size: 1.15rem; color: var(--terra);
  margin: 0 0 2px; line-height: 1.2;
}
.pcard-name { font-size: 1.18rem; line-height: 1.25; margin: 0 0 6px; }
.pcard-name a { color: var(--espresso); }
.pcard-name a:hover { color: var(--terra); }
.pcard-meta { font-size: 0.83rem; color: var(--coffee); opacity: 0.85; margin: 0 0 14px; }
.pcard-foot {
  margin-top: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.pcard-price { font-family: var(--font-display); font-size: 1.25rem; color: var(--terra-deep); }

/* ---------- Filtri catalogo ---------- */

.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 30px;
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--coffee);
  border: 1.5px solid var(--line);
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--terra); color: var(--terra); }
.filter-chip.is-active {
  background: var(--terra); border-color: var(--terra); color: #fff;
  box-shadow: 0 8px 18px -10px rgba(168, 67, 46, 0.7);
}
.catalog-count { font-size: 0.88rem; font-weight: 700; color: var(--coffee); }
.catalog-empty { grid-column: 1 / -1; text-align: center; padding: 40px; font-size: 1.05rem; }

.sort-wrap select {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  padding: 10px 36px 10px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--espresso);
  cursor: pointer;
}

/* ---------- Categorie home ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 3.6; display: flex; align-items: flex-end;
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 24px -18px rgba(43, 29, 16, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.3, 1);
}
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(43, 29, 16, 0.82));
}
.cat-card-body {
  position: relative; z-index: 2; color: var(--paper);
  padding: 22px; width: 100%;
}
.cat-card-body h3 { color: var(--paper); font-size: 1.35rem; margin-bottom: 4px; }
.cat-card-body p { font-family: var(--font-hand); font-size: 1.2rem; margin: 0 0 10px; opacity: 0.9; }
.cat-card-link { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--honey); }
.cat-card-link:hover { color: #fff; }

/* ---------- Produttori / chi siamo ---------- */

.producers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.producer-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 6px 22px -18px rgba(43, 29, 16, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.producer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.producer-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--sand); color: var(--terra); font-size: 1.5rem;
}
.producer-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.producer-card .producer-place {
  font-family: var(--font-hand); font-size: 1.15rem; color: var(--pistachio-deep);
  margin-bottom: 10px;
}
.producer-card p { font-size: 0.95rem; margin-bottom: 0; }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-media img { border-radius: 8px 40px 8px 40px; box-shadow: var(--shadow); border: 10px solid var(--paper); }
.story-text p { margin-bottom: 1em; }
.story-quote {
  border-left: 4px solid var(--honey); padding-left: 20px;
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
  color: var(--espresso); margin: 24px 0;
}
.story-quote cite { display: block; font-style: normal; font-size: 0.9rem; font-family: var(--font-body); color: var(--coffee); margin-top: 8px; }

.values-list { list-style: none; padding: 0; margin: 0; }
.values-list li {
  padding: 14px 0; border-bottom: 1px dashed var(--line);
  display: flex; gap: 14px; align-items: flex-start;
}
.values-list strong { color: var(--terra); font-size: 1.1rem; }

/* ---------- Dettaglio prodotto ---------- */

.breadcrumb { font-size: 0.85rem; color: var(--coffee); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--coffee); }
.breadcrumb a:hover { color: var(--terra); }

.detail-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.detail-media { position: relative; }
.detail-media img {
  border-radius: 8px 40px 8px 40px; box-shadow: var(--shadow);
  border: 10px solid var(--paper); width: 100%;
  aspect-ratio: 4 / 3.4; object-fit: cover;
}
.detail-stamp {
  position: absolute; bottom: -14px; right: 20px;
  background: var(--terra); color: var(--paper);
  font-family: var(--font-hand); font-size: 1.2rem; padding: 6px 16px;
  border-radius: 999px; transform: rotate(2deg);
  box-shadow: 0 10px 20px -10px rgba(168, 67, 46, 0.6);
}
.detail-kicker { font-family: var(--font-hand); font-size: 1.4rem; color: var(--terra); margin-bottom: 4px; }
.detail-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.detail-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-price { font-family: var(--font-display); font-size: 1.9rem; color: var(--terra-deep); margin-bottom: 14px; }
.detail-price span { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; color: var(--coffee); }
.detail-desc { font-size: 1.05rem; }
.detail-buy { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 22px 0; }
.detail-facts {
  border-top: 1px dashed var(--line); padding-top: 16px;
  display: grid; gap: 4px;
}
.detail-fact { font-size: 0.95rem; margin: 0; }
.detail-extra { margin-top: 44px; max-width: 820px; }
.detail-extra .faq-item { border: 1px solid var(--line-soft); }
.detail-pairings { margin-top: 24px; }
.detail-pairings h3 { font-size: 1.1rem; }
.detail-list { margin: 0; padding-left: 20px; }

/* ---------- Stepper quantità ---------- */

.qty-stepper, .cart-line-qty { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.qty-btn {
  width: 40px; height: 42px; border: 0; background: transparent;
  font-size: 1.2rem; font-weight: 700; color: var(--espresso); cursor: pointer;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--sand); }
.qty-input {
  width: 48px; height: 42px; border: 0; text-align: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  background: transparent; color: var(--espresso); -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--espresso);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--terra); transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; margin: 0; }

/* ---------- Carrello ---------- */

.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.cart-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px; align-items: center;
  transition: box-shadow 0.2s;
}
.cart-line:hover { box-shadow: var(--shadow); }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.cart-line-cat { font-family: var(--font-hand); font-size: 1.05rem; color: var(--terra); margin: 0; line-height: 1.2; }
.cart-line-name { font-size: 1.1rem; margin: 0 0 2px; }
.cart-line-name a { color: var(--espresso); }
.cart-line-name a:hover { color: var(--terra); }
.cart-line-unit { font-size: 0.83rem; opacity: 0.85; margin: 0 0 10px; }
.cart-line-price { text-align: right; }
.cart-line-price strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--terra-deep); display: block; margin-bottom: 6px; }
.cart-line-remove { background: none; border: 0; cursor: pointer; color: var(--coffee); font-size: 0.8rem; text-decoration: underline; padding: 0; }
.cart-line-remove:hover { color: var(--terra-deep); }

.cart-summary {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 100px;
  box-shadow: 0 10px 30px -20px rgba(43, 29, 16, 0.5);
}
.cart-summary h2 { font-size: 1.4rem; }
.cart-progress { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 10px 0 6px; }
.cart-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--honey), var(--terra)); border-radius: 999px; transition: width 0.5s ease; }
.cart-free-note { font-size: 0.85rem; font-weight: 700; color: var(--pistachio-deep); margin: 0 0 16px; }
.summary-rows { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.98rem; }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; font-family: var(--font-display); font-size: 1.4rem; color: var(--espresso); }
.cart-note { font-size: 0.82rem; opacity: 0.8; margin: 14px 0 0; }
.cart-empty { text-align: center; padding: 60px 20px; background: var(--paper); border-radius: var(--radius); border: 1px dashed var(--line); }
.cart-empty-icon { font-size: 2.6rem; display: block; margin-bottom: 8px; }

.checkout-form .form-field { margin-bottom: 14px; }
.checkout-done { background: var(--paper); border: 1px dashed var(--pistachio); border-radius: var(--radius); padding: 30px; text-align: center; }

/* ---------- Form ---------- */

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--espresso); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--espresso);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(168, 67, 46, 0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-side { display: grid; gap: 14px; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px 22px;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { margin: 0; font-size: 0.95rem; }
.form-success {
  background: var(--paper); border: 1px dashed var(--pistachio); border-radius: var(--radius);
  padding: 34px; text-align: center;
}

/* ---------- Disclaimer ---------- */

.disclaimer {
  background: var(--espresso); color: var(--sand);
  border-radius: 12px; padding: 22px 26px; margin-top: 40px;
  border-left: 5px solid var(--honey);
}
.disclaimer h3 { color: var(--honey); font-size: 1.1rem; margin-bottom: 6px; }
.disclaimer p { margin: 0; font-size: 0.95rem; }

/* ---------- Newsletter ---------- */

.newsletter { background: var(--terra); color: #fff; }
.newsletter .section-kicker { color: var(--sand); }
.newsletter .section-title { color: #fff; }
.newsletter .section-sub { opacity: 0.9; }
.newsletter .btn-primary { background: var(--honey); color: var(--espresso); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }
.newsletter .btn-primary:hover { background: var(--honey-deep); color: var(--espresso); }
.newsletter-form { display: flex; gap: 12px; max-width: 520px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 240px; padding: 13px 18px; border-radius: 999px;
  border: 0; font-family: var(--font-body); font-size: 1rem;
}
.newsletter-form .btn { background: var(--honey); color: var(--espresso); }
.newsletter-form .btn:hover { background: var(--honey-deep); color: var(--espresso); }
.news-note { font-size: 0.82rem; opacity: 0.85; margin: 12px 0 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--espresso); color: var(--sand); margin-top: 20px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px;
  padding: 52px 0 36px;
}
.site-footer h3 { color: var(--honey); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--honey); }
.footer-col { display: grid; gap: 8px; font-size: 0.93rem; }
.footer-brand .brand { color: var(--paper); margin-bottom: 12px; }
.footer-brand p { font-size: 0.93rem; opacity: 0.85; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(245, 236, 220, 0.15);
  padding: 20px 0 26px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.82rem; opacity: 0.8;
}
.footer-bottom p { margin: 0; }

/* ---------- Badge demo (angolo fisso) ---------- */

.demo-badge {
  position: fixed; bottom: 16px; left: 16px; z-index: 300;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(43, 29, 16, 0.92); color: var(--sand);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid rgba(217, 161, 59, 0.5);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.demo-badge:hover { transform: translateY(-2px); background: var(--terra); color: #fff; }
.demo-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--honey); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 161, 59, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(217, 161, 59, 0); }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  background: var(--espresso); color: var(--paper);
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  border: 1px solid rgba(217, 161, 59, 0.4);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Page hero (sottopagine) ---------- */

.page-hero { padding: 54px 0 30px; text-align: center; }
.page-hero .section-kicker { margin-bottom: 2px; }
.page-hero .section-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p.lead { max-width: 62ch; margin-inline: auto; font-size: 1.08rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .producers-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .story-grid { grid-template-columns: 1fr; gap: 34px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 540px; }
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .producers-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; height: 72px; }
  .cart-line-price { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .hero-stamp { width: 80px; height: 80px; font-size: 1.05rem; top: -14px; left: -8px; }
}

/* ---------- Riduzione movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
