/*
Theme Name: Accountant La Casa di Imma
Theme URI: https://github.com/napolidstore-ui/the-accountant
Author: Software House AI — The Accountant
Description: Tema WooCommerce custom per "La casa di Imma" — casalinghi, articoli per la casa e giocattoli. Napoli. Design caldo mediterraneo: crema, terracotta, salvia, blu notte.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: accountant-lacasadiimma
*/

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* Brand */
  --terracotta-800: #9C3218;
  --terracotta-700: #B23A1F;
  --terracotta-600: #C9502F;
  --terracotta-100: #F7DED3;
  --amber-500: #E8A13C;
  --amber-300: #FFB84D;
  --amber-text: #8A5A00;
  --sage-700: #3E6B4F;
  --sage-800: #35594E;
  --sage-100: #DEEAE0;
  --night-900: #1E2A38;
  --night-800: #2A3949;

  /* Neutri */
  --cream: #FDF8F0;
  --sand: #F6EDDF;
  --paper: #FFFFFF;
  --ink: #2B2118;
  --ink-soft: #6E5F51;
  --line: #E9DECC;
  --footer-text: #D8CBB8;
  --footer-gold: #F3D5A0;

  /* Stato */
  --success: #1F7A3D;
  --error: #B3261E;
  --info: #1E5A8A;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, 'Segoe UI', sans-serif;
  --fs-hero: clamp(2.5rem, 5.5vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 0.75rem, 2.75rem);
  --fs-h3: clamp(1.35rem, 1.5vw + 0.75rem, 1.75rem);
  --fs-h4: clamp(1.1rem, 0.6vw + 0.9rem, 1.25rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;
  --fs-price: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-section: clamp(64px, 8vw, 112px);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadow (ombre calde) */
  --shadow-sm: 0 2px 8px rgba(94, 62, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(94, 62, 42, 0.12);
  --shadow-lg: 0 16px 40px rgba(94, 62, 42, 0.16);
  --shadow-cta: 0 6px 18px rgba(178, 58, 31, 0.28);

  /* Motion */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-hover: 200ms;
  --dur-reveal: 600ms;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --header-h: 76px;
}

/* ============================================================
   2. BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-700); text-decoration: none; transition: color var(--dur-hover) ease; }
a:hover { color: var(--terracotta-800); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 var(--space-4); }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; color: var(--ink); margin: 0 0 var(--space-3); }
h1 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-4); }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--terracotta-100); color: var(--terracotta-800); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.section-title { text-align: center; max-width: 680px; margin: 0 auto var(--space-7); padding: 0 20px; }
.section-title h2 { margin-bottom: var(--space-2); }
.section-title p { color: var(--ink-soft); font-size: var(--fs-lead); margin: 0; }
.eyebrow {
  display: inline-block; font-size: var(--fs-tiny); font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--terracotta-100); color: var(--terracotta-800);
  padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: var(--space-4);
}

/* ============================================================
   3. BOTTONI
   ============================================================ */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  border-radius: var(--radius-pill); cursor: pointer; text-align: center;
  min-height: 44px; line-height: 1.2;
  transition: transform var(--dur-hover) var(--ease-out-soft),
              box-shadow var(--dur-hover) ease,
              background-color var(--dur-hover) ease,
              color var(--dur-hover) ease,
              border-color var(--dur-hover) ease;
}
.btn-primary {
  background: var(--terracotta-700); color: #fff !important;
  padding: 14px 32px; border: none; box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--terracotta-800); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(178,58,31,0.36); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-secondary {
  background: transparent; color: var(--sage-700) !important;
  padding: 12px 30px; border: 2px solid var(--sage-700);
}
.btn-secondary:hover { background: var(--sage-700); color: #fff !important; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink) !important; padding: 12px 20px; border: none; }
.btn-ghost .arrow { transition: transform var(--dur-hover) var(--ease-out-soft); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ============================================================
   4. HEADER STICKY
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: transparent;
  transition: background-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}
.site-header .header-inner {
  max-width: var(--container-wide); margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-5);
  padding: 20px; transition: padding 250ms ease;
}
body.is-scrolled .site-header {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
@supports not (backdrop-filter: blur(12px)) {
  body.is-scrolled .site-header { background: var(--cream); }
}
body.is-scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }
.site-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--ink) !important; line-height: 1.1; white-space: nowrap;
  transition: font-size 250ms ease;
}
.site-logo em { font-style: normal; color: var(--terracotta-700); }
.site-logo small { display: block; font-family: var(--font-body); font-size: var(--fs-tiny); font-weight: 700; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }
body.is-scrolled .site-logo { font-size: 1.25rem; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); }
.main-nav li a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 14px;
  color: var(--ink); font-weight: 700; font-size: 0.95rem;
}
.main-nav li a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--terracotta-700); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out-soft);
}
.main-nav li a:hover { color: var(--terracotta-700); }
.main-nav li a:hover::after,
.main-nav li.current-menu-item a::after { transform: scaleX(1); }

