/* === Leone Food-Hub — design tokens === */

:root {
  /* Palette base — bottega abruzzese */
  --terracotta: #C8553D;
  --terracotta-deep: #A8201A;
  --ocra: #E8B14F;
  --oliva: #556B2F;
  --oliva-deep: #3F5320;
  --crema: #F5E6D3;
  --crema-soft: #FBF1E1;
  --crema-warm: #EFDEC4;
  --caffe: #3E2723;
  --caffe-soft: #5C3D34;
  --inchiostro: #1F1410;

  /* Regioni */
  --region-abruzzo: #C8553D;
  --region-campania: #E8B14F;
  --region-lazio: #A8201A;
  --region-molise: #556B2F;

  /* Theme tokens (overridable via Tweaks) */
  --bg: var(--crema);
  --bg-soft: var(--crema-soft);
  --bg-card: #FBF4E6;
  --fg: var(--caffe);
  --fg-soft: var(--caffe-soft);
  --rule: rgba(62, 39, 35, 0.14);
  --rule-strong: rgba(62, 39, 35, 0.28);
  --accent: var(--terracotta);
  --accent-warm: var(--ocra);
  --accent-deep: var(--terracotta-deep);
  --accent-leaf: var(--oliva);

  /* Type */
  --serif: 'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Menlo', monospace;

  /* Spacing */
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(64px, 9vw, 128px);

  /* Radii — molto contenuti, no cornerless slop */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-pill: 999px;

  /* Shadows — calde */
  --sh-soft: 0 1px 2px rgba(62, 39, 35, 0.05), 0 4px 12px rgba(62, 39, 35, 0.06);
  --sh-warm: 0 6px 24px rgba(168, 32, 26, 0.12), 0 2px 6px rgba(62, 39, 35, 0.08);
  --sh-lift: 0 18px 38px rgba(62, 39, 35, 0.18), 0 4px 10px rgba(62, 39, 35, 0.1);
}

/* Texture toggle */
.tex-paper {
  --paper-on: 1;
}
.tex-clean {
  --paper-on: 0;
}

/* Palette tweaks */
.pal-terracotta {
  --accent: var(--terracotta);
  --accent-warm: var(--ocra);
  --accent-deep: var(--terracotta-deep);
  --accent-leaf: var(--oliva);
}
.pal-oliva {
  --accent: var(--oliva);
  --accent-warm: #B8923A;
  --accent-deep: var(--oliva-deep);
  --accent-leaf: var(--terracotta);
}
.pal-sobrio {
  --accent: #6B4226;
  --accent-warm: #C9A96A;
  --accent-deep: #3E2723;
  --accent-leaf: #6B7C45;
  --bg: #F4EDE0;
  --bg-soft: #FAF4E8;
  --bg-card: #FFFFFF;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

/* Paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: calc(var(--paper-on, 1) * 0.55);
  background-image:
    radial-gradient(circle at 25% 30%, rgba(62, 39, 35, 0.035) 0, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(62, 39, 35, 0.04) 0, transparent 1.2px),
    radial-gradient(circle at 50% 80%, rgba(168, 32, 26, 0.03) 0, transparent 1.5px);
  background-size: 6px 6px, 11px 11px, 17px 17px;
  mix-blend-mode: multiply;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--crema); }

/* === Type === */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(48px, 8vw, 112px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(24px, 3vw, 36px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-soft);
}
.eyebrow::before {
  content: '— ';
  color: var(--accent);
}

/* === Layout === */
.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: padding 280ms cubic-bezier(.2,.7,.2,1), border-color 280ms ease;
}
.header.is-scrolled {
  border-bottom-color: var(--rule);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 26px 0;
  transition: padding 280ms cubic-bezier(.2,.7,.2,1);
}
.header.is-scrolled .header__inner { padding: 14px 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  transition: font-size 280ms cubic-bezier(.2,.7,.2,1);
}
.header.is-scrolled .brand { font-size: 22px; }
.brand__mark {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  background: var(--bg);
  transition: width 280ms, height 280ms, font-size 280ms;
}
.header.is-scrolled .brand__mark { width: 32px; height: 32px; font-size: 17px; }
.brand__sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft);
  display: block;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 36px);
  justify-content: center;
  font-size: 14px;
}
.nav button {
  position: relative;
  padding: 4px 0;
  color: var(--fg);
  font-weight: 500;
  transition: color 200ms;
}
.nav button::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.nav button:hover::after,
.nav button.is-active::after { transform: scaleX(1); }
.nav button.is-active { color: var(--accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  position: relative;
  color: var(--fg);
  transition: background 200ms;
}
.icon-btn:hover { background: var(--bg-card); }
.icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--accent);
  color: var(--crema);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), background 200ms, color 200ms, box-shadow 200ms;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--accent-deep);
  color: var(--crema);
  box-shadow: var(--sh-warm);
}
.btn--primary:hover {
  background: var(--caffe);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
}
.btn--small { padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

/* === Region badge === */
.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--rule);
}
.region-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--region-color, var(--accent));
}
.region-abruzzo { --region-color: var(--region-abruzzo); }
.region-campania { --region-color: var(--region-campania); }
.region-lazio { --region-color: var(--region-lazio); }
.region-molise { --region-color: var(--region-molise); }

