/* frasco.cloud — estetica eterea */

/* ---------- fonts ---------- */
/* attenzione ai nomi: HostGrotesk-Regulsar.ttf è il vero Host Grotesk Regular,
   HostGrotesk-Regular.ttf contiene in realtà Doto Rounded (il font a punti) */
@font-face { font-family: 'Host Grotesk'; src: url('/assets/fonts/HostGrotesk-Regulsar.ttf'); font-weight: 400; }
@font-face { font-family: 'Doto Rounded'; src: url('/assets/fonts/HostGrotesk-Regular.ttf'); }
@font-face { font-family: 'Host Grotesk'; src: url('/assets/fonts/HostGrotesk-Light.ttf'); font-weight: 300; }
@font-face { font-family: 'Host Grotesk'; src: url('/assets/fonts/HostGrotesk-Medium.ttf'); font-weight: 500; }
@font-face { font-family: 'Host Grotesk'; src: url('/assets/fonts/HostGrotesk-SemiBold.ttf'); font-weight: 600; }
@font-face { font-family: 'Host Grotesk'; src: url('/assets/fonts/HostGrotesk-Bold.ttf'); font-weight: 700; }
:root {
  --ink: #dde1f2;
  --ink-dark: #262b3d;
  --ink-dim: rgba(221, 225, 242, 0.72);
  --accent: #4b8dff;
  --serif: 'Georgia', 'Times New Roman', serif;
  --grot: 'Host Grotesk', sans-serif;
  --dot: 'Doto Rounded', 'Host Grotesk', monospace; /* voce a punti: dettagli, etichette, date */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #0b0e1e;
  font-family: var(--dot);
  color: var(--ink);
  letter-spacing: -0.06em; /* tracking -6% ovunque */
  line-height: 1.22;
  -webkit-font-smoothing: antialiased;
}

/* cursore custom (solo puntatori fini, vedi cursor.js) */
.no-cursor, .no-cursor * { cursor: none !important; }
#cursor {
  position: fixed; left: -100px; top: -100px;
  z-index: 60;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 1;
  transition: opacity 0.3s;
}
#cursor .c-scale {
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.18s ease-out;
}
#cursor.big .c-scale { transform: translate(-50%, -50%) scale(1.65); }
#cursor .c-ring { display: block; animation: cursorSpin 9s linear infinite; }
@keyframes cursorSpin { to { transform: rotate(360deg); } }

/* ---------- cielo fisso (fallback dietro al canvas) ---------- */
.sky {
  position: fixed; inset: 0;
  /* stretch: il gradiente si vede sempre da capo a coda */
  background: url('/assets/vibrant-sunset-sky-over-horizon-photo.jpg') center / 100% 100% no-repeat;
  z-index: 0;
}

/* ---------- viewport / world ---------- */
.viewport {
  position: fixed; inset: 0;
  overflow: hidden;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}
