/* ═══════════════════════════════════════════════════════════════
   PressAmì — Design system blocchi canvas (GENERICO, @fox/blocks)
   Spedito con fox-site → ogni sito che renderizza i blocchi lo riceve.
   Palette di DEFAULT sovrascrivibile dal sito (:root { --blue:… }) o dai design.tokens.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   Wrapper supports universale (`fx`) — classi allineamento.
   Lo stile (colore/spaziatura/dimensioni/bordo/ombra) arriva inline da
   `supportsToCss`; l'allineamento usa queste classi (dipende dal container).
   USATE IDENTICHE in anteprima admin e nel sito → parità.
   ═══════════════════════════════════════════════════════════════ */
.fox-block-styled { box-sizing: border-box; }
.fox-block-styled.fox-align--left   { margin-inline-start: 0; margin-inline-end: auto; }
.fox-block-styled.fox-align--center { margin-inline: auto; }
.fox-block-styled.fox-align--right  { margin-inline-start: auto; margin-inline-end: 0; }
.fox-block-styled.fox-align--wide   { width: min(100%, 1100px); margin-inline: auto; }
.fox-block-styled.fox-align--full   { width: 100%; max-width: none; }

/* ═══════════════════════════════════════════════════════════════
   VOLPE PASTICCERIA — DESIGN SYSTEM VARIABLES
   Brand: #1F3579 (Royal Blue) + #FFD240 (Gold)
   ═══════════════════════════════════════════════════════════════ */

/* Default brand/struttura in un @layer a priorità più BASSA degli stili non-layered: così il CSS
   /design-tokens.css del CMS (non-layered) sovrascrive SEMPRE colori/font del tema, a prescindere
   dall'ordine di bundle (blocks.css, importato da Renderer.astro, si carica DOPO il <link>). I token
   strutturali non emessi dai design.tokens (spacing/radius/z-index) restano questi default. */
@layer fox-defaults {
:root {

  /* ── Brand Colors ─────────────────────────────────────────── */
  --blue:          #1F3579;
  --blue-dark:     #0F1E4A;
  --blue-deeper:   #0A1330;
  --blue-mid:      #2A4299;
  --blue-light:    #3A5BC7;
  --blue-ghost:    #EDF0F9;

  --gold:          #FFD240;
  --gold-dark:     #E6BC30;
  --gold-deep:     #C9A220;
  --gold-light:    #FFE27A;
  --gold-pale:     #FFF8E1;

  /* ── Brand Gradient (sfondo "Gradiente" dei blocchi) ──────────
     QUI NON si definisce il VALORE: il colore è del SINGOLO sito.
     Il codice condiviso espone solo la FUNZIONE (classe .section--gradient
     + opzione 'gradient' nei blocchi) e usa `var(--brand-gradient, <neutro>)`.
     Ogni sito imposta `--brand-gradient` nel proprio tema per avere i SUOI
     colori; senza override resta il gradiente neutro di fallback. */

  /* ── Neutrals ─────────────────────────────────────────────── */
  --white:         #FFFFFF;
  --cream:         #FAF7F2;
  --cream-dark:    #F2EDE4;
  --warm-gray:     #E8E2D9;
  --mid-gray:      #9E9589;
  --charcoal:      #3A3530;
  --black:         #111111;

  /* ── Text ─────────────────────────────────────────────────── */
  --text-primary:  #111111;
  --text-secondary:#4A4540;
  --text-muted:    #7A7570;
  --text-on-dark:  #F5F2EE;
  --text-on-blue:  rgba(255,255,255,0.92);
  --text-gold-on-dark: var(--gold);

  /* ── Semantic ─────────────────────────────────────────────── */
  --color-new:     #C62828;
  --color-success: #2E7D32;
  --color-border:  rgba(31,53,121,0.12);
  --color-border-dark: rgba(255,255,255,0.12);

  /* ── Typography ───────────────────────────────────────────── */
  /* NOTE: Futura font — if you own the license, place the font files in
     src/assets/fonts/ and replace the @import in base.css with @font-face */

  --font-heading: 'Jost', 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-display: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  /* Font semantico dei TITOLI di blocco: i temi possono ridefinirlo (es. bottega
     → font-display). Consumato dal canvas admin e utilizzabile dai componenti. */
  --title-font: var(--font-heading);
  --font-body:    'Lato', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* ── Type Scale (Major Third — 1.25) ─────────────────────── */
  --text-xs:    0.64rem;   /* 10.2px */
  --text-sm:    0.8rem;    /* 12.8px */
  --text-base:  1rem;      /* 16px */
  --text-md:    1.25rem;   /* 20px */
  --text-lg:    1.563rem;  /* 25px */
  --text-xl:    1.953rem;  /* 31.2px */
  --text-2xl:   2.441rem;  /* 39px */
  --text-3xl:   3.052rem;  /* 48.8px */
  --text-4xl:   3.815rem;  /* 61px */
  --text-5xl:   4.768rem;  /* 76.3px */
  --text-6xl:   5.96rem;   /* 95.4px */
  --text-hero:  clamp(3rem, 8vw, 6rem);

  /* ── Font Weights ─────────────────────────────────────────── */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-black:   900;

  /* ── Letter Spacing ──────────────────────────────────────── */
  --tracking-tight:   -0.03em;
  --tracking-normal:  0em;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;
  --tracking-widest:  0.18em;
  --tracking-caps:    0.12em;

  /* ── Line Height ─────────────────────────────────────────── */
  --leading-none:    1;
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;
  --leading-loose:   2;

  /* ── Spacing (8px base) ──────────────────────────────────── */
  --space-1:   0.25rem;   /* 4px  */
  --space-2:   0.5rem;    /* 8px  */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */
  --space-40:  10rem;     /* 160px */
  --space-48:  12rem;     /* 192px */

  /* ── Section Padding ─────────────────────────────────────── */
  --section-pad-y: clamp(4rem, 8vw, 8rem);
  --section-pad-x: clamp(1.5rem, 5vw, 6rem);

  /* ── Layout ──────────────────────────────────────────────── */
  --container-max:  1400px;
  --container-wide: 1200px;
  --container-text: 760px;
  --container-narrow: 600px;

  /* ── Border Radius ───────────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  40px;
  --radius-full: 9999px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-blue: 0 8px 32px rgba(31,53,121,0.3);
  --shadow-gold: 0 4px 20px rgba(255,210,64,0.35);
  --shadow-card: 0 2px 8px rgba(31,53,121,0.06), 0 8px 32px rgba(31,53,121,0.08);

  /* ── Transitions ─────────────────────────────────────────── */
  --ease-default:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-luxury:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;

  --transition-base: var(--duration-base) var(--ease-default);
  --transition-slow: var(--duration-slow) var(--ease-luxury);

  /* ── Z-index ─────────────────────────────────────────────── */
  --z-base:    0;
  --z-raised:  10;
  --z-nav:     100;
  --z-overlay: 200;
  --z-modal:   300;
  --z-top:     400;

}
} /* fine @layer fox-defaults */

