/* Il nucleo a strati (home). */
.nucleo-section {
  --nu-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48'%3E%3Cpath d='M0 24L42 0L84 24M0 24L42 48L84 24' fill='none' stroke='%2394b2d6' stroke-opacity='.16' stroke-width='.8'/%3E%3C/svg%3E");
  --nu-grid-lit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48'%3E%3Cpath d='M0 24L42 0L84 24M0 24L42 48L84 24' fill='none' stroke='%23f97316' stroke-width='1'/%3E%3C/svg%3E");
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(50% 60% at 75% 55%, rgba(47, 84, 130, 0.45), transparent 70%),
    radial-gradient(35% 40% at 78% 60%, rgba(249, 115, 22, 0.1), transparent 70%),
    linear-gradient(180deg, #0b1a2e, #0d2138);
}
.nucleo-section::before,
.nucleo-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--nu-grid);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 72% 70%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 80% at 72% 70%, #000 20%, transparent 100%);
}
.nucleo-section::after {
  background-image: var(--nu-grid-lit);
  opacity: 0;
  transition: opacity 0.4s;
  -webkit-mask-image: radial-gradient(170px circle at var(--mx, 50%) var(--my, 50%), #000, transparent);
  mask-image: radial-gradient(170px circle at var(--mx, 50%) var(--my, 50%), #000, transparent);
}
.nucleo-section.is-luce::after { opacity: 0.6; }

.nucleo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.nucleo-copy h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.1rem, 1rem + 3vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.nucleo-copy h2 em { font-style: normal; color: var(--copper); }
.nucleo-copy > p { margin: 0; max-width: 34rem; color: rgba(226, 232, 240, 0.74); font-size: 1.08rem; line-height: 1.7; }
.nucleo-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nucleo-passi { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.nucleo-passi li {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(148, 178, 214, 0.2); color: rgba(226, 232, 240, 0.8);
  font-size: 0.8rem; font-weight: 600;
}
.nucleo-passi b { color: var(--copper); margin-right: 6px; }

.nucleo { position: relative; }
.nu-visual {
  position: relative;
  width: 104%;
  aspect-ratio: 1;
  container-type: inline-size;
  animation: nu-enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.nu-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nu-alone { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(56, 98, 150, 0.45), transparent); pointer-events: none; }
.nu-orbite { position: absolute; inset: 0; pointer-events: none; }
.nu-tilt { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; transform-origin: 50% 50%; }
.nu-visual { perspective: 1400px; }
.nu-float { position: absolute; inset: 0; animation: nu-float 6.5s ease-in-out infinite alternate; }
.nu-pulse { animation: nu-seam 4.8s ease-in-out infinite alternate; }

.nu-carte { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; font-size: clamp(10px, 1.75cqw, 15px); }
.nu-carte li { position: absolute; transform: translateY(-50%); }
.nu-carte .nu-card { opacity: 0; }
.nucleo.is-aperto .nu-carte .nu-card { pointer-events: auto; }
.nu-card {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr);
  gap: 0.15em 0.5em;
  padding: 0.85em 1em;
  border: 1px solid rgba(148, 178, 214, 0.2);
  border-radius: 1.1em;
  background: rgba(14, 32, 56, 0.86);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nu-card:hover, .nu-card.is-acceso { border-color: rgba(249, 115, 22, 0.55); box-shadow: 0 18px 40px -16px rgba(249, 115, 22, 0.45); }
.nu-card.is-cuore { border-color: rgba(249, 115, 22, 0.45); }
.nu-n { grid-row: span 2; color: rgba(159, 179, 204, 0.8); font: 600 0.8em/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.nu-t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 0.6em; }
.nu-t b { color: #fff; font-size: 1.05em; line-height: 1.3; letter-spacing: -0.01em; }
.nu-t em { color: var(--copper); font-style: normal; font-size: 0.7em; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.nu-v { color: rgba(203, 221, 240, 0.66); font-size: 0.86em; line-height: 1.45; }

.nu-hint {
  position: absolute; top: 85%; left: 50%; margin: 0; transform: translateX(-50%);
  color: rgba(203, 221, 240, 0.7); font-size: 0.8rem; white-space: nowrap; pointer-events: none;
}
.nu-hint::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18); }
.nu-hint-tocco { display: none; }
@media (hover: none) { .nu-hint-mouse { display: none; } .nu-hint-tocco { display: inline; } }
.nu-btn {
  position: absolute; top: 30%; left: 22%; width: 56%; height: 44%;
  border: 0; border-radius: 3rem; background: transparent; cursor: pointer;
}
.nu-btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.nu-lista { display: none; }

@keyframes nu-float { to { transform: translateY(-1%); } }
@keyframes nu-seam { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes nu-enter { from { opacity: 0; transform: scale(0.97); } }

@media (max-width: 1023px) {
  .nucleo-grid { grid-template-columns: minmax(0, 1fr); }
  .nu-visual { width: 100%; max-width: 720px; margin: 0 auto; }
}
@media (max-width: 767px) {
  .nu-carte, .nu-conns { display: none; }
  .nu-visual { width: 118%; margin: -6% 0 -4% -9%; }
  .nu-lista { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
  .nu-lista .nu-card { background: rgba(14, 32, 56, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .nu-float, .nu-pulse, .nu-visual { animation: none; }
}
