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

:root {
  --bg:           #040d1a;
  --bg2:          #071428;
  --bg3:          #0a1e3d;
  --white:        #f0f6ff;
  --blue:         #d8eaff;
  --blue-dim:     rgba(216,234,255,0.20);
  --blue-glow:    rgba(216,234,255,0.30);
  --muted:        #6b8ab0;
  --glass:        rgba(216,234,255,0.06);
  --glass-border: rgba(216,234,255,0.22);
  --serif:        'Cormorant Garamond', Georgia, serif;
  --mono:         'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--serif);
  overflow-x: hidden;
}


#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 4rem;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: rgba(4,13,26,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 32px rgba(0,0,0,0.4);
  border-radius: 0 0 24px 24px;
  transition: background .3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.8rem;
  text-decoration: none; z-index: 1;
}
.nav-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px;}
.nav-logo-text {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 300;
  letter-spacing: 0.2em; color: var(--white); text-transform: lowercase;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none;}
.nav-links a {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 300;
  letter-spacing: 0.2em; color: var(--muted); text-decoration: none;
  text-transform: uppercase; transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--blue); transition: width .4s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 200;
}
.hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--white); transition: transform .35s, opacity .35s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* HERO */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; z-index: 1;
  text-align: center; padding: 0 2rem;
}
#three-container {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
#hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at center, rgba(4,13,26,0.35) 0%, rgba(4,13,26,0.1) 60%, transparent 100%);
  pointer-events: none;
}
#hero > *:not(#three-container) { position: relative; z-index: 3; }

.hero-eyebrow {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.4em; color: var(--blue);
  text-transform: uppercase; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 1s 0.5s forwards;
}
.hero-title {
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 300; font-style: italic;
  line-height: 0.88; letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 0 0 80px rgba(216,234,255,0.3), 0 2px 40px rgba(4,13,26,0.7);
  opacity: 0; animation: fadeUp 1.2s 0.8s forwards;
}
.hero-sub {
  font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.18em; color: var(--white);
  max-width: 420px; line-height: 2.2; margin-bottom: 3.5rem;
  text-shadow: 0 1px 12px rgba(4,13,26,0.9);
  opacity: 0; animation: fadeUp 1s 1.2s forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 1.2rem;
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.3em; color: var(--white);
  text-decoration: none; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  position: relative; overflow: hidden;
  opacity: 0; animation: fadeUp 1s 1.6s forwards;
  transition: border-color .4s, color .4s, background .4s;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(216,234,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 32px rgba(0,0,0,0.35);
}
.hero-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--blue); transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.77,0,.18,1); z-index: -1;
}
.hero-cta:hover { color: var(--bg); border-color: var(--blue); }
.hero-cta:hover::before { transform: scaleX(1); }
.hero-cta .arrow { font-size: 1rem; transition: transform .3s; }
.hero-cta:hover .arrow { transform: translateX(4px); }

.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.6rem;
  opacity: 0; animation: fadeIn 1s 2.2s forwards;
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s infinite;
  border-radius: 50px;
}
.scroll-text {
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.3em; color: var(--white); opacity: 0.6;
  text-transform: uppercase; writing-mode: vertical-rl;
}

/* STRIP */
.strip {
  position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,0.09);
  overflow: hidden; padding: 1rem 0;
  background: rgba(216,234,255,0.04);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-radius: 0px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
  width: 100%;
}
.strip-inner {
  display: flex; gap: 3rem; white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}
.strip-inner .dot { color: var(--blue); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTIONS */
section { position: relative; z-index: 1; padding: 10rem 4rem; }
.section-label {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.4em; color: var(--blue);
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300; line-height: 1.1; margin-bottom: 3.5rem;
}
.section-title em { font-style: italic; color: var(--blue); }

/* ABOUT */
#about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.about-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300; line-height: 1.1; margin-bottom: 2rem;
}
.about-title em { font-style: italic; color: var(--blue); }
.about-text {
  font-family: var(--mono); font-size: 0.72rem;
  line-height: 2; color: var(--muted); margin-bottom: 1.5rem;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-card {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(216,234,255,0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.09) inset, 0 8px 24px rgba(0,0,0,0.3);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.stat-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(216,234,255,0.09); box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 16px 40px rgba(0,0,0,0.4); }
.stat-card-accent { border-color: var(--blue); background: rgba(216,234,255,0.12); }
.stat-num { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; font-style: italic; color: var(--blue); }
.stat-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

/* HOW */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.how-card { background: rgba(7,20,40,0.5); border: 1px solid rgba(255,255,255,0.08); padding: 2.5rem 2rem; border-radius: 20px; backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 20px rgba(0,0,0,0.35); transition: border-color .4s, transform .4s, box-shadow .4s; }
.how-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 20px 50px rgba(0,0,0,0.5); transition: 0.5s; }
.how-icon { width: 48px; height: 48px; color: var(--blue); margin-bottom: 1.5rem; border-radius: 12px; }
.how-num { font-family: var(--mono); font-size: 0.58rem; color: var(--blue); letter-spacing: 0.25em; margin-bottom: 1rem; display: block; }
.how-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; margin-bottom: 1rem; color: var(--white); }
.how-desc { font-family: var(--mono); font-size: 0.65rem; line-height: 2; color: var(--muted); }
.how-desc strong { color: var(--white); font-weight: 400; }

