/* ==========================================================
   Gli Amici di Boyle — styles.css
   Versione pulita · zero patch · mobile-first
   ========================================================== */

/* ── VARIABILI ── */
:root {
  --text:      #edf7ff;
  --muted:     rgba(237,247,255,.78);
  --soft:      rgba(237,247,255,.55);
  --cyan:      #7be4ff;
  --cyan-2:    #a8eeff;
  --blue:      #4fa8ff;
  --border:    rgba(120,210,255,.18);
  --border-hi: rgba(160,230,255,.36);
  --glass:     rgba(8,26,52,.62);
  --shadow:    0 20px 55px rgba(0,0,0,.38);
  --shadow-sm: 0 8px 22px rgba(0,0,0,.28);
  --glow:      0 0 30px rgba(100,200,255,.14);
  --radius:    24px;
  --radius-sm: 16px;
  --radius-xs: 10px;
  --max-w:     1180px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #020e1c;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
p   { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1,h2,h3,h4 { line-height: 1.08; }

/* ── SFONDO OCEANO FISSO ──────────────────────────────────
   Tutto il contenuto scorre sopra come se fossimo sott'acqua.
   body::before = immagine fissa
   body::after  = overlay scuro per profondità
   --------------------------------------------------------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3;
  background: url("assets/ocean-desktop.jpg") center top / cover no-repeat;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0,80,180,.22), transparent 60%),
    radial-gradient(ellipse at 0% 50%, rgba(0,40,120,.18), transparent 45%),
    radial-gradient(ellipse at 100% 80%, rgba(0,30,100,.15), transparent 40%),
    linear-gradient(180deg, rgba(2,10,24,.45) 0%, rgba(2,10,24,.25) 40%, rgba(2,10,24,.6) 100%);
}

/* ── LAYOUT ── */
.container {
  width: min(var(--max-w), 100%);
  padding: 0 24px;
  margin: 0 auto;
}
.skip-link {
  position: absolute; left: 14px; top: -50px;
  background: #fff; color: #00131e;
  padding: 10px 14px; border-radius: 10px; z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 14px; }

/* ── GLASS ── */
.glass-panel, .glass-card, .glass-chip {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: var(--radius);
}
.glass-card { padding: 26px; }
/* Shimmer interno */
.glass-card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.055) 0%, transparent 55%);
}

/* ── SCROLL REVEAL ──────────────────────────────────────
   Tutto da sinistra, con dissolvenza, sezione per sezione.
   --------------------------------------------------------- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94),
              transform .7s cubic-bezier(.22,.68,0,1.1);
  will-change: opacity, transform;
}
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1; transform: none; transition: none;
  }
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(4, 20, 52, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(80,170,255,.18);
  box-shadow: 0 1px 0 rgba(40,130,255,.10), 0 4px 28px rgba(0,0,0,.22);
  transition: background .3s;
}
.site-header.scrolled {
  background: rgba(3, 14, 38, 0.98);
}

.nav-wrap {
  display: flex; align-items: center;
  justify-content: space-between;
  min-height: 74px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand img {
  width: 48px; height: 48px; flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(123,228,255,.3));
  transition: filter .3s;
}
.brand:hover img { filter: drop-shadow(0 0 20px rgba(123,228,255,.55)); }
.brand-copy { display: grid; gap: 2px; min-width: 0; overflow: hidden; }
.brand strong { font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand em     { font-style: normal; font-size: .7rem; color: var(--soft); }
.brand-sub    { font-size: .7rem; color: var(--soft); display: block; }

/* Nav desktop */
.site-nav { display: flex; align-items: center; gap: 4px; font-size: .88rem; }
.site-nav > a {
  color: var(--muted); padding: 6px 11px; border-radius: 9px;
  transition: color .2s, background .2s;
}
.site-nav > a:hover { color: var(--text); background: rgba(123,228,255,.08); }

.nav-dropdown { position: relative; }
.nav-dropdown > span {
  display: block; color: var(--muted); padding: 6px 11px; border-radius: 9px;
  cursor: pointer; transition: color .2s, background .2s;
}
.nav-dropdown:hover > span { color: var(--text); background: rgba(123,228,255,.08); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 176px; padding: 8px; border-radius: 14px;
  background: rgba(4,14,32,.94); border: 1px solid var(--border);
  box-shadow: var(--shadow); display: grid; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel a {
  padding: 8px 12px; border-radius: 9px; display: block;
  color: var(--muted); font-size: .85rem;
  transition: background .15s, color .15s;
}
.nav-dropdown-panel a:hover { background: rgba(123,228,255,.09); color: var(--text); }

.nav-toggle { display: none; }
.nav-burger  { display: none; }

/* ── TICKER ── */
.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(120,210,255,.1);
  border-bottom: 1px solid rgba(120,210,255,.06);
}
.ticker-track {
  display: inline-block; white-space: nowrap; padding: 9px 0;
  animation: tickerMove 28s linear infinite;
  color: rgba(180,230,255,.5); font-size: .74rem; letter-spacing: .22em;
}
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HERO ── */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; display: flex; align-items: center;
  padding: 80px 0 60px;
}
/* Strato di luce sull'hero */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, rgba(2,8,18,.08) 0%, rgba(2,8,18,.06) 50%, rgba(2,8,18,.5) 100%);
}
.light-scattering {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 50% -5%, rgba(120,210,255,.2) 0%, rgba(80,160,255,.1) 18%, transparent 52%),
    radial-gradient(circle at 10% 15%, rgba(160,230,255,.08), transparent 28%),
    radial-gradient(circle at 90% 5%,  rgba(100,190,255,.07), transparent 22%);
  animation: driftLight 20s ease-in-out infinite alternate;
}
.particles {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(214,245,255,.38) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(171,228,255,.22) 0 1.2px, transparent 1.9px),
    radial-gradient(circle, rgba(214,245,255,.16) 0 1px, transparent 1.7px);
  background-size: 200px 200px, 310px 310px, 410px 410px;
  background-position: 12% 10%, 72% 20%, 50% 60%;
  opacity: .26; animation: particlesRise 34s linear infinite;
}
/* Raggi di luce dall'alto */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(174deg, rgba(155,215,255,.1) 0%, transparent 42%),
    linear-gradient(167deg, rgba(135,205,255,.07) 0%, transparent 48%),
    linear-gradient(181deg, rgba(175,230,255,.08) 0%, transparent 40%),
    radial-gradient(ellipse 70% 22% at 50% 0%, rgba(80,165,255,.12), transparent 65%);
  animation: lightRays 12s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: conic-gradient(from 87deg at 50% -2%,
    transparent 0deg, rgba(155,225,255,.055) 2.5deg, transparent 5deg,
    transparent 9deg, rgba(135,210,255,.045) 11deg, transparent 13.5deg,
    transparent 18deg, rgba(165,235,255,.065) 20.5deg, transparent 23deg);
  animation: raysCone 14s ease-in-out infinite alternate;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto; text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(123,228,255,.08); border: 1px solid rgba(123,228,255,.2);
  color: var(--cyan-2); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-2); box-shadow: 0 0 10px var(--cyan-2);
  animation: dotPulse 2s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .94; letter-spacing: -.04em;
  text-wrap: balance; margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyan-2), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: rgba(237,247,255,.82); line-height: 1.65;
  max-width: 62ch; margin: 0 auto 30px;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex; justify-content: center; align-items: stretch;
  max-width: 680px; margin: 0 auto;
  border: 1px solid rgba(123,228,255,.14); border-radius: 16px;
  background: rgba(6,20,46,.46); backdrop-filter: blur(16px);
  overflow: hidden;
}
.hero-stat {
  flex: 1; min-width: 120px; padding: 16px 18px; text-align: center;
  border-right: 1px solid rgba(123,228,255,.1);
  transition: background .25s;
}
.hero-stat:last-child { border-right: 0; }
.hero-stat:hover { background: rgba(123,228,255,.06); }
.hero-stat strong {
  display: block; font-size: 1.5rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--cyan-2);
  line-height: 1.1; margin-bottom: 4px;
}
.hero-stat span { font-size: .74rem; color: var(--soft); letter-spacing: .04em; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  color: var(--soft); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  animation: fadeInUp 1s ease 1.2s both;
}
.hero-scroll svg { animation: bounceDown 2.2s ease-in-out infinite; }

/* ── CANVAS PULVISCOLO ── */
#dust-canvas {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; width: 100%; height: 100%;
}

/* ── SEZIONI ── */
.section      { padding: 88px 0; }
.alt-section  { background: transparent; }
.section-grid { display: grid; gap: 22px; }
.split-2      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-3      { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-2-1    { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .72fr); }

.section-heading       { max-width: 760px; margin-bottom: 28px; }
.section-heading--compact { margin-bottom: 18px; max-width: 900px; }
.section-heading h2,
.section h2 {
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  margin-bottom: 12px; letter-spacing: -.03em; line-height: 1.04;
}
.section h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); margin-bottom: 10px; letter-spacing: -.02em; }
.section-lead { font-size: 1.08rem; line-height: 1.7; color: var(--text); }
.section p    { color: var(--muted); }

.eyebrow, .section-kicker, .micro-label {
  display: block; margin-bottom: 12px;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-2);
}
.cards-grid   { display: grid; gap: 20px; }
.cards-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── BOTTONI ── */
.cta-row       { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-row--tight { margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: .92rem;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .22s cubic-bezier(.22,.68,0,1.4),
              box-shadow .22s ease, border-color .2s, background .2s;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, rgba(125,232,255,.98), rgba(82,158,255,.92));
  color: #021830;
  box-shadow: 0 8px 26px rgba(100,200,255,.24), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 50%);
  opacity: 0; transition: opacity .2s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 12px 36px rgba(100,200,255,.36), inset 0 1px 0 rgba(255,255,255,.28); }

.btn-secondary {
  background: rgba(8,26,56,.68); border-color: rgba(123,228,255,.26); color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { border-color: rgba(123,228,255,.48); background: rgba(10,32,66,.78); }

.btn-ghost {
  background: transparent; border-color: rgba(237,247,255,.16); color: var(--muted);
  position: relative; overflow: hidden;
}
.btn-ghost::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-18deg);
  transition: none;
  animation: ghostShimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ghostShimmer {
  0%   { left: -100%; opacity: 0; }
  20%  { opacity: 1; }
  60%  { left: 130%; opacity: 0; }
  100% { left: 130%; opacity: 0; }
}
.btn-ghost:hover {
  color: var(--text); border-color: rgba(123,228,255,.4);
  background: rgba(123,228,255,.07);
  box-shadow: 0 0 18px rgba(123,228,255,.12);
}

.btn-block { width: 100%; }

/* ── Hero CTA buttons — premium variant ── */
.hero-btn-main {
  background: linear-gradient(135deg, #7be4ff 0%, #52a0ff 100%);
  color: #021830;
  font-weight: 700;
  font-size: .96rem;
  padding: 0 26px;
  min-height: 52px;
  box-shadow: 0 8px 28px rgba(100,200,255,.3), 0 2px 8px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.3);
  letter-spacing: .01em;
}
.hero-btn-main:hover {
  box-shadow: 0 14px 40px rgba(100,200,255,.45), 0 2px 8px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.3);
  background: linear-gradient(135deg, #9aeeff 0%, #70b8ff 100%);
}
.hero-btn-main svg { color: #021830; flex-shrink: 0; }

.hero-btn-rete {
  background: rgba(8,26,60,.72);
  border-color: rgba(123,228,255,.35);
  color: #c8f0ff;
  font-size: .96rem;
  padding: 0 26px;
  min-height: 52px;
  backdrop-filter: blur(12px);
  letter-spacing: .01em;
}
.hero-btn-rete svg { color: #7be4ff; flex-shrink: 0; }
.hero-btn-rete:hover {
  border-color: rgba(123,228,255,.65);
  background: rgba(10,34,76,.82);
  box-shadow: 0 8px 28px rgba(0,0,0,.22), 0 0 20px rgba(123,228,255,.12);
}

.hero-btn-podcast {
  background: transparent;
  border-color: rgba(237,247,255,.18);
  color: rgba(237,247,255,.62);
  font-size: .92rem;
  padding: 0 22px;
  min-height: 48px;
  position: relative; overflow: hidden;
  letter-spacing: .01em;
}
.hero-btn-podcast svg { color: #7be4ff; flex-shrink: 0; opacity: .8; }
.hero-btn-podcast::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transform: skewX(-18deg);
  animation: ghostShimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}
.hero-btn-podcast:hover {
  color: rgba(237,247,255,.9);
  border-color: rgba(123,228,255,.36);
  background: rgba(123,228,255,.06);
  box-shadow: 0 0 16px rgba(123,228,255,.1);
}
.hero-btn-podcast:hover svg { opacity: 1; }

/* Bottone elettrico — scan animato */
.btn-electric {
  background: linear-gradient(135deg, rgba(16,134,255,.96), rgba(0,192,255,.9));
  border: 1px solid rgba(90,210,255,.44); color: rgba(2,12,28,.96);
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0,120,255,.26), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-electric::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 24%, rgba(255,255,255,.2) 46%, transparent 68%);
  transform: translateX(-130%);
  animation: electricScan 2.8s ease-in-out infinite;
}
.btn-electric::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid rgba(120,220,255,.45);
  animation: borderPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
.btn-electric:hover {
  box-shadow: 0 12px 38px rgba(0,140,255,.36), 0 0 50px rgba(0,200,255,.18);
}
.btn-rete-cta {
  border-radius: 14px; min-height: 52px;
  padding: 0 26px; font-size: .96rem;
}
.btn-candidati-cta {
  background: rgba(6,20,48,.64); border-color: rgba(120,210,255,.3); color: rgba(200,240,255,.92);
  border-radius: 14px; min-height: 52px; padding: 0 24px;
  backdrop-filter: blur(10px); cursor: pointer;
}
.btn-candidati-cta::before { display: none; }
.btn-candidati-cta::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(120,230,255,.48) 50%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderFlow 3.4s linear infinite;
}
.btn-candidati-cta:hover {
  background: rgba(10,30,68,.78); border-color: rgba(140,225,255,.52);
  box-shadow: 0 10px 32px rgba(0,0,0,.28), 0 0 26px rgba(80,200,255,.1);
}

/* ── INFO CARDS (sezione In evidenza) ── */
.info-card { padding: 30px; transition: transform .3s cubic-bezier(.22,.68,0,1.4), box-shadow .3s, border-color .3s; }
.info-card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow), var(--glow); }
.info-card h2 { font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: 10px; }

/* ── VISIONE ── */
.vision-layout { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items: start; gap: 30px; }
.bullet-cloud  { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.bullet-cloud span {
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid rgba(123,228,255,.18); color: var(--text); font-size: .85rem;
  background: rgba(123,228,255,.05); transition: border-color .2s, background .2s;
}
.bullet-cloud span:hover { border-color: rgba(123,228,255,.34); background: rgba(123,228,255,.1); }

/* Timeline */
.timeline-card { padding: 28px; }
.timeline { list-style: none; padding: 4px 0 0; display: grid; gap: 18px; }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: start; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 38px; top: 28px;
  width: 1px; height: calc(100% + 8px);
  background: linear-gradient(180deg, rgba(123,228,255,.38), transparent);
}
.timeline li:last-child::before { display: none; }
.timeline strong {
  display: inline-flex; width: 78px; height: 32px;
  align-items: center; justify-content: center; border-radius: 999px;
  background: rgba(123,228,255,.08); color: var(--cyan-2); font-size: .82rem;
  border: 1px solid rgba(123,228,255,.14);
}

