@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #05070d;
  --bg-2: #0b1020;
  --panel: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .1);
  --text: #e9edf5;
  --muted: #9aa4b8;
  /* colori presi dagli anelli del logo */
  --purple: #8b5cf6;
  --magenta: #e0408f;
  --blue: #22b8e6;
  --green: #84cc16;
  --yellow: #fcd34d;
  --grad: linear-gradient(100deg, var(--purple), var(--magenta) 30%, var(--blue) 60%, var(--green) 85%, var(--yellow));
  --radius: 20px;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Outfit", "Inter", sans-serif; font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
.grad { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; font-weight: 500; }
.lead { color: var(--muted); font-size: 19px; }

/* ---------- bottoni ---------- */
.btn {
  --b: var(--grad);
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 16px "Outfit", sans-serif; text-decoration: none; color: #fff;
  background: var(--b); background-size: 200% auto; transition: background-position .5s, transform .2s, box-shadow .3s;
  box-shadow: 0 8px 30px -10px rgba(139, 92, 246, .7);
}
.btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(34, 184, 230, .7); }
.btn-ghost { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-light { background: #fff; color: #0b1020; box-shadow: none; }
.btn-light:hover { background: #fff; box-shadow: 0 14px 40px -10px rgba(0,0,0,.5); }
.btn-small { padding: 10px 20px; font-size: 15px; }

/* ---------- effetti globali ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; }
.cursor-glow {
  position: fixed; width: 500px; height: 500px; left: 0; top: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(139, 92, 246, .14), transparent 60%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- navigazione ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); transition: background .3s, padding .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(5, 7, 13, .72); backdrop-filter: blur(14px) saturate(1.4); padding-block: 12px; border-bottom: 1px solid var(--line); }
/* Logo: SVG dal file vettoriale + payoff in Outfit, nella stessa posizione e larghezza del file originale.
   Il payoff misura 20.456em: con font-size = larghezza logo × 0.74 / 20.456 è largo esattamente quanto "Cloudpro". */
.brand { --lw: 440px; position: relative; display: block; width: var(--lw); text-decoration: none; transition: width .35s; }
.brand img { display: block; width: 100%; height: auto; }
.brand .payoff { position: absolute; left: 23.7%; bottom: 6.5%; font: 500 calc(var(--lw) * .03617)/1.1 "Outfit", sans-serif; color: #e9edf5; white-space: nowrap; transition: font-size .35s, opacity .3s; }
.nav.scrolled .brand { --lw: 230px; }
.nav.scrolled .brand .payoff { opacity: 0; }
.brand-footer { --lw: 320px; }
@media (max-width: 900px) { .brand { --lw: 340px; } }
@media (max-width: 560px) { .brand { --lw: 270px; } .nav.scrolled .brand { --lw: 200px; } .brand-footer { --lw: 280px; } }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.08); }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse at 50% 40%, rgba(5,7,13,.35), rgba(5,7,13,.85) 75%),
  linear-gradient(to bottom, rgba(5,7,13,.2), var(--bg)); }
.hero-content { text-align: center; padding: 190px var(--gutter) 80px; max-width: 1300px; }
.hero h1 { font-size: clamp(46px, 9vw, 116px); font-weight: 400; margin-bottom: 26px; }
.hero-rotator { font: 300 clamp(20px, 2.6vw, 30px) "Outfit", sans-serif; color: var(--muted); margin-bottom: 40px; }
.rotator { display: inline-block; position: relative; color: #fff; font-weight: 500; vertical-align: bottom; overflow: hidden; height: 1.3em; }
.rotator .word { display: inline-block; transition: transform .5s cubic-bezier(.7,0,.3,1), opacity .5s; }
.rotator .word.out { transform: translateY(-110%); opacity: 0; }
.rotator .word.in { transform: translateY(110%); opacity: 0; transition: none; }
.rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 20px 0; }
.ticker-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font: 400 clamp(20px, 2.4vw, 30px) "Outfit", sans-serif; white-space: nowrap; color: rgba(255,255,255,.75); }
.ticker i { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex: none; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
.section { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--gutter); }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head h2 { margin-bottom: 18px; }

