/* Stile "cyborg" preso da SDSCommercial (variabili, barra, pulsanti, hero, card), più le parti del sito aziendale in fondo */
/* Dark theme (default). Every colour of the site goes through these variables. */
:root {
  color-scheme: dark;
  --bg: #030814; --bg2: #071230; --card: rgba(9, 22, 56, .72); --line: rgba(64, 160, 255, .22); --line-hi: rgba(0, 229, 255, .6);
  --blue: #1e6bff; --cyborg: #0a3d91; --cyan: #00e5ff; --text: #eaf3ff; --dim: #8ea3c2; --red: #ff2e4d;
  --ok: #3dffb0; --avviso: #ffb547; --errore-testo: #ffb3bf;
  --barra: rgba(3, 8, 20, .75); --campo: rgba(3, 8, 20, .7); --hover: rgba(0, 229, 255, .07); --attivo: rgba(0, 229, 255, .14);
  --riga: rgba(64, 160, 255, .1); --alone: rgba(30, 107, 255, .25); --griglia: rgba(0, 229, 255, .035);
  --velo: rgba(3, 8, 20, .4); --su-primario: #021026;
}

/* Light theme: chosen with the switch next to IT/EN (data-theme on <html>, see ThemeService and index.html) */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb; --bg2: #ffffff; --card: rgba(255, 255, 255, .92); --line: rgba(30, 80, 160, .18); --line-hi: rgba(0, 110, 170, .55);
  --blue: #1e5bd8; --cyborg: #0a3d91; --cyan: #0072ad; --text: #0c1a33; --dim: #56677f; --red: #d3203a;
  --ok: #0e8f5a; --avviso: #b86e00; --errore-testo: #9c1027;
  --barra: rgba(255, 255, 255, .85); --campo: #ffffff; --hover: rgba(0, 114, 173, .07); --attivo: rgba(0, 114, 173, .12);
  --riga: rgba(30, 80, 160, .1); --alone: rgba(30, 91, 216, .10); --griglia: rgba(0, 80, 160, .045);
  --velo: rgba(243, 246, 251, .55); --su-primario: #ffffff;
}
/* The chrome title is white metal on dark: on light it becomes dark steel */
html[data-theme="light"] .chrome { background: linear-gradient(180deg, #0c1a33 0%, #2b4a78 45%, #0c1a33 60%, #3b5a86 100%); -webkit-background-clip: text; background-clip: text; filter: none; }
html[data-theme="light"] .grain { opacity: .12; }
html[data-theme="light"] .hero-bg { opacity: .18; }

/* Light/dark switch next to IT/EN: ☾ [track with knob] ☀ */
.theme-switch { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--dim); font-size: 14px; line-height: 1; }
.theme-track { position: relative; width: 34px; height: 18px; border-radius: 9px; border: 1px solid var(--line-hi); background: var(--campo); transition: background-color .2s; }
.theme-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); transition: transform .2s; }
.theme-switch.on .theme-knob { transform: translateX(16px); }
.theme-switch:hover .theme-track { background: var(--attivo); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Exo 2", sans-serif; font-size: 16px; line-height: 1.6;
  background-image: radial-gradient(ellipse 80% 50% at 70% -10%, var(--alone), transparent 60%),
    linear-gradient(var(--griglia) 1px, transparent 1px), linear-gradient(90deg, var(--griglia) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px; }
::selection { background: var(--cyan); color: #000; }
a { color: inherit; text-decoration: none; }
.grain { pointer-events: none; position: fixed; inset: 0; z-index: 50; opacity: .5; background: repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0 1px, transparent 1px 3px); }
.dim { color: var(--dim); } .small { font-size: 13px; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--cyan); }
h1, h2, h3 { font-family: "Orbitron", sans-serif; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 10px 0 36px; }
h3 { font-size: 18px; letter-spacing: .03em; }

