/* =========================================================
   Risotteria Melotti — Voucher Shop Prototype
   Design system: Editorial Italian elegance
   ========================================================= */

:root {
  /* Palette — ispirata al logo e al mondo visivo Melotti
     (olivo/salvia del logo, cromatismi classici della tavola veneta) */
  --cream: #FAF7F0;          /* sfondo principale: bianco-sporco molto tenue */
  --cream-light: #FFFFFF;     /* superfici e pannelli */
  --cream-dark: #EFE9DA;      /* hover/borders soft */
  --olive: #5E7238;           /* colore primario del logo — verde salvia/olivo */
  --olive-deep: #3F4F24;      /* variante scura per testo e focus */
  --olive-soft: #839657;      /* variante chiara per accenti tonali */
  --olive-ink: #2C3A17;       /* display titles molto contrastati */
  --amarone: #7A2E28;         /* rosso Amarone, da usare con parsimonia */
  --amarone-soft: #A04A42;    /* variante per piccole enfasi */
  --gold: #A08447;            /* oro caldo, per richiami discreti */
  --gold-soft: #C9A96A;
  --ink: #1A1612;
  --ink-soft: #4A4339;
  --rule: rgba(26, 22, 18, 0.12);
  --rule-strong: rgba(26, 22, 18, 0.3);

  /* Alias retrocompatibilità — qualunque rule che ancora usa forest/burgundy
     continua a funzionare senza dover riscrivere tutto */
  --forest: var(--olive);
  --forest-soft: var(--olive-soft);
  --forest-ink: var(--olive-ink);
  --burgundy: var(--amarone);
  --burgundy-soft: var(--amarone-soft);

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Instrument Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Scale */
  --step-6: clamp(3rem, 8vw, 6rem);
  --step-5: clamp(2.25rem, 6vw, 4.25rem);
  --step-4: clamp(1.75rem, 4vw, 2.75rem);
  --step-3: clamp(1.25rem, 2.5vw, 1.625rem);
  --step-2: 1.125rem;
  --step-1: 1rem;
  --step-0: 0.875rem;
  --step--1: 0.75rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Base */
body {
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
  /* Sottilissimo gradiente per dare respiro alle sezioni senza pattern */
  background-image:
    radial-gradient(ellipse at top left, rgba(94, 114, 56, 0.035) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(160, 132, 71, 0.03) 0%, transparent 60%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.06  0 0 0 0.06 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

.wrap {
  position: relative;
  z-index: 2;
}

/* Typography */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--forest-ink);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.35;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 72;
}

.mono { font-family: var(--font-mono); font-size: 0.95em; letter-spacing: -0.02em; }

/* Layout */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container--narrow { max-width: 780px; }
.container--wide   { max-width: 1320px; }

/* Header */
.site-header {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
  color: var(--olive-ink);
  min-width: 0;
}

.brand__logo {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .brand__logo { height: 38px; }
}

.brand__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--rule);
  min-width: 0;
}

.brand__sub {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-deep);
  font-weight: 500;
}

.brand__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step--1);
  color: var(--ink-soft);
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .brand__tag { display: none; }
  .brand__meta { padding-left: 0.65rem; }
}

.site-header__nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--step-0);
  color: var(--ink-soft);
}

.site-header__nav a { transition: color 0.2s; }
.site-header__nav a:hover { color: var(--olive-deep); }

/* Menu collassabile (link extra di pagina + back-office staff).
   Desktop: il wrapper è trasparente (display:contents) → i link restano
   inline come flex item diretti della nav. Mobile (<=720px): i link si
   raccolgono in un dropdown aperto dall'hamburger. */
.site-header__menu { display: contents; }

.nav-burger {
  display: none;            /* visibile solo su mobile, vedi @media */
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--cream-light);
  color: var(--ink);
  cursor: pointer;
}
.nav-burger svg { display: block; }
.nav-burger:hover { border-color: var(--olive); color: var(--olive-deep); }

@media (max-width: 720px) {
  /* L'hamburger compare solo se ci sono davvero link da raccogliere
     (sulle pagine customer senza link extra il wrapper è vuoto). */
  .site-header__nav:has(.site-header__menu > *) .nav-burger {
    display: inline-flex;
  }

  .site-header__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem;
    background: var(--cream-light);
    border: 1px solid var(--rule-strong);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(26, 22, 18, 0.14);
    z-index: 60;
  }
  .site-header__menu.is-open { display: flex; }

  .site-header__menu > a {
    display: block;
    padding: 0.6rem 0.7rem;
    border-radius: 6px;
  }
  .site-header__menu > a:hover { background: rgba(94, 114, 56, 0.08); }

  /* Username + form "Esci": neutralizziamo gli style inline dei template
     staff (display:inline; margin-left) per impilarli nel dropdown. */
  .site-header__menu > .text-muted {
    display: block;
    padding: 0.5rem 0.7rem 0.2rem;
    margin-top: 0.2rem;
    border-top: 1px solid var(--rule);
  }
  .site-header__menu > form {
    display: block !important;
    margin: 0 !important;
  }
  .site-header__menu > form button { width: 100%; }
}

