/* =========================================================
   RESET + BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* height:auto e' indispensabile: le immagini del blog escono dal plugin con
   width/height reali negli attributi (servono a non far saltare il layout).
   Senza questa riga max-width le rimpicciolisce in larghezza ma l'altezza
   resta quella dell'attributo, e la foto viene stirata. */
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  --bg: #0a0e1a;
  --bg-elev: #141828;
  --bg-card: #1a1f33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f8;
  --text-muted: #a8aebd;
  --text-dim: #6e7488;
  --accent: #d2007d;          /* magenta */
  --accent-soft: #ed99cb;
  --accent-glow: rgba(210, 0, 125, 0.25);
  --platinum: #d8dde6;
  --silver: #b8bdcc;
  --steel: #6e7488;
  --navy: #2d5aa5;
  --serif: 'Iowan Old Style', 'Apple Garamond', Baskerville, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', sans-serif;
  --maxw: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --section-gap: clamp(4rem, 9vw, 7rem);
  --radius: 14px;
  --shadow: 0 12px 32px -16px rgba(0,0,0,0.6);
  --transition: 0.35s cubic-bezier(.2,.7,.2,1);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  /* subtle radial accent for depth */
  background-image:
    radial-gradient(1200px 600px at 50% -200px, rgba(210, 0, 125, 0.12), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(184, 189, 204, 0.05), transparent 60%);
  background-attachment: fixed;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.3rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.02em; }
