/* AZ Tecnologia – stile condiviso */
:root {
  --bg: #050d22;
  --bg-2: #071430;
  --panel: rgba(16, 36, 80, .45);
  --line: rgba(127, 178, 255, .16);
  --blue: #1f4ea1;
  --blue-2: #2f6fe0;
  --cyan: #7fb2ff;
  --green: #34d399;
  --text: #e6eeff;
  --muted: #9fb2d6;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 50;
  background: linear-gradient(90deg, var(--blue-2), var(--cyan), var(--green));
  box-shadow: 0 0 12px var(--cyan);
}

/* Header */
header.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 13, 34, .72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  display: flex; align-items: center; gap: .7rem;
  color: #fff; text-decoration: none; font-weight: 700;
  letter-spacing: .2em; font-style: italic; text-transform: uppercase; font-size: .92rem;
}
.brand img { width: 54px; height: 54px; margin: -6px -4px; display: block; filter: drop-shadow(0 0 6px rgba(127,178,255,.8)); transition: filter .3s, transform .3s; }
.brand:hover img { filter: drop-shadow(0 0 12px rgba(127,178,255,1)); transform: rotate(-6deg); }
nav a {
  position: relative; color: var(--muted); text-decoration: none; margin-left: 1.6rem;
  font-size: .92rem; font-weight: 500; transition: color .2s;
}
nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transition: right .25s;
}
nav a:hover, nav a:focus-visible { color: #fff; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 72% 40%, #1a3f86 0%, #0d2350 40%, var(--bg) 100%);
  padding: 5.5rem 0 6rem;
  min-height: calc(100vh - 66px);
  display: flex; align-items: center;
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: -48px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,170,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  animation: gridmove 14s linear infinite;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; height: 160px; top: -160px; z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(90,160,255,.10) 85%, rgba(140,200,255,.45));
  animation: scan 6s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes gridmove { to { transform: translate(48px, 48px); } }
@keyframes scan { 0% { top: -160px; } 70%, 100% { top: 100%; } }

