/* ==========================================================================
   SAPORI DI CALABRIA — Design system (demo portfolio)
   Palette: peperoncino #9e1b24 · oliva scura #1d241f · bergamotto #e8a33d
   Font: Prata (display) + Jost (testo)
   ========================================================================== */

:root {
  --chili: #9e1b24;
  --chili-dark: #7a121a;
  --chili-soft: #f9e9e7;
  --olive: #1d241f;
  --olive-soft: #46524a;
  --amber: #e8a33d;
  --amber-soft: #fdf3e0;
  --paper: #faf6ee;
  --cream: #fffdf8;
  --ink: #232018;
  --muted: #6d6a5f;
  --line: #e6dfd0;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -18px rgba(29, 36, 31, .28);
  --shadow-sm: 0 8px 24px -12px rgba(29, 36, 31, .22);
  --font-display: 'Prata', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
em { font-style: italic; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--chili); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0; z-index: 300; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--chili); color: #fff; overflow: hidden;
  padding: 9px 0; font-size: .86rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 2.6rem; padding-left: 2.6rem; animation: marquee 26s linear infinite; }
.marquee-track i { font-style: normal; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 14px 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-seal { color: var(--chili); }
.brand-text { font-family: var(--font-display); font-size: 1.28rem; letter-spacing: .02em; }
.brand-text em { color: var(--chili); font-style: italic; }

.primary-nav { display: flex; gap: 1.7rem; margin-left: auto; }
.primary-nav a { font-weight: 500; font-size: .98rem; color: var(--olive); position: relative; padding: 4px 0; }
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--chili); transition: width .3s var(--ease);
}
.primary-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .7rem; }
.lang-toggle {
  border: 1px solid var(--line); background: var(--cream); color: var(--olive);
  font-weight: 600; font-size: .82rem; letter-spacing: .08em;
  padding: 7px 12px; border-radius: 999px; transition: all .25s var(--ease);
}
.lang-toggle:hover { border-color: var(--chili); color: var(--chili); }

.cart-link {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--olive); color: var(--cream); border: none;
  transition: transform .25s var(--ease), background .25s;
}
.cart-link:hover { background: var(--chili); transform: translateY(-2px); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  background: var(--amber); color: var(--olive);
  font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px;
  border-radius: 999px; display: grid; place-items: center;
  border: 2px solid var(--cream);
}
.cart-count.has-items { animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--olive); margin: 5px 0; transition: .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: .2rem;
  padding: 0 4% 18px; border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 12px 4px; font-weight: 500; border-bottom: 1px dashed var(--line); }
.mobile-nav .lang-toggle { align-self: flex-start; margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .02em;
  transition: all .28s var(--ease);
}
.btn-primary { background: var(--chili); color: #fff; }
.btn-primary:hover { background: var(--chili-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { border-color: var(--olive); color: var(--olive); background: transparent; }
.btn-outline:hover { background: var(--olive); color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 90%;
  background: radial-gradient(closest-side, rgba(232, 163, 61, .16), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4.5rem; align-items: center; }

.hero-kicker {
  font-size: .85rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--chili); font-weight: 600; margin-bottom: 18px;
}
.hero-title { font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.16; font-weight: 400; }
.hero-title em { color: var(--chili); }
.hero-sub { margin: 22px 0 30px; color: var(--muted); max-width: 54ch; font-size: 1.06rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 2.4rem; margin-top: 44px; list-style: none; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--olive); }
.hero-stats span { font-size: .84rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.hero-media { position: relative; }
.hero-img-main { border-radius: 22px 22px 22px 4px; box-shadow: var(--shadow); aspect-ratio: 5/4.4; object-fit: cover; width: 100%; }
.hero-img-small {
  position: absolute; left: -46px; bottom: -38px; width: 46%;
  border-radius: 16px 16px 4px 16px; border: 6px solid var(--cream);
  box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover;
}
.hero-stamp {
  position: absolute; top: 26px; right: -18px; transform: rotate(8deg);
  font-family: var(--font-display); color: var(--olive); text-align: center;
  background: var(--amber); padding: 14px 18px; border-radius: 50%;
  width: 128px; height: 128px; display: grid; place-items: center;
  font-size: .88rem; line-height: 1.35; box-shadow: var(--shadow-sm);
  border: 2px dashed var(--olive);
}
.hero-chip {
  position: absolute; background: var(--cream); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow-sm); color: var(--olive);
}
.chip-1 { bottom: 26px; right: 8px; }
.chip-2 { top: -14px; left: 8px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--olive); color: var(--cream); }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 26px 0; gap: 1rem;
}
.trust-item { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
.trust-item strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--amber); }
.trust-item span { font-size: .9rem; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tinted { background: var(--cream); border-block: 1px solid var(--line); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-kicker {
  font-size: .82rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--chili); font-weight: 600; margin-bottom: 14px;
}
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 400; line-height: 1.22; }
.section-title em { color: var(--chili); }
.section-sub { color: var(--muted); margin-top: 14px; }

