/* ── Font self-hosted (variabili, subset latino) ─────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Reset essenziale ────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--k-void);
  color: var(--k-starlight);
  font-family: var(--k-font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--k-violet); text-decoration: none; }
a:hover { color: var(--k-starlight); }
::selection { background: var(--k-violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--k-violet);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Barra di scorrimento: gradiente violet→oro (come preferito dall'autrice) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--k-void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--k-violet), var(--k-aurum));
  border-radius: 10px;
}
html { scrollbar-color: var(--k-violet) var(--k-void); }

/* ── Cosmo di fondo: gradiente dello starfield (identico allo staging) ───── */
.cosmos { position: fixed; inset: 0; z-index: var(--k-z-cosmos); pointer-events: none; }
#stars {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 50% -10%, var(--k-nebula-glow) 0%, var(--k-void) 55%);
}
/* Stelle statiche di riserva (no-JS / reduced-motion): un pizzico di cielo */
.cosmos::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='%23e6e1ff'%3E%3Ccircle cx='31' cy='58' r='1'/%3E%3Ccircle cx='127' cy='23' r='.7'/%3E%3Ccircle cx='223' cy='131' r='1.2'/%3E%3Ccircle cx='342' cy='73' r='.8'/%3E%3Ccircle cx='396' cy='219' r='1'/%3E%3Ccircle cx='73' cy='249' r='.7'/%3E%3Ccircle cx='167' cy='320' r='1.1'/%3E%3Ccircle cx='289' cy='377' r='.8'/%3E%3Ccircle cx='388' cy='341' r='.6'/%3E%3Ccircle cx='48' cy='392' r='1'/%3E%3Ccircle cx='251' cy='265' r='.6'/%3E%3Ccircle cx='105' cy='158' r='.9'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* ── Tipografia ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--k-font-display); font-weight: 600; letter-spacing: 0.01em; }

.page-title {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 0.5em;
}
.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  margin: 0 0 0.7em;
}
.subsection-title {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  margin: 1.8em 0 0.8em;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--k-aurum);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--k-aurum); }
.eyebrow--center { justify-content: center; display: flex; }
.eyebrow--center::after { content: ''; width: 26px; height: 1px; background: var(--k-aurum); }

.section-lede {
  color: var(--k-stardust);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 44px;
}
.section-lede--center { margin-inline: auto; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(56px, 9vw, 110px) 6vw; }
.section--first { padding-top: clamp(120px, 18vw, 170px); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(17, 24, 50, 0.55), transparent); }
.section--center { text-align: center; }
.wrap { max-width: var(--k-maxw); margin: 0 auto; }
.wrap--narrow { max-width: var(--k-maxw-narrow); }
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.section-more { margin-top: 36px; font-weight: 600; letter-spacing: 0.03em; }

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
}