/* FORMULE */
.formule-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 1.5rem; }
.formula-card { border: 1px solid rgba(255,255,255,0.08); padding: 3rem 2.5rem; border-radius: 20px; backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 24px rgba(0,0,0,0.35); transition: box-shadow .4s, border-color .4s; }
.formula-card-light { background: rgba(216,234,255,0.04); border-radius: 20px; }
.formula-card-dark { background: rgba(8,20,45,0.6); border-color: rgba(255,255,255,0.10); border-radius: 20px; }
.formula-card-feature { background: var(--bg2); border-radius: 20px;}
.formula-badge { display: inline-block; font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--blue-dim); padding: 0.3rem 0.8rem; margin-bottom: 1.2rem; border-radius: 50px; }
.formula-badge-accent { color: var(--white); border-color: var(--blue); }
.formula-name { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; font-style: italic; margin-bottom: 1rem; }
.formula-desc { font-family: var(--mono); font-size: 0.67rem; line-height: 2; color: var(--muted); margin-bottom: 1.5rem; }
.formula-detail { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.6rem; padding: 0.6rem 0; border-top: 1px solid var(--glass-border); color: var(--muted); }
.formula-detail span:last-child { color: var(--white); }
.conditions-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; margin-top: 1.5rem; }
.conditions-grid span { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; color: var(--blue); border: 1px solid var(--blue-dim); padding: 0.4rem 0.6rem; text-align: center; text-transform: uppercase; border-radius: 8px; }

/* COMPARISON */
.comparison-table { border: 1px solid rgba(255,255,255,0.08); overflow: hidden; border-radius: 20px; backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset, 0 8px 30px rgba(0,0,0,0.4); }
.comp-header, .comp-row { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr; border-bottom: 1px solid var(--glass-border); }
.comp-row:last-child { border-bottom: none; }
.comp-header { background: rgba(216,234,255,0.08); }
.comp-row:hover { background: rgba(216,234,255,0.04); }
.comp-feature-col, .comp-col { padding: 1rem 1.2rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; display: flex; align-items: center; border-right: 1px solid var(--glass-border); }
.comp-feature-col:last-child, .comp-col:last-child { border-right: none; }
.comp-col { justify-content: center; color: var(--muted); }
.comp-col-highlight { background: rgba(216,234,255,0.1); }
.comp-header .comp-col { color: var(--white); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; }
.comp-header .comp-col-highlight { color: var(--blue); }
.comp-yes { color: var(--blue); font-size: 1rem; }
.comp-no { color: rgba(96, 96, 211, 0.884); font-size: 1rem; }
.comp-partial { color: var(--muted); font-size: 1rem; }

/* MARKET */
.market-grid { display: flex; flex-direction: column; gap: 1.8rem; }
.market-bar { background: rgba(216,234,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 1.4rem 1.8rem; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset; }
.market-bar-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.market-bar-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 300; }
.market-bar-value { font-family: var(--mono); font-size: 0.8rem; color: var(--blue); letter-spacing: 0.1em; }
.market-bar-track { height: 4px; background: rgba(216,234,255,0.12); margin-bottom: 0.5rem; border-radius: 50px; overflow: hidden; }
.market-bar-fill { height: 100%; background: linear-gradient(to right, var(--blue), rgba(216,234,255,0.4)); transition: width 1.2s cubic-bezier(.77,0,.18,1); width: 0%; border-radius: 50px; }
.market-bar-detail { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.1em; }
.market-total { border-top: 1px solid var(--glass-border); padding-top: 1.5rem; margin-top: 0.5rem; display: flex; justify-content: space-between; align-items: baseline; }
.market-total-label { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.market-total-value { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; font-style: italic; color: var(--blue); }

/* ═══════════════════════════════════════
   DISTRIBUZIONE — 4 cerchi, 4 stili unici
═══════════════════════════════════════ */
.distrib-circles {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 3rem;
}
.distrib-circle-item {
  flex-shrink: 0;
  width: 265px;
  margin-right: -58px;
  position: relative;
  z-index: 1;
  transition: z-index 0s;
}
.distrib-circle-item:last-child { margin-right: 0; }
.distrib-circle-item:hover { z-index: 10; }

.distrib-circle {
  width: 265px; height: 265px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0,0,0,.6);
}

