@font-face{font-family:'Unifraktur';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/unifraktur-maguntia-latin.woff2') format('woff2');}
@font-face{font-family:'Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');}

.sl {
  --sl-notte: #0A0708;
  --sl-notte-2: #120B0C;
  --sl-rosso: #F00602;
  --sl-rosso-luce: #FF3B30;
  --sl-rosso-cupo: #5C0402;
  --sl-osso: #EDE8E3;
  --sl-fumo: #B3ACA8;
  --sl-filo: rgba(240, 6, 2, .28);
  --sl-gotico: 'Unifraktur', 'Pirata One', 'Times New Roman', serif;
  --sl-mono: 'Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background: var(--sl-notte);
  color: var(--sl-fumo);
  font-family: var(--sl-mono);
  font-size: 16px;
  line-height: 1.7;
}
@media (min-width: 900px) { .sl { font-size: 17px; } }
.grana {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.sl :focus-visible { outline: 2px solid var(--sl-rosso-luce); outline-offset: 3px; }

.sl .testata {
  position: relative;
  z-index: 5;
  padding: 14px var(--gronda);
  border-bottom: 1px solid var(--sl-filo);
  background: rgba(10, 7, 8, .88);
}
.sl .testata .dentro { display: flex; align-items: center; gap: 14px; padding-inline: 0; flex-wrap: wrap; }
.sl .testata img { width: 42px; }
.sl .testata a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sl-fumo); font-family: var(--testo); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: color 200ms ease-out; }
.sl .testata a:hover { color: var(--sl-osso); }
.sl .testata .tasto--negozio { margin-left: auto; text-transform: none; letter-spacing: .06em; font-size: 15px; color: var(--oro-vivo); }
@media (max-width: 719px) {
  .sl .testata a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sl .testata .tasto--negozio { min-height: 36px; padding: 7px 14px; font-size: 14px; }
}
@media (hover: hover) and (pointer: fine) {
  .sl .testata a.tasto--negozio:hover { color: #0B0A0C; }
}

.sl main > section { position: relative; isolation: isolate; overflow: hidden; }
.sl main > section + section { border-top: 1px solid var(--sl-filo); }
.sl h1, .sl h2 { font-family: var(--sl-gotico); font-weight: 400; color: var(--sl-osso); letter-spacing: 0; line-height: 1.12; }
.sl h2 { font-size: clamp(40px, 7vw, 76px); margin: 0 0 28px; }
:where(.sl) p { margin: 0 0 1.1em; }

.sl-apre {
  min-height: calc(100svh - 71px);
  display: grid;
  align-items: center;
  padding-block: 40px 56px;
}
@media (min-width: 900px) { .sl-apre { padding-block: 48px 64px; } }

.sl-sfondo, .sl-fasci, .sl-fumo, .sl-righe { position: absolute; inset: 0; pointer-events: none; }
.sl-sfondo { z-index: -4; overflow: hidden; }
.sl-sfondo::before {
  content: "";
  position: absolute; inset: -8%;
  background: url('/assets/img/slimelight-sfondo.webp') center / 900px auto repeat;
  opacity: .34;
  will-change: transform;
}
.sl-sfondo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 72% 46%, rgba(10,7,8,0) 0%, rgba(10,7,8,.55) 70%),
    linear-gradient(180deg, rgba(10,7,8,.35) 0%, rgba(10,7,8,.15) 40%, var(--sl-notte) 100%);
}