.header-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill); color: var(--ink) !important;
}
.header-cart:hover { color: var(--terracotta-700) !important; }
.header-cart svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--terracotta-700); color: #fff;
  border-radius: var(--radius-pill); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cart-count.cart-pop { animation: cart-pop 350ms var(--ease-spring); }
@keyframes cart-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

.mobile-menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
}
.mobile-menu-btn span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 250ms ease, opacity 250ms ease; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .mobile-menu-btn { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 890;
    background: var(--cream); box-shadow: var(--shadow-md);
    padding: var(--space-4) 20px var(--space-5);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 250ms var(--ease-out-soft), opacity 250ms ease, visibility 250ms;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { width: 100%; min-height: 48px; font-size: 1.05rem; }
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(120deg, #FDF8F0, #F6EDDF, #F7DED3, #FDF8F0);
  background-size: 300% 300%;
  animation: hero-gradient 18s ease infinite;
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
}
@keyframes hero-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--container-wide); margin: 0 auto; padding: var(--space-7) 20px;
  display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center; width: 100%;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 55fr 45fr; } }

.hero-blob { position: absolute; pointer-events: none; will-change: transform; }
.hero-blob--1 {
  width: 340px; height: 340px; top: 8%; right: 6%;
  background: var(--amber-300); opacity: 0.4; filter: blur(36px);
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  animation: float-a 12s ease-in-out infinite alternate;
}
.hero-blob--2 {
  width: 220px; height: 220px; bottom: 12%; left: 4%;
  background: var(--sage-100); opacity: 0.6; filter: blur(20px); border-radius: 50%;
  animation: float-b 9s ease-in-out infinite alternate;
}
.hero-blob--3 {
  width: 160px; height: 160px; top: 22%; left: 38%;
  background: var(--terracotta-100); opacity: 0.55; filter: blur(14px);
  border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%;
  animation: float-a 14s ease-in-out infinite alternate-reverse;
}
.hero-arch {
  position: absolute; width: 560px; height: 560px; right: -80px; bottom: -280px;
  background: var(--sand); border-radius: 50%; opacity: 0.9; z-index: 1;
}
@keyframes float-a { from { transform: translateY(-14px) rotate(-3deg); } to { transform: translateY(14px) rotate(3deg); } }
@keyframes float-b { from { transform: translateY(10px); } to { transform: translateY(-12px); } }

.hero h1 {
  font-size: var(--fs-hero); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: var(--space-4);
}
.hero .hl {
  color: var(--terracotta-700); position: relative; white-space: nowrap;
}
.hero .hl svg {
  position: absolute; left: 0; right: 0; bottom: -0.18em; width: 100%; height: 0.3em; overflow: visible;
}
.hero .hl svg path {
  fill: none; stroke: var(--amber-500); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
}
html.js .hero .hl svg path { animation: brush-in 900ms var(--ease-out-soft) 600ms forwards; }
html:not(.js) .hero .hl svg path { stroke-dashoffset: 0; }
@keyframes brush-in { to { stroke-dashoffset: 0; } }

