/* ============ Mondadori Academy Forum & Orienta ============ */
:root {
  --bg: #06060b;
  --bg-light: #f6f5f2;
  --ink: #0a0a0f;
  --ink-dim: #3b3c43;
  --ink-soft: #6b6c74;
  --line: #e6e4de;
  --line-dark: rgba(255,255,255,.14);
  --panel: #0d0d15;
  --panel-2: #141424;
  --red: #d2091e;
  --red-hover: #ec1a30;

  /* Aurora palette */
  --a1: #6e40aa;  /* viola */
  --a2: #4169e1;  /* indigo */
  --a3: #1ac7c2;  /* ciano */
  --a4: #40f373;  /* verde */
  --a5: #87f557;  /* verde elettrico */

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-display: "Space Grotesk", "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Accessibilità: skip link ── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 10000;
  padding: 0.625rem 1rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s cubic-bezier(0.16,1,0.3,1);
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* ── Accessibilità: focus visibile su tutti gli elementi interattivi ── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Focus specifici per elementi su sfondo scuro */
.btn:focus-visible,
.fc-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.nav-hamburger:focus-visible,
.nav-mobile-link:focus-visible,
.nav-mobile-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}
.nav-links a:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 4px;
}
/* Rimuove l'outline di default nei browser che supportano :focus-visible */
:focus:not(:focus-visible) { outline: none; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }
body.nav-open { overflow: hidden; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}
.display-black { font-weight: 700; letter-spacing: -0.035em; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }

/* Base tag: JetBrains Mono ovunque — sovrascrivibile per contesto specifico */
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ============ Layout wrappers ============ */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

section { position: relative; }

/* ============ Nav ============ */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 80;
  padding: 0 16px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: 1400px;
  margin: 0 auto;
  /* Stato hero: trasparente */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  transition: background .35s ease, border-color .35s ease,
              box-shadow .35s ease, backdrop-filter .35s ease;
}
/* Stato scrolled: pill glassmorphism */
.nav.is-scrolled {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  /* Nascosto nell'hero — appare allo scroll */
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.nav-brand.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav-brand img { height: 26px; display: block; }
.nav-brand .x { font-size: 18px; color: #0006; font-weight: 300; }
.nav-brand .evt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.nav-brand .evt small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 3px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  /* Bianco sull'hero scuro */
  color: rgba(255,255,255,.9);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .2s, color .35s ease;
}
.nav-links a:hover { background: rgba(255,255,255,.12); }
/* Dopo lo scroll: testo scuro */
.nav.is-scrolled .nav-links a { color: var(--ink); }
.nav.is-scrolled .nav-links a:hover { background: rgba(0,0,0,.06); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  background: var(--red);
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 100px !important;
}
.nav-cta:hover { background: var(--red-hover) !important; }

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 9px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,.12); }
.nav.is-scrolled .nav-hamburger:hover { background: rgba(0,0,0,.06); }
.nav-hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  /* Bianco sull'hero scuro */
  background: #fff;
  transition: transform .25s ease, opacity .2s ease, width .2s ease, background .35s ease;
  transform-origin: center;
}
/* Dopo lo scroll: scuro */
.nav.is-scrolled .nav-hamburger span { background: var(--ink); }
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { width: 22px; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* ── Mobile nav overlay ── */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(246,245,242,.96);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 100px 32px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; }
.nav-mobile-link {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 20px;
  border-radius: 12px;
  transition: background .15s;
}
.nav-mobile-link:hover { background: rgba(0,0,0,.06); }
.nav-mobile-cta {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 100px;
  transition: background .2s;
}
.nav-mobile-cta:hover { background: var(--red-hover); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh; /* fallback */
  max-height: none;
  background: #03070b;
  border-radius: 0 0 40px 40px;
  overflow: visible;
  color: #fff;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

/* ─── Background image: duotone aurora ─── */
/* Due modalità compatibili:
   1. CSS variable (--hero-photo): usato dalle pagine interne
      → background-blend-mode: multiply sul contenitore
   2. <img class="hero-bg-photo"> (homepage hero):
      → mix-blend-mode: multiply sull'img figlio
      → Lighthouse lo rileva come LCP candidate
   Le due modalità non si sovrappongono: Hero.astro non imposta
   --hero-photo, le altre pagine non hanno .hero-bg-photo. */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      #3a1560 0%,
      #1a3a72 38%,
      #0e4848 72%,
      #123320 100%
    ),
    var(--hero-photo, none) center 35% / cover no-repeat;
  background-blend-mode: multiply;
  opacity: 0.85;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  mix-blend-mode: multiply;
}
/* Text-protection overlay: light enough to let the image breathe */
.hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 7, 11, 0.52) 0%,
      rgba(3, 7, 11, 0.32) 40%,
      rgba(3, 7, 11, 0.08) 68%,
      rgba(3, 7, 11, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 7, 11, 0.28) 0%,
      transparent 24%,
      transparent 72%,
      rgba(3, 7, 11, 0.48) 100%
    );
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 56px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: border-color .2s, color .2s, transform .2s;
  animation: heroFadeIn .8s ease .9s both;
}
.hero-scroll:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  transform: translateY(3px);
}
@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.hero-scroll svg { animation: heroScrollBounce 2.2s ease-in-out 1.8s infinite; }

/* Entry animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-logo-main      { animation: heroFadeUp .8s cubic-bezier(.22,.8,.22,1) .15s both; }
.hero-sub            { animation: heroFadeUp .8s cubic-bezier(.22,.8,.22,1) .32s both; }
.hero-ctas           { animation: heroFadeUp .8s cubic-bezier(.22,.8,.22,1) .48s both; }
.hero-partners-area  { animation: heroFadeUp .7s cubic-bezier(.22,.8,.22,1) .68s both; }
.hero-voronoi        { animation: heroFadeIn 1.4s ease .2s both; }
.hero-bg-img         { animation: heroFadeIn 1.8s ease 0s both; }
.hero-canvas-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-canvas-layer canvas { width: 100%; height: 100%; display: block; }
.hero-grain {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-vignette {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(0,0,0,.75), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55));
}

/* Hero layout: testo a sinistra, Voronoi assoluto a destra */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex: 1;               /* fill the full hero height */
  padding: 0 56px;
  display: flex;
  align-items: stretch;  /* hero-left stretches to fill */
}

/* Testo limitato alla metà sinistra, non invade il Voronoi */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;   /* centers the whole block (main + partners) */
  padding-top: 88px;         /* clearance for fixed nav */
  padding-bottom: 52px;
  max-width: 52%;
  z-index: 2;
}

/* Main content group: logo + subtitle + CTAs */
.hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Voronoi canvas: absolute, right half only, blob center ~75% of page width */
.hero-voronoi {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 48%;
  right: -12%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 100%);
}