.viewport.dragging { cursor: grabbing; }
/* niente drag nativo né selezione su link/immagini: il gesto resta al canvas */
.viewport a, .viewport img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.world {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.world > * { position: absolute; }

/* cielo dentro al canvas, contro-trasformato via JS per restare visivamente fisso:
   così i blend degli elementi del canvas lavorano su di lui */
.world-sky {
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  transform-origin: 0 0;
  background:
    radial-gradient(rgba(255, 255, 255, 0.12) 0.5px, transparent 0.6px) 7px 11px / 90px 90px,
    url('/assets/vibrant-sunset-sky-over-horizon-photo.jpg') center / 100% 100% no-repeat;
}
/* sfondino puntinato lieve che scorre col canvas */
.world-dots {
  left: -3400px; top: -2200px;
  width: 6800px; height: 4400px;
  background: radial-gradient(rgba(235, 239, 250, 0.10) 1px, transparent 1.35px) 0 0 / 26px 26px;
  pointer-events: none;
}

/* ---------- layer fisso (brand + identità) ---------- */
/* vive dentro al canvas (contro-trasformato via JS): card e note gli passano sopra */
.fixed-layer {
  position: absolute; left: 0; top: 0;
  width: 100vw; height: 100vh;
  transform-origin: 0 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

/* inchiostro adattivo: il JS campiona la luminosità del cielo sotto l'elemento
   e attiva .dark-ink sopra le zone chiare */
.dark-ink { color: var(--ink-dark) !important; }
.links.dark-ink a { color: var(--ink-dark); }
.card.dark-ink .disc { color: rgba(38, 43, 61, 0.78); }
.note.dark-ink { border-color: rgba(38, 43, 61, 0.6); }
.note.dark-ink .txt { color: rgba(38, 43, 61, 0.82); }
.brand-left, .brand-right, .identity .caption, .identity .links a,
.card, .card .disc, .note, .note .txt, .hint {
  transition: color 0.5s, border-color 0.5s;
}
.fixed-layer a, .fixed-layer .clickable { pointer-events: auto; }

.brand-left, .brand-right {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  font-family: var(--grot);
  font-weight: 400;
  font-size: clamp(13px, 1.25vw, 21px);
  color: var(--ink);
}
.brand-left { left: clamp(16px, 4vw, 70px); }
.brand-right {
  right: clamp(16px, 4vw, 70px);
  font-weight: 300; /* .cloud thin */
}
/* f r  a   s    c     o — spaziatura progressiva */
.brand-left span { display: inline-block; }
.brand-left span:nth-child(1) { margin-right: 0.55em; }
.brand-left span:nth-child(2) { margin-right: 1.05em; }
.brand-left span:nth-child(3) { margin-right: 1.6em; }
.brand-left span:nth-child(4) { margin-right: 2.2em; }
.brand-left span:nth-child(5) { margin-right: 2.85em; }

/* identità centrale */
.identity {
  position: relative;
  width: min(72vw, 660px);
  text-align: center;
}
.identity .halo { /* cerchio puntinato */
  position: absolute; left: 50%; top: 50%;
  width: min(30vw, 500px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: rgba(222, 228, 252, 0.65);
}
.identity .links {
  position: absolute; left: 0; right: 0; bottom: 100%;
  margin-bottom: 2px; /* attaccati all'ornamento */
  display: flex; justify-content: center; align-items: center;
  gap: clamp(12px, 2.2vw, 32px);
  font-family: var(--dot);
  font-size: clamp(12px, 1.05vw, 16px);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}
.identity .links a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s;
}
.identity .links a::before { content: '◦'; opacity: 0.7; margin-right: 0.45em; }
.identity .links a:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(190, 210, 255, 0.9);
}
.identity .ornament { position: relative; display: block; }
.identity .ornament img.frame {
  width: 100%; display: block;
  opacity: 0.95;
}
/* ritratto in un layer proprio: blend screen (b/n che si fonde nel cielo) */
.portrait-layer {
  position: absolute; left: 0; top: 0;
  width: 100vw; height: 100vh;
  transform-origin: 0 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  mix-blend-mode: screen;
}
.portrait-layer .portrait {
  width: calc(min(72vw, 660px) * 0.165);
  filter: grayscale(1);
  -webkit-mask-image: radial-gradient(95% 95% at 50% 40%, #000 42%, transparent 78%);
  mask-image: radial-gradient(95% 95% at 50% 40%, #000 42%, transparent 78%);
}
/* didascalia: nome in grotesk sottile, fig. e ruoli nella voce a punti */
.identity .caption {
  position: absolute; left: -20%; right: -20%; top: 100%;
  margin-top: clamp(14px, 2.6vh, 26px);
  color: var(--ink);
  line-height: 1.17;
}
.identity .caption .fig {
  font-family: var(--dot);
  font-size: clamp(9px, 0.8vw, 12px);
  letter-spacing: 0.02em;
  margin-right: 0.7em;
  opacity: 0.75;
}
.identity .caption .name {
  font-family: var(--grot);
  font-weight: 300;
  font-size: clamp(17px, 1.8vw, 27px);
  letter-spacing: -0.06em;
}
.identity .caption .roles {
  display: block;
  font-family: var(--dot);
  font-size: clamp(9px, 0.85vw, 13px);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  margin-top: 0.5em;
  opacity: 0.75;
}
/* la didascalia è il bottone che apre la bio */
.identity .bio-toggle {
  display: block; width: 100%;
  background: none; border: 0; padding: 0;
  color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit;
  cursor: pointer;
}
/* "bio" e "stop" dei loop: stessa pillola dei filtri in basso; bordo e fondo derivano dal
   colore del testo, così seguono il cambio chiaro/scuro sulla fascia arancione */
.pill-btn {
  display: inline-block;
  font-family: var(--dot);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  padding: 0.45em 1.15em;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  background: color-mix(in srgb, currentColor 9%, transparent);
  transition: border-color 0.25s, background 0.25s, opacity 0.3s;
}
.identity .bio-cue {
  font-size: clamp(9px, 0.8vw, 12px);
  margin-top: 0.9em;
  opacity: 0.8;
}
.identity .bio-toggle:hover .bio-cue, .bio-open .identity .bio-cue {
  opacity: 1;
  border-color: color-mix(in srgb, currentColor 90%, transparent);
}
.identity .deco-dots {
  position: absolute; left: 0; right: 0; bottom: -14px;
  display: flex; justify-content: space-between;
  padding: 0 4%;
  pointer-events: none;
}
.identity .deco-dots span {
  width: 7px; height: 7px;
  background: rgba(218, 224, 250, 0.75);
}

/* ---------- progetti (home): "luci" — immagine senza riquadro, formato naturale ---------- */
.card {
  display: block;
  width: 380px; /* sovrascritta da home.w se impostata */
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}
.card .thumb {
  width: 100%; height: auto; display: block;
  background: rgba(255,255,255,0.06);
  filter: grayscale(1) brightness(1.05);
  mix-blend-mode: screen;
  opacity: 0.82;
  transition: filter 0.7s, opacity 0.7s, box-shadow 0.9s,
    transform 0.9s cubic-bezier(0.16, 0.8, 0.3, 1);
}
/* formato scelto nell'editor (ratio): l'immagine si ritaglia al centro; senza, resta naturale */
.card .thumb.r-wide { aspect-ratio: 16 / 9; object-fit: cover; }
.card .thumb.r-square { aspect-ratio: 1; object-fit: cover; }
.card .thumb.r-tall { aspect-ratio: 4 / 5; object-fit: cover; }
.card .row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 14px;
}
.card .row .t {
  font-family: var(--grot);
  font-weight: 300;
  font-size: 27px;
  letter-spacing: -0.065em;
  text-transform: lowercase;
}
.card .row .y { font-size: 14px; letter-spacing: 0.02em; opacity: 0.7; }
.card .disc {
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--ink-dim);
  margin-top: 3px;
}
/* in archivio: più spenti, si riaccendono al passaggio */
.card.archived .thumb { opacity: 0.38; }
.card.archived .row, .card.archived .disc { opacity: 0.5; transition: opacity 0.7s; }
.card.archived:hover .row, .card.archived:hover .disc,
.card.archived:focus-visible .row, .card.archived:focus-visible .disc { opacity: 1; }
.card.archived .row .t { font-size: 21px; }
.card:hover .thumb, .card:focus-visible .thumb {
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 30px 90px rgba(255, 190, 150, 0.18), 0 0 70px rgba(190, 205, 255, 0.28);
}
/* onda di cerchi che parte dall'immagine all'hover */
.card .pulse {
  position: absolute; pointer-events: none; overflow: visible;
  mix-blend-mode: screen; opacity: 0;
}

/* ---------- nota circolare ---------- */
.note {
  border: 1px solid rgba(224, 230, 252, 0.3);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  color: var(--ink);
  padding: 12%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.08), rgba(120, 130, 165, 0.05) 60%);
  box-shadow: inset 0 0 40px rgba(200, 215, 255, 0.06);
  /* --note-blur è compensato via JS con lo zoom del canvas: in Chromium il
     backdrop-filter viene scalato dalla transform del contenitore */
  backdrop-filter: blur(var(--note-blur, 9px));
  -webkit-backdrop-filter: blur(var(--note-blur, 9px));
}
.note .time {
  font-size: 14px;
  letter-spacing: 0.03em;
  opacity: 0.75;
  margin-bottom: 12px;
}
.note .txt {
  font-family: var(--grot);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.04em;
  white-space: pre-line;
}
/* layer proprio: su Chromium/Android il backdrop-filter dentro antenati
   trasformati a volte non viene rasterizzato senza compositing dedicato.
   la stessa transform fa galleggiare piano la nota (durata/ritardo per nota da JS) */