.hero-lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 34em; margin-bottom: var(--space-6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* Entrata hero: stagger fade-up al load */
html.js .hero-stagger { opacity: 0; transform: translateY(24px); }
html.js body.is-loaded .hero-stagger {
  opacity: 1; transform: translateY(0);
  transition: opacity var(--dur-reveal) var(--ease-out-soft), transform var(--dur-reveal) var(--ease-out-soft);
}
html.js body.is-loaded .hero-stagger--1 { transition-delay: 0ms; }
html.js body.is-loaded .hero-stagger--2 { transition-delay: 90ms; }
html.js body.is-loaded .hero-stagger--3 { transition-delay: 180ms; }
html.js body.is-loaded .hero-stagger--4 { transition-delay: 270ms; }
html.js body.is-loaded .hero-stagger--5 { transition-delay: 360ms; }

.hero-visual { position: relative; z-index: 2; min-height: 320px; }
.hero-visual .hv-main {
  width: min(420px, 88%); height: 420px; object-fit: cover;
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 42% 42% var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg); margin: 0 auto;
}
.hero-visual .hv-small {
  position: absolute; bottom: -24px; left: 4%;
  width: 180px; height: 180px; object-fit: cover;
  border-radius: 50%; border: 6px solid var(--cream); box-shadow: var(--shadow-md);
}
.hero-visual .hv-badge {
  position: absolute; top: 8%; right: 2%;
  background: var(--paper); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 12px 18px;
  font-size: var(--fs-small); font-weight: 700; color: var(--ink);
  animation: float-b 6s ease-in-out infinite alternate;
}
.hero-visual .hv-badge .stars { color: var(--amber-500); font-size: 1rem; letter-spacing: 2px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  color: var(--ink-soft); animation: hint-bounce 2.4s ease-in-out infinite;
}
@keyframes hint-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (max-width: 1023px) {
  .hero { min-height: auto; }
  .hero-visual .hv-main { height: 320px; }
  .scroll-hint { display: none; }
}

/* ============================================================
   6. TRUST BAR
   ============================================================ */
.trust-bar { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid {
  max-width: var(--container); margin: 0 auto; padding: var(--space-6) 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5);
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: flex-start; gap: var(--space-3); }
.trust-icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--sage-100); color: var(--sage-700);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-hover) var(--ease-spring);
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-item:hover .trust-icon { transform: scale(1.1) rotate(-4deg); }
.trust-item strong { display: block; font-weight: 700; font-size: 0.95rem; }
.trust-item span { color: var(--ink-soft); font-size: var(--fs-small); }

/* ============================================================
   7. CATEGORIE
   ============================================================ */
.categories-section { padding: var(--space-section) 0; background: var(--cream); }
.categories-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-5);
}
@media (min-width: 768px) { .categories-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: 2fr 1fr 1fr; } }
.cat-card {
  position: relative; display: block; height: 260px; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-hover) var(--ease-out-soft), box-shadow var(--dur-hover) ease;
}
@media (min-width: 768px) { .cat-card { height: 320px; } }
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms ease;
}
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,42,56,0.72), transparent 65%);
  transition: background 300ms ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }
.cat-card-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--space-5); color: #fff; }
.cat-card-overlay h3 { color: #fff; margin: 0 0 4px; }
.cat-card-overlay p { color: rgba(255,255,255,0.85); font-size: var(--fs-small); margin: 0 0 var(--space-3); }
.cat-card-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: var(--fs-small);
  padding: 8px 18px; border-radius: var(--radius-pill);
}
.cat-card-btn .arrow { transition: transform var(--dur-hover) var(--ease-out-soft); display: inline-block; }
.cat-card:hover .cat-card-btn .arrow { transform: translateX(4px); }

/* ============================================================
   8. SEZIONE PRODOTTI + WAVE
   ============================================================ */
.section-wave { display: block; width: 100%; height: 60px; }
.products-section { padding: 0 0 var(--space-section); background: var(--paper); }
.products-section .section-title { padding-top: var(--space-7); }
.products-cta { text-align: center; margin-top: var(--space-6); }

/* ============================================================
   9. PRODUCT CARD (loop WC)
   ============================================================ */
ul.products {
  list-style: none; margin: 0 auto; padding: 0 20px;
  max-width: var(--container);
  display: grid; grid-template-columns: 1fr; gap: var(--space-5);
}
@media (min-width: 480px)  { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { ul.products { grid-template-columns: repeat(4, 1fr); } }

li.product.lci-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--dur-hover) var(--ease-out-soft), box-shadow var(--dur-hover) ease;
}
li.product.lci-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
li.product.lci-card:focus-within { outline: 3px solid var(--amber-500); outline-offset: 2px; }

