/* ============================================================
   Mattia Mazzon — Elettronica PCB & Robotica
   Tema scuro / neon con sfondo particellare
   ============================================================ */

:root {
  --bg:        #05070d;
  --bg-soft:   #0a0f1a;
  --panel:     rgba(16, 24, 40, 0.55);
  --panel-brd: rgba(90, 220, 255, 0.14);
  --text:      #e7f0ff;
  --muted:     #8ea3c0;
  --neon:      #2ff3ff;   /* ciano */
  --neon-2:    #9d5cff;   /* viola */
  --neon-3:    #23ff9c;   /* verde */
  --glow:      0 0 18px rgba(47, 243, 255, 0.45);
  --maxw:      1080px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fondo con leggero gradiente radiale sopra al canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(157,92,255,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(35,255,156,.10), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Canvas ---------- */
#pcb-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

/* ---------- Navigazione ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5,7,13,.85), rgba(5,7,13,0));
  transition: background .3s var(--ease);
}
.nav.scrolled {
  background: rgba(5,7,13,.9);
  border-bottom: 1px solid var(--panel-brd);
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; letter-spacing: .5px;
}
.logo-mark {
  font-family: "JetBrains Mono", monospace;
  color: var(--neon);
  text-shadow: var(--glow);
  font-size: 1.1rem;
}
.logo-text { font-family: "JetBrains Mono", monospace; font-size: .95rem; }
.blink { animation: blink 1.1s step-end infinite; color: var(--neon); }
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  position: relative;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--neon);
  box-shadow: var(--glow); transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  transition: .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout sezioni ---------- */
main { position: relative; z-index: 1; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 2rem);
}
.section-head { margin-bottom: 3rem; }
.section-idx {
  font-family: "JetBrains Mono", monospace;
  color: var(--neon);
  font-size: .85rem;
  letter-spacing: 3px;
  opacity: .8;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: .3rem 0 .6rem;
  letter-spacing: -.5px;
}
.section-head p { color: var(--muted); max-width: 46ch; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem clamp(1rem, 4vw, 2rem) 4rem;
  position: relative;
}

/* ---- Sfondo spazio fisso dietro a tutto ---- */
#space-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* ---- Hero: testo sopra l'unico spazio fisso ---- */
.hero-space {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem clamp(1.2rem, 5vw, 2rem) 4rem;
}
.hero-space-inner {
  max-width: 760px;
  animation: rise .8s var(--ease) both;
}
.stay-title {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "JetBrains Mono", monospace; font-size: .82rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--neon);
  margin-bottom: 1rem;
}
.hero-h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02; letter-spacing: -1.5px; font-weight: 700;
  margin-bottom: 1rem;
}
.stay-sub {
  color: var(--muted); max-width: 54ch; margin: 0 auto 1.8rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.stay-cta { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }

/* Giochi e strumenti separati, ognuno con la sua etichetta */
.cta-group { margin-bottom: 1.1rem; }
.cta-lbl {
  display: block; margin-bottom: .5rem;
  font-family: "JetBrains Mono", monospace; font-size: .68rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}

/* ---- Link footer ---- */
.foot-link { color: var(--neon); text-decoration: none; }
.foot-link:hover { text-decoration: underline; }

/* ---- Banner cookie / privacy ---- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1.1rem; transform: translate(-50%, 140%);
  z-index: 200;
  width: min(680px, calc(100vw - 1.6rem));
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem;
  background: rgba(10, 15, 26, .96);
  border: 1px solid var(--panel-brd);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(47,243,255,.06);
  backdrop-filter: blur(10px);
  transition: transform .45s var(--ease), opacity .45s var(--ease);
  opacity: 0;
}
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; }
.cookie-ico { font-size: 1.8rem; filter: drop-shadow(0 0 10px rgba(47,243,255,.4)); flex-shrink: 0; }
.cookie-txt { font-size: .86rem; color: var(--muted); line-height: 1.5; margin: 0; }
.cookie-txt b { color: var(--text); }
.cookie-txt a { color: var(--neon); text-decoration: none; white-space: nowrap; }
.cookie-txt a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-btn {
  padding: .55rem 1rem; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .88rem;
  transition: transform .15s, box-shadow .15s, border-color .15s, color .15s;
}
.cookie-yes {
  border: 0; background: linear-gradient(100deg, var(--neon), var(--neon-3)); color: #04121a;
  box-shadow: 0 0 16px rgba(47,243,255,.3);
}
.cookie-yes:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(47,243,255,.45); }
.cookie-no {
  background: transparent; color: var(--muted); border: 1px solid var(--panel-brd);
}
.cookie-no:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 560px) {
  .cookie-banner { flex-wrap: wrap; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* contatore visite */
.visits {
  margin-top: .5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .75rem;
  color: var(--muted);
  opacity: .8;
}
.visits span { color: var(--neon); }
.hero-inner {
  max-width: var(--maxw);
  width: 100%;
  animation: rise .9s var(--ease) both;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem; letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  padding: .35rem .8rem;
  border: 1px solid var(--panel-brd);
  border-radius: 100px;
  background: var(--panel);
  margin-bottom: 1.6rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon-3);
  box-shadow: 0 0 10px var(--neon-3);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero-title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.grad {
  background: linear-gradient(100deg, var(--neon), var(--neon-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(47,243,255,.25);
}
.grad2 { background: linear-gradient(100deg, var(--neon-2), var(--neon)); -webkit-background-clip: text; background-clip: text; }

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(100deg, var(--neon), var(--neon-3));
  color: #04121a;
  box-shadow: 0 0 22px rgba(47,243,255,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(47,243,255,.5); }
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--panel-brd);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--neon); box-shadow: var(--glow); }