/* shared text layout */
.dc-num {
  font-family: var(--mono); font-size: .5rem;
  letter-spacing: .3em; color: var(--blue);
  opacity: .55; margin-bottom: .5rem; display: block;
  text-transform: uppercase;
}
.dc1-content h3, .dc2-content h3, .dc3-content h3, .dc4-content h3 {
  font-family: var(--serif); font-size: 1.05rem;
  font-weight: 300; color: var(--white);
  margin-bottom: .5rem; line-height: 1.3;
}
.dc1-content p, .dc2-content p, .dc3-content p, .dc4-content p {
  font-family: var(--mono); font-size: .56rem;
  line-height: 1.75; color: var(--muted);
}
.dc1-content strong, .dc2-content strong,
.dc3-content strong, .dc4-content strong {
  color: var(--white); font-weight: 400;
}

/* ─── CARD 01 — Pulse rings + dark matte ─── */
.dc-1 {
  background: radial-gradient(ellipse at 40% 40%, rgba(13,31,60,0.65), rgba(4,13,26,0.7));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50% !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset;
  transition: border-color .5s, box-shadow .5s;
}
.dc-item-1:hover .dc-1 {
  border-color: rgba(216,234,255,.45);
  box-shadow: 0 0 60px rgba(216,234,255,.12), 0 20px 60px rgba(0,0,0,.7);
}
.dc1-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.dc1-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(216,234,255,.12);
  animation: dc1pulse 3.2s ease-out infinite;
}
.r1 { width: 80px;  height: 80px;  animation-delay: 0s; }
.r2 { width: 140px; height: 140px; animation-delay: .9s; }
.r3 { width: 210px; height: 210px; animation-delay: 1.8s; }
@keyframes dc1pulse {
  0%   { opacity: .5; transform: scale(.85); }
  60%  { opacity: .12; }
  100% { opacity: 0;  transform: scale(1.08); }
}
.dc1-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(216,234,255,.018) 3px, rgba(216,234,255,.018) 4px
  );
}
.dc1-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.6rem;
}
.dc1-icon {
  width: 44px; height: 44px; margin-bottom: .9rem;
  opacity: .7; transition: opacity .4s, transform .4s;
}
.dc-item-1:hover .dc1-icon { opacity: 1; transform: translateY(-3px); }

/* ─── CARD 02 — Split diagonal + wipe reveal ─── */
.dc-2 {
  background: rgba(7,20,40,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.09) inset;
  transition: border-color .4s;
}
.dc-item-2:hover .dc-2 { border-color: rgba(216,234,255,.4); }
.dc2-half-a {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(216,234,255,.07) 0%, transparent 55%);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
  transition: clip-path .5s cubic-bezier(.77,0,.18,1), opacity .4s;
  opacity: .6;
}
.dc2-half-b {
  position: absolute; inset: 0;
  background: linear-gradient(315deg, rgba(216,234,255,.04) 0%, transparent 55%);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
  opacity: 0;
  transition: opacity .5s .1s;
}
.dc-item-2:hover .dc2-half-a {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: .12;
}
.dc-item-2:hover .dc2-half-b { opacity: 1; }
.dc2-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.6rem;
}
.dc2-icon {
  width: 44px; height: 44px; margin-bottom: .9rem;
  opacity: .65; transition: opacity .4s;
  transform: rotate(-5deg);
  transition: opacity .4s, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.dc-item-2:hover .dc2-icon { opacity: 1; transform: rotate(0deg) scale(1.1); }

/* ─── CARD 03 — Blueprint grid + border draw ─── */
.dc-3 {
  background: linear-gradient(160deg, rgba(5,15,34,0.6) 0%, rgba(9,24,48,0.65) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.09) inset;
  transition: box-shadow .4s;
}
.dc-item-3:hover .dc-3 {
  box-shadow: 0 0 0 1px rgba(216,234,255,.3), 0 20px 50px rgba(0,0,0,.7);
}
.dc3-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(216,234,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,234,255,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0; transition: opacity .5s;
}
.dc-item-3:hover .dc3-grid { opacity: 1; }
.dc3-border-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.dc3-border-path {
  transition: stroke-dashoffset 1s cubic-bezier(.77,0,.18,1);
}
.dc-item-3:hover .dc3-border-path { stroke-dashoffset: 0; }
.dc3-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.6rem;
}
.dc3-icon {
  width: 44px; height: 44px; margin-bottom: .9rem;
  opacity: .6;
  transition: opacity .4s, filter .4s;
}
.dc-item-3:hover .dc3-icon {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(216,234,255,.4));
}

