/* Token di design (brief ALAP Audio): fondo #121212, accento ambra
   da display di apparecchi da studio, sans-serif per i testi e mono per
   i dati tecnici. Il sito e' solo scuro. */
:root{
    color-scheme: dark;
    --bg: #121212;
    --bg-panel: #1A1A1A;
    --bg-panel-2: #222222;
    --accent: #FFB300;
    --accent-2: #5C4100;
    --text: #EDEDED;
    --text-muted: #A0A0A0;
    --rule: #2E2E2E;
    --metal-light: #3A3A3A;
    --metal-mid: #262626;
    --metal-dark: #181818;
    --font-sans: 'IBM Plex Sans', system-ui, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  }

  *{ box-sizing: border-box; }
  html{ background: var(--bg); }
  body{
    margin: 0;
    background: linear-gradient(180deg, #1A1A1A, var(--bg) 420px);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  img{ max-width: 100%; display:block; }
  a{ color: inherit; }
  .wrap{
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
  }

  /* ---------- tick rule divider (fader-track motif) ---------- */
  .tick-rule{
    height: 14px;
    background-image: repeating-linear-gradient(
      to right, var(--rule) 0 1px, transparent 1px 14px
    );
    background-position: bottom;
    background-repeat: repeat-x;
    background-size: auto 8px;
    margin: 0;
  }

  /* ---------- header / nav ---------- */
  header{
    position: sticky; top: 0; z-index: 20;
    background: linear-gradient(180deg, rgba(34,34,34,0.92), rgba(18,18,18,0.92));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--rule);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .nav{
    display:flex; align-items:center; justify-content: space-between;
    padding: 18px clamp(20px,5vw,48px);
    max-width: 1040px; margin: 0 auto;
    gap: 16px; flex-wrap: wrap;
  }
  .brand{
    display:flex; flex-direction:column; gap:2px;
  }
  .brand-logo{
    height: 52px;
    width: auto;
    display: block;
  }
  .brand .role{
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
  }
  .nav-right{
    display:flex; align-items:center;
    gap: clamp(16px, 3vw, 28px);
    flex-wrap: wrap;
  }
  .nav-links{
    display:flex; gap: clamp(14px, 3vw, 28px);
    list-style:none; margin:0; padding:0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
  }
  .nav-links a{
    text-decoration:none; color: var(--text-muted);
    padding-bottom: 3px; border-bottom: 1px solid transparent;
    transition: color .15s, border-color .15s;
  }
  .nav-links a:hover, .nav-links a:focus-visible{
    color: var(--text); border-color: var(--accent);
  }
  /* Pagina corrente nel menu. */
  .nav-links a[aria-current="page"]{
    color: var(--text); border-color: var(--accent);
  }
  a.brand{ text-decoration: none; }
  .lang-toggle{
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 6px 13px;
    border: 1px solid var(--rule);
    background: linear-gradient(180deg, var(--metal-light), var(--metal-dark));
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s;
  }
  .lang-toggle:hover, .lang-toggle:focus-visible{ border-color: var(--accent); }

  /* Bottone hamburger: nascosto su desktop, mostrato sotto ai 760px. */
  .nav-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap: 5px;
    width: 38px; height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--rule);
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-toggle span{
    display:block;
    width: 18px; height: 1px;
    background: var(--text);
    transition: transform .18s, opacity .18s;
  }
  .nav-toggle:hover, .nav-toggle:focus-visible{ border-color: var(--accent); }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  /* ---------- hero ---------- */
  .hero{
    position: relative;
    padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px);
    overflow: hidden;
  }
  .hero-grid{
    display:grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items:end;
  }
  .hero h1{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.12;
    margin: 0 0 20px;
    max-width: 15ch;
  }
  .hero p{
    color: var(--text-muted);
    max-width: 46ch;
    font-size: 1.12rem;
    line-height: 1.6;
    margin: 0;
  }
  .waveform{
    align-self: stretch;
    display:flex; align-items:flex-end; gap: 3px;
    height: clamp(120px, 20vw, 200px);
  }
  .waveform span{
    flex: 1;
    background: linear-gradient(to top, var(--accent), transparent 130%);
    opacity: .55;
    border-radius: 1px;
  }

  .eyebrow{
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    margin: 0 0 10px;
  }

  /* ---------- about / chi sono ---------- */
  .about-layout{
    display:flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 36px);
  }
  .about-portrait{
    width: 100%;
    background: linear-gradient(160deg, var(--metal-light), var(--bg-panel-2) 60%, var(--metal-dark));
    border: 1px solid var(--rule);
    position: relative;
    line-height: 0;
  }
  .about-portrait img{
    width: 100%;
    height: auto;
    display: block;
  }
  .about-p{
    color: var(--text-muted);
    max-width: 52ch;
    margin: 0 0 15px;
    font-size: 1.12rem;
    line-height: 1.62;
  }
  .about-facts{
    margin-top: 22px;
    display:flex; flex-direction:column; gap: 10px;
    border-top: 1px solid var(--rule);
    padding-top: 18px;
  }
  .fact{
    display:flex; gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
  }
  .fact-label{ color: var(--text-muted); min-width: 170px; }
  .fact-value{ color: var(--text); }

  /* Studio section: let the text column fill the same width as the photo above it
     instead of wrapping at the general-purpose 52ch reading measure. */
  #studio .about-p{ max-width: none; }

  /* Seconda e terza area dello studio: staccano dal blocco precedente. */
  .studio-area-2, .studio-area-3{
    margin-top: clamp(44px, 7vw, 72px);
    padding-top: clamp(32px, 5vw, 48px);
    border-top: 1px solid var(--rule);
  }

  /* Elenco dei synth della terza area: nome + breve descrizione. */
  .synth-list{
    margin-top: 22px;
    display: flex;
    flex-direction: column;
  }
  .synth-item{
    padding: 16px 0;
    border-top: 1px solid var(--rule);
  }
  .synth-item:last-child{
    border-bottom: 1px solid var(--rule);
  }
  .s-name{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    margin: 0 0 5px;
  }
  .s-desc{
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
  }

  /* Seconda parte della terza area: continua lo stesso blocco, quindi uno
     stacco più leggero (niente riga, solo spazio) rispetto alle altre aree. */
  .studio-area-3b{
    margin-top: clamp(36px, 5vw, 56px);
  }
  .about-portrait-pair{
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Prima area dello studio: il testo lungo entra in un box con scorrimento
     proprio, così la sezione occupa meno spazio verticale in pagina. */
  .studio-text-scroll-wrap{
    position: relative;
    margin-bottom: 22px;
  }
  .studio-text-scroll{
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--rule);
    background: var(--bg-panel);
    padding: 20px 18px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--metal-light) transparent;
  }
  .studio-text-scroll::-webkit-scrollbar{ width: 8px; }
  .studio-text-scroll::-webkit-scrollbar-track{ background: transparent; }
  .studio-text-scroll::-webkit-scrollbar-thumb{ background: var(--metal-light); border-radius: 4px; }
  .studio-text-scroll::-webkit-scrollbar-thumb:hover{ background: var(--accent-2); }
  /* Sfumatura in fondo al box: suggerisce che c'è altro testo sotto. */
  .studio-text-scroll-wrap::after{
    content: "";
    position: absolute;
    left: 1px; right: 1px; bottom: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, var(--bg-panel));
    pointer-events: none;
  }

  /* ---------- latest strip ---------- */
  .latest{
    padding: 28px 0 8px;
  }
  .latest-list{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  .latest-item{
    background: var(--bg);
    padding: 18px 20px 20px;
  }
  .latest-item .kind{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
  }
  .latest-item .title{
    font-family: var(--font-sans);
    font-size: 1.15rem;
    margin: 6px 0 0;
  }

  /* ---------- generic section ---------- */
  section.block{
    padding: clamp(48px, 7vw, 76px) 0;
  }
  .section-head{
    display:flex; justify-content:space-between; align-items:flex-end;
    gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
  }
  .section-head h2{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0;
  }
  .section-head .desc{
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 34ch;
  }

  /* ---------- track / episode rows ---------- */
  .rows{ display:flex; flex-direction:column; }
  .row{
    display:grid;
    grid-template-columns: 28px 1fr auto auto;
    align-items:center;
    gap: 16px;
    padding: 14px 4px;
    border-top: 1px solid var(--rule);
    transition: background .15s;
  }
  .rows .row:last-child{ border-bottom: 1px solid var(--rule); }
  .row:hover{ background: var(--bg-panel); }
  .play-btn{
    width: 26px; height: 26px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: linear-gradient(180deg, var(--metal-light), var(--metal-dark));
    color: var(--text);
    display:flex; align-items:center; justify-content:center;
    cursor: pointer;
    padding: 0;
    transition: border-color .15s, background .15s;
  }
  .play-btn:hover{ border-color: var(--accent); }
  .play-btn svg{ width: 9px; height: 9px; fill: var(--text); margin-left: 1px; }
  .play-btn[aria-pressed="true"]{ background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-color: var(--accent); }
  .play-btn[aria-pressed="true"] svg{ fill: var(--bg); }
  /* Icona play/pausa: si scambiano in base allo stato del pulsante. */
  .play-btn .icon-pause{ display: none; margin-left: 0; }
  .play-btn[aria-pressed="true"] .icon-play{ display: none; }
  .play-btn[aria-pressed="true"] .icon-pause{ display: block; }

  .row .title-tag{ min-width: 0; }
  .row p{ margin: 0; }
  .row .r-title{
    font-family: var(--font-sans);
    font-size: 1.05rem;
  }
  .row .r-tag{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
  }
  .row .r-time{
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
  }
  .row .r-index{
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  /* ---------- video section ---------- */
  .video-layout{
    display:grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
  }
  .video-featured{
    background: var(--bg-panel);
    border: 1px solid var(--rule);
  }
  .video-frame{
    aspect-ratio: 16/9;
    background: var(--bg-panel-2);
    position: relative;
    display:flex; align-items:center; justify-content:center;
  }
  .video-frame::before, .video-frame::after{
    content:"";
    position:absolute; left:0; right:0;
    height:1px; background: var(--rule);
  }
  .video-frame::before{ top: 33%; }
  .video-frame::after{ top: 66%; }
  .video-play{
    width: 54px; height: 54px; border-radius: 50%;
    border: 1px solid var(--accent);
    background: linear-gradient(180deg, var(--metal-light), var(--metal-dark));
    display:flex; align-items:center; justify-content:center;
    z-index: 1;
  }
  .video-play svg{ width: 16px; height: 16px; fill: var(--accent); margin-left: 2px; }
  .video-caption{
    padding: 16px 20px;
    display:flex; justify-content:space-between; align-items:baseline;
    gap: 12px;
  }
  .video-caption .r-title{ font-size: 1.15rem; }
  .video-list .row{ grid-template-columns: 1fr auto; }
  .video-list .r-tag{ margin-top: 4px; }

  /* ---------- intestazione delle pagine interne ---------- */
  /* Solo spazio sopra e sotto: quello laterale lo dà già .wrap. */
  .page-head{
    padding-top: clamp(48px, 8vw, 88px);
    padding-bottom: clamp(28px, 4vw, 40px);
  }
  .page-head h1{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.12;
    margin: 0 0 16px;
  }
  .page-head .lead{
    color: var(--text-muted);
    max-width: 58ch;
    font-size: 1.12rem;
    line-height: 1.6;
    margin: 0;
  }
  .sub-head{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    margin: 0 0 8px;
  }
  .sub-desc{
    color: var(--text-muted);
    margin: 0 0 24px;
    max-width: 58ch;
  }

  /* ---------- home: i due filoni ---------- */
  .paths{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  .path{
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding: clamp(24px, 4vw, 36px);
    text-decoration: none;
    transition: background .15s;
  }
  .path:hover, .path:focus-visible{ background: var(--bg-panel); }
  .path h2{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    line-height: 1.2;
    margin: 0 0 12px;
  }
  .path p{
    color: var(--text-muted);
    margin: 0 0 18px;
  }
  .path-go{
    margin-top: auto;
    padding-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
  }

  /* Etichette (generi, categorie). */
  .tags{
    display: flex; flex-wrap: wrap; gap: 6px;
    list-style: none; margin: 0 0 18px; padding: 0;
  }
  .tags li{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    border: 1px solid var(--rule);
    padding: 3px 9px;
  }

  /* Le voci di "Ultimi arrivi" sono link. */
  a.latest-item{ text-decoration: none; transition: background .15s; }
  a.latest-item:hover, a.latest-item:focus-visible{ background: var(--bg-panel); }

  /* ---------- pulsanti ed etichette di stato ---------- */
  .btn{
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 9px 16px;
    border: 1px solid var(--rule);
    color: var(--text);
    background: linear-gradient(180deg, var(--metal-light), var(--metal-dark));
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
  }
  .btn:hover, .btn:focus-visible{ border-color: var(--accent); }
  .btn-primary{ border-color: var(--accent); color: var(--accent); }
  .btn-primary:hover, .btn-primary:focus-visible{
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: var(--bg);
  }
  .btn-size{ opacity: .7; }
  .badge{
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 9px;
    border: 1px solid var(--rule);
    color: var(--text-muted);
    white-space: nowrap;
  }
  .badge-free{ border-color: var(--accent); color: var(--accent); }

  /* ---------- schede dei plugin ---------- */
  .plugin-group + .plugin-group{ margin-top: clamp(48px, 7vw, 72px); }
  .plugin-card{
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(24px, 4vw, 40px);
    padding: clamp(28px, 4vw, 40px) 0;
    border-top: 1px solid var(--rule);
    scroll-margin-top: 110px;
  }
  .plugin-card:last-child{ border-bottom: 1px solid var(--rule); }
  .pc-shot{
    border: 1px solid var(--rule);
    background: var(--bg-panel);
    align-self: start;
    line-height: 0;
  }
  .pc-shot img{ width: 100%; height: auto; }
  /* Segnaposto per i plugin senza ancora una cattura dell'interfaccia. */
  .pc-shot-empty{
    aspect-ratio: 16/9;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--metal-mid), var(--bg-panel-2) 60%, var(--metal-dark));
    line-height: 1.4;
  }
  .pc-shot-empty span{
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  .pc-top{
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-bottom: 6px;
  }
  .pc-kind{
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent);
    margin: 0;
  }
  .pc-name{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    line-height: 1.2;
    margin: 0 0 10px;
  }
  .pc-desc{
    color: var(--text-muted);
    margin: 0 0 16px;
  }
  .pc-features{
    margin: 0 0 18px; padding: 0;
    list-style: none;
    font-size: 0.98rem;
  }
  .pc-features li{
    padding: 5px 0 5px 18px;
    position: relative;
  }
  .pc-features li::before{
    content: "";
    position: absolute; left: 0; top: 0.9em;
    width: 8px; height: 1px;
    background: var(--accent);
  }
  .pc-meta{
    display: flex; flex-wrap: wrap; gap: 8px 28px;
    margin: 0 0 22px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 0.78rem;
  }
  .pc-meta dt{ color: var(--text-muted); }
  .pc-meta dd{ margin: 2px 0 0; color: var(--text); }
  .pc-actions{ display: flex; flex-wrap: wrap; gap: 10px; }
  .pc-soon{
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
  }

  /* Riquadro informativo (installazione, avvisi). */
  .note-box{
    border: 1px solid var(--rule);
    background: var(--bg-panel);
    padding: clamp(20px, 3vw, 28px);
  }
  .note-box h2{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.3rem;
    margin: 0 0 12px;
  }
  .note-box ol, .note-box ul{
    margin: 0; padding-left: 20px;
    color: var(--text-muted);
  }
  .note-box li{ margin: 0 0 8px; }
  .note-box code{
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text);
    overflow-wrap: anywhere;
  }

  /* ---------- schede generiche (progetti musicali, tipi di video) ---------- */
  .cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  .card{
    background: var(--bg);
    padding: clamp(20px, 3vw, 28px);
  }
  .card h3{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.25rem;
    margin: 6px 0 10px;
  }
  .card p{ color: var(--text-muted); margin: 0 0 12px; }
  .card p:last-child{ margin-bottom: 0; }
  .card .kind{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    margin: 0;
  }

  /* ---------- catalogo dei brani ---------- */
  .filters{
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 24px;
  }
  .filter-row{
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  }
  .filter-label{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    min-width: 76px;
  }
  .chip{
    font-family: var(--font-mono);
    font-size: 0.74rem;
    padding: 5px 11px;
    border: 1px solid var(--rule);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
  }
  .chip:hover:not(:disabled), .chip:focus-visible{ border-color: var(--accent); color: var(--text); }
  .chip[aria-pressed="true"]{
    border-color: var(--accent);
    background: var(--accent-2);
    color: var(--text);
  }
  .chip:disabled{ opacity: .4; cursor: default; }
  .chip-n{ opacity: .6; }

  /* Ogni brano e' una scheda: riga principale + corpo con barra di
     avanzamento, link alle piattaforme, badge e download. */
  .track{ border-top: 1px solid var(--rule); scroll-margin-top: 110px; transition: background .15s; }
  .track:last-child{ border-bottom: 1px solid var(--rule); }
  .track:hover, .track.is-playing{ background: var(--bg-panel); }
  .track-list .row{ grid-template-columns: 28px 26px 1fr auto; border-top: 0; }
  .track-list .row:hover{ background: transparent; }
  .track-list-single .row{ grid-template-columns: 26px 1fr auto; }
  .track-body{ padding: 0 8px 14px 90px; }
  .track-list-single .track-body{ padding-left: 46px; }
  .track-links{
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px 18px;
  }
  .t-cur{ color: var(--accent); }

  /* Barra di avanzamento: range nativo (accessibile da tastiera) con la
     parte gia' ascoltata in ambra. */
  .seek{
    --p: 0%;
    -webkit-appearance: none; appearance: none;
    display: block; width: 100%;
    height: 18px; margin: 0 0 8px;
    background: transparent;
    cursor: pointer;
  }
  .seek:disabled{ cursor: default; opacity: .5; }
  .seek::-webkit-slider-runnable-track{
    height: 3px;
    background: linear-gradient(to right, var(--accent) var(--p), var(--metal-light) var(--p));
  }
  .seek::-moz-range-track{ height: 3px; background: var(--metal-light); }
  .seek::-moz-range-progress{ height: 3px; background: var(--accent); }
  .seek::-webkit-slider-thumb{
    -webkit-appearance: none; appearance: none;
    width: 11px; height: 11px; margin-top: -4px;
    border-radius: 50%; border: 0; background: var(--accent);
  }
  .seek::-moz-range-thumb{ width: 11px; height: 11px; border-radius: 50%; border: 0; background: var(--accent); }
  .seek:focus-visible{ outline: 1px solid var(--accent); outline-offset: 2px; }

  /* Badge "Prodotto con <plugin>": collega il brano alla scheda del plugin. */
  .badge-produced{
    border-color: var(--accent); color: var(--accent);
    text-decoration: none;
  }
  .badge-produced:hover, .badge-produced:focus-visible{ background: var(--accent-2); color: var(--text); }
  .r-link{
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
  }
  .r-link:hover, .r-link:focus-visible{ color: var(--accent); }
  .track-player{ padding: 4px 4px 16px; }
  .track-player iframe{ display: block; width: 100%; height: 166px; border: 0; }

  /* Messaggio "in preparazione". */
  .empty-state{
    border: 1px dashed var(--rule);
    padding: clamp(24px, 4vw, 36px);
    text-align: center;
    color: var(--text-muted);
  }
  .empty-state p{ margin: 0 auto; max-width: 52ch; }


  /* Pulsanti come <button>: stesso aspetto dei link .btn. */
  button.btn{ cursor: pointer; font-family: var(--font-mono); }
  .btn-small{ padding: 6px 12px; font-size: 0.74rem; }

  /* ---------- home: ultimo plugin e ultimo brano ---------- */
  .featured{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  .featured > div{
    background: var(--bg);
    padding: clamp(22px, 3.5vw, 32px);
    min-width: 0;
  }
  .feat-shot{
    display: block; line-height: 0;
    border: 1px solid var(--rule);
    margin-bottom: 18px;
  }
  .feat-shot img{ width: 100%; height: auto; }
  .feat-name{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    margin: 0 0 6px;
  }
  .feat-meta{
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 0 0 12px;
  }
  .feat-desc{ color: var(--text-muted); margin: 0 0 18px; }
  .feat-more{ margin: 18px 0 0; }
  .feat-more .path-go{ text-decoration: none; }

  /* ---------- changelog dei plugin ---------- */
  .changelog{
    margin-top: 18px;
    border-top: 1px solid var(--rule);
    padding-top: 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
  }
  .changelog summary{ cursor: pointer; color: var(--text-muted); }
  .changelog summary:hover{ color: var(--accent); }
  .changelog > ul{ list-style: none; margin: 12px 0 0; padding: 0; }
  .changelog > ul > li{ margin-bottom: 10px; }
  .cl-ver{ color: var(--accent); margin-right: 12px; }
  .cl-date{ color: var(--text-muted); }
  .changelog li ul{
    margin: 4px 0 0; padding-left: 18px;
    font-family: var(--font-sans); font-size: 0.95rem;
    color: var(--text-muted);
  }

  /* Impronta SHA-256 dell'installatore. */
  .pc-hash{
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
  }
  .pc-hash summary{ cursor: pointer; color: var(--text-muted); }
  .pc-hash summary:hover{ color: var(--accent); }
  .pc-hash .hash{
    display: block;
    margin: 10px 0 8px;
    padding: 8px 10px;
    border: 1px solid var(--rule);
    background: var(--bg-panel);
    color: var(--text);
    overflow-wrap: anywhere;
    user-select: all;
  }
  .pc-hash p{ margin: 0; color: var(--text-muted); }
  .pc-hash p code{ color: var(--text); }

  /* ---------- email gate ---------- */
  .gate{
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 1px solid var(--accent);
    background: var(--bg-panel);
    color: var(--text);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
  }
  .gate::backdrop{ background: rgba(0,0,0,.72); }
  .gate-form{ padding: clamp(22px, 4vw, 30px); }
  .gate h2{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0 0 10px;
  }
  .gate-intro{ color: var(--text-muted); margin: 0 0 20px; font-size: 0.98rem; }
  .gate-intro a, .gate .check a{ color: var(--accent); }
  .field{ display: block; margin-bottom: 14px; }
  .field span{
    display: block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 5px;
  }
  .field input{
    width: 100%;
    font: inherit; font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--rule);
    padding: 9px 11px;
  }
  .field input:focus{ outline: none; border-color: var(--accent); }
  .check{
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.9rem; line-height: 1.45;
    color: var(--text-muted);
    margin-bottom: 12px;
    cursor: pointer;
  }
  .check input{ margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
  .gate-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .gate-error{
    min-height: 1.2em;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    margin: 4px 0 14px;
  }

  /* ---------- pagina /links (link-in-bio) ---------- */
  .links-page{
    max-width: 480px;
    margin: 0 auto;
    padding: clamp(36px, 8vw, 64px) 16px 48px;
    text-align: center;
  }
  .links-logo{ height: 72px; width: auto; margin: 0 auto 18px; }
  .links-page h1{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.4rem;
    margin: 0 0 6px;
  }
  .links-page .lead{ color: var(--text-muted); margin: 0 0 28px; font-size: 0.98rem; }
  .link-stack{ display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
  .link-btn{
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 14px 18px;
    border: 1px solid var(--rule);
    background: linear-gradient(180deg, var(--metal-light), var(--metal-dark));
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    transition: border-color .15s;
  }
  .link-btn:hover, .link-btn:focus-visible{ border-color: var(--accent); }
  .link-btn-primary{ border-color: var(--accent); }
  .lb-kind{ font-size: 0.7rem; color: var(--accent); }
  .lb-title{ font-family: var(--font-sans); font-size: 1.02rem; }
  .link-group-label{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0 0 10px;
    text-align: left;
  }

  /* ---------- testo lungo (privacy) ---------- */
  .prose{ max-width: 68ch; }
  .prose h2{
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.25rem;
    margin: 32px 0 10px;
  }
  .prose p, .prose li{ color: var(--text-muted); }
  .prose a{ color: var(--accent); }

  /* ---------- footer ---------- */
  footer{
    padding: 40px 0 56px;
  }
  .foot-row{
    display:flex; justify-content:space-between; align-items:center;
    gap: 16px; flex-wrap: wrap;
    padding-top: 24px;
  }
  .foot-links{
    display:flex; gap: 20px;
    list-style:none; margin:0; padding:0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
  }
  .foot-links a{ text-decoration:none; color: var(--text-muted); }
  .foot-links a:hover{ color: var(--accent); }
  .foot-social{
    margin-top: 18px;
    display: flex; flex-wrap: wrap; gap: 10px 40px;
  }
  .foot-links .foot-label{ color: var(--text); }
  .copyright{
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  /* ---------- responsive ---------- */
  @media (max-width: 760px){
    /* Nav: il menu si comprime in un pannello a comparsa sotto l'hamburger,
       così i 7 link non spingono la pagina oltre la larghezza dello schermo. */
    .nav-toggle{ display:flex; }
    .nav-right{
      display: none;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      gap: 18px;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--rule);
    }
    .nav-right.open{ display:flex; }
    .nav-links{
      flex-direction: column;
      gap: 14px;
      width: 100%;
      font-size: 0.95rem;
    }

    .hero-grid{ grid-template-columns: 1fr; }
    .waveform{ height: 90px; }
    .fact-label{ min-width: 130px; }
    .studio-text-scroll{ max-height: 300px; }
    .latest-list{ grid-template-columns: 1fr; }
    .paths{ grid-template-columns: 1fr; }
    .plugin-card{ grid-template-columns: 1fr; }
    .video-layout{ grid-template-columns: 1fr; }
    .row{ grid-template-columns: 24px 1fr auto; }
    .row .r-index{ display:none; }
    .track-list .row{ grid-template-columns: 26px 1fr auto; }
    .track-body, .track-list-single .track-body{ padding-left: 46px; }
    .featured{ grid-template-columns: 1fr; }
    .filter-label{ min-width: 100%; }
  }

  @media (prefers-reduced-motion: reduce){
    *{ transition: none !important; }
  }
