/*
Theme Name: La Compagnia del Gluten Free
Theme URI: https://www.lacompagniadelglutenfree.it/
Description: Tema child di Astra per La Compagnia del Gluten Free — Mangia con Gusto. Prodotti senza glutine e senza lattosio.
Author: EMC Digital Solutions
Author URI: https://www.emcdigitalsolutions.it/
Template: astra
Version: 0.2.0
Text Domain: lcgf-child
*/

/* ============================================================
   La Compagnia del Gluten Free — Design System
   ============================================================ */

:root {
  --c-cream:        #FBF7EE;
  --c-cream-2:      #F4EDDC;
  --c-sand:         #E9DDC0;
  --c-wheat:        #C9A96E;
  --c-wheat-dark:   #A6864C;
  --c-olive:        #6B8E4E;
  --c-olive-dark:   #4F6E37;
  --c-olive-deep:   #364E25;
  --c-terracotta:   #C7613E;
  --c-burgundy:     #6E2A2A;
  --c-ink:          #1F1B14;
  --c-ink-soft:     #3D362C;
  --c-muted:        #6A6053;
  --c-line:         #E6DECB;
  --c-white:        #FFFFFF;
  --c-success:      #357A45;
  --c-error:        #B14545;

  --g-hero:    radial-gradient(circle at 20% 20%, #F7EBD0 0%, transparent 60%),
               radial-gradient(circle at 80% 80%, #E2EBD5 0%, transparent 55%),
               linear-gradient(135deg, #FBF7EE 0%, #F4EDDC 100%);
  --g-cta:     linear-gradient(135deg, var(--c-olive) 0%, var(--c-olive-deep) 100%);
  --g-wheat:   linear-gradient(135deg, #E2C58F 0%, var(--c-wheat) 60%, var(--c-wheat-dark) 100%);
  --g-dark:    linear-gradient(160deg, #2A2519 0%, #1A1610 100%);

  --f-sans:    "Inter", "Helvetica Neue", system-ui, sans-serif;
  --f-display: "Fraunces", "Playfair Display", Georgia, serif;

  --r-xs: 4px; --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(31, 27, 20, .06), 0 1px 3px rgba(31, 27, 20, .04);
  --sh-2: 0 4px 12px rgba(31, 27, 20, .08), 0 2px 4px rgba(31, 27, 20, .04);
  --sh-3: 0 10px 30px rgba(31, 27, 20, .10), 0 4px 8px rgba(31, 27, 20, .05);
  --sh-4: 0 24px 60px rgba(31, 27, 20, .15), 0 8px 16px rgba(31, 27, 20, .08);

  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t-base: 220ms cubic-bezier(.4,0,.2,1);
  --t-slow: 420ms cubic-bezier(.4,0,.2,1);

  --container: 1240px;
  --header-h: 76px;
}

/* ---------- Reset overrides Astra ---------- */
html, body { background: var(--c-cream) !important; color: var(--c-ink) !important; }
body { font-family: var(--f-sans) !important; line-height: 1.6 !important; -webkit-font-smoothing: antialiased; }
body, .ast-container, .site, #page { background: var(--c-cream) !important; }

::selection { background: var(--c-olive); color: var(--c-cream); }

h1, h2, h3, h4, .entry-title, .product_title, .woocommerce-products-header__title {
  font-family: var(--f-display) !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  line-height: 1.15 !important;
  color: var(--c-ink) !important;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem) !important; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem) !important; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem) !important; }

a { color: var(--c-olive-deep); transition: color var(--t-fast); }
a:hover { color: var(--c-olive); }

/* hide Astra default header — useremo il nostro */
.ast-primary-header-bar,
.site-primary-header-wrap,
.ast-above-header-wrap,
.ast-below-header-wrap,
header.site-header { display: none !important; }

/* nascondi titoli pagina default (lo gestiamo in template) */
.ast-container .entry-header.ast-no-title-container { display: none; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #7a5e1f; /* gold scuro: contrasto AA (>=4.5:1) su fondo chiaro */
  margin-bottom: 14px;
}
.eyebrow::before { content: "✦"; margin-right: 10px; color: var(--c-olive); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }

/* ---------- Buttons ---------- */
.btn, .lcgf-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px !important;
  border-radius: var(--r-pill) !important;
  border: 1.5px solid transparent !important;
  background: var(--g-cta) !important;
  color: var(--c-cream) !important;
  font-weight: 600 !important;
  font-size: .92rem !important;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(54, 78, 37, .25);
}
.btn:hover, .lcgf-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(54, 78, 37, .35);
}
.btn-ghost, .lcgf-btn-ghost {
  background: transparent !important;
  border-color: var(--c-ink) !important;
  color: var(--c-ink) !important;
  box-shadow: none !important;
}
.btn-ghost:hover { background: var(--c-ink) !important; color: var(--c-cream) !important; }
.btn-wheat {
  background: var(--g-wheat) !important;
  color: var(--c-ink) !important;
  box-shadow: 0 6px 20px rgba(201, 169, 110, .35);
}
.btn-lg { padding: 17px 36px !important; font-size: 1rem !important; }