p  { color: var(--text-muted); }
strong { color: var(--text); font-weight: 700; }
em { color: var(--accent-soft); font-style: normal; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4em 0.9em;
  border: 1px solid var(--accent-glow);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  background: rgba(210, 0, 125, 0.06);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 56ch;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 { margin-bottom: 1rem; }
.section-head p { margin: 0 auto; }

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 2px;
  margin: 1.5rem auto;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.6rem 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.nav.scrolled {
  background: rgba(10, 14, 26, 0.92);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  transition: opacity var(--transition);
}
.brand:hover { opacity: 0.85; }

/* Il logo e' un SVG col viewBox ritagliato all'inchiostro: l'altezza dichiarata
   e' quindi l'altezza reale del marchio. Il PNG precedente aveva ~7% di margine
   incorporato, per questo le misure qui sono 52 -> 48 e 96 -> 89: a schermo
   l'ingombro resta identico a prima. */
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.brand-logo-lg { height: 89px; }

/* Sotto i 480px il lockup disteso diventa illeggibile: si mostra la sola
   rosa dei venti, che e' un riquadro quadrato. */
.brand-logo-compact { display: none; }
@media (max-width: 480px) {
  .brand-logo { display: none; }
  .brand-logo-compact {
    display: block;
    height: 38px;
    width: auto;
    user-select: none;
    -webkit-user-drag: none;
  }
  .brand-logo-lg { height: 63px; }
  /* Nel footer c'e' spazio: resta il lockup disteso anche su schermo stretto. */
  .brand-footer .brand-logo { display: block; height: 63px; }
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  position: relative;
}
.menu-toggle span::before { position: absolute; top: -6px; left: 0; }
.menu-toggle span::after  { position: absolute; top: 6px;  left: 0; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero h1 {
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 50%, var(--platinum) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  max-width: 50ch;
  margin: 2rem auto 0;
}

/* Decorative orbital rings behind hero */
.orbits {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(110vw, 1400px);
  height: min(110vw, 1400px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}
.orbits circle {
  fill: none;
  stroke: rgba(210, 0, 125, 0.25);
  stroke-width: 0.5;
}
.orbits .dot { fill: var(--accent-soft); opacity: 0.5; }

/* =========================================================
   FEATURE / STAT GRIDS
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.stat:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* =========================================================
   FUTURES CONE
   ========================================================= */
.cone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.cone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.cone-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.cone-card:nth-child(1)::before { background: linear-gradient(90deg, #2d5aa5, #4475c6); }
.cone-card:nth-child(2)::before { background: linear-gradient(90deg, #6b3aa0, #9558cc); }
.cone-card:nth-child(3)::before { background: linear-gradient(90deg, #d2007d, #ed99cb); }
.cone-card:nth-child(4)::before { background: linear-gradient(90deg, #b8bdcc, #d8dde6); }
.cone-card h3 { margin-bottom: 0.5rem; }
.cone-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: block;
}
.cone-card p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.cone-card .apply {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-soft);
  font-weight: 500;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

/* =========================================================
   METHODS
   ========================================================= */
.methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.method {
  background: linear-gradient(155deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.method:hover {
  transform: translateY(-4px);
  border-color: var(--accent-glow);
  box-shadow: 0 18px 40px -22px var(--accent-glow);
}
.method .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(210, 0, 125, 0.1);
  border: 1px solid var(--accent-glow);
  color: var(--accent-soft);
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.method h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.method p { font-size: 0.93rem; }

/* =========================================================
   MEGATRENDS
   ========================================================= */
.megatrends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.megatrend {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.megatrend:hover { background: rgba(255, 255, 255, 0.04); }
.megatrend .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.megatrend h4 { margin-bottom: 0.4rem; font-family: var(--sans); font-size: 1rem; }
.megatrend p { font-size: 0.88rem; color: var(--text-muted); }

/* =========================================================
   PROCESS (5 phases)
   ========================================================= */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}
.phase {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.phase:last-child { border-right: none; }
.phase .step {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.phase .step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent-glow);
  background: rgba(210, 0, 125, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent-soft);
  font-weight: 700;
}
.phase h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--text); }
.phase p { font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 740px) {
  .process { grid-template-columns: 1fr; }
  .phase { border-right: none; border-bottom: 1px solid var(--border); }
  .phase:last-child { border-bottom: none; }
}

/* =========================================================
   CASES TABLE
   ========================================================= */
.cases {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}
.case-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.case-row:last-child { border-bottom: none; }
.case-row.header {
  background: rgba(255,255,255,0.03);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.case-org { font-weight: 700; color: var(--text); }
.case-org .since {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  font-weight: 500;
  text-transform: uppercase;
}
.case-pratica, .case-lezione { font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 740px) {
  .case-row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.25rem; }
  .case-row.header { display: none; }
  .case-pratica::before { content: 'Pratica: '; color: var(--accent); font-weight: 600; }
  .case-lezione::before { content: 'Lezione: '; color: var(--accent); font-weight: 600; }
}

/* =========================================================
   PARADIGMS COMPARISON
   ========================================================= */
.paradigm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.paradigm {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.paradigm.predictive { border-top: 3px solid var(--text-dim); }
.paradigm.anticipatory { border-top: 3px solid var(--accent); }
.paradigm h3 { margin-bottom: 1.25rem; font-size: 1.2rem; }
.paradigm h3 .icon { color: var(--accent); margin-right: 0.4rem; }
.paradigm ul { list-style: none; }
.paradigm li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text-muted);
}
.paradigm li:last-child { border-bottom: none; }
.paradigm li strong {
  display: block;
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

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

/* =========================================================
   APPLICATIONS
   ========================================================= */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.app {
  padding: 1.75rem;
  background: linear-gradient(155deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.app .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent-soft);
  margin-bottom: 1rem;
}
.app h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.app p { font-size: 0.92rem; }

/* =========================================================
   PRINCIPLES (manifesto)
   ========================================================= */
.principles-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  max-width: 50ch;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  position: relative;
}
.principles-quote::before, .principles-quote::after {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  position: absolute;
  font-family: var(--serif);
  line-height: 1;
}
.principles-quote::before { top: -1rem; left: -1rem; }
.principles-quote::after  { bottom: -2.5rem; right: -1rem; }
.principles-cite {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--sans);
}
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.principle {
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.principle h4 {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.principle p { font-size: 0.92rem; }

/* =========================================================
   CTA + INFO
   ========================================================= */
.info-block {
  background: linear-gradient(155deg, rgba(210, 0, 125, 0.08), rgba(184, 189, 204, 0.04));
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-top: 2rem;
}
.info-block h2 { margin-bottom: 1rem; }
.info-block p { max-width: 56ch; margin: 0 auto 2rem; }
.info-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--accent-soft);
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--accent-glow);
  border-radius: 999px;
  background: rgba(210, 0, 125, 0.06);
  letter-spacing: 0.02em;
  user-select: all;
}

/* =========================================================
   OFFICINA DEI FUTURI (workshop section)
   ========================================================= */
.officina-card {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(184, 189, 204, 0.08), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(210, 0, 125, 0.12), transparent 60%),
    linear-gradient(155deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.officina-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--silver), var(--accent), var(--platinum));
}
.officina-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
.officina-text p {
  margin-bottom: 1.1rem;
  color: var(--text);
  font-size: clamp(0.98rem, 1.4vw, 1.05rem);
  line-height: 1.7;
}
.officina-text p:last-child { margin-bottom: 0; }
.officina-text p strong, .officina-text p em {
  color: var(--accent-soft);
  font-style: normal;
  font-weight: 600;
}

.officina-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.officina-aside h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.tool-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.tool-chip:hover {
  background: rgba(210, 0, 125, 0.06);
  border-color: var(--accent-glow);
  transform: translateY(-2px);
}
.tool-chip .tool-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184, 189, 204, 0.10);
  border: 1px solid rgba(184, 189, 204, 0.28);
  color: var(--silver);
  flex-shrink: 0;
}

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

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  margin-top: var(--section-gap);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.footer-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-meta strong { color: var(--text-muted); }
.footer-sources {
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 720px;
}
.footer-sources strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
}
.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */
@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    /* --nav-h e' misurata da main.js sulla navbar reale: cosi' il pannello
       resta agganciato anche se cambia l'altezza del logo. Il 76px e' solo
       la riserva per il primo frame, prima che lo script giri. */
    top: var(--nav-h, 76px);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h, 76px));
    height: calc(100dvh - var(--nav-h, 76px));
    display: block;
    gap: 0;
    background: #0a0e1a;
    background-image: radial-gradient(800px 400px at 50% 0%, rgba(210, 0, 125, 0.10), transparent 70%);
    padding: 1rem var(--pad-x) 2rem;
    transform: translateY(-100vh);
    transition: transform var(--transition);
    border-top: 1px solid var(--border);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li {
    display: block;
    border-bottom: 1px solid var(--border);
    list-style: none;
  }
  .nav-links a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.05rem;
    color: var(--text);
    width: 100%;
  }
  .nav-links a::after { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: 5rem; }
  .principles-quote { margin-bottom: 2.5rem; }
  .principles-quote::before { left: 0; }
  .principles-quote::after { right: 0; }
}