.note { transform: translateZ(0); animation: noteBob 9s ease-in-out infinite alternate; }
@keyframes noteBob { to { transform: translate3d(0, -10px, 0); } }
/* fallback dove il backdrop-filter non esiste proprio (webview vecchie) */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .note { background: rgba(96, 106, 140, 0.45); }
}
.note-img {
  border-radius: 50%;
  overflow: hidden;
  mix-blend-mode: screen;
}
.note-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1);
  transition: filter 0.3s;
}
a.note-link { text-decoration: none; color: inherit; }
a.note-link:hover .note-img img { filter: none; }
a.note-link:hover .note-img { mix-blend-mode: normal; }
a.note-link .note { transition: border-color 0.3s, box-shadow 0.35s, color 0.5s; }
a.note-link:hover .note {
  border-color: rgba(235, 241, 255, 0.95);
  box-shadow: 0 0 45px 4px rgba(195, 212, 255, 0.35),
              inset 0 0 30px rgba(195, 212, 255, 0.12);
}

/* ---------- vista progetto: la nuvola ---------- */
.proj-overlay {
  position: fixed; inset: 0;
  z-index: 6;
  --pv-ink: #2b2f3d;
  color: var(--pv-ink);
}
.proj-overlay.hidden { display: none; }
.proj-overlay .viewport { position: absolute; z-index: 1; }

/* cielo della nuvola: grigio perla, un gradiente piatto (il tramonto scuro con bagliore
   e nebbia glitchava: sole e nebbia restano nel markup ma spenti, per riprovarli) */
.pv-sky {
  position: absolute; inset: 0;
  overflow: hidden;
  background: radial-gradient(130% 110% at 30% 25%, #f5f5f7 0%, #ebebef 40%, #dedfe6 75%, #d1d3dc 100%);
}
.pv-sun, .pv-mist { display: none; }
/* niente filter: la morbidezza viene dai gradienti, e si animano solo transform/opacity
   (un blur animato su superfici a tutto schermo fa glitchare e laggare) */
.pv-sun {
  position: absolute; left: 50%; bottom: -34%;
  width: 130vw; height: 62vw;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(242, 146, 96, 0.55), rgba(196, 86, 96, 0.28) 40%,
    rgba(90, 50, 110, 0.1) 68%, transparent 100%);
  animation: sunBreath 13s ease-in-out infinite alternate;
}
@keyframes sunBreath { to { transform: translateX(-50%) scale(1.1); opacity: 0.8; } }
.pv-mist { position: absolute; inset: -20%; pointer-events: none; }
.pv-mist i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(185, 138, 166, 0.07), transparent);
  will-change: transform;
  animation: mistDrift 24s ease-in-out infinite alternate;
}
.pv-mist i:nth-child(1) { left: 4%; top: 8%; width: 42vw; height: 24vw; }
.pv-mist i:nth-child(2) { left: 52%; top: 18%; width: 36vw; height: 22vw; animation-delay: -5s; }
.pv-mist i:nth-child(3) { left: 20%; top: 52%; width: 48vw; height: 26vw; animation-delay: -10s; }
.pv-mist i:nth-child(4) { left: 66%; top: 60%; width: 30vw; height: 20vw; animation-delay: -15s; }
.pv-mist i:nth-child(5) { left: 38%; top: 30%; width: 26vw; height: 16vw; animation-delay: -19s; }
@keyframes mistDrift { to { transform: translate(8%, -6%) scale(1.15); } }
/* puntini del canvas: dimensionati sui contenuti da JS (una texture enorme pesa) */
.pv .pv-dots {
  pointer-events: none;
  background: radial-gradient(rgba(40, 45, 70, 0.13) 1.2px, transparent 1.6px) 0 0 / 30px 30px;
}
/* nebbia sul perimetro: una vignettatura, niente backdrop-filter ricalcolato a ogni pan */
.pv-edge {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(75% 70% at 50% 50%, transparent 55%, rgba(214, 216, 225, 0.6) 88%, rgba(206, 208, 218, 0.85) 100%);
}
/* i cerchi che si tracciano della home passano sopra la nuvola */
body.pv-open #circles { /* circles.js lo scrive inline */
  z-index: 7 !important;
  opacity: 0.2; /* sulla nuvola chiara il difference li rende scuri: appena accennati, non disturbano il testo */
}
/* a nuvola aperta la home sotto è trasparente e ferma: opacity 0 (non visibility) così il browser
   non la compone a ogni fotogramma ma tiene i tasselli già disegnati — nasconderla li buttava e
   alla chiusura ridisegnarli tutti bloccava l'animazione d'uscita. Animazioni CSS in pausa;
   onde, cerchi e video si fermano da JS */