/* Right column: location badge only */
.hero-right {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 48px;
  z-index: 4;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  align-self: flex-start;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--a4);
  box-shadow: 0 0 16px var(--a4);
  animation: pulse 2.1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 8.4vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  max-width: 15ch;
}
.hero-title .amp {
  background: linear-gradient(120deg, var(--a1), var(--a3) 45%, var(--a5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  display: inline-block;
  padding: 0.15em 0.2em 0.15em 0.06em;
  line-height: 1.1;
}
.hero-title .stroke {
  -webkit-text-stroke: 2px rgba(255,255,255,.9);
  color: transparent;
}

.hero-sub {
  max-width: 46ch;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: rgba(255,255,255,.78);
  margin: 0 0 40px;
  text-wrap: pretty;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 16px 26px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: scale(0.97) translateY(0); transition-duration: .08s; }
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost {
  background: rgba(0,0,0,.50);
  color: #fff;
  /* Bordo a .45 di opacità → ~4.6:1 vs bg scuro, passa WCAG 1.4.11 (3:1 non-text) */
  border-color: rgba(255,255,255,.45);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(0,0,0,.65);
  border-color: rgba(255,255,255,.60);
}
.btn-dark {
  background: #0a0a0f;
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-light:hover { background: #f3f2ed; }

.arrow-icon {
  display: inline-block;
  transition: transform .2s;
}
.btn:hover .arrow-icon { transform: translateX(3px); }

/* Hero location badge — positioned at bottom-right of hero-right column */
.hero-location {
  align-self: flex-end;
  text-align: right;
  position: relative;
  z-index: 2;
}
.hero-location .where-date,
.hero-location .where-venue {
  /* allineamento visivo al bordo destro di PALERMO */
  padding-right: 0.12em;
}
.hero-location .where-date {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}
.hero-location .where-venue {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
/* Il div .city è solo layout; il gradient va sullo <span> inline interno */
.hero-location .city {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 8.5vw, 140px);
  line-height: 1;
  letter-spacing: -0.055em;
  display: block;
  text-align: right;
  overflow: visible;
}
/* Span inline: background-clip:text su inline evita il problema del
   content-box troppo stretto tipico dei block con gradient text */
.hero-location .city .city-text {
  display: inline;
  background: linear-gradient(110deg, var(--a1) 20%, var(--a3) 55%, var(--a4) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* padding inline estende il background oltre i glifi estremi */
  padding: 0.1em 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 22px;
  margin: 38px 0 0;
}
.cd-box {
  min-width: 74px;
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  text-align: center;
}
.cd-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* ============ Stats strip ============ */
.stats {
  background: var(--bg-light);
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.stat {
  flex: 0 0 25%;
  min-width: 160px;
  padding: 12px 28px;
  box-sizing: border-box;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 86px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat-num .unit { font-size: 56px; color: var(--ink-dim); }
.stat-label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ Section header pattern ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 20px 0 24px;
}
.section-head .tag {
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 72px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.section-head h2 .accent {
  color: var(--red);
  font-style: italic;
  display: inline-block;
  padding: 0.18em 0.2em 0.15em 0.05em;
  line-height: 1.1;
}
.section-head .lede {
  max-width: 380px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-dim);
}

.dark-section .section-head .tag { color: rgba(255,255,255,.6); }
.dark-section .section-head h2 { color: #fff; }
.dark-section .section-head .lede { color: rgba(255,255,255,.7); }

/* ============ PercorsiHome — sezione Per chi homepage ============ */
.percorsi-home {
  padding: 40px 0 72px;
  background: var(--bg-light);
}

/* Header editoriale: titolo sx / descrizione dx */
.ph-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  padding: 20px 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.ph-header-left .tag { margin-bottom: 16px; }
.ph-header-left h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 72px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.ph-header-left h2 .accent {
  color: var(--red);
  font-style: italic;
  display: inline-block;
  padding: 0.18em 0.2em 0.15em 0.05em;
  line-height: 1.1;
}
.ph-header-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 4px;
}
.ph-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0;
  max-width: 58ch;
}
.ph-body--muted {
  color: var(--ink-soft);
  font-size: 15px;
}

/* Grid 5 box: 6 colonne — 2 wide (top) + 3 medium (bottom) */
.ph-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.ph-box:nth-child(1) { grid-column: 1 / 4; }
.ph-box:nth-child(2) { grid-column: 4 / 7; }
.ph-box:nth-child(3) { grid-column: 1 / 3; }
.ph-box:nth-child(4) { grid-column: 3 / 5; }
.ph-box:nth-child(5) { grid-column: 5 / 7; }

.ph-box {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .25s cubic-bezier(0.32,0.72,0,1), transform .25s cubic-bezier(0.32,0.72,0,1), box-shadow .25s;
  cursor: default;
}
.ph-box:hover {
  border-color: rgba(10,10,15,.22);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px rgba(10,10,15,.12);
}
.ph-box-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  flex-shrink: 0;
}
.ph-box-icon svg {
  width: 48px;
  height: 48px;
}
.ph-box-icon--img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
}
.ph-box-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.ph-box-tagline {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
  flex: 1;
}

/* CTA block */
.ph-cta {
  display: flex;
  justify-content: flex-start;
}
.btn-cta-palermo {
  font-size: 15px;
  padding: 16px 28px;
}

/* Responsive */
@media (max-width: 1100px) {
  .ph-header { grid-template-columns: 1fr; gap: 28px; }
  .ph-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ph-box:nth-child(1) { grid-column: 1 / 3; }
  .ph-box:nth-child(2) { grid-column: 3 / 4; }
  .ph-box:nth-child(3) { grid-column: 1 / 2; }
  .ph-box:nth-child(4) { grid-column: 2 / 3; }
  .ph-box:nth-child(5) { grid-column: 3 / 4; }
}
@media (max-width: 768px) {
  .percorsi-home { padding: 28px 0 48px; }
  .ph-header { padding-bottom: 32px; margin-bottom: 32px; }
  .ph-header-left h2 { font-size: 36px; }
  .ph-body { font-size: 15px; }
  .ph-grid {
    grid-template-columns: 1fr;
  }
  .ph-box:nth-child(1),
  .ph-box:nth-child(2),
  .ph-box:nth-child(3),
  .ph-box:nth-child(4),
  .ph-box:nth-child(5) { grid-column: 1; }
}

/* ============ Tre percorsi ============ */
.personas {
  padding: 32px 0 56px;
  background: var(--bg-light);
}
.persona-list {
  display: grid;
  gap: 14px;
}
.persona {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 34px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.persona::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(110,64,170,.14), transparent 40%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.persona:hover { border-color: #1a1a24; transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.2); }
.persona:hover::before { opacity: 1; }
.persona-visual {
  width: 180px;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #0a0a14;
}
.persona-visual canvas { width: 100%; height: 100%; display: block; }
.persona-body h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.persona-body .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.persona-body p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.5;
  max-width: 56ch;
}
.persona-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background .2s;
}
.persona:hover .persona-cta { background: var(--red); }

/* ============ AreeHome — Bento asimmetrico watermark ============ */
.aree-home {
  padding: 40px 0 80px;
  background:
    radial-gradient(ellipse 70% 90% at -8% 55%, rgba(110,64,170,0.55) 0%, transparent 58%),
    radial-gradient(ellipse 60% 70% at 108% 28%, rgba(26,199,194,0.40) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 48% 115%, rgba(65,105,225,0.35) 0%, transparent 52%),
    radial-gradient(ellipse 38% 38% at 78% 8%, rgba(64,243,115,0.18) 0%, transparent 50%),
    #1C1A3A;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.aree-home-aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.aree-home .wrap { position: relative; z-index: 1; }

/* ── Bento grid asimmetrico ── */
.ah-bento {
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: auto auto;
  gap: 14px;
  margin-top: 48px;
}

/* Card 01 — grande, occupa entrambe le righe a sinistra */
.ah-card--0 {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* Card 02 — in alto a destra */
.ah-card--1 {
  grid-column: 2;
  grid-row: 1;
}

/* Card 03 — in basso a destra */
.ah-card--2 {
  grid-column: 2;
  grid-row: 2;
}

/* ── Singola card ── */
.ah-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.09);
  overflow: hidden;
  padding: 40px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.35s cubic-bezier(0.32,0.72,0,1),
              transform 0.35s cubic-bezier(0.32,0.72,0,1);
  display: flex;
  flex-direction: column;
}
.ah-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* Aurora gradient per card — posizionato assoluto dietro al contenuto */
.ah-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.ah-card:hover .ah-card-bg { opacity: 1.4; }

/* Contenuto sopra il bg */
.ah-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Top row: kicker + pills */
.ah-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Pills — solo nella card grande */
.ah-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ah-tag-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

/* Titolo */
.ah-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 2.8vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #fff;
  margin: 0 0 16px;
}

/* Descrizione */
.ah-card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin: 0 0 24px;
  max-width: 52ch;
}

/* Bullet list */
.ah-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
}
.ah-list li {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: baseline;
  gap: 11px;
}
.ah-list li:last-child { border-bottom: none; }
.ah-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Icona watermark ── */
.ah-card-icon {
  position: absolute;
  bottom: -6%;
  right: -4%;
  width: clamp(110px, 12vw, 190px);
  height: clamp(110px, 12vw, 190px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  color: rgba(255,255,255,0.06);
  transition: color 0.35s ease;
}
.ah-card-icon svg {
  width: 100%;
  height: 100%;
}
.ah-card:hover .ah-card-icon {
  color: rgba(255,255,255,0.10);
}

/* ── Slot immagine (Card 01) ── */
.ah-card-img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 7;
  margin: 4px 0 20px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ah-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── CTA sotto il bento ── */
.ah-bento-cta {
  margin-top: 32px;
  display: flex;
  justify-content: flex-start;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ah-card-title { font-size: clamp(24px, 2.4vw, 36px); }
  .ah-card { padding: 32px; }
}
@media (max-width: 900px) {
  .aree-home { padding: 32px 0 56px; }
  .ah-bento {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
  }
  .ah-card--0 { grid-column: 1; grid-row: unset; }
  .ah-card--1 { grid-column: 1; grid-row: unset; }
  .ah-card--2 { grid-column: 1; grid-row: unset; }
  .ah-watermark { font-size: clamp(80px, 20vw, 140px); }
}
@media (max-width: 600px) {
  .aree-home { padding: 24px 0 48px; }
  .ah-card { padding: 24px; }
  .ah-card-title { font-size: 26px; }
  .ah-list li { font-size: 13px; }
  .ah-bento { gap: 10px; margin-top: 32px; }
}

/* ============ Quattro aree (Voronoi grid) ============ */
.aree {
  padding: 32px 0 56px;
  background:
    radial-gradient(ellipse 70% 90% at -8% 55%, rgba(110, 64, 170, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 60% 70% at 108% 28%, rgba(26, 199, 194, 0.40) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 48% 115%, rgba(65, 105, 225, 0.35) 0%, transparent 52%),
    radial-gradient(ellipse 38% 38% at 78% 8%,  rgba(64, 243, 115, 0.18) 0%, transparent 50%),
    #1C1A3A;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.aree-bg {
  position: absolute; inset: 0;
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}
.aree .wrap { position: relative; z-index: 1; }
.aree-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
/* 3 aree → 3 colonne uguali in orizzontale */
.aree-grid:has(.area-card:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}
.area-card {
  position: relative;
  padding: 36px;
  border-radius: 28px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .35s, border-color .35s, background .35s;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.area-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
}
.area-card .aurora-bg {
  position: absolute;
  inset: -20%;
  filter: blur(60px);
  opacity: .50;
  z-index: 0;
  transition: opacity .5s;
}
.area-card:hover .aurora-bg { opacity: .80; }
.area-card .voronoi-canvas {
  position: absolute; inset: 0;
  z-index: 1;
  opacity: .55;
  mix-blend-mode: screen;
}
.area-card > * { position: relative; z-index: 2; }

.area-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 20px;
}
.area-icon {
  width: 52px; height: 52px;
  min-width: 52px; /* non si restringe mai */
  flex-shrink: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.area-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.80);
  padding: 6px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
  white-space: normal;   /* permette il wrap */
  word-break: break-word;
  text-align: right;
  line-height: 1.4;
}
.area-body h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 24px 0 12px;
  max-width: 14ch;
}
.area-body p {
  font-size: 15px;
  color: rgba(255,255,255,.70);
  line-height: 1.55;
  max-width: 44ch;
  margin: 0 0 22px;
}
.area-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  width: fit-content;
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.area-card:hover .area-cta { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.40); }