/* ── Dark Sections Override ───────────────────────────────────── */
[data-theme="dark"] {
  --bg:           var(--blue-dark);
  --text-primary: var(--text-on-dark);
  --color-border: var(--color-border-dark);
}
/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY — Volpe Pasticceria
   Headings: Jost (Futura-style) | Accents: Cormorant Garamond
   Body: Lato
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────
   I web font (Jost / Cormorant Garamond / Lato) sono caricati via
   <link rel="stylesheet"> in Base.astro (vedi DEFAULT_GOOGLE_FONTS), NON
   con @import qui: questo file viene bundlato (import in Renderer.astro) e
   un @import a metà file finisce dopo altre regole → invalido per spec CSS
   (ignorato dai browser; lightningcss lo rifiuta come errore di build).
   Per font custom: design.tokens.typography.fontGoogleUrl (CMS). */

/* ── Display / Hero ──────────────────────────────────────────── */

.display-xl {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: 0.95;
}

.display-lg {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.0;
}

/* ── Headings ─────────────────────────────────────────────────── */

h1, .h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  line-height: var(--leading-snug);
}

h4, .h4 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
}

h5, .h5 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* ── Display Serif (Cormorant) ───────────────────────────────── */

.serif {
  font-family: var(--font-display);
}

.display-serif {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  font-style: italic;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: var(--weight-light);
  font-style: italic;
  line-height: var(--leading-relaxed);
  letter-spacing: 0.01em;
}

/* ── Labels / Eyebrows ────────────────────────────────────────── */

.label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  line-height: 1;
}

.label--gold {
  color: var(--gold);
}

.label--blue {
  color: var(--blue);
}

.label--muted {
  color: var(--text-muted);
}

/* ── Body Text ────────────────────────────────────────────────── */

.body-lg {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.body-md {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-muted);
}

/* ── Prose (long-form text) ──────────────────────────────────── */

.prose {
  max-width: var(--container-text);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.prose > * + * { margin-top: var(--space-4); }
.prose p { margin-bottom: var(--space-4); line-height: var(--leading-relaxed); }
.prose p:last-child { margin-bottom: 0; }

.prose strong {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.prose em {
  font-family: var(--font-display);
  font-style: italic;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}
.prose h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
.prose h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.prose h4 { font-size: var(--text-base); }
.prose h5 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-wider); }