/* ─── CARD 04 — Frosted glass + shimmer sweep ─── */
.dc-4 {
  background: rgba(12, 24, 50, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(216,234,255,.22);
  transition: border-color .4s, transform .5s cubic-bezier(.34,1.3,.64,1), box-shadow .4s;
}
.dc-item-4:hover .dc-4 {
  border-color: rgba(216,234,255,.5);
  transform: perspective(600px) rotateY(-6deg) rotateX(3deg);
  box-shadow: 8px 20px 60px rgba(0,0,0,.7), 0 0 40px rgba(216,234,255,.08);
}
.dc4-shimmer {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 30%, rgba(216,234,255,.08) 50%, transparent 70%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .3s;
  animation: none;
}
.dc-item-4:hover .dc4-shimmer {
  opacity: 1;
  animation: dc4sweep 1.2s ease forwards;
}
@keyframes dc4sweep {
  from { background-position: 200% 0; }
  to   { background-position: -100% 0; }
}
.dc4-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(216,234,255,.12) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0; transition: opacity .5s;
}
.dc-item-4:hover .dc4-dots { opacity: 1; }
.dc4-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.6rem;
}
.dc4-icon {
  width: 44px; height: 44px; margin-bottom: .9rem;
  opacity: .65;
  transition: opacity .4s, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.dc-item-4:hover .dc4-icon {
  opacity: 1; transform: scale(1.15) translateY(-2px);
}

/* PATENT */
#patent { background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.patent-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.patent-title { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.5rem; }
.patent-title em { font-style: italic; color: var(--blue); }
.patent-desc { font-family: var(--mono); font-size: 0.72rem; line-height: 2; color: var(--muted); margin-bottom: 2rem; }
.patent-desc strong { color: var(--white); font-weight: 400; }
.patent-badges { display: flex; flex-direction: column; gap: 1rem; }
.patent-badge { display: flex; gap: 2rem; align-items: baseline; padding: 0.8rem 1.2rem; border-left: 2px solid var(--blue); background: rgba(216,234,255,0.05); border-radius: 12px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset; }
.pb-label { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--blue); min-width: 100px; }
.pb-value { font-family: var(--mono); font-size: 0.72rem; color: var(--white); letter-spacing: 0.08em; }
.patent-visual { display: flex; align-items: center; justify-content: center; }
.patent-circle { width: 280px; height: 280px; border: 1px solid rgba(216,234,255,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 0 80px rgba(216,234,255,0.15), inset 0 0 60px rgba(216,234,255,0.05); }
.patent-circle::before { content: ''; position: absolute; width: 240px; height: 240px; border: 1px dashed rgba(216,234,255,0.25); border-radius: 50%; animation: spinSlow 20s linear infinite; }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.patent-circle-text { text-align: center; }
.pc-top { display: block; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.3rem; }
.pc-mid { display: block; font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.pc-sub { display: block; font-family: var(--serif); font-size: 1.1rem; font-style: italic; font-weight: 300; color: var(--white); }

/* TEAM */
/* ── TEAM CAROUSEL ── */
.team-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tc-viewport {
  flex: 1;
  overflow: hidden;
}

.tc-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .5s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}

/* Card width = (viewport - 2 gaps) / 3  — set via JS */
.tc-track .team-card {
  flex-shrink: 0;
  /* width set dynamically via JS */
}

/* Arrows */
.tc-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(216,234,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.tc-arrow:hover {
  background: rgba(216,234,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: scale(1.08);
}
.tc-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}
.tc-arrow svg { width: 18px; height: 18px; }

/* Dots */
.tc-dots {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: 2rem;
}
.tc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(216,234,255,0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s;
}
.tc-dot.active {
  background: var(--blue);
  transform: scale(1.4);
}

/* legacy – keep for mobile fallback reference */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { border: 1px solid rgba(255,255,255,0.08); background: rgba(216,234,255,0.035); padding: 2.5rem 2rem; border-radius: 20px; backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 20px rgba(0,0,0,0.35); transition: border-color .4s, transform .4s, box-shadow .4s; }
.team-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 20px 48px rgba(0,0,0,0.5); }
.team-avatar { width: 52px; height: 52px; border: 1px solid var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.7rem; color: var(--blue); margin-bottom: 1.2rem; }
.team-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 300; margin-bottom: 0.3rem; }
.team-role { display: block; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.team-bio { font-family: var(--mono); font-size: 0.65rem; line-height: 2; color: var(--muted); }

/* FOOTER */
footer { position: relative; z-index: 1; padding: 3rem 4rem; border-top: 1px solid var(--glass-border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand img { width: 28px; height: 28px; object-fit: contain; }
.footer-brand span { font-family: var(--serif); font-size: 1.1rem; font-weight: 300; color: var(--white); letter-spacing: 0.1em; }
.footer-text { font-family: var(--mono); font-size: 0.58rem; color: var(--muted); letter-spacing: 0.15em; }
.footer-patent { font-family: var(--mono); font-size: 0.58rem; color: var(--blue); letter-spacing: 0.12em; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* MOBILE */
@media (max-width: 1024px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .distrib-circles { flex-wrap: wrap; justify-content: center; } .distrib-circle-item { margin-right: -30px; }
  .formule-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {

  nav { padding: 1.2rem 1.5rem; }
  .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(4,13,26,0.98);
    backdrop-filter: blur(16px);
    padding: 7rem 2rem 3rem;
    gap: 2rem; list-style: none;
    transform: translateY(-100%);
    transition: transform .4s cubic-bezier(.77,0,.18,1);
    z-index: 150;
    border-radius: 0 0 28px 28px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; }
  .hamburger { display: flex; }
  section { padding: 5rem 1.5rem; }
  #about { grid-template-columns: 1fr; gap: 3rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .distrib-circles { flex-direction: column; align-items: center; } .distrib-circle-item { margin-right: 0; margin-bottom: -40px; }
  .team-grid { grid-template-columns: 1fr; }
  .patent-inner { grid-template-columns: 1fr; gap: 3rem; }
  .patent-visual { display: none; }
  .comp-header, .comp-row { grid-template-columns: 1.6fr 0.9fr 0.9fr; }
  .comp-col:nth-child(4), .comp-col:nth-child(5) { display: none; }
  .comp-feature-col, .comp-col { padding: 0.85rem 0.7rem; font-size: 0.58rem; letter-spacing: 0.04em; }
  .comp-header .comp-col { font-size: 0.52rem; letter-spacing: 0.08em; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  footer { padding: 2rem 1.5rem; }
}

/* ═══════════════════════════════════════
   WIP — Work In Progress
═══════════════════════════════════════ */

/* Top banner fisso */
.wip-banner {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  height: 32px;
  background: rgba(4,13,26,0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(216,234,255,0.12);
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  overflow: hidden;
}
.wip-banner-track {
  display: flex; gap: 4rem; white-space: nowrap;
  animation: wip-scroll 28s linear infinite;
  font-family: var(--mono); font-size: 0.5rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--muted);
}
.wip-banner-track span { color: var(--blue); opacity: .7; }
@keyframes wip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Nav scende sotto il banner */
#main-nav { top: 32px; }

/* Nav badge "Beta" */
.nav-wip-badge {
  font-family: var(--mono); font-size: 0.45rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bg); background: var(--blue);
  padding: 0.2rem 0.55rem; border-radius: 50px;
  opacity: 0.85; margin-left: 0.6rem;
  animation: wip-pulse 2.8s ease-in-out infinite;
}
@keyframes wip-pulse {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0.4; }
}

/* Hero WIP overlay — striscia diagonale in basso */
.wip-hero-tag {
  position: absolute;
  bottom: 6rem; right: -4rem;
  z-index: 4;
  background: rgba(216,234,255,0.06);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 0.9rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  transform: rotate(-2deg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.09) inset, 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0; animation: fadeUp 1s 2.5s forwards;
}
.wip-hero-tag-label {
  font-family: var(--mono); font-size: 0.45rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--blue); opacity: .6;
}
.wip-hero-tag-value {
  font-family: var(--serif); font-size: 1rem;
  font-style: italic; font-weight: 300; color: var(--white);
}
.wip-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--blue);
  margin-right: 0.4rem; opacity: 0.7;
  animation: wip-pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}