/* ============ Speaker ============ */
.speakers {
  padding: 32px 0 56px;
  background: var(--bg-light);
  overflow: hidden;
}
.speakers-rail {
  position: relative;
  padding: 16px 0 12px;
}
.speakers-track {
  display: flex;
  gap: 22px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 28px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.speakers-track:active { cursor: grabbing; }
.speakers-track::-webkit-scrollbar { display: none; }
.speaker-card {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  transition: transform .4s ease;
  scroll-snap-align: start;
}

.speaker-card .sp-photo-wrap {
  width: 100%;
  position: relative;
}
.speaker-card .sp-photo-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: inherit;
}
.speaker-card .sp-photo-link .sp-photo {
  transition: transform .4s cubic-bezier(0.32,0.72,0,1);
}
.speaker-card .sp-photo-link:hover .sp-photo { transform: scale(1.04); }
.speaker-card .nm-link {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
.speaker-card .nm-link:hover { color: var(--red); }

.speaker-card .sp-photo {
  width: 100%;
  height: auto;
  display: block;
}

.speaker-card .sp-info {
  padding: 0 2px;
}

.speaker-card .sp-info .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
  color: #0a0a14;
}

.speaker-card .sp-info .rl {
  font-size: 12px;
  color: rgba(0,0,0,.55);
  line-height: 1.4;
}
.speaker-card.offset-up { transform: translateY(-28px); }
.speaker-card.offset-down { transform: translateY(28px); }
.speaker-card:hover { transform: translateY(-6px); }
.speaker-card.offset-up:hover { transform: translateY(-34px); }
.speaker-card.offset-down:hover { transform: translateY(22px); }