.hero-stats { display: flex; gap: clamp(1.5rem, 5vw, 3.5rem); flex-wrap: wrap; }
.stat b {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-family: "JetBrains Mono", monospace;
  color: var(--neon);
  text-shadow: var(--glow);
}
.stat span { color: var(--muted); font-size: .85rem; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--panel-brd);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--neon); margin-left: -2px;
  animation: scroll 1.6s infinite;
}
@keyframes scroll { 0%{opacity:0;transform:translateY(0)} 30%{opacity:1} 100%{opacity:0;transform:translateY(16px)} }

/* ---------- Cards progetti ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  position: relative;
  padding: 1.6rem;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
  opacity: 0; transform: translateY(24px);
}
.card.in { opacity: 1; transform: none; }
/* riflesso che segue il mouse */
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(47,243,255,.14), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(47,243,255,.4); }
.card:hover::before { opacity: 1; }
.card-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem; letter-spacing: 1px;
  color: var(--neon); text-transform: uppercase;
}
.card h3 { font-size: 1.25rem; margin: .5rem 0 .6rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.chip {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  padding: .25rem .6rem;
  border-radius: 6px;
  background: rgba(157,92,255,.12);
  border: 1px solid rgba(157,92,255,.25);
  color: #c9b4ff;
}
.card-emoji { font-size: 1.8rem; }

/* ---------- Galleria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .9rem;
}
.g-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--panel-brd);
  background: var(--bg-soft);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.g-item.in { opacity: 1; transform: none; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease), filter .4s;
  filter: saturate(.9) brightness(.92);
}
.g-item:hover img { transform: scale(1.08); filter: saturate(1.1) brightness(1); }
.g-item::after {
  content: attr(data-cap);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .7rem .6rem;
  font-size: .8rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(2,4,10,.92), transparent);
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.g-item:hover::after { transform: translateY(0); }
.g-item::before {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  transition: border-color .3s, box-shadow .3s;
  z-index: 1; pointer-events: none;
}
.g-item:hover::before { border-color: var(--neon); box-shadow: inset 0 0 24px rgba(47,243,255,.25); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(2,4,10,.92);
  backdrop-filter: blur(6px);
  padding: 2rem;
}
.lightbox.open { display: flex; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: 90vw; max-height: 85vh; text-align: center; }
.lb-figure img {
  max-width: 90vw; max-height: 78vh;
  border-radius: 12px;
  border: 1px solid var(--panel-brd);
  box-shadow: 0 0 60px rgba(47,243,255,.2);
}
.lb-figure figcaption {
  margin-top: .8rem; color: var(--muted);
  font-family: "JetBrains Mono", monospace; font-size: .85rem;
}
.lb-close, .lb-nav {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  color: var(--text);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.lb-close:hover, .lb-nav:hover { border-color: var(--neon); box-shadow: var(--glow); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
@media (max-width: 720px) {
  .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
  .lb-close { top: .6rem; right: .6rem; }
}

.nav-tool {
  color: var(--neon) !important;
  font-family: "JetBrains Mono", monospace;
  font-size: .85rem !important;
  padding: .2rem .6rem;
  border: 1px solid var(--panel-brd);
  border-radius: 6px;
}
.nav-tool:hover { border-color: var(--neon); box-shadow: var(--glow); }

/* ---------- Skill ---------- */
.skills { display: grid; gap: 1.4rem; max-width: 720px; }
.skill span {
  display: block; margin-bottom: .5rem;
  font-size: .95rem; color: var(--text);
}
.bar {
  height: 10px; border-radius: 6px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.bar i {
  display: block; height: 100%; width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
  box-shadow: 0 0 12px rgba(47,243,255,.5);
  transition: width 1.1s var(--ease);
}

/* ---------- Lab ---------- */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.lab-item {
  padding: 1.6rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.lab-item:hover {
  transform: translateY(-4px);
  border-color: var(--neon);
  box-shadow: 0 10px 40px rgba(47,243,255,.18);
}
.lab-tool { text-decoration: none; color: inherit; display: block; border-color: rgba(47,243,255,.35); }
.lab-tool:hover { border-color: var(--neon); }
.lab-tool h3 { color: var(--neon); }
.lab-ico { font-size: 2rem; display: block; margin-bottom: .8rem; }
.lab-item h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.lab-item p { color: var(--muted); font-size: .9rem; }

/* ---------- Contatti ---------- */
.contact { text-align: center; }
.contact-card {
  max-width: 680px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem);
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  backdrop-filter: blur(12px);
}
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .5rem 0; }
.contact-card p { color: var(--muted); margin-bottom: 1.8rem; }

/* ---- Form contatti ---- */
.contact-form {
  display: grid;
  gap: 1.1rem;
  text-align: left;
  max-width: 460px;
  margin: 0 auto 2rem;
}
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .98rem;
  color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--panel-brd);
  border-radius: 10px;
  padding: 1.1rem .9rem .5rem;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: var(--glow);
}
.field label {
  position: absolute;
  left: .95rem; top: .9rem;
  color: var(--muted);
  font-size: .95rem;
  pointer-events: none;
  transition: .18s var(--ease);
}
/* label che sale quando il campo è attivo o pieno */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: .35rem;
  font-size: .68rem;
  letter-spacing: .5px;
  color: var(--neon);
  text-transform: uppercase;
}
.contact-form .btn { justify-self: start; border: 0; }
.form-status { font-size: .9rem; margin: 0; min-height: 1.2em; }
.form-status.ok { color: var(--neon-3); }
.form-status.err { color: #ff6b8b; }
/* honeypot antispam nascosto */
.hp { position: absolute; left: -9999px; }

/* ---- Blocco link maker / GrabCAD ---- */
.maker-block { margin-top: 1.6rem; }
.maker-title {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .8rem;
}
.maker-links {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
}

/* firma */
.signature {
  margin-top: 2.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sezione privacy & cookie */
.privacy { text-align: center; }
.privacy-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  backdrop-filter: blur(10px);
}
.privacy-card h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: .5rem 0 1.2rem; }
.privacy-card p { color: var(--muted); margin-bottom: 1rem; text-align: left; line-height: 1.7; }
.privacy-card p b { color: var(--text); }
.privacy-card a { color: var(--neon); }
.privacy-card .mono { font-family: "JetBrains Mono", monospace; color: var(--neon-3); }
.maker-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem;
  padding: .45rem .9rem;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid var(--panel-brd);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.maker-badge .ico { width: 18px; height: 18px; flex: none; display: block; }
.maker-badge:hover { color: var(--neon); border-color: var(--neon); box-shadow: var(--glow); }
.maker-badge.is-featured {
  color: #04121a;
  background: linear-gradient(100deg, var(--neon), var(--neon-3));
  border-color: transparent;
  box-shadow: 0 0 18px rgba(47,243,255,.4);
}
.maker-badge.is-featured:hover { color: #04121a; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--panel-brd);
  color: var(--muted);
  font-size: .85rem;
}
.foot-mono { font-family: "JetBrains Mono", monospace; opacity: .55; margin-top: .3rem; }

/* ---------- Animazioni utility ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 62px;
    flex-direction: column; gap: 0;
    background: rgba(5,7,13,.97);
    border-bottom: 1px solid var(--panel-brd);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .9rem 0; }
  .nav-toggle { display: flex; }
}

/* Rispetta chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