.prose ul, .prose ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}
.prose li::marker { color: var(--gold); }

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}
.prose a:hover { color: var(--gold); }

.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--space-4) var(--space-6);
  background: var(--cream-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: var(--space-6);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-secondary);
}

.prose code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--blue-ghost);
  color: var(--blue);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.prose pre {
  background: var(--blue-deeper);
  color: rgba(255,255,255,0.85);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-block: var(--space-6);
}
.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: var(--text-sm);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: var(--space-8);
}

.prose img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-block: var(--space-6);
}

.prose s, .prose del { text-decoration: line-through; opacity: 0.7; }

/* ── Utilities ────────────────────────────────────────────────── */

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.uppercase    { text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.italic       { font-style: italic; }

.text-gold    { color: var(--gold); }
.text-blue    { color: var(--blue); }
.text-white   { color: var(--white); }
.text-muted   { color: var(--text-muted); }
/* ═══════════════════════════════════════════════════════════════
   LAYOUT — Grid, Container, Sections
   ═══════════════════════════════════════════════════════════════ */

/* ── Container ───────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.container--wide  { max-width: var(--container-wide); }
.container--text  { max-width: var(--container-text); margin-inline: auto; }
.container--narrow{ max-width: var(--container-narrow); margin-inline: auto; }
.container--full  { max-width: 100%; padding-inline: 0; }

/* ── Section ─────────────────────────────────────────────────── */

.section {
  padding-block: var(--section-pad-y);
}

.section--sm  { padding-block: clamp(3rem, 5vw, 5rem); }
.section--lg  { padding-block: clamp(6rem, 12vw, 12rem); }
.section--xl  { padding-block: clamp(8rem, 16vw, 16rem); }

.section--cream    { background-color: var(--cream); }
.section--cream-dk { background-color: var(--cream-dark); }
.section--blue     { background-color: var(--blue); color: var(--text-on-dark); }
.section--blue-dk  { background-color: var(--blue-dark); color: var(--text-on-dark); }
.section--blue-dp  { background-color: var(--blue-deeper); color: var(--text-on-dark); }
.section--black    { background-color: var(--black); color: var(--text-on-dark); }
.section--gradient { background: var(--brand-gradient, linear-gradient(135deg, #64748b 0%, #334155 100%)); color: var(--text-on-dark); }

/* ── Grid Systems ────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto-sm  { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--auto-md  { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid--auto-lg  { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

.grid--split    { grid-template-columns: 1fr 1fr; align-items: center; }
.grid--split-lg { grid-template-columns: 1fr 1.4fr; align-items: center; }
.grid--split-xl { grid-template-columns: 1fr 2fr; align-items: center; }

/* Inversione colonne (es. blocco Story con immagine a destra). Story.astro applica .grid--reverse
   ma la classe non esisteva → su live l'inversione non avveniva. Scopata al layout 2-col (≥769px):
   su mobile (1-col) NON invertiamo, così l'immagine resta SOPRA il testo. */
@media (min-width: 769px) {
  .grid--reverse > :first-child { order: 2; }
  .grid--reverse > :last-child  { order: 1; }
}

.grid--gap-sm  { gap: var(--space-4); }
.grid--gap-lg  { gap: var(--space-10); }
.grid--gap-xl  { gap: var(--space-16); }

/* ── Flex Utilities ──────────────────────────────────────────── */

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.gap-2        { gap: var(--space-2); }
.gap-3        { gap: var(--space-3); }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.gap-8        { gap: var(--space-8); }

/* ── Aspect Ratios ───────────────────────────────────────────── */

.aspect-square    { aspect-ratio: 1 / 1; }
.aspect-portrait  { aspect-ratio: 3 / 4; }
.aspect-landscape { aspect-ratio: 4 / 3; }
.aspect-wide      { aspect-ratio: 16 / 9; }
.aspect-cinema    { aspect-ratio: 21 / 9; }
.aspect-hero      { aspect-ratio: 16 / 7; }

/* ── Visibility ──────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Overflow / Clip ─────────────────────────────────────────── */

.overflow-hidden { overflow: hidden; }
.overflow-clip   { overflow: clip; }

/* ── Responsive Grid Breakdowns ──────────────────────────────── */

@media (max-width: 1024px) {
  .grid--4      { grid-template-columns: repeat(2, 1fr); }
  .grid--3      { grid-template-columns: repeat(2, 1fr); }
  .grid--split-xl { grid-template-columns: 1fr 1.5fr; }
}

/* 2-col grid that collapses to 1 col on mobile */
.grid--2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* CTA row — same row on desktop, stacked on mobile */
.cta-row {
  display: flex;
  gap: var(--space-4);
}

@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: flex-start; }
}

/* Flex wrap — useful for tag clouds / pill lists */
.flex-wrap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Sticky sidebar — disabled on mobile */
.sticky-sidebar {
  position: sticky;
  top: 6rem;
}

@media (max-width: 768px) {
  .sticky-sidebar { position: relative; top: 0; }
}

@media (max-width: 768px) {
  .grid--4,
  .grid--3,
  .grid--2,
  .grid--split,
  .grid--split-lg,
  .grid--split-xl,
  .grid--2-col { grid-template-columns: 1fr; }

  .grid--gap-xl { gap: var(--space-8); }
}
/* ═══════════════════════════════════════════════════════════════
   COMPONENTS — Buttons, Cards, Nav, Tags, Inputs
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--duration-base) var(--ease-default);
}

.btn:hover::after {
  background: rgba(255,255,255,0.08);
}

/* ── Primary (Gold on Blue) ──────────────────────────────────── */

.btn--primary {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn--primary:active { transform: translateY(0); }

/* ── Secondary (Blue) ────────────────────────────────────────── */

.btn--secondary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--secondary:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

/* ── Outline on Dark ─────────────────────────────────────────── */

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ── Outline Blue ────────────────────────────────────────────── */

.btn--outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

/* ── Ghost ───────────────────────────────────────────────────── */

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding-inline: 0;
}

.btn--ghost:hover {
  color: var(--blue);
}

.btn--ghost::after { display: none; }

/* ── Sizes ───────────────────────────────────────────────────── */

.btn--sm  { padding: var(--space-3) var(--space-6); font-size: var(--text-xs); }
.btn--lg  { padding: var(--space-5) var(--space-10); font-size: var(--text-base); }
.btn--xl  { padding: var(--space-6) var(--space-12); font-size: var(--text-md); }

/* ── Arrow button ────────────────────────────────────────────── */

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--blue);
  transition: gap var(--transition-base);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--transition-base);
}