/* ---------- HEADER ---------- */
.lcgf-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(251, 247, 238, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.lcgf-header.scrolled { background: rgba(251, 247, 238, .96); border-bottom-color: var(--c-line); box-shadow: var(--sh-1); }
.lcgf-header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
body { padding-top: var(--header-h); }

.lcgf-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--c-ink); text-decoration: none !important; }
.lcgf-brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-cream);
  display: grid; place-items: center;
  box-shadow: var(--sh-1), 0 0 0 1px rgba(201,169,110,.25);
  overflow: hidden;
  flex-shrink: 0;
}
.lcgf-brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcgf-brand-text { display: flex; flex-direction: column; line-height: 1; }
.lcgf-brand-text strong { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; color: var(--c-ink); }
.lcgf-brand-text small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); margin-top: 3px; }

.lcgf-nav { justify-self: center; }
.lcgf-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.lcgf-nav a {
  display: inline-block;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: color var(--t-base), background var(--t-base);
}
.lcgf-nav a:hover { color: var(--c-olive-deep); background: var(--c-cream-2); }

.lcgf-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }

/* ---- Menu mobile (hamburger + pannello a scomparsa) ---- */
.lcgf-header { z-index: 1001; }
.lcgf-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: none; background: none; cursor: pointer; padding: 9px; -webkit-tap-highlight-color: transparent; border-radius: 8px; }
.lcgf-burger:focus { outline: none; }
.lcgf-burger:focus-visible { outline: 2px solid var(--c-olive); outline-offset: 2px; }
.lcgf-burger span { display: block; height: 2.5px; width: 100%; background: var(--c-olive-deep); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.lcgf-burger.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.lcgf-burger.is-active span:nth-child(2) { opacity: 0; }
.lcgf-burger.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.lcgf-mobile-overlay { position: fixed; inset: 0; background: rgba(31,27,20,.5); z-index: 998; opacity: 0; transition: opacity .3s ease; }
.lcgf-mobile-overlay.is-open { opacity: 1; }
.lcgf-mobile-nav { position: fixed; top: 0; right: 0; height: 100%; width: min(82vw, 340px); background: var(--c-cream); box-shadow: -10px 0 40px rgba(31,27,20,.2); z-index: 999; transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.25,1); overflow-y: auto; padding: 84px 0 30px; display: flex; flex-direction: column; }
.lcgf-mobile-nav.is-open { transform: none; }
.lcgf-mobile-links { list-style: none; margin: 0; padding: 0; }
.lcgf-mobile-links li { border-bottom: 1px solid var(--c-line); }
.lcgf-mobile-links a { display: block; padding: 15px 26px; color: var(--c-ink); font-family: var(--f-display); font-size: 1.15rem; text-decoration: none; }
.lcgf-mobile-links a:hover { background: var(--c-cream-2); color: var(--c-olive-deep); }
.lcgf-mobile-sub { display: flex; flex-direction: column; padding: 16px 26px; gap: 12px; }
.lcgf-mobile-sub a { color: var(--c-olive-deep); font-weight: 600; font-size: .95rem; text-decoration: none; }
.lcgf-mobile-langs { display: flex; gap: 8px; padding: 14px 26px; margin-top: auto; border-top: 1px solid var(--c-line); }
.lcgf-mobile-langs a { padding: 6px 14px; border: 1.5px solid var(--c-line); border-radius: 999px; color: var(--c-muted); font-weight: 600; font-size: .82rem; text-decoration: none; }
.lcgf-mobile-langs a.is-current { background: var(--g-cta); color: var(--c-cream); border-color: transparent; }
body.lcgf-mnav-open { overflow: hidden; }
@media (max-width: 640px) {
  .lcgf-burger { display: flex; }
  .lcgf-hide-mobile { display: none; }
}
@media (min-width: 641px) {
  .lcgf-mobile-nav, .lcgf-mobile-overlay, .lcgf-burger { display: none !important; }
}
.lcgf-icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-ink);
  background: transparent;
  border: none;
  position: relative;
  transition: background var(--t-base);
  cursor: pointer;
  text-decoration: none;
}
.lcgf-icon-btn:hover { background: var(--c-cream-2); }
.lcgf-cart-count {
  position: absolute; top: 4px; right: 2px;
  background: var(--c-terracotta);
  color: #fff;
  font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: grid; place-items: center;
  border: 2px solid var(--c-cream);
}

/* ---------- HERO ---------- */
.lcgf-hero {
  position: relative;
  overflow: hidden;
  background: var(--g-hero);
  padding: clamp(60px, 10vw, 130px) 0 clamp(80px, 12vw, 160px);
}
.lcgf-hero::before, .lcgf-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.lcgf-hero::before { width: 380px; height: 380px; background: var(--c-wheat); top: -120px; left: -80px; }
.lcgf-hero::after  { width: 460px; height: 460px; background: #B7D199; bottom: -180px; right: -100px; }
.lcgf-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.lcgf-hero h1 { color: var(--c-olive-deep) !important; }
.lcgf-hero h1 em {
  font-style: italic;
  color: var(--c-wheat-dark);
  position: relative;
  display: inline-block;
}
.lcgf-hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 8px;
  background: var(--c-wheat);
  opacity: .35;
  border-radius: 4px;
  z-index: -1;
}
.lcgf-hero-lead { font-size: 1.12rem; color: var(--c-ink-soft); margin-bottom: 32px; max-width: 520px; }
.lcgf-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.lcgf-hero-stats { display: flex; gap: 36px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(31,27,20,.08); }
.lcgf-hero-stat strong { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--c-olive-deep); line-height: 1; }
.lcgf-hero-stat span  { display: block; margin-top: 6px; font-size: .82rem; color: var(--c-muted); letter-spacing: .04em; }

