/* ==========================================================================
   Franchetti Raw Converter Pro — foglio di stile
   ========================================================================== */

:root {
  --bg: #08090b;
  --bg-soft: #0c0e12;
  --panel: #10141a;
  --panel-2: #151a22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #edf1f5;
  --muted: #9aa6b3;
  --muted-2: #6f7b88;
  --accent: #e4a462;
  --accent-soft: rgba(228, 164, 98, 0.12);
  --teal: #79b4ae;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --max: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---------- Tipografia di sezione ---------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 18px 0 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  max-width: 62ch;
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
  border-top: 1px solid var(--line);
}

.section--soft { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }

/* ---------- Navigazione --------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(8, 9, 11, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 640;
  letter-spacing: -0.01em;
  font-size: 15px;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand span { color: var(--muted); font-weight: 500; }

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--text); }

.nav__cta {
  margin-left: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #0a0b0d;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }

@media (max-width: 900px) {
  .nav__links { display: none; }
}

@media (max-width: 430px) {
  .wrap { padding-inline: 20px; }
  .brand { font-size: 13.5px; gap: 9px; }
  .brand img { width: 26px; height: 26px; }
  .nav__cta { padding: 8px 15px; font-size: 13px; }
  .hero { padding-top: 120px; }
}

@media (max-width: 360px) {
  .brand span { display: none; }
}

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: grid;
  align-content: end;
  padding: 150px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.04);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(8, 9, 11, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.72) 0%, rgba(8, 9, 11, 0.55) 35%, rgba(8, 9, 11, 0.92) 78%, var(--bg) 100%);
}

.hero__inner { max-width: 760px; }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  margin: 20px 0 22px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: #cfd6dd;
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.9;
}

/* ---------- Pulsanti ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 620;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #f0b878, var(--accent));
  color: #1a1207;
  box-shadow: 0 14px 34px rgba(228, 164, 98, 0.22);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(228, 164, 98, 0.3); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

.btn small { font-weight: 500; opacity: 0.75; font-size: 12.5px; }

.btn svg { width: 17px; height: 17px; }

/* ---------- Fascia fiducia ------------------------------------------------ */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust__item {
  background: var(--bg-soft);
  padding: 30px 26px;
}

.trust__item h3 {
  font-size: 15px;
  margin-bottom: 7px;
}

.trust__item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
}

/* ---------- Passi --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -13px;
  left: 0;
  padding-right: 12px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.step h3 { font-size: 19px; margin-bottom: 8px; }

.step p { color: var(--muted); font-size: 15px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Schede funzioni ---------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(228, 164, 98, 0.22);
  margin-bottom: 20px;
}

.card__icon svg { width: 21px; height: 21px; stroke: var(--accent); }

.card h3 { font-size: 19px; margin-bottom: 9px; }

.card p { color: var(--muted); font-size: 15px; }

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.card li { margin-bottom: 5px; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Novità -------------------------------------------------------- */

.release {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.release__list {
  display: grid;
  gap: 14px;
}

.release__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.release__item .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
  padding-top: 3px;
}

.release__item h3 { font-size: 16.5px; margin-bottom: 5px; }

.release__item p { font-size: 14.5px; color: var(--muted); }

.bench {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 30px;
}

.bench h3 { font-size: 18px; margin-bottom: 6px; }

.bench > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.bars {
  display: grid;
  gap: 14px;
  margin: 4px 0 22px;
}

.bars__row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.bars__row > span { white-space: nowrap; }

.bars__row i {
  position: relative;
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bars__row i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(228, 164, 98, 0.55), var(--accent));
}

.bars__row:nth-child(3) i::after {
  background: linear-gradient(90deg, rgba(121, 180, 174, 0.45), var(--teal));
}

.bars__row b {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: #cfd8e1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 430px) {
  .bars__row { grid-template-columns: 92px minmax(0, 1fr) 54px; gap: 9px; font-size: 12px; }
}

