:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --card: #ffffff;
  --border: #e4e9f2;
  --text: #0b1733;
  --text-dim: #586079;
  --accent: #0b3d2a;
  --accent-dim: #07301f;
  --brand-blue: #0b3d2a;
  --danger: #d92d2d;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(11, 23, 51, 0.06);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, .section-title, .hero-banner-content h1, .program-day-title, .program-body h4 {
  font-family: var(--font-display);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header: logo grande e centrato, menu a sinistra e destra, sfondo blu del logo */
.site-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 17px 40px;
  background: #0b3d2a;
}
/* Luce proiettata: pozze di luce dai faretti in alto + ombra in basso */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 130% at 22% -45%, rgba(150, 255, 205, 0.30), transparent 55%),
    radial-gradient(65% 125% at 74% -40%, rgba(125, 215, 255, 0.22), transparent 55%),
    radial-gradient(55% 100% at 50% 135%, rgba(0, 0, 0, 0.32), transparent 70%);
  pointer-events: none;
}
/* Fasci di luce diagonali, morbidi */
.site-header::after {
  content: '';
  position: absolute;
  top: -70%;
  left: 0;
  right: 0;
  height: 240%;
  background:
    linear-gradient(102deg, transparent 40%, rgba(180, 255, 220, 0.12) 45%, rgba(180, 255, 220, 0.04) 49%, transparent 53%),
    linear-gradient(256deg, transparent 40%, rgba(150, 230, 255, 0.10) 45%, rgba(150, 230, 255, 0.03) 49%, transparent 53%);
  filter: blur(3px);
  pointer-events: none;
}
.site-header > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; justify-content: center; }
.brand-logo { height: 129px; width: auto; display: block; }
.brand-text { font-weight: 700; font-size: 2rem; color: #fff; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.site-nav a { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.inline-form { margin: 0; }
.btn-light, .site-nav a.btn-light { background: #fff; color: #0b3d2a; }
.btn-light:hover, .site-nav a.btn-light:hover { background: rgba(255, 255, 255, 0.88); color: #0b3d2a; text-decoration: none; }
.nav-right .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: transparent; }
.nav-right .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.site-nav a.btn-exhibitor {
  background: #fff;
  color: #0b3d2a;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav a.btn-exhibitor:hover { background: rgba(255, 255, 255, 0.88); color: #0b3d2a; text-decoration: none; }

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr; justify-items: center; gap: 16px; text-align: center; padding: 20px; }
  .brand-logo { height: 91px; }
  .nav-left, .nav-right { justify-content: center; flex-wrap: wrap; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--border); }
.btn-danger:hover { border-color: var(--danger); }
.btn-sm { padding: 7px 13px; font-size: 0.85rem; }

/* Main */
.site-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }

/* Hero banner con immagine a tutta larghezza e testo in sovraimpressione */
.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -40px;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 12, 40, 0.45) 0%, rgba(2, 16, 56, 0.62) 60%, rgba(2, 36, 120, 0.72) 100%);
}
.hero-banner-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 60px 24px;
  color: #fff;
}
.hero-banner-content .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.hero-banner-content h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 16px 0;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-banner-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin: 0 auto 30px;
}
.hero-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

@media (max-width: 720px) {
  .hero-banner { min-height: 480px; background-position: center top; }
}

/* Immagine people a tutta larghezza, sovrapposta sopra l'hero di ~5cm */
.people-banner { position: relative; z-index: 3; width: 100vw; margin-left: calc(50% - 50vw); margin-top: -189px; line-height: 0; }
.people-banner img { width: 100%; height: auto; display: block; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
}
.hero .eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 14px 0;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero p { color: var(--text-dim); font-size: 1.2rem; max-width: 620px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(11, 23, 51, 0.1); text-decoration: none; }
.card h3 { margin: 0 0 6px; }
.card .meta { color: var(--text-dim); font-size: 0.9rem; }
.card p { color: var(--text-dim); }

.section-title { font-size: 1.6rem; margin: 52px 0 22px; letter-spacing: -0.01em; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(11, 61, 42, 0.08);
  color: var(--accent);
  border: 1px solid rgba(11, 61, 42, 0.22);
}
.badge-muted { background: var(--bg-soft); color: var(--text-dim); border-color: var(--border); }