#viewport, .sky { will-change: opacity; }
body.pv-covered #viewport, body.pv-covered .sky { opacity: 0; }
body.pv-covered #viewport *, body.pv-covered .sky, body.pv-covered .sky * { animation-play-state: paused !important; }
/* bio: un velo che scurisce e sfoca il cielo, testo al centro */
.bio-veil {
  position: fixed; inset: 0;
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(11, 14, 30, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--ink);
  animation: fadeIn 0.6s both;
}
.bio-veil[hidden] { display: none; }
.bio-veil .bio-inner {
  width: min(100% - 32px, 520px);
  min-height: 100%;
  margin: 0 auto;
  padding: 90px 0 70px;
  display: flex; flex-direction: column; justify-content: center;
}
.bio-veil .bio-head { margin-bottom: 26px; }
.bio-veil .bio-head .fig { font-family: var(--dot); font-size: 12px; letter-spacing: 0.02em; opacity: 0.7; margin-right: 0.7em; }
.bio-veil .bio-head .name { font-family: var(--grot); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.06em; }
.bio-veil .bio-head .roles { display: block; margin-top: 0.4em; font-family: var(--dot); font-size: 13px; letter-spacing: 0.02em; text-transform: lowercase; opacity: 0.7; }
.bio-veil p {
  font-family: var(--grot); font-weight: 300;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.38;
  letter-spacing: -0.02em;
  animation: fadeUp 0.9s both;
}
.bio-veil p + p { margin-top: 0.85em; }
/* programmi e competenze: pillole sotto il testo */
.bio-tags { margin-top: 28px; }
.bio-tag-row { display: flex; flex-wrap: wrap; gap: 7px; animation: fadeUp 0.9s both; }
.bio-tag-row + .bio-tag-row { margin-top: 9px; }
.bio-tag-row span {
  font-family: var(--grot); font-weight: 300;
  font-size: clamp(13px, 0.95vw, 15px); letter-spacing: -0.03em; line-height: 1;
  padding: 0.42em 0.85em 0.48em;
  border-radius: 999px;
  border: 1px solid rgba(225, 230, 250, 0.42);
  white-space: nowrap;
}
.bio-tag-row.tools span { background: rgba(225, 230, 250, 0.2); border-color: transparent; }
.bio-tag-row.skills span { opacity: 0.85; }
.bio-close {
  position: fixed; top: 22px; right: 26px;
  background: none; border: 0; padding: 6px 8px;
  color: var(--ink); font-family: var(--dot); font-size: 13px; letter-spacing: 0.02em;
  cursor: pointer; opacity: 0.75; transition: opacity 0.3s;
}
.bio-close:hover { opacity: 1; }
@media (max-width: 640px) { .bio-close { top: 12px; right: 10px; } }
body.bio-open .disc-filter, body.bio-open .minimap, body.bio-open .hint {
  opacity: 0 !important; pointer-events: none; transition: opacity 0.4s;
}

/* filtri, radar e hint della home stanno sopra l'overlay: nella nuvola spariscono */
body.pv-open .disc-filter, body.pv-open .minimap, body.pv-open .hint {
  opacity: 0 !important; pointer-events: none; transition: opacity 0.4s;
}

/* nella nuvola si trascina, non si seleziona */
.pv { user-select: none; -webkit-user-select: none; }
.pv img { -webkit-user-drag: none; -webkit-touch-callout: none; }

/* interfaccia della nuvola */
.pv-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pv-ui button {
  pointer-events: auto;
  background: none; border: none;
  color: inherit; font: inherit; letter-spacing: inherit;
  cursor: pointer;
  padding: 6px 8px;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.pv-ui button:hover { opacity: 1; }
.pv-brand-l, .pv-brand-r {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  font-family: var(--grot);
  font-size: clamp(13px, 1.25vw, 21px);
  color: var(--pv-ink);
}
.pv-brand-l { left: clamp(16px, 4vw, 70px); }
.pv-brand-r { right: clamp(16px, 4vw, 70px); font-weight: 300; }
.pv-brand-l span { display: inline-block; }
.pv-brand-l span:nth-child(1) { margin-right: 0.55em; }
.pv-brand-l span:nth-child(2) { margin-right: 1.05em; }
.pv-brand-l span:nth-child(3) { margin-right: 1.6em; }
.pv-brand-l span:nth-child(4) { margin-right: 2.2em; }
.pv-brand-l span:nth-child(5) { margin-right: 2.85em; }
.pv-close {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--dot); font-size: 13px; letter-spacing: 0.02em;
}
.pv-title {
  position: absolute; left: clamp(16px, 3vw, 44px); bottom: 64px;
  max-width: 45vw;
}
.pv-title b {
  display: block;
  font-family: var(--grot); font-weight: 300;
  font-size: clamp(24px, 2.6vw, 40px);
  letter-spacing: -0.065em; line-height: 1;
  text-transform: lowercase;
}
.pv-title span { font-family: var(--dot); font-size: 13px; letter-spacing: 0.02em; opacity: 0.65; }
.pv-nav {
  position: absolute; right: clamp(16px, 3vw, 44px); bottom: 64px;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--dot); font-size: 14px;
}
.pv-nav.single #prevBtn, .pv-nav.single #nextBtn, .pv-nav.single .pv-count { display: none; }
.pv-count { opacity: 0.6; font-variant-numeric: tabular-nums; padding: 0 4px; }
.pv-sep { width: 18px; }
/* marquee: striscia grigia a tutta larghezza sul fondo, testo bianco; rallenta al passaggio */
.pv-marquee {
  position: absolute; left: 0; right: 0; bottom: 0;
  overflow: hidden; white-space: nowrap;
  padding: 7px 0 8px;
  background: rgba(112, 116, 132, 0.78);
  color: #fff;
  font-family: var(--grot); font-weight: 300; font-size: 14px; letter-spacing: -0.01em;
  pointer-events: auto;
  transition: background 0.5s;
}
.pv-marquee:hover { background: rgba(100, 104, 120, 0.86); }
.pv-track { display: inline-flex; will-change: transform; }
.pv-track span { padding-right: 2em; }