.bench__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .release { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Confronti prima / dopo --------------------------------------- */

.scenes {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 14px;
  box-shadow: var(--shadow);
}

.ba__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin: 2px 2px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.ba__tabs::-webkit-scrollbar { display: none; }

.ba__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 560;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.ba__tab:hover { color: var(--text); }

.ba__tab.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.scene { display: grid; gap: 18px; }

.scene[hidden] { display: none; }

.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #05060a;
  aspect-ratio: 3 / 2;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba__layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  will-change: clip-path;
}

.ba__layer img { position: absolute; }

.ba__tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f1f5f8;
  background: rgba(6, 7, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; border-color: rgba(228, 164, 98, 0.45); color: #f4d2a8; }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 4;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(10, 12, 16, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.ba__handle::before {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -53%);
  font-size: 17px;
  line-height: 1;
  color: #fff;
}

.ba__range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.ba__range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 100%;
}

.ba__range::-moz-range-thumb {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
}

.scene__meta {
  display: grid;
  gap: 14px;
  padding: 0 6px 8px;
}

.scene__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.scene__chips span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.scene__meta p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 92ch;
}

.scene__meta b { color: #dbe3ea; font-weight: 600; }

/* ---------- Ritagli 100% -------------------------------------------------- */

.crops {
  margin-top: 40px;
  display: grid;
  gap: 16px;
}

.crops__head {
  display: grid;
  gap: 6px;
  max-width: 78ch;
}

.crops__head p { font-size: 14.5px; color: var(--muted); }

.crops__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.crop {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #05060a;
}

.crop img { display: block; width: 100%; height: auto; }

.crop figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-2);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.crop:last-child figcaption { color: #e3c79f; }

/* ---------- Motore -------------------------------------------------------- */

.engine {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 34px;
  margin-top: 40px;
  align-items: start;
}

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.pipeline li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}

.pipeline li:last-child { border-bottom: 0; }

.pipeline__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
}

.pipeline h3 {
  font-size: 15.5px;
  margin-bottom: 3px;
}

.pipeline p {
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--muted);
}

.engine__aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.chart {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0d10;
}

.chart img { display: block; width: 100%; height: auto; }

.chart figcaption {
  padding: 12px 15px 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted-2);
}

.statline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.statline > div {
  background: var(--panel);
  padding: 16px 18px;
}

.statline dt {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.statline dd {
  margin: 2px 0 0;
  font-size: 27px;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.engine__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
}

@media (max-width: 980px) {
  .engine { grid-template-columns: 1fr; }
  .engine__aside { position: static; }
}

/* ---------- Flusso tethering --------------------------------------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.flow__item {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.flow__item::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -19px;
  width: 19px;
  height: 1px;
  background: var(--line-strong);
}

.flow__item:last-child::after { display: none; }

.flow__num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid rgba(228, 164, 98, 0.34);
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.flow__item h3 { font-size: 16.5px; margin-bottom: 7px; }

.flow__item p { font-size: 14px; line-height: 1.55; color: var(--muted); }

.flow__note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.flow__note p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__item::after { display: none; }
}

@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; }
  .flow__note { grid-template-columns: 1fr; }
  .crops__grid { grid-template-columns: 1fr; }
}

/* ---------- Pack preset --------------------------------------------------- */

.pack {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(121, 180, 174, 0.26);
  border-radius: var(--radius);
  background: rgba(121, 180, 174, 0.05);
}

.pack h4 {
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 600;
}

.pack p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.pack__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(121, 180, 174, 0.5);
  padding-bottom: 2px;
}

.pack__link span {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--teal);
}

.pack__link:hover { color: var(--teal); }

.lut__cta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

/* ---------- Formati ------------------------------------------------------- */

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.formats span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #c3ced8;
  background: rgba(255, 255, 255, 0.025);
}

.formats__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- Galleria ------------------------------------------------------ */

.shots {
  display: grid;
  gap: 26px;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.shot__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.shot__bar span {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
}

.shot img { width: 100%; }

.shot__caption {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.shot__caption b { color: var(--text); font-weight: 600; }

.shots--three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .shots--three { grid-template-columns: 1fr; }
}

/* ---------- Banda fotografica -------------------------------------------- */

.band {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0;
  background-image: url("assets/band.jpg");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.72) 45%, rgba(8, 9, 11, 0.35) 100%);
}