/* Gluten-free pill (identity marker from risotteriamelotti.it) */
.gf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--olive);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-deep);
  background: rgba(94, 114, 56, 0.06);
  white-space: nowrap;
}

.gf-pill::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--olive);
}

@media (max-width: 900px) {
  .gf-pill { display: none; }
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--cream-light);
}

.lang-switch__btn {
  padding: 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: 0;
  line-height: 1;
}

.lang-switch__btn--active {
  background: var(--olive-deep);
  color: var(--cream-light);
}

.lang-switch__btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lang-switch__btn--disabled:hover { background: transparent; color: var(--ink-soft); }

/* Hero (landing) */
.hero {
  padding: clamp(3rem, 10vw, 7rem) 0 clamp(2rem, 6vw, 4rem);
  position: relative;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--olive-deep);
}

.hero__title {
  font-size: var(--step-6);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero__title em {
  font-style: italic;
  color: var(--olive-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero__lead {
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

/* Numerals — decorative */
.big-numeral {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

/* Section head */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: var(--step-4);
}

.section-head__meta {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Denomination cards */
.denominations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 960px) {
  .denominations { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .denominations { grid-template-columns: 1fr; }
}

.denom {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--cream-light);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  display: block;
  text-align: center;
}

.denom:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.denom__input { position: absolute; opacity: 0; pointer-events: none; }

.denom__input:checked + .denom__body {
  color: var(--cream-light);
}

.denom:has(.denom__input:checked) {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream-light);
}

.denom:has(.denom__input:checked) .denom__label {
  color: var(--cream-light);
  opacity: 0.85;
}

.denom__amount {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(3.5rem, 7vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--olive-ink);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15em;
  margin-bottom: 0.5rem;
}

.denom:has(.denom__input:checked) .denom__amount { color: var(--cream-light); }

.denom__amount sup {
  font-size: 0.3em;
  margin-top: 0.5em;
  font-weight: 400;
}

.denom__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Qty picker */
.qty-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.qty-block__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  color: var(--forest-ink);
}

.qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--cream-light);
}

.qty button {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background 0.15s;
}

.qty button:hover { background: var(--cream-dark); }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }

.qty__value {
  min-width: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--step-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1;
}

.btn--primary {
  background: var(--forest);
  color: var(--cream-light);
  border-color: var(--forest);
}

.btn--primary:hover {
  background: var(--forest-ink);
  border-color: var(--forest-ink);
}

.btn--primary:disabled {
  background: var(--rule-strong);
  border-color: var(--rule-strong);
  color: var(--cream-light);
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

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

.btn--large {
  padding: 1.25rem 2.25rem;
  font-size: var(--step-1);
}

.btn--full { width: 100%; }

.btn__arrow {
  transition: transform 0.2s;
}

.btn:hover .btn__arrow { transform: translateX(3px); }

/* Subtotal bar */
.subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--rule-strong);
}

.subtotal__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--ink-soft);
}

.subtotal__value {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-variation-settings: "opsz" 144;
  color: var(--forest-ink);
}

/* Steps indicator */
.steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.steps__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.steps__num {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.steps__item--active .steps__num {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: var(--cream-light);
}

.steps__item--active { color: var(--olive-deep); }

.steps__item--done .steps__num {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream-light);
}

.steps__sep {
  width: 24px;
  height: 1px;
  background: var(--rule-strong);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}

.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: var(--step-0);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.field label .req { color: var(--amarone); }

.field input,
.field textarea,
.field select {
  padding: 0.85rem 1rem;
  background: var(--cream-light);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: var(--step-1);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--cream-light);
}

.field textarea { min-height: 110px; resize: vertical; font-family: var(--font-body); }

.field__hint {
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-style: italic;
}

/* Fieldset blocks */
.panel {
  padding: 2rem;
  background: var(--cream-light);
  border: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.panel__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  color: var(--forest-ink);
}

/* Gift toggle */
.gift-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--cream-light);
  border: 1px solid var(--rule);
  margin-bottom: 2rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.gift-toggle:hover { border-color: var(--rule-strong); }

.gift-toggle__text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--step-2);
  color: var(--forest-ink);
  display: block;
  margin-bottom: 0.2rem;
}

.gift-toggle__text span {
  color: var(--ink-soft);
  font-size: var(--step-0);
}

