/* ===========================================================================
   Medilust — Cinematic site styles
   Design system + hero lab (Fase 1). Sezioni complete in Fase 3.
   Caricato solo dal root layout `site.html.heex` (le pagine legali usano landing.css).
   =========================================================================== */

/* ---------------------------------------------------------------- Tokens */
:root {
  /* color world — brand-true (Medilust Brand Guidelines v1.0) */
  --bg: #06080c; /* near-black, faint navy */
  --bg-2: #0a0f17; /* alt sections / digital navy (cfr. cover LinkedIn) */
  --surface: #0c1119; /* superficie piatta (niente glass) */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  --blue: #0086c4; /* Blu Medilust — unico accento primario */
  --blue-2: #1f9fda; /* tint più chiaro per hover/link (brand, NON neon) */
  --blue-neon: var(--blue-2); /* compat: vecchi riferimenti -> tint brand */
  --blue-deep: #00567e;
  --metal: #b8a98c; /* accento secondario raro (luxury / title-card) */
  --amber: #b8a98c; /* compat */

  --text: #eef1f5;
  --text-2: #9aa7b4;
  --text-3: #5f6b78;

  --glow-blue: 0 0 0 1px rgba(0, 134, 196, 0.4);
  --radius: 14px;
  --radius-lg: 22px;

  /* Tipografia ufficiale: Montserrat per titoli/testi; Eastman Alt SOLO per i
     titoli d'impatto (var --font-impact). Fallback a Montserrat se assente. */
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-impact: "Eastman Alt", "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1200px;
}

/* ---------------------------------------------------------------- Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
::selection {
  background: rgba(0, 134, 196, 0.32);
  color: #fff;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #16202f;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1d2a3d;
}

/* ---------------------------------------------------------------- Type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-2);
}
/* editoriale: un trattino blu, niente pallino con glow */
.eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: var(--blue);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}
.grad {
  color: var(--blue);
}
.muted {
  color: var(--text-2);
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  --pad-y: 0.95rem;
  --pad-x: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
  will-change: transform;
}
.btn-primary {
  color: #fff;
  background: var(--blue);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--blue-2);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--hairline-strong);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  color: #fff;
}

/* ---------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------------------------------------------------------------- Hero shell */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
/* lab prototypes: cinematic visual on top, text anchored lower */
.hero--lab {
  justify-content: flex-end;
  padding-bottom: 9vh;
}
.hero--lab .hero-scrollcue {
  display: none;
}
@media (max-width: 640px) {
  .hero--lab {
    padding-bottom: 13vh;
  }
}
/* radial glow + vignette layered above canvas, below content */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 48% at 50% 42%, rgba(0, 134, 196, 0.2), transparent 72%),
    radial-gradient(120% 75% at 50% 122%, rgba(5, 7, 13, 0.82), transparent 60%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.42) 0%, transparent 20%, transparent 62%, rgba(5, 7, 13, 0.75) 100%);
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 2px 30px rgba(5, 7, 13, 0.55);
}
.hero-title {
  font-size: clamp(2.7rem, 7.2vw, 6.4rem);
  font-weight: 600;
  line-height: 0.98;
  margin: 1.4rem 0 0;
  max-width: 16ch;
}
.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  color: var(--text-2);
  font-weight: 300;
}
.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-scrollcue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-3);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scrollcue .mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 12px;
  position: relative;
}
.hero-scrollcue .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--blue-neon);
  animation: wheel 1.8s var(--ease) infinite;
}

/* ---------------------------------------------------------------- Reveal anim */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
[data-reveal][data-d="1"].is-in {
  transition-delay: 0.08s;
}
[data-reveal][data-d="2"].is-in {
  transition-delay: 0.16s;
}
[data-reveal][data-d="3"].is-in {
  transition-delay: 0.24s;
}
[data-reveal][data-d="4"].is-in {
  transition-delay: 0.32s;
}

/* ---------------------------------------------------------------- Lab chrome */
.lab-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem);
}
.lab-nav .brand {
  height: 26px;
}
.lab-switch {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
}
.lab-switch a {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
}
.lab-switch a:hover {
  color: #fff;
  background: var(--glass-strong);
}
.lab-switch a[aria-current="true"] {
  color: #fff;
  background: linear-gradient(120deg, var(--blue-neon), var(--blue));
  box-shadow: 0 6px 18px -6px rgba(43, 182, 240, 0.7);
}
.lab-label {
  position: absolute;
  bottom: 1.5rem;
  right: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 5;
  font-size: 0.78rem;
  color: var(--text-2);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
}
.lab-label b {
  color: #fff;
  font-weight: 600;
}