.band blockquote {
  margin: 0;
  max-width: 640px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.band p {
  margin-top: 22px;
  max-width: 54ch;
  color: #c9d2da;
  font-size: 17px;
}

/* ---------- Genres (card foto) ------------------------------------------- */

.genres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.genre {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.genre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.genre:hover img { transform: scale(1.04); }

.genre figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 18px;
  background: linear-gradient(0deg, rgba(6, 7, 9, 0.92), transparent);
  font-size: 14.5px;
}

.genre figcaption b { display: block; font-weight: 620; }

.genre figcaption span { color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .genres { grid-template-columns: 1fr; }
}

/* ---------- LUT Franchetti Arts -------------------------------------------- */

.lut {
  display: grid;
  gap: 30px;
}

.lut__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0b0d;
}

.lut__figure img { display: block; width: 100%; height: auto; }

.lut__zoom { display: block; cursor: zoom-in; }

.lut__figure figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-2);
}

.lut__info {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 26px 36px;
  align-items: start;
}

.lut__info h3 { font-size: 18px; margin-bottom: 14px; }

.lut__families {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
  font-size: 14px;
  color: var(--muted);
}

.lut__families b { color: var(--text); font-weight: 600; }

.lut__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.lut__stats span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
}

.lut__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lut__actions .btn { flex: 1 1 220px; justify-content: center; }

.lut__hint {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-2);
}

@media (max-width: 900px) {
  .lut__info { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .lut__families { grid-template-columns: 1fr; }
}

/* ---------- Compatibilità ------------------------------------------------- */

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.spec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: var(--panel);
}

.spec h3 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
  font-weight: 600;
}

.spec p { font-size: 15.5px; color: #d9e0e7; }

.spec p + p { margin-top: 10px; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .specs { grid-template-columns: 1fr; }
}

/* ---------- FAQ ----------------------------------------------------------- */

.faq { display: grid; gap: 12px; max-width: 860px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0 22px;
  transition: border-color 0.2s ease;
}

.faq details[open] { border-color: var(--line-strong); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-size: 16.5px;
  font-weight: 580;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq p {
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
  max-width: 72ch;
}

/* ---------- Download ------------------------------------------------------ */

.download {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(228, 164, 98, 0.13), transparent 55%),
    radial-gradient(80% 120% at 92% 100%, rgba(121, 180, 174, 0.12), transparent 55%),
    var(--bg-soft);
}

.download__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.download h2 {
  font-size: clamp(30px, 4vw, 50px);
  margin: 16px 0 18px;
}

.download__lead { color: var(--muted); font-size: 17.5px; max-width: 50ch; }

.download__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.download__hint { margin-top: 18px; font-size: 13.5px; color: var(--muted-2); }

.hash {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  padding: 22px;
}

.hash h3 {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.hash code {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: #b9c4ce;
  overflow-wrap: anywhere;
}

.hash p { margin-top: 14px; font-size: 13px; color: var(--muted-2); }

.hash .cmd {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #06070a;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  word-break: break-all;
}

@media (max-width: 900px) {
  .download__inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Footer -------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 54px;
  font-size: 13.5px;
  color: var(--muted-2);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer strong { color: var(--muted); font-weight: 600; }

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

.footer__credits { max-width: 46ch; line-height: 1.6; }
.footer__signing { max-width: 40ch; line-height: 1.6; }

@media (max-width: 640px) {
  .scenes { padding: 10px; }
  .ba__tabs { width: 100%; flex-wrap: wrap; overflow: visible; border-radius: 16px; }
  .ba__tab { flex: 1 1 auto; padding: 8px 10px; font-size: 12.5px; text-align: center; }
  .ba__tag { top: 10px; padding: 4px 9px; font-size: 10px; }
  .ba__tag--l { left: 10px; }
  .ba__tag--r { right: 10px; }
  .ba__handle::after { width: 32px; height: 32px; }
  .ba__handle::before { font-size: 13px; }
  .pipeline li { grid-template-columns: 40px 1fr; padding: 15px 16px; }
  .scene__meta { padding: 0 2px 4px; }
}

/* ---------- Utilità ------------------------------------------------------- */

.mono {
  font-family: var(--mono);
  font-size: 0.9em;
  color: #c9d3dd;
}

.badge-beta {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(121, 180, 174, 0.12);
  border: 1px solid rgba(121, 180, 174, 0.32);
  vertical-align: middle;
}

.note-licenza {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted-2);
  max-width: 70ch;
}

/* ---------- Animazioni ---------------------------------------------------- */

/* L'animazione è un miglioramento progressivo: senza JS il contenuto è
   subito visibile. Solo quando app.js è attivo (classe js-reveal su <html>)
   gli elementi partono nascosti e compaiono allo scroll. */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .genre img, .card, .btn { transition: none; }
}

/* ---------- Focus visibile ------------------------------------------------ */

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Linux e macOS — sezione e guida
   ========================================================================== */

#linux { scroll-margin-top: 90px; }

.lx {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.lx::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto;
  height: 70%;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 18% 28%, rgba(121, 180, 174, 0.16), transparent 70%),
    radial-gradient(40% 55% at 82% 12%, rgba(228, 164, 98, 0.13), transparent 70%);
  pointer-events: none;
}