/* ---------- Categorie (scroller) ---------- */
.cat-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px);
  gap: 20px; overflow-x: auto; padding: 6px 6px 18px; scroll-snap-type: x mandatory;
}
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  scroll-snap-align: start; aspect-ratio: 4/5;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.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 .6s var(--ease); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 25, 21, .85), rgba(20, 25, 21, .05) 60%); }
.cat-card-body { position: relative; z-index: 1; padding: 22px; color: #fff; width: 100%; }
.cat-card-body h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 400; }
.cat-card-body p { font-size: .86rem; opacity: .85; margin-top: 4px; }
.cat-count { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--amber); color: var(--olive); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
/* ---------- Prodotti (griglia + filtri) ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-pill {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--olive);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: all .25s var(--ease);
}
.filter-pill:hover { border-color: var(--chili); color: var(--chili); }
.filter-pill.is-active { background: var(--chili); border-color: var(--chili); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d8cfba; }
.product-card-media { position: relative; aspect-ratio: 4/3.2; overflow: hidden; background: var(--cream); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.06); }
.pcard-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--olive);
}
.badge-new { background: var(--olive); color: var(--cream); }
.badge-hot { background: var(--chili); color: #fff; }
.quick-view {
  position: absolute; inset: auto 12px 12px 12px; z-index: 1;
  background: rgba(29, 36, 31, .92); color: #fff; border: 0;
  padding: 11px; border-radius: 10px; font-weight: 600; font-size: .9rem;
  opacity: 0; transform: translateY(10px); transition: all .3s var(--ease);
}
.product-card:hover .quick-view { opacity: 1; transform: translateY(0); }
.product-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.pcard-cat { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--chili); font-weight: 600; }
.pcard-name { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.3; font-weight: 400; }
.pcard-origin { font-size: .84rem; color: var(--muted); }
.pcard-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.pcard-price { font-family: var(--font-display); font-size: 1.22rem; color: var(--olive); }
.pcard-price small { font-family: var(--font-body); font-size: .76rem; color: var(--muted); display: block; font-weight: 400; }
.add-btn {
  border: 0; background: var(--chili); color: #fff; border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: .88rem;
  transition: all .25s var(--ease);
}
.add-btn:hover { background: var(--chili-dark); transform: scale(1.05); }
.add-btn.added { background: var(--olive); }

/* ---------- Territorio ---------- */
.terr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.terr-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; transition: all .35s var(--ease);
  border-top: 4px solid transparent;
}
.terr-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-top-color: var(--chili); }
.terr-ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--chili-soft); color: var(--chili); display: grid; place-items: center;
  font-size: 1.7rem;
}
.terr-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; }
.terr-card .terr-specialty { font-size: .86rem; color: var(--chili); font-weight: 600; margin: 8px 0 10px; }
.terr-card p { font-size: .86rem; color: var(--muted); }

/* ---------- Produttori ---------- */
.maker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.maker-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; transition: transform .35s var(--ease), box-shadow .35s;
}
.maker-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.maker-photo { position: relative; aspect-ratio: 1/1; }
.maker-photo img { width: 100%; height: 100%; object-fit: cover; }
.maker-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29,36,31,.5), transparent 55%); }
.maker-name { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 1; color: #fff; font-family: var(--font-display); font-size: 1.12rem; }
.maker-body { padding: 18px; }
.maker-body .maker-role { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--chili); font-weight: 700; }
.maker-body blockquote { font-style: italic; font-size: .92rem; color: var(--olive-soft); margin: 10px 0; line-height: 1.55; }
.maker-body .maker-products { font-size: .8rem; color: var(--muted); }

