{"id":29304,"date":"2025-08-27T20:44:08","date_gmt":"2025-08-27T18:44:08","guid":{"rendered":"https:\/\/www.wideautomation.com\/configuratore-bordi-sensibili\/"},"modified":"2026-09-07T17:38:12","modified_gmt":"2026-09-07T15:38:12","slug":"sensitive-edges-configurator","status":"publish","type":"page","link":"https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/","title":{"rendered":"Sensitive edges configurator"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-overflow:visible;--awb-padding-top:0%;--awb-padding-right:5%;--awb-padding-bottom:2%;--awb-padding-left:5%;--awb-background-color:#ffffff;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1664px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\" style=\"--awb-margin-top:2%;\"><h1 style=\"font-size:20px;font-family:'Helvetica LT Roman','Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:400;line-height:30px;letter-spacing:normal;color:#adadad;text-transform:none;margin:0 0 5px;text-align: center;\"><span style=\"font-size: 20px;\">Configure your sensing edge<\/span><\/h1>\n<p style=\"text-align: center;\"><span style=\"font-size: 14px;\">Configure your custom edge in 4 steps.<\/span><span style=\"font-size: 14px;\">You will receive a detailed quotation within 2 business days.<\/span><\/p>\n<\/div><style>\n\/* \u2500\u2500 RESET & BASE \u2500\u2500 *\/\n* { margin: 0; padding: 0; box-sizing: border-box; }\nbody { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; background: #f4f5f7; color: #1a1a1a; line-height: 1.5; }\n.wa-configurator { max-width: 880px; margin: 20px auto; padding: 0 20px 40px; }\n\/* \u2500\u2500 HEADER \u2500\u2500 *\/\n.wa-header { text-align: center; margin-bottom: 16px; padding: 15px 0 10px 10px; }\n.wa-header h1 { color: #2c3e50; font-size: 24px; font-weight: 700; margin-bottom: 2px;}\n.wa-header p { font-size: 13px; color: #6c757d; max-width: 600px;}\n\/* \u2500\u2500 STEPPER \u2500\u2500 *\/\n.wa-stepper { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 20px; position: relative; padding: 0 20px; }\n.wa-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; z-index: 1; cursor: pointer; }\n.wa-step-bubble {\n  width: 34px; height: 34px; border-radius: 50%;\n  display: flex; align-items: center; justify-content: center;\n  font-weight: 700; font-size: 13px;\n  background: #e9ecef; color: #adb5bd;\n  border: 2px solid #dee2e6;\n  transition: all .3s ease; position: relative;\n}\n.wa-step.active .wa-step-bubble { background: #ff6600; color: #fff; border-color: #ff6600; box-shadow: 0 0 0 4px rgba(255,102,0,.15); }\n.wa-step.done .wa-step-bubble { background: #28a745; color: #fff; border-color: #28a745; }\n.wa-step-label { margin-top: 5px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: #adb5bd; text-align: center; line-height: 1.3; transition: color .3s; }\n.wa-step.active .wa-step-label { color: #ff6600; }\n.wa-step.done .wa-step-label { color: #28a745; }\n.wa-step-line { position: absolute; top: 16px; left: 50%; right: -50%; height: 2px; background: #dee2e6; z-index: 0; transition: background .3s; }\n.wa-step:last-child .wa-step-line { display: none; }\n.wa-step.done .wa-step-line { background: #28a745; }\n\/* \u2500\u2500 PANELS \u2500\u2500 *\/\n.wa-panel {\n  background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06);\n  padding: 22px 28px; margin-bottom: 16px; border: 1px solid #e9ecef;\n  display: none; animation: fadeIn .35s ease;\n}\n.wa-panel.visible { display: block; }\n@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }\n.wa-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }\n.wa-panel-number { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; background: #ff6600; color: #fff; }\n.wa-panel-title { font-size: 15px; font-weight: 700; }\n.wa-panel-subtitle { font-size: 11px; color: #6c757d; margin-left: auto; font-style: italic; }\n\/* \u2500\u2500 SUB-SECTIONS \u2500\u2500 *\/\n.wa-sub { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0f0; }\n.wa-sub:first-child { margin-top: 0; padding-top: 0; border-top: none; }\n.wa-sub-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6c757d; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }\n.wa-badge { font-size: 10px; background: #e9ecef; color: #6c757d; padding: 2px 8px; border-radius: 10px; font-weight: 600; text-transform: none; letter-spacing: 0; }\n\/* \u2500\u2500 MODEL CARDS \u2500\u2500 *\/\n.wa-model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }\n.wa-model-card {\n  border: 2px solid #e9ecef; border-radius: 8px; padding: 10px 8px 8px;\n  text-align: center; cursor: pointer; transition: all .2s ease; background: #fff;\n}\n.wa-model-card:hover { border-color: #ffc107; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.07); }\n.wa-model-card.selected { border-color: #ff6600; background: #fff8f3; }\n.wa-model-card.disabled { opacity: .45; pointer-events: none; }\n.wa-model-card img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 5px; }\n.wa-model-card .name { font-weight: 700; font-size: 12px; }\n.wa-model-card .desc { font-size: 10px; color: #6c757d; margin-top: 1px; line-height: 1.2; }\n.wa-model-card .note { font-size: 9px; color: #e74c3c; font-style: italic; margin-top: 3px; }\n\/* \u2500\u2500 COLOR CARDS \u2500\u2500 *\/\n.wa-color-grid { display: flex; gap: 10px; flex-wrap: wrap; }\n.wa-color-card {\n  border: 2px solid #e9ecef; border-radius: 8px; padding: 8px 16px;\n  text-align: center; cursor: pointer; transition: all .2s ease; min-width: 80px;\n}\n.wa-color-card:hover { border-color: #ffc107; }\n.wa-color-card.selected { border-color: #ff6600; background: #fff8f3; }\n.wa-color-card.disabled { opacity: .45; pointer-events: none; }\n.wa-color-swatch { width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 4px; border: 2px solid #dee2e6; }\n.wa-color-swatch.black { background: #1a1a1a; }\n.wa-color-swatch.yellow { background: #f5d300; }\n.wa-color-swatch.multi { background: conic-gradient(#e74c3c, #f39c12, #2ecc71, #3498db, #9b59b6, #e74c3c); }\n.wa-color-name { font-size: 11px; font-weight: 600; }\n\/* \u2500\u2500 RADIO CARDS \u2500\u2500 *\/\n.wa-radio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }\n.wa-radio-card {\n  border: 2px solid #e9ecef; border-radius: 8px; padding: 10px 14px;\n  cursor: pointer; transition: all .2s ease; background: #fff;\n}\n.wa-radio-card:hover { border-color: #ffc107; }\n.wa-radio-card.selected { border-color: #ff6600; background: #fff8f3; }\n.wa-radio-card .title { font-weight: 700; font-size: 13px; margin-bottom: 1px; }\n.wa-radio-card .rdesc { font-size: 11px; color: #6c757d; }\n\/* \u2500\u2500 CANALINA CARDS \u2500\u2500 *\/\n.wa-canalina-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }\n.wa-canalina-grid.single { grid-template-columns: 1fr; max-width: 400px; }\n.wa-canalina-card {\n  border: 2px solid #e9ecef; border-radius: 8px; padding: 8px 10px 6px;\n  display: flex; flex-direction: column; align-items: center; gap: 0; cursor: pointer;\n  transition: all .2s ease; background: #fff; text-align: center;\n}\n.wa-canalina-card:hover { border-color: #ffc107; }\n.wa-canalina-card.selected { border-color: #ff6600; background: #fff8f3; }\n.wa-canalina-card img { width: 60%; height: auto; border-radius: 4px; }\n.wa-canalina-card .info { margin-top: 2px; }\n.wa-canalina-card .info h4 { font-size: 12px; font-weight: 700; margin: 0; }\n.wa-canalina-card .info p { font-size: 10px; color: #6c757d; margin: 0; }\n\/* \u2500\u2500 CABLE CARDS \u2500\u2500 *\/\n.wa-cable-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }\n.wa-cable-card {\n  border: 2px solid #e9ecef; border-radius: 8px; padding: 20px;\n  text-align: center; cursor: pointer; transition: all .2s ease; background: #fff;\n}\n.wa-cable-card:hover { border-color: #ffc107; }\n.wa-cable-card.selected { border-color: #ff6600; background: #fff8f3; }\n.wa-cable-card img { width: 100%; max-width: 150px; height: auto; border-radius: 4px; margin-bottom: 5px; }\n.wa-cable-card .name { font-weight: 700; font-size: 12px; }\n.wa-cable-card .desc { font-size: 10px; color: #6c757d; margin-top: 1px; }\n\/* \u2500\u2500 SCHEMA BOX \u2500\u2500 *\/\n.wa-schema-box { background: #f8f9fa; border-radius: 8px; padding: 14px; text-align: center; margin-top: 10px; }\n.wa-schema-box img { max-width: 100%; height: auto; max-height: 150px; border-radius: 4px; }\n.wa-schema-box .caption { font-size: 10px; color: #6c757d; margin-top: 5px; }\n\/* \u2500\u2500 FORM FIELDS \u2500\u2500 *\/\n.wa-dims-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; margin-top: 10px; }\n.wa-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }\n.wa-form-grid .full { grid-column: 1 \/ -1; }\n.wa-field label { display: block; font-size: 10px; font-weight: 600; color: #6c757d; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .3px; }\n.wa-field label .req { color: #e74c3c; }\n.wa-field input, .wa-field select, .wa-field textarea {\n  width: 100%; padding: 8px 10px; border: 1px solid #dee2e6; border-radius: 6px;\n  font-size: 13px; color: #1a1a1a; font-family: inherit; transition: border-color .2s;\n}\n.wa-field input:focus, .wa-field select:focus, .wa-field textarea:focus { outline: none; border-color: #ff6600; box-shadow: 0 0 0 3px rgba(255,102,0,.1); }\n.wa-field input::placeholder, .wa-field textarea::placeholder { color: #adb5bd; }\n.wa-field select { color: #adb5bd; }\n.wa-field select.has-value { color: #1a1a1a; }\n.wa-field textarea { min-height: 80px; resize: vertical; }\n.wa-field .hint { font-size: 10px; color: #adb5bd; margin-top: 3px; }\n.wa-field.computed input { background: #f8f9fa; font-weight: 600; cursor: not-allowed; }\n\/* \u2500\u2500 INFO BOX \u2500\u2500 *\/\n.wa-info-box { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 12px 16px; font-size: 13px; color: #664d03; line-height: 1.5; }\n.wa-info-box strong { font-weight: 700; }\n\/* \u2500\u2500 LAVORAZIONI BOX \u2500\u2500 *\/\n.wa-lavorazioni { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 14px 18px; font-size: 13px; color: #495057; line-height: 1.7; margin-top: 8px; }\n\/* \u2500\u2500 RIEPILOGO \u2500\u2500 *\/\n.wa-riepilogo { margin-top: 24px; padding: 20px; background: #f8f9fa; border-radius: 10px; border: 1px solid #e9ecef; }\n.wa-riepilogo h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #6c757d; margin-bottom: 14px; }\n.wa-riepilogo-grid { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; font-size: 13px; }\n.wa-riepilogo-grid .lbl { color: #6c757d; font-weight: 600; }\n.wa-riepilogo-grid .val { color: #1a1a1a; }\n\/* \u2500\u2500 NAV BUTTONS \u2500\u2500 *\/\n.wa-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f0f0; }\n.wa-btn { padding: 10px 24px; border-radius: 8px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s ease; }\n.wa-btn-back { background: transparent; color: #6c757d; border: 1px solid #dee2e6; }\n.wa-btn-back:hover { background: #f8f9fa; }\n.wa-btn-next { background: #ff6600; color: #fff; }\n.wa-btn-next:hover { background: #e65c00; }\n.wa-btn-next:disabled { background: #dee2e6; color: #adb5bd; cursor: not-allowed; }\n.wa-btn-submit { background: #28a745; color: #fff; padding: 14px 40px; font-size: 15px; }\n.wa-btn-submit:hover { background: #218838; }\n\/* \u2500\u2500 CONNETTORI IMG \u2500\u2500 *\/\n.wa-connettori-img { margin-bottom: 10px; text-align: center; }\n.wa-connettori-img img { max-width: 100%; height: auto; max-height: 120px; border-radius: 4px; }\n\/* \u2500\u2500 PRIVACY \u2500\u2500 *\/\n.wa-privacy { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; margin-top: 16px; }\n.wa-privacy input[type=\"checkbox\"] { margin-top: 3px; width: 18px; height: 18px; accent-color: #ff6600; flex-shrink: 0; }\n.wa-privacy a { color: #ff6600; }\n\/* \u2500\u2500 VALIDATION \u2500\u2500 *\/\n.wa-field.error input, .wa-field.error select, .wa-field.error textarea { border-color: #e74c3c; }\n.wa-field { position: relative; }\n.wa-field .error-msg { font-size: 11px; color: #e74c3c; position: absolute; bottom: -16px; left: 0; display: none; }\n.wa-field.error .error-msg { display: block; }\n.wa-field .warn-msg { font-size: 10px; color: #e74c3c; margin-top: 2px; display: none; line-height: 1.3; }\n.wa-field.warn .warn-msg { display: block; }\n.wa-field.warn input { border-color: #e74c3c; }\n.wa-card-error { font-size: 12px; color: #e74c3c; margin-top: 8px; display: none; }\n.wa-card-error.visible { display: block; }\n\/* \u2500\u2500 SUCCESS MESSAGE \u2500\u2500 *\/\n.wa-success { display: none; text-align: center; padding: 60px 20px; }\n.wa-success.visible { display: block; }\n.wa-success .icon { font-size: 60px; margin-bottom: 16px; }\n.wa-success h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #28a745; }\n.wa-success p { font-size: 14px; color: #6c757d; max-width: 500px; margin: 0 auto; }\n\/* \u2500\u2500 REF \u2500\u2500 *\/\n.wa-ref { text-align: center; margin-top: 16px; font-size: 11px; color: #adb5bd; }\n\/* \u2500\u2500 LOADING OVERLAY \u2500\u2500 *\/\n.wa-loading { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.85); z-index: 9999; justify-content: center; align-items: center; flex-direction: column; gap: 16px; }\n.wa-loading.visible { display: flex; }\n.wa-spinner { width: 44px; height: 44px; border: 4px solid #e9ecef; border-top-color: #ff6600; border-radius: 50%; animation: spin .8s linear infinite; }\n@keyframes spin { to { transform: rotate(360deg); } }\n.wa-loading p { font-size: 14px; color: #6c757d; font-weight: 600; }\n\/* \u2500\u2500 RESPONSIVE: TABLET \u2500\u2500 *\/\n@media (max-width: 768px) {\n  .wa-configurator { padding: 0 12px 30px; }\n  .wa-panel { padding: 18px 16px; }\n  .wa-model-grid { grid-template-columns: repeat(2, 1fr); }\n  .wa-dims-grid { grid-template-columns: 1fr 1fr; }\n  #connectorGrid { grid-template-columns: repeat(3, 1fr) !important; }\n  #quantitaColoreRow { grid-template-columns: 1fr auto auto auto !important; }\n  #quantitaColoreRow #customColorWrap { grid-column: 1 \/ -1; }\n  .wa-form-grid { grid-template-columns: 1fr; }\n  .wa-riepilogo-grid { grid-template-columns: 140px 1fr; }\n  #canalinaFixed .wa-info-box { flex-direction: column !important; text-align: center; }\n  #canalinaFixed .wa-info-box img { width: 160px !important; margin: 0 auto; }\n}\n\/* \u2500\u2500 RESPONSIVE: MOBILE \u2500\u2500 *\/\n@media (max-width: 540px) {\n  .wa-configurator { padding: 0 8px 24px; }\n  .wa-header h1 { font-size: 20px; }\n  .wa-header p { font-size: 12px; }\n  .wa-panel { padding: 14px 12px; }\n  .wa-panel-head { flex-wrap: wrap; gap: 6px; }\n  .wa-panel-subtitle { margin-left: 0; font-size: 10px; width: 100%; }\n  \/* stepper *\/\n  .wa-stepper { padding: 0; gap: 0; }\n  .wa-step-bubble { width: 28px; height: 28px; font-size: 11px; }\n  .wa-step-label { font-size: 8px; letter-spacing: 0; }\n  .wa-step-line { top: 13px; }\n  \/* model grid 2 col *\/\n  .wa-model-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }\n  \/* quantity + color *\/\n  #quantitaColoreRow {\n    grid-template-columns: auto auto auto !important;\n    gap: 8px !important;\n  }\n  #quantitaColoreRow .wa-field:first-child { grid-column: 1 \/ -1; }\n  #quantitaColoreRow .wa-color-card { justify-content: center; }\n  #quantitaColoreRow #customColorWrap { grid-column: 1 \/ -1; }\n  \/* radio & canalina *\/\n  .wa-radio-grid { grid-template-columns: 1fr; gap: 8px; }\n  .wa-canalina-card { flex-direction: column; text-align: center; }\n  \/* dimensions grid *\/\n  .wa-dims-grid { grid-template-columns: 1fr; gap: 12px 0; }\n  \/* cable & connector *\/\n  .wa-cable-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }\n  #connectorGrid { grid-template-columns: repeat(3, 1fr) !important; }\n  \/* form *\/\n  .wa-form-grid { grid-template-columns: 1fr; gap: 12px; }\n  \/* riepilogo *\/\n  .wa-riepilogo-grid { grid-template-columns: 1fr; gap: 4px 0; }\n  .wa-riepilogo-grid .lbl { font-weight: 700; margin-top: 6px; }\n  \/* nav buttons *\/\n  .wa-nav { gap: 10px; }\n  .wa-btn { padding: 10px 16px; font-size: 12px; }\n  .wa-btn-submit { padding: 12px 24px; font-size: 14px; }\n  \/* info box canalinaFixed *\/\n  #canalinaFixed .wa-info-box { flex-direction: column !important; text-align: center; gap: 8px !important; padding: 10px !important; }\n  #canalinaFixed .wa-info-box img { width: 140px !important; margin: 0 auto; }\n  \/* schema box *\/\n  .wa-schema-box { padding: 10px; }\n  \/* success *\/\n  .wa-success { padding: 40px 16px; }\n  .wa-success .icon { font-size: 48px; }\n  .wa-success h2 { font-size: 18px; }\n  .wa-success p { font-size: 13px; }\n  \/* privacy *\/\n  .wa-privacy { font-size: 12px; }\n}\n\/* \u2500\u2500 RESPONSIVE: SMALL MOBILE \u2500\u2500 *\/\n@media (max-width: 380px) {\n  #connectorGrid { grid-template-columns: repeat(2, 1fr) !important; }\n  #quantitaColoreRow { grid-template-columns: 1fr 1fr 1fr !important; }\n  #quantitaColoreRow .wa-field:first-child { grid-column: 1 \/ -1; }\n  .wa-model-grid { gap: 6px; }\n  .wa-model-card { padding: 8px 6px 6px; }\n  .wa-model-card .name { font-size: 11px; }\n  .wa-btn { padding: 9px 12px; font-size: 11px; }\n}\n<\/style>\n<script src=\"https:\/\/challenges.cloudflare.com\/turnstile\/v0\/api.js\" async defer><\/script>\n\n<div class=\"wa-configurator\" id=\"configurator\">\n  <div class=\"wa-stepper\" id=\"stepper\">\n    <div class=\"wa-step active\" data-step=\"1\">\n      <div class=\"wa-step-line\"><\/div>\n      <div class=\"wa-step-bubble\">1<\/div>\n      <div class=\"wa-step-label\">Safety<br>edge<\/div>\n    <\/div>\n    <div class=\"wa-step\" data-step=\"2\">\n      <div class=\"wa-step-line\"><\/div>\n      <div class=\"wa-step-bubble\">2<\/div>\n      <div class=\"wa-step-label\">Guide<br>& holes<\/div>\n    <\/div>\n    <div class=\"wa-step\" data-step=\"3\">\n      <div class=\"wa-step-line\"><\/div>\n      <div class=\"wa-step-bubble\">3<\/div>\n      <div class=\"wa-step-label\">Cable<\/div>\n    <\/div>\n    <div class=\"wa-step\" data-step=\"4\">\n      <div class=\"wa-step-bubble\">4<\/div>\n      <div class=\"wa-step-label\">Data &<br>submit<\/div>\n    <\/div>\n  <\/div>\n  <!-- STEP 1 -->\n  <div class=\"wa-panel visible\" id=\"panel1\">\n    <div class=\"wa-panel-head\">\n      <div class=\"wa-panel-number\">1<\/div>\n      <div class=\"wa-panel-title\">Sensing Element<\/div>\n      <div class=\"wa-panel-subtitle\">Model, color and specifications<\/div>\n    <\/div>\n    <div class=\"wa-panel-body\">\n      <div class=\"wa-sub\">\n        <div class=\"wa-sub-label\">Safety edge model <span class=\"req\" style=\"color:#e74c3c\">*<\/span><\/div>\n        <div class=\"wa-model-grid\" id=\"modelGrid\">\n          <div class=\"wa-model-card\" data-value=\"BOS-2220\" onclick=\"WA.selectModel(this)\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/13121948\/BOS2220_profilo.png\" alt=\"BOS-2220\">\n            <div class=\"name\">BOS-2220<\/div>\n            <div class=\"desc\">Standard profile<\/div>\n          <\/div>\n          <div class=\"wa-model-card\" data-value=\"BOS-2231\" onclick=\"WA.selectModel(this)\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/13121941\/BOS2231_profilo.png\" alt=\"BOS-2231\">\n            <div class=\"name\">BOS-2231<\/div>\n            <div class=\"desc\">Medium profile<\/div>\n          <\/div>\n          <div class=\"wa-model-card\" data-value=\"BOS-3143\" onclick=\"WA.selectModel(this)\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/13121934\/BOS3143_profilo.png\" alt=\"BOS-3143\">\n            <div class=\"name\">BOS-3143<\/div>\n            <div class=\"desc\">Large profile<\/div>\n          <\/div>\n          <div class=\"wa-model-card\" data-value=\"BOS-4060\" onclick=\"WA.selectModel(this)\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/13121926\/BOS4060_profilo.png\" alt=\"BOS-4060\">\n            <div class=\"name\">BOS-4060<\/div>\n            <div class=\"desc\">Extra profile<\/div>\n            <div class=\"note\">* available in black only<\/div>\n          <\/div>\n        <\/div>\n        <div class=\"wa-card-error\" id=\"errModel\">Please select a model to continue<\/div>\n      <\/div>\n      <div class=\"wa-sub\">\n        <div class=\"wa-sub-label\" style=\"margin-bottom: 6px;\">Quantity and color <span class=\"req\" style=\"color:#e74c3c\">*<\/span><\/div>\n        <div id=\"quantitaColoreRow\" style=\"display: grid; grid-template-columns: 130px auto auto auto 1fr; gap: 8px; align-items: stretch; padding-bottom: 14px;\">\n          <div class=\"wa-field\" style=\"display:flex; flex-direction:column;\">\n            <label style=\"margin-bottom: auto;\">Quantity<\/label>\n            <input type=\"number\" id=\"quantita\" min=\"1\" max=\"9999\" placeholder=\"e.g. 10\" style=\"height: 40px;\">\n            <div class=\"error-msg\">Required<\/div>\n          <\/div>\n          <div class=\"wa-color-card\" data-value=\"nero\" onclick=\"WA.selectColor(this)\" style=\"display:flex; align-items:center; gap:8px; height:40px; padding:6px 14px; margin-top:auto;\">\n            <div class=\"wa-color-swatch black\" style=\"width:18px; height:18px; margin:0; flex-shrink:0;\"><\/div>\n            <div class=\"wa-color-name\" style=\"font-size:11px; white-space:nowrap;\">Black<\/div>\n          <\/div>\n          <div class=\"wa-color-card\" data-value=\"giallo\" id=\"colorYellow\" onclick=\"WA.selectColor(this)\" style=\"display:flex; align-items:center; gap:8px; height:40px; padding:6px 14px; margin-top:auto;\">\n            <div class=\"wa-color-swatch yellow\" style=\"width:18px; height:18px; margin:0; flex-shrink:0;\"><\/div>\n            <div class=\"wa-color-name\" style=\"font-size:11px; white-space:nowrap;\">Yellow<\/div>\n          <\/div>\n          <div class=\"wa-color-card\" data-value=\"altro\" id=\"colorOther\" onclick=\"WA.selectColor(this)\" style=\"display:flex; align-items:center; gap:8px; height:40px; padding:6px 14px; margin-top:auto;\">\n            <div class=\"wa-color-swatch multi\" style=\"width:18px; height:18px; margin:0; flex-shrink:0;\"><\/div>\n            <div class=\"wa-color-name\" style=\"font-size:11px; white-space:nowrap;\">Other<\/div>\n          <\/div>\n          <div class=\"wa-field\" id=\"customColorWrap\" style=\"display:flex; flex-direction:column; opacity: 0.4; pointer-events: none;\">\n            <label style=\"margin-bottom: auto; text-transform: none;\">Desired color <span style=\"font-weight: normal; font-size: 10px; color: #adb5bd;\">(minimum quantity required)<\/span><\/label>\n            <input type=\"text\" id=\"colorePersonalizzato\" placeholder=\"e.g. Red RAL 3020\" style=\"height: 40px;\" maxlength=\"60\">\n          <\/div>\n        <\/div>\n        <div class=\"wa-card-error\" id=\"errColor\">Please select a color<\/div>\n      <\/div>\n      <div class=\"wa-sub\">\n        <div class=\"wa-sub-label\">Sensitive element <span class=\"req\" style=\"color:#e74c3c\">*<\/span><\/div>\n        <div class=\"wa-radio-grid\" id=\"elementoGrid\">\n          <div class=\"wa-radio-card\" data-value=\"standard\" onclick=\"WA.selectCard(this, 'elementoGrid')\">\n            <div class=\"title\">Standard<\/div>\n            <div class=\"rdesc\">Standard sensitivity<\/div>\n          <\/div>\n          <div class=\"wa-radio-card\" data-value=\"alta_sensibilita\" onclick=\"WA.selectCard(this, 'elementoGrid')\">\n            <div class=\"title\">High sensitivity<\/div>\n            <div class=\"rdesc\">COE series<\/div>\n          <\/div>\n        <\/div>\n        <div class=\"wa-card-error\" id=\"errElemento\">Please select the sensitive element type<\/div>\n      <\/div>\n      <div class=\"wa-nav\">\n        <div><\/div>\n        <button class=\"wa-btn wa-btn-next\" onclick=\"WA.nextStep(1)\">Next \u2192<\/button>\n      <\/div>\n    <\/div>\n  <\/div>\n  <!-- STEP 2 -->\n  <div class=\"wa-panel\" id=\"panel2\">\n    <div class=\"wa-panel-head\">\n      <div class=\"wa-panel-number\">2<\/div>\n      <div class=\"wa-panel-title\">Support Guide and Mounting Holes<\/div>\n      <div class=\"wa-panel-subtitle\">Aluminium profile and dimensions<\/div>\n    <\/div>\n    <div class=\"wa-panel-body\">\n      <div class=\"wa-sub\" id=\"canalinaSection\">\n        <div class=\"wa-sub-label\" id=\"canalinaLabelsRow\">Support guide type <span class=\"req\" style=\"color:#e74c3c\">*<\/span><\/div>\n        <div id=\"canalinaCardsRow\" style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px;\">\n          <div class=\"wa-canalina-card\" data-value=\"25mm\" onclick=\"WA.selectCanalina(this)\" id=\"canalinaChoice1\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/15215506\/canalina-standard-1.png\" alt=\"Standard guide\">\n            <div class=\"info\">\n              <h4>Standard guide<\/h4>\n              <p>Low profile<\/p>\n            <\/div>\n          <\/div>\n          <div class=\"wa-canalina-card\" data-value=\"50mm\" onclick=\"WA.selectCanalina(this)\" id=\"canalinaChoice2\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/14091006\/canalina-a-f.png\" alt=\"F guide\">\n            <div class=\"info\">\n              <h4>\"F\" guide<\/h4>\n              <p>High profile<\/p>\n            <\/div>\n          <\/div>\n        <\/div>\n        <div id=\"canalinaFixed\" style=\"display: none;\">\n          <div class=\"wa-info-box\" style=\"font-size: 12px; padding: 4px 6px; display: flex; align-items: center; gap: 16px;\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/17214408\/canalina-standard-35.png\" alt=\"Standard 35mm guide\" style=\"width: 200px; height: auto; object-fit: contain; border-radius: 6px;\">\n            <span>For this model only the <strong>standard 35mm guide<\/strong> is available.<\/span>\n          <\/div>\n        <\/div>\n      <\/div>\n      <div class=\"wa-sub\">\n        <div class=\"wa-sub-label\">Guide machining <span class=\"req\" style=\"color:#e74c3c\">*<\/span><\/div>\n        <div id=\"lavorazioneGrid\" style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 10px;\">\n          <div class=\"wa-radio-card\" data-value=\"non_lavorato\" onclick=\"WA.selectCard(this, 'lavorazioneGrid')\" style=\"display:flex; align-items:center; margin:0;\">\n            <div>\n              <div class=\"title\">Unmachined<\/div>\n              <div class=\"rdesc\">Raw profile without drilling<\/div>\n            <\/div>\n          <\/div>\n          <div class=\"wa-radio-card\" data-value=\"forato\" onclick=\"WA.selectCard(this, 'lavorazioneGrid')\" style=\"display:flex; align-items:center; margin:0;\">\n            <div>\n              <div class=\"title\">Drilled<\/div>\n              <div class=\"rdesc\">With mounting holes<\/div>\n            <\/div>\n          <\/div>\n        <\/div>\n        <div class=\"wa-card-error\" id=\"errProfilo\">Please select the machining option<\/div>\n      <\/div>\n      <div class=\"wa-sub\" id=\"foriSection\">\n        <div class=\"wa-sub-label\">\n          Overall length and hole positioning\n          <span class=\"wa-badge\">Diagram changes based on guide type<\/span>\n        <\/div>\n        <div class=\"wa-schema-box\">\n          <img decoding=\"async\" id=\"schemaForiImg\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/11174124\/estruso_stretto-scaled.png\" alt=\"Drilling diagram\">\n          <div class=\"caption\" id=\"schemaCaption\">Drilling diagram \u2014 Standard 25mm guide<\/div>\n        <\/div>\n        <div class=\"wa-dims-grid\">\n          <div class=\"wa-field\">\n            <label>Length [A] (mm) <span class=\"req\">*<\/span><\/label>\n            <input type=\"number\" id=\"lunghezza\" min=\"50\" max=\"6000\" placeholder=\"e.g. 1200\">\n            <div class=\"hint\">Range: 50 \u2013 6000 mm<\/div>\n            <div class=\"warn-msg\" id=\"warnLunghezza\"><\/div>\n          <\/div>\n          <div class=\"wa-field\">\n            <label>First hole dist. [B] (mm)<\/label>\n            <input type=\"number\" id=\"primoForo\" min=\"0\" placeholder=\"e.g. 50\">\n            <div class=\"hint\">Leave empty if holes are not needed<\/div>\n            <div class=\"warn-msg\" id=\"warnPrimoForo\"><\/div>\n          <\/div>\n          <div class=\"wa-field\">\n            <label>Last hole dist. (mm)<\/label>\n            <input type=\"number\" id=\"ultimoForo\" min=\"0\" placeholder=\"e.g. 50\">\n            <div class=\"warn-msg\" id=\"warnUltimoForo\"><\/div>\n          <\/div>\n          <div class=\"wa-field\">\n            <label>Number of holes<\/label>\n            <input type=\"number\" id=\"numFori\" min=\"1\" max=\"50\" placeholder=\"e.g. 6\" oninput=\"WA.calcPasso()\">\n            <div class=\"warn-msg\" id=\"warnNumFori\"><\/div>\n          <\/div>\n          <div class=\"wa-field computed\">\n            <label>Hole pitch [C] (mm)<\/label>\n            <input type=\"number\" id=\"passoFori\" placeholder=\"Calculated\" readonly>\n            <div class=\"hint\" id=\"hintPasso\">Calculated automatically<\/div>\n            <div class=\"warn-msg\" id=\"warnPasso\"><\/div>\n          <\/div>\n          <div class=\"wa-field\">\n            <label>Hole diameter (mm)<\/label>\n            <input type=\"number\" id=\"diamFori\" min=\"2\" max=\"20\" step=\"1\" placeholder=\"e.g. 6\">\n            <div class=\"warn-msg\" id=\"warnDiamFori\"><\/div>\n          <\/div>\n        <\/div>\n      <\/div>\n      <div class=\"wa-nav\">\n        <button class=\"wa-btn wa-btn-back\" onclick=\"WA.prevStep(2)\">\u2190 Back<\/button>\n        <button class=\"wa-btn wa-btn-next\" onclick=\"WA.nextStep(2)\">Next \u2192<\/button>\n      <\/div>\n    <\/div>\n  <\/div>\n  <!-- STEP 3 -->\n  <div class=\"wa-panel\" id=\"panel3\">\n    <div class=\"wa-panel-head\">\n      <div class=\"wa-panel-number\">3<\/div>\n      <div class=\"wa-panel-title\">Connection Cable<\/div>\n      <div class=\"wa-panel-subtitle\">Position, connector and length<\/div>\n    <\/div>\n    <div class=\"wa-panel-body\">\n      <div class=\"wa-sub\" style=\"border-top: none; margin-top: 0; padding-top: 0;\">\n        <div class=\"wa-sub-label\">Cable exit position <span class=\"req\" style=\"color:#e74c3c\">*<\/span><\/div>\n        <div class=\"wa-cable-grid\" id=\"cableGrid\" style=\"grid-template-columns: 1fr 1fr; gap: 8px; max-width: 400px;\">\n          <div class=\"wa-cable-card\" data-value=\"standard\" onclick=\"WA.selectCable(this)\" style=\"display:flex; flex-direction:column; align-items:center; padding: 20px;\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/14100021\/cavo_uscita_inferiore-red-copia.png\" alt=\"Standard cable exit\" style=\"width:100%; height:auto;\">\n            <div class=\"name\" style=\"margin-top:auto; font-size:11px;\">Standard cable exit<\/div>\n          <\/div>\n          <div class=\"wa-cable-card\" data-value=\"laterale\" onclick=\"WA.selectCable(this)\" style=\"display:flex; flex-direction:column; align-items:center; padding: 20px;\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/14100029\/cavo_uscita_laterale-red-copia.png\" alt=\"Lateral cable exit\" style=\"width:100%; height:auto;\">\n            <div class=\"name\" style=\"margin-top:auto; font-size:11px;\">Lateral cable exit<\/div>\n          <\/div>\n        <\/div>\n        <div class=\"wa-card-error\" id=\"errCable\">Please select the cable position<\/div>\n      <\/div>\n      <div class=\"wa-sub\" style=\"margin-top: 12px;\">\n        <div class=\"wa-sub-label\">Connector type <span class=\"req\" style=\"color:#e74c3c\">*<\/span><\/div>\n        <div class=\"wa-cable-grid\" id=\"connectorGrid\" style=\"grid-template-columns: repeat(5, 1fr); gap: 8px;\">\n          <div class=\"wa-cable-card\" data-value=\"nessuno\" onclick=\"WA.selectConnector(this)\" style=\"display:flex; flex-direction:column; align-items:center; padding: 12px 8px;\">\n            <img decoding=\"async\" id=\"nessunoImg\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/17183242\/cavo-fili.png\" alt=\"Bare wire end\" style=\"width:100%; height:auto; max-height:80px; object-fit:contain;\">\n            <div class=\"name\" style=\"margin-top:auto; font-size:10px; text-align:center;\">Bare wire end<\/div>\n          <\/div>\n          <div class=\"wa-cable-card\" data-value=\"M8 male\" onclick=\"WA.selectConnector(this)\" style=\"display:flex; flex-direction:column; align-items:center; padding: 12px 8px;\">\n            <img decoding=\"async\" id=\"m8Img\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/23105636\/M8-connector.png\" alt=\"M8 male\" style=\"width:100%; height:auto; max-height:70px; object-fit:contain;\">\n            <div class=\"name\" id=\"m8Label\" style=\"margin-top:auto; font-size:10px; text-align:center;\">M8 male<\/div>\n          <\/div>\n          <div class=\"wa-cable-card\" id=\"m12Card\" data-value=\"M12 4P male\" onclick=\"WA.selectConnector(this)\" style=\"display:flex; flex-direction:column; align-items:center; padding: 12px 8px;\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/23105643\/M12-connector.png\" alt=\"M12 4P male\" style=\"width:100%; height:auto; max-height:80px; object-fit:contain;\">\n            <div class=\"name\" style=\"margin-top:auto; font-size:10px; text-align:center;\">M12 4P male<\/div>\n          <\/div>\n          <div class=\"wa-cable-card\" id=\"ilmeCard\" data-value=\"ILME CKM04\" onclick=\"WA.selectConnector(this)\" style=\"display:flex; flex-direction:column; align-items:center; padding: 12px 8px;\">\n            <img decoding=\"async\" src=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/17183304\/ILME-CKM04-1.png\" alt=\"ILME CKM04\" style=\"width:100%; height:auto; max-height:80px; object-fit:contain;\">\n            <div class=\"name\" style=\"margin-top:auto; font-size:10px; text-align:center;\">ILME CKM04<\/div>\n          <\/div>\n          <div class=\"wa-cable-card\" data-value=\"altro\" onclick=\"WA.selectConnector(this)\" style=\"display:flex; flex-direction:column; align-items:center; justify-content:center; padding: 12px 8px;\">\n            <div style=\"flex:1; display:flex; align-items:center; justify-content:center; width:100%; max-height:80px;\">\n              <svg style=\"width:50%;\" viewBox=\"0 0 80 20\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                <circle cx=\"20\" cy=\"10\" r=\"5\" fill=\"#cdd1d6\"\/>\n                <circle cx=\"40\" cy=\"10\" r=\"5\" fill=\"#cdd1d6\"\/>\n                <circle cx=\"60\" cy=\"10\" r=\"5\" fill=\"#cdd1d6\"\/>\n              <\/svg>\n            <\/div>\n            <div class=\"name\" style=\"margin-top:auto; font-size:10px; text-align:center;\">Other<\/div>\n          <\/div>\n        <\/div>\n        <div id=\"customConnectorWrap\" style=\"margin-top: 8px; max-width: 350px; display: none;\">\n          <div class=\"wa-field\">\n            <label style=\"text-transform: none;\">Desired connector <span style=\"font-weight: normal; font-size: 10px; color: #adb5bd;\">(minimum quantity required)<\/span> <span class=\"req\">*<\/span><\/label>\n            <input type=\"text\" id=\"connettorePersonalizzato\" placeholder=\"e.g. DIN 43650, Deutsch DT04...\" maxlength=\"80\">\n          <\/div>\n        <\/div>\n        <div class=\"wa-card-error\" id=\"errConnettore\">Please select a connector type<\/div>\n      <\/div>\n      <div class=\"wa-sub\" style=\"margin-top: 12px;\">\n        <div class=\"wa-sub-label\">Output cable length<\/div>\n        <div style=\"max-width: 250px;\">\n          <div class=\"wa-field\">\n            <label>Length (mm) <span class=\"req\">*<\/span><\/label>\n            <input type=\"number\" id=\"lunghezzaCavo\" min=\"200\" max=\"25000\" placeholder=\"e.g. 3000\">\n            <div class=\"hint\" id=\"hintCavo\" style=\"font-size:10px; color:#adb5bd; margin-top: 2px;\">200 \u2013 25000mm<\/div>\n          <\/div>\n        <\/div>\n      <\/div>\n      <div class=\"wa-nav\">\n        <button class=\"wa-btn wa-btn-back\" onclick=\"WA.prevStep(3)\">\u2190 Back<\/button>\n        <button class=\"wa-btn wa-btn-next\" onclick=\"WA.nextStep(3)\">Next \u2192<\/button>\n      <\/div>\n    <\/div>\n  <\/div>\n  <!-- STEP 4 -->\n  <div class=\"wa-panel\" id=\"panel4\">\n    <div class=\"wa-panel-head\">\n      <div class=\"wa-panel-number\">4<\/div>\n      <div class=\"wa-panel-title\">Quote Request Data<\/div>\n      <div class=\"wa-panel-subtitle\">Enter your contact details<\/div>\n    <\/div>\n    <div class=\"wa-panel-body\">\n      <div class=\"wa-form-grid\">\n        <!-- honeypot anti-bot -->\n        <div class=\"wa-field\" style=\"position:absolute;left:-9999px;top:-9999px;opacity:0;height:0;overflow:hidden;\" aria-hidden=\"true\" tabindex=\"-1\">\n          <label>Leave empty<\/label>\n          <input type=\"text\" id=\"wa_website\" name=\"wa_website\" autocomplete=\"off\" tabindex=\"-1\">\n        <\/div>\n        <div class=\"wa-field\">\n          <label>Company <span class=\"req\">*<\/span><\/label>\n          <input type=\"text\" id=\"azienda\" placeholder=\"Your company name\" maxlength=\"120\">\n          <div class=\"error-msg\">Required field<\/div>\n        <\/div>\n        <div class=\"wa-field\">\n          <label>Contact person <span class=\"req\">*<\/span><\/label>\n          <input type=\"text\" id=\"referente\" placeholder=\"First and last name\" maxlength=\"100\">\n          <div class=\"error-msg\">Required field<\/div>\n        <\/div>\n        <div class=\"wa-field\">\n          <label>Email <span class=\"req\">*<\/span><\/label>\n          <input type=\"email\" id=\"email\" placeholder=\"email@yourcompany.com\" maxlength=\"150\">\n          <div class=\"error-msg\">Enter a valid email<\/div>\n        <\/div>\n        <div class=\"wa-field\">\n          <label>Phone<\/label>\n          <input type=\"tel\" id=\"telefono\" placeholder=\"+1 555 123 4567\" maxlength=\"30\">\n        <\/div>\n        <div class=\"wa-field full\">\n          <label>Full address<\/label>\n          <input type=\"text\" id=\"indirizzo\" placeholder=\"Street, number, postal code, city, country\" maxlength=\"250\">\n        <\/div>\n        <div class=\"wa-field full\">\n          <label>Notes and special machining<\/label>\n          <textarea id=\"note\" placeholder=\"Describe any special machining or specific requirements...\" maxlength=\"1000\"><\/textarea>\n          <div class=\"wa-lavorazioni\">\n            <strong>Additional machining available:<\/strong><br>\n            \u2022 Calendering of aluminium supports<br>\n            \u2022 Cutting ends at 45\u00b0 or custom angles<br>\n            \u2022 Specific supports for front mounting (\"F\" profile guide)<br>\n            \u2022 Multiple connected safety edge configurations<br>\n            \u2022 Other custom machining on request\n          <\/div>\n        <\/div>\n      <\/div>\n      <div class=\"wa-riepilogo\" id=\"riepilogo\">\n        <h4>Configuration summary<\/h4>\n        <div class=\"wa-riepilogo-grid\" id=\"riepilogoGrid\"><\/div>\n      <\/div>\n      <div class=\"wa-privacy\">\n        <input type=\"checkbox\" id=\"privacy\">\n        <span>I have read and accept the <a href=\"\/privacy-policy\" target=\"_blank\">Privacy Policy<\/a> for personal data processing <span style=\"color:#e74c3c\">*<\/span><\/span>\n      <\/div>\n      <div class=\"wa-card-error\" id=\"errPrivacy\">You must accept the privacy policy to submit<\/div>\n      <div class=\"cf-turnstile\" style=\"margin: 12px 0;\" data-sitekey=\"0x4AAAAAAEgzBIvItLX4fPE3\" data-callback=\"waOnTurnstileSuccess\" data-expired-callback=\"waOnTurnstileExpired\" data-error-callback=\"waOnTurnstileError\"><\/div>\n      <div class=\"wa-nav\">\n        <button class=\"wa-btn wa-btn-back\" onclick=\"WA.prevStep(4)\">\u2190 Back<\/button>\n        <button class=\"wa-btn wa-btn-submit\" onclick=\"WA.submit()\">Submit Quote Request<\/button>\n      <\/div>\n    <\/div>\n  <\/div>\n  <div class=\"wa-success\" id=\"successMsg\">\n    <div class=\"icon\">\u2713<\/div>\n    <h2>Request submitted successfully!<\/h2>\n    <p>You will receive a detailed quote within 2 business days. Please also check your spam folder.<\/p>\n    <p style=\"margin-top: 12px; font-size: 12px; color: #adb5bd;\" id=\"refCode\"><\/p>\n  <\/div>\n  <div class=\"wa-ref\" id=\"refDisplay\"><\/div>\n<\/div>\n<div class=\"wa-loading\" id=\"loading\">\n  <div class=\"wa-spinner\"><\/div>\n  <p>Generating quote...<\/p>\n<\/div>\n<script>\n(function() {\n  var s = document.createElement('script');\n  s.src = 'https:\/\/cdn.jsdelivr.net\/npm\/jspdf@2.5.2\/dist\/jspdf.umd.min.js';\n  s.onload = function() { console.log('jsPDF loaded'); };\n  s.onerror = function() { console.error('jsPDF load error'); };\n  document.head.appendChild(s);\n})();\n\n\/\/ HARDENING: Turnstile configuration. Setting WA_H_TURNSTILE_ENABLED = false\n\/\/ disables the client-side check without removing the code.\nvar WA_H_TURNSTILE_ENABLED = true;\nvar WA_H_TURNSTILE_SITE_KEY = '0x4AAAAAAEgzBIvItLX4fPE3';\n\nvar WA = (function() {\n  var state = {\n    step: 1,\n    modello: '', modelloImg: '',\n    quantita: '', colore: '', colorePersonalizzato: '',\n    elemento: '',\n    canalina: '', canalinaLabel: '',\n    profiloAlluminio: '',\n    lunghezza: '', primoForo: '', ultimoForo: '', numFori: '', passoFori: '', diamFori: '',\n    posizioneCavo: '', posizioneCavoImg: '',\n    connettore: '', connettorePersonalizzato: '', lunghezzaCavo: '',\n    azienda: '', referente: '', email: '', telefono: '', indirizzo: '', note: '',\n    ref: ''\n  };\n  var modelImgs = {\n    'BOS-2220': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/13121948\/BOS2220_profilo.png',\n    'BOS-2231': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/13121941\/BOS2231_profilo.png',\n    'BOS-3143': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/13121934\/BOS3143_profilo.png',\n    'BOS-4060': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/13121926\/BOS4060_profilo.png'\n  };\n  var foriImgs = {\n    '25mm': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/11174124\/estruso_stretto-scaled.png',\n    '50mm': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/11174135\/estruso_flangia-scaled.png',\n    '35mm_standard': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/11174124\/estruso_stretto-scaled.png'\n  };\n  var cableImgs = {\n    'standard': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/14100021\/cavo_uscita_inferiore-red-copia.png',\n    'laterale': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/14100029\/cavo_uscita_laterale-red-copia.png'\n  };\n  var canalinaImgs = {\n    '25mm': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/15215506\/canalina-standard-1.png',\n    '50mm': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/14091006\/canalina-a-f.png',\n    '35mm_standard': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/17214408\/canalina-standard-35.png'\n  };\n  \/* \u2500\u2500 Dynamic connector images based on sensitive element \u2500\u2500 *\/\n  var nessunoImgs = {\n    'standard':         'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/17183242\/cavo-fili.png',\n    'alta_sensibilita': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/06\/04183144\/cable_2wires.png'\n  };\n  var m8Imgs = {\n    'standard':         'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/03\/23105636\/M8-connector.png',\n    'alta_sensibilita': 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/06\/04183135\/m8_2poles.png'\n  };\n  var canalinaLabels = { '25mm': 'Standard 25mm guide', '50mm': '\"F\" guide', '35mm_standard': 'Standard 35mm guide' };\n  var foriCaptions = { '25mm': 'Drilling diagram \u2014 Standard 25mm guide', '50mm': 'Drilling diagram \u2014 \"F\" guide', '35mm_standard': 'Drilling diagram \u2014 Standard 35mm guide' };\n  var _formLoadTime = 0;\n  var _lastSubmitTime = 0;\n  var _submitCount = 0;\n  var _turnstileToken = ''; \/\/ HARDENING: current token, set by the Turnstile widget\n  \/\/ TRACKER WIDE (8\/11): segnali senza dati verso il binding PostHog; solo categoria chiusa, nessun valore.\n  function waSignal(name, outcome) {\n    try { document.dispatchEvent(new CustomEvent(name, { detail: outcome ? { outcome: outcome } : {} })); } catch (e) { }\n  }\n  function init() {\n    state.ref = generateRef();\n    var el = document.getElementById('refDisplay');\n    if (el) el.textContent = 'Ref: ' + state.ref;\n    _formLoadTime = Date.now();\n  }\n  function sanitize(str) {\n    if (!str) return '';\n    return str.replace(\/[<>\"'`]\/g, '').replace(\/javascript:\/gi, '').replace(\/on\\w+\\s*=\/gi, '').trim();\n  }\n  function checkHoneypot() {\n    var hp = document.getElementById('wa_website');\n    return !(hp && hp.value && hp.value.length > 0);\n  }\n  function checkTiming() {\n    return (Date.now() - _formLoadTime) > 5000;\n  }\n  function checkRateLimit() {\n    var now = Date.now();\n    if (now - _lastSubmitTime < 10000) return false;\n    if (_submitCount >= 3) return false;\n    return true;\n  }\n  \/\/ HARDENING: client-side Turnstile check, same style as the other anti-bot checks.\n  function checkTurnstile() {\n    if (!WA_H_TURNSTILE_ENABLED) return true;\n    \/\/ CFG-0811b: se il widget ha completato prima che questa callback esistesse (api.js async, script defer),\n    \/\/ il token non e arrivato a waOnTurnstileSuccess: lo si rilegge una volta dal widget. Verifica server invariata.\n    if (!_turnstileToken && window.turnstile && typeof window.turnstile.getResponse === 'function') {\n      try { var t = window.turnstile.getResponse(); if (typeof t === 'string' && t) _turnstileToken = t; } catch (e) { }\n    }\n    return !!_turnstileToken;\n  }\n  \/\/ HARDENING: global callbacks invoked by the Cloudflare Turnstile widget.\n  window.waOnTurnstileSuccess = function(token) {\n    _turnstileToken = (typeof token === 'string') ? token : '';\n  };\n  window.waOnTurnstileExpired = function() {\n    _turnstileToken = '';\n  };\n  window.waOnTurnstileError = function() {\n    _turnstileToken = '';\n  };\n  \/\/ HARDENING: discard an already used\/expired token and reset the widget.\n  function resetTurnstile() {\n    _turnstileToken = '';\n    if (window.turnstile && typeof window.turnstile.reset === 'function') {\n      try { window.turnstile.reset(); } catch (e) { }\n    }\n  }\n  function generateRef() {\n    var chars = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789';\n    var r = 'WA-CFG-';\n    for (var i = 0; i < 6; i++) r += chars.charAt(Math.floor(Math.random() * chars.length));\n    return r;\n  }\n  function updateStepper() {\n    document.querySelectorAll('.wa-step').forEach(function(s) {\n      var n = parseInt(s.getAttribute('data-step'));\n      s.classList.remove('active', 'done');\n      if (n < state.step) s.classList.add('done');\n      else if (n === state.step) s.classList.add('active');\n    });\n  }\n  function showPanel(n) {\n    for (var i = 1; i <= 4; i++) {\n      var p = document.getElementById('panel' + i);\n      if (p) p.classList.toggle('visible', i === n);\n    }\n    state.step = n;\n    updateStepper();\n    window.scrollTo({ top: 0, behavior: 'smooth' });\n  }\n  function nextStep(current) {\n    if (!validateStep(current)) return;\n    collectStepData(current);\n    if (current === 3) buildRiepilogo();\n    showPanel(current + 1);\n  }\n  function prevStep(current) { showPanel(current - 1); }\n  function isModelloGrande() {\n    return state.modello === 'BOS-3143' || state.modello === 'BOS-4060';\n  }\n  function selectModel(card) {\n    deselectAll('#modelGrid .wa-model-card');\n    card.classList.add('selected');\n    state.modello = card.getAttribute('data-value');\n    state.modelloImg = modelImgs[state.modello] || '';\n    hideError('errModel');\n    var yellowCard = document.getElementById('colorYellow');\n    var otherCard = document.getElementById('colorOther');\n    if (state.modello === 'BOS-4060') {\n      \/\/ BOS-4060: black only\n      if (yellowCard) yellowCard.classList.add('disabled');\n      if (otherCard) otherCard.classList.add('disabled');\n      forceNero();\n    } else if (state.modello === 'BOS-3143') {\n      \/\/ BOS-3143: no yellow, other allowed\n      if (yellowCard) yellowCard.classList.add('disabled');\n      if (otherCard) otherCard.classList.remove('disabled');\n      \/\/ deselect yellow if it was selected\n      if (state.colore === 'giallo') {\n        document.querySelectorAll('.wa-color-card').forEach(function(c) { c.classList.remove('selected'); });\n        state.colore = '';\n        var wrap = document.getElementById('customColorWrap');\n        wrap.style.opacity = '0.4';\n        wrap.style.pointerEvents = 'none';\n      }\n    } else {\n      \/\/ BOS-2220, BOS-2231: all colors\n      if (yellowCard) yellowCard.classList.remove('disabled');\n      if (otherCard) otherCard.classList.remove('disabled');\n    }\n    updateCanalinaForModel();\n  }\n  function forceNero() {\n    var neroCard = document.querySelector('.wa-color-card[data-value=\"nero\"]');\n    if (neroCard && !neroCard.classList.contains('selected')) {\n      document.querySelectorAll('.wa-color-card').forEach(function(c) { c.classList.remove('selected'); });\n      neroCard.classList.add('selected');\n      state.colore = 'nero';\n      var wrap = document.getElementById('customColorWrap');\n      wrap.style.opacity = '0.4';\n      wrap.style.pointerEvents = 'none';\n    }\n  }\n  function updateCanalinaForModel() {\n    var cardsRow = document.getElementById('canalinaCardsRow');\n    var labelsRow = document.getElementById('canalinaLabelsRow');\n    var fixed = document.getElementById('canalinaFixed');\n    var card1 = document.getElementById('canalinaChoice1');\n    var card2 = document.getElementById('canalinaChoice2');\n    if (isModelloGrande()) {\n      if (cardsRow) cardsRow.style.display = 'none';\n      if (labelsRow) labelsRow.style.display = 'none';\n      if (fixed) fixed.style.display = 'block';\n      state.canalina = '35mm_standard';\n      state.canalinaLabel = canalinaLabels['35mm_standard'];\n      updateSchemaFori('35mm_standard');\n      if (card1) card1.classList.remove('selected');\n      if (card2) card2.classList.remove('selected');\n      document.querySelectorAll('#lavorazioneGrid .wa-radio-card').forEach(function(c) { c.classList.remove('selected'); });\n      state.profiloAlluminio = '';\n    } else {\n      if (cardsRow) cardsRow.style.display = 'grid';\n      if (labelsRow) labelsRow.style.display = '';\n      if (fixed) fixed.style.display = 'none';\n      if (card1) { card1.classList.remove('disabled'); card1.style.opacity = ''; card1.style.pointerEvents = ''; }\n      if (card2) { card2.classList.remove('disabled'); card2.style.opacity = ''; card2.style.pointerEvents = ''; }\n      var sel = document.querySelector('.wa-canalina-card.selected');\n      if (!sel && card1) selectCanalina(card1);\n    }\n  }\n  function selectCanalina(card) {\n    document.querySelectorAll('.wa-canalina-card').forEach(function(c) { c.classList.remove('selected'); });\n    card.classList.add('selected');\n    var val = card.getAttribute('data-value');\n    state.canalina = val;\n    state.canalinaLabel = canalinaLabels[val] || val;\n    updateSchemaFori(val);\n  }\n  function updateSchemaFori(val) {\n    var img = document.getElementById('schemaForiImg');\n    var cap = document.getElementById('schemaCaption');\n    if (img) img.src = foriImgs[val] || foriImgs['25mm'];\n    if (cap) cap.textContent = foriCaptions[val] || '';\n  }\n  function selectColor(card) {\n    if (card.classList.contains('disabled')) return;\n    document.querySelectorAll('.wa-color-card').forEach(function(c) { c.classList.remove('selected'); });\n    card.classList.add('selected');\n    state.colore = card.getAttribute('data-value');\n    hideError('errColor');\n    var wrap = document.getElementById('customColorWrap');\n    if (state.colore === 'altro') {\n      wrap.style.opacity = '1'; wrap.style.pointerEvents = 'auto';\n      document.getElementById('colorePersonalizzato').focus();\n    } else {\n      wrap.style.opacity = '0.4'; wrap.style.pointerEvents = 'none';\n      document.getElementById('colorePersonalizzato').value = '';\n    }\n  }\n  function selectCard(card, gridId) {\n    deselectAll('#' + gridId + ' .wa-radio-card');\n    card.classList.add('selected');\n    var errMap = { 'elementoGrid': 'errElemento', 'lavorazioneGrid': 'errProfilo' };\n    if (errMap[gridId]) hideError(errMap[gridId]);\n    if (gridId === 'lavorazioneGrid') {\n      toggleForiFields(card.getAttribute('data-value') === 'forato');\n    }\n    if (gridId === 'elementoGrid') {\n      updateM8Label();\n      updateConnectorImages();\n    }\n  }\n  function updateM8Label() {\n    var lbl = document.getElementById('m8Label');\n    if (!lbl) return;\n    var sel = document.querySelector('#elementoGrid .wa-radio-card.selected');\n    var v = sel ? sel.getAttribute('data-value') : '';\n    if (v === 'alta_sensibilita')      lbl.textContent = 'M8 2P male';\n    else if (v === 'standard')         lbl.textContent = 'M8 4P male';\n    else                               lbl.textContent = 'M8 male';\n  }\n  function updateConnectorImages() {\n    var sel = document.querySelector('#elementoGrid .wa-radio-card.selected');\n    var v = sel ? sel.getAttribute('data-value') : 'standard';\n    var nessunoImg = document.getElementById('nessunoImg');\n    var m8Img = document.getElementById('m8Img');\n    if (nessunoImg) nessunoImg.src = nessunoImgs[v] || nessunoImgs['standard'];\n    if (m8Img) m8Img.src = m8Imgs[v] || m8Imgs['standard'];\n    \/* \u2500\u2500 M12 and ILME not available for COE: hide and deselect if previously chosen \u2500\u2500 *\/\n    var isCOE = (v === 'alta_sensibilita');\n    var m12Card = document.getElementById('m12Card');\n    var ilmeCard = document.getElementById('ilmeCard');\n    if (m12Card) m12Card.style.display = isCOE ? 'none' : '';\n    if (ilmeCard) ilmeCard.style.display = isCOE ? 'none' : '';\n    if (isCOE) {\n      var selConn = document.querySelector('#connectorGrid .wa-cable-card.selected');\n      if (selConn) {\n        var vConn = selConn.getAttribute('data-value');\n        if (vConn === 'M12 4P male' || vConn === 'ILME CKM04') {\n          selConn.classList.remove('selected');\n          state.connettore = '';\n        }\n      }\n    }\n  }\n  function selectConnector(card) {\n    document.querySelectorAll('#connectorGrid .wa-cable-card').forEach(function(c) { c.classList.remove('selected'); });\n    card.classList.add('selected');\n    state.connettore = card.getAttribute('data-value');\n    hideError('errConnettore');\n    var wrap = document.getElementById('customConnectorWrap');\n    if (state.connettore === 'altro') {\n      wrap.style.display = 'block';\n      document.getElementById('connettorePersonalizzato').focus();\n    } else {\n      wrap.style.display = 'none';\n      document.getElementById('connettorePersonalizzato').value = '';\n      state.connettorePersonalizzato = '';\n    }\n  }\n  function toggleForiFields(enabled) {\n    ['primoForo', 'ultimoForo', 'numFori', 'passoFori', 'diamFori'].forEach(function(id) {\n      var el = document.getElementById(id);\n      if (el) {\n        el.disabled = !enabled;\n        if (!enabled) el.value = '';\n        var field = el.closest('.wa-field');\n        if (field) { field.style.opacity = enabled ? '1' : '0.4'; field.style.pointerEvents = enabled ? 'auto' : 'none'; }\n      }\n    });\n    var schemaBox = document.querySelector('.wa-schema-box');\n    if (schemaBox) schemaBox.style.opacity = enabled ? '1' : '0.4';\n  }\n  function selectCable(card) {\n    deselectAll('#cableGrid .wa-cable-card');\n    card.classList.add('selected');\n    state.posizioneCavo = card.getAttribute('data-value');\n    state.posizioneCavoImg = cableImgs[state.posizioneCavo] || '';\n    hideError('errCable');\n  }\n  function onSelectChange(sel) {\n    if (sel.value) sel.classList.add('has-value'); else sel.classList.remove('has-value');\n  }\n  function calcPasso() {\n    var l = parseFloat(document.getElementById('lunghezza').value) || 0;\n    var b = parseFloat(document.getElementById('primoForo').value) || 0;\n    var u = parseFloat(document.getElementById('ultimoForo').value) || 0;\n    var n = parseInt(document.getElementById('numFori').value) || 0;\n    var passoEl = document.getElementById('passoFori');\n    if (n > 1 && l > 0) {\n      var passo = (l - b - u) \/ (n - 1);\n      passoEl.value = passo > 0 ? passo.toFixed(1) : '';\n    } else { passoEl.value = ''; }\n    validateFori();\n  }\n  function setWarn(id, msg) {\n    var fieldId = id === 'passo' ? 'passoFori' : id;\n    var warnId = id === 'passo' ? 'warnPasso' : ('warn' + id.charAt(0).toUpperCase() + id.slice(1));\n    var el = document.getElementById(fieldId);\n    var field = el ? el.closest('.wa-field') : null;\n    var warnEl = document.getElementById(warnId);\n    if (!field) return;\n    if (msg) {\n      field.classList.add('warn');\n      if (warnEl) { warnEl.textContent = msg; warnEl.style.display = 'block'; }\n    } else {\n      field.classList.remove('warn');\n      if (warnEl) { warnEl.textContent = ''; warnEl.style.display = 'none'; }\n    }\n  }\n  var foriValid = true;\n  function validateFori() {\n    var profSel = document.querySelector('#lavorazioneGrid .wa-radio-card.selected');\n    var isForato = profSel && profSel.getAttribute('data-value') === 'forato';\n    if (!isForato) { foriValid = true; return; }\n    foriValid = true;\n    var l = parseFloat(document.getElementById('lunghezza').value) || 0;\n    var b = parseFloat(document.getElementById('primoForo').value) || 0;\n    var u = parseFloat(document.getElementById('ultimoForo').value) || 0;\n    var n = parseInt(document.getElementById('numFori').value) || 0;\n    var d = parseFloat(document.getElementById('diamFori').value) || 0;\n    var passo = parseFloat(document.getElementById('passoFori').value) || 0;\n    \/* -- warn helpers resets -- *\/\n    setWarn('primoForo', null); setWarn('ultimoForo', null);\n    setWarn('numFori', null); setWarn('diamFori', null); setWarn('passo', null);\n    \/* -- numFori = 1: disable ultimoForo and pitch -- *\/\n    var ultimoEl = document.getElementById('ultimoForo');\n    var ultimoField = ultimoEl ? ultimoEl.closest('.wa-field') : null;\n    if (n === 1) {\n      if (ultimoEl) { ultimoEl.value = ''; ultimoEl.disabled = true; }\n      if (ultimoField) { ultimoField.style.opacity = '0.4'; ultimoField.style.pointerEvents = 'none'; }\n    } else if (isForato) {\n      if (ultimoEl) ultimoEl.disabled = false;\n      if (ultimoField) { ultimoField.style.opacity = '1'; ultimoField.style.pointerEvents = 'auto'; }\n    }\n    if (n < 1) return;\n    \/* -- first B >= diameter\/2 -- *\/\n    if (d > 0 && b > 0 && b < d \/ 2) {\n      setWarn('primoForo', 'Min. ' + (d \/ 2).toFixed(1) + ' mm (\u00bd hole diameter)');\n      foriValid = false;\n    }\n    \/* -- last B >= diameter\/2 (only if n > 1) -- *\/\n    if (n > 1 && d > 0 && u > 0 && u < d \/ 2) {\n      setWarn('ultimoForo', 'Min. ' + (d \/ 2).toFixed(1) + ' mm (\u00bd hole diameter)');\n      foriValid = false;\n    }\n    \/* -- first B + last B < length -- *\/\n    if (l > 0 && b + u >= l) {\n      setWarn('primoForo', 'First + last distance (' + (b + u) + ') \u2265 length (' + l + ')');\n      foriValid = false;\n    }\n    \/* -- pitch > diameter (holes do not overlap) -- *\/\n    if (n > 1 && passo > 0 && d > 0 && passo < d) {\n      setWarn('passo', 'Pitch (' + passo.toFixed(1) + ') < diameter (' + d + '): overlapping holes');\n      foriValid = false;\n    }\n    \/* -- negative pitch -- *\/\n    if (n > 1 && passo <= 0 && l > 0) {\n      setWarn('passo', 'Negative or zero pitch: insufficient space for holes');\n      foriValid = false;\n    }\n    \/* -- usable zone -- *\/\n    if (n > 1 && l > 0 && d > 0) {\n      var zonaUtile = l - b - u;\n      var spazioMin = (n - 1) * d;\n      if (zonaUtile < spazioMin) {\n        setWarn('numFori', 'Too many holes: at least ' + spazioMin.toFixed(0) + ' mm needed, ' + zonaUtile.toFixed(0) + ' mm available');\n        foriValid = false;\n      }\n    }\n  }\n  function validateStep(n) {\n    var ok = true;\n    if (n === 1) {\n      if (!state.modello) { showError('errModel'); ok = false; }\n      if (!getVal('quantita')) { setFieldError('quantita', true); ok = false; } else { setFieldError('quantita', false); }\n      if (!state.colore) { showError('errColor'); ok = false; }\n      if (state.colore === 'altro' && !getVal('colorePersonalizzato')) { setFieldError('colorePersonalizzato', true); ok = false; }\n      if (!document.querySelector('#elementoGrid .wa-radio-card.selected')) { showError('errElemento'); ok = false; }\n    }\n    if (n === 2) {\n      var profSel = document.querySelector('#lavorazioneGrid .wa-radio-card.selected');\n      if (!profSel) { showError('errProfilo'); ok = false; }\n      var lungVal = parseFloat(getVal('lunghezza'));\n      if (!getVal('lunghezza') || lungVal < 50 || lungVal > 6000) { setFieldError('lunghezza', true); ok = false; } else { setFieldError('lunghezza', false); }\n      if (profSel && profSel.getAttribute('data-value') === 'forato') {\n        validateFori();\n        if (!foriValid) ok = false;\n        var nf = parseInt(getVal('numFori')) || 0;\n        var df = parseFloat(getVal('diamFori')) || 0;\n        if (nf < 1) { setWarn('numFori', 'Enter at least 1 hole'); ok = false; }\n        if (df < 2) { setWarn('diamFori', 'Enter diameter (min. 2 mm)'); ok = false; }\n        var bf = parseFloat(getVal('primoForo')) || 0;\n        if (bf <= 0) { setWarn('primoForo', 'Enter first hole distance'); ok = false; }\n        if (nf > 1) {\n          var uf = parseFloat(getVal('ultimoForo')) || 0;\n          if (uf <= 0) { setWarn('ultimoForo', 'Enter last hole distance'); ok = false; }\n        }\n      }\n    }\n    if (n === 3) {\n      if (!state.posizioneCavo) { showError('errCable'); ok = false; }\n      if (!state.connettore) { showError('errConnettore'); ok = false; }\n      if (state.connettore === 'altro' && !getVal('connettorePersonalizzato')) {\n        setFieldError('connettorePersonalizzato', true); ok = false;\n      } else {\n        setFieldError('connettorePersonalizzato', false);\n      }\n      var cavoVal = parseFloat(getVal('lunghezzaCavo'));\n      if (!getVal('lunghezzaCavo') || cavoVal < 200 || cavoVal > 25000) { setFieldError('lunghezzaCavo', true); ok = false; } else { setFieldError('lunghezzaCavo', false); }\n    }\n    return ok;\n  }\n  function getVal(id) { var el = document.getElementById(id); return el ? sanitize(el.value) : ''; }\n  function setFieldError(id, show) { var el = document.getElementById(id); if (el) { var f = el.closest('.wa-field'); if (f) { f.classList.toggle('error', show); var hint = f.querySelector('.hint'); if (hint) hint.style.color = show ? '#e74c3c' : '#adb5bd'; } } if (id === 'lunghezzaCavo') { var h = document.getElementById('hintCavo'); if (h) h.style.color = show ? '#e74c3c' : '#adb5bd'; } }\n  function showError(id) { var el = document.getElementById(id); if (el) el.classList.add('visible'); }\n  function hideError(id) { var el = document.getElementById(id); if (el) el.classList.remove('visible'); }\n  function deselectAll(sel) { document.querySelectorAll(sel).forEach(function(c) { c.classList.remove('selected'); }); }\n  function collectStepData(n) {\n    if (n === 1) {\n      state.quantita = getVal('quantita');\n      state.colorePersonalizzato = getVal('colorePersonalizzato');\n      var elemCard = document.querySelector('#elementoGrid .wa-radio-card.selected');\n      state.elemento = elemCard ? elemCard.getAttribute('data-value') : '';\n    }\n    if (n === 2) {\n      var profCard = document.querySelector('#lavorazioneGrid .wa-radio-card.selected');\n      state.profiloAlluminio = profCard ? profCard.getAttribute('data-value') : '';\n      state.lunghezza = getVal('lunghezza');\n      state.primoForo = getVal('primoForo');\n      state.ultimoForo = getVal('ultimoForo');\n      state.numFori = getVal('numFori');\n      state.passoFori = getVal('passoFori');\n      state.diamFori = getVal('diamFori');\n    }\n    if (n === 3) {\n      state.connettorePersonalizzato = getVal('connettorePersonalizzato');\n      state.lunghezzaCavo = getVal('lunghezzaCavo');\n    }\n  }\n  function getColorDisplay() {\n    if (state.colore === 'altro') return state.colorePersonalizzato;\n    if (state.colore === 'nero') return 'Black';\n    if (state.colore === 'giallo') return 'Yellow';\n    return state.colore;\n  }\n  function getConnettoreDisplay() {\n    if (state.connettore === 'altro' && state.connettorePersonalizzato) {\n      return 'Other: ' + state.connettorePersonalizzato;\n    }\n    if (state.connettore === 'nessuno') return 'Bare wire end';\n    if (state.connettore === 'M8 male') {\n      var pol = state.elemento === 'alta_sensibilita' ? '2P' : '4P';\n      return 'M8 ' + pol + ' male';\n    }\n    return state.connettore;\n  }\n  function buildRiepilogo() {\n    var grid = document.getElementById('riepilogoGrid');\n    var coloreDisplay = getColorDisplay();\n    var elemDisplay = state.elemento === 'alta_sensibilita' ? 'High sensitivity' : 'Standard';\n    var profDisplay = state.profiloAlluminio === 'forato' ? 'Drilled' : 'Unmachined';\n    var foriStr = '';\n    if (state.numFori && parseInt(state.numFori) > 0) {\n      foriStr = state.numFori + ' holes';\n      if (state.passoFori) foriStr += ', pitch ' + state.passoFori + 'mm';\n      if (state.diamFori) foriStr += ', \u00d8' + state.diamFori + 'mm';\n    } else { foriStr = 'No holes'; }\n    var cavoDisplay = (state.posizioneCavo === 'laterale' ? 'Lateral cable exit' : 'Standard cable exit') + ' \u2014 ' + getConnettoreDisplay() + ' \u2014 ' + state.lunghezzaCavo + 'mm';\n    var rows = [\n      ['Model', state.modello], ['Quantity', state.quantita + ' pcs'], ['Color', coloreDisplay],\n      ['Sensitive element', elemDisplay], ['Support guide', state.canalinaLabel], ['Guide machining', profDisplay],\n      ['Length', state.lunghezza + ' mm'], ['Holes', foriStr], ['Cable', cavoDisplay]\n    ];\n    grid.innerHTML = '';\n    rows.forEach(function(r) {\n      var lbl = document.createElement('span'); lbl.className = 'lbl'; lbl.textContent = r[0] + ':';\n      var val = document.createElement('span'); val.className = 'val'; val.textContent = r[1];\n      grid.appendChild(lbl); grid.appendChild(val);\n    });\n  }\n  function submit() {\n    waSignal('wa:cfg-attempt');\n    \/* \u2500\u2500 anti-bot checks \u2500\u2500 *\/\n    if (!checkHoneypot()) { waSignal('wa:cfg-result', 'honeypot'); console.warn('Bot detected (honeypot)'); return; }\n    if (!checkTiming()) { waSignal('wa:cfg-result', 'timing'); alert('Form submitted too fast. Please try again in a few seconds.'); return; }\n    if (!checkRateLimit()) { waSignal('wa:cfg-result', 'rate_limit'); alert('Too many submissions. Please wait a few seconds.'); return; }\n    \/\/ HARDENING: Turnstile check, same treatment as the other anti-bot checks.\n    if (!checkTurnstile()) {\n      waSignal('wa:cfg-result', 'turnstile');\n      alert('Anti-spam verification not completed. Please wait for the widget to load and try again.');\n      return;\n    }\n    state.azienda = getVal('azienda'); state.referente = getVal('referente');\n    state.email = getVal('email'); state.telefono = getVal('telefono');\n    state.indirizzo = getVal('indirizzo'); state.note = getVal('note');\n    var ok = true;\n    if (!state.azienda) { setFieldError('azienda', true); ok = false; } else { setFieldError('azienda', false); }\n    if (!state.referente) { setFieldError('referente', true); ok = false; } else { setFieldError('referente', false); }\n    if (!state.email || !state.email.match(\/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/)) { setFieldError('email', true); ok = false; } else { setFieldError('email', false); }\n    if (!document.getElementById('privacy').checked) { showError('errPrivacy'); ok = false; } else { hideError('errPrivacy'); }\n    if (!ok) { waSignal('wa:cfg-result', 'validation'); return; }\n    _lastSubmitTime = Date.now();\n    _submitCount++;\n    document.getElementById('loading').classList.add('visible');\n    waitForJsPDF(function() {\n      loadAllImages().then(function(imgs) {\n        try {\n          var pdfBase64 = generatePDF(imgs);\n          sendToBackend(pdfBase64);\n        } catch (e) {\n          waSignal('wa:cfg-result', 'pdf');\n          console.error('PDF error:', e);\n          document.getElementById('loading').classList.remove('visible');\n          alert(e.message || 'Error generating quote.');\n        }\n      }).catch(function() {\n        try { var pdfBase64 = generatePDF({}); sendToBackend(pdfBase64); }\n        catch (e) { waSignal('wa:cfg-result', 'pdf'); document.getElementById('loading').classList.remove('visible'); alert(e.message || 'Error.'); }\n      });\n    });\n  }\n  function waitForJsPDF(callback) {\n    var attempts = 0;\n    function check() {\n      if (window.jspdf && window.jspdf.jsPDF) { callback(); }\n      else if (attempts < 40) { attempts++; setTimeout(check, 250); }\n      else { waSignal('wa:cfg-result', 'pdf'); document.getElementById('loading').classList.remove('visible'); alert('Unable to load PDF library. Please reload the page.'); }\n    }\n    check();\n  }\n  function loadImage(url) {\n    return new Promise(function(resolve) {\n      if (!url) { resolve(null); return; }\n      var img = new Image();\n      img.crossOrigin = 'Anonymous';\n      img.onload = function() {\n        var c = document.createElement('canvas');\n        c.width = img.naturalWidth; c.height = img.naturalHeight;\n        c.getContext('2d').drawImage(img, 0, 0);\n        try { resolve({ data: c.toDataURL('image\/png'), w: img.naturalWidth, h: img.naturalHeight }); }\n        catch(e) { resolve(null); }\n      };\n      img.onerror = function() { resolve(null); };\n      img.src = url;\n    });\n  }\n  function loadAllImages() {\n    var logoUrl = 'https:\/\/cdn1.wideautomation.com\/media\/uploads\/2018\/12\/01221256\/WIDE_oriz_web_high-e1554216522272.png';\n    return Promise.all([\n      loadImage(logoUrl),\n      loadImage(state.modelloImg || null),\n      loadImage(foriImgs[state.canalina] || null),\n      loadImage(cableImgs[state.posizioneCavo] || null),\n      loadImage(canalinaImgs[state.canalina] || null)\n    ]).then(function(r) {\n      return { logo: r[0], model: r[1], schema: r[2], cable: r[3], canalina: r[4] };\n    });\n  }\n  function generatePDF(imgs) {\n    if (!imgs) imgs = {};\n    var jsPDF = window.jspdf.jsPDF;\n    var doc = new jsPDF('p', 'mm', 'a4');\n    var W = 210, M = 15, CW = W - M * 2, y = 8;\n    var BLUE = [26, 82, 118], GOLD = [196, 144, 0], DARK = [30, 30, 30];\n    var GRAY = [120, 120, 120], LGRAY = [245, 247, 250], ORANGE = [255, 102, 0];\n    var sx = M + 62, vx = sx + 50;\n    function fitImg(io, x, iy, mw, mh) {\n      if (!io || !io.data) return;\n      var r = io.w \/ io.h, dw = mw, dh = dw \/ r;\n      if (dh > mh) { dh = mh; dw = dh * r; }\n      doc.addImage(io.data, 'PNG', x, iy, dw, dh, undefined, 'FAST');\n    }\n    function fitImgCentered(io, cx, cy, mw, mh) {\n      if (!io || !io.data) return;\n      var r = io.w \/ io.h, dw = mw, dh = dw \/ r;\n      if (dh > mh) { dh = mh; dw = dh * r; }\n      var ix = cx - dw \/ 2, iy = cy - dh \/ 2;\n      doc.addImage(io.data, 'PNG', ix, iy, dw, dh, undefined, 'FAST');\n    }\n    function fill(x, fy, w, h, c) {\n      doc.setFillColor(c[0], c[1], c[2]); doc.rect(x, fy, w, h, 'F');\n    }\n    function sBar(by, text) {\n      fill(M, by, CW, 7, [248, 249, 252]);\n      doc.setFontSize(8); doc.setFont('helvetica', 'bold'); doc.setTextColor(BLUE[0], BLUE[1], BLUE[2]);\n      doc.text(text.toUpperCase(), M + 4, by + 5);\n      return by + 11;\n    }\n    function gTitle(gy, text) {\n      doc.setFontSize(9); doc.setFont('helvetica', 'bold'); doc.setTextColor(GOLD[0], GOLD[1], GOLD[2]);\n      doc.text(text, M + 4, gy);\n      return gy + 1;\n    }\n    function lv(ly, label, value) {\n      doc.setFontSize(8); doc.setFont('helvetica', 'normal'); doc.setTextColor(GRAY[0], GRAY[1], GRAY[2]);\n      doc.text(label, sx, ly);\n      doc.setTextColor(DARK[0], DARK[1], DARK[2]); doc.text(String(value || '-'), vx, ly);\n      return ly + 5;\n    }\n    function boldLine(bx, by, label, value) {\n      doc.setFontSize(8.5); doc.setFont('helvetica', 'bold'); doc.setTextColor(DARK[0], DARK[1], DARK[2]);\n      doc.text(label, bx, by);\n      doc.setFont('helvetica', 'normal'); doc.text(String(value || ''), bx + 22, by);\n    }\n    if (imgs.logo) {\n      var lr = imgs.logo.w \/ imgs.logo.h, lw = 48, lh = lw \/ lr;\n      doc.addImage(imgs.logo.data, 'PNG', (W - lw) \/ 2, y, lw, lh, undefined, 'FAST');\n      y += lh + 6;\n    } else {\n      doc.setFontSize(16); doc.setFont('helvetica', 'bold'); doc.setTextColor(ORANGE[0], ORANGE[1], ORANGE[2]);\n      doc.text('Wide Automation', W \/ 2, y + 8, { align: 'center' }); y += 17;\n    }\n    doc.setFontSize(14); doc.setFont('helvetica', 'bold'); doc.setTextColor(BLUE[0], BLUE[1], BLUE[2]);\n    doc.text('Configuration ' + state.modello + ' for ' + state.referente, W \/ 2, y, { align: 'center' }); y += 5;\n    doc.setFontSize(8); doc.setFont('helvetica', 'normal'); doc.setTextColor(160, 160, 160);\n    doc.text('Wide Automation S.r.l. \u2014 Safety Edges Configurator', W \/ 2, y, { align: 'center' }); y += 4;\n    doc.setDrawColor(230, 230, 230); doc.setLineWidth(0.3);\n    doc.line(M + 20, y, W - M - 20, y); y += 6;\n    var datiH = state.indirizzo ? 30 : 26;\n    fill(M, y, CW, datiH, LGRAY);\n    doc.setFontSize(10); doc.setFont('helvetica', 'bold'); doc.setTextColor(GOLD[0], GOLD[1], GOLD[2]);\n    doc.text('Company Details', M + 6, y + 6);\n    var dy = y + 12;\n    boldLine(M + 6, dy, 'Company:', state.azienda); dy += 4.5;\n    boldLine(M + 6, dy, 'Contact:', state.referente); dy += 4.5;\n    var contactStr = state.email;\n    if (state.telefono) contactStr += '  |  Phone: ' + state.telefono;\n    boldLine(M + 6, dy, 'Email:', contactStr); dy += 4.5;\n    if (state.indirizzo) { boldLine(M + 6, dy, 'Address:', state.indirizzo); }\n    y += datiH + 3;\n    doc.setFontSize(10); doc.setFont('helvetica', 'bold'); doc.setTextColor(DARK[0], DARK[1], DARK[2]);\n    doc.text('Quantity:', M + 6, y + 4);\n    doc.setFontSize(13); doc.setTextColor(BLUE[0], BLUE[1], BLUE[2]);\n    doc.text(state.quantita + ' pcs', M + 28, y + 4); y += 10;\n    y = sBar(y, 'TECHNICAL CONFIGURATION');\n    y = gTitle(y, 'MODEL AND SPECIFICATIONS');\n    var hasModelImg = imgs.model && imgs.model.data;\n    var hasCanalinaImg = imgs.canalina && imgs.canalina.data;\n    \/* \u2500\u2500 side-by-side images row, same height, bottom-aligned \u2500\u2500 *\/\n    var targetH = 35;\n    var imgRowY = y;\n    var gap = 14;\n    if (hasModelImg || hasCanalinaImg) {\n      function calcDims(io, mxW) {\n        var r = io.w \/ io.h, dh = targetH, dw = dh * r;\n        if (dw > mxW) { dw = mxW; dh = dw \/ r; }\n        return { w: dw, h: dh };\n      }\n      var mD = hasModelImg ? calcDims(imgs.model, 70) : null;\n      var cD = hasCanalinaImg ? calcDims(imgs.canalina, 40) : null;\n      var rowH = Math.max(mD ? mD.h : 0, cD ? cD.h : 0);\n      var baseY = imgRowY + rowH;\n      if (hasModelImg && hasCanalinaImg) {\n        var totalW = mD.w + gap + cD.w;\n        var startX = M + (CW - totalW) \/ 2;\n        doc.addImage(imgs.model.data, 'PNG', startX, baseY - mD.h, mD.w, mD.h, undefined, 'FAST');\n        doc.addImage(imgs.canalina.data, 'PNG', startX + mD.w + gap, baseY - cD.h, cD.w, cD.h, undefined, 'FAST');\n      } else if (hasModelImg) {\n        doc.addImage(imgs.model.data, 'PNG', M + (CW - mD.w) \/ 2, baseY - mD.h, mD.w, mD.h, undefined, 'FAST');\n      } else {\n        doc.addImage(imgs.canalina.data, 'PNG', M + (CW - cD.w) \/ 2, baseY - cD.h, cD.w, cD.h, undefined, 'FAST');\n      }\n      y = baseY + 3;\n    }\n    \/* \u2500\u2500 labels below the images \u2500\u2500 *\/\n    var colD = getColorDisplay();\n    var elemD = state.elemento === 'alta_sensibilita' ? 'High Sensitivity' : 'Standard';\n    var profD = state.profiloAlluminio === 'forato' ? 'Drilled' : 'Unmachined';\n    var sy = y + 1;\n    sy = lv(sy, 'Model', state.modello);\n    sy = lv(sy, 'Color', colD);\n    sy = lv(sy, 'Sensitive Element', elemD);\n    sy = lv(sy, 'Support Guide', state.canalinaLabel);\n    sy = lv(sy, 'Guide Machining', profD);\n    y = sy + 2;\n    doc.setDrawColor(220, 220, 220); doc.setLineWidth(0.2);\n    doc.line(M + 2, y, W - M - 2, y); y += 3;\n    y = gTitle(y, 'DIMENSIONS AND HOLES');\n    var hasSchemaImg = imgs.schema && imgs.schema.data;\n    if (hasSchemaImg) {\n      fitImg(imgs.schema, M + 4, y, CW - 8, 24);\n      y += 26;\n    }\n    var fy = y;\n    fy = lv(fy, 'Overall Length [A]', state.lunghezza + ' mm');\n    fy = lv(fy, 'First Hole Distance [B]', (state.primoForo || 'N\/A') + ' mm');\n    fy = lv(fy, 'Last Hole Distance', (state.ultimoForo || 'N\/A') + ' mm');\n    fy = lv(fy, 'Number of Holes', state.numFori || '0');\n    fy = lv(fy, 'Hole Diameter', (state.diamFori || 'N\/A') + ' mm');\n    var pt = (state.passoFori || 'N\/A') + ' mm';\n    fy = lv(fy, 'Hole Pitch [C]', pt);\n    if (state.passoFori) {\n      doc.setFontSize(8); var ptw = doc.getTextWidth(pt);\n      doc.setFontSize(6); doc.setFont('helvetica', 'bold'); doc.setTextColor(ORANGE[0], ORANGE[1], ORANGE[2]);\n      doc.text('AUTO', vx + ptw + 2, fy - 5);\n    }\n    y = fy + 4;\n    y = sBar(y, 'CABLE AND CONNECTOR');\n    var cvy = y;\n    var hasCableImg = imgs.cable && imgs.cable.data;\n    if (hasCableImg) { fitImg(imgs.cable, M + 4, cvy, 40, 24); }\n    var posD = state.posizioneCavo === 'laterale' ? 'Lateral cable exit' : 'Standard cable exit';\n    var cy = cvy + 4;\n    cy = lv(cy, 'Cable Exit Position', posD);\n    cy = lv(cy, 'Cable Length', state.lunghezzaCavo + ' mm');\n    cy = lv(cy, 'Connector Type', getConnettoreDisplay());\n    var cableEndY = hasCableImg ? cvy + 26 : cy + 2;\n    y = Math.max(cableEndY, cy + 2); y += 2;\n    var footerY = 282;\n    var privacyY = footerY - 6;\n    var noteBoxEnd = privacyY - 3;\n    var noteH = noteBoxEnd - y;\n    if (noteH < 14) noteH = 14;\n    if (y + noteH > noteBoxEnd) noteH = Math.max(14, noteBoxEnd - y);\n    fill(M, y, CW, noteH, LGRAY);\n    doc.setFontSize(9); doc.setFont('helvetica', 'bold'); doc.setTextColor(GOLD[0], GOLD[1], GOLD[2]);\n    doc.text('Notes and Special Machining', M + 6, y + 5.5);\n    var noteRest = [];\n    if (state.note) {\n      doc.setFontSize(8); doc.setFont('helvetica', 'normal'); doc.setTextColor(DARK[0], DARK[1], DARK[2]);\n      var noteLines = doc.splitTextToSize(state.note, CW - 14);\n      var maxNoteLines = Math.floor((noteH - 10) \/ 4);\n      noteRest = noteLines.slice(Math.max(0, maxNoteLines));\n      noteLines = noteLines.slice(0, Math.max(0, maxNoteLines));\n      if (noteLines.length) doc.text(noteLines, M + 6, y + 11);\n    }\n    doc.setFontSize(6.5); doc.setFont('helvetica', 'bold'); doc.setTextColor(DARK[0], DARK[1], DARK[2]);\n    doc.text('Privacy:', M, privacyY);\n    doc.setFont('helvetica', 'normal'); doc.setTextColor(GRAY[0], GRAY[1], GRAY[2]);\n    doc.text(' The customer has accepted personal data processing according to the Privacy Policy', M + doc.getTextWidth('Privacy:'), privacyY);\n    \/\/ Pagine di continuazione solo se le note non entrano nella prima pagina (stesso stile del riquadro note).\n    var contTop = 24, contLines = Math.floor((noteBoxEnd - contTop - 11) \/ 4);\n    var totPages = 1 + (noteRest.length ? Math.ceil(noteRest.length \/ contLines) : 0);\n    function pageFooter(pn) {\n      doc.setDrawColor(220, 220, 220); doc.setLineWidth(0.3);\n      doc.line(M, footerY, W - M, footerY);\n      doc.setFontSize(7); doc.setFont('helvetica', 'normal'); doc.setTextColor(180, 180, 180);\n      doc.text('Wide Automation Srl \u2014 Automatically generated document', M, footerY + 5);\n      var site = 'www.wideautomation.com';\n      var right = site + '  |  Ref: ' + state.ref + '  |  ' + new Date().toLocaleDateString('en-GB') + (totPages > 1 ? '  |  Page ' + pn + '\/' + totPages : '');\n      var ry = (doc.getTextWidth('Wide Automation Srl \u2014 Automatically generated document') + doc.getTextWidth(right) + 6 > CW) ? footerY + 9 : footerY + 5;\n      doc.text(right, W - M, ry, { align: 'right' });\n      doc.link(W - M - doc.getTextWidth(right), ry - 3, doc.getTextWidth(site), 4, { url: 'https:\/\/www.wideautomation.com' });\n    }\n    pageFooter(1);\n    for (var pg = 2; pg <= totPages; pg++) {\n      doc.addPage();\n      doc.setFontSize(9); doc.setFont('helvetica', 'bold'); doc.setTextColor(GOLD[0], GOLD[1], GOLD[2]);\n      doc.text('Notes and Special Machining \u2014 continued', M + 6, 15);\n      doc.setFontSize(8); doc.setFont('helvetica', 'normal'); doc.setTextColor(GRAY[0], GRAY[1], GRAY[2]);\n      doc.text('Ref: ' + state.ref, M + 6, 20);\n      fill(M, contTop, CW, noteBoxEnd - contTop, LGRAY);\n      doc.setFontSize(8); doc.setFont('helvetica', 'normal'); doc.setTextColor(DARK[0], DARK[1], DARK[2]);\n      doc.text(noteRest.slice((pg - 2) * contLines, (pg - 1) * contLines), M + 6, contTop + 7);\n      pageFooter(pg);\n    }\n    return doc.output('datauristring').split(',')[1];\n  }\n  function sendToBackend(pdfBase64) {\n    \/* sanitize all string fields in state before sending *\/\n    var safeState = {};\n    Object.keys(state).forEach(function(k) {\n      safeState[k] = typeof state[k] === 'string' ? sanitize(state[k]) : state[k];\n    });\n    var payload = {\n      ref: safeState.ref,\n      data: safeState,\n      pdf: pdfBase64,\n      _t: Date.now() - _formLoadTime,\n      _sc: _submitCount,\n      turnstileToken: _turnstileToken \/\/ HARDENING: only new field in the payload\n    };\n    var WEBHOOK_URL = 'https:\/\/www.wideautomation.com\/wp-json\/wa\/v1\/send-config';\n    fetch(WEBHOOK_URL, { method: 'POST', headers: { 'Content-Type': 'application\/json' }, body: JSON.stringify(payload) })\n    .then(function(response) {\n      return response.text().then(function(txt) { return { ok: response.ok, txt: txt }; },\n                                  function(err) { return { net: true, err: err }; });\n    }, function(err) { return { net: true, err: err }; })\n    .then(function(r) {\n      document.getElementById('loading').classList.remove('visible');\n      if (r.net) {\n        waSignal('wa:cfg-result', 'network');\n        console.error('Submission error:', r.err);\n        alert('Submission error. Please try again.');\n        resetTurnstile(); \/\/ HARDENING\n        return;\n      }\n      var result; try { result = JSON.parse(r.txt); } catch (e) { result = undefined; }\n      var isObj = !!result && typeof result === 'object' && !Array.isArray(result);\n      if (r.ok && isObj && result.success) { showSuccess(); return; }\n      waSignal('wa:cfg-result', !r.ok ? 'server_http' : (isObj ? 'server_rejected' : 'server_json'));\n      if (isObj) {\n        console.error('Server error:', result.error);\n        alert('Error: ' + (result.error || 'Please try again.'));\n      } else {\n        console.error('Server error:', 'risposta non valida');\n        alert('Submission error. Please try again.');\n      }\n      resetTurnstile(); \/\/ HARDENING\n    });\n  }\n  function showSuccess() {\n    for (var i = 1; i <= 4; i++) { var p = document.getElementById('panel' + i); if (p) p.classList.remove('visible'); }\n    document.getElementById('successMsg').classList.add('visible');\n    document.getElementById('refCode').textContent = 'Reference: ' + state.ref;\n    document.querySelectorAll('.wa-step').forEach(function(s) { s.classList.remove('active'); s.classList.add('done'); });\n  }\n  function initStepperClicks() {\n    document.querySelectorAll('.wa-step').forEach(function(s) {\n      s.addEventListener('click', function() {\n        var n = parseInt(s.getAttribute('data-step'));\n        if (n < state.step) showPanel(n);\n      });\n    });\n  }\n  document.addEventListener('DOMContentLoaded', function() {\n    init();\n    initStepperClicks();\n    ['lunghezza', 'primoForo', 'ultimoForo', 'numFori', 'diamFori'].forEach(function(id) {\n      var el = document.getElementById(id);\n      if (el) el.addEventListener('input', calcPasso);\n    });\n  });\n  return {\n    selectModel: selectModel, selectColor: selectColor, selectCard: selectCard,\n    selectCanalina: selectCanalina, selectCable: selectCable, selectConnector: selectConnector, onSelectChange: onSelectChange,\n    calcPasso: calcPasso, nextStep: nextStep, prevStep: prevStep, submit: submit\n  };\n})();\n<\/script><div class=\"fusion-text fusion-text-2\"><p style=\"text-align: center;\"><span style=\"font-size: 14px; color: #c0c0c0;\">Having problems? Download the <span style=\"text-decoration: underline;\"><a style=\"color: #c0c0c0; text-decoration: underline;\" href=\"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2026\/04\/30125844\/safety_edges_configurator_EN_300426.pdf\" target=\"_blank\" rel=\"noopener\">fillable PDF version<\/a><\/span>.<\/span><\/p>\n<\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"100-width.php","meta":{"footnotes":""},"class_list":["post-29304","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Sensitive edges configurator &#8211; WIDE Automation<\/title>\n<meta name=\"description\" content=\"Configure your custom sensitive edge online in four steps: profile, channel, cable and contact details. You receive a detailed quote within 2 days.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sensitive edges configurator &#8211; WIDE Automation\" \/>\n<meta property=\"og:description\" content=\"Configure your custom sensitive edge online in four steps: profile, channel, cable and contact details. You receive a detailed quote within 2 days.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/\" \/>\n<meta property=\"og:site_name\" content=\"WIDE Automation\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wideautomation\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-07T15:38:12+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wideautomation\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/sensitive-edges-configurator\\\/\",\"url\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/sensitive-edges-configurator\\\/\",\"name\":\"Sensitive edges configurator &#8211; WIDE Automation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/#website\"},\"datePublished\":\"2025-08-27T18:44:08+00:00\",\"dateModified\":\"2026-09-07T15:38:12+00:00\",\"description\":\"Configure your custom sensitive edge online in four steps: profile, channel, cable and contact details. You receive a detailed quote within 2 days.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/sensitive-edges-configurator\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/sensitive-edges-configurator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/sensitive-edges-configurator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sensitive edges configurator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/\",\"name\":\"WIDE Automation\",\"description\":\"Industrial Automation and Machine Safety\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/#organization\",\"name\":\"WIDE Automation\",\"url\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn1.wideautomation.com\\\/media\\\/uploads\\\/2018\\\/07\\\/01230055\\\/WIDE_favicon.png\",\"contentUrl\":\"https:\\\/\\\/cdn1.wideautomation.com\\\/media\\\/uploads\\\/2018\\\/07\\\/01230055\\\/WIDE_favicon.png\",\"width\":579,\"height\":579,\"caption\":\"WIDE Automation\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wideautomation.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/wideautomation\\\/\",\"https:\\\/\\\/x.com\\\/wideautomation\",\"https:\\\/\\\/www.instagram.com\\\/wideautomation\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wideautomation\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UChAVD04YAodNLwzozxaY3aQ\"],\"description\":\"WIDE Automation develops and manufactures safety devices and motion control solutions configured around the application.\",\"legalName\":\"WIDE Automation S.r.l.\",\"vatID\":\"IT03235230400\",\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"Via Malpasso 1340\",\"addressLocality\":\"San Giovanni in Marignano\",\"addressRegion\":\"RN\",\"postalCode\":\"47842\",\"addressCountry\":\"IT\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sensitive edges configurator &#8211; WIDE Automation","description":"Configure your custom sensitive edge online in four steps: profile, channel, cable and contact details. You receive a detailed quote within 2 days.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/","og_locale":"en_US","og_type":"article","og_title":"Sensitive edges configurator &#8211; WIDE Automation","og_description":"Configure your custom sensitive edge online in four steps: profile, channel, cable and contact details. You receive a detailed quote within 2 days.","og_url":"https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/","og_site_name":"WIDE Automation","article_publisher":"https:\/\/www.facebook.com\/wideautomation\/","article_modified_time":"2026-09-07T15:38:12+00:00","twitter_card":"summary_large_image","twitter_site":"@wideautomation","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/","url":"https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/","name":"Sensitive edges configurator &#8211; WIDE Automation","isPartOf":{"@id":"https:\/\/www.wideautomation.com\/en\/#website"},"datePublished":"2025-08-27T18:44:08+00:00","dateModified":"2026-09-07T15:38:12+00:00","description":"Configure your custom sensitive edge online in four steps: profile, channel, cable and contact details. You receive a detailed quote within 2 days.","breadcrumb":{"@id":"https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wideautomation.com\/en\/sensitive-edges-configurator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wideautomation.com\/en\/"},{"@type":"ListItem","position":2,"name":"Sensitive edges configurator"}]},{"@type":"WebSite","@id":"https:\/\/www.wideautomation.com\/en\/#website","url":"https:\/\/www.wideautomation.com\/en\/","name":"WIDE Automation","description":"Industrial Automation and Machine Safety","publisher":{"@id":"https:\/\/www.wideautomation.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wideautomation.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wideautomation.com\/en\/#organization","name":"WIDE Automation","url":"https:\/\/www.wideautomation.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wideautomation.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2018\/07\/01230055\/WIDE_favicon.png","contentUrl":"https:\/\/cdn1.wideautomation.com\/media\/uploads\/2018\/07\/01230055\/WIDE_favicon.png","width":579,"height":579,"caption":"WIDE Automation"},"image":{"@id":"https:\/\/www.wideautomation.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/wideautomation\/","https:\/\/x.com\/wideautomation","https:\/\/www.instagram.com\/wideautomation","https:\/\/www.linkedin.com\/company\/wideautomation\/","https:\/\/www.youtube.com\/channel\/UChAVD04YAodNLwzozxaY3aQ"],"description":"WIDE Automation develops and manufactures safety devices and motion control solutions configured around the application.","legalName":"WIDE Automation S.r.l.","vatID":"IT03235230400","address":{"@type":"PostalAddress","streetAddress":"Via Malpasso 1340","addressLocality":"San Giovanni in Marignano","addressRegion":"RN","postalCode":"47842","addressCountry":"IT"}}]}},"_links":{"self":[{"href":"https:\/\/www.wideautomation.com\/en\/wp-json\/wp\/v2\/pages\/29304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wideautomation.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wideautomation.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wideautomation.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wideautomation.com\/en\/wp-json\/wp\/v2\/comments?post=29304"}],"version-history":[{"count":15,"href":"https:\/\/www.wideautomation.com\/en\/wp-json\/wp\/v2\/pages\/29304\/revisions"}],"predecessor-version":[{"id":30784,"href":"https:\/\/www.wideautomation.com\/en\/wp-json\/wp\/v2\/pages\/29304\/revisions\/30784"}],"wp:attachment":[{"href":"https:\/\/www.wideautomation.com\/en\/wp-json\/wp\/v2\/media?parent=29304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}