@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1E2A4A;
  --ink-soft: rgba(30, 42, 74, 0.68);
  --ink-line: rgba(30, 42, 74, 0.14);
  --cream: #F5EFE3;
  --paper: #FBF7EF;
  --ochre: #E9B44C;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(233, 180, 76, 0.10) 0%, transparent 55%), var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 50;
}
a { color: inherit; }

/* Barra in alto */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
}
.brand img { width: 34px; height: 34px; }
.bar nav { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.bar nav a { text-decoration: none; color: var(--ink-soft); }
.bar nav a:hover { color: var(--ink); }

/* Hero: manifesto tipografico */
.hero {
  min-height: calc(100dvh - 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.25rem, 4vw, 4rem) clamp(3rem, 8vh, 6rem);
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 10vw, 11rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin: 0;
  max-width: 13ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero .lead {
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  max-width: 42ch;
  color: var(--ink-soft);
  margin: 2rem 0 2.25rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 48px;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cta::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
  margin-left: 0.75rem;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(30, 42, 74, 0.18); }
.cta:active { transform: translateY(0) scale(0.98); }

/* Entrata a cascata */
.reveal { opacity: 0; transform: translateY(26px); animation: rise 0.7s var(--ease) forwards; }
.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.25s; }
.reveal:nth-child(4) { animation-delay: 0.35s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .cta { transition: none; }
}

/* Sezioni sotto la hero */
.section {
  border-top: 1px solid var(--ink-line);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem 4rem;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.section p { margin: 0 0 1rem; max-width: 62ch; }
.modes { list-style: none; margin: 0; padding: 0; }
.modes li { padding: 1.25rem 0; border-bottom: 1px solid var(--ink-line); }
.modes li:first-child { padding-top: 0; }
.modes strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; display: block; line-height: 1.1; margin-bottom: 0.35rem; }
.modes q { quotes: "«" "»"; color: var(--ink-soft); }

/* Pagine di testo (privacy, termini) */
.doc {
  max-width: 46rem;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) 5rem;
  margin: 0 auto;
}
.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 0.75rem;
}
.doc .updated { color: var(--ink-soft); font-size: 0.875rem; margin: 0 0 2.5rem; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin: 2.5rem 0 0.75rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }

footer {
  border-top: 1px solid var(--ink-line);
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
footer nav { display: flex; gap: 1.5rem; }

@media (max-width: 767px) {
  .bar nav { gap: 1rem; }
  .bar nav .hide-sm { display: none; }
  .section { grid-template-columns: 1fr; }
  .hero { min-height: calc(100dvh - 82px); }
}