.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; padding: 14px 6vw; background: var(--barra); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: Orbitron; font-weight: 900; letter-spacing: .12em; font-size: 15px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 16px rgba(0, 229, 255, .5); }
.brand b { color: var(--cyan); margin-left: 6px; }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a { padding: 8px 12px; color: var(--dim); font-size: 15px; transition: color .2s, background-color .2s; }
.links a:hover { color: var(--text); background: var(--hover); }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: none; border: 0; color: var(--dim); padding: 6px 10px; cursor: pointer; font-family: "JetBrains Mono"; font-size: 12px; }
.lang button.on { background: var(--attivo); color: var(--cyan); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; font-family: "Exo 2"; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid var(--line-hi); color: var(--text); background: transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background-color .2s, box-shadow .2s, transform .12s; }
.btn:hover:not(:disabled) { background: var(--attivo); box-shadow: 0 0 24px rgba(0, 229, 255, .35); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.primary { background: linear-gradient(90deg, var(--blue), var(--cyan)); color: var(--su-primario); border: 0; }
.btn.primary:hover:not(:disabled) { box-shadow: 0 0 30px rgba(0, 229, 255, .6); }
.btn.sm { padding: 9px 16px; font-size: 14px; } .btn.full { width: 100%; }

.hero { position: relative; overflow: hidden; min-height: 82vh; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url("../img/hero-bg.jpg") center/cover; opacity: .35; filter: saturate(.6) hue-rotate(-10deg); animation: zoom 18s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, var(--velo) 70%, var(--bg)); }
@keyframes zoom { from { transform: scale(1.12); } to { transform: none; } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; width: 100%; padding: 80px 6vw; }
.hero-copy > * { animation: rise .7s both; } .hero-copy > *:nth-child(2) { animation-delay: .1s; } .hero-copy > *:nth-child(3) { animation-delay: .2s; } .hero-copy > *:nth-child(4) { animation-delay: .3s; } .hero-copy > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.chrome { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; letter-spacing: .04em; margin: 14px 0 10px;
  background: linear-gradient(180deg, #fff 0%, #cfe0f5 38%, #3b5a86 52%, #eef5ff 64%, #7f98bb 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, .35)); }
.slogan { font-family: Orbitron; font-size: clamp(18px, 2vw, 24px); color: var(--cyan); margin: 0 0 18px; }
.sub { color: var(--dim); max-width: 580px; font-size: 17px; margin: 0 0 32px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inner.with-trailer { grid-template-columns: 1fr 1.1fr; }
.hero-trailer { position: relative; aspect-ratio: 16/9; border: 1px solid rgba(0, 229, 255, .45); background: #000; box-shadow: 0 0 70px rgba(0, 229, 255, .18), inset 0 0 0 1px rgba(0, 229, 255, .1); animation: rise .8s .3s both; }
.hero-trailer video { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-trailer .hud { position: absolute; width: 18px; height: 18px; border: 2px solid var(--cyan); z-index: 2; pointer-events: none; }
.hero-trailer .tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; } .hero-trailer .tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.hero-trailer .bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; } .hero-trailer .br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.hero-trailer .watch { position: absolute; right: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 0 24px rgba(0, 229, 255, .45); }
.hero-badge { position: relative; width: min(360px, 70vw); aspect-ratio: 1; justify-self: center; }
.hero-badge img { position: absolute; inset: 14%; width: 72%; border-radius: 50%; box-shadow: 0 0 60px rgba(0, 229, 255, .5), 0 0 0 4px #8fa3bb, 0 0 0 8px #0d1626; }
.ring { position: absolute; border-radius: 50%; }
.r1 { inset: 8%; border: 3px dashed rgba(170, 195, 220, .7); animation: spin 14s linear infinite; }
.r2 { inset: 3%; border: 4px solid transparent; border-top-color: var(--cyan); border-bottom-color: var(--blue); filter: drop-shadow(0 0 10px var(--cyan)); animation: spin 5s linear infinite reverse; }
.r3 { inset: -4%; border: 2px solid rgba(64, 160, 255, .25); border-left-color: var(--red); animation: spin 9s linear infinite; }
.teeth { position: absolute; inset: -10%; border-radius: 50%; background: repeating-conic-gradient(rgba(150, 180, 210, .45) 0 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 64%, #000 65%, #000 70%, transparent 71%); animation: spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 6vw 34px 3vw; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.stat:last-child { border-right: 0; }
.stat b { font-family: Orbitron; font-size: 40px; color: var(--cyan); }
.stat span { color: var(--dim); font-size: 14px; }

.section { padding: 110px 6vw; }
.section.narrow { max-width: 900px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); padding: 28px; position: relative; backdrop-filter: blur(12px); transition: border-color .25s, transform .25s; }
.card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 18px; height: 18px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 34px 6vw; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- SDStudios ---------- */
.links a.on { color: var(--cyan); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 6px 10px; cursor: pointer; font-size: 18px; margin-left: auto; }

/* Pagine grandi: ogni blocco occupa quasi tutto lo schermo */
.hero.big { min-height: calc(100vh - 69px); }
.hero.product { min-height: 88vh; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--dim); max-width: 760px; margin: 0 0 28px; }
.section.tall { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.section.alt { background: linear-gradient(180deg, transparent, var(--hover) 30%, var(--hover) 70%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

/* Riquadro video con gli angoli HUD (come il trailer di SDSCommercial) */
.screen { position: relative; aspect-ratio: 16/9; border: 1px solid rgba(0, 229, 255, .45); background: #000; box-shadow: 0 0 70px rgba(0, 229, 255, .18); }
.screen video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.screen .hud { position: absolute; width: 18px; height: 18px; border: 2px solid var(--cyan); z-index: 2; pointer-events: none; }
.screen .tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; } .screen .tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; }
.screen .bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; } .screen .br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.screen.empty { display: grid; place-items: center; text-align: center; padding: 30px; background: var(--card); }
.screen.empty b { font-family: Orbitron; font-size: 22px; letter-spacing: .08em; display: block; margin-bottom: 8px; }
.screen.wide { max-width: 1200px; margin: 0 auto; }

/* Prodotti: blocchi a tutta larghezza, testo e video alternati */
.product-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; padding: 100px 6vw; min-height: 80vh; border-bottom: 1px solid var(--line); }
.product-row:nth-child(even) .product-copy { order: 2; }
.product-row h2 { margin-bottom: 14px; }
.tag { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line-hi); padding: 4px 10px; margin: 0 8px 8px 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--dim); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border: 2px solid var(--cyan); transform: rotate(45deg); }
.ticks li b { color: var(--text); font-weight: 600; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.grid-3 .card h3, .grid-2 .card h3 { margin: 12px 0 10px; }
.card .num { font-family: Orbitron; font-size: 34px; color: var(--cyan); opacity: .8; }
.card video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; border: 1px solid var(--line); margin-bottom: 16px; }
.price { font-family: Orbitron; font-size: 30px; color: var(--text); margin: 6px 0 4px; }
.price span { font-family: "Exo 2"; font-size: 15px; color: var(--dim); }

/* Fasi del lavoro su commissione */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); }
.step { padding: 32px 24px; border-right: 1px solid var(--line); background: var(--card); }
.step:last-child { border-right: 0; }
.step .num { font-family: Orbitron; font-size: 40px; color: var(--cyan); }
.step h3 { margin: 10px 0; }

