/* Sistema grafico comune del sito pubblico di ProjectAZ */
:root {
  --ink: #05070f;
  --surface: #0a0f1d;
  --surface-2: #111830;
  --line: rgba(170, 200, 255, .14);
  --line-strong: rgba(170, 200, 255, .3);
  --text: #e9eef8;
  --muted: #a3afc8;
  --ice: #8fd0ff;
  --ice-strong: #3a95ff;
  --toxic: #a6e86a;
  --amber: #ffbe6b;
  --accent: var(--ice);
  --display: "Cinzel", Georgia, serif;
  --serif: "Spectral", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 16px/1.65 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: .01em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ice-strong); color: #fff; }
.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.kicker { font: 700 12px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.lede { font: 400 clamp(18px, 1.6vw, 22px)/1.55 var(--serif); color: var(--muted); }
.silver {
  background: linear-gradient(178deg, #fff 8%, #cfd9ea 44%, #8294b3 56%, #eef3fb 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255, 255, 255, .04);
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .09); border-color: var(--ice); }
.btn.primary {
  border-color: transparent; color: #03101f; background: linear-gradient(180deg, #bfe6ff, #5fb2ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 34px rgba(58, 149, 255, .36);
}
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 12px 44px rgba(58, 149, 255, .6); }

/* Barra di navigazione */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(6, 9, 18, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.nav::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(3, 5, 12, .66), transparent); transition: opacity .3s; }
.nav.solid::before { opacity: 0; }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px var(--display); letter-spacing: .08em; }
.nav-logo img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 8px; color: var(--muted);
  font-weight: 600; font-size: 14.5px; text-decoration: none; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--ice);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-azioni { display: flex; gap: 8px; }
.nav .btn { min-height: 38px; padding: 0 14px; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; background: rgba(8, 16, 36, .6); }
.nav .btn:first-child { border-color: rgba(143, 208, 255, .75); color: #d6eeff; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: none; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; margin: auto; background: var(--text); content: ""; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-azioni { display: none; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column;
    padding: 10px var(--gutter) 18px; background: rgba(6, 9, 18, .96); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6px; font-size: 16px; }
}

/* Piè di pagina */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.foot h4 { font: 700 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot li a { text-decoration: none; color: var(--text); }
.foot li a:hover { color: var(--ice); }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; font: 700 20px var(--display); }
.foot-brand img { width: 48px; }
.foot small { display: block; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }

/* Comparsa allo scorrimento */
.rise { opacity: 0; transform: translateY(26px); }
.rise.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* Testata delle pagine interne */
.page-head { position: relative; isolation: isolate; padding: 148px 0 56px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 120% at 80% 0%, rgba(58, 149, 255, .22), transparent 70%),
    radial-gradient(40% 90% at 10% 10%, rgba(120, 90, 255, .14), transparent 70%);
}
.page-head h1 { font-size: clamp(38px, 6vw, 68px); margin-top: 10px; }
.page-head .lede { max-width: 62ch; margin-top: 14px; }
.non-disponibile { padding: 28px 12px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}
