/* Palette ispirata alla locandina MedTech Next 2026 */
/* Font ospitati sul sito (nessuna richiesta a Google Fonts): vedi assets/fonts/README.md */
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/roboto-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b1622;        /* sfondo principale (pannello scuro locandina) */
  --ink-2: #0f1f2e;      /* sfondo alternato */
  --panel: #0a1d2c;
  --card: #122636;
  --line: rgba(120, 180, 230, .16);
  --blue: #0b58a0;       /* blu elettrico locandina */
  --blue-2: #1a73d9;
  --cyan: #3fd4e8;
  --text: #e8f0f7;
  --muted: #93a8bc;
  --grad: linear-gradient(90deg, #4fe0ea 0%, #2b9be8 45%, #1a5fd6 100%);
  --radius: 10px;
  --max: 1160px;
  --sans: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.mono { font-family: var(--mono); }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block; padding: .8em 1.5em; border-radius: 6px;
  background: var(--blue-2); color: #fff; font-weight: 700; text-decoration: none;
  border: 2px solid var(--blue-2); transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: #2a86f0; border-color: #2a86f0; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; font-family: var(--mono); }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-small { padding: .45em 1em; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 34, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { color: #fff; font-weight: 900; font-size: 1.3rem; text-decoration: none; letter-spacing: -.01em; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* Network canvas */
.network { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* Hero: due pannelli come la locandina (blu a sinistra, scuro a destra) */
.hero {
  --split: 59%;
  --pad-l: clamp(24px, 6vw, 88px);
  --pad-r: clamp(24px, 3.5vw, 56px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: var(--split) 1fr;
  align-content: center; row-gap: 0;
  min-height: calc(100vh - 64px); padding: 64px 0;
  background: linear-gradient(180deg, #0a1d2c 0%, #092936 55%, #0f212d 100%);
}
.hero-bg {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--split);
  background:
    radial-gradient(ellipse at 30% 30%, #1e74d0 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, #0a3f7a 0%, transparent 60%),
    linear-gradient(160deg, #0f63b5 0%, #0a4d92 55%, #0a3566 100%);
}
.hero-bg::after { /* sfuma verso il pannello scuro */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(10,29,44,.5)); pointer-events: none;
}
.hero > :not(.hero-bg) { position: relative; z-index: 1; }
.hero .hero-l { grid-column: 1; padding-left: var(--pad-l); padding-right: 24px; }
.hero .hero-r { grid-column: 2; padding-left: var(--pad-r); padding-right: var(--pad-r); }

.eyebrow { font-size: clamp(1rem, 1.8vw, 1.5rem); letter-spacing: .04em; margin: 0; color: #fff; align-self: end; }
.side-block { align-self: start; }
.side-label { font-size: .9rem; margin: 0 0 .8rem; color: #d3dfea; }
.side-logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.side-logos img { height: 64px; width: auto; }

.wordmark {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end;
  font-size: min(10.4vw, 156px); font-weight: 900; letter-spacing: -.035em;
  line-height: .92; margin: 40px 0 0; color: #fff; white-space: nowrap;
}
.wordmark .hero-l { padding-right: 0; }

.hero-content { margin-top: .5rem; }
.year { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; margin: 0 0 .3em; line-height: 1; }
.claim { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.15; max-width: 16em; margin: 0 0 2rem; letter-spacing: -.01em; }
.announce {
  display: inline-flex; align-items: center; gap: 10px; font-size: .9rem;
  padding: .55em 1em; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; background: rgba(5,25,50,.35);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,212,232,.7); } 70% { box-shadow: 0 0 0 10px rgba(63,212,232,0); } 100% { box-shadow: 0 0 0 0 rgba(63,212,232,0); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.features { list-style: none; margin: 2.2rem 0 0; display: grid; gap: 2rem; align-self: start; }
.features li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.features svg { width: 52px; height: 52px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.features strong { display: block; font-weight: 700; color: #fff; }
.features span { display: block; color: #d3dfea; font-size: .92rem; line-height: 1.55; }

/* Sections */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--ink-2); }
.kicker { color: var(--cyan); font-size: .9rem; margin: 0 0 .8rem; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin-bottom: 2.8rem; }
.section-lead em { color: var(--text); }
.center .section-lead { margin-left: auto; margin-right: auto; }
.subhead { margin: 3.5rem 0 1.4rem; font-size: 1.35rem; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.card-tag { color: var(--cyan) !important; font-size: .82rem; margin: 0 0 .9rem !important; text-transform: uppercase; letter-spacing: .05em; }
.org img { height: 80px; width: auto; margin-bottom: 1.2rem; }
.org a { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: none; font-size: .9rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); font-family: var(--mono); font-weight: 700; }

/* Tabs */
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 4px; margin-bottom: 2.5rem; background: var(--ink); }
.tabs [role="tab"] {
  font: 700 1rem var(--mono); border: 0; background: transparent; color: var(--muted);
  padding: .55em 1.6em; border-radius: 6px; cursor: pointer;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--blue-2); color: #fff; }
.tabs [role="tab"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.edition-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.edition-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.03em; }
.edition-grid p { color: var(--muted); }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid var(--cyan); color: var(--cyan); padding: .3em .8em; border-radius: 4px; margin-bottom: 1rem;
}
.badge-soon { border-color: #ffc94d; color: #ffc94d; }
.tagline { color: var(--cyan) !important; font-weight: 500; margin-top: -.4rem; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 2rem; font-size: .92rem; }
.facts li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; }
.facts strong { min-width: 90px; color: #fff; }
.facts span { color: var(--muted); }

.teaser {
  position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(150deg, #0f63b5, #0a3566); display: grid; place-items: center;
}
.teaser span { position: relative; font-size: clamp(3.5rem, 9vw, 6.5rem); font-weight: 900; letter-spacing: -.04em; }

.poster { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: transform .3s; }
.poster:hover { transform: translateY(-4px); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 10px; text-align: center; background: var(--card); }
.stat-num { display: block; font-size: 2.4rem; font-weight: 900; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: .8rem; }

.speakers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.speaker { text-align: center; display: flex; flex-direction: column; align-items: center; }
.speaker strong { font-size: 1.05rem; }
.speaker span { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.avatar {
  width: 104px; height: 104px; border-radius: 50%; margin-bottom: .9rem;
  display: grid; place-items: center; font: 700 1.5rem var(--mono); color: #fff;
  background: linear-gradient(135deg, #0f63b5, #0a3566); border: 2px solid rgba(63,212,232,.45);
  position: relative; overflow: hidden;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.agenda { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.agenda li { display: flex; gap: 1.5rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.agenda li:last-child { border-bottom: 0; }
.agenda time { font-weight: 700; color: var(--cyan); min-width: 56px; }
.agenda small { display: block; color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.agenda .abstract { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; max-width: 760px; }

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.logos img { height: 84px; width: auto; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--card); aspect-ratio: 3/2; }
.gallery a.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; filter: saturate(.9); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); filter: saturate(1.05); }
.gallery a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.gallery-note { color: var(--muted); font-size: .8rem; margin-top: .8rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(4, 10, 18, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 140px); border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-bar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.lb-count { color: #d3dfea; font-size: .9rem; }
.lb-close {
  background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: .6em 1.2em;
  font-weight: 700; font-size: .95rem; cursor: pointer; display: inline-flex; gap: .5em; align-items: center;
}
.lb-close:hover { background: var(--cyan); }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35);
  width: 56px; height: 56px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lightbox button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Sponsor */
.tiers h3 { font-size: 1.5rem; }
.tiers ul { padding-left: 1.1rem; margin: 0; color: var(--muted); }
.tiers li { margin: .45rem 0; }
.tier-featured { border-color: var(--blue-2); background: linear-gradient(180deg, rgba(26,115,217,.18), var(--card) 60%); }
.cta-row { margin-top: 2.8rem; }

/* CTA */
.cta-section { overflow: hidden; background: linear-gradient(160deg, #0f63b5 0%, #0a4d92 55%, #0a3566 100%); }
.cta-section .container { position: relative; z-index: 1; }
.cta-section .kicker { color: #fff; opacity: .8; }
.cta-section .section-lead { color: rgba(255,255,255,.85); }

/* Footer */
.site-footer { background: #070f18; color: rgba(255,255,255,.55); padding: 28px 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 0; background: var(--panel); }
  .hero-bg { width: 100%; bottom: auto; height: var(--blue-h, 100%); }
  .hero-bg::after { display: none; }
  .hero .hero-l, .hero .hero-r { grid-column: 1; padding-left: 24px; padding-right: 24px; }
  .hero .eyebrow { order: 1; padding-top: 56px; }
  .wordmark { order: 2; display: block; grid-column: 1; padding: 0 24px; font-size: 17vw; margin-top: 1rem; white-space: normal; }
  .wordmark .hero-r { display: block; }
  .wordmark .hero-l, .wordmark .hero-r { padding: 0; }
  .hero-content { order: 3; padding-bottom: 56px; }
  .features { order: 4; margin: 0; padding-top: 48px !important; padding-bottom: 32px !important; background: var(--panel); }
  .side-block { order: 5; padding-bottom: 48px !important; background: var(--panel); }
  .cards-3, .edition-grid { grid-template-columns: 1fr; }
  .speakers { grid-template-columns: repeat(2, 1fr); }
  .poster { max-width: 460px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1rem;
    background: var(--panel); padding: 20px 24px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .cards-2, .checklist { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 180px); border-radius: 0; }
  .lb-nav { top: auto; bottom: 24px; transform: none; }
  .section { padding: 72px 0; }
  .agenda li { flex-direction: column; gap: .3rem; padding: 1rem 1.2rem; }
  .logos { gap: 28px; }
  .logos img { height: 64px; }
  .side-logos img { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}

/* Selettore lingua */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; overflow: hidden; font-size: .8rem; }
.lang-switch > * { padding: .35em .7em; text-decoration: none; color: rgba(255,255,255,.7); font-weight: 700; }
.lang-switch a:hover { color: #fff; background: rgba(255,255,255,.1); }
.lang-switch [aria-current] { background: #fff; color: var(--ink); }
.footer-links a { margin: 0 .2em; }

/* 2027: domanda guida, percorso, call */
.big-question {
  font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.12; letter-spacing: -.02em;
  margin: 0 0 .4rem; color: #fff;
}
.edition-grid p.big-question { color: #fff; }
.big-question-sub { color: var(--cyan) !important; font-size: .9rem; margin: 0 0 1.2rem; }
.wip { display: inline-block; vertical-align: middle; margin-left: .6rem; font-size: .7rem; font-weight: 500; color: #ffc94d; border: 1px dashed #ffc94d; padding: .2em .6em; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; }
.path-intro { color: var(--muted); max-width: 640px; margin: -.6rem 0 1.6rem; }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.path-step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; overflow: hidden; }
.path-step::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); }
.path-step:nth-child(2)::before { opacity: .7; }
.path-step:nth-child(3)::before { opacity: .45; }
.path-num { color: var(--cyan); font-size: .85rem; }
.path-step h5 { margin: .4rem 0 .2rem; font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; }
.path-sub { color: #d3dfea !important; font-size: .82rem; margin: 0 0 1rem !important; }
.path-step p { color: var(--muted); margin: 0; }
.path-step em { color: var(--text); font-style: normal; font-weight: 600; }

.call {
  margin-top: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 32px; border-radius: var(--radius); border: 1px solid rgba(63,212,232,.4);
  background: linear-gradient(160deg, rgba(15,99,181,.35), rgba(10,53,102,.35));
}
.call h4 { font-size: 1.6rem; margin: 0 0 .5rem; }
.call p { color: #d3dfea; margin: 0 0 1rem; max-width: 640px; }
.call .kicker { margin-bottom: .4rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: .8rem; }
.tags li { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .25em .9em; color: #fff; }
.call .btn-light { white-space: nowrap; }

@media (max-width: 980px) {
  .path { grid-template-columns: 1fr; }
  .call { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 720px) {
  .lang-switch { align-self: flex-start; }
  .footer-links { display: block; }
}

/* Testo per motori di ricerca e screen reader, non visibile */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
