/* ==========================================================================
   Fondazione Supernova ETS — Design system
   ========================================================================== */

:root {
  /* Brand colors (dal logo: palloncino rosso/blu/verde su blu navy) */
  --navy: #13284a;
  --navy-dark: #0b1a30;
  --coral: #ef6f53;
  --coral-dark: #d4573c;
  --sky: #4a8fd6;
  --sky-dark: #3872b0;
  --leaf: #6fbe44;
  --leaf-dark: #559934;
  --cream: #f3f6fa;
  --cream-deep: #e7edf4;
  --white: #ffffff;
  --ink: #223047;
  --ink-soft: #556279;
  --border: #dde4ed;

  --font-head: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow: 0 12px 32px -12px rgba(19, 40, 74, 0.18);
  --shadow-s: 0 6px 16px -8px rgba(19, 40, 74, 0.16);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: var(--sky-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 0.9em;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: #dbe4f2; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .lead { color: #b7c6e0; }
.bg-cream-deep { background: var(--cream-deep); }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--navy); box-shadow: var(--shadow-s); }
.btn-ghost:hover { background: var(--cream-deep); }
.btn-sky { background: var(--sky); color: var(--white); }
.btn-sky:hover { background: var(--sky-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 246, 250, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand-word { display: flex; flex-direction: column; }
.brand-eyebrow, .brand-main { display: block; font-family: var(--font-head); line-height: 1; }
.brand-eyebrow { font-weight: 700; font-size: 0.6rem; letter-spacing: 0.18em; color: var(--sky-dark); margin-bottom: 3px; }
.brand-main { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--coral-dark); }
.main-nav a.active { color: var(--coral-dark); }
.main-nav a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; border-radius: 3px; background: var(--coral);
}
.nav-links { display: flex; gap: 26px; align-items: center; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; width: 22px; height: 2px; background: var(--navy); }
.nav-toggle span::after { position: absolute; top: 7px; width: 22px; height: 2px; background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.hero-blobs {
  position: absolute; inset: 0; z-index: 0; opacity: 0.55; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2em; }
.hero-sub { color: var(--ink-soft); font-size: 1.18rem; max-width: 60ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-photo-wrap { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #c4d1e6; }
.breadcrumb { font-size: 0.85rem; color: #93a7c8; margin-bottom: 1em; }
.breadcrumb a { color: #cddaf0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 32px;
  box-shadow: var(--shadow-s);
  border: 1px solid var(--border);
}
.card h3 { margin-bottom: 0.5em; }
.card-cover { margin: -32px -32px 22px -32px; border-radius: var(--radius-m) var(--radius-m) 0 0; overflow: hidden; }
.card-cover img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-coral { background: rgba(239,111,83,0.14); color: var(--coral-dark); }
.icon-sky { background: rgba(74,143,214,0.14); color: var(--sky-dark); }
.icon-leaf { background: rgba(111,190,68,0.15); color: var(--leaf-dark); }
.icon-navy { background: rgba(19,40,74,0.08); color: var(--navy); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  margin-top: -74px;
  position: relative;
  z-index: 3;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--coral-dark);
  font-weight: 800;
}
.stat span { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Principles ---------- */
.principle {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.principle .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--sky);
  min-width: 52px;
}

/* ---------- Quote ---------- */
.quote-block {
  border-left: 5px solid var(--coral);
  padding: 6px 0 6px 28px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 500;
  font-style: italic;
}
.quote-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 44px; align-items: center; max-width: 980px; margin: 0 auto; }
.quote-photo-wrap { border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); aspect-ratio: 1/1; filter: grayscale(1); }
.quote-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-block cite { display: block; margin-top: 0.6em; font-style: normal; font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
td.value { font-weight: 700; color: var(--coral-dark); white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ---------- Timeline ---------- */
.timeline { display: flex; gap: 0; margin-top: 40px; }
.timeline-step { flex: 1; position: relative; padding-top: 34px; text-align: center; }
.timeline-step::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 4px; background: var(--border);
}
.timeline-step.done::before { background: var(--leaf); }
.timeline-step::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--sky); border: 4px solid var(--cream);
}
.timeline-step.done::after { background: var(--leaf); }

/* ---------- Benefit tiers ---------- */
.tier { border-top: 4px solid var(--sky); }
.tier:nth-child(2) { border-color: var(--coral); }
.tier:nth-child(3) { border-color: var(--leaf); }
.tier:nth-child(4) { border-color: var(--navy); }
.tier ul { padding-left: 1.1em; margin: 0; }
.tier li { margin-bottom: 0.5em; }

/* ---------- IBAN box ---------- */
.iban-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.iban-box .iban-num { font-family: "Courier New", monospace; font-size: 1.25rem; letter-spacing: 0.03em; }
.iban-box small { color: #a9bbdb; }
.copy-btn {
  background: var(--coral); color: var(--white); border: none; border-radius: 999px;
  padding: 10px 20px; font-weight: 700; font-family: var(--font-head); cursor: pointer; font-size: 0.9rem;
}
.copy-btn:hover { background: var(--coral-dark); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-l);
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.9); }

/* ---------- Event banner ---------- */
.event-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border: 3px solid var(--coral);
  border-radius: var(--radius-l);
  padding: 28px 36px;
  box-shadow: 0 0 0 7px rgba(239, 111, 83, 0.14), var(--shadow);
}
.event-date {
  text-align: center;
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: 16px 24px;
  font-family: var(--font-head);
  line-height: 1;
}
.event-date b { display: block; font-size: 2.6rem; font-weight: 800; }
.event-date span { display: block; margin-top: 4px; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.event-banner h2 { font-size: 1.6rem; margin: 0 0 0.25em; }
.event-banner p { margin: 0; color: var(--ink-soft); }
.event-facts { list-style: none; padding: 0; margin: 0 0 1.4em; }
.event-facts li { display: flex; gap: 12px; margin-bottom: 0.7em; font-size: 1.05rem; }
.event-facts li b { min-width: 74px; color: var(--navy); font-family: var(--font-head); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Founder cards ---------- */
.founder-card { display: flex; flex-direction: column; height: 100%; }
.founder-card img.logo-mark { height: 46px; width: auto; margin-bottom: 16px; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b7c6e0;
  padding: 64px 0 28px;
  font-size: 0.94rem;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1em; }
.site-footer a { color: #c8d5ea; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: #7f92b3;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand .brand-eyebrow { color: #93a7c8; }
.footer-brand .brand-main { color: var(--white); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.88rem; color: var(--ink-soft); }
.divider { height: 1px; background: var(--border); margin: 40px 0; border: none; }
.pill-list { list-style: none; padding: 0; margin: 0; }
.pill-list li {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0.7em;
}
.pill-list li::before {
  content: "→"; color: var(--coral-dark); font-weight: 800; flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 30px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .event-banner { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; }
  .event-date { justify-self: center; }
  .event-banner .btn { justify-self: center; }
  .hero-photo-wrap { order: -1; aspect-ratio: 1/1; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-photo-wrap { aspect-ratio: 1/1; max-width: 320px; margin: 0 auto; }
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-banner { padding: 40px 24px; }
  .stat-strip { grid-template-columns: 1fr 1fr; padding: 26px 20px; }
  .timeline { flex-direction: column; gap: 30px; }
  .timeline-step::before { top: 0; bottom: 0; left: 8px; right: auto; width: 4px; height: 100%; }
  .timeline-step::after { top: 0; left: 8px; transform: none; }
  .timeline-step { text-align: left; padding-left: 34px; padding-top: 0; }
}