.btn-arrow:hover::after { transform: translateX(4px); }

.btn-arrow--gold { color: var(--gold); }
.btn-arrow--white { color: var(--white); }

/* ══════════════════════════════════════════════
   TAGS / BADGES
══════════════════════════════════════════════ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.tag--blue     { background: var(--blue-ghost); color: var(--blue); }
.tag--gold     { background: var(--gold-pale);  color: var(--gold-deep); }
.tag--new      { background: var(--color-new);  color: var(--white); }
.tag--premium  { background: var(--blue);        color: var(--gold); }
.tag--outline  { background: transparent; border: 1px solid var(--color-border); color: var(--text-muted); }
.tag--variant  { background: var(--blue-ghost); color: var(--blue); }

/* ══════════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════════ */

.product-card {
  position: relative;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-luxury);
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-ghost) 0%, var(--cream-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.product-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: var(--space-4);
}

.product-card__ingredient {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--blue);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin-top: auto;
}

.product-card__ingredient-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Featured Card (larger) ──────────────────────────────────── */

.product-card--featured .product-card__image-wrap {
  aspect-ratio: 3/2;
}

.product-card--featured .product-card__name {
  font-size: var(--text-lg);
}

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transition: all var(--transition-slow);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-inline: var(--section-pad-x);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Transparent on hero */
.site-nav--transparent {
  background: transparent;
}

/* SVG paths (future-proof when SVG logo provided) */
.site-nav--transparent .nav-logo path,
.site-nav--transparent .nav-logo rect { fill: var(--white); }

/* PNG logo: invert to white on dark hero background */
.site-nav--transparent .nav-logo__img {
  filter: brightness(0) invert(1);
}

.site-nav--transparent .nav-link { color: rgba(255,255,255,0.88); }

/* Scrolled */
.site-nav--scrolled {
  background: var(--page-bg);
  background: color-mix(in srgb, var(--page-bg) 94%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(31,53,121,0.08), 0 4px 24px rgba(0,0,0,0.06);
}

.site-nav--scrolled .nav-logo path,
.site-nav--scrolled .nav-logo rect { fill: var(--blue); }

/* PNG logo: restore normal color when scrolled (white background) */
.site-nav--scrolled .nav-logo__img {
  filter: none;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo__name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--blue);
  transition: color var(--transition-base);
}

.nav-logo__sub {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.site-nav--transparent .nav-logo__name { color: var(--white); }
.site-nav--transparent .nav-logo__sub  { color: rgba(255,255,255,0.6); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--blue);
  background: var(--blue-ghost);
}

.nav-link--active {
  color: var(--blue);
  font-weight: var(--weight-semibold);
}

.site-nav--transparent .nav-link--active {
  color: var(--white);
}