.lcgf-hero-visual { position: relative; aspect-ratio: 1/1; max-width: 520px; margin: 0 auto; width: 100%; }
.lcgf-hero-logo {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  animation: floaty 7s ease-in-out infinite;
}
.lcgf-hero-logo img {
  width: 92%; height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(54, 78, 37, .28)) drop-shadow(0 6px 14px rgba(0,0,0,.12));
  position: relative;
  z-index: 1;
}
.lcgf-hero-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(201,169,110,.35), transparent 65%);
  filter: blur(28px);
  z-index: 0;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.lcgf-pillbadge {
  position: absolute;
  background: var(--c-white);
  color: var(--c-ink);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  font-size: .82rem; font-weight: 600;
  box-shadow: var(--sh-3);
  display: inline-flex; align-items: center; gap: 8px;
  z-index: 2;
}
.lcgf-pillbadge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-olive); }
.lcgf-pillbadge.b1 { top: 6%; left: -10px; }
.lcgf-pillbadge.b2 { top: 6%; right: -16px; }
.lcgf-pillbadge.b3 { top: -6%; left: 50%; transform: translateX(-50%); }

/* ---------- MARQUEE ---------- */
.lcgf-marquee {
  background: var(--c-ink);
  color: var(--c-cream);
  overflow: hidden;
  padding: 14px 0;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.lcgf-marquee-track {
  display: flex; gap: 60px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.lcgf-marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.lcgf-marquee-track span::after { content: "✦"; color: var(--c-wheat); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.lcgf-section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.lcgf-section-head h2 { color: var(--c-olive-deep) !important; }
.lcgf-section-head p { color: var(--c-muted); font-size: 1.05rem; margin-top: 8px; }

/* ---------- Categories ---------- */
.lcgf-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.lcgf-cat-card {
  position: relative;
  display: block;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-cream-2);
  isolation: isolate;
  transition: transform var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
  text-decoration: none !important;
}
.lcgf-cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.lcgf-cat-card-bg { position: absolute; inset: 0; z-index: -1; transition: transform var(--t-slow); }
.lcgf-cat-card:hover .lcgf-cat-card-bg { transform: scale(1.08); }
.lcgf-cat-card.cat-pane .lcgf-cat-card-bg { background: linear-gradient(135deg, #E2C58F, #C9A96E); }
.lcgf-cat-card.cat-dolci .lcgf-cat-card-bg { background: linear-gradient(135deg, #E8B8A5, #C7613E); }
.lcgf-cat-card-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px;
  color: var(--c-ink);
}
.lcgf-cat-card h3 { font-family: var(--f-display); font-size: 1.6rem; margin: 0; color: var(--c-ink) !important; }
.lcgf-cat-card p { margin: 6px 0 0; font-size: .92rem; }
.lcgf-cat-card-emoji {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 50px;
  opacity: .9;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
}

/* ---------- WooCommerce product grid override ---------- */
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 28px 22px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex !important;
  flex-direction: column;
  box-shadow: var(--sh-1);
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  margin: 0 !important;
  width: 100% !important;
  aspect-ratio: 1/1;
  object-fit: contain !important;
  background: var(--c-cream-2);
  padding: 8px;
  transition: transform var(--t-slow);
}
.woocommerce ul.products li.product:hover img { transform: scale(1.04); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--f-display) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: var(--c-ink) !important;
  padding: 16px 18px 4px !important;
  margin: 0 !important;
  line-height: 1.3;
}
.woocommerce ul.products li.product .price {
  font-family: var(--f-display) !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--c-olive-deep) !important;
  padding: 0 18px 8px !important;
  margin: 0 !important;
  display: block;
}
.woocommerce ul.products li.product .price ins { background: none !important; text-decoration: none !important; }
.woocommerce ul.products li.product .button {
  margin: 0 18px 18px !important;
  padding: 10px 16px !important;
  font-size: .82rem !important;
  font-weight: 600;
}

/* Badge LCGF su loop */
.lcgf-card-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.lcgf-card-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-ink);
  box-shadow: var(--sh-1);
}
.lcgf-card-badge.gf { background: var(--c-cream-2); color: var(--c-olive-deep); }
.lcgf-card-badge.lf { background: rgba(199,97,62,0.12); color: var(--c-terracotta); }

/* ---------- USP strip ---------- */
.lcgf-usp {
  background: var(--c-cream-2);
  border-radius: var(--r-xl);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.lcgf-usp-item { display: flex; align-items: center; gap: 16px; }
.lcgf-usp-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-white);
  display: grid; place-items: center;
  color: var(--c-olive-deep);
  box-shadow: var(--sh-1);
  flex-shrink: 0;
}
.lcgf-usp-item strong { display: block; font-size: .95rem; color: var(--c-ink); }
.lcgf-usp-item span { font-size: .82rem; color: var(--c-muted); }