/* === Placeholder a strisce === */
.ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--ph-bg, #E8D4B0);
  overflow: hidden;
  isolation: isolate;
  outline: 1px solid rgba(62, 39, 35, 0.18);
  outline-offset: -1px;
}
/* Fallback: if the .ph happens to be in a non-sized parent, still render */
.ph:only-child { min-height: inherit; }

/* Force media containers to have an actual rendered height */
.product-card__media,
.hero__media,
.story__media,
.producer__media,
.pdp__main,
.locale-hero__media {
  position: relative;
  min-height: 200px;
}
.cart-item__media { position: relative; min-height: 96px; }
.pdp__thumb { position: relative; min-height: 60px; }
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 6px,
    rgba(62, 39, 35, 0.10) 6px,
    rgba(62, 39, 35, 0.10) 7px
  );
}
.ph::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(62, 39, 35, 0.28);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.ph__label {
  position: absolute;
  top: 12px;
  left: 14px;
  right: auto;
  bottom: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caffe);
  background: var(--crema);
  padding: 5px 9px;
  display: inline-block;
  width: fit-content;
  max-width: calc(100% - 28px);
  border-radius: 1px;
  z-index: 3;
  box-shadow: 0 1px 0 rgba(62, 39, 35, 0.08);
}
/* central image glyph — makes it clear this is an image slot */
.ph__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  color: rgba(62, 39, 35, 0.4);
  pointer-events: none;
}
.ph__glyph svg {
  width: clamp(36px, 14%, 72px);
  height: auto;
}
.ph--dark .ph__glyph { color: rgba(245, 230, 211, 0.42); }
.ph--dark::after { border-color: rgba(245, 230, 211, 0.28); }

/* Tinted placeholders by region — saturated enough to read on any palette */
.ph--abruzzo { --ph-bg: #E29A78; }
.ph--campania { --ph-bg: #ECCB6E; }
.ph--lazio { --ph-bg: #CD8079; }
.ph--molise { --ph-bg: #97A86F; }
.ph--neutral { --ph-bg: #DFC9A3; }
.ph--dark { --ph-bg: #5B3D2E; }
.ph--dark .ph__label { color: var(--crema); background: var(--caffe); }

/* === Card prodotto === */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.product-card:hover { transform: translateY(-4px); }
.product-card__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  transition: box-shadow 320ms ease;
}
.product-card:hover .product-card__media {
  box-shadow: var(--sh-warm);
}
.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(62, 39, 35, 0.85));
  opacity: 0;
  transition: opacity 280ms;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  z-index: 3;
}
.product-card:hover .product-card__overlay { opacity: 1; }
.product-card__overlay p {
  color: var(--crema);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.product-card__add {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  place-items: center;
  z-index: 4;
  box-shadow: var(--sh-soft);
  transform: scale(0.7);
  opacity: 0;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), opacity 240ms, background 200ms, color 200ms;
}
.product-card:hover .product-card__add { transform: scale(1); opacity: 1; }
.product-card__add:hover { background: var(--accent-deep); color: var(--crema); }

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.product-card__name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
}
.product-card__price {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
  white-space: nowrap;
}
.product-card__cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: 6px;
}

/* === Drawer carrello === */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 20, 16, 0.5);
  backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  transition: opacity 280ms ease;
}
.drawer-backdrop.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw);
  background: var(--bg);
  z-index: 81;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
  box-shadow: -20px 0 60px rgba(31, 20, 16, 0.2);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--rule);
}
.drawer__head h3 { font-size: 28px; }
.drawer__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 28px;
}
.drawer__empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--fg-soft);
}
.drawer__empty p { margin: 12px 0 24px; }
.drawer__foot {
  border-top: 1px solid var(--rule);
  padding: 24px 28px;
  background: var(--bg-soft);
}
.drawer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.drawer__row--total {
  font-family: var(--serif);
  font-size: 24px;
  margin: 12px 0 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.drawer__total-num { font-family: var(--mono); }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__media {
  width: 80px;
  height: 96px;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.cart-item__name {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.2;
  margin: 0 0 4px;
}
.cart-item__price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-soft);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  margin-top: 10px;
}
.qty button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--fg);
}
.qty button:hover { color: var(--accent-deep); }
.qty span {
  font-family: var(--mono);
  font-size: 13px;
  min-width: 22px;
  text-align: center;
}
.cart-item__remove {
  align-self: start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 4px 0;
  text-align: right;
}
.cart-item__remove:hover { color: var(--accent-deep); }
.cart-item__line {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--caffe);
  color: var(--crema);
  padding: 16px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  box-shadow: var(--sh-lift);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), opacity 320ms;
  border-left: 3px solid var(--accent-warm);
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

