/* =============================================================
   InnovInvest, shared design tokens + chrome
   Used by About.html, Team.html, Request-Invite.html.
   (Invite Landing.html keeps its own inline copy on purpose.)
   ============================================================= */
:root {
  /* Brand */
  --brand-blue:     #52A4F0;
  --brand-blue-700: #2E83D2;
  --brand-blue-900: #1C5FA0;
  --brand-blue-300: #8FC4F6;
  --brand-blue-100: #E3F0FB;
  --brand-blue-50:  #f4f8fd;
  --brand-navy:     #1F4E79;
  --brand-navy-900: #143657;
  --brand-gold:     #E8B423;
  --brand-gold-100: #FCEFC7;
  --brand-gold-300: #F2D572;
  --brand-gold-700: #A47C13;

  /* Neutrals */
  --white:    #FFFFFF;
  --paper:    #F7F9FC;
  --paper-2:  #EAF1F9;
  --line:     #DCE4EE;
  --line-2:   #C8D3E2;
  --ink:      #1A1A1A;
  --ink-1:    #1A1A1A;
  --ink-2:    #4A4A4A;
  --ink-3:    #7A7A7A;

  /* Type */
  --font-display: 'Trebuchet MS', 'Lucida Sans', 'DejaVu Sans', system-ui, sans-serif;
  --font-sans:    Calibri, 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.5, 0, 0.2, 1);

  /* Layout */
  --container: 1180px;
  --nav-h: 80px;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-1);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--brand-gold); color: var(--brand-navy); }

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* ============================================================
   Scroll progress bar (fixed at top)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-gold) 100%);
  z-index: 100;
  pointer-events: none;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(82,164,240,.6);
}

.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,180,35,.18) 0%, rgba(232,180,35,0) 60%);
  transform: translate(-50%, -50%);
  transition: opacity 600ms ease;
  opacity: 0;
  filter: blur(2px);
  mix-blend-mode: screen;
}
.cursor-glow.is-visible { opacity: 1; }

/* ============================================================
   Top nav
   ============================================================ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 22px 56px;
  transition: padding 220ms var(--ease-out);
  will-change: padding, background, backdrop-filter;
}
.topnav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 240ms var(--ease-out);
}
.topnav__brand:hover { transform: scale(1.05); }
.topnav__brand img {
  height: 26px;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
  transition: filter 240ms ease;
}
.topnav.is-solid .topnav__brand img { filter: none; }
.topnav__nav {
  margin-left: auto;
  margin-right: 32px;
  display: flex;
  gap: 4px;
}
.topnav__link {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  letter-spacing: 0.005em;
  transition: color 240ms ease, background 240ms ease;
}
.topnav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.topnav.is-solid .topnav__link { color: var(--ink-2); }
.topnav.is-solid .topnav__link:hover { color: var(--brand-navy); background: rgba(11,46,84,.05); }
.topnav__link.is-active { font-weight: 600; color: #fff; background: rgba(255,255,255,.12); }
.topnav.is-solid .topnav__link.is-active { color: var(--brand-navy); background: rgba(11,46,84,.06); }
.topnav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: var(--brand-navy);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: transform 200ms ease, box-shadow 240ms ease, background 240ms ease, color 240ms ease;
}
.topnav.is-solid .topnav__cta {
  background: var(--brand-navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11,46,84,.18);
}
.topnav__cta:hover { transform: translateY(-1px); }

/* ============================================================
   PageHeader (sub-pages, dithering shader hero)
   ============================================================ */
.page-header {
  position: relative;
  padding: 200px 56px 100px;
  background: var(--brand-navy);
  color: #fff;
  overflow: hidden;
}
.page-header__shader {
  position: absolute; inset: 0;
  opacity: 0.55;
  pointer-events: none;
}
.page-header__shader canvas { display: block; width: 100%; height: 100%; }
.page-header__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,46,84,.5) 0%, rgba(11,46,84,.85) 100%);
  pointer-events: none;
}
.page-header__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}
.page-header__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 18px;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.018em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 800px;
  text-wrap: balance;
}
.page-header__lede {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin: 0;
  max-width: 640px;
}