/* missione */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.mission-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.mission-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.parallax { height: 125%; margin-top: -12%; }
.parallax img { width: 100%; height: 100%; object-fit: cover; }
.mission-text h2 { margin-bottom: 28px; }
.mission-text > p { color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.pillars li { display: flex; flex-direction: column; padding: 16px 20px; border-left: 2px solid; border-image: var(--grad) 1; background: var(--panel); }
.pillars b { font: 500 19px "Outfit", sans-serif; }
.pillars span { color: var(--muted); font-size: 15px; }

/* card */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform .2s ease-out, border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(34, 184, 230, .18), transparent 50%);
}
.card:hover { border-color: rgba(255,255,255,.22); }
.card:hover::before { opacity: 1; }
.card-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px; background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(34,184,230,.25)); color: #fff; }
.card-icon svg { width: 32px; }
.card-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 16px; }
.card-link { text-decoration: none; font-weight: 500; display: inline-flex; gap: 6px; }
.card-link span { transition: transform .3s; }
.card-link:hover span { transform: translateX(6px); }

/* edificio */
.building-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.house { padding: 30px; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, rgba(34,184,230,.12), transparent 70%), var(--panel); border: 1px solid var(--line); }
.house svg { width: 100%; height: auto; }
.house-outline, .house-floor { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 2; stroke-linejoin: round; }
.house-door { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.2); stroke-width: 2; }
.house-pulse { fill: none; stroke: url(#g-line); stroke-width: 2; stroke-dasharray: 6 10; animation: dash 1.6s linear infinite; opacity: .55; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.house-core { fill: #fff; filter: drop-shadow(0 0 8px var(--blue)); animation: core 2s ease-in-out infinite; transform-origin: 200px 140px; }
@keyframes core { 50% { transform: scale(1.35); } }
.zone { cursor: pointer; }
.zone circle { fill: rgba(5,7,13,.8); stroke: rgba(255,255,255,.35); stroke-width: 2; transition: fill .3s, stroke .3s, filter .3s; }
.zone path { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.zone.active circle { fill: rgba(34,184,230,.25); stroke: var(--blue); filter: drop-shadow(0 0 12px var(--blue)); }
.zone.active path { stroke: #fff; }
.zone[data-zone="luce"].active circle { fill: rgba(252,211,77,.25); stroke: var(--yellow); filter: drop-shadow(0 0 14px var(--yellow)); }
.zone[data-zone="sicurezza"].active circle { fill: rgba(132,204,22,.22); stroke: var(--green); filter: drop-shadow(0 0 12px var(--green)); }
.zone[data-zone="accessi"].active circle { fill: rgba(224,64,143,.22); stroke: var(--magenta); filter: drop-shadow(0 0 12px var(--magenta)); }
.tabs { display: grid; gap: 12px; }
.tab {
  text-align: left; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 16px;
  padding: 18px 22px; cursor: pointer; font: inherit; transition: background .3s, border-color .3s, transform .3s;
}
.tab b { display: block; font: 500 20px "Outfit", sans-serif; }
.tab span { display: grid; grid-template-rows: 0fr; color: var(--muted); font-size: 15px; transition: grid-template-rows .4s, margin .4s; overflow: hidden; }
.tab.active { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); transform: translateX(6px); }
.tab.active span { grid-template-rows: 1fr; margin-top: 6px; }
.tab:not(.active) span { max-height: 0; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 2px; background: var(--grad); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }
.timeline li { position: relative; padding-top: 80px; }
.step { position: absolute; top: 0; left: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 500 18px "Outfit", sans-serif; background: var(--bg-2); border: 2px solid var(--line); z-index: 1; transition: border-color .4s, box-shadow .4s; }
.timeline li.lit .step { border-color: var(--blue); box-shadow: 0 0 24px -4px var(--blue); }
.timeline h3 { margin-bottom: 10px; }
.timeline p { color: var(--muted); font-size: 16px; }

/* cta */
.cta-band { position: relative; z-index: 1; margin: 0 var(--gutter); border-radius: 32px; overflow: hidden; background: var(--grad); background-size: 300% 300%; animation: flow 12s ease infinite; }
@keyframes flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-inner { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(60px, 9vw, 110px) var(--gutter); }
.cta-inner h2 { color: #fff; margin-bottom: 16px; }
.cta-inner p { font-size: 19px; color: rgba(255,255,255,.9); margin-bottom: 32px; }

/* contatti */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 90px); }
.contact h2 { margin-bottom: 36px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 2px; font-size: 19px; }
.contact-list span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.contact-list a:hover { background-size: 100% 1px; }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.field { position: relative; }
.field input, .field textarea, .nl-row input {
  width: 100%; padding: 22px 16px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.3);
  color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); pointer-events: none; transition: all .2s; }