/* Fly-to-cart */
.fly-token {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 99;
  pointer-events: none;
  box-shadow: var(--sh-warm);
  transition: transform 700ms cubic-bezier(.5, -0.2, .7, .3), opacity 700ms ease 350ms, width 600ms, height 600ms;
}

/* === Filtri laterali === */
.filters {
  position: sticky;
  top: 100px;
}
.filters h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.filters h4:first-child { padding-top: 0; border-top: none; }
.filter-list { list-style: none; padding: 0; margin: 0 0 26px; }
.filter-list li { margin-bottom: 8px; }
.chk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 200ms;
}
.chk:hover { color: var(--accent-deep); }
.chk input { display: none; }
.chk__box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 2px;
  display: grid;
  place-items: center;
  transition: all 200ms;
  flex: none;
}
.chk input:checked + .chk__box {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.chk input:checked + .chk__box::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid var(--crema);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.chk__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-soft);
}

/* Toolbar catalogo */
.cat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  flex: 1;
  max-width: 380px;
  border: 1px solid var(--rule);
  transition: border-color 200ms;
}
.search-box:focus-within { border-color: var(--accent-deep); }
.search-box input {
  border: none;
  outline: none;
  background: none;
  flex: 1;
  font-size: 14px;
}
.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-soft);
}
.sort-select select {
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  outline: none;
  padding: 6px 8px;
  border-radius: var(--r-sm);
}
.sort-select select:hover { background: var(--bg-card); }

/* === Grid catalogo === */
.cat-grid {
  display: grid;
  gap: 36px 24px;
}
.cat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cat-grid.cols-3, .cat-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .cat-grid.cols-3, .cat-grid.cols-4 { grid-template-columns: 1fr; }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gutter);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 120px);
}
.hero__copy { max-width: 620px; }
.hero__title {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 24px 0;
}
.hero__title em {
  font-style: italic;
  color: var(--accent-deep);
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 520px;
  color: var(--fg-soft);
  margin: 0 0 36px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
}
.hero__decor {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.hero__decor--top {
  top: -36px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__decor--top::before {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--accent);
}
.hero__stamp {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--crema);
  padding: 14px 18px;
  border-radius: var(--r-sm);
  z-index: 4;
  max-width: 240px;
  box-shadow: var(--sh-soft);
}
.hero__stamp .eyebrow { margin-bottom: 4px; }
.hero__stamp p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { max-height: 500px; }
}

/* === Pillars === */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
  transition: background 240ms;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--bg-soft); }
.pillar__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-soft);
  letter-spacing: 0.18em;
}
.pillar__icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 16px 0 22px;
  color: var(--accent-deep);
}
.pillar h3 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-soft);
  margin: 0;
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* === Section heads === */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
  flex-wrap: wrap;
}
.section-head__title { max-width: 700px; }
.section-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin-top: 14px;
}
.section-head__link {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
}
.section-head__link:hover { gap: 14px; transition: gap 200ms; }