/* ============================================================
   Section primitives
   ============================================================ */
.section { padding: 120px 56px; }
.section__inner { max-width: var(--container); margin: 0 auto; }
.section--cream { background: var(--brand-blue-50); }
.section--white { background: #fff; }
.section--cream-divided {
  background: var(--brand-blue-50);
  border-top: 1px solid rgba(11,46,84,.06);
  border-bottom: 1px solid rgba(11,46,84,.06);
}
.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head--narrow { max-width: 640px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue-700);
  margin-bottom: 14px;
}
.kicker::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.kicker--center { justify-content: center; }
.kicker--center::after {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  color: var(--brand-navy);
  margin: 8px 0 20px;
  letter-spacing: -0.012em;
  line-height: 1.1;
  text-wrap: balance;
}
.section__lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}
.section__lede strong { color: var(--brand-navy); }

/* ============================================================
   Partecipazione (reused)
   ============================================================ */
.partecip { max-width: 760px; margin: 0 auto; text-align: center; }
.partecip__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  background: var(--brand-navy);
  color: #fff;
  letter-spacing: 0.005em;
  box-shadow: 0 8px 28px rgba(11,46,84,.22);
  transition: transform 200ms ease, box-shadow 240ms ease;
}
.partecip__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(11,46,84,.28);
}
.partecip__meta {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--brand-navy);
  color: #fff;
  padding: 64px 56px 32px;
}
.footer__inner { max-width: var(--container); margin: 0 auto; }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo {
  display: inline-block;
  padding: 10px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease;
}
.footer__logo:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0,0,0,.32), 0 0 0 1px rgba(232,180,35,.4);
}
.footer__logo img { height: 26px; width: auto; }
.footer__addr {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin: 16px 0 0;
  line-height: 1.7;
  max-width: 340px;
}
.footer__col-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.footer__col-list {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.9;
}
.footer__col-list a { color: inherit; transition: color 200ms ease; }
.footer__col-list a:hover { color: var(--brand-gold); }
.footer__bottom {
  padding-top: 22px;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[style*='--d'] { transition-delay: var(--d); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* TODO badge: red dashed pill per dati placeholder o da verificare */
.todo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(209, 69, 69, 0.08);
  color: #b13838;
  border: 1px dashed #d14545;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.todo-badge::before {
  content: '\25CF';
  color: #d14545;
  font-size: 8px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .topnav { padding: 18px 28px; }
  .topnav__nav { margin-right: 14px; gap: 0; }
  .topnav__link { padding: 8px 10px; font-size: 12.5px; }
  .topnav__cta { padding: 9px 14px; font-size: 12.5px; }

  .page-header { padding: 150px 28px 80px; }
  .section { padding: 88px 28px; }
  .footer { padding: 48px 28px 28px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .topnav__nav { display: none; }
  .topnav { padding: 14px 18px; }
  .page-header__title { font-size: 36px; }
}

/* ============================================================
   Mobile compact (snellitura aggressiva ≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Safety: nessun scroll orizzontale su mobile */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Top nav: nascosta su mobile (CTA presenti nelle sezioni) */
  .topnav { display: none !important; }
  .scroll-progress { display: none !important; }

  /* Page header */
  .page-header { padding: 110px 20px 56px; }
  .page-header__title { font-size: 32px; line-height: 1.15; }
  .page-header__lede { font-size: 15px; }

  /* Sezioni */
  .section { padding: 56px 20px; }
  .section__title { font-size: 26px; line-height: 1.2; }
  .section__lede { font-size: 15px; }

  /* Footer */
  .footer { padding: 36px 20px 20px; }
  .footer__top { gap: 24px; }
  .footer__col-list { gap: 6px; }
  .footer__bottom { padding-top: 18px; font-size: 12px; }

  /* Reveal: stagger ridotto perché mobile scrolla più veloce */
  .reveal { transition-duration: 500ms; }

  /* Cursor glow off su touch (già via pointer:fine, ma forziamo) */
  .cursor-glow { display: none !important; }
}