/* ---- variant 3: floating conversation chips ---- */
.chip-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.chip {
  position: absolute;
  padding: 0.6rem 0.95rem;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  color: var(--text-2);
  white-space: nowrap;
  opacity: 0;
  animation: chipFloat 9s var(--ease) infinite;
}
.chip b {
  color: var(--blue-neon);
  font-weight: 600;
}
.chip:nth-child(1) {
  top: 24%;
  left: 8%;
  animation-delay: 0.2s;
}
.chip:nth-child(2) {
  top: 62%;
  left: 12%;
  animation-delay: 2.4s;
}
.chip:nth-child(3) {
  top: 32%;
  right: 9%;
  animation-delay: 1.3s;
}
.chip:nth-child(4) {
  top: 68%;
  right: 11%;
  animation-delay: 3.6s;
}

/* ---------------------------------------------------------------- Keyframes */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 12px var(--blue-neon);
  }
  50% {
    opacity: 0.45;
    box-shadow: 0 0 4px var(--blue-neon);
  }
}
@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}
@keyframes chipFloat {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  12%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
}

/* ================================================================ PREVIEW (concept 1 long-scroll) */
.hero--home {
  justify-content: flex-end;
  padding-bottom: 13vh;
}

/* sticky glass nav */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(5, 7, 13, 0.35);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav .brand {
  height: 24px;
}
.nav-links {
  display: flex;
  gap: 1.7rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover {
  color: #fff;
}
.nav-links .btn {
  --pad-y: 0.6rem;
  --pad-x: 1.15rem;
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

/* generic section */
.section {
  position: relative;
  padding: clamp(5rem, 13vh, 9rem) 0;
}
.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  max-width: 20ch;
  margin-top: 1rem;
}
.section .lead {
  margin-top: 1.4rem;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--text-2);
  font-weight: 300;
}
.section--alt {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(0, 134, 196, 0.06), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--hairline);
}

/* problema — stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.4rem;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1;
}
.stat .lbl {
  margin-top: 0.6rem;
  color: var(--text-2);
  font-size: 0.98rem;
}
@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* manifesto */
.manifesto {
  text-align: center;
}
.manifesto h2 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
}
.manifesto .strike {
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 90, 90, 0.6);
}

/* come funziona — circuit diagram that draws on scroll */
.diagram {
  position: relative;
  max-width: 920px;
  margin: 3.5rem auto 0;
  aspect-ratio: 16 / 10;
}
.diagram svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.diagram .wire {
  fill: none;
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--p, 0));
  filter: drop-shadow(0 0 4px rgba(43, 182, 240, 0.7));
}
.diagram .hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle, rgba(43, 182, 240, 0.35), rgba(0, 134, 196, 0.05) 70%);
  border: 1px solid rgba(43, 182, 240, 0.5);
  box-shadow: 0 0 50px rgba(43, 182, 240, calc(0.2 + var(--p, 0) * 0.5));
}
.diagram .hub b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}
.diagram .hub span {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.diagram .chip {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: clamp(0, calc((var(--p, 0) - 0.45) * 3), 1);
  transition: opacity 0.15s linear;
}
.diagram .chip i {
  color: var(--blue-neon);
  font-style: normal;
}
@media (max-width: 640px) {
  .diagram .chip {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
  .diagram .hub {
    width: 88px;
    height: 88px;
  }
}

/* livelli L1 -> L4 */
.levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 3.4rem;
}
.level {
  padding: 1.7rem 1.4rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.level:hover {
  transform: translateY(-6px);
  border-color: rgba(43, 182, 240, 0.4);
  background: var(--glass-strong);
}
.level .lv {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
}
.level h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0.5rem 0 0.4rem;
}
.level p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin: 0;
}
@media (max-width: 860px) {
  .levels {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .levels {
    grid-template-columns: 1fr;
  }
}

/* preview ribbon + section CTA + footer */
.ribbon {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  font-size: 0.78rem;
  color: var(--text-2);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.7);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
}
.ribbon b {
  color: #fff;
}
.cta-band {
  text-align: center;
  padding: clamp(5rem, 14vh, 10rem) 0;
}
.cta-band h2 {
  margin: 0 auto;
  max-width: 18ch;
}
.cta-band .hero-cta {
  justify-content: center;
}
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0;
  color: var(--text-3);
  font-size: 0.9rem;
  text-align: center;
}

