/* ============================================================
   OffGridItalia — Editorial Design System
   Reset · Tokens · Typography · Components · Utilities
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- 2. Design Tokens ---------- */
:root {
  /* Palette — editorial warm */
  --ink:        #1a1612;     /* cocoa scuro, testo principale e fondi scuri */
  --ink-soft:   #2a231d;     /* fondi scuri secondari */
  --paper:      #faf6ee;     /* fondo pagina principale, cream chiaro */
  --cream:      #f5f0e6;     /* card e fondi caldi */
  --cream-deep: #ebe2d0;     /* divider su paper */
  --gold:       #c9a961;     /* accento principale (uso su INK / sfondo scuro) */
  --gold-deep:  #7a5f23;     /* accento su PAPER, WCAG AA: 5.6 su #faf6ee */
  --moss:       #4a5a3a;     /* verde terra, accento naturale */
  --terra:      #8b5a3c;     /* terracotta, secondario */
  --rust:       #b85c3c;     /* rosso ruggine, errore */
  --slate:      #5a544c;     /* testo secondario su cream */
  --slate-soft: #6b6258;     /* testo terziario / meta, WCAG AA: 5.61 su #faf6ee */
  --line:       rgba(26, 22, 18, 0.12);
  --line-soft:  rgba(26, 22, 18, 0.07);

  /* Tipografia */
  --serif: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:  ui-monospace, 'SF Mono', 'Menlo', monospace;

  /* Type scale fluid (clamp tra mobile e desktop) */
  --t-display: clamp(2.6rem, 5.5vw + 1rem, 5.2rem);
  --t-h1:      clamp(2.1rem, 3.6vw + 1rem, 3.4rem);
  --t-h2:      clamp(1.65rem, 2vw + 1rem, 2.3rem);
  --t-h3:      clamp(1.2rem, 0.9vw + 1rem, 1.45rem);
  --t-lede:    clamp(1.1rem, 0.6vw + 0.9rem, 1.3rem);
  --t-body:    1.0625rem;
  --t-small:   0.875rem;
  --t-eyebrow: 0.74rem;
  --t-caption: 0.78rem;

  /* Line heights */
  --lh-tight:   1.1;
  --lh-display: 1.08;
  --lh-snug:    1.3;
  --lh-body:    1.65;
  --lh-loose:   1.78;

  /* Spacing scale (rem) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Layout */
  --measure:  62ch;          /* larghezza lettura ottimale serif */
  --container-narrow: 720px; /* legal, FAQ, articoli */
  --container:        980px; /* contenuto principale */
  --container-wide:   1180px;
  --nav-h: 64px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 200ms;
  --d-base: 400ms;
  --d-slow: 700ms;

  /* Shadows — discreti, mai gonfi */
  --shadow-sm: 0 1px 2px rgba(26, 22, 18, 0.05), 0 1px 3px rgba(26, 22, 18, 0.04);
  --shadow-md: 0 4px 6px rgba(26, 22, 18, 0.04), 0 10px 24px rgba(26, 22, 18, 0.06);
  --shadow-lg: 0 8px 16px rgba(26, 22, 18, 0.06), 0 24px 48px rgba(26, 22, 18, 0.10);
}

/* ---------- 3. Base body ---------- */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--s-4));
}

body {
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1;  /* old-style numerals */
}

::selection { background: var(--gold); color: var(--ink); }

/* ---------- 4. Typography classes ---------- */
.display, h1.display {
  font-family: var(--serif);
  font-size: var(--t-display);
  font-weight: 500;
  line-height: var(--lh-display);
  letter-spacing: -0.015em;
  margin: 0;
}
h1, .h1 { font-family: var(--serif); font-size: var(--t-h1); font-weight: 500; line-height: var(--lh-tight); letter-spacing: -0.012em; margin: 0; }
h2, .h2 { font-family: var(--serif); font-size: var(--t-h2); font-weight: 500; line-height: var(--lh-tight); letter-spacing: -0.008em; margin: 0; }
h3, .h3 { font-family: var(--serif); font-size: var(--t-h3); font-weight: 600; line-height: var(--lh-snug); margin: 0; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: var(--lh-snug); letter-spacing: 0; margin: 0; }

