/* ==========================================================================
   ContributImprese Torino 2026 — v2 "Editoriale" (da milano2)
   Finera — Brand tokens da BRAND IDENTITY/BRAND GUIDELINE/
   ========================================================================== */

/* ---------- Font serviti da eventi.finera.it (30/09), al posto di Google Fonts ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/montserrat-var-latin-ext-v1.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/montserrat-var-latin-v1.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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin-ext-v1.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin-v1.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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin-ext-v1.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin-v1.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: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/poppins-800-latin-ext-v1.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/poppins-800-latin-v1.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 di riserva con le stesse misure (Arial su iPhone e desktop, Roboto su Android): evitano il salto della pagina quando arrivano i font */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 112.52%; ascent-override: 86.03%; descent-override: 22.31%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback Android"; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 113.23%; ascent-override: 85.49%; descent-override: 22.17%; line-gap-override: 0%; }
@font-face { font-family: "Poppins Fallback"; font-weight: 100 900; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 106.61%; ascent-override: 98.49%; descent-override: 32.83%; line-gap-override: 9.38%; }
@font-face { font-family: "Poppins Fallback Android"; font-weight: 100 900; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 113.02%; ascent-override: 92.91%; descent-override: 30.97%; line-gap-override: 8.85%; }

:root {
  --green-950: #023b2b;
  --green-900: #03533b;
  --green-800: #096548;
  --green-600: #63b34e;
  --lime: #cdfd7c;
  --cream: #f7f7f1;
  --paper: #fffef9;
  --ink: #193128;
  --muted: #66716b;
  --line: #dce7df;
  --gold: #e9aa25;
  --orange: #e6520f;

  --tint-lime-10: rgba(205, 253, 124, .1);
  --tint-lime-16: rgba(205, 253, 124, .16);
  --tint-green-06: rgba(9, 101, 72, .06);
  --shadow-soft: 0 24px 70px rgba(3, 83, 59, .12);
  --shadow-hard: 0 30px 90px rgba(2, 59, 43, .28);

  --container: 1320px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-body: "Montserrat", "Montserrat Fallback", "Montserrat Fallback Android", Arial, sans-serif;
  --font-display: "Poppins", "Poppins Fallback", "Poppins Fallback Android", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--lime); color: var(--green-950); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.03; letter-spacing: -.03em; }
p { margin: 0; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 84px 0; }

/* ---------- Type scale ---------- */
h2 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

.eyebrow, .section-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green-800);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow-center { display: block; text-align: center; }
.eyebrow-light, .section-index-light { color: var(--lime); }
.statement { max-width: 62ch; margin-top: 20px; color: var(--green-600); font-size: 1.15rem; font-weight: 700; line-height: 1.5; }

.section-head { max-width: 900px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 4px; }

