:root {
    --black: #101010;
    --gold: #c69b4a;
    --paper: #f6f5f2;
    --ink: #151515;
    --gray: #5c5c5c;
    --line: #dedbd4;
    --content: 1120px;
    --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, .speaker h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(44px, 6vw, 80px); }
h2 { max-width: 900px; font-size: clamp(34px, 4.2vw, 56px); }
h3 { font-size: 19px; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(var(--content), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(60px, 7vw, 88px); }
.white { background: #fff; }
.black { background: var(--black); color: #fff; }
.eyebrow { display: block; margin-bottom: 18px; color: #926b2d; font-size: 11px; line-height: 1.6; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.black .eyebrow, .hero .eyebrow { color: #dbb675; }
.lead { max-width: 700px; margin-top: 22px; color: var(--gray); font-size: 17px; line-height: 1.75; }
.black .lead { color: #c5c3bd; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 50px; padding: 14px 22px; border: 1px solid var(--gold); background: var(--gold); color: #111; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .035em; text-transform: uppercase; transition: background .2s; }
.btn:hover { background: #dfb96f; }
.icon { display: inline-block; flex-shrink: 0; vertical-align: -.125em; }
.btn .icon { font-size: 18px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .track:focus-visible { outline: 3px solid #598bda; outline-offset: 5px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.text-link { font-size: 13px; border-bottom: 1px solid #777; padding-block: 6px; }
.proofline, .cta-note { margin-top: 14px; color: #c9c2b3; font-size: 12px; }
.nav { padding-block: 18px; background: #090909; color: #fff; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: inline-block; flex-shrink: 0; color: #fff; line-height: 1; }
.logo-mark { display: block; width: 136px; aspect-ratio: 600 / 153; background: currentColor; -webkit-mask: url('../images/millionaire-logo.png') center / contain no-repeat; mask: url('../images/millionaire-logo.png') center / contain no-repeat; }
.nav-links { display: flex; gap: 28px; font-size: 12px; color: #ccc; }
.nav-links a:hover { color: var(--gold); }
.nav .btn { min-height: 40px; padding: 10px 14px; font-size: 10px; gap: 14px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #0b0b0b; color: #fff; }
.hero-grid { position: relative; padding-block: 80px 96px; }
.hero-copy { max-width: 830px; }
.hero .desc { max-width: 610px; margin-top: 26px; color: #e3e1dc; font-size: 18px; line-height: 1.75; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; font-size: 13px; }
.meta strong::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.hero-background { position: absolute; inset: 0; z-index: -1; }
.hero-background img { width: 100%; height: 100%; object-fit: cover; }
.hero-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000d, #0009 60%, #0005); }
.event-img, .speaker-photo, .location-shot { display: block; width: 100%; height: auto; object-fit: cover; }
.benefit-grid, .ecos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.benefit, .eco { border-top: 1px solid var(--line); padding-top: 20px; }
.benefit small { color: #926b2d; font-size: 12px; font-weight: 700; }
.benefit h3 { margin: 16px 0 10px; max-width: 310px; }
.benefit p, .eco p { color: var(--gray); font-size: 15px; line-height: 1.75; }
.object { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.object h2 { font-size: clamp(34px, 3.7vw, 50px); }
.object-copy p { color: #c5c3bd; margin-bottom: 24px; }
.object-copy strong { display: block; margin-bottom: 5px; color: #fff; }
.program-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.program-head .lead { margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 48px 0 0; }
.step { position: relative; padding: 30px 28px 0 0; border-top: 1px solid var(--line); }
.step::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px #fff; }
.step span { display: block; margin-bottom: 10px; color: #926b2d; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.step b { display: block; margin-bottom: 6px; font-size: 17px; }
.step p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.program-note { margin-top: 32px; }
.note { color: #737373; font-size: 12px; line-height: 1.7; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.track { display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; counter-reset: event; padding: 4px max(var(--gutter), calc((100% - var(--content)) / 2)) 8px; scroll-padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2)); margin-top: 44px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); }
.track { cursor: grab; }
.track.is-dragging { cursor: grabbing; user-select: none; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -3px; -webkit-mask-image: none; mask-image: none; }
.event-card { flex: 0 0 min(88vw, 640px); min-width: 0; scroll-snap-align: start; counter-increment: event; }
.event-media { overflow: hidden; margin-bottom: 18px; border-radius: 2px; }
.event-img { aspect-ratio: 4 / 5; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s; }
.event-card:hover .event-img { transform: scale(1.04); filter: brightness(.92); }
.info { position: relative; padding: 22px 0 4px; }
.info::before { content: counter(event, decimal-leading-zero); display: block; margin-bottom: 12px; color: #dbb675; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.info::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: #dbb675; transform: scaleX(.12); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.event-card:hover .info::after { transform: scaleX(1); }
.info strong { font: 400 26px/1.2 Georgia, serif; letter-spacing: -.02em; }
.info p { margin-top: 8px; color: #9d9a93; font-size: 12px; letter-spacing: .02em; }
.gallery-progress { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.gallery-count { flex-shrink: 0; color: #7d7a73; font-size: 11px; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.gallery-count b { color: #fff; font-weight: 700; }
.gallery-bar { position: relative; flex: 1; height: 1px; overflow: hidden; background: #ffffff26; }
.gallery-bar span { position: absolute; inset: 0; background: #dbb675; transform: scaleX(0); transform-origin: left; transition: transform .35s ease-out; }
.gallery-cities { margin-top: 18px; color: #9d9a93; font-size: 12px; }
#eventi { position: relative; isolation: isolate; }
#eventi::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #000; opacity: calc(var(--dim, 0) * .75); pointer-events: none; }
#eventi.is-pinned { padding-block: 0; }
.is-pinned .gallery-pin { position: sticky; top: var(--gallery-top, 0px); display: flex; flex-direction: column; justify-content: center; height: var(--gallery-height, 100vh); height: var(--gallery-height, 100svh); padding-block: 24px; overflow: hidden; }
.is-pinned .track { touch-action: pan-y pinch-zoom; overflow-x: hidden; scroll-snap-type: none; margin-top: 32px; }
.is-pinned .event-card { flex-basis: clamp(320px, calc((100vh - 240px) * .8), 640px); flex-basis: clamp(320px, calc((100svh - 240px) * .8), 640px); }
.is-pinned .gallery-cities { display: none; }
.has-effects .event-img, .has-effects .event-card:hover .event-img { transform: scale(calc(1 + var(--focus, 0) * .08)); filter: brightness(calc(.45 + var(--focus, 1) * .55)); transition: none; will-change: transform; }
.has-effects .info { opacity: calc(.45 + var(--focus, 1) * .55); }
.speaker, .location { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.speaker-copy { max-width: 520px; }
.speaker-copy h2 { margin: 8px 0 20px; font-size: clamp(30px, 3.4vw, 42px); }
.speaker-copy strong { display: block; margin-bottom: 10px; }
.speaker-copy p { color: var(--gray); }
.speaker-photo { width: 100%; max-width: 460px; justify-self: end; aspect-ratio: 4 / 5; }
.eco { border-color: #514d45; }
.eco h3 { margin-bottom: 12px; }
.eco p { color: #bebeb9; }
.location h3 { margin-top: 24px; margin-bottom: 12px; }
.location-shot { aspect-ratio: 4 / 3; align-self: stretch; height: 100%; }
.registration { margin-top: 32px; padding: clamp(20px, 4vw, 36px); border-radius: 12px; background: #fff; color: #101010; text-align: left; }
.registration-field { margin-bottom: 22px; }
.registration-field label { display: block; margin-bottom: 8px; font-weight: 600; }
.registration-field input, .registration-field select { width: 100%; min-width: 0; min-height: 46px; padding: 12px; border: 1px solid #b9b9b9; border-radius: 5px; background: #fff; color: #101010; font: inherit; }
.registration input:focus-visible, .registration select:focus-visible { outline: 2px solid #8b6a23; outline-offset: 3px; }
.registration-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; }
.registration-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }
.registration-error { margin-top: 8px; color: #a01717; font-size: 14px; }
.registration-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.registration-actions button:disabled { opacity: .65; cursor: wait; }
.registration-success p { margin-top: 12px; }
.location .details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: 14px; }
.details > div { padding-block: 6px; }
#faq { padding-top: 12px; }
.faq > * { max-width: 850px; }
.faq h2 { margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 22px 28px 22px 0; cursor: pointer; font-size: 16px; font-weight: 700; }
.faq details p { padding: 0 24px 24px 0; color: var(--gray); font-size: 15px; }
#accesso h2 { margin-inline: auto; }
.footer { padding-block: 32px; background: #080808; color: #aaa; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer p { font-size: 12px; }
.sticky { display: none; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 20px; background: #fff; color: #111; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 900px) {
    .object, .speaker, .location { gap: 36px; }
    .nav-links { gap: 18px; }
    .program-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .program-head .lead { margin-top: 22px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}

@media (max-width: 700px) {
    .nav { padding-block: 16px; }
    .nav-inner { gap: 12px; }
    .logo-mark { width: 116px; }
    .nav-links { display: none; }
    .nav .btn { font-size: 9px; padding-inline: 10px; gap: 8px; }
    .hero-grid { padding-block: 56px 108px; }
    .hero h1 { font-size: clamp(32px, 9vw, 40px); line-height: 1.12; }
    .hero .desc { font-size: 15px; line-height: 1.6; }
    .hero .eyebrow { max-width: 300px; font-size: 10px; letter-spacing: .12em; }
    .hero .meta { font-size: 12px; }
    .meta { flex-direction: column; gap: 8px; }
    .hero .cta { gap: 16px; }
    .benefit-grid, .ecos, .object, .speaker, .location { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .benefit h3 { max-width: none; }
    .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-top: 32px; }
    .step { padding: 0 0 22px 28px; border-top: 0; border-left: 1px solid var(--line); }
    .step:last-child { padding-bottom: 0; border-left-color: transparent; }
    .step::before { top: 2px; left: -5px; }
    .step span { margin-bottom: 4px; }
    .gallery-head { align-items: start; gap: 16px; }
    .track { gap: 16px; margin-top: 32px; -webkit-mask-image: none; mask-image: none; }
    .info { padding-top: 16px; }
    .info::before { margin-bottom: 8px; }
    .info strong { font-size: 22px; }
    .speaker-copy { max-width: none; }
    .location-shot { order: -1; height: auto; }
    .footer { padding-block: 40px 112px; }
    .footer .container { align-items: center; flex-direction: column; gap: 10px; text-align: center; }
    .footer .logo { margin-bottom: 10px; }
    .sticky { display: block; position: fixed; inset: auto 0 0; z-index: 20; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); background: #101010f5; border-top: 1px solid #685631; visibility: hidden; transform: translateY(100%); transition: transform .4s cubic-bezier(.2, .7, .2, 1), visibility 0s .4s; }
    .sticky.is-visible { visibility: visible; transform: translateY(0); transition: transform .4s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
    .sticky .btn { width: 100%; }
    #accesso { scroll-margin-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