/* contenuti: titolo grande sopra, blocchi liberi come nell'admin, chiari sul fondo scuro */
.pv .pv-head { color: var(--pv-ink); pointer-events: none; transform: translateY(-100%); }
.pv-head .meta { font-family: var(--dot); font-size: 18px; letter-spacing: 0.02em; opacity: 0.65; }
.pv-head h1 {
  font-family: var(--grot); font-weight: 300;
  font-size: 128px; line-height: 0.86; letter-spacing: -0.075em;
  margin-top: 0.12em;
  text-transform: lowercase;
  white-space: nowrap;
}
.pv-head h1 span { display: inline-block; }
.pv .pv-halo { pointer-events: none; color: rgba(50, 56, 80, 0.28); will-change: transform; animation: haloSpin 160s linear infinite; }
@keyframes haloSpin { to { transform: rotate(360deg); } }
.pv .pv-blocks > .blk { position: absolute; }
.pv .blk, .pv .pv-head, .pv .pv-halo { transition: opacity 0.6s; }
.pv .blk-heading h2 {
  font-family: var(--grot); font-weight: 300;
  font-size: 34px; letter-spacing: -0.06em;
  color: var(--pv-ink);
  margin-bottom: 10px;
}
.pv .blk-heading p, .pv .blk-paragraph p {
  font-family: var(--grot); font-weight: 300;
  font-size: 18px; line-height: 1.3; letter-spacing: -0.02em;
  color: rgba(43, 47, 61, 0.78);
}
.pv .blk-bigtext p {
  font-family: var(--grot); font-weight: 300;
  font-size: 36px; line-height: 1.15; letter-spacing: -0.055em;
  color: var(--pv-ink);
}
.pv .blk-image img, .pv .blk-video video {
  border: 0; outline: 0; background: transparent;
  box-shadow: 0 20px 60px rgba(30, 35, 60, 0.12);
}
.pv .blk-image figcaption, .pv .blk-video figcaption, .pv .blk-embed figcaption, .pv .blk-label p {
  font-family: var(--dot); font-size: 14px; letter-spacing: 0.02em;
  color: rgba(43, 47, 61, 0.6);
}
.pv .blk-label p b, .pv .blk-label p strong { color: var(--pv-ink); }
.pv .blk-caption-line::before { background: rgba(43, 47, 61, 0.35); }
.pv .blk-gallery .g-label { font-family: var(--dot); font-size: 14px; color: rgba(43, 47, 61, 0.6); }
.pv .blk-gallery .g-item img, .pv .blk-gallery .g-item video { border: 0; }
.pv .g-slider .g-bar { color: rgba(43, 47, 61, 0.6); }
.pv .blk-gallery .g-item .g-cap { font-family: var(--dot); font-size: 12px; color: rgba(43, 47, 61, 0.55); }
.pv .trk-label, .pv .plat-label { font-family: var(--dot); font-size: 14px; letter-spacing: 0.02em; color: rgba(43, 47, 61, 0.6); margin-bottom: 10px; }
.pv .trk-item { color: var(--pv-ink); border-color: rgba(43, 47, 61, 0.14); }
.pv .trk-item:hover, .pv .trk-item.playing { background: rgba(43, 47, 61, 0.05); }
.pv .plat-links a { color: var(--pv-ink); }
.pv .blk-embed .embed-wrap { border: 0; background: rgba(30, 35, 60, 0.05); }
.pv .blk img { cursor: zoom-in; transition: opacity 0.6s; }
/* immagine guardata da vicino: il resto si ritira nella nebbia (solo opacità: leggero) */
.pv.focus .blk:not(.on-host), .pv.focus .pv-head, .pv.focus .pv-halo { opacity: 0.08; }
.pv.focus .on-host img:not(.on) { opacity: 0.12; }
.pv.focus img.on { cursor: zoom-out; }
.pv-ring { position: absolute; overflow: visible; pointer-events: none; mix-blend-mode: screen; }
@media (max-width: 640px) {
  .pv-brand-r { display: none; }
  .pv-brand-l { top: 22px; left: 50%; transform: translateX(-50%); font-size: 14px; }
  .pv-close { top: 12px; right: 10px; }
  /* su telefono il titolo è già in cima alla colonna; in basso coprirebbe le immagini */
  .pv-title { display: none; }
  /* il testo che scorre sfuma sotto logo e "chiudi" invece di sovrapporsi */
  .pv-ui::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 64px;
    background: linear-gradient(#f2f2f5 35%, rgba(242, 242, 245, 0));
  }
  .pv-nav { background: rgba(236, 237, 241, 0.86); border-radius: 22px; padding: 0 4px; }
  .pv-nav { bottom: 54px; right: 8px; }
  .pv-nav #zoomIn, .pv-nav #zoomOut, .pv-sep { display: none; }
}

