/* ============================================================
   VARIABILI / RESET
   ============================================================ */
:root{
  --yellow:#ffc600;
  --yellow-soft:#fff3c4;
  --yellow-deep:#e6a800;
  --ink:#111111;
  --ink-soft:#333333;
  --ink-mute:#777777;
  --paper:#ffffff;
  --wobble-1: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --wobble-3: 225px 15px 255px 15px / 15px 255px 15px 225px;
  --wobble-4: 30px 200px 40px 220px / 220px 40px 200px 30px;
  --wobble-sm: 18px 6px 20px 8px / 8px 20px 6px 18px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin:0; padding:0; font-family:'Kalam', cursive; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html, body { min-height:100%; }
body{
  background:#ffffff;
  color:#1a1a1a;
  overflow-x:hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
body::before{
  content:'';
  position:fixed; inset:0; z-index:0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.14) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  opacity:.5;
  pointer-events:none;
}
body::after{
  content:'';
  position:fixed; inset:0; z-index:0;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,.045) 100%);
  pointer-events:none;
}

/* ============================================================
   STRUTTURA SITO
   ============================================================ */
.site{
  position:relative;
  z-index:1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 8px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding: 4px 2px 2px;
  margin-bottom: 22px;
}

.site-logo{
  display:flex; align-items:center; gap:12px;
  font-family:'Caveat', cursive;
  font-weight:700; font-size:36px; line-height:1;
  user-select:none;
}
.site-logo .mark{
  width:50px; height:50px;
  display:grid; place-items:center;
  font-size:27px;
  background:var(--yellow);
  border:2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .25s ease;
  flex:0 0 auto;
}
.site-logo:hover .mark{ transform: rotate(6deg) scale(1.05); }
.site-logo .txt{
  position:relative; padding: 2px 10px; z-index:1;
  display:flex; flex-direction:column; gap:0;
}
.site-logo .txt::before{
  content:'';
  position:absolute; left:0; right:-4px; top: 26%;
  height: 40%;
  background: var(--yellow);
  z-index:-1;
  transform: skew(-6deg) rotate(-1deg);
  border-radius: 8px 20px 12px 18px / 18px 10px 20px 12px;
}
.site-logo .name{ font-size:36px; }
.site-logo .tag{
  font-family:'Kalam', cursive;
  font-size:11px; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase;
  color: var(--ink-mute);
  margin-top: 1px;
}

