/* ============================================================
   EROI SILENZIOSI — stylesheet
   Tema: notturno, editoriale, accento oro (onore silenzioso)
   ============================================================ */

:root {
  --ink: #0a0b0e;          /* sfondo profondo */
  --ink-2: #101218;        /* pannelli */
  --ink-3: #161922;        /* card */
  --line: rgba(255,255,255,0.08);
  --text: #ece9e3;         /* bianco caldo */
  --muted: #9296a0;        /* testo secondario */
  --muted-2: #6b7080;
  --gold: #c8a35a;         /* accento: onore silenzioso */
  --gold-soft: #d8bd86;
  --maxw: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,11,14,0.82);
  backdrop-filter: blur(12px);
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand span { color: var(--gold); font-style: italic; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .92rem; color: var(--muted); transition: color .25s; }
.nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--gold);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .25s, color .25s !important;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(120% 80% at 50% 0%, #16181f 0%, var(--ink) 55%),
    var(--ink);
  overflow: hidden;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 45%, transparent 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }

.eyebrow {
  font-size: .8rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 em { color: var(--gold-soft); font-style: italic; }
.hero-sub {
  margin: 34px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.scroll-cue {
  display: inline-block;
  margin-top: 64px;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  position: relative;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 7px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ---------- SECTIONS ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.kicker {
  font-size: .78rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
h2 em { color: var(--gold-soft); font-style: italic; }

.prose { margin-top: 26px; color: var(--muted); font-size: 1.08rem; }
.prose p { margin-bottom: 18px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--gold-soft); font-style: italic; }
.prose .lead { color: var(--text); font-size: 1.18rem; margin-top: 30px; }
.center-prose { text-align: center; }
.center-prose p { margin-left: auto; margin-right: auto; max-width: 620px; }

.section-intro { color: var(--muted); margin: 8px auto 0; max-width: 640px; font-size: 1.08rem; }

/* Quote */
.quote {
  margin-top: 56px;
  padding: 34px 38px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(200,163,90,0.06), transparent);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
}
.quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: .92rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.quote cite span { color: var(--gold); }

.section-paradosso { background: var(--ink); }
.section-def { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- CARDS ---------- */
.section-parallelo h2.center, .section-counter h2.center { margin-left: auto; margin-right: auto; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}
.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,163,90,0.4);
  box-shadow: 0 22px 50px -28px rgba(0,0,0,0.8);
}
.card-tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,163,90,0.35);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 22px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.34rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- CONTROFATTUALE ---------- */
.section-counter { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.headlines {
  list-style: none;
  margin: 56px auto 0;
  max-width: 720px;
}
.headlines li {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--muted-2);
  padding: 22px 0 22px 44px;
  border-bottom: 1px solid var(--line);
  text-decoration: line-through;
  text-decoration-color: rgba(200,163,90,0.55);
  text-decoration-thickness: 2px;
}
.headlines li::before {
  content: "✕";
  position: absolute;
  left: 0; top: 22px;
  color: var(--gold);
  font-style: normal;
  font-size: 1.1rem;
}
.counter-note { margin-top: 44px; color: var(--muted); font-size: 1.15rem; }
.counter-note strong { color: var(--text); }

/* ---------- STATISTICHE ---------- */
.section-stats { background: var(--ink); }
.section-stats h2.center { margin-left: auto; margin-right: auto; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.stat {
  text-align: center;
  padding: 30px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(200,163,90,0.05), transparent);
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.stat-num small { font-size: .42em; color: var(--muted); font-weight: 400; }
.stat p { color: var(--muted); font-size: .96rem; line-height: 1.45; }
.stats-source { margin-top: 36px; color: var(--muted-2); font-size: .84rem; letter-spacing: .02em; }

/* ---------- REVEAL chi siamo ---------- */
.section-reveal {
  background: radial-gradient(100% 80% at 50% 0%, #15171e 0%, var(--ink) 60%);
}
.brand-reveal {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- CTA ---------- */
.section-cta {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.section-cta h2 { max-width: 680px; margin: 0 auto 18px; }
.cta-sub { color: var(--muted); max-width: 600px; margin: 0 auto 38px; font-size: 1.1rem; }
.cta-sub strong { color: var(--gold-soft); }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 17px 38px;
  border-radius: 999px;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 18px 40px -18px rgba(200,163,90,0.7);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--gold-soft); box-shadow: 0 24px 50px -18px rgba(200,163,90,0.85); }
.cta-reassure { margin-top: 22px; color: var(--muted-2); font-size: .92rem; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 48px;
  background: var(--ink);
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-tag { color: var(--muted-2); font-size: .92rem; margin-top: 12px; font-style: italic; font-family: var(--serif); }
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.footer-links a { color: var(--muted); font-size: .95rem; transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-by { color: var(--muted-2); font-size: .88rem; margin-top: 8px; }
.footer-by strong { color: var(--text); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- PAGINE INTERNE ---------- */
.page-hero {
  padding: 180px 0 70px;
  text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #16181f 0%, var(--ink) 60%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { color: var(--muted); max-width: 600px; margin: 22px auto 0; }

.manifesto-body { padding: 80px 0 110px; }
.manifesto-body .prose p { font-size: 1.14rem; line-height: 1.75; }
.manifesto-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 48px 0 6px;
  color: var(--text);
}

/* ---------- FORM ---------- */
.form-wrap { padding: 70px 0 110px; }
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px;
}
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 9px; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,163,90,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.field-check input[type="checkbox"] {
  margin-top: 4px;
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.field-check label { font-size: .9rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.field-check a { color: var(--gold-soft); text-decoration: underline; }
.field-check .req { color: var(--gold); }
.form-card .btn-primary { width: 100%; text-align: center; border: none; cursor: pointer; font-family: var(--sans); }
.form-note { color: var(--muted-2); font-size: .86rem; text-align: center; margin-top: 18px; }
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; color: #e88; font-size: .92rem; text-align: center; margin-top: 16px; }
.form-error.show { display: block; }
#submitBtn[disabled] { opacity: .6; cursor: progress; }
.form-success h3 { font-family: var(--serif); color: var(--gold-soft); font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

.contact-side { color: var(--muted); }
.contact-side a { color: var(--gold-soft); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; }
  .site-header { padding: 16px 20px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand { font-size: 1.1rem; }
  .nav a:not(.nav-cta) { display: none; }
  .quote { padding: 24px 22px; }
  .footer-inner { flex-direction: column; }
  .footer-links { align-items: flex-start; }
}