/* ── ATTIVITÀ ── */
.activity-grid-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.activity-card {
  text-align: center; padding: 32px 20px 26px;
  transition: transform .3s cubic-bezier(.22,.68,0,1.4), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.activity-card:hover { transform: translateY(-5px); border-color: var(--border-hi); box-shadow: var(--shadow), var(--glow); }
/* Anello luminoso al hover */
.activity-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(180,230,255,.3) 0%, transparent 50%, rgba(160,220,255,.24) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.activity-card:hover::before { opacity: 1; }

.activity-asset {
  width: 150px; height: 150px; object-fit: contain;
  margin: 0 auto 20px; display: block;
  filter: drop-shadow(0 0 14px rgba(124,243,255,.28)) drop-shadow(0 0 32px rgba(80,180,255,.14));
  transition: transform .4s cubic-bezier(.22,.68,0,1.4), filter .4s;
}
.activity-card:hover .activity-asset {
  transform: scale(1.1) translateY(-6px);
  filter: drop-shadow(0 0 24px rgba(124,243,255,.55)) drop-shadow(0 0 52px rgba(80,200,255,.28));
}

/* Sfondi tonalità diverse per ogni card */
.activity-card--ricerca      { background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,120,255,.16), transparent 60%), linear-gradient(160deg, rgba(8,32,78,.82), rgba(4,17,44,.92)); border-color: rgba(80,160,255,.2); }
.activity-card--formazione   { background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,155,220,.14), transparent 60%), linear-gradient(160deg, rgba(6,36,68,.82), rgba(3,19,42,.92)); border-color: rgba(60,178,238,.2); }
.activity-card--pubblicazioni{ background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,100,200,.16), transparent 60%), linear-gradient(160deg, rgba(5,27,62,.82), rgba(3,15,38,.92)); border-color: rgba(40,138,218,.2); }
.activity-card--media        { background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,175,200,.14), transparent 60%), linear-gradient(160deg, rgba(4,30,56,.82), rgba(2,17,34,.92)); border-color: rgba(0,198,228,.18); }

/* ── FONDATORI ── */
.founders-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.founder-card {
  padding: 18px 16px 20px; min-width: 0; text-align: left; overflow: hidden;
  background: radial-gradient(circle at 14% 12%, rgba(160,228,255,.14), transparent 30%),
              linear-gradient(160deg, rgba(10,28,58,.9), rgba(5,16,36,.96));
  border-color: rgba(123,228,255,.14);
  transition: transform .3s cubic-bezier(.22,.68,0,1.4), box-shadow .3s, border-color .3s;
}
.founder-card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow), var(--glow); }
.founder-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.09) 0%, rgba(200,235,255,.04) 22%, transparent 50%);
}
.founder-card::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 52px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,228,255,.28), transparent);
}
.founder-card > * { position: relative; z-index: 1; }
.founder-card--silvio  { background: radial-gradient(circle at 14% 12%, rgba(160,228,255,.16), transparent 30%), linear-gradient(160deg, rgba(11,32,66,.92), rgba(6,18,40,.96)); }
.founder-card--luigi   { background: radial-gradient(circle at 14% 12%, rgba(140,210,255,.14), transparent 30%), linear-gradient(160deg, rgba(10,30,60,.92), rgba(5,16,36,.96)); }
.founder-card--vincenzo{ background: radial-gradient(circle at 14% 12%, rgba(150,228,255,.14), transparent 30%), linear-gradient(160deg, rgba(8,27,56,.92), rgba(5,15,34,.96)); }
.founder-card--dario   { background: radial-gradient(circle at 14% 12%, rgba(120,200,255,.14), transparent 30%), linear-gradient(160deg, rgba(7,25,54,.92), rgba(4,14,32,.96)); }
.founder-card--matteo  { background: radial-gradient(circle at 14% 12%, rgba(175,236,255,.13), transparent 30%), linear-gradient(160deg, rgba(9,29,58,.92), rgba(5,16,35,.96)); }
.founder-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.founder-role {
  padding: 5px 10px; border-radius: 999px; font-size: .63rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--cyan-2); border: 1px solid rgba(123,228,255,.15); background: rgba(123,228,255,.06);
}
.founder-card > img { width: 100px; height: 100px; margin: 0 0 14px; border-radius: 50%; border: 1px solid rgba(123,228,255,.24); box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: filter .3s, transform .3s; }
.founder-card:hover > img { filter: drop-shadow(0 0 14px rgba(80,200,255,.4)); transform: scale(1.04); }
.founder-card h3 { margin-bottom: 7px; font-size: .96rem; }
.founder-card p  { color: rgba(237,247,255,.74); font-size: .84rem; }
.linkedin-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(123,228,255,.07); border: 1px solid rgba(123,228,255,.15); transition: background .2s, border-color .2s; }
.linkedin-link:hover { background: rgba(123,228,255,.14); border-color: rgba(123,228,255,.32); }
.linkedin-link img { width: 15px; height: 15px; }
.linkedin-link--text { font-weight: 800; font-size: .9rem; }
.linkedin-link--text img { display: none; }

/* ── RETE HOME ── */
.rete-home-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.96fr); gap: 28px; align-items: start; }
.network-box--image { padding: 20px; display: grid; gap: 18px; border-radius: var(--radius); }
.network-visual-stage {
  position: relative; min-height: 270px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid rgba(123,228,255,.15);
  background: radial-gradient(circle at 50% 20%, rgba(137,220,255,.1), rgba(4,18,35,.92) 65%);
}
.network-visual-stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(4,14,28,.28)); pointer-events: none;
}
.network-visual-image { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.network-copy--cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.network-chip {
  padding: 16px 14px; border-radius: var(--radius-sm); overflow: hidden; position: relative;
  border: 1px solid rgba(123,228,255,.17);
  background: linear-gradient(180deg, rgba(10,36,70,.76), rgba(6,22,48,.86));
  transition: border-color .25s, transform .25s;
}
.network-chip:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.network-chip::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,246,255,.75) 50%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderFlow 5s linear infinite; opacity: .65;
}
.network-chip--a { background: linear-gradient(180deg, rgba(10,42,80,.8), rgba(6,26,54,.88)); }
.network-chip--b { background: linear-gradient(180deg, rgba(8,34,72,.8), rgba(5,20,50,.88)); }
.network-chip--c { background: linear-gradient(180deg, rgba(7,28,64,.8), rgba(5,18,44,.88)); }
.network-chip strong { display: block; margin-bottom: 5px; color: var(--text); }
.network-chip p { color: rgba(237,247,255,.7); font-size: .86rem; }

/* Signal beams */
.signal-beam, .signal-node { position: absolute; z-index: 2; pointer-events: none; }
.signal-beam {
  height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(195,244,255,.9) 50%, transparent);
  box-shadow: 0 0 10px rgba(123,228,255,.4); animation: beamTravel 7s linear infinite; opacity: .8;
}
.s1{width:42%;left:8%;top:24%;transform:rotate(16deg);animation-delay:-.8s;}
.s2{width:34%;left:54%;top:30%;transform:rotate(-14deg);animation-delay:-2.5s;}
.s3{width:38%;left:12%;top:66%;transform:rotate(-10deg);animation-delay:-4.1s;}
.s4{width:32%;left:56%;top:70%;transform:rotate(18deg);animation-delay:-5.3s;}
.signal-node {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.96), rgba(123,228,255,.8) 50%, transparent 78%);
  box-shadow: 0 0 14px rgba(123,228,255,.5); animation: neuralPulse 4s ease-in-out infinite;
}
.sn1{left:24%;top:26%;} .sn2{left:49%;top:54%;animation-delay:-1.5s;} .sn3{left:76%;top:38%;animation-delay:-2.7s;}

/* ── CONTENUTI (4 card) ── */
.content-grid .content-card img {
  width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 14px;
}

/* ── EVENTO ── */
.event-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.82fr); gap: 28px; align-items: center; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.event-meta span {
  padding: 8px 15px; border-radius: 999px;
  background: rgba(123,228,255,.07); border: 1px solid rgba(123,228,255,.16);
  color: var(--text); font-size: .88rem;
}
.poster-card {
  padding: 20px; display: flex; flex-direction: column;
  gap: 16px; align-items: center;
  transition: box-shadow .3s;
}
.poster-card > img {
  width: 100%; max-width: 320px; height: auto;
  border-radius: var(--radius-sm); object-fit: cover; margin: 0 auto;
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 35px rgba(80,170,255,.1);
  border: 1px solid rgba(120,210,255,.2);
  transition: transform .4s cubic-bezier(.22,.68,0,1.4), box-shadow .4s;
}
.poster-card:hover > img {
  transform: translateY(-5px) rotate(.3deg);
  box-shadow: 0 26px 64px rgba(0,0,0,.55), 0 0 50px rgba(80,200,255,.15);
}
.poster-card .btn { width: 100%; }

/* ── RICERCA ── */
.research-showcase-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 26px; }
.research-card {
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  border-radius: var(--radius); overflow: hidden; min-height: 0;
  transition: transform .3s cubic-bezier(.22,.68,0,1.4), box-shadow .3s, border-color .3s;
}
.research-card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow), var(--glow); }
.research-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at top right, rgba(190,242,255,.09), transparent 36%);
}
.research-card h3 { margin: 0 0 4px; }
.research-card p  { margin: 0; color: rgba(237,247,255,.82); }
.research-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 4px; }
.research-tags span {
  padding: 6px 12px; border-radius: 999px; font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(229,248,255,.9); background: rgba(123,228,255,.07); border: 1px solid rgba(123,228,255,.14);
}
.research-card .btn { margin-top: 6px; align-self: flex-start; }
.research-card--hyperbaric { background: linear-gradient(160deg, rgba(10,32,64,.9), rgba(5,17,36,.96)); }
.research-card--aerospace  { background: linear-gradient(160deg, rgba(9,29,62,.9), rgba(5,16,34,.96)); }
.research-card--human      { background: linear-gradient(160deg, rgba(8,26,56,.9), rgba(4,15,32,.96)); }
.research-card--didattica  { background: linear-gradient(160deg, rgba(11,34,68,.9), rgba(6,19,40,.96)); }

/* ── FORMAZIONE ── */
.courses-showcase {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(8,26,52,.76), rgba(5,18,38,.9));
  backdrop-filter: blur(16px);
}
.courses-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.course-poster-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: start; }
.course-poster-card {
  padding: 12px; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(9,28,56,.9), rgba(5,17,36,.96));
  border: 1px solid var(--border);
  transition: transform .3s cubic-bezier(.22,.68,0,1.4), box-shadow .3s, border-color .3s;
}
.course-poster-card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow-sm), var(--glow); }
.course-poster-card img { width: 100%; aspect-ratio: 0.75; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.course-poster-card h4, .teaching-card h4 { margin: 0 0 9px; font-size: .98rem; line-height: 1.3; }
.course-poster-card .btn { min-height: 40px; font-size: .86rem; }

.teaching-blocks { margin-top: 28px; }
.teaching-poster-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.teaching-card { padding: 16px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.teaching-card:hover { transform: translateY(-3px); border-color: var(--border-hi); box-shadow: var(--shadow-sm), var(--glow); }
/* Immagini teaching: intere, proporzionate */
.teaching-card > img {
  width: 100%; height: auto; aspect-ratio: auto;
  object-fit: contain; object-position: center;
  border-radius: 12px; margin-bottom: 12px; display: block;
}

/* Feature cards */
.feature-card { transition: transform .3s cubic-bezier(.22,.68,0,1.4), box-shadow .3s, border-color .3s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow), var(--glow); }
/* Immagini articoli/pubblicazioni: intere */
.feature-card > img {
  width: 100%; height: auto; aspect-ratio: auto;
  object-fit: contain; object-position: center;
  border-radius: 12px; margin-bottom: 14px; display: block;
  background: rgba(4,14,30,.5); padding: 10px;
}
.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; color: var(--cyan-2); font-weight: 600;
}
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

/* ── PARTNER ── */
.partner-feature { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.partner-logo { width: 170px; max-width: 100%; object-fit: contain; }

/* ── Parliamone / partner CTA button ── */
.btn-partner-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(10,36,80,.82), rgba(6,22,54,.88));
  border: 1px solid rgba(123,228,255,.38);
  color: #a8eeff;
  font-weight: 700; font-size: .92rem;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .2s, border-color .22s, box-shadow .22s;
  box-shadow: 0 6px 22px rgba(0,0,0,.22), 0 0 0 0 rgba(123,228,255,.0);
  width: 100%; margin-top: auto;
  letter-spacing: .02em;
}
.btn-partner-cta::before {
  content: "";
  position: absolute; inset: -30% auto -30% -18%; width: 26%;
  background: linear-gradient(90deg, transparent, rgba(123,228,255,.55), transparent);
  transform: skewX(-22deg); filter: blur(5px); opacity: .9;
  animation: partnerSweep 3.2s linear infinite;
}
@keyframes partnerSweep { 0%{left:-28%;} 100%{left:120%;} }
.btn-partner-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(123,228,255,.7);
  box-shadow: 0 10px 30px rgba(0,0,0,.26), 0 0 24px rgba(123,228,255,.18);
  color: #d0f4ff;
}

/* ── CONTATTI ── */
.contact-grid-3 {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px;
}
.contact-card--rich {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
}
.contact-card--rich h3 { margin: 0 0 4px; }
.contact-card--rich .btn { margin-top: auto; width: 100%; }
.energy-icon {
  width: 52px; height: 52px; border-radius: 16px; position: relative; margin-bottom: 6px;
  background: radial-gradient(circle at 35% 35%, rgba(210,246,255,.86), rgba(127,229,255,.12) 40%, rgba(79,168,255,.04) 70%);
  box-shadow: 0 0 20px rgba(123,228,255,.16), inset 0 0 12px rgba(255,255,255,.1);
}
.energy-icon::before, .energy-icon::after {
  content: ""; position: absolute; inset: 11px;
  clip-path: polygon(46% 0,100% 0,62% 46%,100% 46%,36% 100%,49% 58%,12% 58%);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(123,228,255,.32));
}
.energy-icon::after { inset: -7px; background: none; border: 1px solid rgba(123,228,255,.18); border-radius: 18px; clip-path: none; animation: iconGlow 3.4s ease-in-out infinite; }

.download-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.download-list a { display: block; padding: 10px 13px; border-radius: 10px; border: 1px solid rgba(123,228,255,.12); background: rgba(123,228,255,.04); transition: border-color .2s, background .2s; }
.download-list a:hover { border-color: rgba(123,228,255,.24); background: rgba(123,228,255,.08); }
.compact-list li { padding: 10px 13px; border-radius: 10px; border: 1px solid rgba(123,228,255,.12); background: rgba(123,228,255,.04); color: var(--text); margin-bottom: 5px; }