.lci-card-media { position: relative; display: block; background: var(--sand); overflow: hidden; }
.lci-card-media img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  transition: transform 400ms var(--ease-out-soft);
}
@media (max-width: 767px) { .lci-card-media img { height: 200px; } }
li.product.lci-card:hover .lci-card-media img { transform: scale(1.05); }

.lci-badge-sale, span.onsale {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: var(--amber-500); color: var(--ink);
  font-size: var(--fs-tiny); font-weight: 800; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  transform: rotate(-3deg); min-height: 0; line-height: 1.4;
}
.lci-card-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: var(--space-4); }
.lci-card-cat {
  font-size: var(--fs-tiny); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--sage-700);
}
.lci-card-title { margin: 0; font-size: var(--fs-h4); font-weight: 700; line-height: 1.35; }
.lci-card-title a {
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.lci-card-title a:hover { color: var(--terracotta-700); }
.lci-card .price {
  font-size: var(--fs-price); font-weight: 800; color: var(--terracotta-700);
  font-variant-numeric: tabular-nums; margin-top: auto;
}
.lci-card .price del { color: var(--ink-soft); font-weight: 400; margin-right: 6px; }
.lci-card .price ins { text-decoration: none; }

.lci-card .button, .lci-card .add_to_cart_button, .lci-card .product_type_simple {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; padding: 11px 16px; margin-top: var(--space-2);
  background: var(--terracotta-700); color: #fff !important;
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: background-color var(--dur-hover) ease, transform var(--dur-hover) var(--ease-out-soft);
}
.lci-card .button:hover { background: var(--terracotta-800); transform: translateY(-2px); }
.lci-card .button.loading { opacity: 0.7; pointer-events: none; }
.lci-card .button.added::after { content: ' ✓'; }
.lci-card .added_to_cart { display: block; text-align: center; font-size: var(--fs-small); font-weight: 700; color: var(--success); padding: 6px 0 0; }

/* ============================================================
   10. STORIA
   ============================================================ */
.story-section { padding: var(--space-section) 0; background: var(--sand); overflow: hidden; }
.story-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center;
}
@media (min-width: 1024px) { .story-grid { grid-template-columns: 45fr 55fr; } }
.story-media { position: relative; }
.story-media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 320px; box-shadow: var(--shadow-md);
}
@media (min-width: 1024px) { .story-media-frame { height: 480px; } }
.story-media-frame img { width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.story-arch {
  position: absolute; z-index: -1; width: 260px; height: 260px;
  border-radius: 50%; background: var(--terracotta-100);
  top: -40px; left: -48px;
}
.story-blob {
  position: absolute; width: 90px; height: 90px; right: -22px; bottom: -22px;
  background: var(--amber-300); opacity: 0.6; filter: blur(4px);
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
  animation: float-b 8s ease-in-out infinite alternate;
}
.story-text .signature { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--terracotta-700); }
.story-stats { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-6); }
.story-stats .stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--terracotta-700); line-height: 1.1; }
.story-stats .stat span { color: var(--ink-soft); font-size: var(--fs-small); }

/* ============================================================
   11. PROMO BANNER
   ============================================================ */