/* ---------- Split storia ---------- */
.lcgf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.lcgf-split-content h2 { color: var(--c-olive-deep) !important; }
.lcgf-split-visual {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  background: var(--g-wheat);
  box-shadow: var(--sh-3);
  display: grid;
  place-items: center;
}
.lcgf-split-visual .emoji { font-size: 220px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.25)); }
.lcgf-split-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.lcgf-split-list li { display: flex; gap: 14px; font-size: .98rem; color: var(--c-ink-soft); }
.lcgf-split-list .ck {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-olive);
  color: var(--c-cream);
  display: grid; place-items: center;
  font-size: .9rem;
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.lcgf-testimonials {
  background: var(--g-dark);
  color: var(--c-cream);
  position: relative;
  overflow: hidden;
}
.lcgf-testimonials::before, .lcgf-testimonials::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .25; pointer-events: none;
}
.lcgf-testimonials::before { width: 300px; height: 300px; background: var(--c-wheat); top: 10%; left: 5%; }
.lcgf-testimonials::after  { width: 380px; height: 380px; background: var(--c-olive); bottom: 0%; right: 5%; }
.lcgf-testimonials h2 { color: var(--c-cream) !important; }
.lcgf-testimonials .eyebrow { color: var(--c-wheat) !important; }
.lcgf-testimonials p { color: rgba(251,247,238,.7); }

.lcgf-t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; position: relative; z-index: 1; }
.lcgf-t-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  padding: 28px;
}
.lcgf-t-stars { color: var(--c-wheat); display: flex; gap: 2px; margin-bottom: 14px; font-size: 1rem; letter-spacing: 2px; }
.lcgf-t-quote { margin: 0 0 18px; font-family: var(--f-display); font-size: 1.08rem; line-height: 1.5; color: var(--c-cream); font-style: italic; }
.lcgf-t-author { display: flex; align-items: center; gap: 12px; }
.lcgf-t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--g-wheat);
  display: grid; place-items: center;
  color: var(--c-ink); font-weight: 700;
  font-family: var(--f-display);
}
.lcgf-t-author strong { display: block; font-size: .92rem; color: var(--c-cream); }
.lcgf-t-author span { display: block; font-size: .78rem; color: rgba(251,247,238,.6); }

/* ---------- Newsletter ---------- */
.lcgf-newsletter {
  background: var(--g-wheat);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lcgf-newsletter h2 { color: var(--c-ink) !important; }
.lcgf-newsletter p { color: var(--c-ink-soft); max-width: 520px; margin: 0 auto 26px; }
.lcgf-newsletter-form {
  display: flex; gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  box-shadow: var(--sh-2);
}
.lcgf-newsletter-form input { flex: 1; border: none; background: transparent; font-size: .95rem; outline: none; }
.lcgf-newsletter-form button {
  flex-shrink: 0;
  background: var(--c-ink) !important;
  color: var(--c-cream) !important;
  border: none;
  padding: 12px 22px !important;
  border-radius: var(--r-pill) !important;
  box-shadow: none !important;
}
.lcgf-newsletter-form button:hover { background: var(--c-olive-deep) !important; transform: none !important; }

/* ---------- FOOTER ---------- */
.lcgf-footer {
  background: var(--g-dark);
  color: rgba(251,247,238,.78);
  margin-top: 100px;
  padding: 80px 0 32px;
  position: relative; overflow: hidden;
}
.lcgf-footer::before {
  content: ""; position: absolute;
  width: 500px; height: 500px;
  background: var(--c-olive); border-radius: 50%; filter: blur(120px);
  opacity: .15; top: -200px; right: -100px; pointer-events: none;
}
.lcgf-footer a { color: rgba(251,247,238,.7); transition: color var(--t-base); text-decoration: none; }
.lcgf-footer a:hover { color: var(--c-wheat); }
.lcgf-footer-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lcgf-footer h3 {
  color: var(--c-wheat) !important;
  font-family: var(--f-sans) !important;
  font-size: .8rem !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 18px !important;
}
.lcgf-footer ul { list-style: none; padding: 0; margin: 0; }
.lcgf-footer li { padding: 5px 0; }
.lcgf-footer .brand-text strong, .lcgf-footer .brand-text small { color: var(--c-cream); }
.lcgf-footer .brand-text small { color: rgba(251,247,238,.5); }
.lcgf-footer-blurb { font-size: .9rem; line-height: 1.6; margin: 18px 0 0; max-width: 320px; }
.lcgf-social { display: flex; gap: 10px; margin-top: 18px; }
.lcgf-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  color: var(--c-cream);
  transition: background var(--t-base), transform var(--t-base);
}
.lcgf-social a:hover { background: var(--c-wheat); color: var(--c-ink); transform: translateY(-3px); }
.lcgf-footer-bottom {
  position: relative; z-index: 1;
  margin-top: 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(251,247,238,.55);
}
.emc-credit {
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.55;
  color: rgba(251,247,238,.8) !important;
  font-size: .76rem;
  transition: opacity var(--t-base);
}
.emc-credit:hover { opacity: 1; }

/* ---------- Language switcher ---------- */
.lcgf-lang { position: relative; }
.lcgf-lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 44px; padding: 0 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--c-ink); cursor: pointer;
}
.lcgf-lang-btn::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 4px;
  opacity: 0.6;
}
.lcgf-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 160px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(31,27,20,.12);
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 200;
}
.lcgf-lang:hover .lcgf-lang-menu,
.lcgf-lang:focus-within .lcgf-lang-menu,
.lcgf-lang-btn[aria-expanded="true"] + .lcgf-lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lcgf-lang-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--c-ink);
  text-decoration: none;
  transition: background .15s ease;
}
.lcgf-lang-menu a:hover { background: var(--c-cream-2); color: var(--c-olive-deep); }
.lcgf-lang-menu a.is-current { background: var(--c-cream); font-weight: 600; }