.lx-head {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 76px);
}

.lx-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  margin: 18px 0 18px;
  letter-spacing: -0.025em;
}

.lx-head h2 em {
  font-style: normal;
  color: var(--accent);
}

.lx-head p {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 56ch;
}

.lx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.lx-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.lx-chip--warn {
  border-color: rgba(228, 164, 98, 0.35);
  color: #e9bd8b;
  background: rgba(228, 164, 98, 0.08);
}

/* --- Finestra applicazione ------------------------------------------------ */

.lx-visual {
  position: relative;
  padding: 52px 0 26px;
}

.lx-visual::before {
  content: "";
  position: absolute;
  inset: 12% -8% 0;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(60% 70% at 55% 45%, rgba(121, 180, 174, 0.22), transparent 72%);
  filter: blur(18px);
}

.lx-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: #0b0e13;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: rotate(-1.1deg);
}

.lx-frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #151a22, #10141a);
}

.lx-frame__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3c454f;
}

.lx-frame__bar i:first-child { background: #c9745f; }
.lx-frame__bar i:nth-child(2) { background: #c9a35f; }
.lx-frame__bar i:nth-child(3) { background: #79b4ae; }

.lx-frame__bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.lx-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.lx-visual__caption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: right;
}

.lx-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  animation: lx-float 7s ease-in-out infinite;
}

.lx-float svg { width: 18px; height: 18px; }

.lx-float__tile {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(160deg, #f7fafc, #dbe3ea);
}

.lx-float__tile svg { width: 17px; height: 17px; }

.lx-float--mac { top: -4px; right: 4%; }
.lx-float--linux { bottom: 20%; left: -70px; animation-delay: -3.2s; }

@keyframes lx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .lx-float { animation: none; }
}

/* --- Schede piattaforma --------------------------------------------------- */

.lx-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.lx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--panel);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lx-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  opacity: 0.75;
}

