/* ============================================================
   GalileoHealthCare — Stylesheet condiviso (design system)
   Usato da tutte le pagine interne e dall'LMS Corsi.
   ============================================================ */

:root {
  --navy: #0A2547;
  --navy-deep: #061830;
  --navy-darker: #04101F;
  --card: #0E2C54;
  --gold: #E0AC42;
  --gold-dim: rgba(224,172,66,0.12);
  --cream: #FCEFD0;
  --muted: #8A99B0;
  --border: rgba(252,239,208,0.1);
  --maxw: 1140px;
  --ok: #4FBF8B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--navy-darker);
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(10,37,71,0.55), transparent),
    radial-gradient(ellipse 60% 40% at 85% 100%, rgba(224,172,66,0.06), transparent),
    linear-gradient(rgba(252,239,208,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252,239,208,0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
  background-attachment: fixed;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Syne', sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.serif { font-family: 'Cormorant Garamond', serif; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 60px; }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 60px;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 0.5px solid transparent;
}
#navbar.solid, #navbar.scrolled {
  background: rgba(6,24,48,0.85);
  backdrop-filter: blur(20px);
  padding: 12px 60px;
  border-bottom: 0.5px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; letter-spacing: 3px; color: var(--cream); }
.brand-sub { font-family: 'Inter', sans-serif; font-size: 8.5px; font-weight: 500; letter-spacing: 4.5px; color: var(--gold); }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: rgba(252,240,235,0.7); text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-cta { background: var(--gold-dim) !important; color: var(--gold) !important; padding: 9px 20px !important; border-radius: 8px !important; border: 1px solid rgba(224,172,66,0.3) !important; transition: background 0.2s !important; }
.nav-cta:hover { background: rgba(224,172,66,0.22) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

/* ── PAGE HERO (pagine interne) ── */
.page-hero {
  position: relative; min-height: 64vh;
  display: flex; align-items: flex-end;
  overflow: hidden; padding: 0 0 70px;
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,24,48,0.55) 0%, rgba(4,16,31,0.92) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(44px, 6vw, 86px); line-height: 1.02; letter-spacing: 0.5px;
  color: var(--cream); max-width: 16ch;
}
.page-hero h1 .accent { color: var(--gold); font-style: italic; }
.page-hero .lead { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: rgba(252,239,208,0.78); font-weight: 300; max-width: 60ch; }

/* ── SECTIONS ── */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section-label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 500; }
.section h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: 0.5px;
  color: var(--cream); margin-bottom: 22px;
}
.section h2.accent-line { }
.section .section-intro { font-size: 18px; line-height: 1.7; color: rgba(252,239,208,0.72); font-weight: 300; max-width: 64ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .section-intro { margin-left: auto; margin-right: auto; }

.body-text { font-size: 17px; line-height: 1.85; color: rgba(252,239,208,0.72); font-weight: 300; }
.body-text + .body-text { margin-top: 18px; }

/* ── GRID + CARDS ── */
.grid { display: grid; gap: 22px; }
.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: rgba(14,44,84,0.4);
  backdrop-filter: blur(16px);
  border: 0.5px solid var(--border);
  border-radius: 16px; padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: rgba(224,172,66,0.28); transform: translateY(-4px); }
.card.featured { border-color: rgba(224,172,66,0.4); background: rgba(224,172,66,0.06); }
.card h3 { font-size: 19px; font-weight: 700; color: var(--cream); margin-bottom: 12px; font-family: 'Syne', sans-serif; }
.card p { font-size: 14.5px; line-height: 1.7; color: var(--muted); font-weight: 300; }
.card .num { font-family: 'Syne', sans-serif; font-size: 46px; font-weight: 900; color: rgba(224,172,66,0.2); display: block; margin-bottom: 10px; line-height: 1; }