/* Story */
.story {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  background: var(--bg-soft);
  padding: clamp(40px, 6vw, 100px);
  border-radius: var(--r-md);
}
.story__media {
  aspect-ratio: 5 / 6;
  border-radius: var(--r-md);
  overflow: hidden;
}
.story__copy h2 { margin: 18px 0 24px; }
.story__copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0 0 18px;
}
.story__sig {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.story__sig-name {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}
.story__sig-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
}

/* Regioni */
.regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.region-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 280ms cubic-bezier(.2,.7,.2,1);
  position: relative;
  overflow: hidden;
}
.region-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--region-color, var(--accent));
}
.region-card--feat { grid-column: span 2; padding: 36px 32px; }
.region-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-warm);
  border-color: var(--region-color);
}
.region-card__name {
  font-family: var(--serif);
  font-size: 32px;
  margin: 8px 0 4px;
}
.region-card--feat .region-card__name { font-size: 48px; }
.region-card__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.region-card__desc {
  margin-top: 16px;
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .regions { grid-template-columns: repeat(2, 1fr); }
  .region-card--feat { grid-column: span 2; }
}

/* === Footer === */
.footer {
  background: var(--caffe);
  color: var(--crema);
  padding: clamp(60px, 8vw, 100px) 0 30px;
  margin-top: clamp(60px, 8vw, 120px);
  position: relative;
  z-index: 2;
}
.footer .container { color: var(--crema); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(245, 230, 211, 0.12);
}
.footer__brand h3 {
  font-size: 32px;
  margin-bottom: 14px;
}
.footer__brand p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 22px;
}
.footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  opacity: 0.6;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; opacity: 0.85; }
.footer li button { color: var(--crema); }
.footer li button:hover { color: var(--ocra); }
.newsletter {
  display: flex;
  gap: 8px;
  background: rgba(245, 230, 211, 0.08);
  padding: 6px 6px 6px 18px;
  border-radius: var(--r-pill);
  margin-top: 14px;
}
.newsletter input {
  background: none;
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
  color: var(--crema);
}
.newsletter input::placeholder { color: rgba(245, 230, 211, 0.5); }
.newsletter button {
  background: var(--ocra);
  color: var(--caffe);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.5;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

/* === Pagina prodotto === */
.pdp {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(20px, 3vw, 40px) 0 var(--section-y);
}
.pdp__gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: start;
}
.pdp__thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp__thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 200ms;
}
.pdp__thumb.is-active { border-color: var(--accent-deep); }
.pdp__main {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
}
.pdp__title {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  margin: 14px 0 18px;
}
.pdp__price {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent-deep);
  margin: 18px 0 24px;
}
.pdp__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0 0 24px;
}
.pdp__details {
  margin: 32px 0;
  border-top: 1px solid var(--rule);
}
.pdp__detail-row {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.pdp__detail-row summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  font-size: 14px;
}
.pdp__detail-row summary::-webkit-details-marker { display: none; }
.pdp__detail-row summary::after { content: '+'; font-size: 20px; transition: transform 240ms; }
.pdp__detail-row[open] summary::after { transform: rotate(45deg); }
.pdp__detail-row[open] summary { color: var(--accent-deep); }
.pdp__detail-row p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 14px 0 0;
}
.pdp__buy {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin: 24px 0;
}
.qty--lg {
  border-radius: var(--r-pill);
  padding: 4px 14px;
}
.qty--lg button { width: 36px; height: 44px; font-size: 18px; }
.qty--lg span { min-width: 30px; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { grid-template-columns: 60px 1fr; }
}

/* === Locale === */
.locale-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: center;
}
.locale-hero__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
}
.locale-hero h1 { font-size: clamp(48px, 6vw, 88px); margin: 18px 0 28px; }
.locale-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 50px 0;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.locale-info h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 12px;
}
.locale-info p { font-size: 16px; margin: 0; line-height: 1.5; }
.locale-info p strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }

.map-fake {
  aspect-ratio: 16 / 7;
  border-radius: var(--r-md);
  background: var(--oliva);
  position: relative;
  overflow: hidden;
}
.map-fake::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(245, 230, 211, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 230, 211, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-fake__pin {
  position: absolute;
  top: 48%; left: 52%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-fake__pin-dot {
  width: 18px;
  height: 18px;
  background: var(--accent-deep);
  border-radius: 50%;
  border: 3px solid var(--crema);
  box-shadow: 0 0 0 6px rgba(168, 32, 26, 0.3);
}
.map-fake__pin-label {
  background: var(--crema);
  color: var(--caffe);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 12px;
  white-space: nowrap;
  box-shadow: var(--sh-soft);
}
.map-fake__legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--crema);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caffe);
}