.speakers-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  max-width: 1400px;
  margin: -20px auto 0;
  padding: 0 28px;
}
.speakers-controls[hidden] { display: none; }
.speakers-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, color .2s;
  color: var(--ink);
}
.speakers-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.speakers-btn:disabled { opacity: .35; cursor: not-allowed; }
body.theme-all-dark .speakers-btn {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
body.theme-all-dark .speakers-btn:hover { background: #fff; color: var(--ink); }

body.theme-all-dark .speakers { background: #06060b; color: #fff; }
body.theme-all-dark .section-head .tag { color: rgba(255,255,255,.6); }
body.theme-all-dark .section-head h2 { color: #fff; }
body.theme-all-dark .section-head .lede { color: rgba(255,255,255,.7); }
body.theme-all-dark .personas { background: #06060b; }
body.theme-all-dark .persona { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #fff; }
body.theme-all-dark .persona-body p { color: rgba(255,255,255,.7); }
body.theme-all-dark .persona-body .kicker { color: rgba(255,255,255,.55); }
body.theme-all-dark .persona-cta { background: #fff; color: var(--ink); }
body.theme-all-dark .persona:hover .persona-cta { background: var(--red); color: #fff; }
body.theme-all-dark .partners { background: #06060b; }
body.theme-all-dark .partners-grid { border-color: rgba(255,255,255,.1); }
body.theme-all-dark .partners-group-label { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.1); }
body.theme-all-dark .partner-cell { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
body.theme-all-dark .partner-cell:hover { background: #fff; color: var(--ink); }
body.theme-all-dark .location { background: #06060b; color: #fff; }
body.theme-all-dark .location-addr { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #fff; }
body.theme-all-dark .location-addr .a-sub { color: rgba(255,255,255,.6); }
body.theme-all-dark .faq { background: #06060b; color: #fff; }
body.theme-all-dark .faq-item { background: rgba(255,255,255,.05); color: #fff; }
body.theme-all-dark .faq-item[open] { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
body.theme-all-dark .faq-item .faq-body { color: rgba(255,255,255,.7); }
body.theme-all-dark .faq-item summary::after { color: rgba(255,255,255,.6); }
body.theme-all-dark .stats { background: #06060b; color: #fff; border-color: rgba(255,255,255,.1); }
body.theme-all-dark .stat { border-color: rgba(255,255,255,.1); }
body.theme-all-dark .stat-num { color: #fff; }
body.theme-all-dark .stat-num .unit { color: rgba(255,255,255,.55); }
body.theme-all-dark .stat-label { color: rgba(255,255,255,.55); }
.speaker-card .sp-aurora {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity .45s;
  filter: blur(0px);
}
.speaker-card .sp-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 40%, transparent 70%);
  z-index: 2;
}
.speaker-card .sp-meta {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  color: #fff;
  z-index: 3;
}
.speaker-card .sp-meta .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.speaker-card .sp-meta .rl {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

/* ============ Media partners ============ */
.partners {
  padding: 32px 0 56px;
  background: var(--bg-light);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.partner-cell {
  aspect-ratio: 2/1;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-dim);
  font-size: 18px;
  letter-spacing: -0.02em;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.partner-cell:hover { background: var(--ink); color: #fff; }

/* Partner groups */
.partners-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.partners-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.partners-group-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.partners-group-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ============ Location ============ */
.location {
  padding: 32px 0 56px;
  background: var(--bg-light);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}
.location-info h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.location-info p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 42ch;
}
.location-addr {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
}
.location-addr svg { flex-shrink: 0; margin-top: 2px; }
.location-addr .a-title { font-weight: 700; font-size: 16px; }
.location-addr .a-sub { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.location-map {
  aspect-ratio: 1.7;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a14;
  position: relative;
}
.location-map canvas { width: 100%; height: 100%; display: block; }
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ============ Video embed ============ */
.video-embed {
  padding: 32px 0 56px;
  background: var(--bg-light);
}
.ve-frame {
  margin-top: 8px;
}
.ve-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a0f;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.18);
}
.ve-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============ Prossima tappa ============ */
.prossima-tappa {
  padding: 32px 0 56px;
  background: var(--bg-light);
}
.pt-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pt-text .tag {
  margin-bottom: 16px;
}
.pt-city {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 24px;
  color: var(--ink);
}
.pt-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 44ch;
  margin: 0 0 32px;
}
.pt-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.pt-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.pt-meta-item svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--red);
}
.pt-meta-item small {
  font-size: 12px;
  opacity: 0.7;
  display: block;
}
.pt-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e8e6f0;
}
.pt-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pt-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(ellipse 80% 70% at 20% 60%, rgba(110,64,170,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(26,199,194,0.14) 0%, transparent 55%),
    #e8e6f0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(28,26,58,0.35);
}
.pt-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pt-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.75); }
}

/* ============ Latest news (preview) ============ */
.latest-news {
  padding: 32px 0 56px;
  background: var(--bg-light);
}
.ln-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}
.ln-head .tag { margin-bottom: 8px; }
.ln-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0;
}
.ln-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 6px;
  transition: gap 0.25s cubic-bezier(0.32,0.72,0,1);
}
.ln-all-link:hover { gap: 10px; }
.ln-lede {
  margin-bottom: 32px;
}
.ln-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.ln-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1),
              box-shadow 0.35s cubic-bezier(0.32,0.72,0,1);
}
.ln-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.12);
}
.ln-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0eef8;
  flex-shrink: 0;
}
/* ln-card--featured: mantenuto per retrocompatibilità, non altera più le dimensioni */
.ln-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 80% 70% at 30% 60%, rgba(110,64,170,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 75% 25%, rgba(26,199,194,0.12) 0%, transparent 55%),
    #f0eef8;
}
.ln-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.32,0.72,0,1);
}
.ln-card:hover .ln-card-media img { transform: scale(1.04); }
.ln-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ln-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ln-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  background: rgba(209,44,23,0.08);
  padding: 3px 8px;
  border-radius: 100px;
}
.ln-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
}
.ln-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}
/* .ln-card--featured: rimosso override font-size per uniformità */
.ln-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0 0 16px;
  flex: 1;
}
.ln-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-top: auto;
}
.ln-footer {
  margin-top: 36px;
  text-align: center;
}
/* Bottone su sfondo chiaro: override del ghost bianco */
.ln-footer .btn-ghost {
  color: var(--ink);
  background: transparent;
  /* .50 opacità → #7b7b79 su #f6f5f2 → ~3.93:1, passa WCAG 1.4.11 */
  border-color: rgba(0,0,0,.50);
}
.ln-footer .btn-ghost:hover {
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.65);
}

/* ============ FAQ ============ */
.faq {
  padding: 32px 0 56px;
  background: var(--bg-light);
}
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.faq-item {
  background: #efede7;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: background .25s;
}
.faq-item[open] { background: #fff; border: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-dim);
  transition: transform .25s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
}

/* ============ Tappe page ============ */

/* Nav active state */
.nav-links a.active {
  background: rgba(0,0,0,.08);
  font-weight: 600;
}
.nav.is-scrolled .nav-links a.active { color: var(--ink); }
.nav-mobile-link.active { font-weight: 600; color: var(--ink); }

/* Nav pill forzata su pagine interne (tappe, palermo, news) */
.page-tappe .nav,
.page-inner .nav {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.page-tappe .nav-links a,
.page-inner .nav-links a { color: var(--ink); }
.page-tappe .nav-hamburger span,
.page-inner .nav-hamburger span { background: var(--ink); }
.page-tappe .nav-brand,
.page-inner .nav-brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Hero */
/* Tappe / Palermo hero — eredita struttura e sfondo dalla home hero */
.tappe-hero {
  position: relative;
  background: #03070b;
  color: #fff;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
/* Riutilizza .hero-bg-img, .hero-grain, .hero-voronoi, .hero-content, .hero-left */

/* Titolo h1 specifico delle pagine tappe */
.tappe-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  color: #fff;
}
.tappe-hero-title .accent {
  color: var(--red);
  font-style: italic;
  display: inline-block;
  padding: 0.18em 0.2em 0.15em 0.05em;
  line-height: 1.1;
}

/* Kicker (pagina tappe — lista) */
.tappe-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.7);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  margin-bottom: 28px;
}
.tappe-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--a4);
  box-shadow: 0 0 14px var(--a4);
  animation: pulse 2.1s ease-in-out infinite;
  flex-shrink: 0;
}

/* Section */
.tappe-section {
  padding: 80px 0 120px;
  background: var(--bg-light);
}
.tappe-intro {
  margin-bottom: 48px;
}
.tappe-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tappe-label::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}
.tappe-intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  color: var(--ink);
}
.tappe-intro h2 .accent { color: var(--red); font-style: italic; }