.sl-fasci { z-index: -3; overflow: hidden; }
.sl-fasci i {
  position: absolute;
  top: -40%;
  width: 46vmax; height: 140vmax;
  background: conic-gradient(from 168deg at 50% 0, rgba(240,6,2,0) 0deg, rgba(240,6,2,.5) 12deg, rgba(240,6,2,0) 24deg, rgba(240,6,2,0) 360deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 50%, transparent 78%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.25) 50%, transparent 78%);
  transform-origin: 50% 0;
  opacity: .5;
  will-change: transform;
}
.sl-fasci i:nth-child(1) { left: 6%;  transform: rotate(-24deg); }
.sl-fasci i:nth-child(2) { left: 58%; transform: rotate(20deg); background: conic-gradient(from 168deg at 50% 0, rgba(237,232,227,0) 0deg, rgba(237,232,227,.3) 12deg, rgba(237,232,227,0) 24deg, rgba(237,232,227,0) 360deg); }
.sl-fasci i:nth-child(3) { left: 34%; transform: rotate(4deg); opacity: .32; }

.sl-fumo { z-index: -2; overflow: hidden; }
.sl-fumo i {
  position: absolute;
  width: 90vmax; height: 50vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(179,172,168,.10), rgba(179,172,168,0));
  will-change: transform;
}
.sl-fumo i:nth-child(1) { left: -30%; bottom: -20%; }
.sl-fumo i:nth-child(2) { right: -35%; bottom: 10%; background: radial-gradient(closest-side, rgba(240,6,2,.10), rgba(240,6,2,0)); }

.sl-righe {
  z-index: -1;
  opacity: .22;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.55) 2px 3px);
}

.sl-apre__griglia { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .sl-apre__griglia { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
}

.sl-occhiello {
  display: block;
  margin: 0 0 18px;
  font-family: var(--sl-mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sl-rosso-luce);
}

.sl-apre h1 { margin: 0; }
.sl-logo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1599 / 169;
}
.sl-logo img { width: 100%; height: auto; }
.sl-logo::before, .sl-logo::after {
  content: "";
  position: absolute; inset: 0;
  background: url('/assets/img/slimelight-logo.svg') 0 0 / 100% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}
.sl-logo::before { filter: drop-shadow(-4px 0 0 rgba(0,255,240,.85)) ; mix-blend-mode: screen; }
.sl-logo::after  { filter: drop-shadow(4px 0 0 rgba(255,255,255,.75)); mix-blend-mode: screen; }

.sl-anni {
  display: flex;
  align-items: baseline;
  gap: .4em;
  margin: 22px 0 0;
  font-family: var(--sl-mono);
  font-size: clamp(26px, 4.4vw, 40px);
  letter-spacing: .08em;
  color: var(--sl-osso);
  font-variant-numeric: tabular-nums;
}
.sl-anni span[aria-hidden] { color: var(--sl-rosso); }

.sl-sotto {
  max-width: 34em;
  margin: 22px 0 30px;
  color: var(--sl-osso);
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
}

.sl-azione { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.sl-dettaglio { margin: 0; font-size: 13px; letter-spacing: .08em; color: var(--sl-fumo); }

.tasto--scarica {
  min-height: 60px;
  padding: 16px 30px 16px 26px;
  gap: 16px;
  border-radius: 4px;
  font-family: var(--sl-mono);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--sl-rosso-cupo);
  border: 1px solid var(--sl-rosso);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 0 0 rgba(240,6,2,0);
}
.sl .tasto--negozio::after,
.sl .tasto--scarica::after {
  inset: 0 auto 0 -60%;
  width: 60%;
  border-radius: 0;
  mix-blend-mode: normal;
  background: linear-gradient(104deg, rgba(255,244,214,0) 20%, rgba(255,250,236,.38) 50%, rgba(255,244,214,0) 80%);
  animation: none;
}
.tasto--scarica:active { transform: translateY(1px) scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .sl .tasto--scarica:hover {
    color: #FFFFFF;
    background: #8A0603;
    border-color: var(--sl-rosso-luce);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 0 36px rgba(240,6,2,.35);
  }
  .sl .tasto--negozio:hover::after, .sl .tasto--scarica:hover::after { animation: sl-lama-tasto-mano 720ms ease-out 1; }
}
.sl-livelli { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; flex: none; }
.sl-livelli i { display: block; width: 3px; height: 100%; background: var(--sl-osso); transform-origin: 50% 100%; transform: scaleY(.35); }
.sl-livelli i:nth-child(2) { transform: scaleY(.8); }
.sl-livelli i:nth-child(3) { transform: scaleY(.55); }
.sl-livelli i:nth-child(4) { transform: scaleY(.9); }