@media (max-width: 900px) {
  .locale-hero, .locale-info { grid-template-columns: 1fr; }
  .locale-info { gap: 18px; }
}

/* Produttori */
.producers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.producer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.producer__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
}
.producer__name { font-size: 24px; margin: 8px 0 4px; }
.producer__bio { font-size: 14px; color: var(--fg-soft); line-height: 1.6; margin: 0; }
@media (max-width: 900px) {
  .producers { grid-template-columns: 1fr; }
}

/* Checkout */
.checkout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(20px, 3vw, 40px) 0 var(--section-y);
}
.checkout-steps {
  display: flex;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}
.checkout-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-soft);
  position: relative;
  padding: 0 14px 0 0;
}
.checkout-step__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  flex: none;
}
.checkout-step.is-active { color: var(--fg); font-weight: 500; }
.checkout-step.is-active .checkout-step__num {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--crema);
}
.checkout-step.is-done .checkout-step__num {
  background: var(--oliva);
  border-color: var(--oliva);
  color: var(--crema);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin-bottom: 30px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: span 2; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.field input, .field select {
  border: 1px solid var(--rule-strong);
  background: var(--bg-card);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 200ms;
}
.field input:focus, .field select:focus { border-color: var(--accent-deep); }

.shipping-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.shipping-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}
.shipping-opt:hover { border-color: var(--rule-strong); }
.shipping-opt.is-selected {
  border-color: var(--accent-deep);
  background: var(--bg-soft);
}
.shipping-opt__radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  flex: none;
  position: relative;
}
.shipping-opt.is-selected .shipping-opt__radio { border-color: var(--accent-deep); }
.shipping-opt.is-selected .shipping-opt__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent-deep);
  border-radius: 50%;
}
.shipping-opt h4 { font-family: var(--sans); font-weight: 600; font-size: 15px; margin: 0 0 4px; letter-spacing: 0; }
.shipping-opt p { font-size: 13px; color: var(--fg-soft); margin: 0; }
.shipping-opt__price { font-family: var(--mono); font-size: 14px; color: var(--accent-deep); margin-left: auto; }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.pay-method {
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 200ms;
  font-size: 14px;
  font-weight: 500;
}
.pay-method:hover { border-color: var(--rule-strong); }
.pay-method.is-selected {
  border-color: var(--accent-deep);
  background: var(--bg-soft);
}

.summary {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  height: fit-content;
}
.summary h4 { font-family: var(--serif); font-size: 24px; margin: 0 0 20px; }
.summary__line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--fg-soft);
}
.summary__line--total {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--fg);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 14px;
}
.summary__line--total span:last-child { font-family: var(--mono); }

/* Skeleton */
.sk { background: var(--bg-card); border-radius: var(--r-sm); animation: skp 1.6s ease-in-out infinite; }
@keyframes skp {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Confirmation */
.order-conf {
  text-align: center;
  padding: 80px 20px;
}
.order-conf__check {
  width: 80px; height: 80px;
  margin: 0 auto 30px;
  border: 2px solid var(--oliva);
  color: var(--oliva);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.order-conf h2 { margin: 12px 0; }
.order-conf p { color: var(--fg-soft); max-width: 480px; margin: 18px auto; }
.order-conf__num {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg-soft);
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  margin-top: 20px;
  letter-spacing: 0.1em;
}

/* Page header */
.page-head {
  padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 50px);
}
.page-head h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  margin: 14px 0 18px;
}
.page-head p {
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

/* Breadcrumbs */
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 26px 0 0;
}
.crumbs button { color: var(--fg-soft); }
.crumbs button:hover { color: var(--accent-deep); }
.crumbs span { margin: 0 8px; opacity: 0.5; }

/* Loading skeleton card */
.sk-card { display: flex; flex-direction: column; gap: 12px; }
.sk-card .sk-img { aspect-ratio: 4/5; }
.sk-card .sk-line { height: 14px; width: 70%; }
.sk-card .sk-line.sm { width: 40%; height: 10px; }

