/* Prisma – Light Puzzle · sito vetrina
   Stessi token del tema "Grafite" dell'app. Nessuna risorsa esterna. */

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/MPLUSRounded1c-Thin.woff2") format("woff2");
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/MPLUSRounded1c-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/MPLUSRounded1c-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg0: #030303;
  --bg1: #1c1d1f;
  --bg2: #0d0e0f;
  --bg3: #09090a;
  --tint: 171, 174, 179;
  --muted: #96989d;
  --soft: #d0d2d6;
  --dim: #5c5e62;
  --ink: #e8ecff;
  --ink-bright: #f2f5ff;
  --red: #ff6f7d;
  --green: #6dfc9f;
  --blue: #6f9bff;
  --yellow: #ffe66d;
  --cyan: #6df2ff;
  --magenta: #ff7df2;
  --radius: 24px;
  --font: "SF Pro Rounded", ui-rounded, "M PLUS Rounded 1c", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 70% at 50% 0%, var(--bg1) 0%, var(--bg2) 60%, var(--bg3) 100%) fixed, var(--bg3);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip; /* l'alone dei raggi esce dall'illustrazione */
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--ink-bright); text-decoration: underline; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* ---------- Intestazione ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 22px 0;
}
@media (max-width: 520px) {
  .site-header { justify-content: center; }
  .site-nav { justify-content: center; gap: 8px 16px; font-size: 14px; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-bright);
  font-weight: 400;
  letter-spacing: .04em;
}
.brand:hover { text-decoration: none; color: var(--ink-bright); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--soft); }
.site-nav a[aria-current="page"] { color: var(--ink-bright); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 24px 0 72px; }
.hero .tagline { margin-top: 26px; }
.hero svg { width: min(560px, 100%); height: auto; display: block; margin: 0 auto; overflow: visible; }
.tagline { margin: 14px 0 0; font-size: clamp(18px, 2.6vw, 22px); color: var(--soft); }
.lead { margin: 10px auto 0; max-width: 560px; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 34px;
  margin-top: 32px;
  border-radius: 29px;
  background: var(--ink-bright);
  color: var(--bg2);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: .04em;
  box-shadow: 0 0 32px rgba(190, 205, 255, .28);
}
.button:hover { text-decoration: none; color: var(--bg2); box-shadow: 0 0 40px rgba(190, 205, 255, .4); }
.button svg { width: 20px; height: 20px; }
.note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Sezioni ---------- */
section { padding: 56px 0; }
h1, h2, h3 { font-weight: 300; color: var(--ink-bright); line-height: 1.25; }
h1 { font-size: clamp(30px, 5vw, 40px); margin: 8px 0 6px; }
h2 { font-size: clamp(24px, 3.6vw, 30px); margin: 0 0 18px; }
h3 { font-size: 19px; font-weight: 400; margin: 0 0 6px; }
.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.card {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: rgba(var(--tint), .05);
  border: 1px solid rgba(var(--tint), .1);
}
.card p { margin: 0; color: var(--soft); font-size: 16px; }
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: var(--c, var(--ink-bright));
  box-shadow: 0 0 12px var(--c, var(--ink-bright));
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  border: 1px solid rgba(var(--tint), .14);
  background: var(--bg2);
}
.shots figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mixing { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; color: var(--soft); font-size: 15px; }
.mixing span { display: inline-flex; align-items: center; gap: 8px; }
.mixing i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

.price {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.price .card { flex: 1 1 260px; }
.price strong { display: block; font-size: 30px; font-weight: 100; color: var(--ink-bright); }

/* ---------- Testi lunghi (privacy, supporto) ---------- */
.doc { padding: 24px 0 64px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc .card { margin: 18px 0; }
details {
  border-radius: 18px;
  background: rgba(var(--tint), .05);
  border: 1px solid rgba(var(--tint), .1);
  padding: 4px 20px;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 400;
  color: var(--ink-bright);
}
details p { margin: 0 0 16px; }

/* ---------- Piè di pagina ---------- */
.site-footer {
  border-top: 1px solid rgba(var(--tint), .1);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
/* Due righe: Contatti e Informazioni, ciascuna con le voci affiancate. */
.footer-grid { display: flex; flex-direction: column; gap: 10px; }
.footer-grid > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.footer-grid .eyebrow { margin: 0; min-width: 120px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-list li { margin: 0; }
.footer-list a { display: inline-block; padding: 10px 0; font-size: 15px; }
@media (max-width: 520px) {
  .footer-grid > div { flex-direction: column; gap: 0; }
}
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(var(--tint), .08); }
.site-footer a { color: var(--soft); }
/* Spazio per la barra dei cookie finché è aperta. */
body:has(.avviso:not([hidden])) .site-footer { padding-bottom: 120px; }

/* ---------- Logo animato "Scritta di luce" (come la splash dell'app) ---------- */
.logo .beam { stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: draw 2.5s ease-in-out .25s forwards; }
.logo .l { stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: draw 1.1s ease-in-out calc(.35s + var(--i) * .18s) forwards; }
.logo .letters-glow { opacity: .6; animation: flash 1.2s ease-in-out 3s 1; }
.logo .mirrors { opacity: 0; animation: appear .25s ease-in-out forwards; }
.logo .hit { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hit .7s ease-in-out 2.65s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes flash { 50% { opacity: 1; } }
@keyframes hit {
  0% { opacity: 0; transform: scale(.3); }
  50% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .logo .beam, .logo .l { animation: none; stroke-dashoffset: 0; }
  .logo .letters-glow { animation: none; }
  .logo .mirrors, .logo .hit { animation: none; opacity: 1; }
}

/* ---------- Avviso cookie ---------- */
.avviso {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10;
  width: min(720px, 100% - 32px);
  display: flex;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 14px 14px 20px;
  border-radius: 22px;
  background: rgba(28, 29, 31, .94);
  border: 1px solid rgba(var(--tint), .16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.45;
  color: var(--soft);
}
.avviso[hidden] { display: none; }
.avviso p { margin: 0; flex: 1; }
.avviso button {
  flex: none;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 22px;
  background: var(--ink-bright);
  color: var(--bg2);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}
.avviso button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 520px) {
  .avviso { flex-direction: column; align-items: stretch; text-align: center; padding: 16px; }
}

/* Tabella della cookie policy */
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(var(--tint), .12); color: var(--soft); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