/* ── FOOTER ── */
.site-footer { padding: 28px 0 44px; border-top: 1px solid rgba(120,210,255,.1); background: rgba(1,7,17,.78); backdrop-filter: blur(12px); }
.footer-grid { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.footer-grid p { color: var(--soft); font-size: .86rem; }
.footer-grid nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-grid a { color: var(--muted); font-size: .86rem; transition: color .2s; }
.footer-grid a:hover { color: var(--cyan-2); }

/* ── DIALOG ── */
.dialog { border: 0; padding: 0; max-width: min(780px, calc(100% - 20px)); width: 100%; background: transparent; }
.dialog::backdrop { background: rgba(1,5,13,.76); backdrop-filter: blur(6px); }
.dialog__inner {
  border-radius: 26px; border: 1px solid rgba(123,228,255,.14);
  background: linear-gradient(160deg, rgba(7,22,48,.94), rgba(4,14,34,.97));
  box-shadow: var(--shadow), var(--glow), inset 0 1px 0 rgba(255,255,255,.04);
  padding: 24px; backdrop-filter: blur(20px);
}
.dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dialog__head--modern { padding-bottom: 14px; border-bottom: 1px solid rgba(120,210,255,.1); }
.dialog__head-text { display: flex; flex-direction: column; gap: 3px; }
.dialog__kicker { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-2); font-weight: 600; }
.dialog__desc { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 10px 0 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(120,210,255,.06); }
.dialog__close { width: 34px; min-height: 34px; padding: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field span { font-weight: 700; color: var(--text); font-size: .88rem; }
.field input, .field textarea, .field select {
  width: 100%; border-radius: 12px; border: 1px solid rgba(123,228,255,.16);
  background: rgba(4,12,28,.68); color: var(--text); padding: 12px 15px;
  outline: none; font-size: .92rem; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(237,247,255,.36); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(123,228,255,.36); box-shadow: 0 0 0 3px rgba(123,228,255,.1); }
.form__status { min-height: 1.3em; color: var(--soft); }
.form__status.is-success { color: #8ff5ba; }
.form__status.is-error   { color: #ffb7b7; }
.form__fineprint { margin-top: 6px; font-size: .76rem; color: var(--soft); line-height: 1.4; }
.form__fineprint a { color: var(--cyan-2); }

/* Misc */
.signal-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; padding: 13px 13px 0; }
.signal-strip span {
  height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(123,228,255,.14), rgba(123,228,255,.88), rgba(123,228,255,.14));
  background-size: 160% 100%; animation: pulseLine 4s linear infinite;
}
.signal-strip span:nth-child(2){animation-delay:-1s;} .signal-strip span:nth-child(3){animation-delay:-2s;} .signal-strip span:nth-child(4){animation-delay:-3s;}

.node, .pulse { position: absolute; border-radius: 50%; display: block; }
.node { width: 10px; height: 10px; background: radial-gradient(circle, rgba(223,248,255,1), rgba(123,228,255,.88) 45%, transparent 78%); box-shadow: 0 0 14px rgba(123,228,255,.5); animation: pulseNode 4.6s ease-in-out infinite; }
.n1{left:15%;top:22%;} .n2{left:35%;top:14%;animation-delay:-1.2s;} .n3{left:62%;top:18%;animation-delay:-2.3s;}
.n4{left:20%;top:48%;animation-delay:-1.7s;} .n5{left:48%;top:44%;animation-delay:-.8s;} .n6{left:76%;top:38%;animation-delay:-2.7s;}
.n7{left:24%;top:74%;animation-delay:-3.1s;} .n8{left:54%;top:72%;animation-delay:-1.1s;} .n9{left:82%;top:68%;animation-delay:-2.2s;}
.pulse { width: 130px; height: 2px; background: linear-gradient(90deg, transparent, rgba(165,240,255,.88), transparent); filter: blur(.4px); animation: runPulse 3.8s linear infinite; }
.p1{left:12%;top:33%;transform:rotate(24deg);} .p2{left:38%;top:57%;width:160px;transform:rotate(-18deg);animation-delay:-1.9s;} .p3{left:52%;top:28%;width:130px;transform:rotate(36deg);animation-delay:-1s;}

/* ── KEYFRAMES ── */
@keyframes driftLight    { from{transform:translate3d(0,0,0) scale(1);opacity:.8;}  to{transform:translate3d(0,12px,0) scale(1.04);opacity:.96;} }
@keyframes particlesRise { from{transform:translateY(0);}                           to{transform:translateY(-26px);} }
@keyframes pulseLine     { from{background-position:160% 0;}                        to{background-position:-40% 0;} }
@keyframes pulseNode     { 0%,100%{transform:scale(1);opacity:.5;}                  50%{transform:scale(1.38);opacity:1;} }
@keyframes runPulse      { 0%{opacity:0;transform:translateX(-28px) scaleX(.68) rotate(24deg);} 20%{opacity:1;} 100%{opacity:0;transform:translateX(42px) scaleX(1.08) rotate(24deg);} }
@keyframes iconGlow      { 0%,100%{box-shadow:0 0 0 rgba(123,228,255,0);}           50%{box-shadow:0 0 16px rgba(123,228,255,.18),inset 0 0 12px rgba(123,228,255,.06);} }
@keyframes beamTravel    { 0%{opacity:0;transform:translateX(-38px) scaleX(.86) rotate(var(--rot,0deg));} 14%{opacity:1;} 100%{opacity:0;transform:translateX(48px) scaleX(1.04) rotate(var(--rot,0deg));} }
@keyframes neuralPulse   { 0%,100%{transform:scale(1);opacity:.48;}                 50%{transform:scale(1.35);opacity:1;} }
@keyframes electricScan  { 0%{transform:translateX(-130%);}                         55%{transform:translateX(130%);}                                                   100%{transform:translateX(130%);} }
@keyframes borderFlow    { from{transform:rotate(0deg);}                             to{transform:rotate(360deg);} }
@keyframes borderPulse   { 0%,100%{box-shadow:0 0 0 rgba(0,200,255,0);opacity:.6;}  50%{box-shadow:0 0 16px 2px rgba(0,200,255,.2);opacity:1;} }
@keyframes dotPulse      { 0%,100%{opacity:1;transform:scale(1);}                   50%{opacity:.45;transform:scale(.65);} }
@keyframes bounceDown    { 0%,100%{transform:translateY(0);}                        50%{transform:translateY(6px);} }
@keyframes fadeInUp      { from{opacity:0;transform:translateY(10px);}              to{opacity:1;transform:translateY(0);} }
@keyframes tickerMove    { from{transform:translateX(0);}                            to{transform:translateX(-50%);} }
@keyframes lightRays     { 0%{opacity:.6;transform:skewX(-.5deg);}                  50%{opacity:1;transform:skewX(.1deg);}                                             100%{opacity:.68;transform:skewX(.5deg);} }
@keyframes raysCone      { from{transform:translateX(-8px) scaleX(1);opacity:.78;}  to{transform:translateX(12px) scaleX(1.05);opacity:1;} }

/* ==========================================================
   BREAKPOINTS — mobile-first, ordinati, nessun conflitto
   ========================================================== */

/* ── 1180px ── */
@media (max-width: 1180px) {
  .founders-grid      { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cards-grid-4       { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .course-poster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-grid-3     { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .activity-grid-row  { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

/* ── 920px ── */
@media (max-width: 920px) {
  .vision-layout, .rete-home-grid, .event-grid,
  .split-2-1, .split-3, .research-showcase-grid,
  .course-poster-grid, .founders-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .hero-stats   { max-width: 100%; }
  .contact-grid-3 { grid-template-columns: 1fr; }
  .footer-grid    { flex-direction: column; align-items: flex-start; }
  .network-copy--cards { grid-template-columns: 1fr; }
  .activity-grid-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .activity-asset { width: 120px; height: 120px; }
}

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

  /* Previeni overflow orizzontale */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { min-width: 0; }
  main, .section { overflow-x: clip; }

  /* Sfondo mobile */
  body::before {
    background: url("assets/ocean-mobile.jpg") center top / cover no-repeat;
    /* rimane fixed — tutto scorre sopra l'oceano anche su mobile */
  }

  /* Container */
  .container { padding: 0 16px; }

  /* Header */
  .site-header { width: 100%; max-width: 100vw; }
  .nav-wrap { min-height: 66px; padding: 0 16px; justify-content: space-between; gap: 0; }
  .brand { flex: 1; overflow: hidden; gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: .88rem; white-space: nowrap; }
  /* Mostra la prima em (tagline breve) su mobile, nascondi solo brand-sub */
  .brand em { display: block; font-size: .64rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { display: none; }

  /* Hamburger */
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid rgba(123,228,255,.18); border-radius: 11px;
    padding: 0 10px; background: rgba(6,20,44,.7); cursor: pointer;
  }
  .nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

  /* Menu mobile — scende dall'angolo dx sotto il burger */
  .site-nav {
    position: absolute; top: calc(100% + 10px); right: 8px; left: auto;
    width: calc(100vw - 32px);
    display: grid; gap: 0;
    background: rgba(3,14,32,.97);
    border: 1px solid rgba(123,228,255,.2); border-radius: 20px;
    padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(123,228,255,.06);
    backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97);
    transform-origin: top right;
    transition: opacity .22s cubic-bezier(.22,.68,0,1.2),
                transform .22s cubic-bezier(.22,.68,0,1.2), visibility .22s;
    max-height: calc(100svh - 94px); overflow-y: auto; z-index: 200;
  }
  .nav-toggle:checked ~ .site-nav {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  }
  .site-nav > a {
    display: block; padding: 12px 16px; border-radius: 12px;
    font-size: .98rem; font-weight: 600; color: var(--text);
    transition: background .15s, color .15s;
    text-align: center;
  }
  .site-nav .lang-toggle--mobile { display: flex; }
  .lang-toggle--mobile {
    margin-top: 6px; width: 100%; padding: 10px 16px;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    border-radius: 10px; background: rgba(123,228,255,.08);
    border: 1px solid rgba(123,228,255,.22); color: #a8eeff;
    font-size: .82rem; font-weight: 700; letter-spacing: .08em; cursor: pointer;
    transition: background .18s;
  }
  .lang-toggle--mobile:hover { background: rgba(123,228,255,.16); }
  .lang-toggle--mobile .lang-sep { opacity: .4; font-weight: 400; }
  .site-nav > a:hover { background: rgba(123,228,255,.09); color: var(--cyan-2); }

  /* Separatore visivo tra gruppi */
  .site-nav > a + .nav-dropdown { margin-top: 4px; }
  .nav-dropdown + a { margin-top: 4px; }

  /* Attività: dropdown raggruppato con sfondo distinto */
  .nav-dropdown {
    background: rgba(123,228,255,.04);
    border-radius: 14px;
    border: 1px solid rgba(123,228,255,.1);
    margin: 2px 0;
    overflow: hidden;
  }
  .nav-dropdown > span {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; font-size: .98rem; font-weight: 600;
    color: var(--cyan-2); cursor: default;
  }
  .nav-dropdown > span::after {
    content: ""; display: block; width: 16px; height: 16px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%237be4ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: .7;
  }
  .nav-dropdown-panel {
    position: static; transform: none; display: grid;
    opacity: 1; visibility: visible; background: transparent;
    border: 0; box-shadow: none;
    padding: 0 8px 8px 8px;
    border-top: 1px solid rgba(123,228,255,.08);
  }
  .nav-dropdown-panel a {
    padding: 10px 14px; font-size: .92rem; border-radius: 10px;
    color: var(--muted); transition: background .15s, color .15s;
    display: flex; align-items: center; gap: 8px;
  }
  .nav-dropdown-panel a::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: rgba(123,228,255,.4); flex-shrink: 0;
  }
  .nav-dropdown-panel a:hover { background: rgba(123,228,255,.09); color: var(--text); }

  /* Separatore prima di Rete/Podcast */
  .site-nav > a[href="rete.html"],
  .site-nav > a[href="podcast.html"] {
    border-top: 1px solid rgba(123,228,255,.08);
    margin-top: 4px; padding-top: 14px;
  }

  /* Hero */
  .hero { min-height: 100svh; padding: 56px 0 44px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-lead { font-size: .96rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-row .btn { width: 100%; max-width: none; }
  .hero-stat strong { font-size: 1.25rem; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 calc(50% - 1px); min-width: 100px; padding: 14px 12px; }
  .light-scattering { animation: none; opacity: .6; }
  .particles { animation: none; opacity: .12; }
  /* Raggi di luce: meno intensi su mobile */
  .hero::before, .hero::after { animation: none; opacity: .5; }

  /* Animazioni: solo fade verticale su mobile (no translateX = no overflow) */
  .reveal, .reveal-left, .reveal-right {
    transform: translateY(22px);
  }

  /* Sezioni */
  .section         { padding: 56px 0; }
  .section-heading { margin-bottom: 20px; }
  .glass-card      { padding: 18px; border-radius: 20px; }
  .cards-grid      { gap: 13px; }
  .ticker-track    { font-size: .68rem; }

  /* Icone macroaree — più grandi su mobile */
  .activity-asset { width: 120px; height: 120px; }
  .activity-card  { padding: 28px 16px 22px; }
  .activity-grid-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }

  /* Contenuti: cards orizzontali una sotto l'altra (non affiancate) */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .content-grid .content-card {
    display: flex; flex-direction: row; align-items: center;
    gap: 16px; padding: 16px;
    border-radius: 18px;
    border-bottom: 1px solid rgba(123,228,255,.08);
  }
  .content-grid .content-card:last-child { border-bottom: none; }
  .content-grid .content-card img {
    width: 80px; height: 80px; flex-shrink: 0;
    object-fit: cover; border-radius: 12px;
    margin-bottom: 0;
  }
  .content-grid .content-card-text { flex: 1; min-width: 0; }
  .content-grid .content-card .section-kicker { margin-bottom: 4px; font-size: .6rem; }
  .content-grid .content-card h3 { font-size: .96rem; margin-bottom: 4px; line-height: 1.3; }
  .content-grid .content-card p  { font-size: .82rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .content-grid .content-card .text-link { font-size: .82rem; margin-top: 6px; }

  /* Reveal: solo fade verticale su mobile (no translateX = no overflow) */
  .reveal, .reveal-left, .reveal-right {
    transform: translateY(22px);
  }

  /* Tutte le griglie → 1 colonna */
  .split-2, .split-3, .event-grid, .rete-home-grid,
  .teaching-poster-grid, .founders-grid,
  .course-poster-grid, .research-showcase-grid { grid-template-columns: 1fr; }

  /* Visione: bullet cloud non overflow */
  .vision-layout  { grid-template-columns: 1fr; }
  .bullet-cloud   { overflow-x: hidden; }
  .bullet-cloud span { max-width: 100%; word-break: break-word; }

  /* Rete */
  .network-visual-stage { min-height: 190px; }
  .network-copy--cards  { grid-template-columns: 1fr; gap: 9px; }

  /* Contatti */
  .contact-grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .contact-card--rich { min-height: 0; }

  /* Poster evento */
  .poster-card > img { max-width: 280px; }

  /* Dialog */
  .dialog { max-width: calc(100% - 16px); }
  .dialog__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dialog .split-2, .dialog .section-grid.split-2 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .footer-grid nav { justify-content: center; }

  /* Canvas: su mobile usiamo absolute per non bloccare scroll iOS */
  #dust-canvas { position: absolute; }

  /* Performance */
  .btn-electric::before { animation-duration: 4s; }
  .btn-rete-cta::before { animation-duration: 4s; }
}

/* ── 560px ── */
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .hero-stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(123,228,255,.08); }
  .hero-stat:last-child { border-bottom: none; }
  .hero-stats { flex-direction: column; }
  .btn { width: 100%; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline li::before { display: none; }
  .event-meta span, .bullet-cloud span { width: 100%; border-radius: 12px; }
  .activity-asset { width: 80px; height: 80px; }
  .poster-card > img { max-width: 220px; }
  .activity-grid-row { grid-template-columns: 1fr; }
}

/* ==========================================================
   OVERRIDES — stato finale di tutte le modifiche
   Un solo blocco pulito, nessun duplicato.
   ========================================================== */

/* ── BRAND MOBILE ── */
@media (max-width: 768px) {
  .brand { gap: 11px; align-items: center; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; display: block; }
  .brand-copy { gap: 1px; }
  .brand em:first-of-type {
    display: block; font-size: .63rem; color: rgba(237,247,255,.5);
    letter-spacing: .03em; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: calc(100vw - 110px);
  }
}

/* ── INFO CARDS: icone e colori distinti ── */
.info-card {
  padding: 28px 26px 26px; overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.68,0,1.4), box-shadow .3s, border-color .3s;
}
.info-card:hover { transform: translateY(-5px); }
.info-card__icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; margin-bottom: 18px;
  transition: transform .3s cubic-bezier(.22,.68,0,1.4);
}
.info-card__icon svg { width: 28px; height: 28px; }
.info-card:hover .info-card__icon { transform: scale(1.12) translateY(-2px); }

.info-card--network {
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(0,200,180,.14), transparent 55%),
    linear-gradient(160deg, rgba(5,28,58,.82), rgba(3,16,40,.92));
  border-color: rgba(0,220,180,.2);
}
.info-card--network .info-card__icon { background: rgba(0,220,180,.1); border: 1px solid rgba(0,220,180,.22); color: #4dffd6; }
.info-card--network .section-kicker { color: #4dffd6; }
.info-card--network:hover { border-color: rgba(0,220,180,.38); box-shadow: var(--shadow), 0 0 40px rgba(0,200,180,.1); }
.info-card--network::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #4dffd6, transparent); border-radius: 2px 2px 0 0; }

.info-card--vision {
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(0,140,255,.16), transparent 55%),
    linear-gradient(160deg, rgba(5,24,60,.82), rgba(3,14,42,.92));
  border-color: rgba(80,160,255,.22);
}
.info-card--vision .info-card__icon { background: rgba(80,160,255,.1); border: 1px solid rgba(80,160,255,.24); color: var(--cyan-2); }
.info-card--vision:hover { border-color: rgba(100,180,255,.4); box-shadow: var(--shadow), 0 0 40px rgba(0,120,255,.12); }
.info-card--vision::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan-2), transparent); }