@media (max-width: 900px) {
  .header__inner { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .checkout { grid-template-columns: 1fr; }
}

/* Icon */
.ic {
  width: 1em; height: 1em;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =====================================================================
   == Backend integration: logo nell'header, boot loader, alert,
   == newsletter feedback. Aggiunto da Claude per il backend.
   ===================================================================== */

/* Logo immagine nell'header (sostituisce il vecchio .brand__mark con la "L") */
.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: width 280ms cubic-bezier(.2,.7,.2,1), height 280ms cubic-bezier(.2,.7,.2,1);
  /* Filtro leggero per integrazione cromatica con la palette */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}
.header.is-scrolled .brand__logo {
  width: 38px;
  height: 38px;
}
.brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

/* Boot loader: schermata di caricamento iniziale mentre l'API risponde */
.boot-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg);
  z-index: 9999;
}
.boot-loader__logo {
  width: 96px;
  height: 96px;
  animation: lfh-pulse 1.6s ease-in-out infinite;
}
.boot-loader__pulse {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
@keyframes lfh-pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(0.94); opacity: 0.6; }
}

/* Alert (errori checkout) */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.5;
}
.alert--error {
  background: rgba(168, 32, 26, 0.08);
  border-left: 3px solid var(--accent-deep, #A8201A);
  color: var(--accent-deep, #A8201A);
}

/* Feedback newsletter (sotto il form nel footer) */
.newsletter__msg {
  margin-top: 10px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}
.newsletter__msg--ok  { color: #4a7c59; }
.newsletter__msg--err { color: var(--accent-deep, #A8201A); }

/* Disabled state per pulsanti durante il submit */
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* =====================================================================
   == Cookie banner GDPR
   ===================================================================== */

.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid rgba(62,39,35,0.15);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 998;
  animation: lfh-slide-up 280ms cubic-bezier(.2,.7,.2,1);
}
@keyframes lfh-slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.cookie-banner__inner {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-banner__copy h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--fg);
}
.cookie-banner__copy p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
}
.cookie-banner__link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent-deep, #A8201A);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}

.cookie-pref {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(62,39,35,0.08);
}
.cookie-pref:first-child { border-top: 0; }
.cookie-pref strong {
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.cookie-pref p {
  font-size: 12px;
  color: var(--fg-soft);
  margin: 0;
  line-height: 1.5;
}
.cookie-pref__locked {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  white-space: nowrap;
  padding-top: 4px;
}
.cookie-pref__toggle {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-pref__toggle input { opacity: 0; width: 0; height: 0; }
.cookie-pref__toggle span {
  position: absolute;
  inset: 0;
  background: rgba(62,39,35,0.2);
  border-radius: 22px;
  cursor: pointer;
  transition: background 200ms;
}
.cookie-pref__toggle span::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 200ms;
}
.cookie-pref__toggle input:checked + span {
  background: var(--accent-deep, #A8201A);
}
.cookie-pref__toggle input:checked + span::before {
  transform: translateX(18px);
}

@media (min-width: 700px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
  }
  .cookie-banner__copy { flex: 1; }
}

/* =====================================================================
   == Pagine legali
   ===================================================================== */

.legal {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg);
}
.legal__lead {
  font-size: 17px;
  font-style: italic;
  color: var(--fg-soft);
  border-left: 3px solid var(--accent-deep, #A8201A);
  padding-left: 18px;
  margin-bottom: 36px;
}
.legal h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 36px 0 12px;
  color: var(--fg);
}
.legal h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 28px 0 10px;
  color: var(--fg);
}
.legal p { margin: 0 0 14px; }
.legal ul {
  padding-left: 20px;
  margin: 0 0 18px;
}
.legal li { margin-bottom: 8px; }
.legal a {
  color: var(--accent-deep, #A8201A);
  text-decoration: underline;
}
.legal__inline-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent-deep, #A8201A);
  text-decoration: underline;
  cursor: pointer;
}
.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0 24px;
}
.legal__table th,
.legal__table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(62,39,35,0.1);
}
.legal__table th {
  background: rgba(168,32,26,0.05);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.legal__table code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(62,39,35,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* =====================================================================
   == Footer legali
   ===================================================================== */

.footer__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__legal button {
  background: none;
  border: none;
  font: inherit;
  font-size: 12px;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
  transition: opacity 180ms;
}
.footer__legal button:hover {
  opacity: 1;
  text-decoration: underline;
}