/* ---------- blocchi musica: tracklist e link alle piattaforme ---------- */
.trk-list { list-style: none; }
.trk-item {
  display: grid; grid-template-columns: 2.4em 1fr auto; align-items: baseline; gap: 10px;
  width: 100%;
  padding: 11px 6px;
  background: none; border: 0; border-bottom: 1px solid rgba(120, 124, 140, 0.25);
  color: #6d7078; text-align: left; cursor: pointer;
  font: inherit;
  transition: background 0.3s;
}
.trk-list li:first-child .trk-item { border-top: 1px solid rgba(120, 124, 140, 0.25); }
.trk-n, .trk-d { font-family: var(--dot); font-size: 13px; letter-spacing: 0.02em; opacity: 0.6; font-variant-numeric: tabular-nums; }
.trk-t { font-family: var(--grot); font-weight: 300; font-size: 19px; letter-spacing: -0.04em; }
/* in ascolto: il numero diventa un'onda di tre punti */
.trk-item.playing .trk-n { opacity: 1; color: transparent; position: relative; }
.trk-item.playing .trk-n::after {
  content: '◦◦◦'; position: absolute; left: 0; color: var(--pv-ink, #6d7078);
  animation: trkWave 1.2s steps(3) infinite;
}
.trk-item.playing.paused .trk-n::after { content: '||'; animation: none; }
@keyframes trkWave { 0% { content: '•◦◦'; } 33% { content: '◦•◦'; } 66% { content: '◦◦•'; } }
.trk-label, .plat-label { font-size: 15px; color: #85888f; margin-bottom: 10px; }
.plat-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.plat-links a {
  font-family: var(--grot); font-weight: 300; font-size: 19px; letter-spacing: -0.04em;
  color: #6d7078; text-decoration: none;
}
.plat-links a::before { content: '◦ '; font-family: var(--dot); font-size: 13px; opacity: 0.7; }
.plat-links a::after { content: ' ↗'; font-size: 0.75em; opacity: 0.5; }
.plat-links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- pannello e blocchi: usati dall'editor dell'admin ---------- */
.panel {
  background: #ebebe8;
  color: #74777f;
  border-radius: 5px;
  box-shadow: 0 30px 120px rgba(5, 8, 25, 0.55);
  position: relative;
  overflow: hidden;
}
.panel::before { /* cerchio di puntini */
  content: ''; position: absolute;
  left: 50%; top: 50%;
  width: 88%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background-image: radial-gradient(rgba(60, 64, 80, 0.18) 1px, transparent 1.4px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 58%, transparent 70%);
  mask-image: radial-gradient(circle, #000 0%, #000 58%, transparent 70%);
  pointer-events: none;
}
.panel .watermark {
  position: absolute;
  right: 5%; top: 44%;
  font-weight: 700;
  color: rgba(90, 94, 110, 0.14);
  white-space: nowrap;
  pointer-events: none;
  display: flex; align-items: baseline; gap: 0.6em;
}
.panel .watermark .wm-disc { font-size: 30px; font-weight: 400; }
.panel .watermark .wm-title { font-size: 58px; letter-spacing: 0.02em; }
.panel .watermark .wm-year { font-size: 34px; font-weight: 400; }

.panel .blocks { position: absolute; left: 0; top: 0; }
.panel .blocks > .blk { position: absolute; }

/* blocchi */
.blk-heading h2 {
  font-size: 23px; font-weight: 700;
  color: #6d7078;
  margin-bottom: 7px;
}
.blk-heading p, .blk-paragraph p {
  font-size: 16.5px;
  line-height: 1.33;
  color: #8b8e96;
  white-space: pre-line;
}
.blk-bigtext p {
  font-size: 26px;
  line-height: 1.22;
  font-weight: 700;
  color: #7d8089;
  text-align: center;
  white-space: pre-line;
}
.blk-image figure { margin: 0; }
.blk-image img, .blk-video video {
  width: 100%; display: block;
  border: 1px solid #b9bab6;
  outline: 6px solid rgba(255, 255, 255, 0.65);
  outline-offset: -7px;
  background: #fff;
}
.blk-image figcaption, .blk-video figcaption, .blk-label p {
  font-size: 15.5px;
  color: #85888f;
  margin-top: 12px;
  line-height: 1.32;
  white-space: pre-line;
}
.blk-label p b, .blk-label p strong { color: #6d7078; }
.blk-caption-line {
  position: relative;
  padding-left: 26px;
}
.blk-caption-line::before {
  content: ''; position: absolute;
  left: 0; top: 0.7em; width: 18px; height: 1px;
  background: #a2a4a8;
}
.blk-gallery .g-label {
  font-size: 16px; color: #85888f; margin-bottom: 10px;
}
.blk-gallery .g-grid {
  columns: var(--cols, 2);
  column-gap: 10px;
}
.blk-gallery .g-item { break-inside: avoid; margin-bottom: 10px; }
/* a righe, stessa altezza: base = altezza × formato, l'avanzo si divide in proporzione al formato
   (così nella riga restano tutti alti uguali); g-fill assorbe lo spazio dell'ultima riga */
.blk-gallery .g-rows { display: flex; flex-wrap: wrap; gap: 10px; }
.blk-gallery .g-rows .g-item { flex: var(--r, 1) 1 calc(var(--h) * var(--r, 1)); min-width: 0; margin: 0; }
.blk-gallery .g-rows .g-fill { flex: 100000 1 0; }
.blk-gallery .g-item img, .blk-gallery .g-item video {
  width: 100%; height: auto; display: block;
  border: 1px solid #b9bab6;
}
/* una alla volta */
.g-slider .g-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.g-slider .g-stage > img, .g-slider .g-stage > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s;
}
.g-slider .g-stage > .cur { opacity: 1; pointer-events: auto; }
/* le non visibili restano spente anche quando si zooma (vince sulla nebbia del focus) */
.g-slider .g-stage > :not(.cur):not(button) { opacity: 0 !important; }
/* frecce ai due lati del palco, sopra l'immagine */
.g-slider .g-side {
  position: absolute; top: 50%; z-index: 2;
  width: 44px; height: 44px; margin-top: -22px;
  border: 0; border-radius: 50%;
  background: rgba(245, 245, 248, 0.82);
  color: #2b2f3d; font: 18px/1 var(--dot); cursor: pointer;
  box-shadow: 0 2px 10px rgba(20, 24, 40, 0.18);
  opacity: 0.85; transition: opacity 0.25s, transform 0.25s;
}
.g-slider .g-side:hover { opacity: 1; transform: scale(1.08); }
.g-slider .g-prev { left: 10px; }
.g-slider .g-next { right: 10px; }
.g-slider .g-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 10px;
  font-family: var(--dot); font-size: 13px; letter-spacing: 0.02em; color: #85888f;
}
.g-slider .g-dots { display: flex; gap: 2px; }
.g-slider .g-dots i { width: 18px; height: 18px; cursor: pointer; position: relative; }
.g-slider .g-dots i::after {
  content: ''; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.3; transition: opacity 0.3s, transform 0.3s;
}
.g-slider .g-dots i.cur::after { opacity: 1; transform: scale(1.35); }
.g-slider .g-count { font-variant-numeric: tabular-nums; }
.g-slider .g-cap { font-size: 12.5px; }
.blk-gallery .g-item .g-cap {
  font-size: 12.5px; color: #90939a; margin-top: 5px;
}
.blk-embed .embed-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border: 1px solid #b9bab6; background: #fff;
}
.blk-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* ---------- animazioni d'ingresso ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.enter { animation: fadeUp 1.1s cubic-bezier(0.16, 0.8, 0.3, 1) both; }
/* ?noanim in URL: niente coreografia d'ingresso.
   prefers-reduced-motion: via solo le entrate; le atmosfere lente (cielo, note, nuvola) restano */
.no-anim *, .no-anim .enter { animation-duration: 0s !important; animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  .enter, .identity *, .portrait-layer .portrait, .brand-left span, .brand-right,
  .minimap, .audio-toggle, .disc-filter {
    animation-duration: 0s !important; animation-delay: 0s !important;
  }
}
.identity .ornament, .identity .halo { animation: fadeIn 1.6s 0.25s both; }
.identity .links a { animation: fadeUp 0.9s both; }
.identity .caption, .identity .deco-dots { animation: fadeIn 1.3s 1s both; }
.portrait-layer .portrait { animation: fadeIn 2s 0.7s both; }
.brand-left span { animation: fadeIn 1s both; }
.brand-right { animation: fadeIn 1.2s 1.5s both; }

/* stelle che brillano nel cielo */
@keyframes twinkle {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.75; }
}
.star {
  position: absolute;
  background: #e8ecfa;
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
}

