/* =========================================================
   SVG Lab — main stylesheet
   Estratto da SVG Lab Hero.html + estensioni (form, mobile
   menu, cookie banner, focus states accessibilità).
   ========================================================= */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { background: #050505; color: #F4F4F4; overflow-x: clip; }
body { font-family: "General Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { max-width: 100%; height: auto; }

/* Mobile: rendi le sezioni più ariose per touch + riduci motion */
@media (max-width: 640px) {
  /* tappable target minimo 44px */
  .nav-pill, .chrome-btn { min-height: 44px; }
  /* margini delle sezioni un filo più stretti */
  section { scroll-margin-top: 80px; } /* offset nav fissa per ancore */
  /* su mobile niente grain (riduce CPU su low-end) */
  .grain { opacity: 0.03 !important; }
}

/* su mobile portrait il marquee va più veloce per evitare sensazione di stallo */
@media (max-width: 640px) {
  .marquee { animation-duration: 22s; }
}

/* ===== focus states a11y ===== */
:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== chrome wordmark ===== */
.chrome-text {
  background: linear-gradient(180deg, #FFFFFF 0%, #DCDEE2 38%, #8A8E94 72%, #C9CCD1 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ===== shiny sweep (chrome silver -> white) ===== */
.shiny-text {
  background: linear-gradient(100deg,#C0C4CA 0%,#C0C4CA 35%,#FFFFFF 50%,#C0C4CA 65%,#C0C4CA 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: shineSweep 3s linear infinite;
}
@keyframes shineSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

/* ===== chrome CTA ===== */
.chrome-btn {
  background: linear-gradient(180deg, #FFFFFF 0%, #B0B4BA 100%);
  color: #050505;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 10px 30px -10px rgba(255,255,255,0.25);
  transition: filter .25s ease, transform .25s ease, box-shadow .25s ease;
}
.chrome-btn:hover { background: linear-gradient(180deg, #FFFFFF 0%, #CFD2D7 100%); filter: brightness(1.06); }
.chrome-btn:hover .cta-arrow { transform: translateX(4px); }
.chrome-btn:disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(.4); }
.cta-arrow { transition: transform .25s ease; }

/* ===== film grain ===== */
.grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  background-size: 240px 240px;
}

/* ===== logo ===== */
.logo-badge {
  display: block;
  width: 100%; height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)) drop-shadow(0 0 22px rgba(255,255,255,0.12)) brightness(1.08) contrast(1.06);
}
.logo-wrap { position: relative; display: inline-block; }
.logo-wrap::after {
  content: ""; position: absolute; inset: -3px; border-radius: 9999px; pointer-events: none;
  background: conic-gradient(from 220deg,
    rgba(255,255,255,0) 0deg, rgba(255,255,255,0.75) 40deg,
    rgba(255,255,255,0) 90deg, rgba(255,255,255,0.45) 200deg,
    rgba(255,255,255,0) 260deg, rgba(255,255,255,0.75) 320deg,
    rgba(255,255,255,0) 360deg);
  mix-blend-mode: screen;
  mask: radial-gradient(circle, transparent 60%, #000 62%, #000 70%, transparent 72%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 70%, transparent 72%);
  animation: ringspin 18s linear infinite;
}
@keyframes ringspin { to { transform: rotate(360deg); } }

/* ===== nav pill ===== */
.nav-pill {
  background: rgba(10,10,12,0.7);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.nav-link { color: #B8B8BC; transition: color .2s ease, background .2s ease; }
.nav-link:hover { color: #FFFFFF; }

/* ===== dot + hairline ===== */
.dot {
  width: 6px; height: 6px; border-radius: 9999px; background: #F4F4F4;
  box-shadow: 0 0 0 0 rgba(244,244,244,0.6);
  animation: dotPulse 2.2s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(244,244,244,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(244,244,244,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,244,244,0); }
}
.hairline { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); height: 1px; }

/* ===== Shared video stage ===== */
#scrubStage {
  position: fixed; inset: 0;
  z-index: 25;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.85s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
  will-change: clip-path, opacity;
  opacity: 1;
}
#scrubStage.is-hidden { opacity: 0; }
#scrubVideo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.06) brightness(0.78) saturate(0.92);
  transform: scale(1.02);
  background: #050505;
}
#scrubStage.is-card #scrubVideo {
  filter: contrast(1.08) brightness(0.95) saturate(1);
  transform: scale(1);
}
.scrub-overlay {
  position: absolute; inset: 0;
  background: rgba(5,5,5,0.55);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
#scrubStage.is-card .scrub-overlay { opacity: 0; }
.scrub-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(5,5,5,0.55) 75%, #050505 100%);
  transition: opacity 0.6s ease;
}
#scrubStage.is-card .scrub-vignette { opacity: 0; }

/* loader shimmer */
.scrub-loader {
  position: absolute; left: 50%; bottom: 32px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(244,244,244,0.55);
  z-index: 2;
  transition: opacity .5s ease;
}
.scrub-loader.hide { opacity: 0; pointer-events: none; }
.scrub-loader-bar {
  width: 120px; height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
.scrub-loader-bar::after {
  content: ""; position: absolute; inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* nav shroud */
.nav-shroud {
  position: fixed; top: 0; left: 0; right: 0;
  height: 96px; z-index: 30;
  background: linear-gradient(180deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-shroud.on { opacity: 1; }

/* ===== marquee ===== */
.marquee-wrap { overflow: hidden; }
.marquee { display: inline-flex; gap: 3rem; animation: marquee 32s linear infinite; padding-right: 3rem; white-space: nowrap; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== panel card ===== */
.card {
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(20,20,22,0.55) 0%, rgba(8,8,10,0.55) 100%);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(255,255,255,0.28); }

.num { font-family: "Rubik Mono One", sans-serif; }
.h-svh { height: 100svh; }

.brush {
  font-family: "Rubik Mono One", sans-serif;
  color: #F4F4F4;
  text-shadow: -1px 1px 0 #2c2c2e, 2px -2px 0 #1a1a1c, 0 0 20px rgba(255,255,255,0.08);
  transform: skewX(-6deg);
  letter-spacing: -0.04em;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== FAQ details: smooth open con interpolate-size se supportato ===== */
@supports (interpolate-size: allow-keywords) {
  details { interpolate-size: allow-keywords; }
  details::details-content {
    transition: block-size 0.45s cubic-bezier(.2,.7,.2,1), content-visibility 0.45s allow-discrete;
    block-size: 0;
    overflow: clip;
  }
  details[open]::details-content { block-size: auto; }
}
details > summary { transition: opacity .2s ease; }
details > summary:hover { opacity: .85; }
details[open] > summary { color: #FFFFFF; }

/* ===== Cover album hover lift ===== */
#work .group .card { transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease, box-shadow .35s ease; }
#work .group:hover .card {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255,255,255,0.32);
  box-shadow: 0 18px 38px -16px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* ===== Studio cards hover ===== */
#studio .group { transition: transform .3s ease; }
#studio article.card { transition: border-color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
#studio article.card:hover { transform: translateY(-3px); }

/* prefers-reduced-motion override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   FORM CONTATTI
   ========================================================= */
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #B8B8BC;
}
.field-label .req { color: #FFFFFF; opacity: 0.6; }
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(10,10,12,0.6);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  color: #F4F4F4;
  font-family: "General Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field-input::placeholder,
.field-textarea::placeholder { color: rgba(184,184,188,0.5); }
.field-input:hover,
.field-select:hover,
.field-textarea:hover { border-color: rgba(255,255,255,0.28); }
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.55);
  background: rgba(15,15,18,0.85);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.field-textarea { resize: vertical; min-height: 140px; }
.field-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23B8B8BC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.field-error[hidden] { display: none; }
.field-error {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #ffb4b4;
  letter-spacing: 0.04em;
}
.field.has-error .field-input,
.field.has-error .field-select,
.field.has-error .field-textarea {
  border-color: rgba(255, 90, 90, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.12);
}
.field-hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(184,184,188,0.6);
  letter-spacing: 0.04em;
}
.honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(110, 200, 140, 0.12); border: 1px solid rgba(110, 200, 140, 0.4); color: #c5f0d4; }
.form-status.is-error   { background: rgba(255, 110, 110, 0.10); border: 1px solid rgba(255, 110, 110, 0.4); color: #ffd3d3; }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; line-height: 1.5; color: #B8B8BC;
}
.checkbox-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  background: rgba(10,10,12,0.6);
  cursor: pointer;
  margin-top: 1px;
  position: relative;
  transition: border-color .15s, background .15s;
}
.checkbox-row input[type="checkbox"]:checked {
  background: #F4F4F4;
  border-color: #F4F4F4;
}
.checkbox-row input[type="checkbox"]:checked::after {
  content: ""; position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #050505;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-row a { color: #F4F4F4; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   MOBILE MENU DRAWER
   ========================================================= */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-drawer.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer .panel {
  display: flex; flex-direction: column;
  height: 100%;
  padding: 96px 28px 28px;
  max-width: 420px; margin-left: auto;
  border-left: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(160deg, rgba(15,15,18,0.95), rgba(5,5,5,0.95));
  transform: translateX(40px);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.mobile-drawer.is-open .panel { transform: translateX(0); }
.mobile-drawer .nav-item {
  font-family: "Clash Display", system-ui, sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: #F4F4F4;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-drawer .nav-item:last-of-type { border-bottom: none; }
.mobile-drawer .nav-item .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(184,184,188,0.5);
  letter-spacing: 0.28em;
}
.mobile-drawer .close-btn {
  position: absolute; top: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(10,10,12,0.8);
  color: #F4F4F4;
  display: flex; align-items: center; justify-content: center;
}
body.menu-open { overflow: hidden; }

/* =========================================================
   COOKIE BANNER (GDPR)
   ========================================================= */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 70;
  max-width: 720px; margin: 0 auto;
  padding: 18px 20px;
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  color: #E8E8EA;
  font-size: 13px; line-height: 1.55;
  display: none;
  box-shadow: 0 18px 48px -12px rgba(0,0,0,0.7);
}
.cookie-banner.is-visible { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) {
  .cookie-banner.is-visible { flex-direction: row; align-items: center; }
  .cookie-banner .actions { margin-left: auto; flex-shrink: 0; }
}
.cookie-banner a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .actions { display: flex; gap: 8px; }
.cookie-banner button {
  padding: 9px 16px;
  border-radius: 9999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  color: #F4F4F4;
  transition: background .2s, border-color .2s;
}
.cookie-banner button.primary {
  background: #F4F4F4;
  color: #050505;
  border-color: #F4F4F4;
}
.cookie-banner button:hover { border-color: #F4F4F4; }
.cookie-banner button.primary:hover { background: #FFFFFF; }

/* =========================================================
   LEGAL pages typography
   ========================================================= */
.legal-prose {
  max-width: 820px;
  font-size: 15px;
  line-height: 1.7;
  color: #C8C8CC;
}
.legal-prose h2 { font-family: "Clash Display", system-ui, sans-serif; font-weight: 600; color: #F4F4F4; font-size: 28px; margin-top: 40px; margin-bottom: 14px; }
.legal-prose h3 { font-family: "Clash Display", system-ui, sans-serif; font-weight: 500; color: #F4F4F4; font-size: 18px; margin-top: 28px; margin-bottom: 10px; }
.legal-prose p, .legal-prose ul { margin-bottom: 14px; }
.legal-prose ul { padding-left: 22px; list-style: disc; }
.legal-prose a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.legal-prose strong { color: #F4F4F4; }

/* =========================================================
   CICLORAMA — sezione di punta
   ========================================================= */
.cyc-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.24em;
  color: #F4F4F4;
}
.nav-link-hot { color: #FFFFFF; }
.nav-link-hot .dot { width: 5px; height: 5px; }

.cyc-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0c0c0e;
}
@media (min-width: 768px) { .cyc-media { aspect-ratio: 16 / 9; } }

/* Spot ciclorama = video chiaro: nell'hero serve più buio dietro al testo */
#scrubStage.stage-bright #scrubVideo { filter: contrast(1.04) brightness(0.62) saturate(0.9); }
#scrubStage.stage-bright .scrub-overlay {
  background: linear-gradient(90deg, rgba(5,5,5,0.78) 0%, rgba(5,5,5,0.55) 55%, rgba(5,5,5,0.35) 100%);
}
#scrubStage.stage-bright.is-card #scrubVideo { filter: contrast(1.02) brightness(1) saturate(1); }
.cyc-chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(10,10,12,0.55);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em;
  color: #F4F4F4;
}

.cyc-diagram { width: 100%; height: auto; max-height: 170px; overflow: visible; }
.cyc-diagram-fill { fill: rgba(255,255,255,0.05); }
.cyc-diagram-line { fill: none; stroke: #F4F4F4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cyc-diagram-dash { stroke: rgba(244,244,244,0.45); stroke-width: 1; stroke-dasharray: 3 4; }
.cyc-diagram-dot { fill: rgba(244,244,244,0.6); }
.cyc-diagram text {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  fill: #8A8A8E;
}

.cyc-use { transition: background .3s ease; }
.cyc-use:hover { background: #0d0d10; }

/* CTA chiara: richiama il bianco del ciclorama */
.cyc-cta {
  display: flex; flex-direction: column; gap: 28px;
  padding: 32px 28px;
  border-radius: 16px;
  color: #050505;
  background: radial-gradient(120% 140% at 50% 120%, #FFFFFF 0%, #EDEDEF 45%, #CFD0D4 100%);
  box-shadow: 0 30px 80px -40px rgba(255,255,255,0.35);
}
@media (min-width: 1024px) {
  .cyc-cta { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 48px; }
}
.cyc-cta-desc { color: #3a3a3e; }
.cyc-cta-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
@media (min-width: 640px) { .cyc-cta-actions { max-width: 360px; } }
@media (min-width: 1024px) { .cyc-cta-actions { width: 360px; flex-shrink: 0; } }
.cyc-cta-btn {
  background: #050505; color: #F4F4F4;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6);
  transition: transform .25s ease, background .25s ease;
}
.cyc-cta-btn:hover { background: #1a1a1d; }
.cyc-cta-btn:hover .cta-arrow { transform: translateX(4px); }
.cyc-cta-ghost {
  border: 1px solid rgba(5,5,5,0.25);
  color: #050505;
  transition: border-color .2s ease, background .2s ease;
}
.cyc-cta-ghost:hover { border-color: #050505; background: rgba(5,5,5,0.04); }
.cyc-cta :focus-visible { outline-color: #050505; }

/* =========================================================
   BEAT PLAYER
   ========================================================= */
.beat-list {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.10);
  display: grid; gap: 1px;
}
.beat {
  --p: 0%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "play meta meta" "wave wave time";
  align-items: center;
  column-gap: 16px; row-gap: 14px;
  padding: 18px;
  background: #050505;
  transition: background .3s ease;
}
@media (min-width: 768px) {
  .beat {
    grid-template-columns: auto minmax(180px, 260px) 1fr auto;
    grid-template-areas: "play meta wave time";
    column-gap: 24px;
    padding: 22px 28px;
  }
}
.beat:hover, .beat.is-active { background: #0c0c0e; }
.beat-play {
  grid-area: play;
  width: 52px; height: 52px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  color: #050505;
  background: linear-gradient(180deg, #FFFFFF 0%, #B0B4BA 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 10px 24px -12px rgba(255,255,255,0.35);
  transition: transform .2s ease, filter .2s ease;
  cursor: pointer;
}
.beat-play:hover { transform: scale(1.06); filter: brightness(1.05); }
.beat-play .i-play { margin-left: 3px; }
.beat-play .i-pause { display: none; }
.beat.is-playing .beat-play .i-play { display: none; }
.beat.is-playing .beat-play .i-pause { display: block; }
/* =========================================================
   ARTISTI (uscite su Spotify)
   ========================================================= */
.artist-card { transition: border-color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.artist-card:hover { transform: translateY(-3px); }
.artist-cover img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.artist-cover:hover img { transform: scale(1.04); }
.artist-cover-badge {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 12px;
  border-radius: 9999px;
  background: rgba(5,5,5,0.62);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #F4F4F4;
}
.artist-track {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: padding .2s ease;
}
.artist-track:hover { padding-left: 6px; }
.artist-listen {
  flex-shrink: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #8A8A8E;
  transition: color .2s ease;
}
.artist-track:hover .artist-listen { color: #F4F4F4; }
.spotify-dot { width: 8px; height: 8px; border-radius: 9999px; background: #1DB954; box-shadow: 0 0 10px rgba(29,185,84,0.6); }
.artist-collab {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.artist-collab img {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform .25s ease;
}
.artist-collab:hover img { transform: scale(1.06); }
.artist-collab:hover .artist-listen { color: #F4F4F4; }
.artist-next {
  border: 1px dashed rgba(255,255,255,0.22);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%);
  transition: border-color .25s ease, background .25s ease;
}
.artist-next:hover { border-color: rgba(255,255,255,0.5); background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%); }
.artist-next:hover .cta-arrow { transform: translateX(4px); }

/* =========================================================
   AUDIO SPOT (pulsante attiva/disattiva)
   ========================================================= */
.sound-toggle[hidden] { display: none !important; }
.sound-toggle .i-on { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.sound-toggle .i-on i { display: block; width: 3px; height: 4px; border-radius: 1px; background: currentColor; animation: soundEq .9s ease-in-out infinite; }
.sound-toggle .i-on i:nth-child(2) { animation-delay: .2s; }
.sound-toggle .i-on i:nth-child(3) { animation-delay: .4s; }
@keyframes soundEq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.sound-toggle.is-on { color: #F4F4F4; }
.sound-toggle.is-on .sound-icon { border-color: rgba(255,255,255,0.6); }
.sound-toggle.is-on .i-muted { display: none; }
.sound-toggle.is-on .i-on { display: flex; }

/* Copertina = pulsante play */
.beat-play.beat-cover {
  position: relative;
  width: 64px; height: 64px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #111114;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 12px 28px -14px rgba(0,0,0,0.9);
}
@media (min-width: 768px) { .beat-play.beat-cover { width: 76px; height: 76px; } }
.beat-play.beat-cover:hover { transform: scale(1.04); filter: none; }
.beat-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .25s ease;
}
.beat-cover-icon {
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  color: #050505;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8BCC2 100%);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.8);
  opacity: 0.92;
  transition: opacity .2s ease, transform .2s ease;
}
.beat-cover-icon .i-play { margin-left: 2px; }
.beat-cover:hover img, .beat.is-playing .beat-cover img { filter: brightness(0.6); }
.beat-cover:hover .beat-cover-icon { opacity: 1; transform: scale(1.06); }

.beat-meta { grid-area: meta; min-width: 0; }
.beat-title {
  font-family: "Clash Display", system-ui, sans-serif;
  font-weight: 500;
  font-size: 20px; line-height: 1.1;
  color: #F4F4F4;
}
@media (min-width: 768px) {
  .beat-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.beat-sub {
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #8A8A8E;
}
.beat-wave {
  grid-area: wave;
  position: relative;
  height: 48px;
  cursor: pointer;
  border-radius: 6px;
}
.beat-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.beat-wave-base rect { fill: rgba(244,244,244,0.18); }
.beat-wave-fill rect { fill: #F4F4F4; }
.beat-wave-fill { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.beat:not(.is-active) .beat-wave:hover .beat-wave-base rect { fill: rgba(244,244,244,0.32); }
.beat-time {
  grid-area: time;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: #B8B8BC;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