.switch {
  position: relative;
  width: 52px; height: 28px;
  background: var(--cream-dark);
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  flex-shrink: 0;
  transition: background 0.2s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cream-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s;
}

.switch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch__input:checked + .switch {
  background: var(--forest);
  border-color: var(--forest);
}

.switch__input:checked + .switch::after {
  transform: translateX(24px);
}

.gift-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.4s ease;
}

.gift-fields.is-open {
  max-height: 800px;
  margin-bottom: 2rem;
}

/* Checkbox */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--step-0);
  color: var(--ink-soft);
  margin-bottom: 1rem;
  cursor: pointer;
  line-height: 1.45;
}

.check input {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--forest);
  flex-shrink: 0;
}

.check a { color: var(--olive-deep); text-decoration: underline; text-underline-offset: 2px; }

/* Order summary sidebar */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 960px) {
  .layout-split { grid-template-columns: 1fr; gap: 2rem; }
  /* Su mobile il riepilogo NON deve essere sticky: restava incollato in
     alto rubando spazio fisso ai campi del form. Lo rendiamo statico e
     più compatto, mantenendolo in cima per dare contesto sull'ordine. */
  .layout-split .summary {
    order: -1;
    position: static;
    top: auto;
    padding: 1.25rem 1.5rem;
  }
}

.summary {
  background: var(--olive-ink);
  color: var(--cream-light);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

/* Anteprima buono regalo (pagina grazie): card nativa che riproduce il
   buono col design system del sito, SENZA QR né codice reale (sono nel
   PDF allegato all'email, per l'uso in sala). Responsive, niente iframe. */
.gift-voucher {
  max-width: 480px;
  margin: 1.5rem auto;
  padding: 2rem 2rem 1.75rem;
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}
.gift-voucher__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-strong);
}
.gift-voucher__logo {
  height: 40px;
  width: auto;
  max-width: 55%;
  object-fit: contain;
}
.gift-voucher__meta {
  text-align: right;
  font-size: 0.7rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.gift-voucher__meta span {
  display: block;
  color: var(--burgundy);
}
.gift-voucher__meta strong {
  color: var(--olive-ink);
  font-weight: 600;
}
.gift-voucher__eyebrow {
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--burgundy);
}
.gift-voucher__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.1;
  color: var(--olive-ink);
  margin: 0.4rem 0 0;
}
.gift-voucher__title em {
  font-style: italic;
  color: var(--burgundy);
}
.gift-voucher__amount {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.25rem, 12vw, 4.5rem);
  line-height: 1;
  color: var(--olive-ink);
  margin: 1rem 0 1.5rem;
}
.gift-voucher__amount sup {
  font-size: 0.3em;
  vertical-align: super;
  margin-right: 0.12em;
  color: var(--gold);
}
.gift-voucher__rows {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.gift-voucher__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
}
.gift-voucher__rows dt {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--burgundy);
  align-self: center;
}
.gift-voucher__rows dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
}
.gift-voucher__dedica {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  background: rgba(160, 132, 71, 0.08);
  border-top: 1px solid rgba(160, 132, 71, 0.35);
  border-bottom: 1px solid rgba(160, 132, 71, 0.35);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--olive-ink);
  text-align: center;
  line-height: 1.5;
}
.gift-voucher__dedica cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--burgundy);
}
.gift-voucher__how {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dotted var(--rule-strong);
}
.gift-voucher__how h4 {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--burgundy);
}
.gift-voucher__how p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(244, 237, 224, 0.15);
  margin-bottom: 1.5rem;
}

.summary__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  color: var(--cream-light);
}

.summary__meta {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.summary__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  font-size: var(--step-0);
  color: rgba(244, 237, 224, 0.8);
}

.summary__line strong {
  color: var(--cream-light);
  font-weight: 500;
}

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.25rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(244, 237, 224, 0.15);
}

.summary__total dt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--gold-soft);
}

.summary__total dd {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-variation-settings: "opsz" 144;
  color: var(--cream-light);
  letter-spacing: -0.02em;
}

.summary__note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 237, 224, 0.15);
  font-size: var(--step--1);
  color: rgba(244, 237, 224, 0.65);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: 6rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step-0);
  color: var(--ink-soft);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.site-footer__legal {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: var(--step--1);
  flex-wrap: wrap;
}

/* Social icons */
.socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.socials__label {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--olive-deep);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-link:hover {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: var(--cream-light);
  transform: translateY(-1px);
}

.social-link svg { width: 16px; height: 16px; }

.site-footer__legal .socials {
  margin-top: 0;
}

/* Stripe-like payment page */
.stripe-shell {
  background: #F6F9FC;
  min-height: 100vh;
  padding: 0;
}

