/* ============================================================
   DESIGN SYSTEM & VARIABILI
   ============================================================ */
:root {
  --void:        #070f0c;
  --panel:       #0e1814;
  --panel-soft:  #12221c;
  --line:        #1b332b;

  --emerald-200: #a8f0c9;
  --emerald-300: #7ce8b0;
  --emerald-400: #3ddc84;
  --emerald-500: #14b571;
  --emerald-600: #0d8f5a;
  --emerald-700: #0a6b45;

  --wood:        #b9884f;
  --text-hi:     #eaf5ef;
  --text-mid:    #b7cdc3;
  --text-low:    #7c9188;

  --radius-block: 4px;
  --shadow-pixel: 6px 6px 0 rgba(0,0,0,0.4);
  --glow: 0 0 0 1px var(--emerald-500), 0 0 35px rgba(20,181,113,0.45);
}

*{ box-sizing:border-box; margin:0; padding:0; cursor: none !important; }
html{ scroll-behavior:smooth; scroll-padding-top: 90px; }

body{
  background:var(--void);
  color:var(--text-hi);
  font-family:'Inter', sans-serif;
  line-height:1.6;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:'Poppins', sans-serif;
  line-height:1.2;
  color:var(--text-hi);
}

a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }

::selection{ background:var(--emerald-600); color:var(--text-hi); }

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

.eyebrow-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--emerald-300);
  font-weight:600;
  font-size:0.85rem;
  letter-spacing:0.02em;
}

/* ============================================================
   CUSTOM CURSOR & SKIN STYLING
   ============================================================ */
.custom-paw-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  font-size: 24px;
  transform: translate(-30%, -30%);
  z-index: 100000;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.8));
}

.brand-skin-img, .footer-skin-img {
  width: 100%; height: 100%;
  image-rendering: pixelated;
  border-radius: 2px;
}

.hero-skin-render {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 16px rgba(20,181,113,0.35));
}

.member-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.member-skin-face {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-block);
  border: 2px solid var(--emerald-600);
  background: var(--void);
  image-rendering: pixelated;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* Doppie facce sfalsate Event Manager */
.dual-avatar-container {
  position: relative;
  width: 60px;
  height: 52px;
  flex-shrink: 0;
}

.dual-avatar-container .face-top {
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  z-index: 2;
}

.dual-avatar-container .face-bottom {
  position: absolute;
  bottom: 0; right: 0;
  width: 38px; height: 38px;
  z-index: 1;
  border-color: var(--emerald-400);
}

.member-skin-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
}

.member-skin-links a {
  color: var(--emerald-300);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.member-skin-links a:hover {
  color: var(--emerald-400);
  text-decoration: underline;
}

/* Animazione Capy-click popup */
.capy-click-popup {
  position: fixed;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--emerald-300);
  text-shadow: 0 3px 12px rgba(0,0,0,0.9);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  animation: capyClickAnimation 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  z-index: 100001;
}

@keyframes capyClickAnimation {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot-start)) scale(0.4); }
  40% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot-mid)) scale(1.15) translateY(-25px); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot-end)) scale(1) translateY(-60px); }
}

/* ============================================================
   HOTBAR / NAVBAR
   ============================================================ */