/* ---------- Ricette ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.recipe-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.recipe-media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.recipe-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.recipe-card:hover .recipe-media img { transform: scale(1.06); }
.recipe-tag { position: absolute; top: 14px; left: 14px; background: var(--amber); color: var(--olive); font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.recipe-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.recipe-body h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 400; margin-bottom: 8px; }
.recipe-meta { font-size: .8rem; color: var(--muted); margin-bottom: 10px; letter-spacing: .05em; }
.recipe-desc { font-size: .92rem; color: var(--olive-soft); }
.recipe-uses { margin-top: 14px; font-size: .82rem; }
.recipe-uses strong { color: var(--chili); font-weight: 600; }
.recipe-uses span { display: inline-block; background: var(--chili-soft); color: var(--chili-dark); padding: 3px 10px; border-radius: 999px; margin: 4px 4px 0 0; font-size: .78rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px;
  font-size: 1.02rem; font-weight: 600; color: var(--olive);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q .faq-chev { transition: transform .3s var(--ease); color: var(--chili); font-size: 1.1rem; }
.faq-item.is-open .faq-chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--amber-soft); border-block: 1px solid var(--line); padding: 70px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; position: relative; }
.newsletter-inner .section-title { font-size: 1.7rem; }
.newsletter-inner p:not(.news-note) { color: var(--muted); margin-top: 8px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1; padding: 14px 20px; border: 1.5px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: .96rem; background: var(--cream);
}
.newsletter-form input:focus { outline: 2px solid var(--amber); border-color: transparent; }
.news-note { font-size: .78rem; color: var(--muted); grid-column: 1 / -1; margin-top: 4px; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.contact-form {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; background: var(--white); color: var(--ink);
  transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--chili); box-shadow: 0 0 0 3px var(--chili-soft); }
.field-err { font-size: .8rem; color: var(--chili); min-height: 0; display: none; }
.field.has-err input, .field.has-err textarea { border-color: var(--chili); }
.field.has-err .field-err { display: block; }
.form-note { font-size: .78rem; color: var(--muted); }
.contact-form.is-sent .contact-form-fields, .contact-form.is-sent .contact-form-btn { display: none; }
.contact-success { display: none; text-align: center; padding: 40px 10px; }
.contact-success .ok-ico { font-size: 3rem; }
.contact-success h3 { font-family: var(--font-display); font-weight: 400; margin: 12px 0 8px; font-size: 1.4rem; }
.contact-success p { color: var(--muted); }
.contact-form.is-sent .contact-success { display: block; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm); padding: 20px 22px;
}
.contact-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--chili); margin-bottom: 6px; }
.contact-card p { font-size: .93rem; color: var(--olive-soft); }
.contact-card a:hover { color: var(--chili); }
.contact-card-accent { border-left-color: var(--chili); }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive); color: #cfd6cf; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand { color: var(--cream); margin-bottom: 16px; }
.footer-brand .brand-seal { color: var(--amber); }
.footer-brand .brand em { color: var(--amber); }
.footer-brand p { font-size: .9rem; max-width: 34ch; color: #aeb6ae; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--amber); margin-bottom: 6px; }
.footer-col a, .footer-col p { font-size: .9rem; color: #cfd6cf; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .82rem; color: #97a097;
}

/* ---------- Modale prodotto ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 24, 21, .66); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; background: var(--cream); border-radius: 18px; width: min(940px, 100%);
  max-height: 88vh; overflow: auto; box-shadow: var(--shadow); transform: translateY(24px) scale(.97);
  transition: transform .35s var(--ease);
}
.modal.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: var(--olive); color: #fff; font-size: 1.3rem;
  display: grid; place-items: center; transition: background .25s;
}
.modal-close:hover { background: var(--chili); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { position: relative; min-height: 420px; }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.modal-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.25; }
.modal-origin { font-size: .88rem; color: var(--muted); }
.modal-origin strong { color: var(--olive); }
.modal-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--chili); }
.modal-desc { color: var(--olive-soft); font-size: .96rem; }
.modal-facts { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.modal-facts div { display: flex; gap: 8px; }
.modal-facts strong { min-width: 110px; color: var(--olive); }
.modal-facts span { color: var(--muted); }
.modal-qty { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.modal-qty label { font-weight: 600; font-size: .9rem; }
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty-control button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.15rem; color: var(--olive); transition: background .2s; }
.qty-control button:hover { background: var(--chili-soft); }
.qty-control input { width: 44px; text-align: center; border: 0; font-size: 1rem; font-family: inherit; background: transparent; }
.modal-add { margin-top: 10px; }

/* ---------- Drawer carrello ---------- */
.drawer { position: fixed; inset: 0; z-index: 220; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20, 24, 21, .55); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 94vw);
  background: var(--cream); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .4s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }
.drawer-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); padding: 4px 8px; }
.drawer-close:hover { color: var(--chili); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 26px; }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.drawer-empty .emoji { font-size: 3rem; display: block; margin-bottom: 14px; }
.drawer-empty .btn { margin-top: 20px; }
.cart-lines { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.cart-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; }
.cart-line img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }
.cart-line-info { min-width: 0; }
.cart-line-cat { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--chili); font-weight: 700; }
.cart-line-name { font-family: var(--font-display); font-size: .94rem; font-weight: 400; line-height: 1.25; margin: 2px 0 6px; }
.cart-line-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.cart-line-qty button { width: 28px; height: 28px; border: 0; background: none; font-size: .95rem; }
.cart-line-qty button:hover { background: var(--chili-soft); }
.cart-line-qty input { width: 32px; text-align: center; border: 0; font-size: .9rem; font-family: inherit; background: transparent; }
.cart-line-price { text-align: right; }
.cart-line-price strong { font-family: var(--font-display); font-weight: 400; }
.cart-line-remove { border: 0; background: none; color: var(--muted); font-size: .78rem; text-decoration: underline; margin-top: 4px; }
.cart-line-remove:hover { color: var(--chili); }

.drawer-foot { padding: 20px 26px 26px; border-top: 1px solid var(--line); background: var(--white); }
.ship-progress { margin-bottom: 16px; }
.ship-progress p { font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.ship-progress p strong { color: var(--chili); }
.ship-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--chili)); transition: width .5s var(--ease); }
.cart-summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: .94rem; }
.cart-summary-row.total { border-top: 1px dashed var(--line); padding-top: 10px; font-family: var(--font-display); font-size: 1.2rem; }
.checkout-form { display: flex; flex-direction: column; gap: 10px; }
.checkout-form input {
  padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .92rem; background: var(--cream);
}
.checkout-form input:focus { outline: none; border-color: var(--chili); }
.checkout-form .btn { margin-top: 4px; }
.cart-note { font-size: .74rem; color: var(--muted); margin-top: 10px; text-align: center; }
.checkout-ok { text-align: center; padding: 14px 4px; }
.checkout-ok .emoji { font-size: 2.4rem; }
.checkout-ok h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin: 8px 0 4px; }
.checkout-ok p { font-size: .86rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--olive); color: #fff; padding: 13px 24px; border-radius: 999px;
  font-weight: 500; font-size: .92rem; box-shadow: var(--shadow); z-index: 300;
  opacity: 0; pointer-events: none; transition: all .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Demo badge ---------- */
.demo-badge {
  position: fixed; bottom: 16px; left: 16px; z-index: 240;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(29, 36, 31, .92); color: #fff; font-size: .78rem;
  padding: 9px 15px; border-radius: 999px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease);
}
.demo-badge:hover { transform: translateY(-2px); }
.demo-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .maker-grid { grid-template-columns: repeat(2, 1fr); }
  .terr-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-img-small { left: 10px; }
  .hero-stamp { right: 10px; }
  .hero-stats { gap: 1.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-media { min-height: 260px; }
  .modal-body { padding: 26px; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .maker-grid, .terr-grid { grid-template-columns: 1fr; }
  .pcard-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .add-btn { width: 100%; }
  .hero { padding: 52px 0 72px; }
  .hero-chip { display: none; }
  .section { padding: 64px 0; }
  .hero-cta .btn { flex: 1; }
}
