/* ============================================================
   RUKH & ROLE ETS · css/texture.css  — GENERATO da assets/texture.py,
   non si modifica a mano. Le quattro texture del committente (file di
   design in assets/carta-antica/): ogni --tx-<nome> è la lista degli
   strati (vignetta, grana, fibra, aloni, macchie), da montare con
     background-color:var(--tx-<nome>-base);
     background-image:var(--tx-<nome>);
     background-size:var(--tx-size); background-blend-mode:var(--tx-blend);
   --tx-carta è la sola fibra+grana, per dare un filo di carta a una
   lastra chiara senza tingerla. Regge da file://: niente file esterni.
   ============================================================ */
:root{
  --tx-size:auto,300px 300px,600px 600px,1700px 1700px,1100px 1100px;
  --tx-blend:multiply,multiply,multiply,multiply,multiply;
  --tx-carta-size:300px 300px,600px 600px;
  --tx-carta-blend:multiply,multiply;
  --tx-fibra:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1200'%20height='1200'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.5'%20numOctaves='2'%20seed='5'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='table'%20tableValues='0%200%200%200%200%200.016%200.112%200.16'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-grana:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='600'%20height='600'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='3'%20seed='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='linear'%20slope='0.18'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-carta:var(--tx-grana),var(--tx-fibra);
  --tx-bruno-base:#4a2a12;
  --tx-bruno-vignetta:linear-gradient(to right,rgba(40,20,6,.35) 0%,rgba(40,20,6,.14) 6%,transparent 18%,transparent 82%,rgba(40,20,6,.14) 94%,rgba(40,20,6,.35) 100%);
  --tx-bruno-aloni:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1700'%20height='1700'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0016'%20numOctaves='3'%20seed='37'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='gamma'%20amplitude='1'%20exponent='3.2'%20offset='0'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20values='0%200%200%200%200.45%20%200%200%200%200%200.28%20%200%200%200%200%200.12%20%200.665%200%200%200%20-0.1925'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-bruno-macchie:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1100'%20height='1100'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0032'%20numOctaves='5'%20seed='11'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.55%20%200%200%200%200%200.38%20%200%200%200%200%200.2%20%200.45%200%200%200%20-0.18'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-bruno:var(--tx-bruno-vignetta),var(--tx-grana),var(--tx-fibra),var(--tx-bruno-aloni),var(--tx-bruno-macchie);
  --tx-rosso-base:#9b2a24;
  --tx-rosso-vignetta:linear-gradient(to right,rgba(60,10,8,.35) 0%,rgba(60,10,8,.14) 6%,transparent 18%,transparent 82%,rgba(60,10,8,.14) 94%,rgba(60,10,8,.35) 100%);
  --tx-rosso-aloni:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1700'%20height='1700'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0016'%20numOctaves='3'%20seed='37'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='gamma'%20amplitude='1'%20exponent='3.2'%20offset='0'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20values='0%200%200%200%200.35%20%200%200%200%200%200.08%20%200%200%200%200%200.06%20%200.665%200%200%200%20-0.1925'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-rosso-macchie:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1100'%20height='1100'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0032'%20numOctaves='5'%20seed='11'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.45%20%200%200%200%200%200.14%20%200%200%200%200%200.12%20%200.45%200%200%200%20-0.18'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-rosso:var(--tx-rosso-vignetta),var(--tx-grana),var(--tx-fibra),var(--tx-rosso-aloni),var(--tx-rosso-macchie);
  --tx-ocra-base:#e2b482;
  --tx-ocra-vignetta:linear-gradient(to right,rgba(130,65,15,.35) 0%,rgba(130,65,15,.14) 6%,transparent 18%,transparent 82%,rgba(130,65,15,.14) 94%,rgba(130,65,15,.35) 100%);
  --tx-ocra-aloni:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1700'%20height='1700'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0016'%20numOctaves='3'%20seed='37'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='gamma'%20amplitude='1'%20exponent='3.2'%20offset='0'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20values='0%200%200%200%200.62%20%200%200%200%200%200.36%20%200%200%200%200%200.14%20%200.665%200%200%200%20-0.1925'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-ocra-macchie:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1100'%20height='1100'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0032'%20numOctaves='5'%20seed='11'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.68%20%200%200%200%200%200.44%20%200%200%200%200%200.2%20%200.45%200%200%200%20-0.18'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-ocra:var(--tx-ocra-vignetta),var(--tx-grana),var(--tx-fibra),var(--tx-ocra-aloni),var(--tx-ocra-macchie);
  --tx-pesca-base:#f1c99e;
  --tx-pesca-vignetta:linear-gradient(to right,rgba(150,80,20,.35) 0%,rgba(150,80,20,.14) 6%,transparent 18%,transparent 82%,rgba(150,80,20,.14) 94%,rgba(150,80,20,.35) 100%);
  --tx-pesca-aloni:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1700'%20height='1700'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0016'%20numOctaves='3'%20seed='37'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='gamma'%20amplitude='1'%20exponent='3.2'%20offset='0'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20values='0%200%200%200%200.7%20%200%200%200%200%200.42%20%200%200%200%200%200.18%20%200.665%200%200%200%20-0.1925'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-pesca-macchie:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1100'%20height='1100'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0032'%20numOctaves='5'%20seed='11'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.75%20%200%200%200%200%200.5%20%200%200%200%200%200.25%20%200.45%200%200%200%20-0.18'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-pesca:var(--tx-pesca-vignetta),var(--tx-grana),var(--tx-fibra),var(--tx-pesca-aloni),var(--tx-pesca-macchie);
  --tx-chiara-base:#eee6d8;
  --tx-chiara-vignetta:linear-gradient(to right,rgba(120,90,55,.22) 0%,rgba(120,90,55,.09) 6%,transparent 18%,transparent 82%,rgba(120,90,55,.09) 94%,rgba(120,90,55,.22) 100%);
  --tx-chiara-aloni:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1700'%20height='1700'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0016'%20numOctaves='3'%20seed='37'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='gamma'%20amplitude='1'%20exponent='3.2'%20offset='0'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20values='0%200%200%200%200.66%20%200%200%200%200%200.54%20%200%200%200%200%200.38%20%200.665%200%200%200%20-0.1925'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-chiara-macchie:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1100'%20height='1100'%3E%3Cfilter%20id='f'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.0032'%20numOctaves='5'%20seed='11'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.72%20%200%200%200%200%200.62%20%200%200%200%200%200.48%20%200.45%200%200%200%20-0.18'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23f)'/%3E%3C/svg%3E");
  --tx-chiara:var(--tx-chiara-vignetta),var(--tx-grana),var(--tx-fibra),var(--tx-chiara-aloni),var(--tx-chiara-macchie);
}

/* la classe di comodo: base + strati + misure in un colpo */
.tx-bruno{background-color:var(--tx-bruno-base);background-image:var(--tx-bruno);background-size:var(--tx-size);background-blend-mode:var(--tx-blend);background-repeat:repeat}
.tx-rosso{background-color:var(--tx-rosso-base);background-image:var(--tx-rosso);background-size:var(--tx-size);background-blend-mode:var(--tx-blend);background-repeat:repeat}
.tx-ocra{background-color:var(--tx-ocra-base);background-image:var(--tx-ocra);background-size:var(--tx-size);background-blend-mode:var(--tx-blend);background-repeat:repeat}
.tx-pesca{background-color:var(--tx-pesca-base);background-image:var(--tx-pesca);background-size:var(--tx-size);background-blend-mode:var(--tx-blend);background-repeat:repeat}
.tx-chiara{background-color:var(--tx-chiara-base);background-image:var(--tx-chiara);background-size:var(--tx-size);background-blend-mode:var(--tx-blend);background-repeat:repeat}
.tx-carta{background-image:var(--tx-carta);background-size:var(--tx-carta-size);background-blend-mode:var(--tx-carta-blend);background-repeat:repeat}