.info-card--content {
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(100,80,255,.14), transparent 55%),
    linear-gradient(160deg, rgba(8,20,56,.82), rgba(5,12,38,.92));
  border-color: rgba(130,100,255,.2);
}
.info-card--content .info-card__icon { background: rgba(130,100,255,.1); border: 1px solid rgba(130,100,255,.24); color: #b4a6ff; }
.info-card--content .section-kicker { color: #b4a6ff; }
.info-card--content:hover { border-color: rgba(150,120,255,.38); box-shadow: var(--shadow), 0 0 40px rgba(100,80,255,.1); }
.info-card--content::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #b4a6ff, transparent); }

@media (max-width: 768px) {
  .section-intro .section-grid { grid-template-columns: 1fr; gap: 12px; }
  .info-card { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
  .info-card__icon { width: 48px; height: 48px; flex-shrink: 0; margin-bottom: 0; border-radius: 13px; align-self: flex-start; }
  .info-card__icon svg { width: 26px; height: 26px; }
  .info-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .info-card .section-kicker { font-size: .6rem; margin-bottom: 2px; }
  .info-card h2 { font-size: 1rem; line-height: 1.2; margin-bottom: 5px; }
  .info-card p { font-size: .83rem; line-height: 1.5; margin: 0; }
  .info-card > :not(.info-card__icon) { flex: 1; min-width: 0; }
}

/* ── TIMELINE — DESKTOP: raggio di luce, zero puntini ── */
.timeline-card { position: relative; overflow: visible; }

/* Glow dietro la card */
.timeline-card::before {
  content: ""; position: absolute;
  left: -18px; top: 10%; width: 120px; height: 80%;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(123,228,255,.18) 0%, rgba(80,180,255,.08) 40%, transparent 70%);
  filter: blur(14px); pointer-events: none; z-index: 0;
  animation: timelineLightPulse 4s ease-in-out infinite alternate;
}
.timeline-card::after {
  content: ""; position: absolute;
  left: 24px; top: 0; bottom: 0; width: 56px;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(123,228,255,.1) 0%, transparent 70%);
  filter: blur(8px); pointer-events: none; z-index: 0;
  animation: timelineLightPulse 4s ease-in-out infinite alternate-reverse;
}
@keyframes timelineLightPulse {
  from { opacity: .5; transform: scaleY(.9); }
  to   { opacity: 1;  transform: scaleY(1.08); }
}
.timeline-card .section-kicker, .timeline li { position: relative; z-index: 1; }

.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute;
  left: 39px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(123,228,255,.6) 8%, var(--cyan-2) 30%, rgba(123,228,255,.8) 55%, rgba(123,228,255,.4) 80%, transparent 100%);
  box-shadow: 0 0 6px rgba(123,228,255,.5), 0 0 18px rgba(123,228,255,.2);
  border-radius: 2px;
  animation: timelineGlow 3s ease-in-out infinite alternate;
}
@keyframes timelineGlow {
  from { opacity: .7; }
  to   { opacity: 1; box-shadow: 0 0 10px rgba(123,228,255,.7), 0 0 28px rgba(123,228,255,.3); }
}
.timeline li {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 14px; align-items: start; position: relative;
}
/* Nessun puntino sul desktop */
.timeline li::before, .timeline li::after { display: none; }
.timeline strong {
  display: inline-flex; width: 78px; height: 32px;
  align-items: center; justify-content: center; border-radius: 999px;
  background: rgba(123,228,255,.1); border: 1px solid rgba(123,228,255,.24);
  color: var(--cyan-2); font-size: .84rem; font-weight: 700;
  box-shadow: 0 0 10px rgba(123,228,255,.15);
  position: relative; z-index: 1;
  transition: background .3s, box-shadow .3s;
}
.timeline li:hover strong { background: rgba(123,228,255,.18); box-shadow: 0 0 20px rgba(123,228,255,.3); }
.timeline span { color: var(--muted); font-size: .92rem; line-height: 1.55; padding-top: 6px; }
.timeline li:last-child span { color: var(--text); }

/* TIMELINE MOBILE: linea verticale + puntini, NO overlap con le scritte */
@media (max-width: 768px) {
  .timeline-card::before, .timeline-card::after { display: none; } /* Nascondi glow sul mobile */
  .timeline { padding-left: 26px; position: relative; }
  .timeline::before {
    content: ""; position: absolute;
    left: 6px; top: 16px; bottom: 16px; width: 2px;
    background: linear-gradient(180deg, var(--cyan-2) 0%, rgba(123,228,255,.4) 60%, transparent 100%);
    border-radius: 2px; box-shadow: 0 0 8px rgba(123,228,255,.3);
    animation: none;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 3px; padding-left: 0; margin-bottom: 16px;
  }
  /* Puntino a sinistra, lontano dal testo */
  .timeline li::after {
    display: block;
    content: ""; position: absolute;
    left: -22px; top: 6px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--cyan-2);
    box-shadow: 0 0 8px rgba(123,228,255,.6);
    border: 2px solid rgba(2,10,24,.8);
    z-index: 2;
  }
  .timeline li:last-child::after {
    width: 11px; height: 11px; left: -23px; top: 5px;
    background: radial-gradient(circle, #fff 20%, var(--cyan-2) 60%);
    animation: dotPulse 2s ease-in-out infinite;
  }
  .timeline li::before { display: none; }
  /* Anno: testo cyan senza pill */
  .timeline strong {
    display: inline; width: auto; height: auto;
    background: none; border: none; box-shadow: none;
    color: var(--cyan-2); font-size: .9rem; font-weight: 700;
    padding: 0; border-radius: 0;
  }
  .timeline span { display: block; font-size: .86rem; color: var(--muted); padding-top: 0; }
}

/* ── ACTIVITY CARDS: sfondi, icone, layout ── */
.activity-grid-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.activity-card {
  text-align: center; padding: 32px 20px 26px;
  transition: transform .3s cubic-bezier(.22,.68,0,1.4), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.activity-card:hover { transform: translateY(-5px); border-color: var(--border-hi); box-shadow: var(--shadow), var(--glow); }
.activity-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(180,230,255,.3) 0%, transparent 50%, rgba(160,220,255,.24) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.activity-card:hover::before { opacity: 1; }
.activity-card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none; border-radius: inherit;
}
.activity-card:hover::after { animation: shimmerSlide .6s ease forwards; }
@keyframes shimmerSlide { 0%{transform:translateX(-100%) skewX(-15deg);} 100%{transform:translateX(200%) skewX(-15deg);} }

.activity-asset {
  width: 150px; height: 150px; object-fit: contain;
  margin: 0 auto 20px; display: block;
  filter: drop-shadow(0 0 14px rgba(124,243,255,.28)) drop-shadow(0 0 32px rgba(80,180,255,.14));
  transition: transform .4s cubic-bezier(.22,.68,0,1.4), filter .4s;
}
.activity-card:hover .activity-asset {
  transform: scale(1.1) translateY(-6px);
  filter: drop-shadow(0 0 24px rgba(124,243,255,.55)) drop-shadow(0 0 52px rgba(80,200,255,.28));
}
.activity-card--ricerca      { background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,120,255,.16), transparent 60%), linear-gradient(160deg, rgba(8,32,78,.82), rgba(4,17,44,.92)); border-color: rgba(80,160,255,.2); }
.activity-card--formazione   { background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,155,220,.14), transparent 60%), linear-gradient(160deg, rgba(6,36,68,.82), rgba(3,19,42,.92)); border-color: rgba(60,178,238,.2); }
.activity-card--pubblicazioni{ background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,100,200,.16), transparent 60%), linear-gradient(160deg, rgba(5,27,62,.82), rgba(3,15,38,.92)); border-color: rgba(40,138,218,.2); }
.activity-card--media        { background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,175,200,.14), transparent 60%), linear-gradient(160deg, rgba(4,30,56,.82), rgba(2,17,34,.92)); border-color: rgba(0,198,228,.18); }
.activity-card--ricerca:hover      { border-color: rgba(100,180,255,.45); box-shadow: var(--shadow), 0 0 40px rgba(0,100,255,.14); }
.activity-card--formazione:hover   { border-color: rgba(60,200,255,.45);  box-shadow: var(--shadow), 0 0 40px rgba(0,160,220,.14); }
.activity-card--pubblicazioni:hover{ border-color: rgba(60,160,240,.45);  box-shadow: var(--shadow), 0 0 40px rgba(0,120,200,.14); }
.activity-card--media:hover        { border-color: rgba(0,220,245,.45);   box-shadow: var(--shadow), 0 0 40px rgba(0,200,230,.14); }

@media (max-width: 900px)  { .activity-grid-row { grid-template-columns: repeat(2, 1fr); } .activity-asset { width: 120px; height: 120px; } }
@media (max-width: 768px)  { .activity-grid-row { grid-template-columns: repeat(2, 1fr); gap: 12px; } .activity-asset { width: 90px; height: 90px; } .activity-card { padding: 22px 14px 18px; display: flex; flex-direction: column; align-items: center; } .activity-card p { font-size: .78rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
@media (max-width: 400px)  { .activity-asset { width: 80px; height: 80px; } .activity-grid-row { grid-template-columns: 1fr; } }

/* ── POSTER EVENTO ── */
.poster-card { padding: 20px; display: flex; flex-direction: column; gap: 16px; align-items: center; transition: box-shadow .3s; }
.poster-card > img { width: 100%; max-width: 320px; height: auto; border-radius: var(--radius-sm); object-fit: cover; margin: 0 auto; box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 35px rgba(80,170,255,.1); border: 1px solid rgba(120,210,255,.2); transition: transform .4s cubic-bezier(.22,.68,0,1.4), box-shadow .4s; }
.poster-card:hover > img { transform: translateY(-5px) rotate(.3deg); box-shadow: 0 26px 64px rgba(0,0,0,.55), 0 0 50px rgba(80,200,255,.15); }
.poster-card .btn { width: 100%; }
@media (max-width: 768px) { .poster-card > img { max-width: 260px; } }

/* ── FONDATORI 3D VETRO: entrata da sinistra con rimbalzo ── */
.founders-grid { perspective: 1200px; }
.founder-card {
  padding: 18px 16px 20px; min-width: 0; text-align: left; overflow: hidden;
  border-top: 1px solid rgba(220,248,255,.35);
  transform-style: flat;
  transition: transform .35s cubic-bezier(.22,.68,0,1.3), box-shadow .35s, border-color .28s;
  /* Animazione entrata */
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity .65s ease,
    transform .65s cubic-bezier(.22,.68,0,1.2),
    box-shadow .35s ease,
    border-color .28s ease;
}
.founder-card.is-visible { opacity: 1; transform: translateX(0); }

/* Stagger delay */
#fondatori .founders-grid > *:nth-child(1) { transition-delay: .00s; }
#fondatori .founders-grid > *:nth-child(2) { transition-delay: .10s; }
#fondatori .founders-grid > *:nth-child(3) { transition-delay: .20s; }
#fondatori .founders-grid > *:nth-child(4) { transition-delay: .30s; }
#fondatori .founders-grid > *:nth-child(5) { transition-delay: .40s; }

/* Vetro 3D: layer riflesso */
.founder-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.06) 18%, rgba(200,240,255,.03) 35%, transparent 55%, rgba(123,228,255,.04) 80%, rgba(123,228,255,.08) 100%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .35s;
}
.founder-card:hover::before { opacity: 1; }

/* Bordo vetro spesso */
.founder-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: none;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.2), inset 1px 0 0 rgba(255,255,255,.07), inset -1px 0 0 rgba(0,0,0,.1);
}

/* Hover: sollevamento + spotlight */
.founder-card:hover {
  transform: translateX(0) translateY(-7px) !important;
  border-color: rgba(160,240,255,.38) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px rgba(80,200,255,.1), inset 0 1px 0 rgba(255,255,255,.16) !important;
}