/* ---- Toast notifiche (WooCommerce add-to-cart, ecc.) ---- */
#lcgf-toasts {
  position: fixed; top: 90px; right: 20px; z-index: 99999;
  display: flex; flex-direction: column; gap: 12px;
  width: min(380px, calc(100% - 40px)); pointer-events: none;
}
#lcgf-toasts .lcgf-toast {
  pointer-events: auto; position: relative;
  background: var(--c-white); color: var(--c-ink);
  border: 1px solid var(--c-line); border-left: 4px solid var(--c-olive);
  border-radius: 12px; box-shadow: 0 14px 38px rgba(31,27,20,.20);
  padding: 15px 40px 15px 18px; font-size: .94rem; line-height: 1.45;
  animation: lcgf-toast-in .32s cubic-bezier(.2,.8,.25,1);
}
#lcgf-toasts .lcgf-toast.is-info  { border-left-color: var(--c-wheat-dark); }
#lcgf-toasts .lcgf-toast.is-error { border-left-color: #c0392b; }
#lcgf-toasts .lcgf-toast.is-out { animation: lcgf-toast-out .35s ease forwards; }
#lcgf-toasts .lcgf-toast a { color: var(--c-olive-deep); font-weight: 600; }
#lcgf-toasts .lcgf-toast .button, #lcgf-toasts .lcgf-toast a.button {
  display: inline-block; margin: 10px 0 0; padding: 8px 16px; font-size: .82rem;
  background: var(--g-cta, var(--c-olive)); color: var(--c-cream) !important;
  border-radius: 999px; text-decoration: none; box-shadow: none;
}
#lcgf-toasts .lcgf-toast-x {
  position: absolute; top: 8px; right: 10px; width: 24px; height: 24px;
  border: none; background: none; cursor: pointer; color: var(--c-muted);
  font-size: 20px; line-height: 1; padding: 0;
}
#lcgf-toasts .lcgf-toast-x:hover { color: var(--c-ink); }
@keyframes lcgf-toast-in  { from { opacity: 0; transform: translateX(45px); } to { opacity: 1; transform: none; } }
@keyframes lcgf-toast-out { to   { opacity: 0; transform: translateX(45px); } }
@media (max-width: 600px) { #lcgf-toasts { top: 74px; right: 12px; left: 12px; width: auto; } }
.lcgf-lang-code {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  background: var(--c-cream-2); color: var(--c-olive-deep);
  padding: 2px 7px; border-radius: 4px;
  min-width: 28px; text-align: center;
}
.lcgf-lang-menu a.is-current .lcgf-lang-code { background: var(--c-olive); color: var(--c-cream); }
.lcgf-lang-name { color: var(--c-ink-soft); }

/* ---------- WhatsApp floating ---------- */
.lcgf-wa {
  position: fixed; bottom: 92px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--g-cta);
  color: var(--c-cream);
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(54, 78, 37, .4);
  z-index: 90;
  transition: transform 300ms cubic-bezier(.34,1.56,.64,1), box-shadow 300ms ease;
}
.lcgf-wa:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(54, 78, 37, .55); }
.lcgf-wa svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Astra "Torna su" — uniformato al brand olive ---------- */
#ast-scroll-top.ast-scroll-top-icon {
  background: var(--g-cta) !important;
  color: var(--c-cream) !important;
  border: none !important;
  box-shadow: 0 8px 22px rgba(54, 78, 37, .35) !important;
  transition: transform 300ms cubic-bezier(.34,1.56,.64,1), box-shadow 300ms ease !important;
}
#ast-scroll-top.ast-scroll-top-icon:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(54, 78, 37, .5) !important;
  background: var(--g-cta) !important;
}
#ast-scroll-top.ast-scroll-top-icon .ast-icon,
#ast-scroll-top.ast-scroll-top-icon svg {
  fill: var(--c-cream) !important;
  color: var(--c-cream) !important;
}

/* ---------- Single product overrides ---------- */
.woocommerce div.product { padding: 40px 0; }
.woocommerce div.product .product_title { color: var(--c-ink) !important; margin-bottom: 14px !important; }
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--f-display) !important;
  font-size: 2rem !important;
  color: var(--c-olive-deep) !important;
  font-weight: 600 !important;
}
.woocommerce div.product div.images img { border-radius: var(--r-lg); background: var(--c-cream-2); padding: 12px; }
.woocommerce-tabs .tabs li.active a { color: var(--c-olive-deep) !important; border-bottom: 2px solid var(--c-olive) !important; }

/* breadcrumbs Woo */
.woocommerce-breadcrumb {
  font-size: .82rem !important;
  color: var(--c-muted) !important;
  padding: 20px 0 !important;
}
.woocommerce-breadcrumb a { color: var(--c-muted) !important; }

