/* NEAITECH — Sito istituzionale */
:root {
  --navy: #0c1f3d;
  --navy-soft: #152a4a;
  --blue: #1e5a8a;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.12);
  --white: #ffffff;
  --cream: #f7f5f0;
  --gray-100: #f0f2f6;
  --gray-200: #e2e6ed;
  --gray-500: #6b7a90;
  --gray-700: #3d4f66;
  --text: #1a2b42;
  --shadow: 0 20px 50px rgba(12, 31, 61, 0.12);
  --shadow-lg: 0 30px 80px rgba(12, 31, 61, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --max: 1160px;
  --header-h: 72px;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Header ── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.brand img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--navy); background: var(--gray-100); }
.nav a.nav-cyber {
  color: var(--blue);
  border: 1px solid var(--gray-200);
  margin-left: 0.5rem;
}
.nav a.nav-cyber:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--navy);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(12, 31, 61, 0.25);
}
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow); }
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 0.75rem 1.4rem;
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(12, 31, 61, 0.88) 0%,
    rgba(30, 90, 138, 0.75) 50%,
    rgba(12, 31, 61, 0.85) 100%);
}
.hero-photo {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 38vw);
  z-index: 1;
  opacity: 0;
  animation: hero-photo-in 1.2s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hero-photo-in {
  from { opacity: 0; transform: translateY(-42%) translateX(40px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.2);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: var(--white);
}
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  animation: fade-up 0.8s ease forwards;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fade-up 0.8s 0.1s ease both;
}
.hero h1 em {
  font-style: italic;
  color: #a8d4f5;
}
.hero-lead {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fade-up 0.8s 0.2s ease both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
  animation: fade-up 0.8s 0.3s ease both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  animation: fade-up 0.8s 0.45s ease both;
}
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat span {
  font-size: 0.78rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ── Sections ── */
.section { padding: 5.5rem 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}
.section-head.center { text-align: center; }
.section-desc {
  margin-top: 0.75rem;
  color: var(--gray-500);
  max-width: 520px;
}
.section-head.center .section-desc { margin-inline: auto; }

/* ── About ── */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.photo-stack {
  position: relative;
}
.photo-main {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.photo-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.photo-float {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 45%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: float 5s 1s ease-in-out infinite;
}
.photo-float img { aspect-ratio: 1; object-fit: cover; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}
.about-text p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}
.about-points {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-points li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.point-icon {
  color: var(--accent);
  font-size: 0.6rem;
  margin-top: 0.45rem;
}
.about-points strong { color: var(--navy); }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-img {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 1.35rem; }
.service-body h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-body p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ── Competenze ── */
.competenze { background: var(--gray-100); }
.competenze-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.competenze-visual { position: relative; }
.comp-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.comp-logo {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  z-index: 1;
}
.competenze-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}
.cert-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.cert-card {
  display: flex;
  gap: 1rem;
  padding: 1.15rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-soft);
}
.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.cert-card h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.cert-card p { font-size: 0.85rem; color: var(--gray-500); }