.site-nav{
  display:flex; gap:8px;
  padding:6px;
  background:#fff;
  border:2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-btn{
  display:inline-flex; align-items:center; gap:9px;
  padding: 10px 20px;
  font-family:'Kalam', cursive;
  font-size:15px; font-weight:700; letter-spacing:.4px;
  color: var(--ink);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--wobble-sm);
  cursor:pointer;
  transition: all .15s ease;
  white-space:nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-btn:hover{ background: var(--yellow-soft); }
.nav-btn:active{ transform: translate(1px,1px); }
.nav-btn.active{
  background: var(--yellow);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.nav-btn .ico{ font-size:18px; line-height:1; }

.site-main{ position:relative; }

.view{ display:none; }
.view.active{
  display:block;
  animation: viewIn .38s cubic-bezier(.2,.8,.3,1.1) both;
}
@keyframes viewIn{
  from{ opacity:0; transform: translateY(10px); }
  to  { opacity:1; transform: translateY(0); }
}

.site-footer{
  margin: 30px 0 6px;
  padding-top: 14px;
  position:relative;
  text-align:center;
  font-size:11.5px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color: var(--ink-mute);
  font-weight:700;
}
.site-footer::before{
  content:'';
  position:absolute; top:0; left:22%; right:22%;
  height: 7px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'><path d='M2 4 Q 40 1, 80 4 T 150 4 T 220 4 T 298 4' stroke='%231a1a1a' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.35'/></svg>");
  background-repeat:no-repeat;
  background-size:100% 100%;
}
.site-footer .brand{
  color: var(--ink); letter-spacing:.22em;
  position:relative; padding:0 4px;
}
.site-footer .brand::after{
  content:''; position:absolute; left:0; right:0; bottom:-2px;
  height:5px; background: rgba(255,198,0,.75);
  z-index:-1; border-radius:3px;
}

/* ============================================================
   METRONOMO
   ============================================================ */
.metronome{
  container-type: inline-size;
  container-name: metro;
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 26px 18px;
  background:#ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 18px 8px 20px 10px / 10px 20px 8px 18px;
  box-shadow: 4px 4px 0 rgba(255,198,0,.55), 5px 5px 0 rgba(26,26,26,.1);
  animation: cardIn .6s cubic-bezier(.2,.8,.3,1.2);
}
@keyframes cardIn{
  from{ opacity:0; transform: translateY(15px) rotate(-.4deg); }
  to  { opacity:1; transform: translateY(0) rotate(0); }
}
.metronome::before{
  content:'';
  position:absolute;
  top:-10px; left:40px;
  transform: rotate(-3deg);
  width:70px; height:18px;
  background: rgba(255,198,0,.6);
  border-left: 1px dashed rgba(26,26,26,.2);
  border-right: 1px dashed rgba(26,26,26,.2);
  z-index:3;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.metronome .layout{
  display:grid;
  grid-template-columns: 1fr;
  gap:0;
  align-items:start;
}
.metronome .col-left{
  display:flex; flex-direction:column;
  align-items:center; text-align:center;
}
.metronome h1{
  font-size:1.35rem; font-weight:700; color:#1a1a1a;
  letter-spacing:1px; margin-bottom:2px;
  position:relative; display:inline-block;
  transform: rotate(-1deg);
}
.metronome h1::after{
  content:'';
  display:block; width:100%; height:8px; margin-top:1px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'><path d='M2 5 Q 30 1, 55 5 T 105 5 T 155 5 T 198 5' stroke='%23ffc600' stroke-width='3.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat; background-size:100% 100%;
}
.metronome .subtitle{
  font-size:.6rem; color:#666; letter-spacing:2px;
  margin-bottom:14px; transform: rotate(-.4deg); font-weight:400;
}

/* Display BPM */
.metronome .display{
  position:relative; margin:0 auto 12px;
  width:145px; height:145px;
  display:flex; justify-content:center; align-items:center;
}
.metronome .display svg{
  position:absolute; inset:0;
  width:100%; height:100%;
  transform: rotate(-90deg);
  pointer-events:none;
}
.metronome .display circle{ fill:none; stroke-width:2.4; }
.metronome .ring-bg{ stroke: rgba(26,26,26,.25); stroke-dasharray:4 6; stroke-linecap:round; }
.metronome .ring-progress{
  stroke: url(#grad);
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 565;
  transition: stroke-dashoffset .08s linear;
}
.metronome .bpm-value{
  font-size:2.9rem; font-weight:700; color:#1a1a1a;
  line-height:1; transition: transform .1s;
  cursor:pointer; user-select:none; -webkit-user-select:none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  padding:4px 12px;
  position:relative; z-index:1; display:inline-block;
}
.metronome .bpm-value::before{
  content:'';
  position:absolute; left:0; right:0; top:55%;
  transform: translateY(-50%) rotate(-1.5deg);
  height:52%;
  background: rgba(255,198,0,.55);
  z-index:-1;
  border-radius: 30% 45% 35% 40% / 40% 35% 50% 40%;
}
.metronome .bpm-value:active{ transform: scale(.96); }
.metronome .bpm-value.beat{ transform: scale(1.08); }
.metronome .bpm-input{
  display:none;
  width:125px; height:2.9rem;
  font-family:'Kalam', cursive; font-size:2.9rem; font-weight:700;
  text-align:center; color:#1a1a1a;
  background:transparent; border:none; border-bottom:2.5px solid #ffc600;
  outline:none; line-height:1; padding:0;
  -moz-appearance: textfield;
}
.metronome .bpm-input::-webkit-outer-spin-button,
.metronome .bpm-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.metronome .bpm-wrap.editing .bpm-value{ display:none; }
.metronome .bpm-wrap.editing .bpm-input{ display:block; }
.metronome .bpm-label{ font-size:.6rem; letter-spacing:2.5px; color:#666; margin-top:4px; font-weight:700; }
.metronome .bpm-wrap{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; }

/* Slider BPM */
.metronome input[type="range"]{
  -webkit-appearance:none; appearance:none;
  width:100%; height:4px;
  background: repeating-linear-gradient(90deg, #1a1a1a 0 4px, transparent 4px 8px);
  outline:none; margin-bottom:14px;
  cursor:pointer; touch-action: manipulation; border-radius:2px;
}
.metronome input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:22px; height:22px;
  border-radius: 50% 45% 52% 48% / 48% 52% 45% 50%;
  background:#ffc600;
  border:2.2px solid #1a1a1a;
  box-shadow: 1.5px 1.5px 0 rgba(26,26,26,.7);
  cursor:pointer; transition: transform .12s;
}
.metronome input[type="range"]::-webkit-slider-thumb:hover{ transform: scale(1.1) rotate(-8deg); }
.metronome input[type="range"]::-moz-range-thumb{
  width:22px; height:22px;
  border-radius: 50% 45% 52% 48% / 48% 52% 45% 50%;
  background:#ffc600; border:2.2px solid #1a1a1a;
  box-shadow: 1.5px 1.5px 0 rgba(26,26,26,.7); cursor:pointer;
}
.metronome #volumeSlider{ margin-bottom:0; }
.metronome #volumeSlider::-webkit-slider-thumb{ width:18px; height:18px; }
.metronome #volumeSlider::-moz-range-thumb{ width:18px; height:18px; }

/* Controlli */
.metronome .controls{ display:flex; justify-content:center; gap:12px; align-items:center; }
.metronome button{
  font-family:'Kalam', cursive;
  font-weight:700; letter-spacing:1px;
  cursor:pointer; transition: all .15s ease;
  outline:none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.metronome button:focus{ outline:none; }
.metronome .btn-main{
  width:130px; padding:11px 0;
  border-radius: 12px 6px 14px 8px / 8px 14px 6px 12px;
  font-size:.9rem; color:#1a1a1a; background:#ffffff;
  border:2.2px solid #1a1a1a;
  box-shadow: 2.5px 2.5px 0 #ffc600;
  position:relative;
}
.metronome .btn-main:hover{ transform: translate(-1px,-1px); box-shadow: 3.5px 3.5px 0 #ffc600; background:#fff9e0; }
.metronome .btn-main:active{ transform: translate(2px,2px); box-shadow: 1px 1px 0 #ffc600; }
.metronome .btn-main.playing{ background:#ffc600; box-shadow: 2.5px 2.5px 0 #1a1a1a; }
.metronome .btn-main.playing:hover{ box-shadow: 3.5px 3.5px 0 #1a1a1a; background:#ffc600; }
.metronome .btn-main.space-flash{ animation: spaceFlash .25s ease-out; }
@keyframes spaceFlash{
  0%{ transform: scale(1); }
  40%{ transform: scale(.93); }
  100%{ transform: scale(1); }
}
.metronome .btn-side{
  width:44px; height:44px;
  border-radius: 50% 45% 52% 48% / 48% 52% 45% 50%;
  font-size:1.3rem; font-weight:700;
  color:#1a1a1a; background:#ffffff;
  border:2.2px solid #1a1a1a;
  box-shadow: 1.5px 1.5px 0 rgba(26,26,26,.15);
  display:flex; align-items:center; justify-content:center;
  line-height:1;
}
.metronome .btn-side:hover{ background:#ffc600; transform: translate(-1px,-1px); box-shadow: 2.5px 2.5px 0 #1a1a1a; }
.metronome .btn-side:active{ transform: translate(1px,1px); box-shadow: 1px 1px 0 #1a1a1a; }

.metronome .tempo-mark{
  margin-top:10px;
  font-size:.72rem; letter-spacing:2px;
  color:#1a1a1a; font-weight:700; font-style:italic;
}
.metronome .beat-dots{
  display:flex; justify-content:center; gap:8px;
  margin-top:10px; flex-wrap:wrap; min-height:14px;
}
.metronome .dot{
  width:14px; height:14px;
  border-radius: 50% 45% 52% 48% / 48% 52% 45% 50%;
  background:#ffffff; border:2.2px solid #1a1a1a;
  transition: all .1s;
}
.metronome .dot.active{ background:#ffc600; animation: dotBounce .28s cubic-bezier(.2,.9,.3,1.4); }
@keyframes dotBounce{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.5) rotate(15deg); }
  100%{ transform: scale(1.2); }
}
.metronome .dot.accent{ border-width:2.8px; }
.metronome .dot.accent.active{ background:#1a1a1a; }
.metronome .dot.medium.active{ background:#ffc600; opacity:.8; }

/* Colonna destra */
.metronome .col-right{
  display:flex; flex-direction:column;
  text-align:center; margin-top:16px;
}
.metronome .section-label{
  font-size:.65rem; letter-spacing:1.5px;
  color:#1a1a1a; font-weight:700;
  margin-bottom:6px; display:block; text-align:left;
  transform: rotate(-.6deg);
}
.metronome .section-label::after{ content:':'; margin-left:2px; }
.metronome .time-sig-section{ margin-bottom:14px; }
.metronome .sig-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:6px;
}
.metronome .sig-btn{
  padding:8px 3px;
  font-size:.75rem; font-weight:700; letter-spacing:.3px;
  color:#1a1a1a; background:#ffffff;
  border:1.8px solid #1a1a1a;
  border-radius: 7px 3px 8px 4px / 4px 8px 3px 7px;
  cursor:pointer; transition: all .15s ease;
  font-family:'Kalam', cursive;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position:relative; min-height:36px;
}
.metronome .sig-btn:hover{ background:#fff9e0; transform: translate(-1px,-1px); box-shadow: 1.5px 1.5px 0 #1a1a1a; }
.metronome .sig-btn:active{ transform: translate(0,0); box-shadow: 1px 1px 0 #1a1a1a; }
.metronome .sig-btn.active{ background:#ffc600; transform: translate(-1px,-1px); box-shadow: 1.5px 1.5px 0 #1a1a1a; font-weight:700; }
.metronome .sig-btn.custom{
  grid-column: span 4;
  display:flex; align-items:center; justify-content:center; gap:6px;
  background:#ffffff; border-style:dashed;
}
.metronome .sig-btn.custom:hover{ background:#fff9e0; }
.metronome .sig-btn.custom.active{ background:#ffc600; border-style:solid; }
.metronome .sig-btn.custom svg{ width:11px; height:11px; fill: currentColor; }

.metronome .custom-panel{
  margin-top:8px; padding:0 12px;
  border-radius: 10px 5px 12px 6px / 6px 12px 5px 10px;
  background:#ffffff;
  border:2px dashed #1a1a1a;
  max-height:0; overflow:hidden; opacity:0;
  padding-top:0; padding-bottom:0;
  transition: max-height .4s ease, opacity .3s ease, padding .3s ease, margin .3s ease;
}
.metronome .custom-panel.open{
  max-height:240px; opacity:1;
  padding-top:10px; padding-bottom:10px; margin-top:8px;
}
.metronome .custom-title{
  font-size:.6rem; letter-spacing:1.5px; color:#1a1a1a;
  font-weight:700; margin-bottom:8px; text-align:center;
  transform: rotate(-.5deg);
}
.metronome .custom-row{ display:flex; align-items:flex-end; justify-content:center; gap:10px; margin-bottom:8px; }
.metronome .num-wrap{ display:flex; flex-direction:column; align-items:center; gap:3px; }
.metronome .num-label{ font-size:.52rem; letter-spacing:1px; color:#555; text-transform:uppercase; font-weight:700; }
.metronome .num-input{
  width:52px; height:36px;
  font-family:'Kalam', cursive; font-size:1.15rem; font-weight:700;
  text-align:center; color:#1a1a1a; background:#ffffff;
  border:1.8px solid #1a1a1a;
  border-radius: 7px 3px 8px 4px / 4px 8px 3px 7px;
  outline:none; transition: all .2s; -moz-appearance: textfield;
}
.metronome .num-input::-webkit-outer-spin-button,
.metronome .num-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.metronome .num-input:focus{ background:#fff9e0; box-shadow: 1.5px 1.5px 0 #ffc600; }
.metronome .num-stepper{ display:flex; flex-direction:column; gap:2px; }
.metronome .step-btn{
  width:24px; height:17px;
  display:flex; align-items:center; justify-content:center;
  font-size:.55rem; font-weight:700; color:#1a1a1a;
  background:#ffffff; border:1.8px solid #1a1a1a;
  border-radius: 5px 2px 6px 3px / 3px 6px 2px 5px;
  cursor:pointer; transition: all .15s;
  padding:0; line-height:1;
  font-family:'Kalam', cursive;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.metronome .step-btn:hover{ background:#ffc600; transform: translate(-1px,-1px); box-shadow: 1px 1px 0 #1a1a1a; }
.metronome .step-btn:active{ transform: translate(0,0); box-shadow:none; }
.metronome .sig-sep{ font-size:1.4rem; font-weight:700; color:#1a1a1a; padding-bottom:4px; }
.metronome .den-options{ display:flex; justify-content:center; gap:5px; margin-bottom:8px; flex-wrap:wrap; }
.metronome .den-btn{
  padding:5px 12px; font-size:.7rem; font-weight:700;
  color:#1a1a1a; background:#ffffff;
  border:1.8px solid #1a1a1a;
  border-radius: 7px 3px 8px 4px / 4px 8px 3px 7px;
  cursor:pointer; transition: all .15s;
  font-family:'Kalam', cursive;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.metronome .den-btn:hover{ background:#fff9e0; transform: translate(-1px,-1px); box-shadow: 1px 1px 0 #1a1a1a; }
.metronome .den-btn.active{ background:#ffc600; transform: translate(-1px,-1px); box-shadow: 1.5px 1.5px 0 #1a1a1a; }
.metronome .apply-btn{
  width:100%; padding:9px;
  font-size:.72rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  color:#1a1a1a; background:#ffc600;
  border:2px solid #1a1a1a;
  border-radius: 8px 4px 10px 5px / 5px 10px 4px 8px;
  cursor:pointer; font-family:'Kalam', cursive;
  box-shadow: 2px 2px 0 #1a1a1a;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.metronome .apply-btn:hover{ transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #1a1a1a; }
.metronome .apply-btn:active{ transform: translate(1px,1px); box-shadow: 1px 1px 0 #1a1a1a; }

.metronome .volume-section{ margin-bottom:0; }
.metronome .volume-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:8px;
}
.metronome .volume-label-wrap{
  display:flex; align-items:center; gap:5px;
  font-size:.68rem; letter-spacing:1.2px;
  color:#1a1a1a; font-weight:700;
}
.metronome .volume-label-wrap svg{ width:13px; height:13px; fill: currentColor; }
.metronome .volume-value{
  font-size:.7rem; font-weight:700; color:#1a1a1a;
  letter-spacing:.8px; min-width:36px; text-align:right;
  background: rgba(255,198,0,.35);
  padding:1px 6px;
  border-radius: 7px 3px 8px 4px / 4px 8px 3px 7px;
}

.metronome .copyright{
  margin-top:16px; padding-top:12px;
  position:relative;
  font-size:.62rem; letter-spacing:1.8px;
  color:#555;
  display:flex; align-items:center; justify-content:center; gap:5px;
  font-weight:400;
  user-select:none; -webkit-user-select:none;
}
.metronome .copyright::before{
  content:'';
  position:absolute; top:0; left:20%; right:20%;
  height:7px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'><path d='M2 4 Q 40 1, 80 4 T 150 4 T 220 4 T 298 4' stroke='%231a1a1a' stroke-width='1.2' fill='none' stroke-linecap='round' opacity='0.35'/></svg>");
  background-repeat:no-repeat; background-size:100% 100%;
}
.metronome .copyright .brand{
  font-weight:700; color:#1a1a1a; letter-spacing:2px;
  font-size:.72rem; position:relative; padding:0 3px;
}
.metronome .copyright .brand::after{
  content:'';
  position:absolute; left:0; right:0; bottom:-2px;
  height:5px; background: rgba(255,198,0,.7);
  z-index:-1; border-radius:3px;
}
.metronome .copyright .symbol{ color:#1a1a1a; font-size:.8rem; }

/* Container queries metronomo */
@container metro (min-width: 600px){
  .metronome .layout{ grid-template-columns: 220px 1fr; gap:24px; }
  .metronome .col-left{ align-items:center; text-align:center; }
  .metronome .col-right{ text-align:left; margin-top:0; }
  .metronome .section-label{ text-align:left; }
  .metronome .display{ width:175px; height:175px; margin-bottom:14px; }
  .metronome .bpm-value{ font-size:3.3rem; }
  .metronome .bpm-input{ width:145px; height:3.3rem; font-size:3.3rem; }
  .metronome .btn-main{ width:140px; padding:12px 0; font-size:.95rem; }
  .metronome .btn-side{ width:46px; height:46px; font-size:1.35rem; }
  .metronome .sig-btn{ padding:9px 4px; font-size:.82rem; }
  .metronome .copyright{ grid-column: 1 / -1; }
}
@container metro (min-width: 760px){
  .metronome .layout{ grid-template-columns: 260px 1fr; gap:32px; }
  .metronome .display{ width:195px; height:195px; }
  .metronome .bpm-value{ font-size:3.6rem; }
  .metronome .bpm-input{ width:160px; height:3.6rem; font-size:3.6rem; }
  .metronome .sig-btn{ font-size:.88rem; padding:10px 4px; }
  .metronome .btn-main{ width:155px; padding:13px 0; font-size:1rem; }
  .metronome .btn-side{ width:50px; height:50px; font-size:1.45rem; }
  .metronome .dot{ width:15px; height:15px; }
}
@container metro (max-width: 380px){
  .metronome{ padding:20px 14px 14px; }
  .metronome::before{ left:50%; transform: translateX(-50%) rotate(-2deg); }
  .metronome h1{ font-size:1.2rem; }
  .metronome .subtitle{ font-size:.55rem; margin-bottom:12px; }
  .metronome .display{ width:130px; height:130px; margin-bottom:10px; }
  .metronome .bpm-value{ font-size:2.5rem; padding:3px 8px; }
  .metronome .bpm-input{ width:110px; height:2.5rem; font-size:2.5rem; }
  .metronome .sig-grid{ gap:4px; }
  .metronome .sig-btn{ padding:6px 2px; font-size:.65rem; }
  .metronome .btn-main{ width:115px; padding:10px 0; font-size:.82rem; }
  .metronome .btn-side{ width:40px; height:40px; font-size:1.15rem; }
  .metronome .controls{ gap:9px; }
  .metronome .dot{ width:12px; height:12px; }
  .metronome .copyright{ margin-top:12px; padding-top:8px; font-size:.55rem; }
  .metronome .copyright .brand{ font-size:.65rem; }
}

/* ============================================================
   MIDI DAW
   ============================================================ */
.app{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}
.app .panel{
  position:relative;
  background:#fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-1);
  padding: 4px;
}
.app .panel:nth-child(2){ border-radius: var(--wobble-2); }
.app .panel:nth-child(3){ border-radius: var(--wobble-3); }
.app .panel:nth-child(4){ border-radius: var(--wobble-4); }
.app .panel:nth-child(5){ border-radius: var(--wobble-2); }
.app .panel::before{
  content:'';
  position:absolute; inset:-4px;
  border:1.5px solid rgba(17,17,17,.25);
  border-radius: inherit;
  pointer-events:none;
}

.app header{
  display:flex; align-items:center; gap:22px;
  padding:14px 22px 14px 20px;
  flex-wrap:wrap;
}
.app .logo{
  display:flex; align-items:center; gap:12px;
  font-family:'Caveat', cursive;
  font-weight:700; font-size:30px; line-height:1;
  white-space:nowrap; user-select:none; position:relative;
}
.app .logo-mark{
  width:48px; height:48px;
  display:grid; place-items:center;
  font-size:26px;
  background: var(--yellow);
  border:2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .25s ease;
}
.app .logo:hover .logo-mark{ transform: rotate(6deg) scale(1.05); }
.app .logo-text{ position:relative; padding:2px 8px; z-index:1; }
.app .logo-text::before{
  content:'';
  position:absolute; left:0; right:-4px; top:38%;
  height:46%;
  background: var(--yellow);
  z-index:-1;
  transform: skew(-6deg) rotate(-1deg);
  border-radius: 8px 20px 12px 18px / 18px 10px 20px 12px;
}
.app .filebox{ display:flex; align-items:center; gap:16px; flex:1; min-width:240px; }
.app .fileinfo{ display:flex; flex-direction:column; gap:0; min-width:0; max-width:420px; }
.app .fileinfo-label{
  font-size:12px; font-weight:700;
  letter-spacing:.06em; color: var(--ink-mute);
  text-transform:uppercase;
}
.app .filename{
  font-size:18px; font-weight:700;
  font-family:'Caveat', cursive;
  color: var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.app .filename.loaded{ color: var(--ink); }

.app .status-wrap{
  display:flex; align-items:center; gap:10px;
  padding:8px 16px;
  background:#fff;
  border:2px solid var(--ink);
  border-radius: var(--wobble-sm);
  max-width:380px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: all .2s ease;
}
.app .status-dot{
  width:12px; height:12px;
  border-radius: 50% 40% 55% 45% / 45% 55% 40% 50%;
  background: var(--yellow);
  border:2px solid var(--ink);
  flex:0 0 auto;
  animation: wiggle 2.4s ease-in-out infinite;
}
@keyframes wiggle{
  0%,100%{ transform: rotate(0deg) scale(1); }
  25%{ transform: rotate(-15deg) scale(1.1); }
  75%{ transform: rotate(15deg) scale(1.1); }
}
.app .status-wrap:has(.status.loading) .status-dot{ background:#ffd54a; animation: wiggle 1s ease-in-out infinite; }
.app .status-wrap:has(.status.err) .status-dot{ background:#ff5c5c; }
.app .status{
  font-size:14px; font-weight:700;
  color: var(--ink-soft);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.app .status.err{ color:#c92a2a; }
.app .status.loading{ color: var(--yellow-deep); }

.app button, .app .btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:#fff; color: var(--ink);
  border:2.5px solid var(--ink);
  padding:10px 18px;
  border-radius: var(--wobble-sm);
  cursor:pointer;
  font-family:'Kalam', cursive;
  font-size:15px; font-weight:700;
  white-space:nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 3px 3px 0 var(--ink);
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.app button:hover, .app .btn:hover{
  transform: translate(-1px,-1px);
  box-shadow: 5px 5px 0 var(--ink), 5px 5px 0 1px var(--yellow) inset;
  background: var(--yellow-soft);
}
.app button:active, .app .btn:active{
  transform: translate(2px,2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.app .btn.small{
  padding:7px 14px; font-size:14px;
  box-shadow: 2px 2px 0 var(--ink);
  border-width:2px;
}
.app .btn.small:hover{ box-shadow: 4px 4px 0 var(--ink); }

.app .transport{
  display:flex; align-items:center; gap:22px;
  padding:16px 22px;
  flex-wrap:wrap;
}
.app .transport-controls{ display:flex; gap:14px; align-items:center; }

.app #playBtn{
  width:78px; height:78px;
  border-radius: 50% 45% 55% 48% / 48% 52% 45% 55%;
  font-size:26px; padding:0;
  background:#fff;
  border:3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
  transition: all .18s ease;
}
.app #playBtn:hover{
  transform: rotate(3deg) scale(1.06);
  background: var(--yellow-soft);
  box-shadow: 6px 6px 0 var(--ink);
}
.app #playBtn:active{
  transform: rotate(0deg) scale(.96) translate(2px,2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.app #playBtn.active{
  background: var(--yellow);
  animation: jiggle 1.4s ease-in-out infinite;
}
@keyframes jiggle{
  0%,100%{ transform: rotate(-3deg) scale(1); }
  50%{ transform: rotate(-3deg) scale(1.07); }
}
.app #stopBtn{
  width:58px; height:58px;
  border-radius: 45% 55% 48% 52% / 52% 48% 55% 45%;
  font-size:18px; padding:0;
  transform: rotate(2deg);
}
.app #stopBtn:hover{ transform: rotate(-3deg) scale(1.06); }

.app .time{
  font-family:'Caveat', cursive;
  font-variant-numeric: tabular-nums;
  font-size:32px; font-weight:700;
  color: var(--ink);
  padding:8px 22px 6px;
  background:#fff;
  border:2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 3px 3px 0 var(--ink);
  min-width:240px;
  text-align:center;
  position:relative;
}
.app .time::after{
  content:'';
  position:absolute; left:14px; right:14px; bottom:4px;
  height:6px;
  background: var(--yellow);
  border-radius: 60% 40% 55% 45% / 100% 100% 0 0;
  opacity:.8;
}

.app .field{
  display:flex; align-items:center; gap:14px;
  padding:10px 18px;
  background:#fff;
  border:2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-.4deg);
}
.app .field:nth-of-type(2){ transform: rotate(.5deg); }
.app .field > label{
  font-size:13px; font-weight:700; color: var(--ink);
  letter-spacing:.08em; text-transform:uppercase;
  display:flex; align-items:center; gap:6px;
}
.app .field > label::before{ content:'✎'; font-size:15px; transform: rotate(-15deg); }

.app input[type=number]{
  background:#fff;
  border:2px solid var(--ink);
  color: var(--ink);
  width:84px;
  padding:6px 8px;
  border-radius: var(--wobble-sm);
  font-family:'Caveat', cursive;
  font-size:24px; font-weight:700;
  text-align:center;
  outline:none;
  font-variant-numeric: tabular-nums;
  transition: all .18s ease;
  box-shadow: 2px 2px 0 var(--ink);
}
.app input[type=number]:focus{
  background: var(--yellow-soft);
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* slider generici DAW */
.app input[type=range]{
  -webkit-appearance:none; appearance:none;
  background: transparent;
  outline:none; cursor:pointer;
  height:24px;
}
.app input[type=range]::-webkit-slider-runnable-track{
  height:6px;
  background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 4px, transparent 4px, transparent 8px);
  border-radius:3px;
  opacity:.6;
}
.app input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:24px; height:24px;
  margin-top:-9px;
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  background: var(--yellow);
  border:2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .15s ease;
}
.app input[type=range]::-webkit-slider-thumb:hover{ transform: scale(1.15) rotate(-10deg); }
.app input[type=range]::-moz-range-track{
  height:6px; background: var(--ink); opacity:.55; border-radius:3px;
}
.app input[type=range]::-moz-range-thumb{
  width:24px; height:24px;
  border:2.5px solid var(--ink);
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}
.app #bpmRange{ width:160px; }
.app #masterVol{ width:140px; }

.app .presets{
  display:flex; flex-direction:column; gap:12px;
  padding:18px 22px 16px;
}
.app .presets-head{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.app .presets-title{
  font-family:'Caveat', cursive;
  font-size:26px; font-weight:700;
  color: var(--ink);
  margin-right:6px;
  position:relative;
  padding:0 6px;
  line-height:1;
}
.app .presets-title::before{
  content:'';
  position:absolute; left:0; right:0; top:40%;
  height:52%;
  background: var(--yellow);
  z-index:-1;
  transform: rotate(-1.5deg) skew(-3deg);
  border-radius: 6px 14px 8px 12px / 12px 6px 14px 8px;
}
.app .preset-chips{
  display:flex; gap:10px;
  overflow-x:auto; overflow-y:hidden;
  padding:6px 2px 10px;
  min-height:46px;
  align-items:center;
  scrollbar-width:thin;
  scrollbar-color: var(--ink) transparent;
}
.app .preset-chips::-webkit-scrollbar{ height:8px; }
.app .preset-chips::-webkit-scrollbar-track{ background: transparent; }
.app .preset-chips::-webkit-scrollbar-thumb{
  background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 6px, transparent 6px, transparent 10px);
  border-radius:4px;
}
.app .chip{
  flex:0 0 auto;
  display:flex; align-items:center; gap:6px;
  background:#fff;
  border:2px solid var(--ink);
  border-radius:999px;
  padding:6px 8px 6px 16px;
  font-size:14px; font-weight:700;
  color: var(--ink);
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
  max-width:260px;
  box-shadow: 2px 2px 0 var(--ink);
}
.app .chip:nth-child(odd){ transform: rotate(-.6deg); }
.app .chip:nth-child(even){ transform: rotate(.6deg); }
.app .chip:hover{
  transform: translate(-1px,-2px) rotate(0deg);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--yellow-soft);
}
.app .chip.active{ background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.app .chip-name{ overflow:hidden; text-overflow:ellipsis; max-width:170px; }
.app .chip-act{
  background: transparent;
  border:none; color: inherit;
  padding:3px 6px; cursor:pointer;
  border-radius:999px; font-size:13px;
  opacity:.7; line-height:1;
  box-shadow:none;
  transform:none !important;
}
.app .chip-act:hover{
  opacity:1; background: rgba(0,0,0,.08);
  box-shadow:none; transform:none !important;
}
.app .chip-empty{
  color: var(--ink-mute);
  font-family:'Caveat', cursive;
  font-size:20px; font-weight:400;
  padding:6px 4px; font-style:italic;
}

.app .roll{ padding:12px; height:180px; position:relative; overflow:hidden; }
.app #roll{
  width:100%; height:100%;
  display:block; cursor:crosshair;
  border-radius: var(--wobble-sm);
  background:#fff;
  border:2px solid var(--ink);
  box-shadow: inset 3px 3px 0 rgba(0,0,0,.06);
}
.app .roll-hint{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-mute);
  font-family:'Caveat', cursive;
  font-size:24px; font-weight:600; font-style:italic;
  pointer-events:none;
}
.app .roll-hint::before{ content:'✎ '; font-size:22px; margin-right:6px; }

.app .mixer{
  display:flex; gap:16px;
  overflow-x:auto; overflow-y:hidden;
  padding:16px;
  min-height:320px;
  align-items:stretch;
  scrollbar-width:thin;
  scrollbar-color: var(--ink) transparent;
}
.app .mixer::-webkit-scrollbar{ height:10px; }
.app .mixer::-webkit-scrollbar-track{ background: transparent; }
.app .mixer::-webkit-scrollbar-thumb{
  background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 6px, transparent 6px, transparent 10px);
  border-radius:5px;
}
.app .empty{
  margin:auto;
  color: var(--ink-mute);
  font-family:'Caveat', cursive;
  font-size:26px; font-weight:600; font-style:italic;
}
.app .empty::before{ content:'✎ '; font-size:22px; margin-right:6px; }

.app .strip{
  --c: var(--yellow);
  position:relative;
  flex: 0 0 128px;
  display:flex; flex-direction:column; align-items:center;
  gap:10px;
  padding:14px 10px 16px;
  background:#fff;
  border:2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .22s ease, box-shadow .22s ease;
  transform: rotate(-.5deg);
}
.app .strip:nth-child(even){ transform: rotate(.5deg); }
.app .strip:nth-child(3n){ transform: rotate(-1deg); }
.app .strip:hover{
  transform: translate(-1px,-3px) rotate(0deg);
  box-shadow: 6px 8px 0 var(--ink);
}
.app .strip::before{
  content:'';
  position:absolute; top:-4px; left:16px; right:16px;
  height:8px;
  background: var(--c);
  border:2px solid var(--ink);
  border-radius:999px;
  transform: rotate(-1deg);
}
.app .strip.muted{ opacity:.55; filter: grayscale(.6); }
.app .strip.muted::before{ background:#ccc; }
.app .strip.metronome{
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.12) 1px, transparent 1.4px);
  background-size: 8px 8px;
}
.app .strip.metronome .strip-name::before{ content:'🎵 '; font-size:14px; }
.app .strip-name{
  font-family:'Caveat', cursive;
  font-size:20px; font-weight:700;
  color: var(--ink);
  width:100%; text-align:center;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  min-height:22px; padding:0 4px; line-height:1.1;
  margin-top:4px;
}
.app .strip-ch{
  font-size:11px; font-weight:700;
  color: var(--ink-mute);
  letter-spacing:.1em;
  margin-top:-6px;
}
.app .fader-row{
  display:flex; gap:12px;
  align-items:center; justify-content:center;
  padding-top:4px;
}
.app .meter{
  width:12px; height:170px;
  background:#fff;
  border:2px solid var(--ink);
  border-radius: var(--wobble-sm);
  position:relative; overflow:hidden;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,.08);
}
.app .meter::before{
  content:'';
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(to top, transparent 0, transparent 8%, var(--ink) 8%, var(--ink) 9.5%);
  opacity:.15; pointer-events:none; z-index:2;
}
.app .meter-fill{
  position:absolute; left:0; right:0; bottom:0;
  height:0%;
  background: var(--yellow);
  border-top:2px solid var(--ink);
  transition: height .055s linear;
}
.app .fader-wrap{
  position:relative;
  width:38px; height:170px;
  display:grid; place-items:center;
}
.app .fader-wrap::before{
  content:'';
  position:absolute; top:10px; bottom:10px;
  left:50%; transform: translateX(-50%);
  width:5px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0, var(--ink) 5px, transparent 5px, transparent 9px);
  opacity:.65;
  border-radius:3px;
}
.app .fader{
  position:absolute;
  width:170px; height:38px;
  left:50%; top:50%;
  transform: translate(-50%,-50%) rotate(-90deg);
  margin:0;
}
.app .fader::-webkit-slider-runnable-track{ height:5px; background: transparent; opacity:0; }
.app .fader::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:34px; height:20px;
  border-radius: var(--wobble-sm);
  margin-top:-7.5px;
  background: var(--c);
  border:2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s ease;
}
.app .fader::-webkit-slider-thumb:hover{ transform: scale(1.1) rotate(-3deg); }
.app .fader::-moz-range-track{ background: transparent; height:5px; }
.app .fader::-moz-range-thumb{
  width:34px; height:20px;
  border-radius: var(--wobble-sm);
  border:2.5px solid var(--ink);
  background: var(--c);
  box-shadow: 2px 2px 0 var(--ink);
}
.app .strip-db{
  font-family:'Caveat', cursive;
  font-size:20px; font-weight:700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding:0 8px;
  min-width:70px; text-align:center;
  border-bottom:2px dotted var(--ink-mute);
}
.app .strip-btns{ display:flex; gap:8px; }
.app .mini{
  padding:4px 0;
  width:36px;
  font-family:'Kalam', cursive;
  font-size:14px; font-weight:700;
  border-radius: var(--wobble-sm);
  background:#fff; color: var(--ink);
  border:2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: all .15s ease;
}
.app .mini:hover{ background: var(--yellow-soft); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.app .mini:active{ transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.app .mini.m.on{ background:#ff5c5c; color:#fff; }
.app .mini.s.on{ background: var(--yellow); color: var(--ink); }
.app .mini.on-off{ width:46px; font-size:12px; }
.app .mini.on-off.on{ background: var(--yellow); color: var(--ink); }

.app .pan-row{
  display:flex; align-items:center; gap:6px;
  width:100%; justify-content:center;
  padding-top:4px;
}
.app .pan-row span{
  font-family:'Caveat', cursive;
  font-size:15px; font-weight:700;
  color: var(--ink);
}
.app .pan{ width:68px; }
.app .pan::-webkit-slider-runnable-track{ height:5px; }
.app .pan::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:16px; height:16px;
  margin-top:-6px;
  background: var(--yellow);
  border:2px solid var(--ink);
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.app .pan::-webkit-slider-thumb:hover{ transform: scale(1.2) rotate(10deg); }
.app .pan::-moz-range-thumb{
  width:16px; height:16px;
  background: var(--yellow);
  border:2px solid var(--ink);
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
}
.app .beat-indicator{
  display:flex; gap:4px;
  justify-content:center;
  margin-top:4px;
  height:14px;
  flex-wrap:nowrap;
}
.app .beat-dot{
  width:10px; height:10px;
  border:2px solid var(--ink);
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  background:#fff;
  transition: background .08s ease, transform .08s ease;
  flex:0 0 auto;
}
.app .beat-dot.active{ background: var(--yellow); transform: scale(1.3); }
.app .beat-dot.downbeat.active{ background: var(--ink); }
.app .beat-dot.main{ border-width:2.5px; }

/* ============================================================
   DIALOG CONDIVISIONE
   ============================================================ */
.share-modal{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17,17,17,.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: shareFade .2s ease-out;
}
.share-modal[hidden]{ display: none; }

@keyframes shareFade{
  from{ opacity: 0; }
  to  { opacity: 1; }
}

.share-card{
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 6px 6px 0 var(--ink), 6px 6px 0 2px var(--yellow);
  padding: 22px 24px 20px;
  animation: shareIn .3s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes shareIn{
  from{ opacity: 0; transform: translateY(12px) scale(.97); }
  to  { opacity: 1; transform: translateY(0) scale(1); }
}

.share-title{
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  padding: 0 6px;
  line-height: 1.1;
}
.share-title::before{
  content: '';
  position: absolute;
  left: 20%; right: 20%;
  top: 42%;
  height: 48%;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1.5deg) skew(-3deg);
  border-radius: 8px 16px 10px 14px / 14px 8px 16px 10px;
}

.share-hint{
  font-family: 'Kalam', cursive;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  margin: 12px 0 16px;
}

.share-url-row{
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 14px;
}
.share-url-row input{
  flex: 1;
  min-width: 0;
  font-family: 'Kalam', cursive;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-sm);
  padding: 10px 12px;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,.06);
  outline: none;
  text-overflow: ellipsis;
}
.share-url-row input:focus{ background: var(--yellow-soft); }
.share-url-row button{
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 14px;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.share-url-row button:hover{
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow-soft);
}
.share-url-row button:active{
  transform: translate(1px,1px);
  box-shadow: 1px 1px 0 var(--ink);
}
.share-url-row button.ok{ background: var(--yellow); }

.share-actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.share-actions button{
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Kalam', cursive;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.share-actions button:hover{
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--yellow-soft);
}
.share-actions button:active{
  transform: translate(1px,1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.share-size{
  margin-top: 14px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--wobble-sm);
  border: 1.5px dashed transparent;
}
.share-size.ok{
  color: #1e6b2e;
  background: rgba(46,160,67,.1);
  border-color: rgba(46,160,67,.4);
}
.share-size.warn{
  color: #8a5a00;
  background: rgba(255,198,0,.18);
  border-color: rgba(255,198,0,.55);
}
.share-size.err{
  color: #9b1c1c;
  background: rgba(220,60,60,.1);
  border-color: rgba(220,60,60,.4);
}

@media (max-width: 560px){
  .share-card{ padding: 18px 16px 16px; }
  .share-title{ font-size: 24px; }
  .share-hint{ font-size: 13px; }
  .share-url-row{ flex-direction: column; }
  .share-url-row button{ width: 100%; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px){
  .site{ padding:10px; }
  .site-header{ margin-bottom:16px; gap:12px; }
  .site-logo{ font-size:28px; }
  .site-logo .name{ font-size:28px; }
  .site-logo .mark{ width:42px; height:42px; font-size:22px; }
  .site-logo .tag{ font-size:9.5px; letter-spacing:.16em; }
  .site-nav{ width:100%; }
  .nav-btn{ flex:1; justify-content:center; padding:10px 8px; font-size:14px; }

  .app .panel{ padding:3px; }
  .app header{ padding:12px 16px; gap:14px; }
  .app .logo{ font-size:24px; }
  .app .logo-mark{ width:40px; height:40px; font-size:21px; }
  .app .transport{ gap:14px; padding:12px 16px; }
  .app #playBtn{ width:66px; height:66px; font-size:22px; }
  .app #stopBtn{ width:50px; height:50px; font-size:15px; }
  .app .time{ font-size:26px; min-width:200px; padding:6px 16px; }
  .app .field{ padding:8px 12px; gap:10px; }
  .app #bpmRange{ width:110px; }
  .app #masterVol{ width:90px; }
  .app .roll{ height:140px; padding:10px; }
  .app .strip{ flex:0 0 112px; padding:12px 8px 14px; }
  .app .meter, .app .fader-wrap{ height:148px; }
  .app .fader{ width:148px; }
  .app .presets{ padding:14px 16px 12px; }
  .app .mixer{ min-height:290px; }
}

@media (hover: none){
  .metronome .sig-btn:hover, .metronome .den-btn:hover, .metronome .step-btn:hover,
  .metronome .apply-btn:hover, .metronome .btn-main:hover, .metronome .btn-side:hover{
    transform:none; box-shadow: inherit; background: inherit;
  }
  .metronome .sig-btn.active:hover, .metronome .den-btn.active:hover{
    background:#ffc600; transform: translate(-1px,-1px); box-shadow: 1.5px 1.5px 0 #1a1a1a;
  }
  .metronome .btn-main.playing:hover{ background:#ffc600; box-shadow: 2.5px 2.5px 0 #1a1a1a; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@supports not (container-type: inline-size){
  @media (min-width: 700px){
    .metronome .layout{ grid-template-columns: 220px 1fr; gap:24px; }
    .metronome .col-right{ text-align:left; margin-top:0; }
    .metronome .col-left{ align-items:center; }
    .metronome .copyright{ grid-column: 1 / -1; }
  }
  @media (min-width: 1000px){
    .metronome .layout{ grid-template-columns: 260px 1fr; gap:32px; }
  }
}

/* ============================================================
   PAGINA CHI SONO
   ============================================================ */
.about{
  max-width: 800px;
  margin: 0 auto;
}

.about-card{
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-1);
  box-shadow: 4px 4px 0 rgba(255,198,0,.55), 5px 5px 0 rgba(26,26,26,.1);
  padding: 34px 38px 30px;
  animation: cardIn .6s cubic-bezier(.2,.8,.3,1.2);
}

.about-card::before{
  content: '';
  position: absolute;
  top: -10px; left: 40px;
  transform: rotate(-3deg);
  width: 70px; height: 18px;
  background: rgba(255,198,0,.6);
  border-left: 1px dashed rgba(26,26,26,.2);
  border-right: 1px dashed rgba(26,26,26,.2);
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.about-hero{
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 2px dashed rgba(26,26,26,.2);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.about-avatar{
  width: 88px; height: 88px;
  display: grid; place-items: center;
  font-size: 46px;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  transform: rotate(-5deg);
  box-shadow: 4px 4px 0 var(--ink);
  flex: 0 0 auto;
}

.about-titles h1{
  font-family: 'Caveat', cursive;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
  padding: 0 8px;
}
.about-titles h1::before{
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 40%;
  height: 50%;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1.5deg) skew(-3deg);
  border-radius: 8px 16px 10px 14px / 14px 8px 16px 10px;
}

.about-sub{
  font-family: 'Kalam', cursive;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

.about-body p{
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.about-body .lead{
  font-size: 17.5px;
  color: var(--ink);
  margin-bottom: 8px;
}
.about-body .lead strong{
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 700;
  padding: 0 4px;
  position: relative;
  z-index: 1;
}
.about-body .lead strong::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 10px;
  background: rgba(255,198,0,.55);
  z-index: -1;
  border-radius: 3px;
}

.about-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 26px 0 24px;
}
@media (min-width: 620px){
  .about-grid{ grid-template-columns: 1fr 1fr; }
}

.about-block{
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-sm);
  padding: 18px 20px 16px;
  box-shadow: 3px 3px 0 var(--yellow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-block:nth-child(even){ transform: rotate(.4deg); }
.about-block:nth-child(odd){ transform: rotate(-.4deg); }
.about-block:hover{
  transform: translate(-2px,-2px) rotate(0deg);
  box-shadow: 5px 5px 0 var(--yellow);
}
.about-block h2{
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.1;
}
.about-block p{
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.about-quote{
  margin: 30px 0;
  padding: 24px 28px;
  text-align: center;
  background: rgba(255,198,0,.18);
  border: 2px dashed var(--ink);
  border-radius: var(--wobble-2);
  position: relative;
}
.about-quote::before{
  content: '“';
  position: absolute;
  top: -24px; left: 18px;
  font-family: 'Caveat', cursive;
  font-size: 76px;
  color: var(--yellow-deep);
  line-height: 1;
  font-weight: 700;
}
.about-quote p{
  font-family: 'Caveat', cursive;
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.about-contact{
  margin-top: 30px;
  padding-top: 26px;
  border-top: 2px dashed rgba(26,26,26,.2);
  text-align: center;
}
.about-contact h2{
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding: 0 10px;
}
.about-contact h2::before{
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 42%;
  height: 48%;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1.5deg) skew(-3deg);
  border-radius: 8px 16px 10px 14px / 14px 8px 16px 10px;
}
.about-contact p{
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about-links{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.about-links a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: 'Kalam', cursive;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.about-links a:hover{
  transform: translate(-1px,-1px);
  box-shadow: 5px 5px 0 var(--ink), 5px 5px 0 1px var(--yellow) inset;
  background: var(--yellow-soft);
}
.about-links a:active{
  transform: translate(2px,2px);
  box-shadow: 1px 1px 0 var(--ink);
}

@media (max-width: 600px){
  .about-card{ padding: 26px 20px 22px; }
  .about-titles h1{ font-size: 34px; }
  .about-avatar{ width: 68px; height: 68px; font-size: 34px; }
  .about-quote p{ font-size: 22px; }
  .about-quote{ padding: 18px 18px; }
  .about-quote::before{ font-size: 56px; top: -16px; }
}

/* ============================================================
   NAV — link che sembrano bottoni
   ============================================================ */
a.nav-btn{
  text-decoration: none;
  color: var(--ink);
}
a.site-logo{
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   HOME / LANDING
   ============================================================ */
.home{
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.home-hero{
  text-align: center;
  margin-bottom: 42px;
  position: relative;
}

.home-hero h1{
  font-family: 'Caveat', cursive;
  font-size: 68px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
  padding: 4px 22px;
  transform: rotate(-1deg);
}
.home-hero h1::before{
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 42%;
  height: 52%;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1.5deg) skew(-3deg);
  border-radius: 12px 24px 16px 20px / 20px 12px 24px 16px;
}

.home-tagline{
  font-family: 'Kalam', cursive;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 6px 0 22px;
}

.home-lead{
  font-family: 'Kalam', cursive;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  padding: 0 8px;
}

.home-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
@media (min-width: 720px){
  .home-cards{ grid-template-columns: repeat(3, 1fr); }
}

.home-card{
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  padding: 24px 22px 22px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  transform: rotate(-.5deg);
}
.home-card:nth-child(even){ transform: rotate(.5deg); }
.home-card:hover{
  transform: translate(-2px,-3px) rotate(0deg);
  box-shadow: 6px 7px 0 var(--ink);
  background: var(--yellow-soft);
}
.home-card .hc-icon{
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.home-card h2{
  font-family: 'Caveat', cursive;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  padding: 0 6px;
}
.home-card h2::before{
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 42%;
  height: 48%;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1.5deg) skew(-3deg);
  border-radius: 6px 14px 8px 12px / 12px 6px 14px 8px;
}
.home-card p{
  font-family: 'Kalam', cursive;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.home-card code{
  font-family: monospace;
  font-size: 13px;
  background: rgba(255,198,0,.35);
  padding: 1px 5px;
  border-radius: 3px;
}
.home-card .hc-cta{
  display: inline-block;
  font-family: 'Kalam', cursive;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink);
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-sm);
  background: #fff;
  transition: all .15s ease;
}
.home-card:hover .hc-cta{
  background: var(--yellow);
}

.home-quote{
  margin: 30px 0 0;
  padding: 24px 28px;
  text-align: center;
  background: rgba(255,198,0,.18);
  border: 2px dashed var(--ink);
  border-radius: var(--wobble-2);
  position: relative;
}
.home-quote::before{
  content: '“';
  position: absolute;
  top: -24px; left: 18px;
  font-family: 'Caveat', cursive;
  font-size: 76px;
  color: var(--yellow-deep);
  line-height: 1;
  font-weight: 700;
}
.home-quote p{
  font-family: 'Caveat', cursive;
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 600px){
  .home-hero h1{ font-size: 46px; padding: 3px 14px; }
  .home-tagline{ font-size: 12px; letter-spacing: .18em; }
  .home-lead{ font-size: 15.5px; }
  .home-card{ padding: 18px 18px 16px; }
  .home-card h2{ font-size: 24px; }
  .home-quote p{ font-size: 22px; }
  .home-quote{ padding: 18px 18px; }
  .home-quote::before{ font-size: 56px; top: -16px; }
}

/* ============================================================
   PAGINA LIBRI
   ============================================================ */
.libri{
  max-width: 900px;
  margin: 0 auto;
}

.libri-card{
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-1);
  box-shadow: 4px 4px 0 rgba(255,198,0,.55), 5px 5px 0 rgba(26,26,26,.1);
  padding: 34px 38px 30px;
  animation: cardIn .6s cubic-bezier(.2,.8,.3,1.2);
}

.libri-card::before{
  content: '';
  position: absolute;
  top: -10px; left: 40px;
  transform: rotate(-3deg);
  width: 70px; height: 18px;
  background: rgba(255,198,0,.6);
  border-left: 1px dashed rgba(26,26,26,.2);
  border-right: 1px dashed rgba(26,26,26,.2);
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.libri-hero{
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 2px dashed rgba(26,26,26,.2);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.libri-avatar{
  width: 88px; height: 88px;
  display: grid; place-items: center;
  font-size: 46px;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  transform: rotate(-5deg);
  box-shadow: 4px 4px 0 var(--ink);
  flex: 0 0 auto;
}

.libri-titles h1{
  font-family: 'Caveat', cursive;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
  padding: 0 8px;
}
.libri-titles h1::before{
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 40%;
  height: 50%;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1.5deg) skew(-3deg);
  border-radius: 8px 16px 10px 14px / 14px 8px 16px 10px;
}

.libri-sub{
  font-family: 'Kalam', cursive;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

.libri-body p{
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.libri-body .lead{
  font-size: 17.5px;
  color: var(--ink);
  margin-bottom: 30px;
}

/* --- Singolo libro --- */
.libro{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 2px dashed rgba(26,26,26,.15);
  align-items: start;
}
.libro:last-of-type{
  border-bottom: none;
}

.libro-cover{
  width: 140px;
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  background: #fafafa;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.libro:hover .libro-cover{
  transform: rotate(0deg) scale(1.03);
  box-shadow: 6px 6px 0 var(--ink);
}
.libro-cover-placeholder{
  font-size: 60px;
  line-height: 1;
}

.libro-cover img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.libro-info{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.libro-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.libro-year{
  font-family: 'Kalam', cursive;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.libro-badge{
  font-family: 'Kalam', cursive;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.libro-badge-new{
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.libro h2{
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}

.libro-desc{
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 4px 0 10px;
}

.libro-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 9px 18px;
  font-family: 'Kalam', cursive;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  transition: all .15s ease;
  cursor: pointer;
}
.libro-btn:hover{
  transform: translate(-1px,-1px);
  box-shadow: 5px 5px 0 var(--ink), 5px 5px 0 1px var(--yellow) inset;
  background: var(--yellow-soft);
}
.libro-btn:active{
  transform: translate(2px,2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.libro-btn-outline{
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}
.libro-btn-outline:hover{
  border-style: solid;
}

.libro-coming .libro-cover{
  background: repeating-linear-gradient(
    45deg,
    #fafafa, #fafafa 8px,
    #f3f3f3 8px, #f3f3f3 16px
  );
}

/* --- CTA finale --- */
.libri-cta{
  margin-top: 30px;
  padding: 26px 24px 22px;
  text-align: center;
  background: rgba(255,198,0,.18);
  border: 2px dashed var(--ink);
  border-radius: var(--wobble-2);
}
.libri-cta p{
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.libri-store-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  font-family: 'Kalam', cursive;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble-sm);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  transition: all .15s ease;
  cursor: pointer;
}
.libri-store-btn:hover{
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--yellow);
}
.libri-store-btn:active{
  transform: translate(2px,2px);
  box-shadow: 2px 2px 0 var(--ink);
}

@media (max-width: 620px){
  .libri-card{ padding: 26px 20px 22px; }
  .libri-titles h1{ font-size: 34px; }
  .libri-avatar{ width: 68px; height: 68px; font-size: 34px; }
  .libro{
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    align-items: center;
  }
  .libro-cover{
    width: 130px;
    margin: 0 auto;
    transform: rotate(-1deg);
  }
  .libro-info{
    align-items: center;
  }
  .libro-btn{
    align-self: center;
  }
  .libro h2{ font-size: 26px; }
}
