/* Il laboratorio */
:root {
    --both: linear-gradient(100deg, #06b6ff, #424dff 50%, #b625ff);
    --lamp: #ffc477; --room: #110e0c;
    --text: #f4eee6; --dim: #b3a99c; --paper: #fff6d8;
  }
body { margin: 0; color: var(--text); font: 17px/1.6 Rubik, system-ui, sans-serif; overflow-x: hidden;
    background:
      radial-gradient(50% 40% at 50% 10%, rgb(255 196 119 / .2), transparent 70%),
      repeating-linear-gradient(90deg, transparent 0 120px, rgb(255 255 255 / .012) 120px 122px),
      var(--room); }
.head { text-align: center; padding: 60px 0 20px; }
.kicker { font: 600 .82rem "JetBrains Mono", monospace; color: var(--lamp); margin: 0 0 12px; }
h1 { font-size: clamp(2.4rem, 5.8vw, 4.2rem); line-height: 1.02; margin: 0 0 14px; font-weight: 900; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--lamp); text-shadow: 0 0 30px rgb(255 196 119 / .45); }
.head p { color: var(--dim); max-width: 36em; margin: 0 auto; }
/* le macchine */
.machines { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 880px; margin: 40px auto 70px; }
.machine { margin: 0; display: grid; gap: 12px; justify-items: center; }
.machine svg { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .55)); }
.machine figcaption { font: 1.1rem Kalam, cursive; color: var(--dim); }
@media (max-width: 680px) {
.machines { grid-template-columns: 1fr; }
}
/* animazioni delle macchine (unità = coordinate dell'SVG) */
.pr-gantry { animation: pr-up 10s linear infinite; }
.pr-head { animation: pr-x .9s ease-in-out infinite alternate; }
.pr-reveal { transform-box: view-box; transform-origin: 150px 238px; animation: pr-grow 10s linear infinite; }
.pr-spool { transform-box: fill-box; transform-origin: center; animation: spin 5s linear infinite; }
.pr-lcd { animation: blink 1.4s steps(1) infinite; }
@keyframes pr-up { 0% { transform: translateY(0); } 88%, 100% { transform: translateY(-78px); } }
@keyframes pr-grow { 0% { transform: scaleY(0); } 88%, 100% { transform: scaleY(1); } }
@keyframes pr-x { from { transform: translateX(-52px); } to { transform: translateX(52px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .35; } }
.lz-gantry { animation: lz-down 10s linear infinite; }
.lz-head { animation: lz-x .45s linear infinite alternate; }
.lz-reveal { transform-box: view-box; transform-origin: 160px 96px; animation: lz-grow 10s linear infinite; }
.lz-dot { animation: zap .12s steps(2) infinite; }
.lz-smoke { transform-box: fill-box; transform-origin: center; animation: smoke 1.3s ease-out infinite; }
@keyframes lz-down { 0% { transform: translateY(0); } 88%, 100% { transform: translateY(84px); } }
@keyframes lz-grow { 0% { transform: scaleY(0); } 88%, 100% { transform: scaleY(1); } }
@keyframes lz-x { from { transform: translateX(-66px); } to { transform: translateX(66px); } }
@keyframes zap { 50% { opacity: .55; } }
@keyframes smoke { from { opacity: .7; transform: translateY(0) scale(.6); } to { opacity: 0; transform: translateY(-18px) scale(1.5); } }
/* lo scaffale */
.shelf-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 24px; font-weight: 800; }
.prints { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0 16px; max-width: 900px; margin: 0 auto; position: relative; }
.prints::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 14px; border-radius: 3px; background: linear-gradient(#6b4a32, #4a3122); box-shadow: 0 12px 24px rgb(0 0 0 / .6); }
.print { display: grid; justify-items: center; gap: 8px; text-align: center; }
.print svg { width: 82px; height: 82px; filter: drop-shadow(0 8px 6px rgb(0 0 0 / .5)); }
.print span { font: .95rem/1.2 Kalam, cursive; color: var(--dim); }
@media (max-width: 760px) {
.prints { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
}
/* al banco si parla di… */
.talk { margin: 90px auto 0; max-width: 760px; text-align: center; }
.talk h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 18px; }
.bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bubbles span { position: relative; background: #241e18; border: 1px solid #3a3027; padding: 9px 16px; border-radius: 18px; font: 1.05rem Kalam, cursive; color: var(--text); }
.bubbles span:nth-child(odd) { border-bottom-left-radius: 4px; }
.bubbles span:nth-child(even) { border-bottom-right-radius: 4px; background: #2a2018; }
.next { text-align: center; padding: 80px 0 110px; }
.next h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 0 0 8px; }
.next p { color: var(--dim); margin: 0 0 24px; }
.next .links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.next a { text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 1px solid #3a3027; font-weight: 700; }
.next a.main { background: #5865f2; border-color: #5865f2; }