.hero .wrap { width: 100%; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .16em;
  color: #9cc2ff; margin-bottom: 1.4rem;
  padding: .5rem .85rem; border: 1px solid rgba(156,194,255,.3); border-radius: 999px;
  background: rgba(10,30,70,.55);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none;
  box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.08; margin: 0 0 1.3rem; max-width: 15ch;
  letter-spacing: -.01em;
}
.hl {
  background: linear-gradient(90deg, #7fb2ff, #ffffff, #34d399, #7fb2ff);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 300% center; } }
.scr-on { position: relative; display: inline-block; white-space: nowrap; }
.scr-ghost { visibility: hidden; }
.scr-ov { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; white-space: nowrap; }
.hero p.sub { font-size: 1.15rem; color: #c3d3ee; max-width: 48ch; margin: 0 0 1.4rem; }
.typer { font: .95rem/1.5 var(--mono); color: var(--cyan); margin: 0 0 2.1rem; min-height: 1.5em; }
.typer::before { content: "root@az:~$ "; color: var(--green); }
.cur { display: inline-block; width: .6em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hero logo core */
.core {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  max-width: 460px; width: 100%; justify-self: center;
  perspective: 900px;
}
.core .tilt { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .2s ease-out; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(127,178,255,.35); }
.r1 { inset: 3%; border-style: dashed; animation: spin 40s linear infinite; }
.r2 { inset: 11%; border-color: rgba(127,178,255,.15); border-top-color: var(--cyan); border-right-color: var(--cyan); border-width: 2px; animation: spin 5s linear infinite; filter: drop-shadow(0 0 6px var(--cyan)); }
.r3 { inset: 0; border: none; animation: spin 12s linear infinite reverse; }
.r3::before, .r3::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px 4px rgba(127,178,255,.8);
}
.r3::before { top: -5px; left: calc(50% - 5px); }
.r3::after { bottom: -5px; left: calc(50% - 5px); background: var(--green); box-shadow: 0 0 14px 4px rgba(52,211,153,.8); }
.radar {
  position: absolute; inset: 11%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(52,211,153,0) 0deg, rgba(52,211,153,.25) 50deg, transparent 51deg);
  animation: spin 4s linear infinite;
}
.glow {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,150,255,.6), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.18); opacity: .55; } }
.core img {
  position: relative; width: 62%; height: auto;
  transform: translateZ(70px);
  filter: drop-shadow(0 0 10px rgba(127,178,255,.9)) drop-shadow(0 0 28px rgba(47,111,224,.75)) drop-shadow(0 18px 30px rgba(0,0,0,.5));
  animation: float 6s ease-in-out infinite, flicker 7s linear infinite;
}
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .75; } 97% { opacity: 1; } }
@keyframes float { 50% { margin-top: -18px; } }
.tag {
  position: absolute; font: 600 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: #cfe0ff; padding: .45rem .6rem; border-radius: 8px;
  background: rgba(10,30,70,.8); border: 1px solid rgba(127,178,255,.35);
  backdrop-filter: blur(6px); white-space: nowrap;
  display: flex; align-items: center; gap: .4rem;
  animation: bob 5s ease-in-out infinite;
}
.tag.t1 { top: 10%; left: 0; }
.tag.t2 { top: 46%; right: 0; animation-delay: -1.6s; }
.tag.t3 { bottom: 8%; left: 6%; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.btns { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: 12px; font-weight: 600; text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-2); color: #fff; box-shadow: 0 0 26px rgba(47,111,224,.55); }
.btn-primary:hover { background: #3d7ff0; box-shadow: 0 0 40px rgba(61,127,240,.85); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn-ghost { border: 1px solid rgba(156,194,255,.5); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(127,178,255,.12); border-color: var(--cyan); box-shadow: 0 0 22px rgba(127,178,255,.35); }
.btn-ticket {
  background: #ffcc00; color: #12305f; padding-left: .55rem;
  box-shadow: 0 0 24px rgba(255,204,0,.35);
}
.btn-ticket:hover { background: #ffd83a; box-shadow: 0 0 38px rgba(255,204,0,.6); }
.btn-ticket img { width: 34px; height: 34px; border-radius: 8px; display: block; box-shadow: 0 0 0 2px rgba(18,48,95,.15); }
.btn-ticket small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; line-height: 1.1; }
.btn-ticket b { display: block; line-height: 1.15; }

nav a.nav-ticket { color: #ffcc00; }
nav a.nav-ticket::after { background: #ffcc00; box-shadow: 0 0 8px #ffcc00; }

/* Ticket portal box */
.portal {
  margin-top: 1.3rem;
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  padding: 1.6rem; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: linear-gradient(120deg, rgba(255,204,0,.14), rgba(255,204,0,.03) 60%), var(--panel);
  border: 1px solid rgba(255,204,0,.45);
  transition: box-shadow .25s, transform .25s, border-color .25s, opacity .8s, filter .8s;
}
.portal:hover { box-shadow: 0 0 36px rgba(255,204,0,.25); border-color: #ffcc00; transform: translateY(-3px); }
.portal img { width: 64px; height: 64px; border-radius: 14px; flex: none; box-shadow: 0 0 24px rgba(255,204,0,.35); }
.portal .txt { flex: 1 1 260px; }
.portal strong { display: block; color: #fff; font-size: 1.15rem; }
.portal small { color: var(--muted); font-size: .93rem; }
.portal .go {
  margin-left: auto; padding: .7rem 1.2rem; border-radius: 10px; font-weight: 600;
  background: #ffcc00; color: #12305f; white-space: nowrap;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(156,194,255,.45); border-radius: 14px;
}
.scroll-hint::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--cyan); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee .track {
  display: flex; gap: 3rem; width: max-content; padding: 1.05rem 0;
  font: .82rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  animation: marquee 32s linear infinite;
}
.marquee span { display: inline-flex; align-items: center; gap: .6rem; }
.marquee span::before { content: "◆"; color: var(--cyan); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { position: relative; padding: 6rem 0; }
.kicker { font: 600 .78rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: .9rem; display: block; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0 0 .7rem; color: #fff; }
.lead { color: var(--muted); margin: 0 0 3rem; max-width: 60ch; font-size: 1.05rem; }

/* Glow cards */
.grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .3s, border-color .3s, box-shadow .3s, opacity .8s, filter .8s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(127,178,255,.18), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(127,178,255,.5); box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 30px rgba(47,111,224,.25); }
.card:hover::before { opacity: 1; }
.ic {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,111,224,.35), rgba(52,211,153,.18));
  border: 1px solid rgba(127,178,255,.35);
  color: #cfe0ff; margin-bottom: 1.2rem;
  transition: box-shadow .3s, transform .3s;
}
.card:hover .ic { box-shadow: 0 0 24px rgba(127,178,255,.55); transform: scale(1.06) rotate(-4deg); }
.ic svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 .5rem; font-size: 1.12rem; color: #fff; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
a.card-ticket { display: block; text-decoration: none; color: inherit; border-color: rgba(255,204,0,.35); }
a.card-ticket:hover { border-color: #ffcc00; box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 30px rgba(255,204,0,.25); }
a.card-ticket::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255,204,0,.16), transparent 45%); }
.ic-ticket { padding: 0; overflow: hidden; background: #ffcc00; border-color: rgba(255,204,0,.6); }
.ic-ticket img { width: 100%; height: 100%; display: block; }
a.card-ticket:hover .ic { box-shadow: 0 0 24px rgba(255,204,0,.6); }
.card-link { display: inline-block; margin-top: .9rem; font: 600 .82rem var(--mono); color: #ffcc00; }
.card .num { position: absolute; top: 1.2rem; right: 1.4rem; font: .75rem var(--mono); color: rgba(127,178,255,.45); }

/* Security section */
.security { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); overflow: hidden; }
.security .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.shield-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
.shield-wrap .dots {
  position: absolute; inset: 0; border-radius: 50%; opacity: .4;
  background: radial-gradient(circle, rgba(127,178,255,.7) 1px, transparent 1.6px) 0 0 / 18px 18px;
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
  mask: radial-gradient(circle, #000 30%, transparent 70%);
  animation: spin 60s linear infinite;
}
.shield-wrap svg.shield { position: relative; width: 62%; height: auto; filter: drop-shadow(0 0 30px rgba(47,111,224,.6)); }
.shield .outline { stroke-dasharray: 700; stroke-dashoffset: 700; }
.shield .check { stroke-dasharray: 120; stroke-dashoffset: 120; }
.in .shield .outline { animation: draw 2.4s ease forwards; }
.in .shield .check { animation: draw .9s 1.9s ease forwards; }
.shield .beam { animation: beam 3s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beam { 0% { transform: translateY(-30px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(230px); opacity: 0; } }
.pulse-ring {
  position: absolute; inset: 15%; border-radius: 50%; border: 2px solid rgba(52,211,153,.6);
  animation: ripple 3s ease-out infinite;
}
.pulse-ring.d2 { animation-delay: 1.5s; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

.console {
  background: rgba(3, 9, 24, .85); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.console .bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: rgba(16,36,80,.5); }
.console .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.console .bar i:nth-child(1) { background: #ff5f57; }
.console .bar i:nth-child(2) { background: #febc2e; }
.console .bar i:nth-child(3) { background: #28c840; }
.console .bar b { margin-left: .6rem; font: 500 .78rem var(--mono); color: var(--muted); }
.console .log { height: 214px; overflow: hidden; padding: 1rem 1.1rem; font: .82rem/1.75 var(--mono); color: #b9cbec; }
.console .log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: lineIn .35s ease; }
.console .ok { color: var(--green); }
.console .info { color: var(--cyan); }
.console .t { color: #5d77a8; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-8px); } }
.meters { padding: 1rem 1.1rem 1.3rem; border-top: 1px solid var(--line); display: grid; gap: .85rem; }
.meter { display: grid; grid-template-columns: 8.5rem 1fr 6.5rem; align-items: center; gap: .8rem; font: .78rem var(--mono); color: var(--muted); }
.meter .bar2 { height: 6px; border-radius: 3px; background: rgba(127,178,255,.12); overflow: hidden; }
.meter .bar2 span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--blue-2), var(--green)); box-shadow: 0 0 10px rgba(52,211,153,.6); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.meter em { font-style: normal; color: var(--green); letter-spacing: .08em; text-align: right; }
.console.in .meter .bar2 span { width: 100%; }

/* Remote support */
.remote .steps { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dl {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem;
  text-decoration: none; color: var(--text); background: var(--panel);
  transition: border-color .25s, box-shadow .25s, transform .25s, opacity .8s, filter .8s;
}
.dl::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(52,211,153,.16), transparent 50%);
}
.dl:hover { border-color: rgba(52,211,153,.55); box-shadow: 0 0 30px rgba(52,211,153,.18); transform: translateY(-3px); }
.dl:hover::before { opacity: 1; }
.dl .os { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(127,178,255,.12); border: 1px solid var(--line); flex: none; }
.dl .os svg { width: 24px; height: 24px; }
.dl strong { display: block; color: #fff; font-size: 1.05rem; }
.dl small { font-size: .88rem; color: var(--muted); }
.dl .arrow { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(52,211,153,.45); color: var(--green); flex: none; }
.dl:hover .arrow { animation: dlb .8s ease-in-out infinite; }
@keyframes dlb { 50% { transform: translateY(4px); } }
.how { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 2rem 0 0; padding: 0; list-style: none; font: .85rem var(--mono); color: var(--muted); counter-reset: s; }
.how li { counter-increment: s; }
.how li::before { content: "0" counter(s) " "; color: var(--cyan); }
.note { font-size: .92rem; color: var(--muted); margin-top: 1.4rem; }

/* Contacts */
.contact-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
dl.info { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.2rem; }
dl.info dt { color: var(--muted); font: .78rem/1.95 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
dl.info dd { margin: 0; font-weight: 500; color: #fff; }
dl.info a { text-decoration: none; color: var(--cyan); }
dl.info a:hover { text-decoration: underline; }

footer { border-top: 1px solid var(--line); background: #030918; color: #7d90b5; font-size: .86rem; padding: 2rem 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; }
footer .sys { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .78rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(4px); transition: opacity .8s ease, transform .8s ease, filter .8s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.card.reveal.in:hover, .dl.reveal.in:hover { transform: translateY(-6px); }

.brand { white-space: nowrap; }
nav { display: flex; align-items: center; white-space: nowrap; }
@media (max-width: 1000px) {
  nav a { margin-left: 1.1rem; font-size: .88rem; }
}
@media (max-width: 900px) {
  nav a:not(.nav-ticket) { display: none; }
  nav a.nav-ticket { margin-left: 0; padding: .45rem .8rem; border: 1px solid rgba(255,204,0,.6); border-radius: 8px; font-size: .85rem; }
  nav a.nav-ticket::after { display: none; }
}
@media (max-width: 860px) {
  .hero .wrap, .security .wrap { grid-template-columns: 1fr; }
  .core { max-width: 360px; order: -1; }
  .shield-wrap { max-width: 300px; }
}
@media (max-width: 640px) {
  nav a:not(.nav-ticket) { display: none; }
  nav a.nav-ticket { margin-left: 0; padding: .45rem .8rem; border: 1px solid rgba(255,204,0,.6); border-radius: 8px; font-size: .85rem; }
  nav a.nav-ticket::after { display: none; }
  .brand { font-size: .8rem; letter-spacing: .14em; }
  .btns .btn { width: 100%; justify-content: center; }
  .btns .btn-ticket { justify-content: flex-start; }
  .typer { min-height: 3em; }
  .hero { padding: 2rem 0 4rem; min-height: auto; }
  .core { max-width: 280px; }
  .tag { font-size: .58rem; padding: .35rem .5rem; }
  section { padding: 4.5rem 0; }
  .meter { grid-template-columns: 6.8rem 1fr 5.6rem; font-size: .7rem; }
  dl.info { grid-template-columns: 1fr; gap: .05rem; }
  dl.info dd { margin-bottom: .7rem; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .shield .outline, .shield .check { stroke-dashoffset: 0; }
  .meter .bar2 span { width: 100%; }
}

/* ===== Pagina Assistenza ===== */
nav a.active { color: #fff; }
nav a.active::after { right: 0; }
.hero.page-hero { min-height: auto; padding: 4.5rem 0 5rem; }
.hero.page-hero h1 { max-width: 14ch; }

/* Connessione: PC cliente <-> tunnel cifrato <-> tecnico */
.link-diagram { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; max-width: 480px; width: 100%; justify-self: center; }
.node { position: relative; display: grid; justify-items: center; gap: .7rem; text-align: center; font: 600 .72rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #cfe0ff; }
.node .box {
  position: relative; width: 104px; height: 104px; border-radius: 22px; display: grid; place-items: center;
  background: rgba(10,30,70,.7); border: 1px solid rgba(127,178,255,.45);
  box-shadow: 0 0 30px rgba(47,111,224,.35), inset 0 0 20px rgba(127,178,255,.12);
}
.node .box svg { width: 46px; height: 46px; color: #cfe0ff; }
.node .box img { width: 70px; height: auto; filter: drop-shadow(0 0 8px rgba(127,178,255,.9)); }
.node .box::after { content: ""; position: absolute; inset: -8px; border-radius: 28px; border: 1px solid rgba(127,178,255,.3); animation: nodepulse 2.6s ease-out infinite; }
.node.tech .box::after { animation-delay: 1.3s; border-color: rgba(52,211,153,.45); }
@keyframes nodepulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.tunnel { position: relative; height: 104px; margin: 0 -2px; align-self: start; }
.tunnel .pipe {
  position: absolute; left: 0; right: 0; top: 50%; height: 14px; margin-top: -7px; border-radius: 7px;
  background: linear-gradient(90deg, rgba(127,178,255,.12), rgba(52,211,153,.18), rgba(127,178,255,.12));
  border: 1px solid rgba(127,178,255,.3); overflow: hidden;
}
.tunnel .pipe::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(127,178,255,.35) 14px 16px);
  animation: flow 1.2s linear infinite;
}
@keyframes flow { to { transform: translateX(16px); } }
.packet { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #cfe0ff; box-shadow: 0 0 10px 2px var(--cyan); animation: pkt 2.4s linear infinite; }
.packet.back { background: var(--green); box-shadow: 0 0 10px 2px var(--green); animation-name: pktback; }
.packet.p2 { animation-delay: -.8s; } .packet.p3 { animation-delay: -1.6s; }
@keyframes pkt { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes pktback { from { left: calc(100% - 8px); } to { left: 0; } }
.tunnel .lock {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; background: #0d2350; border: 2px solid var(--green);
  box-shadow: 0 0 20px rgba(52,211,153,.6); color: var(--green); z-index: 2;
}
.tunnel .lock svg { width: 20px; height: 20px; }
.tunnel .cap { position: absolute; left: 0; right: 0; top: calc(50% + 30px); text-align: center; font: 600 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }

/* Passi */
.steps3 { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: st; }
.steps3 .card { padding-top: 2.2rem; }
.steps3 .big { font: 700 2.4rem/1 var(--mono); color: transparent; -webkit-text-stroke: 1px rgba(127,178,255,.6); position: absolute; top: 1rem; right: 1.3rem; }

/* Download alternativi */
.dl .meta { display: inline-block; margin-left: .4rem; padding: .1rem .45rem; border-radius: 6px; font: 600 .68rem var(--mono); letter-spacing: .06em; color: var(--cyan); border: 1px solid rgba(127,178,255,.35); vertical-align: middle; }
.alt-bg { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.subhead { font: 600 .8rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 3rem 0 1.2rem; display: flex; align-items: center; gap: 1rem; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Box sicurezza + aiuto */
.trust-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .7rem; color: var(--muted); }
.checklist li::before { content: "✔"; color: var(--green); font-weight: 700; flex: none; }
.help-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.help-cta .btns .btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 860px) {
  .link-diagram { max-width: 420px; }
}
@media (max-width: 640px) {
  .hero.page-hero { padding: 2.5rem 0 3.5rem; }
  .node .box { width: 78px; height: 78px; border-radius: 18px; }
  .node .box svg { width: 34px; height: 34px; }
  .node .box img { width: 54px; }
  .tunnel { height: 78px; }
  .node { font-size: .6rem; }
}

/* ===== WhatsApp ===== */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,.6);
  animation: waPing 2.4s infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; }
.wa-float .wa-tip {
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: .5rem .8rem; border-radius: 10px;
  background: rgba(5,13,34,.92); border: 1px solid rgba(37,211,102,.5); color: #fff;
  font: 600 .82rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translateY(-50%) translateX(-4px); }
@keyframes waPing { 70% { box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 0 rgba(37,211,102,0); } }
.btn-wa { background: #25d366; color: #05301f; box-shadow: 0 0 24px rgba(37,211,102,.35); }
.btn-wa:hover { background: #3ee07b; box-shadow: 0 0 36px rgba(37,211,102,.6); }
.btn-wa svg { width: 20px; height: 20px; }
dl.info a.wa-link { display: inline-flex; align-items: center; gap: .45rem; color: #25d366; }
dl.info a.wa-link svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .wa-float { right: 1rem; bottom: 1rem; width: 56px; height: 56px; }
  .wa-float svg { width: 30px; height: 30px; }
  .wa-float .wa-tip { display: none; }
}

/* Contatti: niente testo tagliato a larghezze intermedie */
dl.info dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Pagine legali (Privacy, Cookie) ===== */
.hero.legal-hero { min-height: auto; padding: 3.8rem 0 3.4rem; }
.hero.legal-hero .wrap { display: block; }
.hero.legal-hero h1 { max-width: none; font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .8rem; }
.hero.legal-hero p.sub { margin-bottom: 0; }
.legal { padding: 4rem 0 5rem; }
.legal .wrap { max-width: 860px; }
.legal .toc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin-bottom: 2.5rem;
}
.legal .toc b { display: block; font: 600 .75rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: .9rem; }
.legal .toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; color: var(--muted); }
.legal .toc li { margin: .2rem 0; break-inside: avoid; }
.legal .toc a { color: var(--cyan); text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal h2 { font-size: 1.35rem; margin: 2.6rem 0 .8rem; scroll-margin-top: 90px; display: flex; gap: .7rem; align-items: baseline; }
.legal h2 .n { font: 600 .85rem var(--mono); color: var(--cyan); }
.legal h3 { font-size: 1.05rem; color: #fff; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: #c3d3ee; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .35rem 0; }
.legal strong { color: #fff; }
.legal .box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin: 1rem 0;
}
.legal .box.ok { border-color: rgba(52,211,153,.45); background: linear-gradient(120deg, rgba(52,211,153,.10), transparent 60%), var(--panel); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal td { color: #c3d3ee; }
.legal .updated { font: .8rem var(--mono); color: var(--muted); margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
footer .legal-links a { color: #9fb2d6; text-decoration: none; margin-left: 1rem; }
footer .legal-links a:first-child { margin-left: 0; }
footer .legal-links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
  .legal .toc ol { columns: 1; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border-bottom: none; padding: .25rem 0; }
  .legal tr { border-bottom: 1px solid var(--line); padding: .7rem 0; }
}
/* spazio per il pulsante WhatsApp fisso */
footer .wrap { padding-right: 5.5rem; }
@media (max-width: 640px) { footer { padding-bottom: 5.5rem; } footer .wrap { padding-right: 1.25rem; } }