.navbar{
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000;
  background: rgba(7, 15, 12, 0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px; max-width:1180px; margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; font-family:'Poppins', sans-serif; font-weight:800; font-size:1.3rem; }
.brand-mark{
  width:38px; height:38px; background:linear-gradient(145deg, var(--emerald-400), var(--emerald-700));
  border-radius:var(--radius-block); display:flex; align-items:center; justify-content:center;
  box-shadow:2px 2px 0 rgba(0,0,0,0.4); padding:4px;
}
.brand-text{ background:linear-gradient(90deg, var(--text-hi), var(--emerald-300)); -webkit-background-clip:text; color:transparent; }

.nav-links{ display:flex; align-items:center; gap:28px; }
.nav-links a{ font-weight:500; font-size:0.92rem; color:var(--text-mid); position:relative; }
.nav-links a:hover{ color:var(--text-hi); }
.nav-cta-wrap{ display:flex; align-items:center; gap:14px; }
.nav-toggle{ display:none; background:none; border:none; color:var(--text-hi); font-size:1.4rem; cursor:pointer; }

.btn{
  display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:0.92rem;
  padding:11px 20px; border-radius:var(--radius-block); border:2px solid transparent; transition:0.2s;
}
.btn-primary{ background:var(--emerald-500); color:#06140d; box-shadow:var(--shadow-pixel); }
.btn-primary:hover{ background:var(--emerald-400); transform:translate(-2px,-2px); }
.btn-outline{ background:transparent; border-color:var(--emerald-600); color:var(--emerald-300); }
.btn-small{ padding:8px 14px; font-size:0.82rem; }

/* HERO & PARTICLE FIELD */
.hero{ position:relative; padding:150px 0 100px; overflow:hidden; }
.voxel-field{
  position:absolute; inset:-50px;
  background-image:linear-gradient(rgba(20,181,113,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,181,113,0.06) 1px, transparent 1px);
  background-size:40px 40px; pointer-events:none;
}
.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.bg-particle {
  position: absolute;
  background: var(--emerald-400);
  opacity: 0.6;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--emerald-300);
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0; }
  20% { opacity: 0.8; }
  50% { transform: translateY(-100px) translateX(25px) scale(1.3); opacity: 0.3; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-200px) translateX(-15px) scale(0.7); opacity: 0; }
}

.hero-grid{ position:relative; z-index:2; display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center; }
.hero-copy h1{ font-size:clamp(2.3rem, 4.4vw, 3.5rem); font-weight:800; margin:16px 0 20px; }
.hero-copy h1 em{ font-style:normal; color:var(--emerald-400); }
.hero-copy p{ color:var(--text-mid); font-size:1.06rem; max-width:520px; margin-bottom:32px; }

.server-ip-row{
  margin-top:26px; display:inline-flex; align-items:center; gap:10px;
  padding:10px 16px; background:var(--panel); border:1px dashed var(--line);
  border-radius:var(--radius-block); font-family:monospace; color:var(--emerald-300); font-size:0.9rem;
}
.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; }
.capy-voxel{
  position:relative; width:100%; max-width:320px; aspect-ratio:1/1;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius-block);
  display:flex; align-items:center; justify-content:center; padding:30px; box-shadow:var(--glow);
}
.capy-voxel .badge{
  position:absolute; bottom:-14px; left:-14px; background:var(--wood); color:#1a1109;
  font-weight:700; font-size:0.78rem; padding:7px 12px; border-radius:var(--radius-block);
}

.pixel-divider{
  height:20px; width:100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Crect x='0' y='10' width='10' height='10' fill='%230d8f5a'/%3E%3Crect x='10' y='0' width='10' height='20' fill='%230d8f5a'/%3E%3Crect x='20' y='10' width='10' height='10' fill='%230d8f5a'/%3E%3Crect x='30' y='5' width='10' height='15' fill='%230d8f5a'/%3E%3C/svg%3E");
  background-repeat:repeat-x; background-size:40px 20px; opacity:0.6;
}
.pixel-divider.flip{ transform:scaleY(-1); }

/* SEZIONI STANDARD & SCROLL REVEAL ANIMATIONS */
.section{ padding:90px 0; position:relative; }
.section-alt{ background:var(--panel-soft); }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(1.8rem, 3.1vw, 2.4rem); margin-top:10px; }
.section-head p{ color:var(--text-mid); margin-top:12px; }