.sl-copertina { position: relative; justify-self: center; width: min(78vw, 420px); perspective: 1100px; }
@media (min-width: 900px) { .sl-copertina { width: min(100%, 440px); justify-self: end; } }
.sl-copertina__libro {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 3deg));
  transition: transform 500ms cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 30px 80px rgba(0,0,0,.75), 0 0 0 1px rgba(240,6,2,.35), 0 0 90px rgba(240,6,2,.18);
}
.sl-copertina__libro img { width: 100%; height: auto; }
.sl-copertina__lama { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sl-copertina__lama::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -70%;
  width: 70%;
  background: linear-gradient(105deg, rgba(255,220,215,0) 20%, rgba(255,220,215,.22) 50%, rgba(255,220,215,0) 80%);
  transform: translateX(0);
}
.sl-copertina::before {
  content: "";
  position: absolute; left: 8%; right: 8%; bottom: -34px; height: 40px;
  background: radial-gradient(closest-side, rgba(240,6,2,.45), rgba(240,6,2,0));
  filter: blur(8px);
}

.sl-segui { margin: 22px 0 0; }
.sl-segui--chiude { margin-top: 26px; }
.sl-instagram {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--sl-osso);
  text-decoration: none;
}
.sl-instagram img { width: 28px; height: 28px; flex: none; transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
.sl-instagram b { font-weight: 400; color: var(--sl-rosso-luce); white-space: nowrap; }
.sl-instagram span { text-decoration: underline; text-decoration-color: rgba(237,232,227,.3); text-underline-offset: 4px; transition: text-decoration-color 200ms ease-out; }
@media (hover: hover) and (pointer: fine) {
  .sl-instagram:hover span { text-decoration-color: var(--sl-rosso-luce); }
  .sl-instagram:hover img { transform: rotate(-8deg) scale(1.08); }
}

.sl-dono { padding-block: var(--respiro); }
.sl-dono .dentro { display: grid; gap: 34px; }
@media (min-width: 900px) {
  .sl-dono .dentro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}
.sl-dono h2 { position: relative; }
.sl-dono h2::after {
  content: "";
  display: block;
  width: 72px; height: 3px;
  margin-top: 22px;
  background: var(--sl-rosso);
}
.sl-dono__testo { color: var(--sl-osso); font-size: clamp(16px, 1.7vw, 18px); }
.sl-dono__testo p:first-child::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-family: var(--sl-gotico);
  font-size: 4.6em;
  line-height: .78;
  color: var(--sl-rosso);
}
.sl-firma { width: 260px; margin-top: 26px; opacity: .95; }

.sl-folla { padding-block: var(--respiro); }
.sl-folla h2 { margin-bottom: 10px; }
.sl-folla .sl-folla__riga { margin: 0 0 34px; font-size: 14px; letter-spacing: .06em; }
.sl-pausa {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 22px; padding: 0 16px;
  font-family: var(--sl-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sl-osso); background: transparent; border: 1px solid var(--sl-filo); border-radius: 4px; cursor: pointer;
  transition: border-color 200ms ease-out, color 200ms ease-out;
}
.sl-pausa[hidden] { display: none; }
.sl-pausa:hover { border-color: var(--sl-rosso-luce); }
.sl-pausa:active { transform: translateY(1px); }
.sl-nastro--ferma .sl-nastro__binario { animation-play-state: paused !important; }