.lx-card--mac::after { background: linear-gradient(90deg, #cdd6e0, #79b4ae, transparent 85%); }
.lx-card--linux::after { background: linear-gradient(90deg, #e4a462, #c9745f, transparent 85%); }

.lx-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.lx-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.lx-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(160deg, #f7fafc, #dbe3ea);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.lx-logo svg { width: 34px; height: 34px; }

.lx-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e9bd8b;
  border: 1px solid rgba(228, 164, 98, 0.35);
  background: rgba(228, 164, 98, 0.08);
  padding: 5px 10px;
  border-radius: 999px;
}

.lx-card h3 {
  font-size: 24px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.lx-card__sub {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.lx-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.lx-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.lx-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--muted);
}

.lx-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--teal);
  border-bottom: 1.6px solid var(--teal);
  transform: rotate(-45deg);
}

.lx-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.lx-card__actions .btn {
  padding: 12px 20px;
  font-size: 14.5px;
}

.lx-card__meta {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

/* --- Passaggi ------------------------------------------------------------- */

.lx-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(44px, 5vw, 64px);
}

.lx-step {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.lx-step__n {
  display: block;
  font-family: var(--mono);
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(228, 164, 98, 0.55);
  margin-bottom: 14px;
}

.lx-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.lx-step p {
  font-size: 14.5px;
  color: var(--muted);
}

.lx-step svg {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 22px;
  height: 22px;
  stroke: var(--muted-2);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Terminale ------------------------------------------------------------ */

.lx-term {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #07090c;
  box-shadow: var(--shadow);
  margin-bottom: clamp(44px, 5vw, 64px);
}

.lx-term__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #12161d, #0b0e13);
}

.lx-dots { display: flex; gap: 6px; }

.lx-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3c454f;
}

.lx-dots i:first-child { background: #c9745f; }
.lx-dots i:nth-child(2) { background: #c9a35f; }
.lx-dots i:nth-child(3) { background: #79b4ae; }

.lx-tabs { display: flex; gap: 4px; }

.lx-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lx-tab:hover { color: var(--text); }

.lx-tab.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.lx-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lx-copy:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.08); }
.lx-copy.is-done { color: var(--teal); border-color: rgba(121, 180, 174, 0.45); }
.lx-copy svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.lx-term__body { position: relative; }

.lx-term pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: #c6d2de;
}

.lx-term pre[hidden] { display: none; }

.lx-term .c { color: #5f6b78; }
.lx-term .p { color: var(--teal); }

.lx-term__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 24px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  font-size: 12px;
  color: var(--muted-2);
}

/* --- Note ---------------------------------------------------------------- */

.lx-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.lx-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.lx-note h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.lx-note h3 svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.7; }

.lx-note ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.lx-note li { padding-left: 15px; position: relative; }

.lx-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.lx-note p { font-size: 14px; color: var(--muted); }
.lx-note code,
.lx-card code,
.lx-term code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--text);
}

/* --- Foto di ambiente ---------------------------------------------------- */

.lx-photo {
  position: relative;
  min-height: clamp(280px, 40vw, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: url("assets/band.jpg") center 42% / cover no-repeat;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.lx-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.15) 0%, rgba(8, 9, 11, 0.55) 55%, rgba(8, 9, 11, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 9, 11, 0.75), transparent 65%);
}

.lx-photo__inner {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 44px);
  max-width: 720px;
}

.lx-photo h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  margin: 12px 0 14px;
  letter-spacing: -0.01em;
}

.lx-photo p {
  color: #c2ccd6;
  font-size: 15px;
  max-width: 58ch;
}

.lx-photo .lx-chips { margin-top: 20px; }

.lx-photo .lx-chip {
  background: rgba(8, 9, 11, 0.55);
  backdrop-filter: blur(6px);
}

/* --- Invito alla guida --------------------------------------------------- */

.lx-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(121, 180, 174, 0.14), transparent 65%),
    radial-gradient(50% 120% at 100% 100%, rgba(228, 164, 98, 0.12), transparent 65%),
    var(--panel);
}

.lx-cta h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 6px; }
.lx-cta p { color: var(--muted); font-size: 15px; max-width: 52ch; }
.lx-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-cta__actions .btn { padding: 13px 22px; font-size: 14.5px; }

/* --- Pagina guida --------------------------------------------------------- */

.lx-hero {
  position: relative;
  padding: 150px 0 70px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.lx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 80% at 20% 0%, rgba(121, 180, 174, 0.18), transparent 65%),
    radial-gradient(45% 70% at 85% 20%, rgba(228, 164, 98, 0.14), transparent 65%),
    linear-gradient(180deg, #0a0c10, var(--bg));
}