/* ---------- radar: cerchio puntinato con progetti (punti), note (cerchietti) e vista (anello) ---------- */
.minimap {
  position: fixed; left: 26px; bottom: 26px;
  width: 84px; height: 84px;
  z-index: 7;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0.8;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 0.3s;
  animation: fadeIn 1.2s 2s both;
}
.minimap:hover { opacity: 1; }
.minimap svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (max-width: 640px) { .minimap { display: none; } }

/* ---------- toggle audio: "suono ◦ on/off" nella voce a punti ---------- */
.audio-toggle {
  position: fixed; top: 22px; left: 26px;
  z-index: 30;
  padding: 6px 0;
  background: none; border: none;
  font-family: var(--dot);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  mix-blend-mode: difference;
  opacity: 0.75;
  transition: opacity 0.25s;
  animation: fadeIn 1.2s 1.8s both;
}
.audio-toggle:hover { opacity: 1; }
.audio-toggle .st::after { content: 'on'; }
.audio-toggle.off .st::after { content: 'off'; }

/* ---------- pulsante dei loop ---------- */
.loop-orb { width: 190px; text-align: center; color: var(--ink); }
.loop-orb .lo-btn {
  position: relative; display: block;
  width: 190px; height: 190px;
  background: none; border: 0; padding: 0;
  color: inherit; cursor: pointer;
  border-radius: 50%;
}
.loop-orb .lo-track {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
  color: rgba(236, 240, 255, 0.9);
  opacity: 0; transition: opacity 0.6s;
}
.loop-orb.playing .lo-track { opacity: 1; }
.loop-orb .lo-trail { opacity: 0.55; }
.loop-orb .lo-dot { filter: drop-shadow(0 0 3px rgba(220, 230, 255, 0.9)); }
.loop-orb .lo-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: rgba(222, 228, 252, 0.8);
  animation: haloSpin 90s linear infinite;
}
.loop-orb .lo-core {
  position: absolute; inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.34), rgba(200, 212, 255, 0.10) 55%, rgba(200, 212, 255, 0.02) 72%);
  box-shadow: 0 0 60px rgba(190, 205, 255, 0.22), inset 0 0 30px rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(225, 231, 252, 0.35);
  opacity: 0.7;
  transition: box-shadow 0.6s, border-color 0.6s;
  animation: orbBreath 5s ease-in-out infinite;
}
.loop-orb.playing .lo-core { animation: none; box-shadow: 0 0 90px rgba(200, 214, 255, 0.4), inset 0 0 36px rgba(255, 255, 255, 0.18); }
.loop-orb .lo-btn:hover .lo-core { border-color: rgba(240, 244, 255, 0.7); box-shadow: 0 0 90px rgba(200, 214, 255, 0.36), inset 0 0 30px rgba(255, 255, 255, 0.14); }
.loop-orb .lo-btn:active .lo-core { transform: scale(0.96); }
@keyframes orbBreath { 50% { transform: scale(1.035); opacity: 0.85; } }
.loop-orb .lo-cta {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--grot); font-weight: 300; font-size: 24px; letter-spacing: -0.06em;
}
.loop-orb.loading .lo-cta { animation: fadeIn 0.6s ease-in-out infinite alternate; }
.loop-orb .lo-info { margin-top: 14px; }
.loop-orb .lo-name { font-family: var(--grot); font-weight: 300; font-size: 17px; letter-spacing: -0.04em; }
.loop-orb .lo-meta { font-family: var(--dot); font-size: 12px; letter-spacing: 0.02em; opacity: 0.7; margin-top: 4px; }
.loop-orb .lo-stop {
  margin-top: 10px;
  color: inherit; font-size: 12px;
  cursor: pointer; opacity: 0.8;
}
.loop-orb .lo-stop:hover { opacity: 1; border-color: color-mix(in srgb, currentColor 90%, transparent); }
.loop-orb .lo-stop[hidden] { display: none; }
.loop-orb .pulse { position: absolute; overflow: visible; pointer-events: none; }