/* Grid */
.tappe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Card */
.tappa-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 0.82;
  background: #0a0a14;
  cursor: pointer;
  transition: transform .4s ease, box-shadow .4s ease;
  border: 1px solid rgba(255,255,255,.06);
}
.tappa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px -24px rgba(0,0,0,.35);
}
.tappa-card.revealed { border-color: rgba(255,255,255,.12); }
.tappa-card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: inherit;
}

/* Foto di sfondo per tappe rivelate */
.tappa-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform .6s ease;
}
.tappa-card:hover .tappa-bg-photo { transform: scale(1.04); }

.tappa-aurora-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .7;
  transition: opacity .5s;
}
.tappa-card:hover .tappa-aurora-bg { opacity: 1; }

.tappa-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.tappa-gradient {
  position: absolute;
  inset: 0;
  /* WCAG AA: testo bianco su fondo scuro ≥ 4.5:1 — scuro al 95% per 60% del basso */
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.75) 30%, rgba(0,0,0,.3) 55%, transparent 75%);
  z-index: 3;
}

/* Mystery blurred lines */
.tappa-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 32px;
}
.tappa-line-bar {
  width: 100%;
  height: 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.12);
  filter: blur(2px);
}
.tappa-line-bar.short  { width: 60%; }
.tappa-line-bar.medium { width: 80%; }