/* Foto */
.founder-card > img {
  width: 96px; height: 96px; margin: 0 0 14px;
  border-radius: 50%; border: 2px solid rgba(123,228,255,.3);
  object-fit: cover; position: relative; z-index: 3;
  transition: transform .35s cubic-bezier(.22,.68,0,1.3), box-shadow .35s, filter .3s;
}
.founder-card:hover > img { transform: scale(1.07); box-shadow: 0 6px 22px rgba(0,0,0,.4), 0 0 22px rgba(123,228,255,.35); filter: brightness(1.06) saturate(1.1); }
.founder-card > * { position: relative; z-index: 3; }
.founder-card h3 { margin-bottom: 7px; font-size: .96rem; }
.founder-card p  { color: rgba(237,247,255,.74); font-size: .84rem; }

/* Sfondi individuali */
.founder-card--silvio  { background: radial-gradient(circle at 20% 0%, rgba(180,232,255,.18) 0%, transparent 35%), radial-gradient(circle at 80% 100%, rgba(80,160,255,.08) 0%, transparent 35%), linear-gradient(160deg, rgba(8,28,65,.88), rgba(4,14,40,.96)); }
.founder-card--luigi   { background: radial-gradient(circle at 20% 0%, rgba(160,220,255,.16) 0%, transparent 35%), radial-gradient(circle at 80% 100%, rgba(60,140,255,.08) 0%, transparent 35%), linear-gradient(160deg, rgba(7,25,60,.88), rgba(4,12,36,.96)); }
.founder-card--vincenzo{ background: radial-gradient(circle at 20% 0%, rgba(170,232,255,.16) 0%, transparent 35%), radial-gradient(circle at 80% 100%, rgba(70,150,255,.08) 0%, transparent 35%), linear-gradient(160deg, rgba(6,24,58,.88), rgba(3,12,36,.96)); }
.founder-card--dario   { background: radial-gradient(circle at 20% 0%, rgba(150,210,255,.16) 0%, transparent 35%), radial-gradient(circle at 80% 100%, rgba(50,130,255,.08) 0%, transparent 35%), linear-gradient(160deg, rgba(5,22,54,.88), rgba(3,10,32,.96)); }
.founder-card--matteo  { background: radial-gradient(circle at 20% 0%, rgba(190,240,255,.16) 0%, transparent 35%), radial-gradient(circle at 80% 100%, rgba(100,170,255,.08) 0%, transparent 35%), linear-gradient(160deg, rgba(7,26,60,.88), rgba(4,14,38,.96)); }

@media (max-width: 1180px) { .founders-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 768px)  { .founders-grid { grid-template-columns: 1fr; perspective: none; } .founder-card { opacity: 0; transform: translateY(28px); } .founder-card.is-visible { transform: none; } .founder-card:hover { transform: translateY(-3px) !important; } .founder-card > img { width: 80px; height: 80px; } }
@media (prefers-reduced-motion: reduce) { .founder-card { opacity: 1 !important; transform: none !important; transition: box-shadow .3s !important; } .founder-card:hover { transform: none !important; } }

/* ── REVEAL — animazioni entrata organizzate per sezione ── */
/* Base: tutto da sinistra con fade */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.22,.68,0,1.1);
  will-change: opacity, transform;
}
.reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible {
  opacity: 1; transform: none;
}
/* Varianti direzione */
.reveal-right        { transform: translateX(44px); }
/* Sezioni specifiche */
#visione .reveal-right  { transform: translateX(44px); }
#rete-home .reveal-right { transform: translateX(44px); }
#eventi .reveal-right   { transform: translateX(44px); }
/* Ricerca: alternato sx/dx */
#ricerca .research-showcase-grid > *:nth-child(odd)  { transform: translateX(-40px); opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.22,.68,0,1.15); }
#ricerca .research-showcase-grid > *:nth-child(even) { transform: translateX(40px);  opacity: 0; transition: opacity .7s .08s ease, transform .7s .08s cubic-bezier(.22,.68,0,1.15); }
#ricerca .research-showcase-grid > *:nth-child(3)    { transition-delay: .04s; }
#ricerca .research-showcase-grid > *:nth-child(4)    { transition-delay: .12s; }
#ricerca .research-showcase-grid > *.is-visible      { transform: none; opacity: 1; }
/* Contatti: ventaglio */
#contatti .contact-grid-visible > *:nth-child(1) { transform: translateX(-40px) translateY(16px); opacity: 0; transition: opacity .68s ease, transform .68s cubic-bezier(.22,.68,0,1.15); }
#contatti .contact-grid-visible > *:nth-child(2) { transform: translateY(30px);                   opacity: 0; transition: opacity .68s .1s ease, transform .68s .1s cubic-bezier(.22,.68,0,1.15); }
#contatti .contact-grid-visible > *:nth-child(3) { transform: translateX(40px) translateY(16px);  opacity: 0; transition: opacity .68s .2s ease, transform .68s .2s cubic-bezier(.22,.68,0,1.15); }
#contatti .contact-grid-visible > *.is-visible   { transform: none; opacity: 1; }
/* Mobile: solo translateY (no overflow orizzontale) */
@media (max-width: 768px) {
  .reveal, .reveal-left, .reveal-right { transform: translateY(22px); }
  .reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible { transform: none; }
  #ricerca .research-showcase-grid > *:nth-child(odd),
  #ricerca .research-showcase-grid > *:nth-child(even) { transform: translateY(22px); }
  #contatti .contact-grid-visible > *:nth-child(1),
  #contatti .contact-grid-visible > *:nth-child(2),
  #contatti .contact-grid-visible > *:nth-child(3) { transform: translateY(22px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  #ricerca .research-showcase-grid > *, #contatti .contact-grid-visible > * { opacity: 1; transform: none; transition: none; }
}

/* ── RESEARCH CARDS: sfondi e accenti distinti ── */
.research-showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 26px; }
.research-card { padding: 26px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--radius); overflow: hidden; min-height: 0; transition: transform .3s cubic-bezier(.22,.68,0,1.4), box-shadow .3s, border-color .3s; }
.research-card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow), var(--glow); }
.research-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 15%, rgba(190,242,255,.09), transparent 36%); }
.research-card h3 { margin: 0 0 4px; } .research-card p { margin: 0; color: rgba(237,247,255,.82); }
.research-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 4px; }
.research-tags span { padding: 6px 12px; border-radius: 999px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(229,248,255,.9); background: rgba(123,228,255,.07); border: 1px solid rgba(123,228,255,.14); }
.research-card .btn { margin-top: 6px; align-self: flex-start; }
.research-card--hyperbaric { background: linear-gradient(145deg, rgba(0,60,140,.72) 0%, rgba(5,17,36,.96) 55%); border-color: rgba(80,160,255,.22); border-top: 2px solid rgba(80,160,255,.6); }
.research-card--aerospace  { background: linear-gradient(145deg, rgba(0,80,100,.7)  0%, rgba(5,16,34,.96) 55%); border-color: rgba(0,200,255,.2);  border-top: 2px solid rgba(0,200,255,.55); }
.research-card--human      { background: linear-gradient(145deg, rgba(0,100,80,.68) 0%, rgba(4,15,32,.96) 55%); border-color: rgba(0,220,180,.2);  border-top: 2px solid rgba(0,220,180,.5); }
.research-card--didattica  { background: linear-gradient(145deg, rgba(80,40,160,.65)0%, rgba(6,19,40,.96) 55%); border-color: rgba(140,100,255,.22);border-top: 2px solid rgba(140,100,255,.5); }
.research-card--hyperbaric .micro-label { color: rgba(130,190,255,.9); }
.research-card--aerospace  .micro-label { color: rgba(80,220,255,.9); }
.research-card--human      .micro-label { color: rgba(80,240,200,.9); }
.research-card--didattica  .micro-label { color: rgba(180,150,255,.9); }
@media (max-width: 768px) { .research-showcase-grid { grid-template-columns: 1fr; margin-top: 18px; } .research-card { padding: 20px; } }