.lede {
  font-family: var(--serif);
  font-size: var(--t-lede);
  line-height: var(--lh-loose);
  color: var(--slate);
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow--on-dark { color: var(--gold); }

.meta {
  font-family: var(--sans);
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  color: var(--slate-soft);
}

.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 4.2em;
  line-height: 0.88;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold-deep);
}

.ornament {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
  margin: var(--s-5) 0;
}
.ornament--center { margin-left: auto; margin-right: auto; }
.ornament--gold { background: var(--gold); opacity: 1; }

.measure { max-width: var(--measure); }

/* prose: long-form readable text (FAQ details, legal, paragraphs) */
.prose {
  max-width: var(--measure);
}
.prose p {
  margin: 0 0 var(--s-4);
  font-size: var(--t-body);
  line-height: var(--lh-loose);
}
.prose p + p { text-indent: 0; }
.prose h2 { font-size: 1.6rem; margin: var(--s-7) 0 var(--s-3); }
.prose h3 { font-size: 1.2rem; margin: var(--s-6) 0 var(--s-3); }
.prose ul, .prose ol { margin: 0 0 var(--s-4) var(--s-5); }
.prose li { margin-bottom: var(--s-2); line-height: var(--lh-body); }
.prose a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); text-decoration-color: var(--gold); }
.prose strong, .prose b { font-weight: 600; }
.prose em, .prose i { font-style: italic; }
.prose code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--cream);
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
}
.prose blockquote {
  margin: var(--s-5) 0;
  padding-left: var(--s-4);
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--slate);
}

/* ---------- 5. Layout containers ---------- */
.wrap { width: 100%; padding-left: var(--s-4); padding-right: var(--s-4); margin-left: auto; margin-right: auto; }
.wrap--narrow { max-width: var(--container-narrow); }
.wrap--base   { max-width: var(--container); }
.wrap--wide   { max-width: var(--container-wide); }

@media (min-width: 720px) {
  .wrap { padding-left: var(--s-6); padding-right: var(--s-6); }
}

section { padding: var(--s-8) 0; }
@media (min-width: 720px) { section { padding: var(--s-9) 0; } }

.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .lede { color: rgba(245, 240, 230, 0.78); }
.section--dark .ornament { background: var(--paper); opacity: 0.4; }
.section--dark .eyebrow { color: var(--gold); }

.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }

/* ---------- 6. Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--nav-h);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (min-width: 720px) { .nav__inner { padding: 0 var(--s-6); } }

.brand {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
}
.brand small {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-soft);
  font-weight: 600;
}
.brand__mark { color: var(--gold-deep); font-style: italic; }

.nav__links {
  display: none;
  gap: var(--s-5);
  list-style: none;
}
@media (min-width: 920px) { .nav__links { display: flex; } }

.nav__link {
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--slate);
  position: relative;
  transition: color var(--d-fast) var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold-deep);
  transition: width var(--d-base) var(--ease-out);
}
.nav__link:hover::after { width: 100%; }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease-out);
  white-space: nowrap;
  text-align: center;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover:not(:disabled) {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-deep);
}
.btn--gold:hover:not(:disabled) {
  background: var(--gold-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 240, 230, 0.4);
}
.btn--ghost-light:hover:not(:disabled) {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 1.05em 1.75em; font-size: 1rem; }

.link {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--d-fast);
}
.link:hover { color: var(--ink); text-decoration-color: var(--gold); }

/* ---------- 8. Form ---------- */
.field {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.85em 1em;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.field:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18); }
.field--cream { background: var(--cream); }
.field--on-dark { background: rgba(250, 246, 238, 0.96); }