.promo-banner {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--terracotta-700), #D96A3B);
  padding: var(--space-section) 20px; color: #fff;
}
.promo-banner::before {
  content: ''; position: absolute; inset: 0; opacity: 0.06;
  background-image: radial-gradient(#fff 2px, transparent 2.5px);
  background-size: 26px 26px;
}
.promo-blob {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: var(--amber-300); opacity: 0.35; filter: blur(48px); will-change: transform;
}
.promo-blob--1 { top: -90px; left: -60px; }
.promo-blob--2 { bottom: -110px; right: -50px; }
.promo-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.promo-banner h2 { color: #fff; margin-bottom: var(--space-3); }
.promo-banner p { color: rgba(255,255,255,0.9); font-size: var(--fs-lead); margin-bottom: var(--space-6); }
.btn-promo {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--terracotta-800) !important;
  font-weight: 800; padding: 14px 34px; min-height: 44px;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
  transition: transform var(--dur-hover) var(--ease-out-soft);
}
.btn-promo:hover { transform: scale(1.03); }

/* ============================================================
   12. NEWSLETTER + CONTATTI
   ============================================================ */
.newsletter-section { background: var(--sage-100); padding: var(--space-section) 20px; }
.newsletter-card {
  max-width: 720px; margin: 0 auto; background: var(--paper);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: var(--space-7) var(--space-6); text-align: center;
}
.newsletter-card h2 { margin-bottom: var(--space-2); }
.newsletter-card > p { color: var(--ink-soft); margin-bottom: var(--space-5); }
.newsletter-form { text-align: left; max-width: 480px; margin: 0 auto; }
.newsletter-form label { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: 6px; }
.newsletter-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px; min-height: 48px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 12px 20px; font-family: var(--font-body); font-size: 1rem;
  background: var(--cream); color: var(--ink);
}
.newsletter-form input[type="email"]:focus { outline: 3px solid var(--amber-500); outline-offset: 1px; }
.newsletter-privacy { display: flex; align-items: flex-start; gap: 8px; margin-top: var(--space-3); font-size: var(--fs-small); color: var(--ink-soft); }
.newsletter-privacy input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sage-700); }
.newsletter-msg { display: none; margin-top: var(--space-3); font-weight: 700; font-size: var(--fs-small); }
.newsletter-msg.is-success { display: block; color: var(--success); }
.newsletter-msg.is-error { display: block; color: var(--error); }
.btn-spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: spin 700ms linear infinite;
}
.is-submitting .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.quick-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.quick-contacts a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--sage-700); color: var(--sage-800) !important;
  font-weight: 700; font-size: var(--fs-small); background: transparent;
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.quick-contacts a:hover { background: var(--sage-700); color: #fff !important; }
.quick-contacts svg { width: 18px; height: 18px; }

/* ============================================================
   13. FOOTER
   ============================================================ */
.footer-wave { display: block; width: 100%; height: 60px; background: var(--paper); }
.footer-wave.on-sage { background: var(--sage-100); }
.site-footer { background: var(--night-900); color: var(--footer-text); font-size: var(--fs-small); }
.footer-grid {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 72px 20px 48px;
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; margin: 0 0 4px; }
.footer-logo em { font-style: normal; color: var(--footer-gold); }
.footer-tagline { color: var(--footer-text); font-style: italic; margin-bottom: var(--space-4); }
.company-info { font-size: var(--fs-tiny); line-height: 1.8; color: var(--footer-text); }
.company-info strong { color: #fff; }
.site-footer h4 {
  color: var(--footer-gold); font-size: var(--fs-tiny); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-4);
}
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li a, .footer-contacts a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0;
  color: var(--footer-text) !important; transition: color var(--dur-hover) ease;
}
.site-footer nav li a:hover, .footer-contacts a:hover { color: var(--footer-gold) !important; text-decoration: underline; }
.site-footer button.footer-link-btn {
  background: none; border: none; cursor: pointer; font: inherit; padding: 4px 0;
  min-height: 36px; color: var(--footer-text); display: inline-flex; align-items: center;
}
.site-footer button.footer-link-btn:hover { color: var(--footer-gold); text-decoration: underline; }
.footer-contacts p { display: flex; align-items: flex-start; gap: 8px; margin-bottom: var(--space-2); }
.footer-contacts svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 4px; color: var(--footer-gold); }
.footer-bottom { border-top: 1px solid var(--night-800); }
.footer-bottom-inner {
  max-width: var(--container-wide); margin: 0 auto; padding: var(--space-4) 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2);
  font-size: var(--fs-tiny); color: var(--footer-text);
}

/* ============================================================
   14. COOKIE BANNER (tema — conforme Garante)
   ============================================================ */
/* Sopprime il banner MU network-wide, sostituito dal banner del tema */
#as-gdpr-bar { display: none !important; }