/* SCROLL REVEAL CONFIG */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Timeline (Storia) */
.timeline-container{ position:relative; max-width:800px; margin:0 auto; padding-left:30px; border-left:2px dashed var(--emerald-600); }
.timeline-item{ position:relative; margin-bottom:36px; padding-left:20px; }
.timeline-dot{ position:absolute; left:-39px; top:4px; width:16px; height:16px; background:var(--emerald-400); border:3px solid var(--void); border-radius:50%; }
.timeline-content{ background:var(--panel); border:1px solid var(--line); padding:24px; border-radius:var(--radius-block); transition:0.3s; }
.timeline-content:hover { border-color: var(--emerald-500); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
.timeline-date{ display:inline-block; font-size:0.75rem; font-weight:700; color:var(--emerald-300); background:rgba(20,181,113,0.12); padding:3px 8px; border-radius:var(--radius-block); margin-bottom:8px; }

/* Features & Staff */
.features-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:24px; }
.feature-card{ background:var(--panel); border:1px solid var(--line); padding:28px 24px; border-radius:var(--radius-block); transition:0.3s; position: relative; }
.feature-card:hover, .staff-card:hover{ border-color:var(--emerald-400); transform:translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(20,181,113,0.2); }
.feature-card.landmark::before{ content:'Build simbolo'; position:absolute; top:0; right:0; background:var(--emerald-500); color:#06140d; font-size:0.68rem; font-weight:700; padding:4px 10px; border-bottom-left-radius: var(--radius-block); }
.feature-icon{ width:50px; height:50px; border-radius:var(--radius-block); background:rgba(20,181,113,0.15); border:1px solid var(--emerald-700); display:flex; align-items:center; justify-content:center; color:var(--emerald-300); margin-bottom:18px; }
.palette-strip{ display:flex; gap:4px; margin-bottom:16px; }
.palette-strip span{ width:16px; height:16px; border-radius:2px; }
.staff-card.chief{ border-color:var(--emerald-500); box-shadow:0 0 25px rgba(20,181,113,0.2); }
.staff-tag{ display:inline-block; font-size:0.72rem; font-weight:700; color:var(--emerald-300); background:rgba(20,181,113,0.12); padding:3px 9px; border-radius:var(--radius-block); margin-bottom:4px; }

/* CTA */
.cta-box{
  position:relative; background:linear-gradient(135deg, var(--panel), #0c1a15 70%);
  border:1px solid var(--emerald-700); border-radius:var(--radius-block); padding:70px 40px; text-align:center; overflow:hidden;
}
.cta-watermark-skin{ position:absolute; right:-20px; bottom:-30px; width:160px; opacity:0.12; image-rendering: pixelated; pointer-events:none; }
.cta-box h2{ font-size:clamp(1.8rem, 3.4vw, 2.6rem); position:relative; z-index:2; }
.cta-box p{ color:var(--text-mid); max-width:520px; margin:16px auto 32px; position:relative; z-index:2; }
.cta-actions{ display:flex; justify-content:center; gap:16px; position:relative; z-index:2; }

/* FOOTER */
<footer>{ border-top:1px solid var(--line); padding:40px 0; }
.footer-inner{ display:flex; justify-content:center; align-items:center; }
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:'Poppins', sans-serif; font-weight:700; color:var(--text-mid); }
.footer-brand .brand-mark{ width:26px; height:26px; padding:2px; }
.footer-legal{ text-align:center; color:var(--text-low); font-size:0.82rem; margin-top:20px; }
.footer-legal a{ color:var(--emerald-300); }

/* Snackbar */
.wip-snackbar{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%, 30px);
  background:var(--panel); border:1px solid var(--emerald-600); color:var(--text-hi);
  padding:13px 22px; border-radius:var(--radius-block); font-size:0.9rem; font-weight:600;
  display:flex; align-items:center; gap:10px; z-index:1100; opacity:0; pointer-events:none; transition:0.3s;
}
.wip-snackbar.show{ opacity:1; transform:translate(-50%, 0); }

@media (max-width: 760px){
  .nav-links{ display:none; }
  .navbar.open .nav-links{ display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column; background:var(--panel); padding:10px 24px 20px; }
  .nav-toggle{ display:block; }
  .hero-grid{ grid-template-columns:1fr; }
}