/* ========== Root & Base ========== */
:root{
  --bg: #0a0b10;
  --panel: #0e111a;
  --panel-2:#0b0e16;
  --text: #e8f3ff;
  --muted:#9bb3c7;
  --neon1:#00f7ff;
  --neon2:#7a00ff;
  --neon3:#ff2fd6;
  --neon4:#39ff14;
  --glow: conic-gradient(from 0deg at 50% 50%, var(--neon1), var(--neon2), var(--neon3), var(--neon1));
  --radius: 16px;
  --shadow: 0 0 30px #00e7ff33, 0 0 50px #7a00ff22;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body{
  margin: 0;
  background: radial-gradient(1200px 800px at 80% -10%, #121527 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 120%, #151833 0%, transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: "Rajdhani", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-thumb{ background: linear-gradient(180deg, #00f7ff66, #7a00ff66); border-radius: 10px; }

/* Containers */
.container{ width: min(1120px, 92%); margin: 0 auto; }
.section{ padding: 96px 0; position: relative; }
.section.alt{ background: linear-gradient(180deg, #0b0d14 0%, #0a0b10 100%); }

/* Header / Nav */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,16,.6);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ffffff14;
}
.nav-wrap{ display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand{
  font-family: "Orbitron", sans-serif; font-weight: 800;
  letter-spacing: 1px; text-decoration: none; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
}
.brand-ring{
  display:inline-grid; place-items:center; width: 30px; height: 30px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, #00e7ff 40%, #7a00ff 70%);
  color:#090b10; font-weight: 900;
  box-shadow: 0 0 10px #00f7ff, 0 0 18px #7a00ff;
}
.brand-dot{
  position: absolute; right: -10px; top: -2px; width: 6px; height:6px; border-radius:50%;
  background: #ff2fd6; box-shadow: 0 0 8px #ff2fd6, 0 0 16px #ff2fd6;
}
.nav ul{
  display: flex; gap: 18px; list-style: none; margin: 0; padding: 0;
}
.nav a{ color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.nav a:hover{ background: #ffffff14; }

.nav-toggle{
  display: none; background: transparent; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle .bar{ display:block; width: 26px; height:2px; margin:6px 0; background:#b9c9ff; border-radius: 2px; }

/* Hero */
.hero{ min-height: 86vh; display: grid; place-items: center; text-align: center; }
.hero-inner{ position: relative; z-index: 2; }
.glitch{
  font-family: "Orbitron", sans-serif; font-weight: 800; letter-spacing: 2px;
  font-size: clamp(40px, 8vw, 96px);
  text-transform: uppercase;
  position: relative; display: inline-block;
  color: #e9f6ff; filter: drop-shadow(0 0 18px #00f7ff66);
}
.glitch::before, .glitch::after{
  content: attr(data-text); position: absolute; top: 0; left: 0;
  width: 100%; overflow: hidden;
}
.glitch::before{ left: 2px; text-shadow: -2px 0 #00f7ff; clip-path: inset(0 0 60% 0); animation: glitchTop 2.5s infinite steps(12); }
.glitch::after{ left: -2px; text-shadow: 2px 0 #ff2fd6; clip-path: inset(40% 0 0 0); animation: glitchBot 2.8s infinite steps(10); }
@keyframes glitchTop { 0%{clip-path: inset(0 0 70% 0)} 50%{clip-path: inset(0 0 20% 0)} 100%{clip-path: inset(0 0 70% 0)} }
@keyframes glitchBot { 0%{clip-path: inset(70% 0 0 0)} 50%{clip-path: inset(20% 0 0 0)} 100%{clip-path: inset(70% 0 0 0)} }

.subtitle{ color: var(--muted); max-width: 720px; margin: 12px auto 24px; font-size: clamp(16px, 2.4vw, 20px); }
.hero-stats{ display:flex; gap:8px; justify-content:center; flex-wrap: wrap; margin-top: 18px; }
.chip{ border:1px solid #ffffff1f; padding:8px 12px; border-radius: 999px; color:#cde7ff; }
.chip.glow{ box-shadow: 0 0 12px #00f7ff33 inset; border-color:#00f7ff66; }

.cta{ display:flex; gap:14px; justify-content:center; align-items:center; margin-top: 18px; }
.btn{
  display:inline-block; padding: 12px 18px; border-radius: 12px; text-decoration:none; cursor:pointer;
  border: 1px solid #ffffff1f; color: var(--text); background: #10131b; transition: .25s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-ghost{ background: transparent; border-color:#00f7ff55; color:#cfeeff; }
.btn-neon{
  background: linear-gradient(90deg, #00f7ff, #7a00ff, #ff2fd6);
  background-size: 200% 100%;
  color:#05070c; font-weight: 700; border: 0;
  box-shadow: 0 0 16px #00f7ff66, 0 0 24px #7a00ff55;
  animation: hueSlide 6s linear infinite;
}
.btn.full{ width:100%; }
@keyframes hueSlide { 0%{background-position: 0% 50%} 100%{background-position: 200% 50%} }

.scroll-indicator{ position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color:#a9c7ff; opacity:.8; font-size:14px; }
.scroll-indicator .mouse{
  width: 22px; height: 36px; margin: 8px auto 0; border:2px solid #7a9cff; border-radius: 14px; position: relative;
}
.scroll-indicator .mouse::after{
  content:""; position:absolute; top:6px; left:50%; transform: translateX(-50%); width:4px; height:6px; background:#7a9cff; border-radius:2px;
  animation: wheel 1.6s infinite;
}
@keyframes wheel { 0%{opacity:0; transform: translate(-50%, 0)} 50%{opacity:1; transform: translate(-50%, 8px)} 100%{opacity:0; transform: translate(-50%, 16px)} }

/* Grid helpers */
.grid{ display: grid; gap: 22px; }
.grid.two{ grid-template-columns: 1.2fr 1fr; }
.grid.three{ grid-template-columns: repeat(3, 1fr); }
.grid.four{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: linear-gradient(180deg, #0f1321, #0b0d15);
  border: 1px solid #ffffff12; border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
}
.card::before{
  content:""; position:absolute; inset: -1px; border-radius: inherit;
  padding: 1px;
  background: var(--glow);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rotateGlow 8s linear infinite;
  opacity:.5;
}
@keyframes rotateGlow { to{ transform: rotate(360deg) } }

/* Specs card */
.specs h3{ margin-top: 0; }
.spec-list{ list-style: none; padding: 0; margin:12px 0 0; }
.spec-list li{ display:flex; justify-content: space-between; padding:10px 0; border-bottom:1px dashed #ffffff1a; color:#c8e1ff; }
.spec-list li span{ color:#8fb0d6; }
.ring-deco{
  position: absolute; right:-40px; bottom:-40px; width: 160px; height:160px; border-radius: 50%;
  background: radial-gradient(closest-side, #00f7ff44, transparent 70%), conic-gradient(#7a00ff, #00f7ff, #ff2fd6, #7a00ff);
  filter: blur(6px); opacity:.6;
}

/* Team */
.member .avatar{
  width: 88px; height: 88px; border-radius: 14px; background:
  radial-gradient(circle at 30% 30%, #fff2, transparent 50%),
  linear-gradient(135deg, #00f7ff33, #7a00ff33),
  #0a0e19;
  border: 1px solid #00f7ff55;
  box-shadow: inset 0 0 30px #7a00ff22, 0 0 16px #00f7ff33;
  display:grid; place-items:center;
  font-weight: 800; color:#e9f6ff; margin-bottom: 10px;
}
.member .avatar::after{ content: attr(data-initials); font-family: "Orbitron"; }
.member h3{ margin: 6px 0 4px; }
.member p{ margin: 0 0 8px; color:#a9c7ff; }
.member .tags{ display:flex; gap:6px; flex-wrap: wrap; }
.member .tags span{ font-size: 12px; border:1px solid #ffffff1a; padding:4px 8px; border-radius:999px; color:#bfe1ff; }

/* Projects */
.project .icon{ width: 56px; height:56px; border-radius: 12px; display:grid; place-items:center; margin-bottom: 10px; background:#0c1220; border:1px solid #ffffff1a; }
.project .icon svg{ width:28px; height:28px; fill:none; stroke:#bfe1ff; stroke-width:2; }
.neon-ico{ box-shadow: 0 0 14px #00f7ff44; border-color:#00f7ff66; }
.project .labels{ display:flex; gap:8px; margin-top:8px; }
.project .labels span{ background:#12192b; color:#cfe7ff; border:1px solid #ffffff15; padding:4px 8px; border-radius:8px; font-size:12px; }

/* Gallery */
.gallery-grid{
  display:grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.gallery-grid .shot{
  aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; position: relative;
  background:
    radial-gradient(60% 40% at 60% 30%, #00f7ff22, transparent 60%),
    radial-gradient(50% 50% at 30% 70%, #7a00ff22, transparent 60%),
    linear-gradient(135deg, #0e1424, #0b0f1a);
  border:1px solid #ffffff10;
}
.gallery-grid .shot::after{
  content:""; position:absolute; inset:0; background:
    repeating-linear-gradient(90deg, #fff1 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, #fff1 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; opacity:.08;
}
.gallery-grid .shot:hover{ box-shadow: 0 0 18px #00f7ff33; transform: translateY(-2px); }
.muted{ color:#90a8c3; }
.center{ text-align:center; }

/* Sponsor ticker */
.ticker{ overflow: hidden; border:1px solid #ffffff12; border-radius: 14px; background:#0b0f19; }
.ticker-track{
  display:flex; gap: 24px; padding: 16px; width: max-content;
  animation: scrollX 18s linear infinite;
}
@keyframes scrollX { to{ transform: translateX(-50%) } }
.logo-slot{
  min-width: 160px; height: 60px; display:grid; place-items:center; border-radius: 12px;
  color:#cfe7ff; border:1px dashed #00f7ff66; background: #0d1221;
  box-shadow: inset 0 0 22px #7a00ff22;
}

/* Contact */
.contact-list{ list-style:none; padding:0; margin: 14px 0; }
.contact-list li{ display:flex; gap:10px; align-items:center; padding:6px 0; }
.contact-list li span{ width:70px; color:#8fb0d6; }
label{ display:block; margin-bottom: 12px; color:#cfe7ff; }
input, textarea{
  width:100%; padding: 12px 12px; border-radius: 10px; border:1px solid #ffffff1a; background:#0b0f18; color:#e9f6ff;
  outline: none;
}
input:focus, textarea:focus{ border-color:#00f7ff88; box-shadow: 0 0 0 3px #00f7ff22; }

/* Footer */
.site-footer{ border-top:1px solid #ffffff14; background:#090b10; padding: 32px 0 40px; }
.footer-grid{
  display:grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items:center;
}
.brand-mini{ font-family:"Orbitron"; font-weight: 800; }
.foot-links a{ color:#cfe7ff; margin-right: 14px; text-decoration:none; }
.foot-links a:hover{ text-decoration: underline; }
.socials{ display:flex; gap:12px; }
.ico{ display:inline-grid; place-items:center; width:36px; height:36px; border-radius:10px; border:1px solid #ffffff1a; background:#0b0f18; color:#cfe7ff; }
.ico:hover{ box-shadow: 0 0 14px #00f7ff33; border-color:#00f7ff66; }
.link.neon{ color:#8fdcff; text-decoration: none; border-bottom:1px dashed #00f7ff88; }
.link.neon:hover{ color:#bfe7ff; }

/* BG canvas + scanlines */
#bg{
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1000px 600px at 10% 0%, #121834 0%, transparent 70%),
    radial-gradient(1200px 700px at 100% 100%, #101531 0%, transparent 70%);
}
.scanlines{
  pointer-events:none; position: fixed; inset: 0; z-index: 1;
  background: repeating-linear-gradient(#0000, #0000 2px, #00000040 3px);
  mix-blend-mode: overlay; opacity:.2;
}

/* LED Strips */
.led-strip{
  position: fixed; top: 0; bottom: 0; width: 10px; z-index: 40; opacity:.8;
  background:
    radial-gradient(circle at 50% 0%, #00f7ff 1px, transparent 3px) 0 0/10px 22px,
    radial-gradient(circle at 50% 0%, #7a00ff 1px, transparent 3px) 0 11px/10px 22px;
  filter: drop-shadow(0 0 8px #00f7ff88);
}
.led-left{ left: 8px; }
.led-right{ right: 8px; }

/* Titles */
.title{
  font-family:"Orbitron"; font-size: clamp(24px, 5.2vw, 36px); margin: 0 0 18px;
}
.title.neon{ text-shadow: 0 0 18px #00f7ff55, 0 0 28px #7a00ff33; }

/* Tilters & reveal */
.tilt{ transform-style: preserve-3d; transition: transform .2s ease; }
.in-view{ opacity: 0; transform: translateY(10px); }
.in-view.show{ opacity:1; transform: translateY(0); transition: .6s ease; }

/* Buttons states */
.btn:active{ transform: translateY(0); }

/* Preloader */
#preloader{
  position: fixed; inset: 0; display:grid; place-items:center; background: #07080c; z-index: 100; transition: .6s ease;
}
#preloader.hidden{ opacity: 0; visibility: hidden; }
.preloader-ring{
  position: relative; width: 160px; height:160px; border-radius: 50%;
  background: conic-gradient(from 0deg, #00f7ff, #7a00ff, #ff2fd6, #00f7ff);
  animation: spin 2.8s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 58px, #000 59px);
  mask: radial-gradient(circle, transparent 58px, #000 59px);
  box-shadow: 0 0 60px #00f7ff55;
}
.preloader-text{
  position: absolute; inset: 0; display:grid; place-items:center; color:#cfe7ff; letter-spacing:2px; font-family:"Orbitron"; font-weight:700;
  text-shadow: 0 0 10px #00f7ff;
}
@keyframes spin { to{ transform: rotate(360deg) } }

/* Responsive */
@media (max-width: 920px){
  .grid.two{ grid-template-columns: 1fr; }
  .grid.three{ grid-template-columns: repeat(2, 1fr); }
  .grid.four{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; justify-items:center; text-align:center; gap: 10px; }
  .nav-toggle{ display: block; }
  .nav{ position: absolute; top: 64px; right: 0; left: 0; background: #0a0d16f0; border-bottom:1px solid #ffffff12; display:none; }
  .nav.open{ display:block; }
  .nav ul{ flex-direction: column; padding: 12px; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  .glitch::before, .glitch::after{ display: none; }
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px; /* Angoli arrotondati */
  margin-right: 8px;
  object-fit: cover;
  vertical-align: middle;
}