/* ── TEACHING CARD: img-wrap + download + lightbox ── */
.teaching-card { display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.teaching-card:hover { transform: translateY(-3px); border-color: var(--border-hi); box-shadow: var(--shadow-sm), var(--glow); }
.teaching-card-img-wrap {
  max-height: 420px; overflow: hidden; display: flex;
  align-items: center; justify-content: center;
  background: rgba(4,14,32,.5); border-radius: 14px; margin-bottom: 16px;
  position: relative; cursor: pointer;
}
.teaching-card-img-wrap img { width: auto; max-width: 100%; height: auto; max-height: 400px; object-fit: contain; border-radius: 12px; display: block; transition: transform .35s cubic-bezier(.22,.68,0,1.2), filter .35s; }
.teaching-card-img-wrap:hover img { transform: scale(1.04); filter: brightness(1.06); }
.teaching-card-img-overlay { position: absolute; inset: 0; background: rgba(2,10,28,.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .28s; color: #fff; }
.teaching-card-img-wrap:hover .teaching-card-img-overlay { opacity: 1; }
.tc-download { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: rgba(123,228,255,.09); border: 1px solid rgba(123,228,255,.2); color: var(--cyan-2); transition: background .2s, border-color .2s; margin-bottom: 8px; white-space: nowrap; }
.tc-download:hover { background: rgba(123,228,255,.16); border-color: rgba(123,228,255,.35); }
@media (max-width: 768px) {
  .teaching-poster-grid { grid-template-columns: 1fr; gap: 0; }
  .teaching-card { display: flex; flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px; border-bottom: 1px solid rgba(123,228,255,.08); border-radius: 0; }
  .teaching-card:first-child { border-radius: 20px 20px 0 0; }
  .teaching-card:last-child  { border-bottom: none; border-radius: 0 0 20px 20px; }
  .teaching-card-img-wrap { max-height: none; width: 88px; height: auto; flex-shrink: 0; align-self: flex-start; margin-bottom: 0; }
  .teaching-card-img-wrap img { width: 88px; height: 116px; max-height: 116px; object-fit: cover; }
}

/* ── PUBBLICAZIONI: stessa altezza, viste per intero ── */
#contenuti-articoli .feature-card > img,
.articoli-grid .feature-card > img {
  width: 100%; height: 260px; max-height: 260px; min-height: 260px;
  object-fit: contain; object-position: center;
  border-radius: 14px; margin-bottom: 16px;
  background: rgba(4,14,32,.55); padding: 12px; display: block;
}
@media (max-width: 768px) {
  #contenuti-articoli .feature-card > img, .articoli-grid .feature-card > img { height: 190px; min-height: 190px; }
}

/* ── CONTATTI: icone, colori, bottoni ── */
.contact-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.contact-card--rich { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.contact-card--rich h3 { margin: 0 0 4px; }
.contact-card--rich .btn { margin-top: auto; width: 100%; }
.contact-icon { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; transition: transform .3s cubic-bezier(.22,.68,0,1.4); }
.contact-icon svg { width: 28px; height: 28px; }
.contact-card--rich:hover .contact-icon { transform: scale(1.1) translateY(-2px); }
.contact-icon--msg  { background: rgba(0,220,180,.1);  border: 1px solid rgba(0,220,180,.25);  color: #4dffd6; box-shadow: 0 0 20px rgba(0,220,180,.12); }
.contact-icon--edu  { background: rgba(80,160,255,.1);  border: 1px solid rgba(80,160,255,.25);  color: var(--cyan-2); box-shadow: 0 0 20px rgba(80,160,255,.12); }
.contact-icon--join { background: rgba(140,100,255,.1); border: 1px solid rgba(140,100,255,.25); color: #c4b0ff; box-shadow: 0 0 20px rgba(140,100,255,.12); }
.contact-card--msg  { border-top: 2px solid rgba(0,220,180,.45); }
.contact-card--edu  { border-top: 2px solid rgba(80,160,255,.45); }
.contact-card--join { border-top: 2px solid rgba(140,100,255,.45); }
.contact-card--msg  .btn-electric { background: linear-gradient(135deg, rgba(0,200,160,.9), rgba(0,160,200,.85)); border-color: rgba(0,220,180,.4); color: rgba(2,28,24,.95); }
.contact-card--edu  .btn-electric { background: linear-gradient(135deg, rgba(16,130,255,.96), rgba(0,192,255,.9)); border-color: rgba(80,180,255,.4); color: rgba(2,12,28,.96); }
.contact-card--join .btn-electric { background: linear-gradient(135deg, rgba(120,80,255,.9), rgba(160,100,255,.85)); border-color: rgba(140,100,255,.4); color: rgba(12,6,28,.96); }
@keyframes energyPulse { 0%,100%{box-shadow:0 8px 26px rgba(0,0,0,.22),0 0 0 0 rgba(123,228,255,.2);} 50%{box-shadow:0 10px 32px rgba(0,0,0,.28),0 0 0 6px rgba(123,228,255,0);} }
.contact-card--rich .btn-electric { animation: energyPulse 3s ease-in-out infinite; }
.contact-card--rich .btn-electric:hover { animation: none; transform: translateY(-2px) scale(1.02); }
@media (max-width: 1100px) { .contact-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .contact-grid-3 { grid-template-columns: 1fr; gap: 12px; } .contact-card--rich { min-height: 0; padding: 18px; } }

/* ── DIALOG: centrato, contrasto migliorato ── */
.dialog {
  position: fixed; inset: 0; margin: auto;
  top: 0; left: 0; right: 0; bottom: 0;
  transform: none;
  width: min(780px, calc(100% - 32px));
  max-height: 90vh; overflow-y: auto;
  background: transparent; border: 0; padding: 0;
}
.dialog::backdrop { background: rgba(1,5,13,.78); backdrop-filter: blur(6px); }
.dialog__inner {
  border-radius: 26px; border: 1px solid rgba(123,228,255,.2);
  background: linear-gradient(160deg, rgba(4,16,38,.98), rgba(2,10,28,.99));
  box-shadow: var(--shadow), var(--glow), inset 0 1px 0 rgba(255,255,255,.04);
  padding: 24px; backdrop-filter: blur(20px);
}
.dialog__head--modern { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 6px; padding-bottom: 16px; border-bottom: 1px solid rgba(120,210,255,.15); }
.dialog__head-text { display: flex; flex-direction: column; gap: 4px; }
.dialog__kicker { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-2); font-weight: 600; }
.dialog__desc { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 10px 0 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(120,210,255,.07); }
.dialog__close { width: 34px; min-height: 34px; padding: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.field span { color: var(--cyan-2); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field textarea, .field select { background: rgba(8,24,52,.85); border: 1px solid rgba(123,228,255,.22); color: #edf7ff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(123,228,255,.5); box-shadow: 0 0 0 3px rgba(123,228,255,.12); background: rgba(10,28,60,.9); }
.form__status { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: .92rem; font-weight: 600; min-height: 0; transition: all .3s; }
.form__status:empty { padding: 0; margin: 0; }
.form__status.is-success { color: #4dffd6; background: rgba(0,220,180,.1); border: 1px solid rgba(0,220,180,.25); display: flex; align-items: center; gap: 10px; }
.form__status.is-success::before { content: "✓"; width: 22px; height: 22px; background: rgba(0,220,180,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .88rem; flex-shrink: 0; }
.form__status.is-error { color: #ff8fa3; background: rgba(255,80,100,.08); border: 1px solid rgba(255,80,100,.2); display: flex; align-items: center; gap: 10px; }
.form__status.is-error::before { content: "✕"; width: 22px; height: 22px; background: rgba(255,80,100,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .88rem; flex-shrink: 0; }
.form__fineprint { margin-top: 6px; font-size: .76rem; color: var(--soft); line-height: 1.4; }
.form__fineprint a { color: var(--cyan-2); }
@media (max-width: 768px) { .dialog { max-width: calc(100% - 16px); } .dialog__head--modern { flex-direction: column; gap: 8px; } .dialog .split-2, .dialog .section-grid.split-2 { grid-template-columns: 1fr; } }

/* ── BTN RETE: elettricità ── */
.btn-rete-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 52px; padding: 0 28px; font-size: .97rem; font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16,130,255,.97), rgba(0,195,255,.92));
  border: 1px solid rgba(100,220,255,.5); color: rgba(2,12,28,.96);
  box-shadow: 0 10px 32px rgba(0,120,255,.3), inset 0 1px 0 rgba(255,255,255,.3);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.22,.68,0,1.4), box-shadow .22s;
}
.btn-rete-cta::before {
  content: ""; position: absolute;
  top: -10%; width: 55px; height: 120%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.08) 30%, rgba(255,255,255,.62) 50%, rgba(255,255,255,.08) 70%, transparent 100%);
  transform: skewX(-16deg) translateX(-120px);
  animation: reteLightning 2.2s ease-in-out infinite;
}
@keyframes reteLightning { 0%{transform:skewX(-16deg) translateX(-120px);opacity:0;} 8%{opacity:1;} 55%{transform:skewX(-16deg) translateX(320px);opacity:0;} 100%{transform:skewX(-16deg) translateX(320px);opacity:0;} }
.btn-rete-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid rgba(160,230,255,.55); animation: reteGlow 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes reteGlow { 0%,100%{box-shadow:0 0 0 0 rgba(0,200,255,0);opacity:.6;} 30%{box-shadow:0 0 22px 4px rgba(0,200,255,.25);opacity:1;} 55%{box-shadow:0 0 0 0 rgba(0,200,255,0);opacity:.6;} }
.btn-rete-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 44px rgba(0,140,255,.42), 0 0 60px rgba(0,200,255,.22), inset 0 1px 0 rgba(255,255,255,.35); }
@media (max-width: 768px) { .btn-rete-cta { width: 100%; justify-content: center; } }

/* ── BTN CANDIDATI ── */
.btn-candidati-cta {
  background: rgba(6,20,48,.64); border: 1px solid rgba(120,210,255,.3); color: rgba(200,240,255,.92);
  border-radius: 14px; min-height: 52px; padding: 0 24px;
  display: inline-flex; align-items: center; gap: 9px;
  backdrop-filter: blur(10px); cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.22,.68,0,1.4), box-shadow .25s, border-color .25s;
  font-weight: 600; font-size: .94rem;
}
.btn-candidati-cta::before { display: none; }
.btn-candidati-cta::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(120,230,255,.48) 50%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: borderFlow 3.4s linear infinite; }
.btn-candidati-cta:hover { transform: translateY(-2px); background: rgba(10,32,70,.78); border-color: rgba(140,225,255,.55); box-shadow: 0 12px 36px rgba(0,0,0,.28), 0 0 30px rgba(80,200,255,.12); }
@media (max-width: 768px) { .btn-candidati-cta { width: 100%; justify-content: center; } }

/* ── MOBILE: mobile-only sezioni ── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { min-width: 0; }
  main, .section { overflow-x: clip; }
  body::before { background: url("assets/ocean-mobile.jpg") center top / cover no-repeat; }
  .container { padding: 0 16px; }
  .site-header { position: sticky; top: 0; z-index: 200; width: 100%; max-width: 100vw; }
  .nav-wrap { min-height: 66px; padding: 0 16px; justify-content: space-between; gap: 0; }
  .brand { flex: 1; overflow: hidden; gap: 10px; }
  .hero { min-height: 100svh; padding: 56px 0 44px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-lead { font-size: .96rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-row .btn { width: 100%; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 calc(33.33% - 2px); min-width: 80px; padding: 12px 8px; border-right: 1px solid rgba(123,228,255,.1); border-bottom: 1px solid rgba(123,228,255,.08); }
  .hero-stat:nth-child(4), .hero-stat:nth-child(5) { flex: 1 1 calc(50% - 1px); border-bottom: none; }
  .hero-stat:nth-child(3), .hero-stat:nth-child(5) { border-right: none; }
  .hero-stat strong { font-size: 1.2rem; }
  .hero-stat span   { font-size: .68rem; }
  .hero-stat--infinity strong { font-size: 1.6rem; }
  .section { padding: 56px 0; }
  .glass-card { padding: 18px; border-radius: 20px; }
  .cards-grid { gap: 13px; }
  .vision-layout, .rete-home-grid, .event-grid, .split-2, .split-2-1, .split-3, .research-showcase-grid, .course-poster-grid { grid-template-columns: 1fr; }
  .network-visual-stage { min-height: 190px; }
  .network-copy--cards  { grid-template-columns: 1fr; gap: 9px; }
  .bullet-cloud { overflow-x: hidden; }
  .bullet-cloud span { max-width: 100%; word-break: break-word; }
  .hero::before, .hero::after { animation: none; opacity: .5; }
  .light-scattering { animation: none; opacity: .6; }
  .particles { animation: none; opacity: .12; }
  .section-heading::before { width: 32px; height: 2.5px; }
  #dust-canvas { position: absolute; }
  .footer-grid { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .footer-grid nav { justify-content: center; }
  .glass-card { border-top-color: rgba(123,228,255,.28); }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .hero-stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(123,228,255,.08); }
  .hero-stat:last-child { border-bottom: none; }
  .hero-stats { flex-direction: column; }
  .btn { width: 100%; }
  .activity-grid-row { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .activity-asset { width: 80px; height: 80px; } }

/* ── NAV MOBILE: hamburger + dropdown ── */
@media (max-width: 768px) {
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid rgba(123,228,255,.18); border-radius: 11px; padding: 0 10px; background: rgba(6,20,44,.7); cursor: pointer; }
  .nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
  .site-nav { position: absolute; top: calc(100% + 10px); right: 8px; left: auto; width: calc(100vw - 32px); display: grid; gap: 0; background: rgba(3,14,32,.97); border: 1px solid rgba(123,228,255,.2); border-radius: 20px; padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6); backdrop-filter: blur(24px); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transform-origin: top right; transition: opacity .22s cubic-bezier(.22,.68,0,1.2), transform .22s, visibility .22s; max-height: calc(100svh - 94px); overflow-y: auto; z-index: 200; }
  .nav-toggle:checked ~ .site-nav { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .site-nav > a { display: block; padding: 12px 16px; border-radius: 12px; font-size: .98rem; font-weight: 600; color: var(--text); transition: background .15s; }
  .site-nav > a:hover { background: rgba(123,228,255,.09); color: var(--cyan-2); }
  .nav-dropdown { background: rgba(123,228,255,.04); border-radius: 14px; border: 1px solid rgba(123,228,255,.1); margin: 2px 0; overflow: hidden; }
  .nav-dropdown-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border-radius: 12px; font-size: .98rem; font-weight: 600; color: var(--cyan-2); background: transparent; border: none; cursor: pointer; transition: background .15s; }
  .nav-dropdown-btn::after { content: ""; display: block; width: 18px; height: 18px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7l5 5 5-5' stroke='%237be4ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .22s cubic-bezier(.22,.68,0,1.2); }
  .nav-dropdown.is-open .nav-dropdown-btn::after { transform: rotate(180deg); }
  .nav-dropdown-panel { position: static; transform: none; opacity: 0; visibility: hidden; max-height: 0; overflow: hidden; padding: 0; border: 0; box-shadow: none; background: transparent; transition: opacity .22s, max-height .28s, visibility .22s; }
  .nav-dropdown.is-open .nav-dropdown-panel { opacity: 1; visibility: visible; max-height: 300px; padding: 4px 6px 8px 14px; }
  .nav-dropdown-panel a { padding: 10px 14px; font-size: .9rem; border-radius: 10px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
  .nav-dropdown-panel a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(123,228,255,.45); flex-shrink: 0; }
  .nav-dropdown-panel a:hover { background: rgba(123,228,255,.09); color: var(--text); }
}
@media (min-width: 769px) { .nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown.is-open .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); } }

/* ── SECTION HEADING accent line ── */
.section-heading::before { content: ""; display: block; width: 44px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--blue)); margin-bottom: 16px; box-shadow: 0 0 12px rgba(123,228,255,.4); }

/* ── CANVAS DUST ── */
#dust-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }

/* ── CURSOR BUBBLE ── */
#cursor-bubble { position: fixed; z-index: 9999; pointer-events: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(123,228,255,.5); background: rgba(123,228,255,.06); box-shadow: 0 0 12px rgba(123,228,255,.2); transform: translate(-50%, -50%); transition: transform .08s linear, width .2s, height .2s, opacity .3s; opacity: 0; }
body:hover #cursor-bubble { opacity: 1; }

/* ── HERO STATS: infinito ── */
.hero-stat--infinity strong { font-size: 1.9rem; line-height: 1; font-weight: 300; }

/* ── CONTENT GRID: mobile orizzontale ── */
@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; gap: 0; }
  .content-grid .content-card { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; border-bottom: 1px solid rgba(123,228,255,.08); }
  .content-grid .content-card:last-child { border-bottom: none; }
  .content-grid .content-card img { width: 80px; height: 80px; flex-shrink: 0; object-fit: cover; border-radius: 12px; margin-bottom: 0; }
  .content-grid .content-card.reveal, .content-grid .content-card.is-visible { display: flex; }
}

/* ── DIALOG MODALI CONTATTI: mobile ── */
@media (max-width: 768px) {
  .dialog__head--modern { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── PREFERS-REDUCED-MOTION: sicurezza globale ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  #ricerca .research-showcase-grid > *, #contatti .contact-grid-visible > * { opacity: 1; transform: none; transition: none; }
  .timeline-card::before, .timeline-card::after { animation: none; }
  .timeline::before { animation: none; }
  .btn-rete-cta::before { animation: none; }
  .btn-rete-cta::after { animation: none; }
  .btn-candidati-cta::after { animation: none; }
  .contact-card--rich .btn-electric { animation: none; }
  #dust-canvas { display: none; }
}


/* ==========================================================
   MOBILE FIX DEFINITIVO — un solo blocco, sovrascrive tutto
   ========================================================== */

/* ── QUICK NAV FLOATING (mobile) ── */
#mobile-quicknav {
  display: none; /* mostrato via JS solo su mobile */
  position: fixed;
  bottom: 24px; right: 16px;
  z-index: 9000;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
#mobile-quicknav.qn-visible {
  opacity: 1; pointer-events: auto; transform: none;
}
#mobile-quicknav-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,130,255,.97), rgba(0,195,255,.92));
  border: 1px solid rgba(100,220,255,.5);
  color: rgba(2,12,28,.96);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,120,255,.4);
  transition: transform .2s, box-shadow .2s;
}
#mobile-quicknav-btn.qn-open { transform: rotate(90deg); }
#mobile-quicknav-panel {
  position: absolute; bottom: calc(100% + 10px); right: 0;
  width: 190px;
  background: rgba(3,14,32,.97);
  border: 1px solid rgba(123,228,255,.22); border-radius: 18px;
  padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.55);
  backdrop-filter: blur(22px);
  display: grid; gap: 2px;
  opacity: 0; pointer-events: none;
  transform: translateY(8px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .2s cubic-bezier(.22,.68,0,1.2), transform .2s;
}
#mobile-quicknav-panel[aria-hidden="false"] {
  opacity: 1; pointer-events: auto; transform: none;
}
#mobile-quicknav-panel a {
  display: block; padding: 10px 14px; border-radius: 12px;
  font-size: .9rem; font-weight: 600; color: var(--text);
  transition: background .15s, color .15s;
}
#mobile-quicknav-panel a:hover { background: rgba(123,228,255,.1); color: var(--cyan-2); }
#mobile-quicknav-panel a:first-child { color: var(--cyan-2); border-bottom: 1px solid rgba(123,228,255,.1); padding-bottom: 12px; margin-bottom: 2px; }