/* ── Timeline ── */
.timeline-section { padding-bottom: 4rem; }
.timeline {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--gray-200), var(--accent), var(--gray-200));
}
.timeline-item {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}
.timeline-year {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.timeline-item p {
  font-size: 0.88rem;
  color: var(--gray-500);
  max-width: 220px;
  margin-inline: auto;
}

/* ── Clients ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.client-card {
  padding: 1.35rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.25s, background 0.25s;
}
.client-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow);
}
.client-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
}
.client-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.client-card span {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ── CTA band ── */
.cta-band {
  padding: 0;
  margin: 2rem 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.cta-text {
  padding: 3rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.cta-text p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 400px;
}
.cta-text .btn-primary {
  align-self: flex-start;
  background: var(--accent);
  color: var(--navy);
}
.cta-text .btn-primary:hover { background: #dbb42e; }

/* ── Contact ── */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.contact-info h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 2rem;
}
.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.contact-item label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.contact-item span, .contact-item a {
  font-size: 0.95rem;
  color: var(--navy);
}
.contact-item a:hover { color: var(--blue); text-decoration: underline; }
.contact-visual { position: relative; }
.contact-map-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.contact-card-float {
  position: absolute;
  bottom: -24px;
  left: 24px;
  right: 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.contact-card-float strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}
.contact-card-float span {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ── Dimensioni (portali in evidenza) ── */
.dimensions-section {
  background: linear-gradient(180deg, #0a1628 0%, #050010 50%, #001208 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}
.dimensions-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.dimensions-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  margin: 0.5rem 0 0.75rem;
}
.dimensions-head p {
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-inline: auto;
}
.dimensions-head .section-label { color: #9d7aff; }
.dimensions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 380px;
  margin-inline: auto;
}
@media (min-width: 960px) {
  .dimensions-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 1.25rem;
  }
}
.dim-card {
  padding: 2rem 1.5rem 5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.dim-cyber:hover {
  border-color: rgba(157,122,255,0.4);
  box-shadow: 0 0 40px rgba(100,60,200,0.2);
}
.dim-ai:hover {
  border-color: rgba(0,255,100,0.35);
  box-shadow: 0 0 40px rgba(0,255,100,0.12);
}
.dim-longevity:hover {
  border-color: rgba(14,116,144,0.45);
  box-shadow: 0 0 40px rgba(79,70,229,0.18);
}
.dim-info h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.dim-cyber h3 em { font-style: italic; color: #b8a0ff; }
.dim-ai h3 em { font-style: italic; color: #00ff88; }
.dim-longevity h3 em { font-style: italic; color: #38bdf8; }
.dim-info p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 320px;
}
.nav-ai {
  color: #00aa55 !important;
  border: 1px solid rgba(0,170,85,0.3);
  margin-left: 0.25rem;
}
.nav-ai:hover { background: rgba(0,255,100,0.1) !important; color: #00ff88 !important; }
.nav-longevity {
  color: #5eead4 !important;
  border: 1px solid rgba(14,116,144,0.35);
  margin-left: 0.25rem;
}
.nav-longevity:hover { background: rgba(14,116,144,0.15) !important; color: #99f6e4 !important; }
.nav-borsa {
  color: #f59e0b !important;
  border: 1px solid rgba(16,185,129,0.35);
  margin-left: 0.25rem;
}
.nav-borsa:hover { background: rgba(16,185,129,0.12) !important; color: #10b981 !important; }
.portal-blackhole {
  position: relative;
  width: 220px;
  height: 220px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.portal-blackhole:hover { transform: scale(1.1); }
.portal-blackhole:focus-visible {
  outline: 2px solid #9d7aff;
  outline-offset: 8px;
}
#portal-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.portal-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, #000 30%, transparent 70%);
  box-shadow: 0 0 40px rgba(0,0,0,0.9), inset 0 0 30px #000;
  pointer-events: none;
}
.portal-label {
  position: absolute;
  left: 50%;
  bottom: -2.5rem;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #c4b5fd;
  white-space: nowrap;
  animation: none;
}
.portal-hint {
  position: absolute;
  left: 50%;
  bottom: -4rem;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  animation: none;
}
.portal-quantum {
  position: relative;
  width: 200px;
  height: 200px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.portal-quantum:hover { transform: scale(1.1); }
#portal-ai-canvas { width: 100%; height: 100%; border-radius: 50%; display: block; }
.quantum-core {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: radial-gradient(circle, #00ff6622, #001a00);
  border: 1px solid rgba(0,255,100,0.5);
  box-shadow: 0 0 30px rgba(0,255,100,0.3), inset 0 0 20px rgba(0,255,100,0.1);
  pointer-events: none;
  animation: quantum-pulse 2s ease-in-out infinite;
}
@keyframes quantum-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,255,100,0.2); }
  50% { box-shadow: 0 0 50px rgba(0,255,100,0.5); }
}
.portal-label-ai { color: #00ff88 !important; }
.portal-longevity {
  position: relative;
  width: 200px;
  height: 200px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.portal-longevity:hover { transform: scale(1.1); }
.portal-longevity:focus-visible {
  outline: 2px solid #0e7490;
  outline-offset: 8px;
}
#portal-longevity-canvas { width: 100%; height: 100%; border-radius: 50%; display: block; }
.longevity-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.92), rgba(224,236,245,0.88));
  border: 1px solid rgba(14,116,144,0.4);
  box-shadow: 0 0 24px rgba(79,70,229,0.18), inset 0 0 16px rgba(14,116,144,0.06);
  pointer-events: none;
  animation: longevity-pulse 2.5s ease-in-out infinite;
}
@keyframes longevity-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(14,116,144,0.2); }
  50% { box-shadow: 0 0 40px rgba(79,70,229,0.35), 0 0 16px rgba(14,116,144,0.2); }
}
.portal-label-longevity { color: #5eead4 !important; }

.btn-borsa {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  border: none;
}
.btn-borsa:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}
.warp-overlay.borsa-warp .warp-stars {
  background: radial-gradient(2px 2px at 30% 40%, #10b981, transparent),
    radial-gradient(2px 2px at 70% 60%, rgba(245,158,11,0.8), transparent);
}
.warp-overlay.borsa-warp .warp-msg { color: #10b981; }

.warp-overlay.longevity-warp .warp-stars {
  background: radial-gradient(2px 2px at 25% 35%, #0e7490, transparent),
    radial-gradient(2px 2px at 65% 55%, #4f46e5, transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(56,189,248,0.8), transparent);
}
.warp-overlay.longevity-warp .warp-msg { color: #5eead4; }
.warp-overlay.quantum-warp .warp-stars {
  background: radial-gradient(2px 2px at 30% 40%, #00ff88, transparent),
    radial-gradient(2px 2px at 70% 60%, rgba(0,255,100,0.8), transparent);
}
.warp-overlay.quantum-warp .warp-msg { color: #00ff88; }
.warp-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.warp-overlay[hidden] { display: none !important; }
.warp-overlay.active { opacity: 1; pointer-events: all; }
.warp-stars {
  position: absolute;
  inset: 0;
  background: radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(180,140,255,0.8), transparent),
    radial-gradient(1px 1px at 50% 50%, #fff, transparent);
  background-size: 200% 200%;
  animation: warp-stars 1.5s ease-in forwards;
}
@keyframes warp-stars {
  from { transform: scale(1); opacity: 0.3; }
  to { transform: scale(3); opacity: 1; }
}
.warp-msg {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c4b5fd;
  animation: warp-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes warp-pulse {
  from { opacity: 0.5; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.02); }
}
body.warping { overflow: hidden; }

/* ── Footer ── */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--gray-200);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--navy); }

/* ── Mobile ── */
@media (max-width: 960px) {
  .hero-photo { display: none; }
  .about-grid, .competenze-wrap, .contact-grid, .cta-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .comp-logo { right: 16px; top: -16px; }
  .photo-float { right: 0; width: 40%; }
  .timeline { flex-direction: column; gap: 2rem; }
  .timeline::before { display: none; }
}



@media (max-width: 700px) {
  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a.nav-cyber { margin-left: 0; }
  .menu-toggle { display: block; margin-left: auto; }
  .services-grid, .clients-grid, .contact-details { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .cta-text { padding: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}