textarea.field { resize: vertical; min-height: 7em; line-height: var(--lh-snug); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231a1612' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.5em; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-family: var(--sans);
  font-size: var(--t-small);
  color: var(--slate);
  line-height: var(--lh-snug);
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.2em;
  width: 1.05em;
  height: 1.05em;
  accent-color: var(--ink);
  cursor: pointer;
}
.checkbox--on-dark { color: rgba(245, 240, 230, 0.82); }
.checkbox--on-dark input[type="checkbox"] { accent-color: var(--gold); }

.field-grid { display: grid; gap: var(--s-3); }
@media (min-width: 540px) {
  .field-grid--2 { grid-template-columns: 1fr 1fr; }
  .field-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
  .field-grid--2-1 { grid-template-columns: 2fr 1fr; }
  .field-grid--1-2 { grid-template-columns: 1fr 2fr; }
}

.field-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: var(--s-2);
}

/* ---------- 9. Cards / Surfaces ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.card--cream { background: var(--cream); }
.card--ink { background: var(--ink); color: var(--paper); border-color: var(--ink-soft); }
.card--bordered { border-color: var(--line); }
.card--feature { padding: var(--s-6); }
.card--quote { background: var(--cream); border-left: 3px solid var(--gold); }

.surface {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  border: 1px solid var(--line-soft);
}

/* ---------- 10. Callouts ---------- */
.callout {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: var(--lh-snug);
  color: var(--slate);
}
.callout strong { color: var(--ink); }
.callout--success { background: rgba(74, 90, 58, 0.08); border-color: var(--moss); color: var(--ink); }
.callout--error   { background: rgba(184, 92, 60, 0.08); border-color: var(--rust); color: var(--ink); }
.callout--info    { background: var(--cream); border-color: var(--ink); color: var(--ink); }

/* ---------- 11. Grids ---------- */
.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--asymm { grid-template-columns: 1.4fr 1fr; gap: var(--s-7); }
}

.stack > * + * { margin-top: var(--s-4); }
.stack--lg > * + * { margin-top: var(--s-6); }
.stack--xl > * + * { margin-top: var(--s-7); }
.stack--sm > * + * { margin-top: var(--s-3); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.cluster--lg { gap: var(--s-4); }

/* ---------- 12. Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--nav-h) + var(--s-6)) 0 var(--s-9);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 0%, rgba(201, 169, 97, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 60% at 90% 100%, rgba(74, 90, 58, 0.18), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }

.hero h1 {
  color: var(--paper);
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero__lede { color: rgba(245, 240, 230, 0.82); max-width: 52ch; }

.hero__cover {
  position: relative;
  display: inline-block;
}
.hero__cover::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.22), transparent 65%);
  filter: blur(24px);
  z-index: 0;
}
.hero__cover img {
  position: relative;
  z-index: 1;
  width: min(280px, 100%);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45), 0 8px 16px rgba(0, 0, 0, 0.35);
  border-radius: 2px;
}

/* ---------- 13. Detail/Accordion ---------- */
.detail {
  border-top: 1px solid var(--line);
  padding: var(--s-4) 0;
}
.detail:last-child { border-bottom: 1px solid var(--line); }
.detail > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.detail > summary::-webkit-details-marker { display: none; }
.detail > summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-deep);
  transition: transform var(--d-fast) var(--ease-out);
}
.detail[open] > summary::after { content: '−'; }
.detail__body {
  padding-top: var(--s-3);
  color: var(--slate);
  font-size: var(--t-small);
  line-height: var(--lh-loose);
  max-width: var(--measure);
}
.detail__body p { margin: 0 0 var(--s-3); }
.detail__body p:last-child { margin-bottom: 0; }

/* ---------- 14. Table ---------- */
.table {
  font-family: var(--sans);
  font-size: var(--t-small);
}
.table th, .table td {
  text-align: left;
  padding: 0.7em 0.9em;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-soft);
  border-bottom: 1px solid var(--ink);
}
.table tbody tr:nth-child(even) { background: var(--cream); }