/* ── TUTTI I FIX MOBILE in un unico @media 768px ── */
@media (max-width: 768px) {

  /* Overflow */
  html, body { overflow-x: hidden !important; max-width: 100vw; }
  * { min-width: 0; }
  main, .section, .hero { overflow-x: clip; }

  /* Sfondo */
  body::before { background: url("assets/ocean-mobile.jpg") center top / cover no-repeat; }

  /* Container */
  .container { padding: 0 16px; }

  /* Header */
  .site-header { position: sticky !important; top: 0 !important; z-index: 200 !important; width: 100%; }
  .nav-wrap { min-height: 66px; padding: 0 16px; justify-content: space-between; gap: 0; }
  .brand { flex: 1; overflow: hidden; gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 1.02rem; font-weight: 800; white-space: nowrap; }
  .brand em:first-of-type { display: block; font-size: .62rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { display: none; }

  /* Hamburger */
  .nav-burger {
    display: inline-flex !important; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; flex-shrink: 0;
    border: 1px solid rgba(123,228,255,.2); border-radius: 12px;
    padding: 0 11px; background: rgba(6,20,44,.75); cursor: pointer;
  }
  .nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

  /* Menu mobile */
  .site-nav {
    position: absolute; top: calc(100% + 10px); right: 8px; left: auto;
    width: calc(100vw - 32px);
    display: grid; gap: 0;
    background: rgba(3,14,32,.97);
    border: 1px solid rgba(123,228,255,.22); border-radius: 20px;
    padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6);
    backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97);
    transform-origin: top right;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    max-height: calc(100svh - 90px); overflow-y: auto; z-index: 300;
  }
  .nav-toggle:checked ~ .site-nav { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .site-nav > a { display: block; padding: 12px 16px; border-radius: 12px; font-size: 1rem; font-weight: 600; color: var(--text); }
  .site-nav > a:hover { background: rgba(123,228,255,.09); color: var(--cyan-2); }

  /* Dropdown Attività nel menu mobile */
  .nav-dropdown { background: rgba(123,228,255,.04); border-radius: 14px; border: 1px solid rgba(123,228,255,.1); margin: 2px 0; overflow: hidden; }
  .nav-dropdown-btn {
    display: flex !important; align-items: center; justify-content: space-between;
    width: 100%; padding: 12px 16px; font-size: 1rem; font-weight: 600;
    color: var(--cyan-2); background: transparent; border: none; cursor: pointer;
  }
  .nav-dropdown-btn::after {
    content: ""; display: block; width: 18px; height: 18px; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7l5 5 5-5' stroke='%237be4ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform .22s;
  }
  .nav-dropdown.is-open .nav-dropdown-btn::after { transform: rotate(180deg); }
  .nav-dropdown-panel {
    position: static !important; transform: none !important;
    opacity: 0; visibility: hidden; max-height: 0; overflow: hidden;
    padding: 0; border: 0; box-shadow: none; background: transparent;
    transition: opacity .22s, max-height .28s, visibility .22s;
    display: grid !important; /* sovrascriviamo il display:none del desktop */
  }
  .nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1; visibility: visible; max-height: 400px; padding: 4px 6px 8px 14px;
  }
  .nav-dropdown-panel a { padding: 10px 14px; font-size: .92rem; border-radius: 10px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
  .nav-dropdown-panel a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(123,228,255,.45); flex-shrink: 0; }
  .nav-dropdown-panel a:hover { background: rgba(123,228,255,.09); color: var(--text); }

  /* Hero */
  .hero { min-height: 100svh; padding: 56px 0 44px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-lead { font-size: .96rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-row .btn { width: 100%; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 calc(33.33% - 2px); min-width: 80px; padding: 12px 8px; border-right: 1px solid rgba(123,228,255,.1); border-bottom: 1px solid rgba(123,228,255,.08); }
  .hero-stat:nth-child(4), .hero-stat:nth-child(5) { flex: 1 1 calc(50% - 1px); border-bottom: none; }
  .hero-stat:nth-child(3), .hero-stat:nth-child(5) { border-right: none; }
  .hero-stat strong { font-size: 1.2rem; }
  .hero-stat span   { font-size: .68rem; }
  .hero-stat--infinity strong { font-size: 1.6rem; }
  .hero::before, .hero::after { animation: none; opacity: .5; }
  .light-scattering { animation: none; opacity: .6; }
  .particles { animation: none; opacity: .12; }

  /* Sezioni generali */
  .section { padding: 56px 0; }
  .glass-card { padding: 18px; border-radius: 20px; border-top-color: rgba(123,228,255,.28); }
  .cards-grid { gap: 13px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading::before { width: 32px; height: 2.5px; }

  /* Tutte le griglie 2-colonne → 1 colonna */
  .vision-layout,
  .rete-home-grid,
  .event-grid,
  .split-2,
  .split-2-1,
  .split-3,
  .research-showcase-grid,
  .course-poster-grid,
  .teaching-poster-grid,
  .founders-grid { grid-template-columns: 1fr !important; }

  /* Info cards: orizzontali */
  .section-intro .section-grid { grid-template-columns: 1fr; gap: 12px; }
  .info-card { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
  .info-card__icon { width: 48px; height: 48px; flex-shrink: 0; margin-bottom: 0; align-self: flex-start; }
  .info-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .info-card h2 { font-size: 1rem; line-height: 1.2; margin-bottom: 4px; }
  .info-card p  { font-size: .83rem; line-height: 1.5; margin: 0; }

  /* Timeline mobile: puntini, NO glow overlay */
  .timeline-card::before, .timeline-card::after { display: none; }
  .timeline { padding-left: 26px; position: relative; }
  .timeline::before {
    content: ""; position: absolute; left: 6px; top: 16px; bottom: 16px; width: 2px;
    background: linear-gradient(180deg, var(--cyan-2) 0%, rgba(123,228,255,.4) 60%, transparent 100%);
    border-radius: 2px; animation: none;
  }
  .timeline li { grid-template-columns: 1fr !important; gap: 3px; padding-left: 0; margin-bottom: 16px; }
  .timeline li::after {
    display: block; content: ""; position: absolute;
    left: -22px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--cyan-2); box-shadow: 0 0 8px rgba(123,228,255,.6);
    border: 2px solid rgba(2,10,24,.8); z-index: 2;
  }
  .timeline li:last-child::after {
    width: 11px; height: 11px; left: -23px; top: 5px;
    background: radial-gradient(circle, #fff 20%, var(--cyan-2) 60%);
    animation: dotPulse 2s ease-in-out infinite;
  }
  .timeline li::before { display: none !important; }
  .timeline strong { display: inline; width: auto; height: auto; background: none; border: none; box-shadow: none; color: var(--cyan-2); font-size: .9rem; font-weight: 700; padding: 0; border-radius: 0; }
  .timeline span { display: block; font-size: .86rem; color: var(--muted); padding-top: 0; }

  /* Activity: 2×2, icone GRANDI (140px = ~3x del base) */
  .activity-grid-row { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .activity-asset { width: 140px !important; height: 140px !important; margin-bottom: 14px !important; }
  .activity-card { padding: 24px 14px 20px !important; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .activity-card p { font-size: .78rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  /* Text-link: assicuriamo che funzionino */
  .text-link { display: inline-flex !important; align-items: center; gap: 7px; margin-top: 14px; color: var(--cyan-2); font-weight: 600; }
  .text-link::after { content: "→"; transition: transform .2s; }

  /* Poster evento: centrato */
  .poster-card { align-items: center !important; }
  .poster-card > img { max-width: 260px; margin: 0 auto; }

  /* Network */
  .network-visual-stage { min-height: 190px; }
  .network-copy--cards  { grid-template-columns: 1fr; gap: 9px; }

  /* Bullet cloud */
  .bullet-cloud { overflow-x: hidden; }
  .bullet-cloud span { max-width: 100%; word-break: break-word; }

  /* Contatti */
  .contact-grid-3 { grid-template-columns: 1fr !important; gap: 12px; }
  .contact-card--rich { min-height: 0; padding: 18px; }

  /* Teaching */
  .teaching-poster-grid { grid-template-columns: 1fr !important; gap: 0; }
  .teaching-card { display: flex; flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px; border-bottom: 1px solid rgba(123,228,255,.08); border-radius: 0 !important; }
  .teaching-card:first-child { border-radius: 20px 20px 0 0 !important; }
  .teaching-card:last-child  { border-bottom: none; border-radius: 0 0 20px 20px !important; }
  .teaching-card-img-wrap { max-height: none; width: 88px; flex-shrink: 0; align-self: flex-start; margin-bottom: 0; }
  .teaching-card-img-wrap img { width: 88px; height: 116px; max-height: 116px; object-fit: cover; }

  /* Pubblicazioni */
  #contenuti-articoli .feature-card > img, .articoli-grid .feature-card > img { height: 190px; min-height: 190px; }

  /* Fondatori */
  .founders-grid { perspective: none !important; }
  .founder-card { opacity: 0; transform: translateY(28px); }
  .founder-card.is-visible { opacity: 1; transform: none; }
  .founder-card:hover { transform: translateY(-3px) !important; }
  .founder-card > img { width: 80px; height: 80px; }

  /* Animazioni entrata: translateY (no translateX su mobile) */
  .reveal, .reveal-left, .reveal-right { transform: translateY(22px); }
  .reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible { transform: none; }
  #ricerca .research-showcase-grid > *:nth-child(odd),
  #ricerca .research-showcase-grid > *:nth-child(even) { transform: translateY(22px); }
  #contatti .contact-grid-visible > *:nth-child(1),
  #contatti .contact-grid-visible > *:nth-child(2),
  #contatti .contact-grid-visible > *:nth-child(3) { transform: translateY(22px); }

  /* Dialog */
  .dialog { max-width: calc(100% - 16px) !important; }
  .dialog__head--modern { flex-direction: column; gap: 8px; }
  .dialog .split-2, .dialog .section-grid.split-2 { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .footer-grid nav { justify-content: center; }

  /* Canvas dust */
  #dust-canvas { position: absolute; }

  /* Bottoni rete */
  .btn-rete-cta, .btn-candidati-cta { width: 100%; justify-content: center; }

  /* Content grid orizzontale */
  .content-grid { grid-template-columns: 1fr; gap: 0; }
  .content-grid .content-card { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; border-bottom: 1px solid rgba(123,228,255,.08); }
  .content-grid .content-card:last-child { border-bottom: none; }
  .content-grid .content-card img { width: 80px; height: 80px; flex-shrink: 0; object-fit: cover; border-radius: 12px; margin-bottom: 0; }
  .content-grid .content-card.reveal, .content-grid .content-card.is-visible { display: flex; }
}

/* 560px */
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .activity-asset { width: 110px !important; height: 110px !important; }
  .hero-stats { flex-direction: column; }
  .hero-stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(123,228,255,.08); }
  .hero-stat:last-child { border-bottom: none; }
}

/* 400px */
@media (max-width: 400px) {
  .activity-asset { width: 90px !important; height: 90px !important; }
  .activity-grid-row { grid-template-columns: 1fr !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
  .founder-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  #ricerca .research-showcase-grid > *, #contatti .contact-grid-visible > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .timeline-card::before, .timeline-card::after { animation: none !important; }
  .btn-rete-cta::before, .btn-rete-cta::after { animation: none !important; }
  .contact-card--rich .btn-electric { animation: none !important; }
  /* Pulse completamente eliminato su mobile */
  #mobile-quicknav-btn { animation: none !important; box-shadow: 0 8px 28px rgba(0,120,255,.4) !important; }
  .contact-card--rich .btn-electric { animation: none !important; }
  .btn-electric::before { animation: none !important; }
  .btn-electric::after  { animation: none !important; }
  #dust-canvas { display: none; }
}


/* ==========================================================
   FINAL17 — bug fix desktop + mobile tweaks
   ========================================================== */

/* ── FIX ROOT: overflow-x clip causa shift a destra ──────────
   Il clip + translateX dei reveal spostava visivamente il
   contenuto. Soluzione: solo overflow-x:hidden su body,
   clip rimosso dalle sezioni.
   --------------------------------------------------------- */
main, .section, .hero {
  overflow-x: visible !important;
  overflow-y: visible !important;
}
/* Solo il body previene la scrollbar orizzontale */
html, body { overflow-x: hidden; }

/* ── TEXT-LINK DESKTOP: assicura che funzionino ──────────────*/
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--cyan-2);
  font-weight: 600;
  cursor: pointer;
  transition: gap .2s, opacity .2s;
}
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover { opacity: .85; }
.text-link:hover::after { transform: translateX(4px); }

/* ── HERO LOGO: leggermente più grande ───────────────────────*/
.brand img {
  width: 56px !important;
  height: 56px !important;
}

/* ── TICKER: più accattivante ────────────────────────────────
   Sfondo sfumato con bordo luminoso. Freccia ▾ accanto al 
   kicker. Pill con area corrente.
   --------------------------------------------------------- */
.ticker {
  background: linear-gradient(90deg,
    rgba(0,80,160,.12) 0%,
    rgba(0,40,100,.06) 50%,
    rgba(0,80,160,.10) 100%);
  border-top: 1px solid rgba(123,228,255,.12);
  border-bottom: 1px solid rgba(123,228,255,.08);
  position: relative;
  overflow: hidden;
}
/* Sfumature ai lati per effetto tunnel */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, rgba(2,10,24,.9), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(270deg, rgba(2,10,24,.9), transparent);
}
.ticker-track {
  font-size: .7rem;
  letter-spacing: .28em;
  color: rgba(160,220,255,.6);
  padding: 10px 0;
}
/* Puntini separatori colorati */
.ticker-track { color: rgba(160,220,255,.55); }

/* ── HERO STAT: linea divisoria tra stat 3 e 4 mobile ────────
   La 4ª e 5ª stat sono in seconda riga (2 su 2).
   Il confine tra la 3ª riga e la 4ª/5ª deve avere una linea.
   --------------------------------------------------------- */
@media (max-width: 768px) {
  /* Linea tra riga 1 (1-2-3) e riga 2 (4-5) */
  .hero-stat:nth-child(4) {
    border-top: 1px solid rgba(123,228,255,.1) !important;
  }
  .hero-stat:nth-child(5) {
    border-top: 1px solid rgba(123,228,255,.1) !important;
  }
  /* 4° stat: ha border-bottom:none già, ma serve border-right */
  .hero-stat:nth-child(4) {
    border-right: 1px solid rgba(123,228,255,.1) !important;
  }
}

/* ── DESKTOP: rimuove overflow:clip da sezioni specifiche ─────
   Già fatto sopra globalmente, qui per sicurezza su singole
   sezioni che lo definivano inline.
   --------------------------------------------------------- */
#rete-home, #visione, #eventi, #fondatori,
#ricerca, #formazione, #contatti, #contenuti {
  overflow: visible !important;
}

/* ── DESKTOP: activity card — nessun overflow hidden che 
   blocchi i link text-link ─────────────────────────────────*/
.activity-card { overflow: visible !important; }
.activity-card::before { overflow: hidden; border-radius: inherit; }

/* ── MOBILE: overflow solo su body, non su main (romperebbe position:fixed) ── */
@media (max-width: 768px) {
  body { overflow-x: hidden !important; }
}


/* ==========================================================
   FINAL17 — fix overflow shift + desktop bug + mobile tweaks
   ========================================================== */

/* ── ROOT FIX: overflow-x clip causa shift a destra ──────────
   overflow-x:clip su .section + translateX sui reveal
   sposta il layout di riferimento del browser.
   Soluzione: clip SOLO sul body, sezioni libere.
   --------------------------------------------------------- */
main { overflow-x: visible !important; }
.section { overflow: visible !important; }
#rete-home, #visione, #eventi, #fondatori,
#ricerca, #formazione, #contatti, #contenuti,
#evidenza, #attivita, #partner { overflow: visible !important; }
html, body { overflow-x: hidden; }

/* ── HERO LOGO: più grande ────────────────────────────────── */
.brand img {
  width: 56px !important;
  height: 56px !important;
  filter: drop-shadow(0 0 14px rgba(123,228,255,.35));
}

/* ── TICKER: no sfondo bianco, bordi luminosi, sfumature ─── */
.ticker {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
    rgba(0,60,140,.14),
    rgba(0,30,80,.06) 40%,
    rgba(0,30,80,.06) 60%,
    rgba(0,60,140,.12));
  border-top: 1px solid rgba(123,228,255,.14);
  border-bottom: 1px solid rgba(123,228,255,.08);
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg,  rgba(2,10,24,.95), transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, rgba(2,10,24,.95), transparent); }
.ticker-track {
  display: flex; gap: 20px; align-items: center;
  font-size: .68rem; letter-spacing: .22em;
  color: rgba(150,210,255,.55);
  white-space: nowrap;
  padding: 9px 0;
}
.ticker-track span { flex-shrink: 0; }
.ticker-dot {
  color: rgba(123,228,255,.35) !important;
  font-size: .5rem !important;
  letter-spacing: 0 !important;
}

/* ── NAV DROPDOWN DESKTOP: no sfondo bianco ──────────────── */
.nav-dropdown-panel {
  background: rgba(4,14,36,.97) !important;
  border: 1px solid rgba(123,228,255,.18) !important;
}

/* Freccia ▾ accanto a "Attività" su desktop */
.nav-dropdown > .nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-dropdown > .nav-dropdown-btn::after {
  content: "▾";
  font-size: .65rem;
  opacity: .7;
  transition: transform .22s;
}
.nav-dropdown:hover > .nav-dropdown-btn::after,
.nav-dropdown.is-open > .nav-dropdown-btn::after { transform: rotate(180deg); }
.nav-dropdown > .nav-dropdown-btn:hover,
.nav-dropdown:hover > .nav-dropdown-btn { color: var(--cyan-2); background: rgba(123,228,255,.07); }