/* Lock */
.tappa-lock {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, transform .3s;
}
.tappa-card:hover .tappa-lock {
  background: rgba(255,255,255,.18);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Badge "In programma" */
.tappa-revealed-flag {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 5px 12px;
  border-radius: 100px;
}

/* Bottom meta */
.tappa-meta {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tappa-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.tappa-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}
.tappa-title--mystery {
  color: rgba(255,255,255,.5);
  font-style: italic;
}
.tappa-date {
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.tappa-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(6px);
  width: fit-content;
}
.tappa-dot-sm {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ff8c00;
  box-shadow: 0 0 8px #ff8c00;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.tappa-dot-sm--green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* CTA strip */
.tappe-cta-strip {
  margin-top: 64px;
  padding: 40px 48px;
  background: #0a0a14;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.tappe-cta-text {
  text-align: left;
}
.tappe-cta-strip-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tappe-cta-strip > * { position: relative; z-index: 1; }
.tappe-cta-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 6px;
}
.tappe-cta-text p {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin: 0;
  max-width: 44ch;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 900px) {
  .tappe-grid { grid-template-columns: 1fr 1fr; }
  .tappe-cta-strip { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}
@media (max-width: 600px) {
  .tappe-grid { grid-template-columns: 1fr; }
  .tappe-hero .hero-left { max-width: 100%; }
}

/* ============ Footer CTA ============ */
.footer-cta {
  position: relative;
  padding: 56px 0 48px;
  background: #1C1A3A;
  color: #fff;
  overflow: hidden;
}
.footer-cta-aurora {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 90% at -8% 55%, rgba(110, 64, 170, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 60% 70% at 108% 28%, rgba(26, 199, 194, 0.40) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 48% 115%, rgba(65, 105, 225, 0.35) 0%, transparent 52%),
    radial-gradient(ellipse 38% 38% at 78% 8%,  rgba(64, 243, 115, 0.18) 0%, transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.7;
}
.footer-cta .aurora-bg {
  position: absolute; inset: 0;
  opacity: .8;
  z-index: 0;
}
.footer-cta .voronoi-canvas {
  position: absolute; inset: 0;
  opacity: .35;
  z-index: 1;
  mix-blend-mode: screen;
}
.footer-cta .fc-body {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}
/* ── Glass card (mirror dell'hero-glass) ── */
.fc-glass {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 48px 56px 52px;
  max-width: 600px;
  width: 100%;
  color: #0a0a0f;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 76px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 28px;
  color: #0a0a0f;
}
.footer-cta h2 .accent {
  background: linear-gradient(120deg, var(--red) 0%, #e05c20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  display: inline-block;
  padding: 0.18em 0.2em 0.15em 0.05em;
  line-height: 1.1;
}
/* ── Meta: data + location ── */
.fc-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  align-items: center;
}
.fc-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(10,10,15,.75);
}
.fc-meta-item svg { flex-shrink: 0; color: var(--red); }
/* ── CTA button ── */
.fc-btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.footer-cta .fc-sub {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  max-width: 44ch;
  margin: 0 auto 36px;
  line-height: 1.55;
}

/* ============ Footer bar ============ */
.footer {
  background: #06060b;
  color: rgba(255,255,255,.7);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer a { color: inherit; text-decoration: none; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .fl {
  display: flex; gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============ Section divider (Voronoi line) ============ */
.divider {
  height: 80px;
  position: relative;
  overflow: hidden;
}
.divider canvas { width: 100%; height: 100%; display: block; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ Tweaks panel ============ */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: rgba(12,12,20,.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 16px;
  width: 260px;
  font-family: var(--font-body);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  display: none;
}
.tweaks.active { display: block; }
.tweaks h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.tweaks .row { margin-bottom: 14px; }
.tweaks .row:last-child { margin-bottom: 0; }
.tweaks label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}
.tweaks .palette-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tweaks .palette-chip {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: #0a0a14;
  cursor: pointer;
  font-size: 11px;
  color: rgba(255,255,255,.8);
  text-align: left;
}
.tweaks .palette-chip.active { border-color: #fff; background: rgba(255,255,255,.1); }
.tweaks .palette-chip .swatch {
  display: block;
  height: 10px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.tweaks .theme-toggle {
  display: flex;
  gap: 6px;
}
.tweaks .theme-toggle button {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: #0a0a14;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  font-size: 12px;
}
.tweaks .theme-toggle button.active { background: #fff; color: #0a0a0f; border-color: #fff; }

/* ============ Light theme override ============ */
body.theme-light .hero { background: #0a0a14; }
body.theme-all-light .hero {
  background: var(--bg-light);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
body.theme-all-light .hero-title { color: var(--ink); }
body.theme-all-light .hero-sub { color: var(--ink-dim); }
body.theme-all-light .hero-eyebrow {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}
body.theme-all-light .cd-box { background: #fff; border-color: var(--line); }
body.theme-all-light .cd-num { color: var(--ink); }
body.theme-all-light .cd-label { color: var(--ink-soft); }
body.theme-all-light .hero-vignette {
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255,255,255,.9), transparent 60%);
}
body.theme-all-light .hero-location .where { color: var(--ink-soft); }
body.theme-all-light .hero-location .city {
  background: linear-gradient(110deg, var(--ink) 20%, var(--a1) 55%, var(--a3) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.theme-all-light .aree { background: var(--bg-light); color: var(--ink); }
body.theme-all-light .aree .section-head h2 { color: var(--ink); }
body.theme-all-light .aree .section-head .tag { color: var(--ink-soft); }
body.theme-all-light .aree .section-head .lede { color: var(--ink-dim); }
body.theme-all-light .area-card {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
body.theme-all-light .area-body p { color: var(--ink-dim); }
body.theme-all-light .area-tag {
  color: var(--ink-soft); border-color: var(--line); background: rgba(0,0,0,.03);
}
body.theme-all-light .area-cta {
  color: var(--ink);
  background: rgba(0,0,0,.05);
  border-color: var(--line);
}

/* responsive basic */
@media (max-width: 1100px) {
  /* Hero: testo leggermente più largo su tablet */
  .hero-left { max-width: 60%; }
  .speakers-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .aree-grid,
  .aree-grid:has(.area-card:nth-child(3):last-child) { grid-template-columns: 1fr; }
  .pt-inner { grid-template-columns: 1fr; gap: 32px; }
  .pt-visual { order: -1; }
  .pt-city { font-size: 56px; }
  .ln-grid { grid-template-columns: 1fr; }
  .ln-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ve-ratio { border-radius: 14px; }
  .persona {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    padding: 24px;
  }
  .persona-visual { width: 100%; height: 140px; }
  .persona-cta { justify-self: start; }
  .stats-grid .stat { flex: 0 0 50%; }
  .location-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Mobile ── */
@media (max-width: 768px) {

  /* Wrap: padding ridotto */
  .wrap, .wrap-narrow { padding: 0 16px; }

  /* ── Hero ── */
  .hero {
    height: auto;
    min-height: 100svh;
    max-height: none;
    overflow: visible;
  }
  .hero-content {
    padding: 0 16px;
    align-items: stretch;
  }
  .hero-left {
    padding-top: 88px;
    padding-bottom: 40px;
  }
  /* Voronoi mobile: full-width, banda top e bottom, nascosto al centro */
  .hero-voronoi {
    top: 0;
    bottom: 0;
    left: -15%;
    right: -15%;
    -webkit-mask-image: linear-gradient(
      180deg,
      black 0%, black 20%,
      transparent 30%, transparent 70%,
      black 80%, black 100%
    );
    mask-image: linear-gradient(
      180deg,
      black 0%, black 20%,
      transparent 30%, transparent 70%,
      black 80%, black 100%
    );
    /* annulla il fade orizzontale desktop */
  }
  /* Su mobile il testo occupa tutta la larghezza */
  .hero-left { max-width: 100%; }
  .hero-logo-main { margin-bottom: 16px; }
  .hero-logo-main img { max-height: 76px; height: auto; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
  .hero-sub { font-size: 15px; line-height: 1.55; margin-bottom: 24px; }
  .hero-partners-area { padding-top: 32px; }
  .hero-partner-logos { gap: 12px; }
  .hero-partner-logos img { height: 28px; }
  .btn { font-size: 14px; padding: 13px 20px; }

  /* ── Section head: padding ridotto ── */
  .section-head { padding: 48px 0 24px; gap: 20px; }

  /* ── Stats: numeri più piccoli, due per riga ── */
  .stats { padding: 40px 0; }
  .stat-num { font-size: 48px; line-height: 1; }
  .stat-num .unit { font-size: 30px; }
  .stat-label { font-size: 11px; margin-top: 6px; }
  .stat { padding: 12px 16px; }

  /* ── Partners: 3 colonne su mobile ── */
  .partners-groups { gap: 32px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-cell { font-size: 13px; aspect-ratio: 1.8/1; }
  .partner-logo { max-width: 80%; max-height: 28px; }

  /* ── Speakers: forza carousel su mobile ── */
  .speakers-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    padding: 20px 16px 36px;
    cursor: grab;
  }
  .speakers-track:active { cursor: grabbing; }
  .speaker-card { flex: 0 0 150px; }
  .speaker-card.offset-up  { transform: translateY(-14px); }
  .speaker-card.offset-down { transform: translateY(14px); }
  .speaker-card.offset-up:hover  { transform: translateY(-20px); }
  .speaker-card.offset-down:hover { transform: translateY(8px); }

  /* ── Location ── */
  .location { padding: 24px 0 40px; }
  .location-map { aspect-ratio: 1.2; }

  /* ── Sezioni: padding verticale ── */
  .personas  { padding: 28px 0 48px; }
  .aree      { padding: 28px 0 48px; }
  .speakers  { padding: 28px 0 48px; }
  .partners  { padding: 28px 0 48px; }
  .faq       { padding: 28px 0 48px; }

  /* ── Footer CTA glass: full width su mobile ── */
  .fc-glass { padding: 32px 24px 36px; max-width: 100%; }
  .footer-cta { padding: 64px 0 56px; }
}

/* ============ Stili aggiuntivi (presenti nell'HTML inline, non in styles.css) ============ */

/* h1 wrapper del logo — reset margini heading, dimensiona solo l'img */
.hero-logo-main {
  margin: 0 0 24px;
  padding: 0;
  line-height: 0;
  font-size: 0;
}
.hero-logo-main img {
  height: auto;
  max-height: 110px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* Partners area: sits below hero-main, separated by a generous gap */
.hero-partners-area {
  padding-top: 40px;
}

.partners-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 14px;
}

.hero-partner-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-partner-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: .78;
  transition: opacity .2s;
}
.hero-partner-logos img:hover { opacity: 1; }

/* hero-glass: sfondo rimosso, testo direttamente su dark */
.hero-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 580px;
  align-self: flex-start;
  color: #fff;
  box-shadow: none;
}

.hero-glass .hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 17px;
  margin-bottom: 32px;
}
/* .hero-glass .btn-ghost — stili ereditati dal .btn-ghost default (già corretti per WCAG) */

/* regola duplicata rimossa — tutto consolidato nel blocco hero-location sopra */

/* nav brand img specifici */
.nav-brand img.logo-mondadori { height: 45px; }
.nav-brand img.logo-ubox { height: 34px; border-radius: 50%; }

/* speaker photo wrap */
.sp-photo-wrap {
  width: 100%;
  position: relative;
}

/* sp-aurora rimossa dal componente — regola mantenuta vuota per retrocompat */
.sp-aurora { display: none; }

.sp-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* placeholder quando non c'è photoUrl */
.sp-placeholder {
  width: 100%;
  height: 100%;
  background: var(--line);
  border-radius: 16px;
}

/* ============ Palermo hero ============ */
/* .palermo-hero eredita tutto da .tappe-hero + classi home hero */

/* ── Aree head: lede + link nazionale affiancati ── */
.pal-aree-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 380px;
}
.pal-national-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 3px;
  transition: color 0.2s cubic-bezier(0.32,0.72,0,1),
              border-color 0.2s cubic-bezier(0.32,0.72,0,1),
              gap 0.2s cubic-bezier(0.32,0.72,0,1);
}
.pal-national-link:hover {
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.5);
  gap: 11px;
}
.palermo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  margin-bottom: 24px;
}
.palermo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.palermo-hero .tappe-hero-title { margin-bottom: 20px; }
.palermo-hero .hero-sub { margin-bottom: 32px; }
.palermo-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ Personas compact ============ */
.personas-compact {
  padding: 40px 0;
  background: var(--bg-light);
}
.persona-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.persona-compact-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.persona-compact-card:hover {
  border-color: #1a1a24;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.18);
}
.pcc-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pcc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
}
.pcc-body {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
  flex: 1;
}
.pcc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-top: 4px;
}

/* ============ Aree compact ============ */
.aree-compact {
  padding: 40px 0 56px;
}
.aree-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.aree-compact-card {
  position: relative;
  padding: 24px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  transition: border-color .3s, transform .3s;
}
.aree-compact-card:hover {
  border-color: rgba(255,255,255,.22);
  transform: translateY(-3px);
}
.aree-compact-card .acc-bg {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 120% 120% at 30% 40%, var(--c1, #6e40aa)44 0%, var(--c2, #1ac7c2)33 55%, transparent 100%);
  filter: blur(40px);
  opacity: .5;
  z-index: 0;
  transition: opacity .4s;
}
.aree-compact-card:hover .acc-bg { opacity: .8; }
.aree-compact-card > *:not(.acc-bg) { position: relative; z-index: 1; }
.acc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  padding: 4px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  width: fit-content;
}
.acc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}
.acc-body {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  flex: 1;
}

/* ============ Stand Map (mappa padiglioni) ============ */
.stand-map {
  padding: 32px 0 56px;
  background: var(--bg-light);
}
.stand-map-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.stand-map-img {
  width: 100%;
  max-width: 960px;
  border-radius: 20px;
  display: block;
  box-shadow: 0 20px 60px -16px rgba(0,0,0,0.12);
  border: 1px solid var(--line);
}
/* Placeholder visivo (fino alla mappa reale) */
.stand-map-placeholder {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #f3f2f8;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px -16px rgba(0,0,0,0.10);
}
.smp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 6px;
  padding: 24px;
  height: 100%;
  opacity: 0.35;
}
.smp-block {
  background: rgba(28,26,58,0.18);
  border: 1.5px solid rgba(28,26,58,0.20);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  padding: 8px 10px;
  position: relative;
}
.smp-block--accent {
  background: rgba(209,44,23,0.10);
  border-color: rgba(209,44,23,0.22);
}
.smp-block--sm { padding: 6px 8px; }
.smp-corridor {
  background: rgba(28,26,58,0.06);
  border-radius: 4px;
}
.smp-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
/* Overlay "coming soon" centrato */
.smp-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-soft);
}
.smp-overlay svg { opacity: 0.5; }
.smp-overlay p {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0;
  line-height: 1.6;
  color: var(--ink-soft);
}
.smp-overlay p span {
  font-size: 11px;
  opacity: 0.65;
}
/* Pulsante download */
.stand-map-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 11px 22px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s cubic-bezier(0.32,0.72,0,1);
}
.stand-map-download:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.stand-map-download:active { transform: scale(0.97); }