/* header archivi shop/categoria */
.woocommerce-products-header { margin-bottom: 0 !important; }
.lcgf-archive-head { text-align: center; max-width: 680px; margin: 8px auto 42px; }
.lcgf-archive-head h1 { color: var(--c-olive-deep) !important; margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.lcgf-archive-head .lcgf-archive-sub { color: var(--c-muted); font-size: 1.05rem; margin: 12px auto 0; max-width: 560px; }
.term-description { text-align: center; max-width: 680px; margin: -22px auto 42px; color: var(--c-muted); font-size: 1.02rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .lcgf-hero-grid { grid-template-columns: 1fr; }
  .lcgf-hero-visual { max-width: 360px; }
  .lcgf-split { grid-template-columns: 1fr; }
  .lcgf-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .lcgf-nav { display: none; }
  .lcgf-header-inner { grid-template-columns: 1fr auto; }
  .lcgf-hero-stats { gap: 22px; }
  .lcgf-hero-stat strong { font-size: 1.5rem; }
  .lcgf-footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Area utente + Carrello/Checkout — branding LCGF
   (cart/checkout = WooCommerce Blocks; my-account = classico)
   ============================================================ */

/* ---- Campi form condivisi (account/checkout classici) ---- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"] {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1.5px solid var(--c-line) !important;
  border-radius: var(--r-md) !important;
  padding: 12px 14px !important;
  background: var(--c-white) !important;
  color: var(--c-ink) !important;
  font-family: var(--f-sans) !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}
/* Il campo password è avvolto in uno <span.password-input>: deve essere full-width */
.woocommerce form .form-row .password-input,
.woocommerce-account .password-input { display: block; position: relative; width: 100%; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce-account input:focus {
  outline: none !important;
  border-color: var(--c-olive) !important;
  box-shadow: 0 0 0 3px rgba(107, 142, 78, .15) !important;
}

/* ---- My Account: layout + navigazione laterale brandizzata ----
   SOLO da loggato (la dashboard ha la nav laterale). La pagina di
   login/registrazione è anch'essa .woocommerce-account ma NON .logged-in:
   va lasciata a tutta larghezza, altrimenti i form si schiacciano. */
.woocommerce-account.logged-in .woocommerce {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px 0 90px;
}
/* WooCommerce inserisce SEMPRE un .woocommerce-notices-wrapper (anche vuoto) come
   primo figlio di .woocommerce, più eventuali messaggi/avvisi (es. ?password-reset).
   Senza questa regola diventano celle del grid e sfasano nav + contenuto (nav
   stretta e contenuto schiacciato). Li forziamo a occupare l'intera riga, così
   nelle 2 colonne restano SOLO la navigazione e il contenuto. */
.woocommerce-account.logged-in .woocommerce > *:not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) {
  grid-column: 1 / -1;
}
.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper:empty {
  display: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--c-cream-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--sh-1);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 2px 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--r-md);
  color: var(--c-ink-soft);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--c-sand); color: var(--c-olive-deep); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--g-cta);
  color: var(--c-cream);
  box-shadow: 0 6px 16px rgba(54, 78, 37, .22);
}
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  box-shadow: var(--sh-1);
}
.woocommerce-account .woocommerce-MyAccount-content a:not(.button) { color: var(--c-olive-deep); }
@media (max-width: 820px) {
  .woocommerce-account.logged-in .woocommerce { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Login / Registrazione: due card affiancate ----
   Flexbox (non grid): Astra/WooCommerce iniettano regole di placement sui
   .col-1/.col-2 che falsano l'auto-placement della griglia. Il flex con
   due figli flex:1 è immune e li tiene affiancati e allineati in alto. */
.woocommerce-account:not(.logged-in) .woocommerce > .u-columns,
.woocommerce .col2-set {
  display: flex !important;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}
.woocommerce .col2-set > .col-1,
.woocommerce .col2-set > .col-2 {
  flex: 1 1 0 !important;
  min-width: 280px;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce form.login,
.woocommerce form.register {
  border: 1px solid var(--c-line) !important;
  border-radius: var(--r-lg) !important;
  padding: 28px 30px !important;
  background: var(--c-white) !important;
  box-shadow: var(--sh-1);
}
@media (max-width: 820px) {
  .woocommerce .col2-set,
  .woocommerce-account:not(.logged-in) .woocommerce > .u-columns { grid-template-columns: 1fr; }
}

/* ---- Bottoni WooCommerce Blocks (cart/checkout): stile brand ---- */
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-components-button.contained,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout .wc-block-components-button.contained {
  background: var(--g-cta) !important;
  color: var(--c-cream) !important;
  border-radius: var(--r-pill) !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  box-shadow: 0 8px 22px rgba(54, 78, 37, .25) !important;
  transition: transform .15s ease, box-shadow .2s ease !important;
}
.wc-block-components-button.contained:hover,
.wc-block-components-checkout-place-order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(54, 78, 37, .35) !important;
}

/* ---- Campi input WooCommerce Blocks ---- */
.wc-block-components-text-input input,
.wc-block-components-select .wc-block-components-select__container,
.wc-block-components-text-input textarea {
  border-radius: var(--r-md) !important;
  border: 1.5px solid var(--c-line) !important;
}
.wc-block-components-text-input input:focus {
  border-color: var(--c-olive) !important;
  box-shadow: 0 0 0 3px rgba(107, 142, 78, .15) !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-checkout-step__title { color: var(--c-olive-deep) !important; }

/* ---- Totali / riepilogo (cart + checkout blocks) ---- */
.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-cart__totals-title,
.wc-block-components-order-summary__title {
  color: var(--c-olive-deep) !important;
  font-family: var(--f-display) !important;
}
.wp-block-woocommerce-cart-order-summary-block,
.wc-block-components-sidebar {
  background: var(--c-cream-2) !important;
  border: 1px solid var(--c-line) !important;
  border-radius: var(--r-lg) !important;
}

/* ---- Fix overflow Cart/Checkout (Blocks) ----
   La classe .alignwide applica margin-left/right:-20px per sfondare oltre
   il contenuto. Il nostro wrapper .entry-content non ha gutter su mobile/
   tablet (padding 0), quindi il blocco usciva a x=-20 e i titoli delle
   sezioni venivano tagliati a sinistra. Lo riportiamo dentro: centrato e
   con un gutter laterale sotto i 1100px. */
.entry-content .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-cart,
.entry-content .wp-block-woocommerce-checkout.alignwide,
.entry-content .wp-block-woocommerce-cart.alignwide {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1200px !important;
  box-sizing: border-box !important;
}
@media (max-width: 1100px) {
  .entry-content .wp-block-woocommerce-checkout,
  .entry-content .wp-block-woocommerce-cart {
    padding-left: clamp(16px, 4vw, 28px) !important;
    padding-right: clamp(16px, 4vw, 28px) !important;
  }
}

/* ---- Notice / messaggi ---- */
.woocommerce-message, .wc-block-components-notice-banner.is-success {
  border-top-color: var(--c-olive) !important;
}
.woocommerce-info, .wc-block-components-notice-banner.is-info {
  border-top-color: var(--c-wheat-dark) !important;
}

/* ============================================================
   Certificazioni & garanzie (AIC, Ministero Salute, laboratorio GF)
   ============================================================ */
.lcgf-certs-sub {
  max-width: 680px; margin: 14px auto 0;
  color: var(--c-ink-soft); font-size: 1.05rem; line-height: 1.65; text-align: center;
}
.lcgf-certs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-top: 44px;
}
.lcgf-cert-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px 26px;
  box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lcgf-cert-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.lcgf-cert-logo {
  height: 96px; display: grid; place-items: center; margin-bottom: 18px;
}
.lcgf-cert-logo img { max-height: 96px; max-width: 160px; width: auto; object-fit: contain; }
.lcgf-cert-card strong {
  font-family: var(--f-display); font-size: 1.22rem; color: var(--c-olive-deep); margin-bottom: 8px;
}
.lcgf-cert-card span { color: var(--c-muted); font-size: .94rem; line-height: 1.55; }
/* Placeholder elegante finché manca il logo ufficiale */
.lcgf-cert-ph {
  display: grid; place-items: center; text-align: center;
  width: 150px; height: 90px; padding: 8px 12px;
  border: 1.5px dashed var(--c-wheat); border-radius: var(--r-md);
  background: var(--c-cream); color: var(--c-wheat-dark);
  font-weight: 700; font-size: .8rem; letter-spacing: .02em; line-height: 1.3;
}
@media (max-width: 820px) {
  .lcgf-certs-grid { grid-template-columns: 1fr; gap: 18px; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ---- Footer: riga badge fiducia ---- */
.lcgf-footer-trust {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 40px; padding: 26px 0;
  border-top: 1px solid rgba(251,247,238,.12);
  margin-top: 30px;
}
.lcgf-footer-trust-item {
  display: inline-flex; align-items: center; gap: 12px;
  color: rgba(251,247,238,.7); font-size: .82rem; font-weight: 600;
}
.lcgf-footer-trust-item img { max-height: 46px; max-width: 90px; width: auto; object-fit: contain; background: #fff; padding: 5px 8px; border-radius: 8px; }
.lcgf-footer-trust-item .lcgf-cert-ph {
  width: auto; height: 40px; padding: 0 12px; border-color: rgba(251,247,238,.3);
  background: rgba(251,247,238,.06); color: rgba(251,247,238,.7); font-size: .7rem;
}
.lcgf-footer-trust-seal svg { flex-shrink: 0; }
@media (max-width: 600px) { .lcgf-footer-trust { gap: 22px; } }

/* ---- Catalogo: chip filtri categoria ---- */
.lcgf-shop-filters { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 26px; }
.lcgf-chip {
  display:inline-flex; align-items:center; padding:8px 18px;
  border-radius:var(--r-pill); border:1.5px solid var(--c-line);
  background:var(--c-white); color:var(--c-ink-soft);
  font-weight:600; font-size:.88rem; text-decoration:none; transition:all .15s ease;
}
.lcgf-chip:hover { border-color:var(--c-olive); color:var(--c-olive-deep); }
.lcgf-chip.is-active { background:var(--g-cta); color:var(--c-cream); border-color:transparent; }

/* ============================================================
   WooCommerce: paginazione + ordinamento (palette tema, niente blu default)
   Tutti i colori passano dalle variabili: si cambiano in un colpo solo.
   ============================================================ */
.woocommerce nav.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex; gap: 8px; border: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 13px;
  border: 1.5px solid var(--c-line); border-radius: var(--r-md);
  background: var(--c-white); color: var(--c-olive-deep);
  font-family: var(--f-sans); font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover {
  border-color: var(--c-olive); background: var(--c-cream-2); color: var(--c-olive-deep);
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.current {
  background: var(--g-cta) !important; color: var(--c-cream) !important; border-color: transparent !important;
}

/* Barra ordinamento + conteggio risultati */
.woocommerce .woocommerce-result-count { color: var(--c-muted); font-size: .9rem; }
.woocommerce .woocommerce-ordering { margin-bottom: 8px; }
.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select.orderby {
  font-family: var(--f-sans); font-size: .9rem; color: var(--c-ink);
  border: 1.5px solid var(--c-line) !important; border-radius: var(--r-pill);
  padding: 10px 40px 10px 16px; background-color: var(--c-white); cursor: pointer;
  -webkit-appearance: none; appearance: none; line-height: 1.2;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23364E25' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.woocommerce .woocommerce-ordering select:focus,
.woocommerce-page .woocommerce-ordering select.orderby:focus {
  outline: none; border-color: var(--c-olive) !important; box-shadow: 0 0 0 3px rgba(107,142,78,.15);
}
/* Link generici WooCommerce -> colore tema (evita eventuali azzurri ereditati) */
.woocommerce a:not(.button):not(.lcgf-chip):not(.page-numbers) { color: var(--c-olive-deep); }
/* === FIX layout My Account: WooCommerce/Astra applicano float+width ai figli
   (nav float:left, content float:right width auto -> shrink-to-fit a ~177px),
   che rompono il grid 260px/1fr del parent. Li riportiamo nel grid. === */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}/* Posizionamento esplicito nel grid (l'auto-placement risultava invertito:
   nav nella colonna larga, contenuto in quella stretta). Solo da desktop;
   sotto 820px il layout torna a colonna singola. */
@media (min-width: 821px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-navigation { grid-column: 1 / 2 !important; }
  .woocommerce-account .woocommerce-MyAccount-content,
  .woocommerce-MyAccount-content { grid-column: 2 / 3 !important; }
}/* === FIX newsletter homepage: input email schiacciato (~52px) ===
   Il markup e' form > div(input+button) + label(gdpr) + p(msg), ma il CSS
   metteva display:flex (riga) sul FORM, affiancando div+label+msg e
   schiacciando l'input. Impiliamo in colonna e spostiamo la "pillola"
   (sfondo bianco) sul div interno input+button. */
.lcgf-newsletter-form {
  display: block !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: 520px;
  margin: 0 auto;
}
.lcgf-newsletter-form > div {
  background: var(--c-white);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  box-shadow: var(--sh-2);
  flex-wrap: nowrap !important;
  align-items: center;
}
.lcgf-newsletter-form input.lcgf-nl-email {
  flex: 1 1 auto !important;
  min-width: 0;
  padding: 12px 4px !important;
}
@media (max-width: 480px) {
  .lcgf-newsletter-form > div { flex-wrap: wrap !important; padding: 14px !important; border-radius: var(--r-lg); }
  .lcgf-newsletter-form input.lcgf-nl-email { flex: 1 1 100% !important; text-align: center; }
  .lcgf-newsletter-form button { width: 100%; }
}/* === Bottone submit WPForms (form contatti) -> stile brand come gli altri CTA === */
.wpforms-container button[type=submit],
.wpforms-container .wpforms-submit {
  background: var(--g-cta) !important;
  background-color: var(--c-olive) !important;
  color: var(--c-cream) !important;
  border: 1.5px solid transparent !important;
  border-radius: var(--r-pill) !important;
  padding: 14px 34px !important;
  font-family: var(--f-sans) !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  letter-spacing: .02em !important;
  box-shadow: 0 8px 22px rgba(54,78,37,.25) !important;
  cursor: pointer !important;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease !important;
  width: auto !important;
  margin-top: 8px !important;
}
.wpforms-container button[type=submit]:hover,
.wpforms-container .wpforms-submit:hover {
  background: var(--c-olive-deep) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(54,78,37,.35) !important;
}/* === Carrello: sezione "Novita' in negozio" (WooCommerce Blocks cross-sell) ===
   Le card/bottoni dei blocchi erano blu e grezzi, diversi dal catalogo.
   Le rendiamo coerenti con le card prodotto del catalogo. */
.wc-block-grid__products { gap: 18px; }
.wc-block-grid__product {
  background: var(--c-white) !important;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 12px 12px 16px !important;
  margin: 0 !important;
  text-align: left;
  box-shadow: var(--sh-1);
  display: flex !important;
  flex-direction: column;
}
.wc-block-grid__product .wc-block-grid__product-image {
  background: var(--c-cream);
  border-radius: var(--r-md);
  padding: 14px;
  margin: 0 0 12px !important;
  display: block;
}
.wc-block-grid__product .wc-block-grid__product-image img { border-radius: 8px; }
.wc-block-grid__product .wc-block-grid__product-title {
  font-family: var(--f-sans) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: var(--c-ink) !important;
  margin: 0 0 6px !important;
}
.wc-block-grid__product .wc-block-grid__product-price {
  color: var(--c-olive-deep) !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
  font-size: .98rem !important;
}
.wc-block-grid__product .wc-block-grid__product-add-to-cart { margin-top: auto !important; }
.wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product .add_to_cart_button {
  display: block !important;
  width: 100% !important;
  background: var(--g-cta) !important;
  background-color: var(--c-olive) !important;
  color: var(--c-cream) !important;
  border: none !important;
  border-radius: var(--r-pill) !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  font-size: .92rem !important;
  letter-spacing: .02em !important;
  box-shadow: 0 6px 16px rgba(54,78,37,.2) !important;
  transition: background .2s ease, transform .15s ease !important;
}
.wc-block-grid__product .wp-block-button__link:hover,
.wc-block-grid__product .add_to_cart_button:hover {
  background: var(--c-olive-deep) !important;
  transform: translateY(-2px);
}