/* ---------- mini player: sotto "suono ◦ on", stessa voce ---------- */
.player {
  position: fixed; top: 52px; left: 26px;
  z-index: 30;
  display: flex; align-items: baseline; gap: 12px;
  max-width: calc(100vw - 52px);
  font-family: var(--dot); font-size: 13px; letter-spacing: 0.02em;
  color: #fff;
  mix-blend-mode: difference;
  animation: fadeIn 0.6s both;
}
.player[hidden] { display: none; }
.player .pl-title {
  font-family: var(--grot); font-weight: 300; font-size: 15px; letter-spacing: -0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch;
}
.player .pl-title::before { content: '▸ '; font-family: var(--dot); font-size: 11px; }
.player .pl-time { opacity: 0.6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player button {
  background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit;
  cursor: pointer; opacity: 0.7; transition: opacity 0.25s;
}
.player button:hover { opacity: 1; }
.player button[hidden] { display: none; }
@media (max-width: 640px) { .player { top: 40px; left: 14px; } .player .pl-title { max-width: 16ch; } }

/* ---------- filtro discipline ---------- */
.disc-filter {
  position: fixed; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex; gap: 6px;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
  animation: fadeIn 1.2s 1.7s both;
  transition: color 0.5s;
}
.disc-filter::-webkit-scrollbar { display: none; }
.disc-filter button {
  flex: 0 0 auto;
  font-family: var(--dot);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--ink);
  background: rgba(120, 130, 165, 0.14);
  border: 1px solid rgba(224, 230, 252, 0.4);
  border-radius: 999px;
  padding: 6px 15px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.25s, background 0.25s, color 0.4s;
}
.disc-filter button:hover { border-color: rgba(235, 241, 255, 0.95); color: #fff; }
.disc-filter button.active {
  background: rgba(228, 235, 255, 0.92);
  color: var(--ink-dark);
  border-color: transparent;
}
.disc-filter.dark-ink button {
  color: var(--ink-dark);
  border-color: rgba(38, 43, 61, 0.45);
  background: rgba(255, 255, 255, 0.22);
}
.disc-filter.dark-ink button:hover { border-color: rgba(38, 43, 61, 0.85); color: var(--ink-dark); }
.disc-filter.dark-ink button.active {
  background: rgba(38, 43, 61, 0.88);
  color: #eef1fb;
}

/* card fuori filtro: quasi invisibili e non cliccabili */
.card {
  transition: color 0.5s, border-color 0.5s, opacity 0.5s, filter 0.5s;
}
.card.dim {
  opacity: 0.05;
  filter: grayscale(1) blur(2px);
  pointer-events: none;
}

/* "lista": piccola etichetta sopra la categoria attiva */
.list-chip {
  position: fixed; z-index: 8;
  translate: -50% 0; /* non transform: lo usa l'animazione d'entrata */
  font-family: var(--dot); font-size: 12px; letter-spacing: 0.02em;
  color: #fff;
  background: rgba(20, 24, 44, 0.62);
  border: 0; border-radius: 999px;
  padding: 5px 13px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  white-space: nowrap;
  animation: fadeUp 0.4s both;
  transition: background 0.3s;
}
.list-chip[hidden] { display: none; }
.list-chip:hover { background: rgba(20, 24, 44, 0.85); }
body.bio-open .list-chip, body.pv-open .list-chip { opacity: 0; pointer-events: none; }
body.has-list .hint { opacity: 0; }
/* lista lineare: anno, miniatura, titolo */
.list-veil .list-inner { width: min(100% - 32px, 720px); justify-content: flex-start; padding-top: 120px; }
.plist { list-style: none; border-top: 1px solid rgba(221, 225, 242, 0.18); }
.plist li { border-bottom: 1px solid rgba(221, 225, 242, 0.18); animation: fadeUp 0.7s both; }
.plist a {
  display: grid; grid-template-columns: 4.5em 64px 1fr; align-items: center; gap: 18px;
  padding: 14px 4px;
  color: var(--ink); text-decoration: none;
  transition: background 0.3s;
}
.plist a:hover { background: rgba(221, 225, 242, 0.06); }
.plist .pl-y { font-family: var(--dot); font-size: 13px; letter-spacing: 0.02em; opacity: 0.7; font-variant-numeric: tabular-nums; }
.plist img, .plist video { width: 64px; height: 44px; object-fit: cover; filter: grayscale(1); opacity: 0.8; transition: filter 0.4s, opacity 0.4s; }
.plist a:hover img, .plist a:hover video { filter: none; opacity: 1; }
.plist .pl-t { font-family: var(--grot); font-weight: 300; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.05em; text-transform: lowercase; }
.plist li.arch a { opacity: 0.55; }
.plist li.arch a:hover { opacity: 1; }
@media (max-width: 640px) { .plist a { grid-template-columns: 3.4em 48px 1fr; gap: 12px; } .plist img, .plist video { width: 48px; height: 34px; } }

/* note fuori filtro: spariscono */
.note-wrap { transition: opacity 0.6s, filter 0.6s; }
.note-wrap.note-off { opacity: 0; filter: blur(4px); pointer-events: none; }

/* hint mobile */
.hint {
  position: fixed; bottom: 62px; left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  font-size: 12px;
  color: var(--ink-dim);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s;
  white-space: nowrap;
}
.hint.show { opacity: 1; }

@media (max-width: 640px) {
  .brand-left {
    top: 4.5%; left: 50%; transform: translateX(-50%);
    font-size: 14px;
  }
  /* .cloud sopra i filtri, non addosso */
  .brand-right {
    top: auto; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 54px);
    right: 50%; transform: translateX(50%);
    font-size: 14px;
  }
  .identity { width: min(88vw, 330px); }
  .identity .halo { width: min(82vw, 320px); }
  .portrait-layer .portrait { width: calc(min(88vw, 330px) * 0.165); }
  /* link su più righe ordinate invece di uscire dallo schermo */
  .identity .links { gap: 4px 12px; font-size: 11px; left: 4%; right: 4%; }
  .identity .links a::before { margin-right: 0.3em; }
  /* le card restano come su desktop (larghezza e testi): il canvas è lo stesso, solo in scala */
  .note .time { font-size: 13px; }
  .note .txt { font-size: 16px; }

  /* tap target e spazi su mobile */
  .audio-toggle { top: 12px; left: 14px; }
  .disc-filter {
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 16px);
  }
  .disc-filter button { font-size: 12.5px; padding: 8px 13px; }
  .hint { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 84px); font-size: 11px; }
  .identity .links a { padding: 7px 0; }
  .proj-close { top: 8px; right: 6px; padding: 12px 16px; }
  .zoom-ui { bottom: max(14px, env(safe-area-inset-bottom)); right: 12px; }
  .zoom-ui button { width: 42px; height: 42px; font-size: 21px; }
}

/* dita, non mouse: bersagli da almeno ~40 px */
@media (pointer: coarse) {
  .pv-nav button { min-width: 44px; min-height: 40px; }
  .g-slider .g-side { opacity: 1; }
  .g-slider .g-dots i { width: 22px; height: 26px; }
  .g-slider .g-dots i::after { left: 8px; top: 10px; }
}
/* colonna di lettura su telefono (vedi pvStack in home.js) */
.pv-stack .pv-halo { display: none; }
.pv-stack .pv-head h1 { font-size: 34px; }


/* ---------- atmosfera: bagliore all'orizzonte che respira ---------- */
.horizon-glow {
  position: absolute; left: 50%; bottom: -38%;
  width: 120vw; height: 52vw;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(255, 170, 110, 0.4), rgba(220, 110, 100, 0.15) 45%, transparent 100%);
  animation: glowBreath 12s ease-in-out infinite alternate;
}
@keyframes glowBreath { to { transform: translateX(-50%) scale(1.08); opacity: 0.75; } }

/* altezza viewport reale su mobile (barra url dinamica): allineata a innerHeight
   usato dal JS per il contro-trasform */
@supports (height: 100dvh) {
  .world-sky, .fixed-layer, .portrait-layer { height: 100dvh; }
}