/* ============ Event Map ============ */
.event-map {
  padding: 40px 0 56px;
  background: var(--bg-light);
}
.event-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Mappa visiva */
.event-map-visual {
  position: relative;
  aspect-ratio: 1.1;
  background: #06060b;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.map-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(209,44,23,.2);
}
.map-ring--1 { width: 80px;  height: 80px;  border-color: rgba(209,44,23,.35); }
.map-ring--2 { width: 160px; height: 160px; border-color: rgba(209,44,23,.18); }
.map-ring--3 { width: 260px; height: 260px; border-color: rgba(209,44,23,.08); }

.map-pin-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 48px;
}
@keyframes map-ping {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: .7; }
  100% { transform: translate(-50%,-50%) scale(3); opacity: 0; }
}
.map-pin-ping {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(210,9,30,.35);
  animation: map-ping 2s ease-out infinite;
}
.map-pin-ping--delay { animation-delay: 1s; }
.map-pin-svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(210,9,30,.5));
}
.map-venue-badge {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* Info sidebar */
.event-map-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.map-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s;
}
.map-info-card:hover { border-color: #1a1a24; }
.map-info-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--ink-dim);
}
.map-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.map-info-value {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}
.map-info-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.map-gmaps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  padding: 12px 0 0;
  transition: gap .2s;
}
.map-gmaps-btn:hover { gap: 12px; }

/* Responsive event map */
@media (max-width: 900px) {
  .event-map-grid { grid-template-columns: 1fr; }
  .event-map-visual { aspect-ratio: 1.6; }
  .aree-compact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .persona-compact-grid { grid-template-columns: 1fr; }
  .aree-compact-grid { grid-template-columns: 1fr; }
}

/* ============ News page ============ */
.news-hero {
  background: var(--bg-light);
  border-bottom: 1px solid var(--line);
  padding: 120px 0 56px;
}
.news-hero-content {}
.news-hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.news-hero-tag::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}
.news-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 80px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 16ch;
}
.news-hero h1 .accent { color: var(--red); font-style: italic; }
.news-hero p {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 48ch;
  line-height: 1.55;
  margin: 0;
}

.news-section {
  padding: 40px 0 56px;
  background: var(--bg-light);
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: pointer;
}
.news-card:hover {
  border-color: #1a1a24;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(0,0,0,.2);
}
.news-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.nc-media {
  flex-shrink: 0;
}
.news-card--featured .nc-media {
  width: 380px;
  min-height: 240px;
}
.news-card:not(.news-card--featured) .nc-media {
  height: 180px;
}
.nc-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--a1)22, var(--a3)22);
  min-height: inherit;
}
.nc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nc-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.nc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(210,9,30,.08);
  border: 1px solid rgba(210,9,30,.15);
}
.nc-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.nc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.news-card--featured .nc-title { font-size: 28px; }
.nc-excerpt {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.nc-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  margin-top: 4px;
  transition: gap .15s;
}
.nc-read:hover { gap: 10px; }

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card--featured { flex-direction: column; }
  .news-card--featured .nc-media { width: 100%; min-height: 180px; }
}

.sp-info { padding: 4px 4px 0; }
.sp-info .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
  color: #0a0a14;
}
.sp-info .rl { font-size: 13px; color: rgba(0,0,0,.6); line-height: 1.4; }

/* partner logo */
.partner-logo { height: 32px; width: auto; object-fit: contain; }

/* ============================================================
   PAGINA STAND — pacchetti espositivi
   ============================================================ */

/* ── Sfondo scuro identico ad aree-home (automotive + CTA) ── */
.stand-dark {
  background:
    radial-gradient(ellipse 70% 90% at -8% 55%, rgba(110,64,170,0.55) 0%, transparent 58%),
    radial-gradient(ellipse 60% 70% at 108% 28%, rgba(26,199,194,0.40) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 48% 115%, rgba(65,105,225,0.35) 0%, transparent 52%),
    radial-gradient(ellipse 38% 38% at 78% 8%, rgba(64,243,115,0.18) 0%, transparent 50%),
    #1C1A3A;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* ── Sezione pacchetti (chiaro) ── */
.stand-pacchetti {
  padding: 56px 0 100px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}
.stand-pacchetti-aurora { display: none; }
.stand-pacchetti .wrap { position: relative; z-index: 1; }

/* ── Grid 3 colonne ── */
.pkt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 56px;
}

/* ── Singola card (su sfondo chiaro) ── */
.pkt-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22,.8,.22,1), border-color .3s, box-shadow .3s;
}
.pkt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10,10,15,.18);
  box-shadow: 0 16px 40px -16px rgba(10,10,15,.12);
}
.pkt-card--featured { border-color: var(--red); }
.pkt-card-aurora { display: none; }