.lx-hero__inner { max-width: 780px; }
.lx-hero h1 { font-size: clamp(36px, 5vw, 60px); margin: 18px 0 20px; letter-spacing: -0.03em; }
.lx-hero h1 em { font-style: normal; color: var(--accent); }
.lx-hero p { color: var(--muted); font-size: 18px; max-width: 60ch; }

.lx-hero__logos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.lx-hero__logos .lx-logo { width: 46px; height: 46px; border-radius: 13px; }
.lx-hero__logos .lx-logo svg { width: 27px; height: 27px; }
.lx-hero__logos span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

.lx-doc {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 0;
}

.lx-doc > section { padding: 0 0 clamp(44px, 5vw, 64px); }
.lx-doc > section + section { border-top: 1px solid var(--line); padding-top: clamp(40px, 4vw, 56px); }

.lx-doc h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.lx-doc h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}

.lx-doc > section > p,
.lx-doc .lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
  margin-bottom: 18px;
}

.lx-doc h3 { font-size: 18px; margin: 26px 0 10px; }
.lx-doc p { color: var(--muted); font-size: 15.5px; }
.lx-doc p + p { margin-top: 10px; }

.lx-doc p code,
.lx-doc li code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.lx-stepblock {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.lx-stepblock > div { min-width: 0; }

.lx-stepblock:first-of-type { border-top: 0; }

.lx-stepblock__n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(228, 164, 98, 0.4);
  background: rgba(228, 164, 98, 0.08);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

.lx-stepblock h3 { margin: 4px 0 8px; }
.lx-stepblock p { margin-bottom: 10px; }

.lx-code {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #07090c;
  overflow: hidden;
  margin: 12px 0 6px;
}

.lx-code__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.lx-code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: #c6d2de;
}

.lx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 14.5px;
}

.lx-table th,
.lx-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.lx-table th {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.lx-table td { color: var(--muted); }
.lx-table td:first-child { color: var(--text); white-space: nowrap; }
.lx-table code { font-family: var(--mono); font-size: 0.9em; color: var(--text); }

.lx-callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  background: rgba(121, 180, 174, 0.06);
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--muted);
}

.lx-callout--warn {
  border-left-color: var(--accent);
  background: rgba(228, 164, 98, 0.06);
}

.lx-callout strong { color: var(--text); }
.lx-callout svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; stroke: var(--teal); fill: none; stroke-width: 1.7; }
.lx-callout--warn svg { stroke: var(--accent); }

.lx-dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), var(--panel);
  margin: 24px 0 6px;
}

.lx-dl .btn { padding: 13px 22px; font-size: 14.5px; }
.lx-dl code { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); word-break: break-all; }
.lx-dl__meta { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted-2); }

.lx-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 10px;
}

.lx-download {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 26px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--panel);
}

.lx-download h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin: 0;
}

.lx-download h3 svg { width: 21px; height: 21px; flex: 0 0 21px; }
.lx-download p { font-size: 14px; color: var(--muted); margin: 0; }

.lx-download .btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 12px 20px;
  font-size: 14.5px;
}

.lx-download__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted-2);
  word-break: break-all;
}

@media (max-width: 760px) {
  .lx-downloads { grid-template-columns: 1fr; }
}

.lx-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 22px;
}

.lx-back:hover { color: var(--text); }

@media (max-width: 980px) {
  .lx-head { grid-template-columns: 1fr; }
  .lx-visual { max-width: 620px; }
  .lx-platforms,
  .lx-steps,
  .lx-notes { grid-template-columns: 1fr; }
  .lx-float--linux { left: 0; }
}

@media (max-width: 640px) {
  .lx-float { display: none; }
  .lx-frame { transform: none; }
  .lx-cta { flex-direction: column; align-items: flex-start; }
  .lx-stepblock { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lx-doc { padding-inline: 20px; }
  .lx-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Stampa -------------------------------------------------------- */

@media print {
  .nav, .hero__bg, .hero__scrim, .band { background: none !important; }
  body { background: #fff; color: #000; }
}
