/* Aurvin – tema scuro tecnologico */
@font-face {
  font-family: "Michroma";
  src: local("Michroma"), local("Michroma-Regular"), url("fonts/Michroma-Regular.woff2") format("woff2");
  font-display: swap;
}
:root {
  --void: #030a17;
  --navy: #081230;
  --line: rgba(120, 170, 255, 0.18);
  --cyan: #19e3ff;
  --blue: #2a6bff;
  --ice: #eaf2ff;
  --muted: #93a6c6;
  --display: "Michroma", "Orbitron", "Eurostile Extended", "Eurostile", Verdana, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ice);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(60rem 36rem at 85% -5%, rgba(42, 107, 255, 0.28), transparent 60%),
    radial-gradient(40rem 30rem at 0% 30%, rgba(25, 227, 255, 0.10), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--void);
  background-attachment: fixed;
}
a { color: var(--cyan); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }


/* intestazione */
header.site { border-bottom: 1px solid var(--line); background: rgba(3, 10, 23, 0.72); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ice); }
.brand img { width: 40px; height: 40px; display: block; }
.brand span { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.22em; }
nav a { margin-left: 1.5rem; color: var(--muted); text-decoration: none; font-size: 0.98rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--ice); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 6px; }

/* tipografia */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(1.7rem, 4.4vw, 3.05rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.9rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.02rem; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; max-width: 38rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 33rem; margin-top: 1.4rem; }
.grad { background: linear-gradient(95deg, var(--ice), var(--cyan) 60%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* pulsanti */
.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(95deg, var(--cyan), var(--blue));
  color: #02101f;
}
.button:hover { filter: brightness(1.1); }
.button.ghost { background: transparent; color: var(--ice); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--cyan); filter: none; }
.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

/* hero */
.hero { padding: 5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero-art { justify-self: center; width: min(100%, 22rem); }
.hero-art img { width: 100%; height: auto; display: block; animation: glow 6s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 26px rgba(25, 227, 255, 0.22)); }
  50%      { filter: drop-shadow(0 0 48px rgba(42, 107, 255, 0.55)); }
}

/* sezioni */
section.block { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: rgba(8, 18, 48, 0.55); }
.services > div { padding: 1.75rem; border-right: 1px solid var(--line); }
.services > div:last-child { border-right: 0; }
.services p { color: var(--muted); margin: 0; font-size: 1rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--blue); padding-top: 1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 0.85rem; color: var(--cyan); display: block; margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }

.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.projects li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.projects .name { font-family: var(--display); font-size: 1rem; }
.projects .desc { color: var(--muted); margin: 0.2rem 0 0; }

.stack { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.stack li { border: 1px solid var(--line); padding: 0.4rem 0.85rem; border-radius: 999px; color: var(--muted); font-size: 0.95rem; background: rgba(8, 18, 48, 0.55); }

.contact-mail { font-family: var(--display); font-size: clamp(1.1rem, 3.4vw, 1.9rem); word-break: break-word; }

/* pagine di testo (privacy, supporto) */
main.page { padding: 4rem 0 5rem; }
main.page h1 { margin-bottom: 1rem; }
main.page h2 { margin-top: 2.5rem; }
ul.plain { padding-left: 1.2rem; max-width: 38rem; }
.note { border-left: 3px solid var(--cyan); padding: 0.25rem 0 0.25rem 1rem; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: 0.95rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
footer.site a { color: var(--muted); margin-left: 1.25rem; }
footer.site a:hover { color: var(--ice); }

@media (max-width: 52rem) {
  .hero { padding: 3rem 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: min(40%, 8.5rem); order: -1; justify-self: start; }
  .services { grid-template-columns: 1fr; }
  .services > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .services > div:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  nav a { margin-left: 1rem; }
}
@media (max-width: 30rem) {
  .steps { grid-template-columns: 1fr; }
  .brand span { letter-spacing: 0.16em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; filter: drop-shadow(0 0 30px rgba(42, 107, 255, 0.4)); }
}
