/* ==========================================================================
   LOGO "IC"
   ========================================================================== */

/* marchio piccolo nella barra, accanto al nome */
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: var(--text-primary);
  --logo-accent: var(--color-lime);
}
.brand-mark svg {
  width: 19px;
  height: auto;
  display: block;
}
[data-theme="light"] .brand-mark {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
  --logo-accent: var(--color-accent);
}

/* logo grande nella prima schermata */
.hero-logo {
  position: relative;
  flex: none;
  width: clamp(56px, 5.6vw, 76px);
  height: clamp(56px, 5.6vw, 76px);
  border-radius: 22%;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 40px -18px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  isolation: isolate;
}
.hero-logo-static,
.hero-logo-liquid {
  position: absolute;
  inset: 0;
}
.hero-logo-static img {
  width: 100%;
  height: 100%;
  display: block;
}
/* il metallo liquido copre solo le lettere: resta il quadrato scuro sotto */
.hero-logo-liquid {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-logo.is-liquid .hero-logo-liquid {
  opacity: 1;
}
.hero-logo.is-liquid .hero-logo-static {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-logo-liquid canvas {
  width: 100% !important;
  height: 100% !important;
}

[data-theme="light"] .hero-logo {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.3);
}

/* logo affiancato al nome: nessuno spazio verticale in più */
.hero-title-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 20px);
}
.hero-title-row h1 {
  margin: 0;
}

/* stile base di Paper Shaders (spostato qui dalla libreria per rispettare la CSP: niente stili inline) */
:where([data-paper-shader]) {
  isolation: isolate;
  position: relative;
}
:where([data-paper-shader]) canvas {
  contain: strict;
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