.pkt-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pkt-badge-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pkt-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 5px 12px;
  border-radius: 100px;
}
.pkt-badge-rec {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim); /* #3b3c43 su #f6f5f2 → ~8:1, passa AA (era #6b6c74 = 4.24:1, sotto soglia) */
  background: var(--bg-light);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 100px;
}
.pkt-size-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pkt-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}
.pkt-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 24px;
}
.pkt-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 24px;
  flex: 1;
}
.pkt-features-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.pkt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pkt-list li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  padding-left: 14px;
  position: relative;
}
.pkt-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: .7;
}
.pkt-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--bg-light);
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 100px;
  align-self: flex-start;
  margin-top: auto;
  transition: background .2s, border-color .2s, gap .15s;
}
.pkt-cta:hover { background: #ebe9e4; border-color: rgba(10,10,15,.2); gap: 12px; }
.pkt-card--featured .pkt-cta { background: var(--red); border-color: transparent; color: #fff; }
.pkt-card--featured .pkt-cta:hover { background: var(--red-hover); }

/* ── Per chi (light) ── */
.stand-perchi {
  background: var(--bg-light);
  padding: 80px 0 48px;
}
.stand-perchi-header { margin-bottom: 40px; }
.stand-perchi-header .tag { margin-bottom: 12px; }
.stand-perchi-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}
.stand-perchi-header h2 .accent {
  color: var(--red);
  font-style: italic;
  padding: 0.1em 0.15em 0.08em 0.04em;
}
.stand-perchi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* When image is present: cards stack vertically on left, image fills right */
.stand-perchi-grid--with-image {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.stand-perchi-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stand-perchi-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  min-height: 300px;
}
.stand-perchi-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.stand-perchi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.stand-perchi-card:hover {
  border-color: rgba(10,10,15,.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px rgba(10,10,15,.1);
}
.stand-perchi-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.stand-perchi-icon svg,
.stand-perchi-icon img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
}
.stand-perchi-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.stand-perchi-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0;
}

/* ── Perché partecipare ── */
.stand-perche {
  background: var(--bg-light);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.stand-perche .section-head {
  margin-bottom: 0;
  padding-bottom: 48px;
}

.sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.sp-panel {
  padding: 48px 48px 56px 0;
}

.sp-panel + .sp-panel {
  border-left: 1px solid var(--line);
  padding-left: 48px;
  padding-right: 0;
}

.sp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.sp-kicker svg {
  color: var(--red);
  flex-shrink: 0;
}

.sp-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 20px;
}

.sp-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 52ch;
  margin: 0 0 28px;
}


@media (max-width: 768px) {
  .sp-grid {
    grid-template-columns: 1fr;
  }
  .sp-panel {
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
  }
  .sp-panel + .sp-panel {
    border-left: none;
    padding-left: 0;
    border-bottom: none;
  }
}

/* ── Automotive (light) ── */
.stand-automotive {
  background: var(--bg-light);
  padding: 88px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stand-auto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.stand-auto-text .tag { margin-bottom: 16px; }
.stand-auto-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 16px;
  color: var(--ink);
}
.stand-auto-title .accent {
  color: var(--red);
  font-style: italic;
  padding: 0.1em 0.15em 0.08em 0.04em;
}
.stand-auto-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0;
  max-width: 46ch;
}
.stand-auto-tag-row { margin-top: 20px; }
.stand-auto-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-light);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
}
.stand-auto-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stand-auto-extra {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.stand-auto-extra:hover { border-color: rgba(10,10,15,.18); box-shadow: 0 6px 20px -8px rgba(10,10,15,.1); }
.stand-auto-extra-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.stand-auto-extra-icon svg,
.stand-auto-extra-icon img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
}
.stand-auto-extra strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.stand-auto-extra p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ── CTA finale stand — strip glassmorphism orizzontale ── */
.stand-cta-section .fc-body { justify-content: stretch; }
.stand-cta-glass {
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 24px;
  padding: 48px 56px 52px;
  width: 100%;
  max-width: 640px;
  color: #0a0a0f;
  box-shadow: 0 12px 60px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin: 0 auto;
}
.stand-cta-text { width: 100%; }
.stand-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0a0a0f;
  margin: 0 0 10px;
}
.stand-cta-sub {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(10,10,15,0.62);
  margin: 0;
}
@media (max-width: 768px) {
  .stand-cta-glass { padding: 36px 28px 40px; }
}

/* ── Automotive dark overrides (quando ha classe .stand-dark) ── */
.stand-automotive.stand-dark {
  border-top: none;
  border-bottom: none;
  background:
    radial-gradient(ellipse 70% 90% at -8% 55%, rgba(110,64,170,0.55) 0%, transparent 58%),
    radial-gradient(ellipse 60% 70% at 108% 28%, rgba(26,199,194,0.40) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 48% 115%, rgba(65,105,225,0.35) 0%, transparent 52%),
    radial-gradient(ellipse 38% 38% at 78% 8%, rgba(64,243,115,0.18) 0%, transparent 50%),
    #1C1A3A;
}
.stand-dark .stand-auto-title { color: #fff; }
.stand-dark .stand-auto-desc { color: rgba(255,255,255,0.72); }
.stand-dark .stand-auto-tag {
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.stand-dark .stand-auto-extra {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.stand-dark .stand-auto-extra:hover {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.35);
}
.stand-dark .stand-auto-extra-icon {
  color: var(--red);
}
.stand-dark .stand-auto-extra strong { color: #fff; }
.stand-dark .stand-auto-extra p { color: rgba(255,255,255,0.58); }
.stand-dark .tag { color: rgba(255,255,255,0.6); }


/* ── Responsive ── */
@media (max-width: 1024px) {
  .pkt-grid { grid-template-columns: 1fr; }
  .stand-auto-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .stand-pacchetti { padding: 40px 0 72px; }
  .stand-perchi { padding: 56px 0 36px; }
  .stand-perchi-grid { grid-template-columns: 1fr; }
  .stand-perchi-grid--with-image { grid-template-columns: 1fr; }
  .stand-perchi-image-wrap { min-height: 260px; order: -1; }
  .stand-automotive { padding: 56px 0; }
  .stand-auto-extras { grid-template-columns: 1fr; }
  .pkt-features { grid-template-columns: 1fr; }
  .pkt-card { padding: 24px 20px 20px; }
}


/* ════════════════════════════════════════════════
   Banda dark condivisa — aree-home + osservatorio
   ════════════════════════════════════════════════ */
.dark-band {
  background:
    radial-gradient(ellipse 70% 90% at -8% 55%, rgba(110,64,170,0.55) 0%, transparent 58%),
    radial-gradient(ellipse 60% 70% at 108% 28%, rgba(26,199,194,0.40) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 48% 115%, rgba(65,105,225,0.35) 0%, transparent 52%),
    radial-gradient(ellipse 38% 38% at 78% 8%, rgba(64,243,115,0.18) 0%, transparent 50%),
    #1C1A3A;
}
/* aree-home porta il proprio sfondo: dentro .dark-band si rende trasparente */
.dark-band .aree-home { background: none; }

/* ════════════════════════════════════════════════
   Osservatorio studenti
   ════════════════════════════════════════════════ */
.osservatorio {
  padding: 96px 0;
}
/* section-head è flex orizzontale — dentro osservatorio diventa verticale */
.osservatorio .section-head        { display: block; padding: 0; }
.osservatorio .section-head .lede  { max-width: 52ch; margin-top: 20px; }
.osservatorio .lede p              { margin: 0 0 1em; }
.osservatorio .lede p:last-child   { margin-bottom: 0; }
.osservatorio .lede strong         { color: #fff; }

.osserv-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Colonna stats ── */
.osserv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.osserv-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.osserv-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.osserv-stat-unit {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}

.osserv-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}

.osserv-stat--full {
  grid-column: 1 / -1;
  background: none;
  border: none;
  padding: 0;
}

.osserv-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.osserv-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .osserv-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .osservatorio { padding: 64px 0; }
  .osserv-inner { gap: 36px; }
  .osserv-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .osserv-stat  { padding: 20px 18px 18px; }
  .osserv-stat-num { font-size: 2rem; }
}

@media (max-width: 480px) {
  .osserv-stats { grid-template-columns: 1fr; }
  .osserv-stat--full { grid-column: 1; }
}