.field input:focus, .field textarea:focus, .nl-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(34,184,230,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: 12px; color: var(--blue); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.check input { accent-color: var(--blue); width: 18px; height: 18px; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: #ff7a9a; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* footer */
.footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-top { max-width: var(--max); margin: 0 auto; padding: 60px var(--gutter); display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-logo { width: 260px; height: auto; background: #fff; padding: 14px 18px; border-radius: 14px; }
.newsletter { display: grid; gap: 12px; max-width: 440px; width: 100%; }
.newsletter > label:first-child { font: 500 20px "Outfit", sans-serif; }
.nl-row { display: flex; gap: 10px; }
.nl-row input { padding: 13px 16px; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* ---------- animazioni allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .mission, .building-wrap, .contact { grid-template-columns: 1fr; }
  .mission-media { aspect-ratio: 16 / 10; }
  .cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
}
@media (max-width: 760px) {
  .burger { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(5,7,13,.96); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-links a:not(.btn) { font-size: 26px; color: #fff; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .timeline { grid-template-columns: 1fr; }
  .nl-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- switch condiviso ---------- */
.switch { position: relative; display: inline-grid; grid-template-columns: repeat(var(--n, 2), 1fr); padding: 5px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line); margin-bottom: 36px; }
.switch.three { --n: 3; }
.switch button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 500 15px "Outfit", sans-serif; padding: 11px 22px; cursor: pointer; transition: color .3s; white-space: nowrap; }
.switch button.on { color: #fff; }
.switch-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n, 2)); border-radius: 999px; background: linear-gradient(100deg, var(--purple), var(--blue)); transition: transform .5s cubic-bezier(.7,0,.3,1), background .5s; }

/* ---------- data center ---------- */
.dc { border-radius: 28px; padding: clamp(24px, 4vw, 48px); background: radial-gradient(circle at 20% 0%, rgba(139,92,246,.12), transparent 50%), radial-gradient(circle at 100% 100%, rgba(34,184,230,.14), transparent 50%), var(--panel); border: 1px solid var(--line); }
.dc[data-mode="cloud"] .switch-pill { transform: translateX(100%); background: linear-gradient(100deg, var(--blue), #3b82f6); }
.dc[data-mode="hybrid"] .switch-pill { transform: translateX(200%); background: linear-gradient(100deg, var(--blue), var(--green)); }
.dc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.dc-visual svg { width: 100%; max-width: 380px; margin: 0 auto; }
.dc-visual g, .dc-link { transition: opacity .6s, transform .6s; }
.dc-racks rect { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.4); stroke-width: 2; }
.dc-racks .leds circle { fill: var(--green); animation: blink 1.2s infinite alternate; }
.dc-racks .leds circle:nth-child(3n) { animation-delay: .5s; fill: var(--blue); }
.rack-lines { stroke: rgba(255,255,255,.25); stroke-width: 2; stroke-linecap: round; }
@keyframes blink { to { opacity: .25; } }
.cloud-shape { fill: rgba(34,184,230,.12); stroke: var(--blue); stroke-width: 2.5; filter: drop-shadow(0 0 14px rgba(34,184,230,.6)); }
.dc-cloud { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -6px; } }
.dc-link { fill: none; stroke: url(#g-dc); stroke-width: 3; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
.dc-leaf-bg { fill: rgba(132,204,22,.15); stroke: var(--green); stroke-width: 2; }
.dc-leaf { fill: rgba(132,204,22,.45); stroke: var(--green); stroke-width: 2; stroke-linejoin: round; }
.dc[data-mode="onprem"] .dc-cloud, .dc[data-mode="onprem"] .dc-link { opacity: 0; transform: translateX(20px); }
.dc[data-mode="cloud"] .dc-racks, .dc[data-mode="cloud"] .dc-link { opacity: .12; }
.dc[data-mode="cloud"] .dc-cloud { transform: translateX(-50px) scale(1.15); transform-origin: 225px 95px; }
.dc-panel h3 { margin-bottom: 10px; }
.dc-panel p { color: var(--muted); }
.dc-panel ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.dc-panel li { position: relative; padding-left: 30px; }
.dc-panel li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, transparent 4px, #000 5px); mask: radial-gradient(circle, transparent 4px, #000 5px); }
.dc-panel:not([hidden]) { animation: panelIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- cyber security ---------- */
.sec-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.attack { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(224,64,143,.1), transparent 70%), var(--panel); }
.attack svg { width: 100%; height: auto; }
.a-edges path { stroke: rgba(255,255,255,.15); stroke-width: 2; }
.a-nodes circle { fill: #0b1020; stroke: rgba(255,255,255,.45); stroke-width: 2; }
.a-target circle { fill: #0b1020; stroke: var(--yellow); stroke-width: 2.5; }
.a-target path { stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; }
.a-path { fill: none; stroke: #ff4d6d; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #ff4d6d); stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.attack.run .a-path { animation: attack 7s ease-in-out infinite; }
@keyframes attack {
  0% { stroke-dashoffset: var(--len); stroke: #ff4d6d; opacity: 1; }
  45% { stroke-dashoffset: 0; stroke: #ff4d6d; }
  60% { stroke-dashoffset: 0; stroke: var(--green); filter: drop-shadow(0 0 8px var(--green)); }
  90% { stroke-dashoffset: 0; stroke: var(--green); opacity: 1; filter: drop-shadow(0 0 8px var(--green)); }
  100% { stroke-dashoffset: 0; opacity: 0; stroke: var(--green); }
}
.attack-status { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.attack-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 10px #ff4d6d; animation: blink .6s infinite alternate; }
.attack.fixed .attack-status .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.sec-list li { padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 6px; transition: border-color .3s, transform .3s; }
.sec-list li:hover { border-color: rgba(224,64,143,.5); transform: translateX(6px); }
.sec-list b { font: 500 20px "Outfit", sans-serif; }
.sec-list span { color: var(--muted); font-size: 15px; }
.docs { margin-top: clamp(50px, 7vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 1px solid rgba(132,204,22,.3); background: radial-gradient(circle at 0% 0%, rgba(132,204,22,.12), transparent 55%), radial-gradient(circle at 100% 100%, rgba(139,92,246,.14), transparent 55%), var(--panel); }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--green); color: #0b1020; font-weight: 600; margin-bottom: 16px; }
.docs h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.docs-text > p { color: var(--muted); }
.docs-feats { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.docs-feats li { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 15px; }
.docs-flow { display: grid; gap: 0; justify-items: center; }
.flow-step { display: flex; align-items: center; gap: 12px; width: min(100%, 300px); padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.3); font: 500 17px "Outfit", sans-serif; }
.fi { font-size: 22px; }
.flow-line { width: 2px; height: 26px; background: var(--line); position: relative; overflow: hidden; }
.flow-line i { position: absolute; left: 0; width: 100%; height: 10px; background: var(--green); box-shadow: 0 0 8px var(--green); animation: flowdown 1.4s linear infinite; }
.flow-line:nth-of-type(4) i { animation-delay: .45s; } .flow-line:nth-of-type(6) i { animation-delay: .9s; }
@keyframes flowdown { from { top: -10px; } to { top: 26px; } }

/* ---------- KNX ---------- */
.knx-hub rect { fill: rgba(132,204,22,.18); stroke: var(--green); stroke-width: 2; filter: drop-shadow(0 0 10px rgba(132,204,22,.6)); }
.knx-hub text { fill: #fff; font: 600 14px "Outfit", sans-serif; letter-spacing: .08em; }
.zone[data-zone="energia"].active circle { fill: rgba(139,92,246,.25); stroke: var(--purple); filter: drop-shadow(0 0 12px var(--purple)); }
.knx { margin-top: clamp(50px, 7vw, 80px); display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 50px); align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.knx-logo { background: #fff; border-radius: 20px; padding: 26px 30px; display: grid; place-items: center; box-shadow: 0 20px 50px -20px rgba(132,204,22,.5); }
.knx-logo img { width: 180px; height: auto; }
.knx h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.knx-text > p { color: var(--muted); }
.knx-feats { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.knx-feats li { font-size: 14px; color: var(--muted); padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); }
.knx-feats b { display: block; color: #fff; font: 500 17px "Outfit", sans-serif; margin-bottom: 2px; }

@media (max-width: 960px) {
  .dc-grid, .sec-grid, .docs, .knx { grid-template-columns: 1fr; }
  .knx-logo { justify-self: start; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards, .knx-feats, .docs-feats { grid-template-columns: 1fr; }
  .switch button { padding: 10px 14px; font-size: 14px; }
}
.rotator .word { white-space: nowrap; }
@media (max-width: 560px) { .rotator { display: table; margin: 6px auto 0; } }

/* ---------- difesa di rete ---------- */
.ndr { margin-top: clamp(50px, 7vw, 80px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 50px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 1px solid rgba(34,184,230,.3); background: radial-gradient(circle at 100% 0%, rgba(34,184,230,.14), transparent 55%), radial-gradient(circle at 0% 100%, rgba(224,64,143,.1), transparent 55%), var(--panel); }
.badge-blue { background: var(--blue); }
.ndr h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.ndr-text > p { color: var(--muted); }
.ndr-visual svg { width: 100%; max-width: 340px; margin: 0 auto; }
.n-links path { stroke: rgba(34,184,230,.45); stroke-width: 2; stroke-dasharray: 5 7; animation: dash 1.4s linear infinite; }
.n-dev rect { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.45); stroke-width: 2; }
.n-bad { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.45); stroke-width: 2; }
.n-ring { fill: none; stroke: var(--green); stroke-width: 2.5; opacity: 0; }
.n-core circle { fill: rgba(34,184,230,.18); stroke: var(--blue); stroke-width: 2.5; filter: drop-shadow(0 0 12px rgba(34,184,230,.7)); }
.n-core path { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.ndr.threat .n-bad { fill: rgba(255,77,109,.3); stroke: #ff4d6d; filter: drop-shadow(0 0 10px #ff4d6d); animation: blink .35s infinite alternate; }
.ndr.threat .n-bad-link { stroke: #ff4d6d; }
.ndr.isolated .n-bad { fill: rgba(255,77,109,.15); stroke: #ff4d6d; opacity: .6; }
.ndr.isolated .n-bad-link { opacity: 0; transition: opacity .4s; }
.ndr.isolated .n-ring { opacity: 1; transition: opacity .4s; }
.ndr-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; font: 14px ui-monospace, Menlo, monospace; color: var(--muted); }
.ndr-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.ndr.threat .ndr-status .dot { background: #ff4d6d; box-shadow: 0 0 10px #ff4d6d; animation: blink .4s infinite alternate; }
.ndr-feats { grid-column: 1 / -1; list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ndr-feats li { padding: 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: grid; gap: 4px; transition: border-color .3s, transform .3s; }
.ndr-feats li:hover { border-color: rgba(34,184,230,.5); transform: translateY(-3px); }
.ndr-feats b { font: 500 18px "Outfit", sans-serif; }
.ndr-feats span { font-size: 14px; color: var(--muted); }
.ndr-foot { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .ndr { grid-template-columns: 1fr; } .ndr-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ndr-feats { grid-template-columns: 1fr; } }
.docs-text > .badge, .ndr-text > .badge { color: #0b1020; }

/* ---------- intelligenza artificiale ---------- */
.card-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; border-color: rgba(139,92,246,.4); background: radial-gradient(circle at 100% 0%, rgba(139,92,246,.18), transparent 60%), radial-gradient(circle at 0% 100%, rgba(34,184,230,.12), transparent 60%), var(--panel); }
.card-feature h3 { font-size: clamp(24px, 2.6vw, 32px); }
.card-feature-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.card-feature-tags span { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); font: 500 15px "Outfit", sans-serif; animation: tagFloat 5s ease-in-out infinite; }
.card-feature-tags span:nth-child(2n) { animation-delay: -1.5s; }
.card-feature-tags span:nth-child(3n) { animation-delay: -3s; }
@keyframes tagFloat { 50% { transform: translateY(-6px); border-color: rgba(139,92,246,.6); } }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.agent { padding: 22px; border-radius: var(--radius); border: 1px solid rgba(139,92,246,.35); background: radial-gradient(circle at 0% 0%, rgba(139,92,246,.15), transparent 60%), var(--panel); display: grid; gap: 14px; }
.agent-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.agent-head b { font: 500 17px "Outfit", sans-serif; }
.agent-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); background-size: 200% auto; animation: shine 4s linear infinite; }
.agent-local { margin-left: auto; font-size: 12px; color: var(--green); letter-spacing: .04em; }
.agent-msg { padding: 12px 16px; border-radius: 14px; font-size: 15px; max-width: 88%; }
.agent-msg.user { justify-self: end; background: rgba(34,184,230,.16); border: 1px solid rgba(34,184,230,.3); border-bottom-right-radius: 4px; }
.agent-msg.bot { background: rgba(132,204,22,.14); border: 1px solid rgba(132,204,22,.35); border-bottom-left-radius: 4px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.agent.done .agent-msg.bot { opacity: 1; transform: none; }
.agent-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agent-steps li { position: relative; padding: 8px 12px 8px 38px; border-radius: 10px; font: 14px ui-monospace, Menlo, monospace; color: var(--muted); background: rgba(0,0,0,.25); opacity: .45; transition: opacity .3s, color .3s; }
.agent-steps li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.agent-steps li.run { opacity: 1; color: #fff; }
.agent-steps li.run::before { border-color: var(--purple) transparent var(--purple) transparent; animation: spin .8s linear infinite; }
.agent-steps li.ok { opacity: 1; color: var(--text); }
.agent-steps li.ok::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 8px var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.agent-foot { font-size: 13px; color: var(--muted); text-align: center; }
.ai-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ai-list li { padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 6px; transition: border-color .3s, transform .3s; }
.ai-list li:hover { border-color: rgba(139,92,246,.55); transform: translateX(6px); }
.ai-list b { font: 500 20px "Outfit", sans-serif; }
.ai-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .ai-grid, .card-feature { grid-template-columns: 1fr; } .card-feature-tags { justify-content: flex-start; } }
.hero-payoff { font: 500 clamp(14px, 1.6vw, 20px) "Outfit", sans-serif; letter-spacing: .12em; color: #e9edf5; text-transform: none; margin-bottom: 22px; }

/* ---------- Kryptek GRC nel blocco documentale ---------- */
.docs-logo { display: block; width: min(280px, 80%); height: auto; margin: 18px 0 20px; }
.docs-cta { margin-top: 26px; }
.card-logo { display: block; width: 190px; max-width: 80%; height: auto; margin: 0 0 22px; }
.badge-pulse { display: inline-block; align-self: flex-start; padding: 5px 12px; margin-bottom: 14px; border-radius: 999px; background: var(--green); color: #0b1020; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(132,204,22,.55); }
  10% { transform: scale(1.1); }
  20% { transform: scale(1); }
  30% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(132,204,22,0); }
}