/* =========================================================
   PAGINA PRIVACY
   ========================================================= */
.privacy-hero { padding: calc(var(--section-gap) + 3rem) 0 2rem; text-align: center; }
.privacy-hero .lead { margin: 1.25rem auto 0; }
.privacy-body { padding: 1rem 0 var(--section-gap); }
.privacy-wrap { max-width: 760px; margin: 0 auto; }
.privacy-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.privacy-block + .privacy-block { margin-top: 2.2rem; padding-top: 2.2rem; border-top: 1px solid var(--border); }
.privacy-block h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 0.9rem; }
.privacy-block p { margin-bottom: 0.9rem; }
.privacy-block p:last-child { margin-bottom: 0; }
.privacy-block a.mail { color: var(--accent-soft); border-bottom: 1px solid var(--accent-glow); transition: color var(--transition), border-color var(--transition); }
.privacy-block a.mail:hover { color: var(--accent); border-bottom-color: var(--accent); }
.no-list { list-style: none; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.no-list li { position: relative; padding-left: 1.9rem; color: var(--text-muted); }
.no-list li::before { content: '\2715'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.yes-list { list-style: none; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.yes-list li { position: relative; padding-left: 1.9rem; color: var(--text-muted); }
.yes-list li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--silver); font-weight: 700; font-size: 0.95rem; }
.updated { margin-top: 2.2rem; font-size: 0.8rem; color: var(--text-dim); text-align: center; }

/* =========================================================
   BLOG — indice, articolo, paginazione
   ========================================================= */
.blog-hero {
  padding: calc(var(--section-gap) + 3rem) 0 1rem;
  text-align: center;
}
.blog-hero .lead { margin: 1.25rem auto 0; }
.blog-list { padding: 2rem 0 var(--section-gap); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.post-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-3px);
}
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.post-card-media picture { display: block; width: 100%; height: 100%; }
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.post-card-date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.post-card h2 { font-size: 1.3rem; }
.post-card p { font-size: 0.93rem; }
.post-card-more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-soft);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.pagination a { color: var(--accent-soft); transition: color var(--transition); }
.pagination a:hover { color: var(--accent); }
.pagination-pos { color: var(--text-dim); font-size: 0.85rem; }