.icon-chip { width: 48px; height: 48px; border-radius: 13px; background: var(--gold-dim); border: 1px solid rgba(224,172,66,0.25); display: flex; align-items: center; justify-content: center; color: var(--gold); margin-bottom: 18px; }
.icon-chip svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step::before { content: counter(step, decimal-leading-zero); counter-increment: step; font-family: 'Syne', sans-serif; font-weight: 900; font-size: 15px; color: var(--gold); position: absolute; top: 0; left: 0; }
.step::after { content: ''; position: absolute; top: 8px; left: 38px; right: -10px; height: 1px; background: linear-gradient(90deg, rgba(224,172,66,0.4), transparent); }
.step:last-child::after { display: none; }
.step h4 { font-family: 'Syne', sans-serif; font-size: 17px; color: var(--cream); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; font-weight: 300; }

/* ── SPLIT (testo + lista) ── */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; background: var(--gold-dim); border: 1px solid rgba(224,172,66,0.3); display: flex; align-items: center; justify-content: center; color: var(--gold); margin-top: 2px; }
.feature-list .tick svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feature-list strong { display: block; color: var(--cream); font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.feature-list span.desc { color: var(--muted); font-size: 14px; line-height: 1.6; font-weight: 300; }

/* ── STATS ── */
.stats-row { display: flex; flex-wrap: wrap; gap: 48px; }
.stat .stat-num { font-family: 'Syne', sans-serif; font-size: 40px; font-weight: 900; color: var(--gold); display: block; line-height: 1; }
.stat .stat-label { font-size: 13px; color: var(--muted); letter-spacing: 0.5px; margin-top: 8px; display: block; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 14px 32px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  font-family: 'Syne', sans-serif; display: inline-block; cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(224,172,66,0.35); }
.btn-ghost { color: rgba(252,239,208,0.75); text-decoration: none; font-size: 15px; padding: 14px 22px; border: 1px solid var(--border); border-radius: 10px; transition: border-color 0.2s, color 0.2s; display: inline-block; cursor: pointer; background: none; font-family: 'Inter', sans-serif; }
.btn-ghost:hover { color: var(--cream); border-color: rgba(224,172,66,0.4); }
.btn-full { width: 100%; text-align: center; }
.btn-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ── CTA BANNER ── */
.cta-banner { text-align: center; background: linear-gradient(180deg, rgba(14,44,84,0.5), rgba(224,172,66,0.05)); border: 0.5px solid var(--border); border-radius: 24px; padding: 70px 40px; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { color: var(--muted); font-weight: 300; font-size: 17px; margin-bottom: 30px; }

/* ── FORM ── */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea, .form select {
  width: 100%; background: rgba(14,44,84,0.55); border: 0.5px solid var(--border);
  border-radius: 10px; padding: 14px 18px; color: var(--cream); font-family: 'Inter', sans-serif;
  font-size: 15px; outline: none; transition: border-color 0.2s; backdrop-filter: blur(16px);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: rgba(224,172,66,0.5); }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.field-note { font-size: 12px; color: var(--muted); }
.field-note a { color: var(--gold); text-decoration: none; }

/* ── FOOTER ── */
.site-footer { border-top: 0.5px solid var(--border); padding: 70px 0 40px; margin-top: 40px; background: rgba(4,16,31,0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; text-decoration: none; }
.footer-brand img { width: 44px; height: 44px; border-radius: 11px; }
.footer-about { font-size: 14px; line-height: 1.8; color: var(--muted); font-weight: 300; max-width: 36ch; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--cream); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { margin-top: 50px; padding-top: 26px; border-top: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: rgba(138,153,176,0.6); }
.footer-bottom a { font-size: 12px; color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── BADGE / PILL ── */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; letter-spacing: 0.5px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: rgba(79,191,139,0.4); background: rgba(79,191,139,0.08); }
.pill.gold { color: var(--gold); border-color: rgba(224,172,66,0.4); background: var(--gold-dim); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  #navbar, #navbar.solid, #navbar.scrolled { padding: 14px 24px; }
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(6,24,48,0.97); backdrop-filter: blur(20px); border-bottom: 0.5px solid var(--border); padding: 8px 24px 20px; transform: translateY(-130%); transition: transform 0.35s cubic-bezier(.16,1,.3,1); }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 0.5px solid var(--border); }
  .nav-links .nav-cta { text-align: center; margin-top: 12px; border-bottom: none !important; }
  .nav-toggle { display: block; }
  .section { padding: 70px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { gap: 28px; }
}