.sl-nastro {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sl-nastro__pista { display: flex; flex: none; gap: 14px; padding: 6px 7px 18px; margin: 0; list-style: none; }
.sl-nastro__pista li { flex: none; scroll-snap-align: center; }
.sl-nastro__pista img {
  width: auto;
  height: clamp(260px, 38vw, 400px);
  filter: grayscale(1) contrast(1.12) brightness(.9);
  transition: filter 400ms ease-out, transform 400ms cubic-bezier(.16, 1, .3, 1);
}
@media (hover: hover) and (pointer: fine) {
  .sl-nastro__pista img:hover { filter: none; transform: translateY(-6px); }
}
.sl-nastro__copia { display: none; }

.sl-dentro { padding-block: var(--respiro); }
.sl-indice {
  display: grid;
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: capitolo;
}
@media (min-width: 760px) { .sl-indice { grid-template-columns: 1fr 1fr; } }
.sl-indice li {
  position: relative;
  display: grid;
  grid-template-columns: 3.2em 1fr;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(237,232,227,.08);
  counter-increment: capitolo;
  overflow: hidden;
}
.sl-indice li::before {
  content: counter(capitolo, decimal-leading-zero);
  font-family: var(--sl-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--sl-rosso-luce);
}
.sl-indice span {
  font-family: var(--sl-gotico);
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.2;
  color: var(--sl-osso);
}
.sl-indice li::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--sl-rosso);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 600ms cubic-bezier(.16, 1, .3, 1);
}
@media (hover: hover) and (pointer: fine) {
  .sl-indice li:hover::after { transform: scaleX(1); }
}

.sl-breve { padding-block: var(--respiro); }
.sl-domande { display: grid; gap: 34px 56px; }
@media (min-width: 900px) { .sl-domande { grid-template-columns: 1fr 1fr; } }
.sl-domanda { padding-left: 18px; border-left: 2px solid var(--sl-rosso); }
.sl-domanda h3 { margin: 0 0 10px; font-family: var(--sl-mono); font-weight: 400; font-size: 17px; letter-spacing: .02em; line-height: 1.4; color: var(--sl-osso); }
.sl-domanda p { margin: 0; }
.sl-grazie a { color: var(--sl-osso); text-underline-offset: 3px; }

.sl-chiude { padding-block: var(--respiro); text-align: center; }
.sl-chiude::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(240,6,2,.22), rgba(240,6,2,0) 70%);
}
.sl-chiude h2 { font-size: clamp(44px, 9vw, 104px); margin-bottom: 18px; }
.sl-indirizzo { margin: 0 auto 34px; color: var(--sl-osso); letter-spacing: .06em; }
.sl-chiude .sl-azione { justify-content: center; }
.sl-grazie { max-width: 40em; margin: 40px auto 0; font-size: 14px; }

.sl .piede { border-top-color: var(--sl-filo); }

.sl-dono, .sl-folla, .sl-dentro, .sl-breve, .sl-chiude { content-visibility: auto; contain-intrinsic-size: auto 760px; }