.site-nav--scrolled .nav-link { color: var(--text-primary); }
.site-nav--scrolled .nav-link:hover { color: var(--blue); }
.site-nav--scrolled .nav-link--active { color: var(--blue); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.lang-switch__item {
  color: var(--text-muted);
  transition: color var(--transition-base);
  padding: var(--space-1) var(--space-2);
}

.lang-switch__item:hover { color: var(--blue); }
.lang-switch__item--active { color: var(--blue); font-weight: var(--weight-bold); }

.lang-switch__sep {
  color: var(--color-border);
  font-weight: var(--weight-light);
}

.site-nav--transparent .lang-switch__item { color: rgba(255,255,255,0.6); }
.site-nav--transparent .lang-switch__item:hover { color: var(--gold); }
.site-nav--transparent .lang-switch__item--active { color: var(--gold); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-toggle__bar {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > .nav-link svg {
  transition: transform var(--transition-base);
}

.has-dropdown:hover > .nav-link svg,
.has-dropdown:focus-within > .nav-link svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3);
  padding-top: calc(var(--space-3) + 8px);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-out);
  border: 1px solid var(--color-border);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.dropdown-link:hover {
  background: var(--blue-ghost);
  color: var(--blue);
}

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 19, 48, 0.88) 0%,
    rgba(15, 30, 74, 0.75) 40%,
    rgba(15, 30, 74, 0.55) 100%
  );
}

.hero__bg-color {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--blue-deeper) 0%,
    var(--blue-dark) 50%,
    var(--blue) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
  padding-block: 10rem 6rem;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  color: var(--white);
  letter-spacing: var(--tracking-tight);
  line-height: 0.95;
  margin-bottom: var(--space-8);
  max-width: 16ch;
}

.hero__title span {
  color: var(--gold);
  display: block;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: var(--weight-light);
  font-style: italic;
  color: rgba(255,255,255,0.78);
  max-width: 50ch;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-12);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════ */

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-4);
}

.section-header--center .section-header__eyebrow {
  display: flex;
  justify-content: center;
}

.section-header__eyebrow-line {
  width: 24px;
  height: 1.5px;
  background: var(--gold);
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.section-header--center .section-header__title {
  margin-inline: auto;
}

.section-header__title--on-dark {
  color: var(--white);
}

.section-header__subtitle {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 56ch;
}

.section-header--center .section-header__subtitle {
  margin-inline: auto;
}

.section-header__subtitle--on-dark {
  color: rgba(255,255,255,0.7);
}

/* ══════════════════════════════════════════════
   INGREDIENT CARD
══════════════════════════════════════════════ */

.ingredient-card {
  padding: var(--space-8);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.ingredient-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,210,64,0.3);
  transform: translateY(-4px);
}

.ingredient-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  display: block;
  color: var(--gold);
}

.ingredient-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.ingredient-card__origin {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}

.ingredient-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255,255,255,0.65);
}

/* ══════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════ */

.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: var(--space-6) 0;
}

.divider--center { margin-inline: auto; }
.divider--lg     { width: 100px; }
.divider--short  { width: 32px; }
.divider--blue   { background: var(--blue); }
.divider--white  { background: rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════
   STAT / NUMBER
══════════════════════════════════════════════ */

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--weight-black);
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-tight);
}

.stat__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ══════════════════════════════════════════════
   QUOTE BLOCK
══════════════════════════════════════════════ */

.quote-block {
  position: relative;
  padding: var(--space-10) var(--space-12);
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -0.2em;
  left: var(--space-6);
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
  pointer-events: none;
}

.quote-block__text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: var(--weight-light);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--white);
  position: relative;
  z-index: 1;
}

.quote-block__author {
  margin-top: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */

.site-footer {
  background: var(--blue-deeper);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-24);
  padding-bottom: var(--space-10);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-10);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--white);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}

.footer__brand-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
}

.footer__brand-text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255,255,255,0.55);
  max-width: 32ch;
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--blue-dark);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-base);
}

.footer__col-link:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-base);
}

.footer__legal-link:hover { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* Hide the nav CTA button between tablet and desktop to avoid crowding */
  .nav-actions .btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-nav__inner { height: 68px; }

  .nav-links { display: none; }

  .nav-toggle { display: flex; }

  .nav-links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--blue-deeper);
    padding: var(--space-8);
    gap: var(--space-2);
    overflow-y: auto;
  }

  .nav-links--open .nav-link {
    color: var(--white);
    font-size: var(--text-md);
    padding: var(--space-4) var(--space-4);
  }

  .nav-links--open .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--gold);
  }

  .nav-links--open .nav-link--active {
    color: var(--gold);
    font-weight: var(--weight-semibold);
  }

  /* On mobile hide the desktop dropdown — the Prodotti link navigates directly */
  .nav-links--open .dropdown-menu {
    display: none;
  }

  /* Hide the dropdown chevron on mobile since there's no submenu */
  .nav-links--open .has-dropdown > .nav-link svg {
    display: none;
  }

  .hero__content { padding-block: 8rem 4rem; }

  .hero__title { max-width: 100%; }

  .footer__top { grid-template-columns: 1fr 1fr; }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn--xl { padding: var(--space-5) var(--space-8); }
  .footer__top { grid-template-columns: 1fr; }
}