/* Sezione WIP tape — alcune sezioni hanno un watermark */
.wip-section-tape {
  position: absolute; top: 3rem; right: 4rem;
  font-family: var(--mono); font-size: 0.48rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(216,234,255,0.12);
  border-radius: 50px; padding: 0.3rem 0.8rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(216,234,255,0.03);
  z-index: 2;
}

/* Progress bar sul fondo della pagina — simula "completamento" */
.wip-progress-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 300;
  height: 2px;
  background: rgba(216,234,255,0.06);
}
.wip-progress-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(to right, transparent, var(--blue), rgba(216,234,255,0.6));
  border-radius: 0 50px 50px 0;
  position: relative;
}
.wip-progress-fill::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: wip-pulse 1.4s ease-in-out infinite;
}
.wip-progress-label {
  position: fixed; bottom: 8px; right: 1.5rem;
  font-family: var(--mono); font-size: 0.45rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); z-index: 300;
}

/* Sezione "fantasma" — placeholder per pagine future */
.wip-placeholder-section {
  position: relative; z-index: 1;
  padding: 5rem 4rem;
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
}
.wip-placeholder-inner {
  max-width: 500px; text-align: center;
  border: 1px dashed rgba(216,234,255,0.14);
  border-radius: 20px; padding: 3rem 2rem;
  background: rgba(216,234,255,0.02);
}
.wip-placeholder-icon {
  font-size: 1.8rem; margin-bottom: 1rem; opacity: 0.4;
}
.wip-placeholder-title {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem;
}
.wip-placeholder-sub {
  font-family: var(--serif); font-size: 1.2rem;
  font-style: italic; font-weight: 300; color: var(--white);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .wip-hero-tag { display: none; }
  .wip-section-tape { right: 1.5rem; top: 1.5rem; }
  .wip-progress-label { display: none; }
}