.lci-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: var(--night-900); color: var(--footer-text);
  box-shadow: 0 -8px 24px rgba(30,42,56,0.35);
  border-radius: 16px 16px 0 0;
  transform: translateY(110%); visibility: hidden;
  transition: transform 400ms var(--ease-out-soft), visibility 400ms;
}
.lci-cookie-banner.is-visible { transform: translateY(0); visibility: visible; }
@media (min-width: 768px) {
  .lci-cookie-banner { left: 50%; right: auto; transform: translate(-50%, 110%); width: calc(100% - 32px); max-width: 1200px; bottom: 16px; border-radius: var(--radius-md); }
  .lci-cookie-banner.is-visible { transform: translate(-50%, 0); }
}
.lci-cookie-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-5);
}
.lci-cookie-text { flex: 1 1 380px; }
.lci-cookie-text h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.15rem; color: var(--footer-gold); margin: 0 0 6px;
}
.lci-cookie-text h2 svg { width: 22px; height: 22px; }
.lci-cookie-text p { font-size: var(--fs-tiny); line-height: 1.6; margin: 0; }
.lci-cookie-text a, .lci-cookie-text button.lci-cookie-prefs-toggle {
  color: var(--footer-gold); text-decoration: underline;
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
}
.lci-cookie-actions { display: flex; gap: var(--space-3); flex: 0 0 auto; }
/* PARI EVIDENZA: Accetta e Rifiuta IDENTICI (provvedimento Garante 10/06/2021) */
.lci-cookie-actions .lci-cookie-btn {
  min-height: 44px; padding: 10px 26px;
  border: 2px solid var(--footer-gold); border-radius: var(--radius-pill);
  background: transparent; color: var(--footer-gold);
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem; cursor: pointer;
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.lci-cookie-actions .lci-cookie-btn:hover { background: var(--footer-gold); color: var(--night-900); }
.lci-cookie-close {
  position: absolute; top: 2px; right: 2px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--footer-text); cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.lci-cookie-close:hover { color: #fff; }
.lci-cookie-panel { display: none; width: 100%; border-top: 1px solid var(--night-800); padding-top: var(--space-3); }
.lci-cookie-panel.is-open { display: block; }
.lci-cookie-panel label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-tiny); padding: 4px 0; }
.lci-cookie-panel input { accent-color: var(--footer-gold); width: 16px; height: 16px; }
@media (max-width: 767px) {
  .lci-cookie-actions { width: 100%; }
  .lci-cookie-actions .lci-cookie-btn { flex: 1; }
}

/* ============================================================
   15. SHOP ARCHIVE
   ============================================================ */