/* ── Blog featured article layout ── */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--cream-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.blog-featured__image-wrap {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-featured__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-featured:hover .blog-featured__image-wrap img {
  transform: scale(1.03);
}

.blog-featured__body {
  padding: var(--space-10);
}

@media (max-width: 768px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured__body {
    padding: var(--space-8);
  }
}

/* ── Monferrato split section (text left, image bleeding to right edge) ── */
.section--monferrato {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--blue-deeper);
  overflow: hidden;
}

.section--monferrato__text {
  padding: var(--space-20) var(--space-16) var(--space-20) max(var(--space-16), calc((100vw - var(--container-max)) / 2 + var(--space-16)));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section--monferrato__image {
  overflow: hidden;
  aspect-ratio: auto;
}

.section--monferrato__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .section--monferrato {
    grid-template-columns: 1fr;
  }
  .section--monferrato__text {
    padding: var(--space-16) var(--space-8);
    order: 2;
  }
  .section--monferrato__image {
    order: 1;
    aspect-ratio: 16/9;
    width: 100%;
  }
}
/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS — Scroll-triggered, hover, page transitions
   ═══════════════════════════════════════════════════════════════ */

/* ── Scroll-triggered Reveal ─────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transition: opacity var(--duration-slower) var(--ease-luxury),
              transform var(--duration-slower) var(--ease-luxury);
}

[data-reveal="fade"] {
  opacity: 0;
}

[data-reveal="up"] {
  opacity: 0;
  transform: translateY(40px);
}

[data-reveal="down"] {
  opacity: 0;
  transform: translateY(-30px);
}

[data-reveal="left"] {
  opacity: 0;
  transform: translateX(-40px);
}

[data-reveal="right"] {
  opacity: 0;
  transform: translateX(40px);
}

[data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Stagger delays ───────────────────────────────────────────── */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* ── Stagger children ─────────────────────────────────────────── */

[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slower) var(--ease-luxury),
              transform var(--duration-slower) var(--ease-luxury);
}

[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: 480ms; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: 560ms; }

[data-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Gold line reveal ─────────────────────────────────────────── */

.line-reveal {
  position: relative;
  overflow: hidden;
}

.line-reveal::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 600ms var(--ease-luxury);
}

.line-reveal.is-visible::after,
.line-reveal:hover::after {
  width: 100%;
}

/* ── Parallax hint ────────────────────────────────────────────── */

.parallax-slow  { will-change: transform; }
.parallax-fast  { will-change: transform; }

/* ── Image zoom on hover ─────────────────────────────────────── */

.zoom-wrap {
  overflow: hidden;
  /* Riserva lo spazio della colonna immagine anche se l'immagine manca o fallisce il load:
     l'aspect-ratio da solo non stabilisce un'altezza senza dimensioni intrinseche → la colonna
     collassava rompendo il layout 2-col. min-height + placeholder neutro evitano il collasso. */
  min-height: 320px;
  background-color: var(--cream-dark, #f3f4f6);
}

.zoom-wrap img,
.zoom-wrap .zoom-target {
  transition: transform 700ms var(--ease-luxury);
}

.zoom-wrap:hover img,
.zoom-wrap:hover .zoom-target {
  transform: scale(1.05);
}

/* ── Number counter ──────────────────────────────────────────── */

[data-counter] {
  display: inline-block;
}

/* ── Gold shimmer ────────────────────────────────────────────── */

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--gold-deep) 0%,
    var(--gold) 30%,
    var(--gold-light) 50%,
    var(--gold) 70%,
    var(--gold-deep) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* ── Pulse dot (NEW badge) ────────────────────────────────────── */

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-new);
  animation: pulseDot 2s ease-in-out infinite;
}

/* ── Smooth underline hover ──────────────────────────────────── */

.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width var(--duration-base) var(--ease-luxury);
}

.hover-underline:hover::after { width: 100%; }

/* ── Page entrance ────────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* body-level fade: opacity only — NO transform, altrimenti body diventa
   containing block dei position:fixed (es. chat widget) post-animazione */
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.page-enter {
  animation: pageEnter 0.6s var(--ease-luxury) both;
}

/* I blocchi usano [data-reveal]{opacity:0} rivelato da JS di scroll. In assenza di quel
   JS i blocchi resterebbero invisibili → default visibile (reveal = progressive enhancement). */