/* ═══════════════════════════════════════
   CODICE ETICO & PRIVACY
═══════════════════════════════════════ */
#etica-privacy { background: var(--bg2); }

.ethics-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ethics-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(216,234,255,0.03);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 30px rgba(0,0,0,0.35);
}

.ethics-card-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.6rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(216,234,255,0.03);
}
.ethics-card-num {
  font-family: var(--mono); font-size: 0.52rem;
  letter-spacing: 0.25em; color: var(--blue); opacity: .55;
  flex-shrink: 0;
}
.ethics-card-title {
  font-family: var(--serif); font-size: 1.3rem;
  font-weight: 300; color: var(--white); flex: 1;
}
.ethics-wip-tag {
  font-family: var(--mono); font-size: 0.45rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(216,234,255,0.12);
  border-radius: 50px; padding: 0.25rem 0.7rem;
  display: flex; align-items: center; gap: 0.35rem;
  white-space: nowrap;
  background: rgba(216,234,255,0.03);
}

.ethics-card-body { padding: 2.5rem 2rem; min-height: 200px; }

.ethics-placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(216,234,255,0.10);
  margin: 0;
  min-height: 200px;
  background: rgba(216,234,255,0.015);
}
.ethics-placeholder-text {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: white; opacity: 0.5;
  text-align: center;
}

@media (max-width: 768px) {
  .ethics-grid { grid-template-columns: 1fr; }
}

/* ── Mobile: team card compatte (no bio, altezza fissa) ── */
@media (max-width: 640px) {
  .team-carousel-wrap { gap: 0.5rem; }

  .tc-track .team-card {
    padding: 1.4rem 1rem 1.2rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .tc-track .team-bio {
    display: none;
  }

  .tc-track .team-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.65rem;
    margin-bottom: 0.8rem;
  }

  .tc-track .team-name {
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 0.3rem;
  }

  .tc-track .team-role {
    font-size: 0.5rem;
    letter-spacing: 0.15em;
    margin-bottom: 0;
  }

  .tc-arrow {
    width: 34px;
    height: 34px;
  }
}