/* ---------- 15. Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(245, 240, 230, 0.6);
  padding: var(--s-7) 0 var(--s-6);
}
.footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .footer__inner { padding: 0 var(--s-6); grid-template-columns: 1fr auto; align-items: end; }
}
.footer__brand .brand { color: var(--paper); }
.footer__brand p { font-family: var(--sans); font-size: var(--t-caption); margin-top: var(--s-2); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-family: var(--sans);
  font-size: var(--t-small);
}
.footer__links a { color: rgba(245, 240, 230, 0.7); }
.footer__links a:hover { color: var(--gold); }

/* ---------- 16. Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-family: var(--sans);
  font-size: var(--t-caption);
  font-weight: 500;
  padding: var(--s-2) var(--s-4);
  letter-spacing: 0.02em;
}
.announce a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.announce strong { color: var(--gold); }

/* ---------- 17. Cookie banner ---------- */
.cookie {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 60;
  max-width: 540px;
  margin-left: auto;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  font-family: var(--sans);
  font-size: var(--t-small);
  line-height: var(--lh-snug);
  display: none;
}
.cookie.is-visible { display: block; animation: cookieIn var(--d-base) var(--ease-out); }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie a { color: var(--gold); text-decoration: underline; }
.cookie__row { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.cookie .btn { flex: 1; padding: 0.7em 1em; font-size: 0.85rem; }

/* ---------- 18. Reveal animation (driven by app.js + GSAP) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Utility ---------- */
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.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; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); } .mb-8 { margin-bottom: var(--s-8); }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  display: inline-block;
}
.spinner--on-dark { border-color: rgba(245, 240, 230, 0.2); border-top-color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-size: var(--t-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 0.85em;
  border-radius: var(--r-pill);
  background: rgba(201, 169, 97, 0.16);
  color: var(--gold-deep);
  border: 1px solid rgba(201, 169, 97, 0.3);
}
.badge--on-dark { background: rgba(201, 169, 97, 0.18); color: var(--gold); border-color: rgba(201, 169, 97, 0.35); }

/* Big quote/pull */
.pull {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.8vw + 0.8rem, 1.9rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  max-width: 32ch;
  margin: var(--s-5) 0;
}
.pull cite { display: block; margin-top: var(--s-3); font-style: normal; font-size: var(--t-small); font-family: var(--sans); color: var(--slate-soft); letter-spacing: 0.05em; }

/* Pricing card */
.price {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.price__amount {
  font-family: var(--serif);
  font-size: clamp(3rem, 4vw + 1rem, 4.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price__currency { font-size: 0.55em; color: var(--slate); }
.price__note { font-family: var(--sans); font-size: var(--t-small); color: var(--slate); }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  font-family: var(--sans);
  font-size: 0.93rem;
  color: var(--slate);
  line-height: var(--lh-snug);
}
.feature-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
  margin-top: 0.55em;
}
.feature-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- 20. Mobile overflow guards & responsive nav ---------- */
/* Kill horizontal "rock" on phones. `clip` blocks horizontal scroll WITHOUT
   creating a scroll container, so the sticky nav keeps working (unlike hidden). */
html, body { overflow-x: clip; max-width: 100%; }

/* Grid/flex children default to min-width:auto (= min-content) and refuse to
   shrink below their content, pushing tables and long words past the viewport. */
.grid > * { min-width: 0; }
.cluster > * { min-width: 0; }

/* Nav: brand + gold CTA must fit side by side on narrow phones.
   Without this the "Acquista — €19" button (white-space:nowrap) overflows ~360px. */
@media (max-width: 480px) {
  .nav__inner { gap: var(--s-3); }
  .brand { font-size: 1.12rem; }
  .nav .btn--gold { padding: 0.6em 0.9em; font-size: 0.82rem; }
}
@media (max-width: 360px) {
  .nav .btn--gold { padding: 0.5em 0.7em; font-size: 0.76rem; }
}