[data-reveal]{opacity:1;transform:none;}

/* ═══════════════════════════════════════════════════════════════
   TEMA «BOTTEGA» — skin scoped, attivo solo con <html data-theme='bottega'>
   Linguaggio: editoriale/artigianale FLAT. Struttura lineare e netta
   (filetti sottili color accento, angoli quasi vivi, nessun gradiente,
   nessuna ombra decorativa) bilanciata da UN gesto organico: l'ornamento
   a spirale (mask, colorabile via token). Token-driven: usa solo le CSS
   var del sito (--blue/--gold/--cream/--font-*) → nessun colore di brand
   fisso, ogni sito ottiene il tema nei PROPRI colori.
   ═══════════════════════════════════════════════════════════════ */

/* ── Var di tema (html[data-theme] così vince su :root di design-tokens.css) ── */
html[data-theme='bottega'] {
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 6px;
  --radius-full: 2px;                 /* bottoni squadrati, non pill */
  --shadow-gold: none;                /* flat: niente glow */
  /* Qualsiasi superficie che consuma --brand-gradient diventa un campo PIATTO
     (background: shorthand accetta un colore) — il tema rifiuta i gradienti. */
  --brand-gradient: var(--blue-dark);
  /* Ornamento a spirale (alpha mask): il colore lo dà chi lo usa via background. */
  --bottega-spiral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6c9.9 0 18 8.1 18 18s-7.2 16-16 16c-7.7 0-14-6.3-14-14 0-6.6 5.4-12 12-12 5.5 0 10 4.5 10 10 0 4.4-3.6 8-8 8-3.3 0-6-2.7-6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --title-font: var(--font-display);   /* titoli di blocco in display serif, ovunque (sito+canvas) */
  --bottega-hairline: color-mix(in srgb, var(--gold-dark) 55%, transparent);
  --bottega-border: color-mix(in srgb, var(--blue) 14%, transparent);
}

/* ── Fondi sempre piatti ── */
[data-theme='bottega'] .section--gradient { background: var(--blue-dark); }

/* ── Tipografia display: serif leggero, tracking calmo ──
   (i componenti portano weight inline → serve !important: è lo scopo di una skin) */
[data-theme='bottega'] h1,
[data-theme='bottega'] h2,
[data-theme='bottega'] .section-header__title {
  font-family: var(--font-display) !important;   /* voce display del sito (serif nel preset) */
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}
[data-theme='bottega'] .section-header__title { line-height: 1.08; }

/* ── Eyebrow/label: voce UI sans spaziata + trattino-filetto ──
   ('Jost' è la voce UI spedita dal preset via fontGoogleUrl; fallback = font body) */
[data-theme='bottega'] .label,
[data-theme='bottega'] .section-header__eyebrow {
  font-family: 'Jost', var(--font-body);
  font-weight: 500;
  letter-spacing: 0.28em;
}
[data-theme='bottega'] .label::before {
  content: '';
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--bottega-hairline);
  vertical-align: middle;
  margin-right: 0.9rem;
}
[data-theme='bottega'] .section-header__eyebrow-line { background: var(--bottega-hairline); height: 1px; }

/* ── Divider → filetto minimale color accento ── */
[data-theme='bottega'] .divider {
  width: 56px;
  height: 1px;
  border: 0;
  background: var(--bottega-hairline);
}

/* ── Bottoni: lineari, squadrati, bordo 1px ── */
[data-theme='bottega'] .btn {
  border-radius: 2px;
  border-width: 1px;
  font-family: 'Jost', var(--font-body);
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 0.95rem 1.9rem;
}
[data-theme='bottega'] .btn:hover { transform: none; box-shadow: none; }
[data-theme='bottega'] .btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
[data-theme='bottega'] .btn--outline-light { border-color: color-mix(in srgb, currentColor 45%, transparent); }

/* ── Citazione: display italico + spirale come firma ── */
[data-theme='bottega'] .quote-block::before {
  content: '';
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto var(--space-6);
  background: var(--gold-dark);
  -webkit-mask: var(--bottega-spiral) center / contain no-repeat;
  mask: var(--bottega-spiral) center / contain no-repeat;
}
[data-theme='bottega'] .quote-block__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400 !important;
}
[data-theme='bottega'] .quote-block__author {
  font-family: 'Jost', var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--text-xs);
}

/* ── Barra statistiche: separatori verticali hairline ── */
[data-theme='bottega'] .fox-statsbar-grid > div { position: relative; text-align: center; }
@media (min-width: 768px) {
  [data-theme='bottega'] .fox-statsbar-grid > div + div::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16%;
    height: 68%;
    width: 1px;
    background: currentColor;
    opacity: 0.16;
  }
}