/* Forms */
.auth-wrap { max-width: 440px; margin: 40px auto; }
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-card h1 { margin: 0 0 6px; font-size: 1.6rem; }
.form-card .sub { color: var(--text-dim); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 61, 42, 0.12);
}
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; }
.btn-block { width: 100%; }
.form-foot { margin-top: 18px; text-align: center; color: var(--text-dim); font-size: 0.9rem; }
.alert {
  background: rgba(217, 45, 45, 0.08);
  border: 1px solid rgba(217, 45, 45, 0.3);
  color: #a31f1f;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.table th { color: var(--text-dim); font-weight: 600; }
.table form { margin: 0; display: inline; }
.table select { background: #fff; border: 1px solid var(--border); color: var(--text); padding: 6px 9px; border-radius: 8px; }

/* Event detail */
.event-detail .meta-grid { display: flex; gap: 28px; flex-wrap: wrap; margin: 24px 0; }
.event-detail .meta-grid .item .label { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-detail .meta-grid .item .value { font-size: 1.1rem; font-weight: 600; }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 12px; }
.muted { color: var(--text-dim); }

.dash-panel { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }

/* Programma: layout a due colonne (intro a sinistra, timeline a destra) */
.program-section {
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}
.program-intro { position: sticky; top: 24px; }
.program-intro-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.program-intro h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.program-intro p { color: var(--text-dim); font-size: 1.05rem; margin: 0 0 26px; }
.program-intro-meta { display: flex; gap: 14px; margin-bottom: 28px; }
.program-intro-stat {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}
.program-intro-stat strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--accent); margin-bottom: 4px; }
.program-intro-stat span { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

.day-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.day-tab { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.program-day { margin-bottom: 44px; }
.program-day-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.program-day-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  display: inline-block;
}
/* Nel layout a colonne le date restano grandi ma proporzionate alla colonna */
.program-main .program-day-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

/* Programma: lista pulita con hairline sottili allineate alla data */
.program-list { display: flex; flex-direction: column; }
.program-item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.program-item:hover .program-body h4 { color: var(--accent); }
.program-img { display: none; }
.program-thumb { display: none; }
.program-body { padding: 0; }
.program-time {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.program-body h4 { margin: 4px 0 8px; font-size: 1.18rem; transition: color 0.18s ease; }
.program-body p { margin: 0; color: var(--text-dim); }
.program-break {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 600;
}
.program-break .program-time { margin-bottom: 0; }

@media (max-width: 860px) {
  .program-section { grid-template-columns: 1fr; gap: 28px; }
  .program-intro { position: static; }
}

/* Sezione "Che cos'è" */
.about { max-width: 820px; margin: 8px auto 0; }
.about .section-title { margin-top: 40px; }
.about p { font-size: 1.12rem; color: var(--text-dim); margin: 0 0 18px; }
.about p:first-of-type { color: var(--text); font-size: 1.2rem; }

/* Banner rotante imprese partecipanti */
.marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 36px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; }
.marquee-item img { height: 34px; width: auto; display: block; opacity: 0.72; transition: opacity 0.2s ease; }
.marquee-item img:hover { opacity: 1; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Banner partner tecnologici */
.tech-banner {
  margin-top: 56px;
  padding: 44px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.tech-banner h2 { margin: 0 0 28px; font-size: 1.5rem; letter-spacing: -0.01em; color: #000; }
.tech-logos {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 56px;
}
.tech-logo img { height: 52px; width: auto; display: block; opacity: 0.95; transition: opacity 0.2s ease; }
.tech-logo img:hover { opacity: 1; }

/* Biglietti */
.ticket-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.ticket-card {
  background: var(--brand-blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.ticket-card .badge { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.3); }
.ticket-card h2 { margin: 14px 0 6px; font-size: 1.8rem; }
.ticket-card .muted { color: rgba(255,255,255,0.82); }
.ticket-perks { list-style: none; padding: 0; margin: 20px 0; }
.ticket-perks li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.18); }
.ticket-price { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; }
.ticket-price .amount { font-size: 2.6rem; font-weight: 800; }
.ticket-price .muted { color: rgba(255,255,255,0.82); }
.ticket-form h3 { margin-top: 0; }
@media (max-width: 720px) { .ticket-layout { grid-template-columns: 1fr; } }

/* Footer grande */
.site-footer {
  background: #0b3d2a;
  color: #fff;
  margin-top: auto;
}
.footer-top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .footer-logo { height: 88px; width: auto; display: block; margin-bottom: 16px; }
.footer-brand p { color: rgba(255, 255, 255, 0.78); max-width: 280px; margin: 0; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.65); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.9); font-weight: 500; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-bottom-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 24px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Notifiche dashboard */
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; }
.notice-ok { background: rgba(11, 61, 42, 0.1); border: 1px solid rgba(11, 61, 42, 0.3); color: var(--accent-dim); }
.notice-err { background: rgba(217, 45, 45, 0.08); border: 1px solid rgba(217, 45, 45, 0.3); color: #a31f1f; }

/* Form espositore */
.field-check label { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.95rem; cursor: pointer; }
.field-check input { width: auto; }
.field small { display: block; margin-top: 6px; }
.logo-preview { margin-bottom: 10px; }
.logo-preview img { max-height: 80px; max-width: 220px; width: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: #fff; }

/* Griglia espositori */
.exhibitors-section { margin-top: 56px; }
.exhibitors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.exhibitor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.exhibitor-card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.exhibitor-logo { height: 90px; display: flex; align-items: center; justify-content: center; }
.exhibitor-logo img { max-height: 90px; max-width: 100%; width: auto; object-fit: contain; }
.exhibitor-name { font-weight: 600; text-align: center; color: var(--text); }

/* Pagina espositore pubblica */
.exhibitor-page { max-width: 760px; margin: 0 auto; }
.exhibitor-page-logo { margin-bottom: 24px; }
.exhibitor-page-logo img { max-height: 140px; max-width: 320px; width: auto; object-fit: contain; }
.exhibitor-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 16px; }
.exhibitor-page-body { margin-top: 20px; line-height: 1.7; }
.exhibitor-page-body p { margin: 0 0 16px; }