/* ---- Articolo ---- */
.post-wrap { max-width: 760px; margin: 0 auto; }
.post-hero { padding: calc(var(--section-gap) + 3rem) 0 1.5rem; }
.post-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.post-back:hover { color: var(--accent-soft); }
.post-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.post-hero .lead { margin-top: 1.1rem; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.post-sep { color: var(--border-strong); }
.post-tags a {
  color: var(--accent-soft);
  transition: color var(--transition);
}
.post-tags a:hover { color: var(--accent); }
.post-tags a + a { margin-left: 0.5rem; }

.post-cover {
  margin: 2rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-body { padding: 2.5rem 0 1rem; }
.post-body p,
.post-body ul,
.post-body ol { margin-bottom: 1.3rem; line-height: 1.75; }
.post-body h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin: 2.5rem 0 1rem;
}
.post-body h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  margin: 2rem 0 0.8rem;
}
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { color: var(--text-muted); margin-bottom: 0.5rem; }
.post-body a {
  color: var(--accent-soft);
  border-bottom: 1px solid var(--accent-glow);
  transition: color var(--transition), border-color var(--transition);
}
.post-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.post-body picture { display: block; margin: 1.75rem 0; }
.post-body img { border-radius: 10px; }
.post-body > p > img, .post-body > img { margin: 1.75rem 0; }
.post-body figure { margin: 1.75rem 0; }
.post-body figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
.post-body blockquote {
  margin: 1.75rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}
.post-body pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}
.post-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.87em;
}
.post-body :not(pre) > code {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.post-foot {
  padding: 2rem 0 var(--section-gap);
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}
.post-author { font-size: 0.9rem; margin-bottom: 2rem; }
.post-author strong { color: var(--text); }
.post-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.post-nav-item:hover { border-color: var(--accent-glow); background: var(--bg-elev); }
.post-nav-next { text-align: right; }
.post-nav-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.post-nav-title { color: var(--text); font-size: 0.95rem; }

/* ---- Pagina 404 ---- */
.errore {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--section-gap) + 3rem) 0 var(--section-gap);
}
.errore .lead { margin: 1.25rem auto 2rem; }
.errore-azioni {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* Pillola: stesso idioma di .info-mail, ma cliccabile. */
.pillola {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--accent-soft);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent-glow);
  border-radius: 999px;
  background: rgba(210, 0, 125, 0.06);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pillola:hover {
  background: rgba(210, 0, 125, 0.14);
  border-color: var(--accent);
  color: var(--text);
}
.pillola-piena {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pillola-piena:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--bg); }

/* Focus visibile da tastiera, su tutto il sito. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