@media (prefers-reduced-motion: no-preference) {
  .sl-fasci i:nth-child(1) { animation: sl-fascio-a 9s ease-in-out infinite alternate; }
  .sl-fasci i:nth-child(2) { animation: sl-fascio-b 12s ease-in-out infinite alternate; }
  .sl-fasci i:nth-child(3) { animation: sl-fascio-c 7s ease-in-out infinite alternate; }
  .sl-sfondo::before { animation: sl-deriva 60s linear infinite; }
  .sl-fumo i:nth-child(1) { animation: sl-nebbia 26s ease-in-out infinite alternate; }
  .sl-fumo i:nth-child(2) { animation: sl-nebbia 34s ease-in-out -12s infinite alternate-reverse; }

  html[data-js="si"] .sl-logo img { opacity: 0; animation: sl-accende 1.6s steps(1, end) .25s forwards; }
  .sl-logo::before { animation: sl-glitch-a 7s steps(1, end) 2.4s infinite; }
  .sl-logo::after  { animation: sl-glitch-b 7s steps(1, end) 2.4s infinite; }

  html[data-js="si"] .sl-arriva { opacity: 0; transform: translateY(14px); animation: sl-arriva 900ms cubic-bezier(.16, 1, .3, 1) forwards; }
  html[data-js="si"] .sl-arriva--1 { animation-delay: .1s; }
  html[data-js="si"] .sl-arriva--2 { animation-delay: 1.2s; }
  html[data-js="si"] .sl-arriva--3 { animation-delay: 1.4s; }
  html[data-js="si"] .sl-arriva--4 { animation-delay: 1.6s; }
  html[data-js="si"] .sl-copertina { opacity: 0; animation: sl-copertina-arriva 1.4s cubic-bezier(.16, 1, .3, 1) .5s forwards; }

  .sl-copertina__lama::after { animation: sl-lama 7s ease-in-out 3s infinite; }
  .sl .tasto--negozio::after, .sl .tasto--scarica::after { animation: sl-lama-tasto 6.8s ease-in-out infinite; }
  .sl-livelli i { animation: sl-livello 1.05s ease-in-out infinite alternate; }
  .sl-livelli i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
  .sl-livelli i:nth-child(3) { animation-duration: 1.2s; animation-delay: -.6s; }
  .sl-livelli i:nth-child(4) { animation-duration: .7s; animation-delay: -.2s; }

  html[data-js="si"] .sl-nastro { overflow: hidden; }
  html[data-js="si"] .sl-nastro__copia { display: flex; }
  html[data-js="si"] .sl-nastro__binario { display: flex; flex: none; width: max-content; will-change: transform; animation: sl-nastro 70s linear infinite; }
  .sl-nastro:hover .sl-nastro__binario, .sl-nastro:focus-within .sl-nastro__binario { animation-play-state: paused; }

  html[data-js="si"] .sl-indice li.entra { transform: translateX(-18px); }
  html[data-js="si"] .sl-indice li.entra[data-vista="si"] { transform: none; }
}

@keyframes sl-fascio-a { from { transform: rotate(-30deg); } to { transform: rotate(-6deg); } }
@keyframes sl-fascio-b { from { transform: rotate(28deg); } to { transform: rotate(6deg); } }
@keyframes sl-fascio-c { from { transform: rotate(-10deg); opacity: .18; } to { transform: rotate(14deg); opacity: .4; } }
@keyframes sl-deriva { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-900px, 0, 0); } }
@keyframes sl-nebbia { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(18vw, -6vh, 0); } }
@keyframes sl-accende {
  0% { opacity: 0; } 8% { opacity: .9; } 12% { opacity: .1; } 20% { opacity: 1; } 24% { opacity: .25; }
  34% { opacity: 1; } 38% { opacity: .55; } 44%, 100% { opacity: 1; }
}
@keyframes sl-glitch-a {
  0%, 93%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  94% { opacity: .9; transform: translate(-6px, 0); clip-path: inset(12% 0 58% 0); }
  95.5% { opacity: .9; transform: translate(5px, 0); clip-path: inset(62% 0 8% 0); }
  97% { opacity: .7; transform: translate(-3px, 0); clip-path: inset(34% 0 40% 0); }
}
@keyframes sl-glitch-b {
  0%, 93%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  94.5% { opacity: .8; transform: translate(6px, 0); clip-path: inset(48% 0 22% 0); }
  96% { opacity: .8; transform: translate(-5px, 0); clip-path: inset(4% 0 70% 0); }
}
@keyframes sl-arriva { to { opacity: 1; transform: none; } }
@keyframes sl-copertina-arriva {
  from { opacity: 0; transform: translateY(40px) rotate(3deg); filter: brightness(2.2) saturate(0); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes sl-lama { 0%, 70% { transform: translateX(0); } 100% { transform: translateX(245%); } }
@keyframes sl-lama-tasto-mano { from { transform: translateX(0); } to { transform: translateX(270%); } }
@keyframes sl-lama-tasto { 0%, 58% { transform: translateX(0); } 92%, 100% { transform: translateX(270%); } }
@keyframes sl-livello { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
@keyframes sl-nastro { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
