:root{
  --paper:#DCDDD6; --ink:#14161A; --blu:#1F3391; --rosso:#C4251C; --grigio:#8A8C85;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:#6E706A;width:100%;min-height:100%}
body{margin:0;padding:0;min-height:100%;width:100%;font-family:'Archivo','Helvetica Neue',Arial,sans-serif;color:var(--ink);
  background:radial-gradient(circle at top left,#82857f 0%,#6E706A 55%,#5f625d 100%);
  -webkit-print-color-adjust:exact;print-color-adjust:exact}
.sheet{width:min(420mm,100%);max-width:1280px;height:594mm;background:linear-gradient(135deg,#ece9de 0%,var(--paper) 100%);padding:18mm 20mm 16mm;
  margin:0 auto;display:flex;flex-direction:column;overflow:visible;position:relative;border:.5mm solid rgba(20,22,26,.08);border-radius:4mm;box-shadow:0 12px 40px rgba(0,0,0,.28)}
.sheet::before{content:'';position:absolute;inset:8mm;pointer-events:none;border:.25mm solid rgba(31,51,145,.12);border-radius:3mm}
@media screen{ body{padding:24px;display:flex;justify-content:center;align-items:flex-start;min-height:100vh}
  .sheet{box-shadow:0 8px 40px rgba(0,0,0,.45);width:min(420mm,calc(100% - 48px));max-width:1280px;height:auto;min-height:100vh;padding:24px;}
  .sheet::before{inset:8px} }
/* Da 641px in su: il foglio è limitato a max-width:1280px, quindi il
   disegno non può restare alla larghezza fissa 250mm (sfonderebbe e
   spingerebbe .statics fuori dal foglio sopra i 1440px). Nessun limite
   superiore: le stesse regole valgono anche su schermi molto larghi. */
@media screen and (min-width:641px){
  .sheet{padding:20px;}
  .row{gap:10mm;}
  .drawing{flex:1 1 58%;max-width:58%;min-width:240px;height:auto}
  .statics{width:auto;flex:1 1 38%;max-width:38%;}
  .gallery img{height:auto;}
  .contact{flex-wrap:wrap;}
  .contact .who{flex:1 1 60%;}
  .qr{flex:1 1 35%;margin-top:10mm;}
  .tabs{flex-wrap:wrap;gap:1mm;}
  .tab{flex:1 1 20%;min-width:70px;}
}
@media screen and (max-width:1200px){
  .sheet{width:calc(100% - 36px);max-width:calc(100% - 36px);}
  .manifesto-nav{gap:5mm;font-size:3mm;}
  .row{gap:8mm;}
  .drawing{flex:1 1 60%;max-width:60%;}
  .statics{flex:1 1 38%;max-width:38%;}
  .contact{gap:8mm;}
}
@media screen and (max-width:1024px){
  .sheet{padding:18px;}
  .manifesto-nav{gap:4.5mm;font-size:2.9mm;}
  .row{gap:8mm;}
  .gallery{flex-wrap:wrap;}
  .gallery img{flex:1 1 48%;min-width:120px;height:auto;}
  .contact{align-items:flex-start;}
  .qr{width:100%;min-height:0;margin-top:8mm;}
  .tab{flex:1 1 28%;min-width:70px;}
}
@media screen and (max-width:980px){
  body{padding:16px;}
  .sheet{padding:16px;}
  .row{flex-direction:column;gap:8mm;}
  .drawing,.statics{max-width:100%;flex:1 1 100%;}
  .drawing{height:auto;}
  .in-box{position:relative;width:auto;height:auto;}
  .stats{position:relative;top:auto;left:auto;right:auto;padding:0 0 4mm;}
  .gallery{flex-wrap:wrap;}
  .gallery img{flex:1 1 48%;min-width:120px;height:auto;}
  .claim{max-width:100%;}
  .stat-card{padding:3.5mm;}
  .stat-list{grid-template-columns:1fr;}
  .contact{align-items:flex-start;}
  .qr{width:100%;height:auto;min-height:0;margin-top:8mm;}
  .tab{flex:1 1 30%;min-width:90px;}
}
@media screen and (max-width:660px){
  .sheet{padding:12px;}
  .eyebrow{flex-direction:column;align-items:flex-start;gap:2mm;}
  h1{font-size:26mm;}
  h1 em{font-size:10mm;}
  .claim-line{font-size:5.2mm;}
  .tab{flex:1 1 45%;min-width:70px;}
  .contact{gap:6mm;}
  .role{font-size:3.2mm;}
  .lines{font-size:4.2mm;}
}
@page{ size:A2 portrait; margin:0 }
@media print{ html{background:#fff} body{padding:0} .sheet{box-shadow:none} }
.eyebrow{font-family:'IBM Plex Mono',monospace;font-size:3.5mm;font-weight:500;
  letter-spacing:.4mm;text-transform:uppercase;color:var(--blu);
  display:flex;justify-content:space-between;border-bottom:.5mm solid var(--ink);padding:0 0 2.5mm;background:rgba(31,51,145,.05);border-radius:0 0 2mm 2mm;padding-inline:1.5mm}
.manifesto-nav{display:flex;justify-content:center;gap:6mm;margin:5mm 0 0;font-family:'IBM Plex Mono',monospace;font-size:3.2mm;}
.manifesto-nav a{color:var(--ink);text-decoration:none;padding:.7mm 1.2mm;border:1px solid rgba(20,22,26,.12);border-radius:1.5mm;background:rgba(255,255,255,.88);transition:background .18s ease,color .18s ease;}
.manifesto-nav a:hover{background:rgba(31,51,145,.12);color:var(--blu);}
.nav-links{display:contents}
.nav-burger{display:none}
.nav-toggle{display:none}
h1{font-size:34mm;line-height:.84;font-weight:800;font-variation-settings:'wdth' 118,'wght' 800;
  text-transform:uppercase;letter-spacing:-.5mm;margin-top:5mm;color:#10131b}
h1 em{display:block;font-style:normal;font-size:12.5mm;letter-spacing:.15mm;
  font-variation-settings:'wdth' 104,'wght' 600;margin-top:3mm;color:var(--blu);padding-left:2mm;border-left:.8mm solid var(--rosso)}
.claim{max-width:340mm;margin-top:6mm;padding:4.2mm 5mm;border-left:1.2mm solid var(--blu);background:rgba(255,255,255,.58);border-radius:2mm;box-shadow:0 2mm 8mm rgba(20,22,26,.06)}
.claim-line{font-size:5.9mm;line-height:1.4;margin-bottom:3.5mm}
.claim-line:last-child{margin-bottom:0}
.claim-line b{font-weight:700;color:var(--blu)}
.gallery{display:flex;gap:4mm;margin-top:5.5mm}
.gallery img{flex:1;height:58mm;object-fit:cover;border:.35mm solid rgba(20,22,26,.12);border-radius:2.2mm;box-shadow:0 2mm 8mm rgba(20,22,26,.08);background:#fff}
.row{display:flex;gap:12mm;margin-top:9mm}
.drawing{position:relative;width:250mm;height:340mm;flex:none;padding:2.2mm;background:linear-gradient(145deg,#f2efe6,#e4e5da);border:.35mm solid rgba(20,22,26,.1);border-radius:3mm;overflow:hidden}
.drawing svg.tech{position:absolute;inset:0}
.ruler{position:absolute;left:17mm;top:20mm;width:7mm;height:300mm}
.ruler .minor{position:absolute;right:0;top:0;width:3mm;height:100%;
  background:repeating-linear-gradient(to bottom,var(--grigio) 0 .2mm,transparent .2mm 5mm)}
.ruler .major{position:absolute;right:0;top:0;width:7mm;height:100%;
  background:repeating-linear-gradient(to bottom,var(--ink) 0 .3mm,transparent .3mm 25mm)}
.ruler span{position:absolute;right:8.5mm;transform:translateY(-1.6mm);
  font-family:'IBM Plex Mono',monospace;font-size:3.1mm}
.in-box{position:absolute;left:24mm;top:20mm;width:200mm;height:300mm;
  padding:11mm 12mm 13mm;display:flex;flex-direction:column;justify-content:flex-end;background:rgba(255,255,255,.5);border-radius:2.5mm}
.stats{position:absolute;left:12mm;right:12mm;top:11mm;
  display:flex;border-bottom:.3mm solid var(--grigio);padding:0 0 4mm;background:rgba(255,255,255,.72);border-radius:2mm;padding-inline:1.5mm}
.note{margin:3.5mm 0 0;padding:3.5mm 4mm 2.8mm;background:rgba(31,51,145,.07);border:1px solid rgba(31,51,145,.14);border-radius:2mm;font-size:3.5mm;line-height:1.45;color:#1b243d}
.note p{margin:0}
.stats div{flex:1;border-left:.3mm solid var(--grigio);padding-left:4mm}
.stats div:first-child{border-left:none;padding-left:0}
.stats .n{font-size:16mm;line-height:.9;color:var(--blu);font-variation-settings:'wdth' 116,'wght' 800}
.stats .t{font-family:'IBM Plex Mono',monospace;font-size:2.9mm;letter-spacing:.25mm;
  text-transform:uppercase;margin-top:2mm;line-height:1.3}
h2{font-size:10.5mm;line-height:1;text-transform:uppercase;
  font-variation-settings:'wdth' 112,'wght' 800;border-bottom:.5mm solid var(--ink);padding-bottom:3mm}
.kicker{font-family:'IBM Plex Mono',monospace;font-size:3.4mm;letter-spacing:.28mm;
  text-transform:uppercase;color:var(--blu);margin:3.5mm 0 5mm}
.lbl{font-family:'IBM Plex Mono',monospace;font-size:3.1mm;font-weight:600;letter-spacing:.3mm;
  text-transform:uppercase;color:var(--blu);margin-bottom:2.5mm}
.feas{margin-bottom:6mm;padding-bottom:5mm;border-bottom:.25mm solid var(--grigio)}
.feas p{font-size:4mm;line-height:1.38}
.matrix{display:flex;gap:5mm;margin-top:1mm}
.mat{flex:1;border-top:.4mm solid var(--ink);padding:3mm 3mm 2.8mm;background:rgba(255,255,255,.55);border-radius:2mm;box-shadow:0 1.2mm 4mm rgba(20,22,26,.05)}
.mat .cat{font-family:'IBM Plex Mono',monospace;font-size:2.85mm;font-weight:600;
  letter-spacing:.22mm;text-transform:uppercase;color:var(--blu);line-height:1.25;min-height:8mm}
.mat dl{margin-top:1.5mm}
.mat dt{font-size:3.7mm;font-weight:700;line-height:1.15;margin-top:2.2mm}
.mat dd{font-size:2.95mm;line-height:1.25;color:#3A3D42}
.mat .req{font-family:'IBM Plex Mono',monospace;font-size:2.6mm;color:var(--rosso);
  margin-top:3mm;line-height:1.25;border-top:.25mm dotted var(--grigio);padding-top:1.8mm}
.band{margin-top:5mm;border-top:.4mm solid var(--ink);padding-top:3mm;
  font-family:'IBM Plex Mono',monospace;font-size:3.1mm;line-height:1.5;letter-spacing:.15mm}
.band b{color:var(--blu);font-weight:600}
.band-note{margin-top:1.5mm;font-family:'IBM Plex Mono',monospace;font-size:3.1mm;line-height:1.6;color:#2e333c;padding:3.5mm 0 0}
/* Parco macchine: griglia di schede foto stampante (stile coerente con .mat) */
.fleet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4mm;margin-top:1mm}
.pcard{display:flex;flex-direction:column;background:rgba(255,255,255,.55);border-top:.4mm solid var(--ink);border-radius:2mm;overflow:hidden;box-shadow:0 1.2mm 4mm rgba(20,22,26,.05)}
.pcard img{display:block;width:100%;height:34mm;object-fit:cover;background:#fff;border-bottom:.3mm solid rgba(20,22,26,.1)}
.pcard .pname{font-family:'IBM Plex Mono',monospace;font-size:3.1mm;font-weight:700;letter-spacing:.2mm;text-transform:uppercase;color:var(--blu);line-height:1.2;padding:2.6mm 3mm 0}
.pcard .pspec{font-size:2.95mm;line-height:1.3;color:#3A3D42;padding:1.4mm 3mm 3mm}
.statics{width:118mm;padding-top:20mm;display:flex;flex-direction:column;gap:4mm}
.statics h2{font-size:9.2mm;margin-bottom:2mm}
.cred{border:none;padding:4mm 4.5mm;margin:0;background:rgba(31,51,145,.08);border-radius:2.5mm;box-shadow:0 2mm 6mm rgba(20,22,26,.08)}
.cred .r{font-family:'IBM Plex Mono',monospace;font-size:2.8mm;letter-spacing:.3mm;
  text-transform:uppercase;color:var(--blu);margin-bottom:1mm}
.cred .p{font-size:4.8mm;font-weight:700;line-height:1.2;margin-top:0}
.stat-card{background:rgba(255,255,255,.9);border:1px solid rgba(31,51,145,.16);border-radius:3mm;padding:4mm;box-shadow:0 4px 12px rgba(20,22,26,.08);display:flex;flex-direction:column;gap:3mm}
.stat-card__top{display:flex;align-items:flex-end;justify-content:space-between;gap:3mm}
.stat-card__label{font-size:16mm;font-weight:800;color:var(--rosso);line-height:1}
.stat-card__value{font-size:10mm;font-weight:800;color:var(--blu);line-height:1}
.stat-card__value sub{font-size:4.5mm;vertical-align:super;line-height:1}
.stat-card__text{font-size:3.6mm;line-height:1.45;color:#2a2d33}
.stat-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1mm;margin-top:4mm;padding:0}
.stat-list li{padding:0.8mm 0 0.8mm 5.5mm;position:relative;font-size:3.7mm;line-height:1.4}
.stat-list li::before{content:'•';position:absolute;left:0;top:0;color:var(--blu);font-size:4mm;line-height:1}
.disclaimer{margin-top:auto;border:.4mm solid rgba(20,22,26,.16);padding:4.5mm;font-size:3.4mm;line-height:1.35;background:rgba(255,255,255,.62);border-radius:2.2mm}
.disclaimer strong{display:block;font-family:'IBM Plex Mono',monospace;font-size:3mm;
  letter-spacing:.3mm;text-transform:uppercase;color:var(--rosso);margin-bottom:2mm}
.spacer{flex:1;min-height:4mm}
.strip{background:linear-gradient(90deg,var(--ink),#1d2634);color:var(--paper);font-family:'IBM Plex Mono',monospace;
  font-size:3.7mm;letter-spacing:.3mm;text-transform:uppercase;padding:3.2mm 6mm;
  display:flex;justify-content:space-between;border-radius:2mm;box-shadow:0 2mm 6mm rgba(20,22,26,.15)}
.contact{display:flex;gap:10mm;align-items:flex-end;padding:6mm 0;margin-top:2mm}
.contact .who{flex:1}
.name{font-size:12mm;text-transform:uppercase;line-height:1;font-variation-settings:'wdth' 110,'wght' 700}
.role{font-family:'IBM Plex Mono',monospace;font-size:3.6mm;letter-spacing:.3mm;
  text-transform:uppercase;color:var(--blu);margin-top:2.5mm}
.lines{font-family:'IBM Plex Mono',monospace;font-size:4.6mm;line-height:1.45;margin-top:3.5mm}
.qr{width:32mm;height:32mm;border:.4mm dashed var(--ink);display:flex;align-items:center;
  justify-content:center;text-align:center;font-family:'IBM Plex Mono',monospace;
  font-size:2.9mm;color:var(--grigio);line-height:1.3}
.tabs{display:flex;height:38mm;border-top:.4mm dashed var(--ink);background:rgba(255,255,255,.35);border-radius:2mm;overflow:hidden;margin-top:1mm}
.tab{flex:1;border-left:.3mm dashed var(--grigio);display:flex;align-items:center;
  justify-content:center;gap:.8mm;padding:.3mm 0.8mm;background:linear-gradient(180deg,rgba(255,255,255,.25),rgba(20,22,26,.03));min-width:11mm}
.tab:first-child{border-left:none}
.tab span{writing-mode:vertical-rl;transform:rotate(180deg);
  font-family:'IBM Plex Mono',monospace;font-size:2.1mm;line-height:1.05;white-space:normal;word-break:break-word;max-width:12mm;display:block;text-align:center}
.tab .a{color:var(--blu)}
.tab .b{font-weight:600}
.ctrl{position:absolute;left:20mm;bottom:5mm;font-family:'IBM Plex Mono',monospace;
  font-size:2.8mm;color:var(--grigio);display:flex;align-items:center;gap:3mm}
.ctrl i{display:block;width:100mm;height:1.6mm;border:.3mm solid var(--grigio);border-top:none}
.ph{border-bottom:.4mm dotted var(--rosso)}

/* ============================================================
   VERSIONE MOBILE (≤640px) — riscrittura completa.
   Posta in fondo al file: vince per source-order su tutte le
   regole base in "mm". Il desktop (>640px) resta invariato.
   ============================================================ */
@media screen and (max-width:640px){
  html,body{overflow-x:hidden;max-width:100%}
  body{padding:12px}
  img{max-width:100%}

  .sheet{width:100%;max-width:100%;min-height:auto;padding:16px 14px 22px;border-radius:14px}
  .sheet::before{inset:6px;border-radius:10px}

  /* ---- Intestazione ---- */
  .eyebrow{flex-direction:column;align-items:flex-start;gap:4px;font-size:10px;letter-spacing:.3px;padding:0 4px 8px}

  /* ---- Navigazione con hamburger ---- */
  .manifesto-nav{position:relative;justify-content:flex-end;align-items:center;gap:0;margin:12px 0 0}
  .nav-burger{display:flex;flex-direction:column;justify-content:center;gap:5px;width:42px;height:42px;padding:9px;
    cursor:pointer;border:1px solid rgba(20,22,26,.18);border-radius:9px;background:rgba(255,255,255,.92);
    box-shadow:0 2px 8px rgba(20,22,26,.08)}
  .nav-burger span{display:block;width:100%;height:2px;background:var(--ink);border-radius:2px;transition:transform .25s ease,opacity .2s ease}
  .nav-links{display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:30;
    flex-direction:column;gap:6px;padding:10px;background:rgba(255,255,255,.98);
    border:1px solid rgba(20,22,26,.14);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.22)}
  .manifesto-nav input:checked ~ .nav-links{display:flex}
  .nav-links a{display:block;width:100%;text-align:center;padding:13px;font-size:14px;letter-spacing:.4px;
    border:1px solid rgba(20,22,26,.1);border-radius:8px;background:rgba(255,255,255,.9)}
  .manifesto-nav input:checked ~ .nav-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .manifesto-nav input:checked ~ .nav-burger span:nth-child(2){opacity:0}
  .manifesto-nav input:checked ~ .nav-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  /* ---- Titolo ---- */
  h1{font-size:clamp(34px,10.5vw,52px);line-height:.92;letter-spacing:-.5px;margin-top:16px}
  h1 em{font-size:clamp(16px,4.6vw,22px);margin-top:10px;padding-left:8px;border-left-width:3px}

  /* ---- Claim (sottopagine) ---- */
  .claim{max-width:100%;margin-top:18px;padding:14px 16px;border-left-width:4px;border-radius:8px}
  .claim-line{font-size:15px;line-height:1.45;margin-bottom:12px}

  /* ---- Layout principale: colonna singola ---- */
  .row{flex-direction:column;gap:26px;margin-top:22px}
  .drawing,.statics{width:100%;max-width:100%;flex:1 1 auto}

  /* Nasconde il disegno tecnico decorativo (dimensioni fisse in mm) */
  .drawing{position:static;width:100%;height:auto;padding:0;background:none;border:none;overflow:visible}
  .drawing svg.tech,.ruler{display:none}
  .statics{padding-top:0;gap:16px}

  /* Il contenuto reale torna nel flusso ---- */
  .in-box{position:static;width:100%;height:auto;padding:0;background:none;
    justify-content:flex-start;gap:0;border-radius:0}

  /* ---- Statistiche numeriche ---- */
  .stats{position:static;left:auto;right:auto;top:auto;gap:10px;padding:0 0 14px;margin-bottom:20px;
    background:none;border-radius:0}
  .stats div{padding-left:12px}
  .stats div:first-child{padding-left:0}
  .stats .n{font-size:30px}
  .stats .t{font-size:9.5px;letter-spacing:.2px;margin-top:6px}

  /* ---- Servizi / feasibility ---- */
  .feas{margin-bottom:22px;padding-bottom:18px}
  .feas p{font-size:14.5px;line-height:1.5}
  .lbl{font-size:11px;margin-bottom:8px}

  /* ---- Titoli sezione ---- */
  h2{font-size:22px;padding-bottom:10px}
  .statics h2{font-size:22px;margin-bottom:8px}

  /* ---- Galleria foto: impilata a piena larghezza ---- */
  .gallery{flex-direction:column;gap:12px;margin-top:20px}
  .gallery img{flex:none;width:100%;height:210px;border-radius:10px}

  /* ---- Materiali: CAROUSEL orizzontale con scroll-snap ---- */
  h2 + .matrix{margin-top:14px}
  .matrix{display:flex;flex-wrap:nowrap;gap:12px;margin-top:14px;padding:2px 2px 14px;
    overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scroll-padding-left:2px}
  .matrix::-webkit-scrollbar{height:6px}
  .matrix::-webkit-scrollbar-track{background:rgba(20,22,26,.06);border-radius:3px}
  .matrix::-webkit-scrollbar-thumb{background:rgba(31,51,145,.35);border-radius:3px}
  .mat{flex:0 0 76%;scroll-snap-align:start;min-width:0;padding:14px 14px 16px;border-radius:10px;
    border-top-width:3px;box-shadow:0 4px 14px rgba(20,22,26,.08)}
  .mat .cat{font-size:12px;min-height:0;margin-bottom:4px}
  .mat dt{font-size:15px;margin-top:10px}
  .mat dd{font-size:13px;line-height:1.35}

  /* ---- Parco macchine: 2 colonne su mobile ---- */
  h2 + .fleet{margin-top:14px}
  .fleet{grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
  .pcard img{height:120px}
  .pcard .pname{font-size:12px;padding:10px 12px 0}
  .pcard .pspec{font-size:12px;line-height:1.35;padding:5px 12px 12px}

  /* ---- Bande informative ---- */
  .band{font-size:12px;line-height:1.6;margin-top:20px;padding-top:14px;overflow-wrap:break-word}
  .band-note{font-size:12px;line-height:1.65;padding-top:12px;overflow-wrap:break-word}
  .band-note.note{padding:14px}

  /* ---- Aside "Perché sceglierci" ---- */
  .cred{padding:14px 16px}
  .cred .r{font-size:10.5px}
  .cred .p{font-size:18px}
  .stat-card{padding:16px;gap:12px}
  .stat-card__label{font-size:44px}
  .stat-card__value{font-size:28px}
  .stat-card__text{font-size:14px;line-height:1.5}
  .beam{max-width:280px}
  .stat-list{grid-template-columns:1fr;gap:2px;margin-top:16px}
  .stat-list li{font-size:15px;padding:4px 0 4px 22px}
  .stat-list li::before{font-size:16px}
  .disclaimer{margin-top:22px;padding:16px;font-size:13px;line-height:1.5}
  .disclaimer strong{font-size:11px}

  /* ---- Strip promozionale: va a capo ---- */
  .strip{flex-wrap:wrap;justify-content:center;text-align:center;gap:6px 16px;font-size:10.5px;padding:12px 16px;border-radius:8px}

  /* ---- Contatti: colonna ---- */
  .contact{flex-direction:column;align-items:flex-start;gap:18px;padding:22px 0 8px}
  .name{font-size:38px}
  .role{font-size:13px}
  .lines{font-size:15px;line-height:1.5}
  .qr{width:130px;height:130px;margin-top:0}

  /* ---- Tabs a piè di pagina: griglia leggibile orizzontale ---- */
  .tabs{display:grid;grid-template-columns:1fr 1fr;height:auto;gap:8px;background:none;border-top:none;
    padding-top:16px;margin-top:16px;overflow:visible}
  .tab{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;border-left:none;
    border:1px solid rgba(20,22,26,.14);border-radius:9px;padding:11px 13px;min-width:0;background:rgba(255,255,255,.5)}
  .tab span{writing-mode:horizontal-tb;transform:none;max-width:100%;text-align:left;line-height:1.2;
    white-space:normal;overflow-wrap:anywhere}
  .tab .a{font-size:14px;font-weight:700}
  .tab .b{font-size:9.5px;color:var(--grigio)}

  /* ---- Nota calibrazione: fuori flusso e senza il righello da 100mm ---- */
  .ctrl{position:static;left:auto;bottom:auto;margin-top:18px;font-size:10.5px;line-height:1.4;flex-wrap:wrap}
  .ctrl i{display:none}
}

/* ---- Rifiniture per schermi molto stretti (≤380px) ---- */
@media screen and (max-width:380px){
  h1{font-size:clamp(30px,9.4vw,40px)}
  .mat{flex:0 0 82%}
  .stats .n{font-size:26px}
  .name{font-size:32px}
  .tabs{grid-template-columns:1fr}
}

/* ============================================================
   DESKTOP a due colonne (≥981px): colonna sinistra a SCORRIMENTO.
   Il "tavolo da disegno" a dimensione fissa (in-box 200mm) veniva
   ritagliato da overflow:hidden quando la colonna si restringeva
   (AMS, 4ª colonna materiali, 2ª foto, riga File… sparivano).
   Qui il contenuto torna nel flusso e resta SEMPRE tutto visibile.
   Manteniamo lo stile tecnico: bordo, carta, griglia blueprint e un
   righello decorativo a lato. Sotto i 980px si impila già da sé.
   ============================================================ */
@media screen and (min-width:981px){
  .drawing{
    height:auto;overflow:visible;padding:9mm 9mm 9mm 11mm;
    background:
      repeating-linear-gradient(rgba(31,51,145,.05) 0 .2mm,transparent .2mm 8mm),
      repeating-linear-gradient(90deg,rgba(31,51,145,.05) 0 .2mm,transparent .2mm 8mm),
      linear-gradient(145deg,#f2efe6,#e4e5da);
  }
  /* righello decorativo a sinistra (non vincola il contenuto) */
  .drawing::after{content:'';position:absolute;left:3.5mm;top:9mm;bottom:9mm;width:2mm;
    background:repeating-linear-gradient(to bottom,var(--grigio) 0 .3mm,transparent .3mm 8mm);
    opacity:.45;pointer-events:none}
  .drawing svg.tech,.ruler{display:none}
  .in-box{position:relative;left:auto;top:auto;width:auto;height:auto;
    padding:0;justify-content:flex-start;background:none;border-radius:0}
  .stats{position:relative;left:auto;right:auto;top:auto;margin-bottom:5mm}
  /* foto: min-width:0 così si restringono e non sbordano nella colonna destra */
  .gallery{gap:4mm}
  .gallery img{flex:1 1 0;min-width:0;height:52mm;object-fit:cover}
  /* materiali: 2×2 leggibili invece di 4 colonne strette */
  .matrix{flex-wrap:wrap;gap:4mm}
  .mat{flex:1 1 44%;min-width:0}
}