.cta-band { text-align: center; padding: 120px 6vw; border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--alone), transparent 70%); }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .actions { justify-content: center; }
.footer .foot-brand { display: flex; align-items: center; gap: 10px; font-family: Orbitron; letter-spacing: .1em; }
.footer .foot-brand img { width: 28px; height: 28px; border-radius: 50%; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .links { display: none; } .nav-toggle { display: block; margin-left: 0; } .theme-switch { margin-left: auto; }
  .topbar.open .links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 6vw; }
  .hero-inner, .hero-inner.with-trailer, .product-row, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .product-row:nth-child(even) .product-copy { order: 0; }
  .hero-badge { width: 240px; } .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .section, .product-row { padding: 70px 6vw; }
}
@media (max-width: 560px) {
  .topbar { gap: 12px; padding: 12px 4vw; } .brand { font-size: 12px; } .brand img { width: 32px; height: 32px; }
  body { overflow-x: hidden; }
}

/* Al posto del video, finché non c'è */
.novideo { aspect-ratio: 16/9; display: grid; place-content: center; text-align: center; gap: 6px; margin-bottom: 16px; border: 1px dashed var(--line-hi); background: repeating-linear-gradient(135deg, var(--hover) 0 12px, transparent 12px 24px); }
.novideo b { font-family: Orbitron; letter-spacing: .06em; }
.novideo span { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.screen .novideo { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
.link { color: var(--dim); font-size: 15px; transition: color .2s; } .link:hover { color: var(--cyan); }
.brand b { margin-left: 0; }