.shop-wrapper { padding-bottom: var(--space-section); }
.shop-header {
  position: relative; overflow: hidden; background: var(--sand);
  padding: var(--space-7) 20px; text-align: center; margin-bottom: var(--space-6);
}
.shop-header-blob {
  position: absolute; width: 240px; height: 240px; top: -80px; right: 6%;
  background: var(--terracotta-100); opacity: 0.7; filter: blur(8px);
  border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
}
.shop-header h1 { position: relative; z-index: 2; margin-bottom: var(--space-2); }
.shop-header .term-description, .shop-header .shop-count { position: relative; z-index: 2; color: var(--ink-soft); max-width: 640px; margin: 0 auto; }
.shop-toolbar {
  max-width: var(--container); margin: 0 auto var(--space-5); padding: 0 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.woocommerce-result-count { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; }
.woocommerce-ordering select, select.orderby {
  min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 8px 36px 8px 18px; font-family: var(--font-body); font-size: var(--fs-small);
  background: var(--paper); color: var(--ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E5F51' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

/* Paginazione */
.woocommerce-pagination, .navigation.pagination { text-align: center; margin-top: var(--space-7); }
.woocommerce-pagination ul, .navigation .nav-links { display: inline-flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.woocommerce-pagination li { margin: 0; }
.woocommerce-pagination .page-numbers, .navigation .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-weight: 700; font-size: var(--fs-small);
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.woocommerce-pagination .page-numbers.current, .navigation .page-numbers.current {
  background: var(--terracotta-700); border-color: var(--terracotta-700); color: #fff;
}
.woocommerce-pagination .page-numbers:hover:not(.current), .navigation .page-numbers:hover:not(.current) { background: var(--terracotta-100); color: var(--terracotta-800); }

/* ============================================================
   16. SINGLE PRODUCT
   ============================================================ */
.single-product-wrapper { max-width: var(--container); margin: 0 auto; padding: var(--space-6) 20px var(--space-section); }
.woocommerce-breadcrumb { font-size: var(--fs-tiny); color: var(--ink-soft); margin-bottom: var(--space-5); }
.woocommerce-breadcrumb a { color: var(--ink-soft); }
.woocommerce-breadcrumb a:hover { color: var(--terracotta-700); }

div.product { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
@media (min-width: 1024px) { div.product { grid-template-columns: 52fr 48fr; } }
div.product .woocommerce-product-gallery { position: relative; }
div.product .woocommerce-product-gallery__wrapper { margin: 0; }
div.product .woocommerce-product-gallery__image {
  background: var(--sand); border-radius: var(--radius-lg); overflow: hidden;
}
div.product .woocommerce-product-gallery__image img,
div.product .woocommerce-product-gallery__image a > img {
  width: 100%; height: 360px; object-fit: contain;
}
@media (min-width: 1024px) {
  div.product .woocommerce-product-gallery__image img,
  div.product .woocommerce-product-gallery__image a > img { height: 480px; }
}
div.product .flex-control-thumbs { display: flex; gap: 10px; list-style: none; margin: var(--space-3) 0 0; padding: 0; flex-wrap: wrap; }
div.product .flex-control-thumbs li { width: 72px; }
div.product .flex-control-thumbs img {
  width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; opacity: 0.7;
}
div.product .flex-control-thumbs img.flex-active, div.product .flex-control-thumbs img:hover { border-color: var(--terracotta-700); opacity: 1; }

.summary.entry-summary { min-width: 0; }
.lci-product-cat-pill {
  display: inline-block; background: var(--sage-100); color: var(--sage-800);
  font-size: var(--fs-tiny); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: var(--space-3);
}
.product_title.entry-title { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); margin-bottom: var(--space-3); }
.summary .price {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  color: var(--terracotta-700); margin-bottom: var(--space-4); display: block;
}
.summary .price del { color: var(--ink-soft); font-size: 0.6em; }
.summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--ink-soft); }

.summary form.cart { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: stretch; margin: var(--space-5) 0; }
.summary .quantity { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.summary .quantity input.qty {
  width: 64px; min-height: 44px; border: none; text-align: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.summary form.cart .single_add_to_cart_button {
  flex: 1; min-width: 260px; min-height: 48px;
  background: var(--terracotta-700); color: #fff; border: none;
  border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 800; font-size: 1.05rem;
  padding: 12px 32px; cursor: pointer; box-shadow: var(--shadow-cta);
  transition: background-color var(--dur-hover) ease, transform var(--dur-hover) var(--ease-out-soft);
}
.summary form.cart .single_add_to_cart_button:hover { background: var(--terracotta-800); transform: translateY(-2px); }

.lci-trust-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-4) 0; font-size: var(--fs-small); color: var(--ink-soft); }
.lci-trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.lci-trust-row svg { width: 16px; height: 16px; color: var(--sage-700); }

.product_meta { font-size: var(--fs-small); color: var(--ink-soft); margin: var(--space-4) 0; }
.product_meta > span { display: block; padding: 2px 0; }

/* Share buttons */
.lci-share { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }
.lci-share-label { font-size: var(--fs-small); font-weight: 700; color: var(--ink-soft); }
.lci-share a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-soft) !important; background: var(--paper);
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease,
              border-color var(--dur-hover) ease, transform var(--dur-hover) var(--ease-out-soft);
}
.lci-share a svg { width: 20px; height: 20px; }
.lci-share a:hover { transform: translateY(-2px); color: #fff !important; }
.lci-share a.share-wa:hover { background: #25D366; border-color: #25D366; }
.lci-share a.share-tg:hover { background: #229ED9; border-color: #229ED9; }
.lci-share a.share-x:hover  { background: #14171A; border-color: #14171A; }
.lci-share a.share-fb:hover { background: #1877F2; border-color: #1877F2; }

/* Tabs */
.woocommerce-tabs { grid-column: 1 / -1; margin-top: var(--space-6); }
.woocommerce-tabs ul.tabs { display: flex; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-5); padding: 0; flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 24px;
  border-radius: var(--radius-pill); font-weight: 700; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--paper);
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.woocommerce-tabs ul.tabs li.active a { background: var(--terracotta-100); color: var(--terracotta-800); border-color: var(--terracotta-100); }
.woocommerce-tabs .panel { color: var(--ink); }
.woocommerce-tabs .panel h2 { font-size: var(--fs-h3); }

/* Related */
.related.products, .up-sells { grid-column: 1 / -1; margin-top: var(--space-7); }
.related.products > h2, .up-sells > h2 { text-align: center; margin-bottom: var(--space-6); }
.related.products ul.products, .up-sells ul.products { padding: 0; }

/* Sticky add-to-cart mobile */
.lci-sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: none; align-items: center; gap: var(--space-3);
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(94,62,42,0.14);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%); transition: transform 300ms var(--ease-out-soft);
}
.lci-sticky-atc.is-visible { transform: translateY(0); }
@media (max-width: 767px) { .lci-sticky-atc { display: flex; } }
.lci-sticky-atc .sticky-price { font-weight: 800; color: var(--terracotta-700); font-size: 1.1rem; white-space: nowrap; }
.lci-sticky-atc .btn-primary { flex: 1; padding: 11px 18px; }

/* ============================================================
   17. WOOCOMMERCE MISC (notices, cart, checkout, forms)
   ============================================================ */
.woocommerce-notices-wrapper { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none; margin: var(--space-4) 0; padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--info); color: var(--ink); font-size: var(--fs-small);
}
.woocommerce-message { border-left-color: var(--success); }
.woocommerce-error { border-left-color: var(--error); }
/* WC core posiziona un'icona ::before (icon font) in absolute nell'angolo del notice:
   col nostro padding compatto il glifo si sovrappone alla prima lettera → la nascondiamo. */
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before,
.woocommerce-error li::before, .woocommerce-noreviews::before, p.no-comments::before {
  content: none !important; display: none !important;
}
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
  float: right; background: var(--terracotta-700); color: #fff; border-radius: var(--radius-pill);
  padding: 8px 18px; font-weight: 700; margin-left: var(--space-3);
}
.woocommerce-page main table.shop_table {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line);
}
.woocommerce-page main table.shop_table th, .woocommerce-page main table.shop_table td {
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); text-align: left;
}
.woocommerce-page main .button, .woocommerce-page main button[type="submit"]:not(.lci-cookie-btn):not(.single_add_to_cart_button) {
  background: var(--terracotta-700); color: #fff; border: none; border-radius: var(--radius-pill);
  padding: 12px 26px; font-family: var(--font-body); font-weight: 800; cursor: pointer; min-height: 44px;
  transition: background-color var(--dur-hover) ease;
}
.woocommerce-page main .button:hover { background: var(--terracotta-800); }
.woocommerce-page main input[type="text"], .woocommerce-page main input[type="email"],
.woocommerce-page main input[type="tel"], .woocommerce-page main input[type="password"],
.woocommerce-page main textarea, .woocommerce-page main select {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; font-family: var(--font-body); font-size: 1rem;
  background: var(--paper); color: var(--ink); width: 100%;
}
.price .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }

/* ============================================================
   18. PAGINE STATICHE (legal, contatti)
   ============================================================ */
.legal-page-content { max-width: 820px; margin: 0 auto; padding: var(--space-7) 20px var(--space-section); }
.legal-page-content h1 { margin-bottom: var(--space-2); }
.legal-page-content .last-updated { color: var(--ink-soft); font-size: var(--fs-small); margin-bottom: var(--space-6); }
.legal-page-content h2 { font-size: var(--fs-h3); margin-top: var(--space-6); }
.legal-page-content a { text-decoration: underline; }

/* ============================================================
   19. SCROLL REVEAL (attivo solo con JS + motion consentita)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity var(--dur-reveal) var(--ease-out-soft), transform var(--dur-reveal) var(--ease-out-soft),
                clip-path var(--dur-reveal) var(--ease-out-soft);
  }
  html.js [data-reveal="clip"] { clip-path: inset(0 0 12% 0); transform: translateY(16px); }
  html.js [data-reveal="clip-x"] { clip-path: inset(0 12% 0 0); transform: none; }
  html.js [data-reveal="zoom"] { transform: scale(0.97); }
  html.js [data-reveal].is-revealed {
    opacity: 1; transform: none; clip-path: inset(0 0 0 0);
  }
}

/* ============================================================
   20. PREFERS-REDUCED-MOTION (vincolante)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero { background-position: 50% 50%; animation: none; }
}