/* media slot marker (dove andrà il video Higgsfield) */
.media-slot {
  position: relative;
}
.media-slot::after {
  content: "▸ qui andrà il video Higgsfield";
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px dashed var(--hairline-strong);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  opacity: 0.6;
}

/* capacità grid */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 3.2rem;
}
.cap {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.cap:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 182, 240, 0.4);
  background: var(--glass-strong);
}
.cap .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, rgba(43, 182, 240, 0.25), rgba(0, 134, 196, 0.12));
  border: 1px solid rgba(43, 182, 240, 0.35);
}
.cap .ic svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue-neon);
}
.cap h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 0.3rem;
}
.cap p {
  color: var(--text-2);
  font-size: 0.88rem;
  margin: 0;
}
@media (max-width: 860px) {
  .caps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .caps {
    grid-template-columns: 1fr;
  }
}

/* compliance badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.4rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-neon);
  box-shadow: 0 0 10px var(--blue-neon);
}

/* team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 3.2rem;
}
.member {
  text-align: center;
}
.member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  filter: grayscale(0.25) brightness(0.95);
  transition:
    transform 0.45s var(--ease),
    filter 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.member:hover img {
  transform: translateY(-6px);
  filter: none;
  border-color: rgba(43, 182, 240, 0.45);
}
.member .nm {
  font-weight: 600;
  margin-top: 1rem;
}
.member .role {
  color: var(--text-2);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}
@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* demo form — vedi home.css (.demo-form): lo stile della home è autonomo e
   brand-true. Blocco dei vecchi prototipi rimosso per evitare collisioni
   (glow neon + layout a 2 colonne ereditati). */

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 640px) {
  .hero-title {
    margin-top: 1rem;
  }
  .lab-label {
    display: none;
  }
  .btn {
    --pad-x: 1.3rem;
  }
}

/* ---------------------------------------------------------------- V4 cine pinned scroll-scrub intro */
.cine {
  position: relative;
  height: 300vh;
}
.cine__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.cine__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.cine__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 45%, transparent, rgba(5, 7, 13, 0.45)),
    linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, transparent 28%, transparent 52%, rgba(5, 7, 13, 0.9) 100%);
}
.cine__panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  opacity: 0;
  will-change: opacity;
  text-shadow: 0 2px 34px rgba(5, 7, 13, 0.65);
}
/* fallback no-JS: l'hero resta visibile anche se il JS non gira */
.cine__panel:first-of-type {
  opacity: 1;
}
.cine__panel .hero-cta {
  justify-content: center;
  margin-top: 2rem;
}
.cine__h {
  font-size: clamp(2.2rem, 6.2vw, 5rem);
  margin: 1rem 0 0;
  max-width: 18ch;
}
.cine .hero-scrollcue {
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .cine {
    height: auto;
  }
  .cine__pin {
    position: static;
    height: auto;
  }
  .cine__bg,
  .cine__scrim,
  .cine .hero-scrollcue {
    display: none;
  }
  .cine__panel {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    min-height: 70svh;
    padding-block: clamp(4rem, 11vh, 7rem);
  }
}

/* ---------------------------------------------------------------- Ideas gallery */
#ideas-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 4vw, 2.5rem) 6rem;
}
.ideas-head {
  text-align: center;
  margin-bottom: 3rem;
}
.ideas-head h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 1rem 0 0;
}
.ideas-head .lead {
  margin: 1.2rem auto 0;
  max-width: 64ch;
  color: var(--text-2);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}
.ideas-head a {
  color: var(--blue-neon);
}
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.idea {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--hairline);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.idea:hover {
  transform: translateY(-6px);
  border-color: rgba(43, 182, 240, 0.45);
}
.idea img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05070d;
  display: block;
}
.idea figcaption {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.idea figcaption b {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.idea figcaption span {
  color: var(--text-2);
  font-size: 0.9rem;
}
.idea figcaption em {
  color: var(--blue-neon);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-style: normal;
}
@media (max-width: 900px) {
  .ideas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .ideas-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