/* ── Card (ingredienti & simili): hairline, flat, hover misurato ──
   D-15: la card diventa superficie CHIARA → i testi (bianchi nella base
   pensata per sezioni scure) vanno RI-ACCOPPIATI qui, sempre. ── */
[data-theme='bottega'] .ingredient-card {
  background: var(--white, #fff);
  border: 1px solid var(--bottega-border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  color: var(--text-primary);
}
[data-theme='bottega'] .ingredient-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: none;
  background: var(--white, #fff);
}
[data-theme='bottega'] .ingredient-card__name   { color: var(--blue); font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
[data-theme='bottega'] .ingredient-card__origin { color: var(--text-muted); }
[data-theme='bottega'] .ingredient-card__desc   { color: var(--text-secondary); }
[data-theme='bottega'] .ingredient-card__icon   { color: var(--gold-dark); }

/* ── Banda CTA: campo piatto racchiuso da filetti ── */
[data-theme='bottega'] .fox-block-cta { border-block: 1px solid var(--bottega-hairline); }

/* ── Story/immagini editoriali: cornice lineare a filetto, offset ── */
[data-theme='bottega'] .zoom-wrap {
  border-radius: var(--radius-lg);
  outline: 1px solid var(--bottega-hairline);
  outline-offset: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   BOTTEGA v2 — TRASFORMAZIONI STRUTTURALI (stessi blocchi CMS,
   composizione radicalmente diversa). Il gesto ricorrente è l'ARCO
   (curva piena sopra + base netta = il doppio tratto del logo:
   lineare/spirale). Desktop-only dove serve; il mobile mantiene i
   layout verticali collaudati.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. HERO VIDEO: full-bleed su tutte le viewport (il markup del blocco
      resta la fonte di verità: video a tutto schermo, scrim, testo bianco).
      La variante split con finestra ad arco è stata ritirata. ── */

/* ── 2. SEZIONI AUTO-NUMERATE: "01 ── Eyebrow" in corsivo display ── */
[data-theme='bottega'] main { counter-reset: bottega-sec; }
[data-theme='bottega'] .section-header { counter-increment: bottega-sec; }
[data-theme='bottega'] .section-header__eyebrow::before {
  content: counter(bottega-sec, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35em;
  letter-spacing: 0;
  margin-right: 0.85rem;
  color: var(--gold-dark);
  vertical-align: -0.06em;
}

/* ── 3. HEADER DI SEZIONE ASIMMETRICO: titolo a sinistra, sottotitolo
      a destra oltre un filetto verticale (editoriale, non centrato) ── */
@media (min-width: 901px) {
  [data-theme='bottega'] .section-header--center {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
    text-align: left;
    max-width: none;
  }
  [data-theme='bottega'] .section-header--center .text-center { text-align: left !important; }
  [data-theme='bottega'] .section-header--center > .section-header__eyebrow,
  [data-theme='bottega'] .section-header--center > .section-header__title { grid-column: 1; }
  [data-theme='bottega'] .section-header--center > .section-header__title { max-width: 18ch; margin-inline: 0; }
  [data-theme='bottega'] .section-header--center > .section-header__subtitle {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    margin: 0 0 0.35rem;
    padding-left: 1.75rem;
    border-left: 1px solid var(--bottega-hairline);
    text-align: left;
    max-width: 46ch;
  }
}

/* ── 4. CARD PRODOTTO: flat, hairline, immagine ad angolo morbido ── */
[data-theme='bottega'] .product-card {
  background: var(--white, #fff);
  border: 1px solid var(--bottega-border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
}
[data-theme='bottega'] .product-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow: none;
}
[data-theme='bottega'] .product-card__image-wrap {
  margin: 14px 14px 0;
  border-radius: 10px 10px 6px 6px;
  overflow: hidden;
}
[data-theme='bottega'] .tag {
  border-radius: 2px;
  font-family: 'Jost', var(--font-body);
  letter-spacing: 0.12em;
}
[data-theme='bottega'] .product-card__name { font-family: var(--font-display); font-weight: 500; }

/* ── 5. STORY: immagine ad angolo morbido con cornice, niente ombrone ── */
@media (min-width: 901px) {
  [data-theme='bottega'] .grid--split-lg .zoom-wrap {
    border-radius: var(--radius-xl, 24px) !important;
    box-shadow: none !important;
  }
}

/* ── 6. Due Linee / bande: angoli composti, filetti sulle bande scure ── */
[data-theme='bottega'] .fox-twocards-grid > div { border-radius: var(--radius-lg) !important; }
[data-theme='bottega'] .section--blue-dp { border-block: 1px solid var(--bottega-hairline); }