/* ---------- Ghost numerals (editorial background marks) ---------- */
.bg-numeral {
  position: absolute;
  top: 12px;
  right: 6px;
  z-index: 0;
  color: rgba(9, 101, 72, .06);
  font: 800 clamp(6rem, 24vw, 18rem)/.8 var(--font-display);
  letter-spacing: -.05em;
  pointer-events: none;
  user-select: none;
}
.bg-numeral-light { color: rgba(205, 253, 124, .08); }
.section > .container { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 56px;
  padding: 8px 8px 8px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--green-900);
  color: #fff;
  font: 700 14px/1.2 var(--font-body);
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(3, 83, 59, .18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.btn-label { white-space: nowrap; }
.btn-arrow {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.btn-arrow::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.btn-arrow::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 10px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}
.btn-primary { background: linear-gradient(105deg, var(--green-950), var(--green-600)); }
.btn-primary .btn-arrow { background: var(--lime); color: var(--green-950); }
.btn-lime { background: linear-gradient(105deg, var(--lime), #b4ef62); color: var(--green-950); box-shadow: 0 14px 34px rgba(205, 253, 124, .22); }
.btn-lime .btn-arrow { background: var(--green-950); color: #fff; }
.btn-compact { min-height: 44px; padding: 5px 5px 5px 18px; font-size: 11px; letter-spacing: .04em; }
.btn-compact .btn-label { text-transform: uppercase; }
.btn-compact .btn-arrow { flex-basis: 30px; width: 30px; height: 30px; }
.btn-compact .btn-arrow::before { top: 8px; right: 8px; width: 6px; height: 6px; }
.btn-compact .btn-arrow::after { top: 14px; left: 9px; width: 12px; }
.btn-large { min-height: 62px; padding: 10px 10px 10px 30px; font-size: 15px; }
.field-wide.btn { width: 100%; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); filter: saturate(1.08) brightness(1.02); box-shadow: 0 20px 46px rgba(3, 83, 59, .24); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, .88);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 74px; }
.logo-link { display: block; flex: 0 0 auto; }
.logo { width: 116px; height: auto; }
.header-inner .btn-label { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 60px;
  background: var(--green-950);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 640px at 82% -10%, rgba(205, 253, 124, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(99, 179, 78, .18), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero-container { position: relative; z-index: 2; }
.eyebrow.reveal { color: var(--lime); }
.hero-meta-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.hero-meta-badge .hmb-dot { color: var(--lime); }

.tour-strip { padding: 30px 0; background: var(--cream); border-bottom: 1px solid var(--line); text-align: center; }
.tour-strip-lead { max-width: 62ch; margin: 0 auto 20px; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.5; }
.tour-strip-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.tour-strip-stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 96px; }
.tour-strip-stats strong { font: 800 1.7rem/1 var(--font-display); color: var(--green-800); }
.tour-strip-stats span { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tour-strip-stats a { color: var(--green-800); text-decoration: underline; text-underline-offset: 2px; }

.selection-strip { padding: 52px 0; background: var(--cream); border-bottom: 1px solid var(--line); text-align: center; }
.selection-strip-inner { max-width: 620px; margin: 0 auto; }
.selection-strip-inner .eyebrow { display: block; }
.selection-strip-inner h3 { margin: 6px 0 14px; font: 800 1.7rem/1.15 var(--font-display); color: var(--ink); }
.selection-strip-inner p { color: var(--ink); font-size: 1rem; line-height: 1.55; }
.selection-strip-inner p strong { color: var(--green-800); }

.hero-title {
  max-width: 15ch;
  margin: 18px 0 40px;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  font-weight: 800;
}
.reveal-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title-accent { color: var(--lime); }
.reveal-word { display: inline-block; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.hero-col-copy { max-width: 560px; }
.hero-sub { margin-bottom: 18px; color: var(--lime); font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.32; letter-spacing: -.015em; }
.hero-lead { margin-bottom: 28px; max-width: 54ch; color: rgba(255, 255, 255, .78); font-size: .98rem; }

.hero-col-media { display: grid; gap: 20px; }
.hero-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hard); }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.hero-media-branded img { aspect-ratio: 16 / 9; filter: none; }
.hero-media-tag { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 6px; }
.hero-media-tag span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--green-950); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.hero-event-name {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: grid; gap: 2px; min-width: 210px;
  padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px 14px 40px 14px;
  background: rgba(2, 59, 43, .82); backdrop-filter: blur(8px);
}
.hero-event-name small { color: var(--lime); font-size: 8.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-event-name strong { font: 700 18px/1.1 var(--font-display); letter-spacing: -.02em; }
.hero-event-name span { color: rgba(255, 255, 255, .78); font-size: 10px; font-weight: 800; letter-spacing: .16em; }

.event-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.event-card-row {
  display: grid; gap: 3px; padding: 15px 18px;
  border: 1px solid rgba(205, 253, 124, .28); border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}
.event-card-row span { color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.event-card-row strong { font: 700 15px/1.2 var(--font-display); letter-spacing: -.01em; }
.event-card-row em { font-style: normal; color: rgba(255, 255, 255, .68); font-size: 11px; }

.availability {
  padding: 18px 20px 16px; border: 1px solid rgba(205, 253, 124, .22); border-radius: 18px;
  background: rgba(0, 0, 0, .16);
}
.availability-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.availability-head strong { color: var(--lime); font: 700 15px/1.2 var(--font-display); }
.availability-head span { color: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 700; }
.availability-track, .spots-track {
  position: relative; height: 10px; overflow: hidden; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
.availability-track span, .spots-track span {
  position: absolute; inset: 0 auto 0 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), var(--lime));
}
.availability p { margin: 10px 0 0; color: rgba(255, 255, 255, .56); font-size: 10.5px; line-height: 1.5; }

/* ---------- Marquee ticker ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--green-950);
}
.marquee-track {
  display: flex; align-items: center; gap: 14px; width: max-content;
  padding: 12px 0;
  color: var(--lime);
  font: 700 12px/1 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}
.marquee-track .dot { color: rgba(255, 255, 255, .3); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Authority ---------- */
.authority { padding: 34px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.authority-inner img { width: min(100%, 980px); max-height: 68px; margin: 0 auto; object-fit: contain; opacity: .7; filter: grayscale(1); }

/* ---------- Problem ---------- */
.problem { overflow: hidden; background: var(--paper); }
.problem-grid { display: grid; gap: 40px; }
.problem-context { color: var(--muted); font-size: 1rem; }
.problem-context p + p { margin-top: 20px; }
.mistakes { border-top: 1px solid var(--line); }
.mistakes li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.mistakes li > span { font: 700 24px/1 var(--font-display); color: var(--green-600); }
.mistakes p { margin: 2px 0 0; font-size: 1.02rem; font-weight: 600; line-height: 1.5; }
.conversion-row { display: grid; gap: 28px; margin-top: 44px; }
.spots { display: block; }
.spots-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.spots-copy strong { color: var(--green-800); font-size: 11px; letter-spacing: .08em; }
.spots-copy span { color: var(--muted); font-size: 10.5px; font-weight: 700; }
.spots-track { height: 11px; background: #e2e9e3; }
.spots-track span { background: linear-gradient(90deg, var(--green-900), var(--green-600), var(--lime)); }

/* ---------- Gallery marquee ---------- */
.gallery-wrap { overflow: hidden; padding: 0; background: var(--paper); }
.gallery-track {
  display: flex; gap: 10px; width: max-content; padding: 6px 20px 60px;
  animation: gallery-scroll 42s linear infinite;
}
.gallery-track:hover { animation-play-state: paused; }
.gallery-track figure { margin: 0; flex: 0 0 auto; width: 78vw; max-width: 340px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); }
@keyframes gallery-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Format (dark) ---------- */
.format { overflow: hidden; background: linear-gradient(150deg, var(--green-950), var(--green-800)); color: #fff; }
.format-grid { display: grid; gap: 36px; }
.format h2 { color: #fff; }
.format-copy p { max-width: 60ch; color: rgba(255, 255, 255, .74); }
.feature-list { margin-top: 34px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.feature-list li > span { font: 700 20px/1 var(--font-display); color: var(--lime); }
.feature-list p { margin: 0; color: rgba(255, 255, 255, .8); }
.feature-list strong { color: #fff; }

/* ---------- Venue ---------- */
.venue { background: var(--cream); }
.venue-grid { display: grid; gap: 24px; }
.venue-media { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.venue-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.86) contrast(1.03); }
.venue-copy { padding: 8px 4px; }
.venue-copy h2 { margin-bottom: 10px; color: var(--green-900); }
.venue-copy h3 { margin-bottom: 18px; color: var(--green-600); }
.venue-copy > p { color: var(--muted); }
.address { display: inline-block; margin-top: 20px; padding: 10px 16px; border-radius: 999px; background: var(--green-950); color: #fff; font-size: 12px; font-weight: 700; }
.btn-map {
  display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0;
  padding: 10px 16px; border: 1px solid var(--green-900); border-radius: 999px;
  background: transparent; color: var(--green-900); font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.btn-map:hover { background: var(--green-900); color: #fff; }
.btn-map-icon { position: relative; width: 10px; height: 10px; flex: none; }
.btn-map-icon::before, .btn-map-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: currentColor; transform: translate(-50%, -50%); }
.btn-map-icon::before { width: 10px; height: 1.5px; }
.btn-map-icon::after { width: 1.5px; height: 10px; transition: transform .2s var(--ease); }
.btn-map[aria-expanded="true"] .btn-map-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.venue-map { margin-top: 16px; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-soft); }
.venue-map iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ---------- Speakers ---------- */
.speakers { background: var(--paper); }
.speaker-grid { display: grid; gap: 16px; }
.speaker-card { display: grid; grid-template-columns: 108px 1fr; gap: 20px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream); }
.speaker-photo { aspect-ratio: 1; overflow: hidden; padding: 6px; border-radius: 50%; background: linear-gradient(135deg, #e2e2e2, #aeaeae); }
.speaker-photo img { width: 100%; height: 100%; border: 5px solid var(--cream); border-radius: 50%; object-fit: cover; object-position: top center; }
.speaker-info { position: relative; }
.speaker-number { display: block; margin-bottom: 6px; color: var(--green-600); font: 700 13px/1 var(--font-display); }
.speaker-info h3 { margin-bottom: 6px; color: var(--green-900); }
.speaker-info p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Program ---------- */
.program { padding-top: 0; background: var(--paper); }
.program-shell { display: grid; gap: 24px; padding: 32px; border-radius: var(--radius-lg); background: var(--cream); box-shadow: var(--shadow-soft); }
.program-head p:last-child { margin-top: 10px; color: var(--muted); }
.accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 22px; background: linear-gradient(100deg, var(--green-900), var(--green-600));
  color: #fff; font-weight: 700; cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion-icon { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.accordion-icon::before, .accordion-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: #fff; transform: translate(-50%, -50%); }
.accordion-icon::before { width: 14px; height: 2px; }
.accordion-icon::after { width: 2px; height: 14px; transition: transform .25s var(--ease); }
.accordion[open] .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.schedule { padding: 16px 22px 24px; }
.schedule div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.schedule div:last-child { border: 0; }
.schedule strong { color: var(--green-900); }
.schedule span { color: var(--muted); font-size: .92rem; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; gap: 36px; }
.about-copy h2 { margin-bottom: 8px; color: var(--green-900); font-size: clamp(2.6rem, 10vw, 4.6rem); }
.about-copy h3 { max-width: 32ch; margin-bottom: 20px; color: var(--green-600); font-weight: 600; line-height: 1.32; }
.about-copy > p { color: var(--muted); }
.quote-block { margin: 26px 0; padding: 22px 24px; border-left: 4px solid var(--lime); border-radius: 0 14px 14px 0; background: var(--green-950); color: #fff; font-style: normal; font-size: 1.02rem; line-height: 1.5; }
.check-list { margin: 0 0 20px; }
.check-list li { position: relative; padding: 6px 0 6px 30px; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 800; }
.about-media { margin: 0; overflow: hidden; border-radius: 120px 20px 120px 20px; box-shadow: var(--shadow-soft); }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.82) contrast(1.03); }

/* ---------- Proof / testimonials ---------- */
.proof { background: #eaf1e9; }
.proof .section-head { max-width: 100%; }
.testimonial-strip { display: grid; gap: 16px; }
.testimonial { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.testimonial img:not(.testimonial-logo) { width: 170px; height: 52px; margin-bottom: 22px; object-fit: contain; object-position: left center; }
.testimonial p { flex: 1; margin-bottom: 16px; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.testimonial-foot { display: grid; gap: 8px; }
.stars { margin-bottom: 4px; color: var(--gold); letter-spacing: .12em; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; }
.reviewer-info { display: grid; gap: 2px; }

/* ---------- Roadmap ---------- */
.roadmap { overflow: hidden; background: var(--green-950); color: #fff; }
.roadmap-grid { display: grid; gap: 40px; }
.roadmap h2 { margin: 14px 0 18px; color: #fff; font-size: clamp(2.3rem, 8vw, 3.6rem); }
.roadmap-lead { margin-bottom: 6px; }
.benefits li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.benefits li > span { color: var(--lime); font: 700 12px/1.6 var(--font-display); }
.benefits h3 { margin-bottom: 4px; font-size: 1.02rem; letter-spacing: -.01em; }
.benefits p { margin: 0; color: rgba(255, 255, 255, .62); font-size: .88rem; }
.benefits em { font-style: normal; }
.roadmap-side { padding: 20px; border-radius: var(--radius-lg); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-hard); }
.roadmap-side > img { width: 100%; margin-bottom: 18px; border-radius: 16px; aspect-ratio: 4/3; object-fit: cover; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.countdown div { padding: 12px 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.countdown strong { display: block; color: var(--green-600); font: 700 24px/1 var(--font-display); }
.countdown span { display: block; margin-top: 4px; color: var(--muted); font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; }
.roadmap-side .btn { width: 100%; }
.roadmap-side .spots { margin-top: 22px; }
.roadmap-side .spots-copy strong, .roadmap-side .spots-copy span { color: var(--green-800); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 22px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--green-900); transform: translate(-50%, -50%); }
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform .25s var(--ease); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.6; }

/* ---------- Registration / form ---------- */
.registration { position: relative; overflow: hidden; padding: 84px 0; color: #fff; }
.registration-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 59, 43, .97) 0%, rgba(2, 59, 43, .93) 60%, rgba(2, 59, 43, .8) 100%), url("/milano/assets/gallery-4.jpg") center / cover no-repeat;
}
.registration-grid { position: relative; z-index: 2; display: grid; gap: 36px; }
.registration-copy h2 { margin-bottom: 16px; font-size: clamp(2.1rem, 7vw, 3.2rem); }
.registration-copy > p:last-child { color: rgba(255, 255, 255, .74); font-size: 1.05rem; }
.form-card { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 26px; border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-hard); }
.field { display: grid; gap: 6px; }
.field label { color: var(--green-900); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.form-card input, .form-card select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d4ded7; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.privacy { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.privacy input { width: 16px; min-height: 16px; margin: 2px 0 0; accent-color: var(--green-600); }
.form-note { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; text-align: center; }
.form-error { margin: 0; padding: 10px 14px; border: 1px solid rgba(230, 82, 15, .3); border-radius: 10px; background: rgba(230, 82, 15, .08); color: var(--orange); font-size: 12px; font-weight: 700; text-align: center; }
.form-step { display: contents; }
.form-step[hidden] { display: none; }
.form-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 2px; }
.form-step-dot { width: 30px; height: 4px; border-radius: 999px; background: #d4ded7; transition: background .2s var(--ease); }
.form-step-dot.is-active { background: var(--green-600); }
.btn-link { justify-self: center; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- Footer ---------- */
.footer { padding: 44px 0 120px; background: #1c211d; color: rgba(255, 255, 255, .62); }
.footer-inner { display: grid; gap: 20px; align-items: center; font-size: 11px; }
.footer img { width: 118px; filter: brightness(0) invert(1); opacity: .85; }
.footer p { margin: 0; line-height: 1.6; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer span { margin: 0 8px; }

/* ---------- Sticky bar ---------- */
.sticky-bar {
  position: fixed; inset: auto 0 0; z-index: 50;
  transform: translateY(100%);
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(2, 59, 43, .96);
  color: #fff;
  backdrop-filter: blur(14px);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .18);
  transition: transform .4s var(--ease);
}
.sticky-bar.is-active { transform: translateY(0); }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; padding: 10px 0; }
.sticky-label { display: none; font-size: 11px; font-weight: 700; }
.sticky-countdown { display: flex; gap: 6px; }
.sticky-countdown span { min-width: 40px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 9px; text-align: center; }
.sticky-countdown strong { display: block; color: var(--lime); font: 700 15px/1.1 var(--font-display); }
.sticky-bar .btn-compact .btn-label { display: none; }
.sticky-bar .btn-compact { min-height: 42px; padding: 4px; flex: 0 0 auto; }
.sticky-bar .btn-compact .btn-arrow { flex-basis: 34px; width: 34px; height: 34px; }
.sticky-bar .btn-compact .btn-arrow::before { top: 9px; right: 9px; width: 7px; height: 7px; }
.sticky-bar .btn-compact .btn-arrow::after { top: 16px; left: 10px; width: 14px; }

/* ==========================================================================
   Scroll reveal system
   ========================================================================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

.js-reveal .reveal-line .reveal-word {
  transform: translateY(110%);
  transition: transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-reveal .reveal-line.is-visible .reveal-word { transform: translateY(0); }

@media (scripting: none) {
  .reveal, .reveal-word { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal, .js-reveal .reveal-word { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track, .gallery-track { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.form-card input:focus-visible, .form-card select:focus-visible {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(99, 179, 78, .18);
}

/* ==========================================================================
   Responsive — mobile-first breakpoints (≥640px tablet, ≥1000px desktop, ≥1300px large)
   ========================================================================== */
@media (min-width: 640px) {
  .container { width: min(calc(100% - 64px), var(--container)); }
  .section { padding: 110px 0; }
  .header-inner .btn-label { display: inline; }

  .event-card { grid-template-columns: 1fr 1.3fr; }
  .speaker-card { grid-template-columns: 150px 1fr; padding: 32px; }
  .gallery-track figure { width: 46vw; max-width: 380px; }
  .testimonial-strip { grid-template-columns: 1fr 1fr; }
  .sticky-label { display: block; }
}

@media (min-width: 1000px) {
  .container { width: min(calc(100% - 80px), var(--container)); }
  .section { padding: 150px 0; }

  .authority-inner img { max-height: 88px; }

  .hero { padding: 60px 0 78px; }
  .hero-title { max-width: 20ch; margin-bottom: 52px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .hero-col-media { gap: 24px; }

  .problem-grid { grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
  .conversion-row { grid-template-columns: auto 1fr; align-items: center; }

  .format-grid { grid-template-columns: .9fr 1.1fr; gap: 100px; }

  .venue-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
  .venue-media img { aspect-ratio: 5/4; }
  .venue-copy { padding: 0 0 0 8px; }

  .speaker-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .program-shell { grid-template-columns: .8fr 1.2fr; align-items: center; padding: 56px; gap: 60px; }

  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
  .about-media img { aspect-ratio: 4/5; min-height: 560px; }

  .testimonial-strip { grid-template-columns: repeat(3, 1fr); }

  .roadmap-grid { grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: start; }

  .registration { padding: 150px 0; }
  .registration-grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 90px; }
  .form-card { grid-template-columns: repeat(2, 1fr); padding: 40px; }
  .field-wide { grid-column: 1 / -1; }

  .footer-inner { grid-template-columns: auto 1fr auto; text-align: left; }
}

@media (min-width: 1300px) {
  .hero-title { font-size: clamp(4rem, 6.4vw, 6.4rem); }
  .about-copy h2 { font-size: 5.4rem; }
  .roadmap h2 { font-size: 3.9rem; }
}

/* Small-phone safety (≤370px) */
@media (max-width: 370px) {
  .hero-title { font-size: 2.25rem; }
  .logo { width: 100px; }
}

/* Mobile: immagine prima del testo nelle sezioni editoriali (sotto i 1000px, dove about-grid è impilata) */
@media (max-width: 999px) {
  .about-media { order: -1; }
}

/* ---------- Chi siamo (30/09): due foto del Gruppo Allcore impilate al posto della foto singola ---------- */
.about-media-stack { display: grid; gap: 14px; }
.about-media-stack figure { margin: 0; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.about-media-stack img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
@media (min-width: 1000px) {
  .about-media-stack { gap: 20px; }
  .about-media-stack figure { border-radius: var(--radius-lg); }
}
@media (max-width: 999px) {
  .about-media-stack { order: -1; }
}

/* ---------- Testimonianze (30/09): foto clienti a cerchio 56px (la regola dei loghi le allargava a 170px) e iniziali quando non c'è una foto reale ---------- */
.testimonial .reviewer-avatar, .testimonial img.reviewer-avatar { width: 56px; height: 56px; margin: 0; border-radius: 50%; object-fit: cover; object-position: center; }
.reviewer-initials { display: grid; place-items: center; background: var(--green-900); color: var(--lime); font: 700 17px/1 var(--font-display); letter-spacing: .02em; }

/* ---------- 08 Casi reali (30/09): un metodo che funziona in ogni settore ---------- */
.sectors { background: #fff; }
.case-list { display: grid; gap: 14px; }
.case-row { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: stretch; }
.case-logo { width: 104px; height: auto; aspect-ratio: 2 / 1; align-self: center; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.case-id { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 30px 10px 16px; border-radius: 12px 0 0 12px; background: linear-gradient(90deg, var(--green-900), var(--green-800)); color: #fff; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
.case-id strong { font: 700 1rem/1.2 var(--font-display); }
.case-id span { color: var(--lime); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.case-figures { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--cream); }
.case-figures div { display: grid; gap: 2px; align-content: space-between; }
.case-figures dt { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }
.case-figures dd { margin: 0; color: var(--green-900); font: 700 1.15rem/1.2 var(--font-display); }
.case-figures div:first-child dd { color: var(--green-600); }
.case-figures dd.none, .case-figures div:first-child dd.none { color: #b9c4bd; font-weight: 600; }
.case-note { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (min-width: 1000px) {
  .case-list { gap: 12px; }
  .case-row { grid-template-columns: 150px minmax(280px, .8fr) 1.2fr; gap: 14px; }
  .case-logo { width: 150px; }
  .case-id { padding: 14px 40px 14px 22px; }
  .case-id strong { font-size: 1.2rem; }
  .case-figures { grid-column: auto; gap: 18px; padding: 14px 26px; align-items: center; }
  .case-figures div { align-content: center; }
  .case-figures dt { font-size: 10.5px; }
  .case-figures dd { font-size: 1.3rem; }
}

/* Casi reali (30/09): "Vedi altri 5 casi" solo su mobile + CTA finale */
.case-more { display: none; }
@media (max-width: 999px) {
  .case-list.is-collapsed .case-row:nth-child(n+6) { display: none; }
  .case-list.is-collapsed + .case-more:not([hidden]) { display: flex; }
  .case-more { align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 16px; padding: 12px 20px; border: 1.5px solid var(--green-800); border-radius: 100px; background: #fff; color: var(--green-900); font: 700 15px/1.2 var(--font-body); cursor: pointer; }
  .case-more::after { content: ""; width: 8px; height: 8px; margin: -4px 0 0 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
}
.case-cta { display: grid; justify-items: start; gap: 16px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.case-cta p { color: var(--green-900); font: 700 clamp(1.3rem, 4.6vw, 1.7rem)/1.25 var(--font-display); }
@media (max-width: 999px) {
  .case-cta .btn { align-self: stretch; width: 100%; justify-content: space-between; }
}
@media (min-width: 1000px) {
  .case-cta { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Hero statica su mobile (30/09): il testo di apertura compare subito, senza animazione ---------- */
@media (max-width: 999px) {
  .js-reveal .hero .reveal,
  .js-reveal .hero .reveal-line .reveal-word { opacity: 1; transform: none; transition: none; }
}

/* Passaggio dinamico tra passo 1 e passo 2 del form (01/10) */
.step-boost { margin: 0 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--cream); border: 1px solid #dce7df; }
.step-boost-title { margin: 0 0 6px; font-family: "Poppins", "Poppins Fallback", Arial, sans-serif; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--green-950); }
.step-boost-proof { margin: 0; font-size: 14px; line-height: 1.45; color: #193128; }
.step-boost-proof strong { color: var(--green-950); }
.step-boost-tag { display: inline-block; margin-right: 4px; padding: 2px 8px; border-radius: 999px; background: var(--green-950); color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.step-boost-proof.is-case { animation: boostIn .35s ease; }
@keyframes boostIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step-boost-proof.is-case { animation: none; } }
