:root {
  --navy-900: #06101f;
  --navy-800: #0a1a33;
  --navy-700: #12284a;
  --gold: #c9a84c;
  --gold-light: #e0c872;
  --gold-dark: #a8872e;
  --cream: #f2ede4;
  --ink: #1a1a1a;
  --muted: #5d5a54;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(6, 16, 31, .18);
  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--gold-light); color: var(--navy-900); }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: 84px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-800); color: var(--white); }

.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.section--navy .eyebrow, .hero .eyebrow { color: var(--gold-light); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
.gold { color: var(--gold-light); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; }
.lead { font-size: 20px; color: var(--muted); max-width: 720px; }
.section--navy .lead { color: #c9d1de; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: 999px; font: 700 17px/1.2 var(--font-sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.btn--gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--navy-900); box-shadow: 0 10px 24px rgba(201, 168, 76, .35); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, .45); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header sticky con menu */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(6, 16, 31, .97); border-bottom: 1px solid rgba(224, 200, 114, .25); padding: 12px 0; backdrop-filter: blur(6px); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--white); text-decoration: none; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; line-height: 1.25; flex: none; }
.brand span { color: var(--gold-light); display: block; }
.nav { display: flex; gap: 22px; }
.nav a { color: #dfe5ee; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a:focus-visible { color: var(--gold-light); }
.topbar__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.topbar__phone { color: var(--gold-light); display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(224, 200, 114, .45); border-radius: 50%; }
.topbar__phone svg { width: 18px; height: 18px; }
.btn--sm { padding: 10px 22px; font-size: 15px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 9px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
[id] { scroll-margin-top: 84px; }
.section-cta { text-align: center; margin-top: 44px; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-900); padding: 72px 0 80px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('img/hero.webp') center top / cover no-repeat; opacity: .38; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 31, .55) 0%, rgba(6, 16, 31, .92) 70%, var(--navy-900) 100%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__sub { font-size: 21px; color: #dfe5ee; max-width: 600px; margin: 0 0 26px; }
.hero__facts { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.hero__facts li { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.hero__facts svg { width: 24px; height: 24px; color: var(--gold-light); flex: none; }
.hero__facts strong { color: var(--gold-light); }
.badge { display: inline-block; background: rgba(201, 168, 76, .16); border: 1px solid rgba(224, 200, 114, .55); color: var(--gold-light); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }

/* Card form */
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 6px solid var(--gold); }
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-card p.small { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input { width: 100%; padding: 13px 14px; border: 1.5px solid #d6d2c9; border-radius: 10px; font: 400 17px var(--font-sans); background: #fbfaf7; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, .25); background: var(--white); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold-dark); flex: none; }
.form-alt { text-align: center; font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.form-alt a { color: var(--navy-700); font-weight: 700; }
.hp { position: absolute; left: -9999px; }

/* Griglie */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 8px 24px rgba(6, 16, 31, .07); border: 1px solid #ece7dc; }
.card__num { font: 800 15px var(--font-sans); color: var(--gold-dark); letter-spacing: .1em; margin-bottom: 10px; display: block; }
.card p { margin: 0; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 24px; height: 24px; color: var(--gold); flex: none; margin-top: 3px; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Relatore */
.speaker { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.speaker__avatar { width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--navy-700), var(--navy-900)); display: grid; place-items: center; border: 4px solid var(--gold); font: 800 84px var(--font-sans); color: var(--gold-light); letter-spacing: .02em; }
.speaker__role { color: var(--gold-light); font-weight: 600; margin: -8px 0 16px; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 26px; }
.stat strong { display: block; font-size: 36px; font-weight: 800; color: var(--gold-light); line-height: 1; }
.stat span { font-size: 15px; color: #c9d1de; }

/* Info evento */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list svg { width: 28px; height: 28px; color: var(--gold-dark); flex: none; }
.info-list strong { display: block; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); }
.note { font-size: 15px; color: var(--muted); margin-top: 16px; }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { background: var(--white); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; border: 1px solid #ece7dc; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-dark); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA finale */
.final .container { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }

/* Footer */
.footer { background: var(--navy-900); color: #9aa6b8; font-size: 14px; padding: 36px 0 110px; }
.footer p { margin: 0 0 10px; }
.footer a { color: var(--gold-light); }

/* Banner cookie */
.cookie-banner { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin-inline: auto; background: var(--navy-900); color: #dfe5ee; border: 1px solid rgba(224, 200, 114, .45); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; gap: 18px; align-items: center; font-size: 15px; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { color: var(--gold-light); }
.cookie-banner__actions { display: flex; gap: 10px; flex: none; }
.cookie-banner .btn { padding: 11px 20px; font-size: 15px; }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; bottom: 84px; } .cookie-banner__actions .btn { flex: 1; } }

/* Barra mobile */
.mobile-bar { display: none; }

@media (max-width: 1100px) {
  .menu-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy-900); border-bottom: 1px solid rgba(224, 200, 114, .25); padding: 8px 20px 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 17px; }
}

@media (max-width: 960px) {
  .hero .container, .grid-2, .final .container { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .speaker { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .stats { justify-content: center; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand { font-size: 12px; }
  .topbar__actions { gap: 8px; }
  .btn--sm { padding: 9px 16px; }
  .form-card { padding: 22px; }
  .speaker__avatar { width: 180px; height: 180px; font-size: 60px; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; inset: auto 0 0; z-index: 20; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 16, 31, .96); transition: transform .25s ease; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar .btn { flex: 1; padding: 14px 12px; font-size: 16px; }
  .mobile-bar .btn--ghost { flex: 0 0 56px; padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mobile-bar { transition: none; }
}