/* ── TEXT-LINK DESKTOP: assicura funzionamento ───────────── */
.text-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--cyan-2);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: gap .2s, opacity .2s;
  position: relative;
  z-index: 2;
}
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(5px); }
.activity-card { overflow: visible !important; }

/* ── HERO STATS MOBILE: linea tra riga 1 e riga 2 ───────── */
.hero-stat-divider {
  display: none; /* nascosto su desktop */
}
@media (max-width: 768px) {
  .hero-stat-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
      transparent,
      rgba(123,228,255,.25) 30%,
      rgba(123,228,255,.25) 70%,
      transparent);
    flex: 0 0 100%;
    margin: 0;
    order: 3; /* viene dopo il 3° stat */
  }
  /* Quarta e quinta stat: seconda riga, senza border-top ridondante */
  .hero-stat:nth-child(5),
  .hero-stat:nth-child(6) {
    border-top: none !important;
  }
}

/* ── DESKTOP: prevent reveal translateX from shifting layout  */
/* Wrap ogni sezione con overflow:hidden solo sull'asse X
   ma senza usare clip (che è il colpevole dello shift).    */
.section {
  overflow-x: hidden;
  overflow-y: visible;
}
/* Le sezioni con contenuto che esce (glow, orb) rimangono visibili */
.hero, #visione, #rete-home, #eventi { overflow: visible; }
/* Ma il contenuto dentro il container non può uscire */
.section > .container { overflow: visible; }

/* Il vero fix per lo shift: usa clip-path invece di overflow */
.section.alt-section,
#attivita, #fondatori, #ricerca,
#formazione, #contenuti-articoli,
#partner, #contatti {
  clip-path: inset(0 0 0 0);
}

/* ── MOBILE: overflow-x clip solo su mobile ─────────────── */
@media (max-width: 768px) {
  main, .section, .hero { overflow-x: clip !important; }
  .section { clip-path: none !important; }
}

/* ── POSTER EVENTO (the day after): centrato ─────────────── */
.event-grid { align-items: start; }
.poster-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
.poster-card > img {
  max-width: 320px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}
@media (max-width: 768px) {
  .poster-card > img { max-width: 260px !important; }
}


/* ==========================================================
   MOBILE FIX v2 — overflow, brand, timeline, icone, reveal
   ========================================================== */

@media (max-width: 768px) {

  /* ── 1. BRAND: sottotitolo non tagliato dal hamburger ── */
  .nav-wrap {
    min-height: 66px !important;
    padding: 0 14px !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  /* Brand: cresce ma non schiaccia il burger */
  .brand {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    gap: 9px !important;
  }
  .brand-copy {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .brand strong {
    font-size: .96rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: calc(100vw - 120px) !important;
  }
  .brand em:first-of-type {
    font-size: .6rem !important;
    color: var(--soft) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: calc(100vw - 120px) !important;
  }
  /* Hamburger: flex-shrink 0 così non si comprime mai */
  .nav-burger {
    flex-shrink: 0 !important;
    width: 42px !important;
    height: 42px !important;
  }

  /* ── 2 & 3. SEZIONI NON CENTRALI: fix overflow ── */
  /* Il problema: translateX(-44px) sul reveal + overflow-x:clip
     su .section sposta il layout di riferimento verso destra.
     Fix: no clip sulle sezioni, solo hidden su body */
  .section {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  /* Le sezioni con griglia che contiene reveal da sinistra
     necessitano di overflow-x visible per non shiftare */
  #visione, #rete-home, #eventi, #formazione {
    overflow-x: hidden !important;
  }
  /* Tutti i container dentro le sezioni: no overflow su assi */
  .section > .container {
    overflow: visible !important;
  }
  /* Fix specifico: vision-layout e rete-home-grid su mobile
     devono essere a colonna singola e centrati */
  .vision-layout,
  .rete-home-grid,
  .event-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin: 0 !important;
  }
  /* Timeline card: larghezza piena, centrata */
  .timeline-card {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* ── 4. ICONE MACROAREE: x2 ── */
  .activity-asset {
    width: 120px !important;
    height: 120px !important;
    margin-bottom: 14px !important;
  }

  /* ── 5. ANIMAZIONI D'INGRESSO più accattivanti ── */
  /* Base: fade + slide su Y, più veloce e con spring */
  .reveal, .reveal-left, .reveal-right {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition:
      opacity .55s cubic-bezier(.25,.46,.45,.94),
      transform .55s cubic-bezier(.22,.68,0,1.25) !important;
  }
  .reveal.is-visible,
  .reveal-left.is-visible,
  .reveal-right.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Info cards: zoom in leggero */
  .info-card {
    opacity: 0;
    transform: translateY(20px) scale(.97);
    transition:
      opacity .5s cubic-bezier(.25,.46,.45,.94),
      transform .5s cubic-bezier(.22,.68,0,1.2) !important;
  }
  .info-card.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Research cards: alternato sx/dx su mobile (Y perché no overflow) */
  #ricerca .research-showcase-grid > *:nth-child(odd),
  #ricerca .research-showcase-grid > *:nth-child(even) {
    transform: translateY(24px) !important;
  }
  #ricerca .research-showcase-grid > *.is-visible {
    transform: none !important;
    opacity: 1 !important;
  }

  /* Contatti: ventaglio su Y */
  #contatti .contact-grid-visible > *:nth-child(1) { transform: translateY(28px) !important; transition-delay: 0s !important; }
  #contatti .contact-grid-visible > *:nth-child(2) { transform: translateY(28px) !important; transition-delay: .08s !important; }
  #contatti .contact-grid-visible > *:nth-child(3) { transform: translateY(28px) !important; transition-delay: .16s !important; }
  #contatti .contact-grid-visible > *.is-visible   { transform: none !important; opacity: 1 !important; }

  /* Fondatori: slide su Y con stagger */
  #fondatori .founders-grid .founder-card {
    transform: translateY(28px) !important;
    opacity: 0 !important;
  }
  #fondatori .founders-grid .founder-card.is-visible {
    transform: none !important;
    opacity: 1 !important;
  }

  /* Activity cards: pop con scale */
  .activity-card {
    opacity: 0;
    transform: translateY(20px) scale(.95);
    transition:
      opacity .5s cubic-bezier(.25,.46,.45,.94),
      transform .5s cubic-bezier(.22,.68,0,1.3) !important;
  }
  .activity-card.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Section heading: slide su X corto */
  .section-heading.reveal {
    transform: translateY(16px) !important;
  }
  .section-heading.is-visible {
    transform: none !important;
  }
}

/* ── POSTER EVENT: sempre centrato su mobile ── */
@media (max-width: 768px) {
  .event-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
  }
  .poster-card {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    align-items: center !important;
  }
  .poster-card > img {
    max-width: 260px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}


/* ── MOBILE: fix sezioni invisibili dopo corsi ────────────────── */
@media (max-width: 768px) {
  #formazione .reveal,
  #formazione .reveal-left,
  #formazione .reveal-right,
  #contenuti-articoli .reveal,
  #contenuti-articoli .reveal-left,
  #partner .reveal,
  #partner .reveal-left,
  #contatti .reveal,
  #contatti .reveal-left,
  #contatti .reveal-right,
  .teaching-blocks,
  .teaching-poster-grid,
  .course-poster-grid,
  .teaching-card,
  .course-poster-card,
  .research-card,
  .feature-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ════════════════════════════════════════════════════════
   DESKTOP FLOATING SIDE NAV — punti sezione
   ════════════════════════════════════════════════════════ */
#desktop-quicknav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#desktop-quicknav.dqn-visible {
  opacity: 1;
  pointer-events: auto;
}
#desktop-quicknav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0; margin: 0;
}
#desktop-quicknav a {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(123,228,255,.28);
  border: 1.5px solid rgba(123,228,255,.38);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .2s, border-color .2s, box-shadow .2s;
}
#desktop-quicknav a:hover,
#desktop-quicknav a.dqn-active {
  background: var(--cyan-2, #a8eeff);
  border-color: var(--cyan-2, #a8eeff);
  transform: scale(1.6);
  box-shadow: 0 0 10px rgba(123,228,255,.65);
}
/* Tooltip label al hover */
#desktop-quicknav a::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #a8eeff;
  white-space: nowrap;
  background: rgba(4,14,36,.95);
  border: 1px solid rgba(123,228,255,.22);
  padding: 4px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
#desktop-quicknav a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
/* Linea dalla pallina attiva */
#desktop-quicknav a.dqn-active::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,228,255,.6));
  margin-right: 4px;
}
@media (max-width: 768px) {
  #desktop-quicknav { display: none !important; }
}

/* ════════════════════════════════════════════════════════
   TASTO IT/EN — stile uniforme al sito
   ════════════════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(123,228,255,.07);
  border: 1px solid rgba(123,228,255,.22);
  color: rgba(237,247,255,.65);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: rgba(123,228,255,.15);
  border-color: rgba(123,228,255,.42);
  color: #a8eeff;
}
#langCurrent {
  color: var(--cyan-2, #a8eeff);
  font-weight: 800;
}
.lang-sep { opacity: .28; font-weight: 400; }
#langOther { opacity: .52; }


/* ── Amici di Boyle button (home) ── */
.btn-amici-home {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(77,255,180,.18), rgba(0,200,140,.14));
  border: 1px solid rgba(77,255,180,.38);
  color: #4dffd6;
  font-size: .9rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background .22s, border-color .22s, transform .18s;
}
.btn-amici-home:hover {
  background: linear-gradient(135deg, rgba(77,255,180,.28), rgba(0,200,140,.24));
  border-color: rgba(77,255,180,.65);
  transform: translateY(-2px);
}
.cta-row--two { flex-wrap: wrap; }

/* ── Bottone split Rete / Amici (home) ── */
.btn-split-community {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(123,228,255,.28);
  background: linear-gradient(90deg, rgba(123,228,255,.04) 0%, rgba(77,255,180,.04) 100%);
  transition: transform .18s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(123,228,255,.0);
}
.btn-split-community:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(77,200,200,.18);
}
.btn-split__rete {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  background: transparent;
  color: #a8eeff;
  font-size: .88rem;
  font-weight: 700;
  transition: background .2s;
}
.btn-split-community:hover .btn-split__rete {
  background: rgba(123,228,255,.1);
}
.btn-split__divider {
  width: 1px;
  background: linear-gradient(180deg, transparent 10%, rgba(123,228,255,.2) 35%, rgba(77,255,180,.2) 65%, transparent 90%);
  flex-shrink: 0;
}
.btn-split__amici {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  background: transparent;
  color: #6bffc8;
  font-size: .88rem;
  font-weight: 700;
  transition: background .2s;
}
.btn-split-community:hover .btn-split__amici {
  background: rgba(77,255,180,.1);
}
@media (max-width: 480px) {
  .btn-split-community { flex-direction: column; border-radius: 18px; }
  .btn-split__divider { width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(123,228,255,.2) 35%, rgba(77,255,180,.2) 65%, transparent 90%);
  }
  .btn-split__amici { border-left: none; }
}


/* ══ ENTRANCE ANIMATIONS ══ */
@keyframes scaleIn { from{opacity:0;transform:scale(.94) translateY(16px);} to{opacity:1;transform:scale(1) translateY(0);} }
@keyframes slideInLeft { from{opacity:0;transform:translateX(-32px);} to{opacity:1;transform:translateX(0);} }
@keyframes slideInRight { from{opacity:0;transform:translateX(32px);} to{opacity:1;transform:translateX(0);} }
@keyframes riseUp { from{opacity:0;transform:translateY(24px) scale(.96);} to{opacity:1;transform:translateY(0) scale(1);} }
.founder-card.is-visible { animation: scaleIn .55s cubic-bezier(.22,1,.36,1) both; }
@media (max-width: 768px) {
  .founder-card.is-visible { animation: fadeInUp .4s ease both; }
}

/* ══ KILL TUTTE LE ANIMAZIONI SU MOBILE ══ */
@media (max-width: 768px) {
  /* Battito sfondo */
  .light-scattering   { animation: none !important; }
  .particles          { animation: none !important; }
  .hero::before       { animation: none !important; }
  .hero::after        { animation: none !important; opacity: 0 !important; }
  .hero-eyebrow::before { animation: none !important; }
  .timeline li:last-child::after { animation: none !important; }
  .hero-scroll svg    { animation: none !important; }
  /* Bottoni */
  .contact-card--rich .btn-electric { animation: none !important; }
  .btn-rete-cta::before  { animation: none !important; }
  .btn-rete-cta::after   { animation: none !important; }
  .btn-candidati-cta::after { animation: none !important; }
  .btn-partner-cta::before { animation: none !important; }
  /* Timeline */
  .timeline-card::before, .timeline-card::after { animation: none !important; }
  /* Sticky header */
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 300 !important;
    width: 100% !important;
  }
}

/* ══ LANG TOGGLE: solo desktop ══ */
@media (max-width: 768px) {
  .lang-toggle { display: none !important; }
}

/* Nascondi toggle lingua mobile su desktop */
@media (min-width: 769px) {
  .lang-toggle--mobile { display: none !important; }
}


/* ── Hamburger mobile: dropdown compatto proporzionato ── */
@media (max-width: 768px) {

  /* Pannello: larghezza fissa compatta, allineato a destra */
  .site-nav {
    width: 220px !important;
    min-width: 0 !important;
    right: 0 !important;
    left: auto !important;
    padding: 8px !important;
    border-radius: 16px !important;
  }

  /* Link: testo a sinistra, padding compatto */
  .site-nav > a {
    padding: 10px 16px !important;
    font-size: .95rem !important;
    text-align: left !important;
    border-radius: 10px !important;
  }

  /* Dropdown Attività */
  .site-nav .nav-dropdown-btn {
    padding: 10px 16px !important;
    font-size: .95rem !important;
    text-align: left !important;
    width: 100% !important;
  }

  /* Bottone lingua: compatto, in fondo */
  .site-nav .lang-toggle--mobile {
    display: flex !important;
    margin-top: 4px !important;
    padding: 8px 16px !important;
    font-size: .8rem !important;
  }

  /* Mostra bottone lingua quando menu è aperto */
  .nav-toggle:checked ~ .site-nav .lang-toggle--mobile {
    display: flex !important;
  }
}

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(4,16,38,.92); backdrop-filter: blur(18px);
  border-top: 1px solid rgba(120,210,255,.14);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p {
  font-size: .8rem; color: rgba(237,247,255,.72);
  margin: 0; flex: 1; min-width: 200px;
}
#cookie-banner a { color: #a8eeff; text-decoration: none; }
#cookie-banner a:hover { text-decoration: underline; }
#cookie-accept {
  padding: 7px 20px; border-radius: 999px;
  background: rgba(123,228,255,.12);
  border: 1px solid rgba(123,228,255,.28);
  color: #a8eeff; font-size: .8rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
#cookie-accept:hover { background: rgba(123,228,255,.22); }