.stripe-shell::before { display: none; }

.stripe-wrap {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 820px) {
  .stripe-wrap { grid-template-columns: 1fr; }
}

.stripe-left {
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(155deg, #6772E5 0%, #3A3C8C 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stripe-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.stripe-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  color: white;
}

.stripe-logo {
  height: 42px;
  width: auto;
  display: block;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.stripe-merchant {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.stripe-merchant__sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
  display: block;
  margin-top: 0.25rem;
}

.stripe-amount {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.stripe-line-items {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  position: relative;
}

.stripe-line {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  opacity: 0.85;
}

.stripe-right {
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  background: white;
  display: flex;
  flex-direction: column;
}

.stripe-right h2 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #3C4257;
  margin-bottom: 1.5rem;
  letter-spacing: 0;
}

.stripe-field {
  margin-bottom: 0.85rem;
}

.stripe-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #3C4257;
  margin-bottom: 0.35rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.stripe-field input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid #E0E6ED;
  border-radius: 6px;
  font-size: 0.9375rem;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1A1F36;
}

.stripe-field input:focus {
  outline: none;
  border-color: #635BFF;
  box-shadow: 0 0 0 1px #635BFF, 0 0 0 4px rgba(99, 91, 255, 0.15);
}

.stripe-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stripe-pay-btn {
  width: 100%;
  padding: 0.875rem;
  background: #635BFF;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 0;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.stripe-pay-btn:hover:not(:disabled) { background: #5a52e0; }
.stripe-pay-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.stripe-fake-notice {
  margin-top: 2rem;
  padding: 0.75rem 1rem;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #704500;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.stripe-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid #F0F4F8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #8792A2;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Success page */
.success-wrap {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.success-mark {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream-light);
  display: grid; place-items: center;
  margin-bottom: 2rem;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: var(--step-5);
  margin-bottom: 1rem;
  max-width: 20ch;
}

.success-title em { font-style: italic; color: var(--olive-deep); }

.order-card {
  padding: 2rem;
  background: var(--cream-light);
  border: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.order-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.order-card__num {
  font-family: var(--font-mono);
  font-size: var(--step-2);
  color: var(--forest-ink);
  letter-spacing: 0.04em;
}

.order-card__date {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.order-card__row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: var(--step-0);
  color: var(--ink-soft);
}

.order-card__row strong { color: var(--ink); font-weight: 500; }

/* Voucher preview */
.voucher-preview-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.voucher-preview {
  max-width: 520px;
  margin: 2rem auto;
  padding: 2.75rem 2.5rem 2.25rem;
  background: var(--cream-light);
  border: 1px solid var(--forest);
  position: relative;
  box-shadow: 0 20px 60px -20px rgba(31, 58, 31, 0.25);
  overflow: hidden;
}

.voucher-preview::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rule-strong);
  pointer-events: none;
}

.voucher-preview__eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--olive-deep);
  margin-bottom: 1rem;
}

.voucher-preview__brand {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-style: italic;
  text-align: center;
  color: var(--olive-ink);
  margin-bottom: 0.25rem;
}

.voucher-preview__sub {
  text-align: center;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.voucher-preview__rule {
  width: 40%;
  height: 1px;
  background: var(--rule-strong);
  margin: 0 auto 2rem;
}

.voucher-preview__amount {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 300;
  line-height: 1;
  text-align: center;
  color: var(--amarone);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  margin-bottom: 0.5rem;
}

.voucher-preview__amount sup {
  font-size: 0.35em;
  margin-right: 0.1em;
}

.voucher-preview__label {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.voucher-preview__recipient {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px dashed var(--rule-strong);
  border-bottom: 1px dashed var(--rule-strong);
}

.voucher-preview__recipient-label {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.voucher-preview__recipient-name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-style: italic;
  color: var(--forest-ink);
}

.voucher-preview__code {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--step-2);
  letter-spacing: 0.12em;
  color: var(--forest-ink);
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 1px dashed var(--rule-strong);
  margin-bottom: 1.5rem;
}

.voucher-preview__footer {
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.6;
}

/* Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none !important; }

.text-muted { color: var(--ink-soft); }
.text-accent { color: var(--olive-deep); }
.text-burgundy { color: var(--olive-deep); } /* retrocompat */

.row-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Staggered entrance */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rise { animation: riseIn 0.6s ease-out backwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.45s; }

/* Divider with ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--rule);
}

.ornament__mark {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
}

/* Alert/info */
.info-note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(160, 132, 71, 0.08);
  border-left: 3px solid var(--gold);
  font-size: var(--step-0);
  color: var(--ink-soft);
  margin: 1.5rem 0;
}

.info-note strong { color: var(--forest-ink); }
