Repository navigation
Expand file tree
/
Copy pathanalysis_toolkit.html
More file actions
1208 lines (1086 loc) · 63.8 KB
/
Copy pathanalysis_toolkit.html
File metadata and controls
1208 lines (1086 loc) · 63.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Analisi Avanzata & Toolkit Operativo - AI Distribuita in Sanità</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #2c5aa0;
--secondary-color: #34c759;
--accent-color: #ff9500;
--text-color: #333;
--bg-color: #f8f9fa;
--card-bg: #ffffff;
--border-color: #e9ecef;
--tech-color: #3b82f6;
--eco-color: #10b981;
--legal-color: #f97316;
--ethics-color: #8b5cf6;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
}
.header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 3rem 0;
text-align: center;
}
.header h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 3rem 2rem;
}
.section-card {
background: var(--card-bg);
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
margin-bottom: 3rem;
overflow: hidden;
}
.section-header {
background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
padding: 2rem;
border-bottom: 1px solid var(--border-color);
}
.section-title {
font-size: 1.8rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.section-content {
padding: 2rem;
}
.framework-3d-container {
width: 100%;
height: 600px;
display: flex;
justify-content: center;
align-items: center;
background: #f8fafc;
border-radius: 12px;
margin-bottom: 2rem;
}
.controls-panel {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.control-group {
background: white;
padding: 1rem;
border-radius: 8px;
border: 1px solid var(--border-color);
min-width: 200px;
}
.control-label {
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--text-color);
}
.slider {
width: 100%;
height: 4px;
border-radius: 2px;
background: #ddd;
outline: none;
}
.tabs-container {
display: flex;
border-bottom: 2px solid var(--border-color);
margin-bottom: 2rem;
}
.tab {
padding: 1rem 2rem;
cursor: pointer;
border: none;
background: none;
font-weight: 600;
color: #666;
transition: all 0.3s ease;
}
.tab.active {
color: var(--primary-color);
border-bottom: 3px solid var(--primary-color);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.analysis-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.analysis-item {
background: white;
padding: 1.5rem;
border-radius: 12px;
border-left: 4px solid var(--tech-color);
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.analysis-item.eco { border-left-color: var(--eco-color); }
.analysis-item.legal { border-left-color: var(--legal-color); }
.analysis-item.ethics { border-left-color: var(--ethics-color); }
.heatmap-container {
width: 100%;
height: 400px;
display: flex;
justify-content: center;
align-items: center;
background: #f8fafc;
border-radius: 12px;
margin-bottom: 2rem;
}
.toolkit-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
}
.toolkit-item {
background: white;
border-radius: 12px;
border: 1px solid var(--border-color);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.toolkit-item:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.toolkit-header {
padding: 1.5rem;
background: linear-gradient(135deg, #f8fafc, #e2e8f0);
border-bottom: 1px solid var(--border-color);
}
.toolkit-title {
font-size: 1.2rem;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.toolkit-content {
padding: 1.5rem;
}
.btn {
display: inline-block;
padding: 0.8rem 1.5rem;
border-radius: 8px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
cursor: pointer;
border: none;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: #1e4080;
transform: translateY(-1px);
}
.simulation-container {
background: linear-gradient(135deg, #f0f9ff, #fef3c7);
border-radius: 16px;
padding: 2rem;
margin-top: 2rem;
}
.scenario-form {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.form-group {
background: white;
padding: 1rem;
border-radius: 8px;
border: 1px solid var(--border-color);
}
.form-label {
font-weight: 600;
margin-bottom: 0.5rem;
display: block;
}
.form-control {
width: 100%;
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 0.9rem;
}
.results-panel {
background: white;
border-radius: 12px;
padding: 2rem;
border: 1px solid var(--border-color);
}
.metric-card {
background: #f8fafc;
padding: 1rem;
border-radius: 8px;
margin-bottom: 1rem;
border-left: 4px solid var(--secondary-color);
}
.metric-title {
font-weight: 600;
color: var(--text-color);
margin-bottom: 0.5rem;
}
.metric-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--secondary-color);
}
@media (max-width: 768px) {
.container { padding: 2rem 1rem; }
.header h1 { font-size: 2rem; }
.controls-panel { flex-direction: column; }
.tabs-container { flex-wrap: wrap; }
}
</style>
</head>
<body>
<header class="header">
<h1><i class="fas fa-microscope"></i> Analisi Avanzata & Toolkit Operativo</h1>
<p>Strumenti integrati per l'implementazione dell'AI distribuita in sanità</p>
</header>
<div class="container">
<!-- Dashboard Analitica Multidimensionale -->
<section class="section-card">
<div class="section-header">
<h2 class="section-title">
<i class="fas fa-cube"></i>
Dashboard Analitica Multidimensionale
</h2>
<p>Esplora il framework attraverso visualizzazioni interattive 3D e analisi in tempo reale delle tensioni multidimensionali</p>
</div>
<div class="section-content">
<!-- Framework 3D Interattivo -->
<div class="framework-3d-container" id="framework3d">
<!-- Circular Framework SVG -->
<svg viewBox="0 0 800 600" style="width: 100%; height: 100%; max-width: 800px;">
<text x="400" y="30" textAnchor="middle" fontSize="18" fontWeight="bold" fill="#1e293b">
Framework Integrato a Quattro Assi per l'AI Distribuita in Sanità
</text>
<!-- Diagram background -->
<circle cx="400" cy="320" r="250" fill="#f8fafc" stroke="#e2e8f0" strokeWidth="2" />
<!-- Central hub -->
<circle cx="400" cy="320" r="50" fill="white" stroke="#475569" strokeWidth="2" />
<text x="400" y="315" textAnchor="middle" fontSize="14" fontWeight="bold" fill="#1e293b">AI Distribuita</text>
<text x="400" y="335" textAnchor="middle" fontSize="14" fontWeight="bold" fill="#1e293b">in Sanità</text>
<!-- Quadrant separators -->
<line x1="400" y1="70" x2="400" y2="570" stroke="#94a3b8" strokeWidth="1.5" strokeDasharray="5,5" />
<line x1="150" y1="320" x2="650" y2="320" stroke="#94a3b8" strokeWidth="1.5" strokeDasharray="5,5" />
<!-- ASSE TECNOLOGICO (top left) -->
<path d="M 400 320 L 400 120 A 200 200 0 0 0 200 320 Z" fill="#dbeafe" fillOpacity="0.6" stroke="#3b82f6" strokeWidth="2" />
<path d="M 400 320 L 400 170 A 150 150 0 0 0 250 320 Z" fill="#dbeafe" fillOpacity="0.8" stroke="#3b82f6" strokeWidth="1" />
<text x="300" y="200" textAnchor="middle" fontSize="16" fontWeight="bold" fill="#1e40af">ASSE TECNOLOGICO</text>
<text x="300" y="220" textAnchor="middle" fontSize="12" fontStyle="italic" fill="#3b82f6">Fondamenti Infrastrutturali</text>
<!-- Tech components -->
<text x="240" y="250" textAnchor="end" fontSize="11" fontWeight="bold" fill="#1e40af">• Interoperabilità</text>
<text x="260" y="270" textAnchor="end" fontSize="11" fontWeight="bold" fill="#1e40af">• Sicurezza e resilienza</text>
<text x="290" y="290" textAnchor="end" fontSize="11" fontWeight="bold" fill="#1e40af">• Scalabilità</text>
<text x="330" y="250" textAnchor="start" fontSize="11" fontWeight="bold" fill="#1e40af">• Performance</text>
<text x="350" y="270" textAnchor="start" fontSize="11" fontWeight="bold" fill="#1e40af">• Manutenibilità</text>
<!-- ASSE ECONOMICO (top right) -->
<path d="M 400 320 L 600 320 A 200 200 0 0 0 400 120 Z" fill="#dcfce7" fillOpacity="0.6" stroke="#10b981" strokeWidth="2" />
<path d="M 400 320 L 550 320 A 150 150 0 0 0 400 170 Z" fill="#dcfce7" fillOpacity="0.8" stroke="#10b981" strokeWidth="1" />
<text x="500" y="200" textAnchor="middle" fontSize="16" fontWeight="bold" fill="#166534">ASSE ECONOMICO</text>
<text x="500" y="220" textAnchor="middle" fontSize="12" fontStyle="italic" fill="#10b981">Dinamiche di Valore</text>
<!-- Economic components -->
<text x="450" y="250" textAnchor="start" fontSize="11" fontWeight="bold" fill="#166534">• Costi di implementazione</text>
<text x="470" y="270" textAnchor="start" fontSize="11" fontWeight="bold" fill="#166534">• Distribuzione del valore</text>
<text x="490" y="290" textAnchor="start" fontSize="11" fontWeight="bold" fill="#166534">• Sostenibilità finanziaria</text>
<text x="540" y="250" textAnchor="start" fontSize="11" fontWeight="bold" fill="#166534">• Efficienza allocativa</text>
<text x="560" y="270" textAnchor="start" fontSize="11" fontWeight="bold" fill="#166534">• Impatto sulla produttività</text>
<!-- ASSE GIURIDICO (bottom left) -->
<path d="M 400 320 L 200 320 A 200 200 0 0 0 400 520 Z" fill="#fee2e2" fillOpacity="0.6" stroke="#ef4444" strokeWidth="2" />
<path d="M 400 320 L 250 320 A 150 150 0 0 0 400 470 Z" fill="#fee2e2" fillOpacity="0.8" stroke="#ef4444" strokeWidth="1" />
<text x="300" y="420" textAnchor="middle" fontSize="16" fontWeight="bold" fill="#b91c1c">ASSE GIURIDICO</text>
<text x="300" y="440" textAnchor="middle" fontSize="12" fontStyle="italic" fill="#ef4444">Conformità e Responsabilità</text>
<!-- Legal components -->
<text x="240" y="370" textAnchor="end" fontSize="11" fontWeight="bold" fill="#b91c1c">• Conformità normativa</text>
<text x="260" y="390" textAnchor="end" fontSize="11" fontWeight="bold" fill="#b91c1c">• Allocazione di responsabilità</text>
<text x="290" y="410" textAnchor="end" fontSize="11" fontWeight="bold" fill="#b91c1c">• Tutela dei diritti</text>
<text x="310" y="380" textAnchor="start" fontSize="11" fontWeight="bold" fill="#b91c1c">• Risoluzione controversie</text>
<text x="330" y="400" textAnchor="start" fontSize="11" fontWeight="bold" fill="#b91c1c">• Adattabilità normativa</text>
<!-- ASSE ETICO (bottom right) -->
<path d="M 400 320 L 400 520 A 200 200 0 0 0 600 320 Z" fill="#ede9fe" fillOpacity="0.6" stroke="#8b5cf6" strokeWidth="2" />
<path d="M 400 320 L 400 470 A 150 150 0 0 0 550 320 Z" fill="#ede9fe" fillOpacity="0.8" stroke="#8b5cf6" strokeWidth="1" />
<text x="500" y="420" textAnchor="middle" fontSize="16" fontWeight="bold" fill="#6d28d9">ASSE ETICO</text>
<text x="500" y="440" textAnchor="middle" fontSize="12" fontStyle="italic" fill="#8b5cf6">Valori e Principi Fondanti</text>
<!-- Ethical components -->
<text x="450" y="370" textAnchor="start" fontSize="11" fontWeight="bold" fill="#6d28d9">• Equità algoritmica</text>
<text x="470" y="390" textAnchor="start" fontSize="11" fontWeight="bold" fill="#6d28d9">• Trasparenza e spiegabilità</text>
<text x="490" y="410" textAnchor="start" fontSize="11" fontWeight="bold" fill="#6d28d9">• Autonomia e agency</text>
<text x="540" y="380" textAnchor="start" fontSize="11" fontWeight="bold" fill="#6d28d9">• Beneficenza</text>
<text x="560" y="400" textAnchor="start" fontSize="11" fontWeight="bold" fill="#6d28d9">• Fiducia</text>
<!-- Tension zones -->
<text x="400" y="140" textAnchor="middle" fontSize="10" fontWeight="bold" fill="#475569">Tensione Tecnologia-Economia</text>
<text x="400" y="500" textAnchor="middle" fontSize="10" fontWeight="bold" fill="#475569">Tensione Diritto-Etica</text>
<text x="180" y="320" textAnchor="middle" fontSize="10" fontWeight="bold" fill="#475569" transform="rotate(-90,180,320)">Tensione Tecnologia-Diritto</text>
<text x="620" y="320" textAnchor="middle" fontSize="10" fontWeight="bold" fill="#475569" transform="rotate(90,620,320)">Tensione Economia-Etica</text>
<!-- Legend -->
<rect x="150" y="550" width="500" height="30" rx="5" fill="white" stroke="#64748b" strokeWidth="1" />
<text x="400" y="570" textAnchor="middle" fontSize="12" fill="#334155">
Framework di analisi delle tensioni e bilanciamenti nell'implementazione dell'AI distribuita in sanità
</text>
</svg>
</div>
<!-- Controlli Analisi -->
<div class="controls-panel">
<div class="control-group">
<div class="control-label">Profondità Analisi</div>
<input type="range" class="slider" min="1" max="5" value="3" id="depthSlider">
<div style="display: flex; justify-content: space-between; font-size: 0.8rem; color: #666;">
<span>Superficiale</span>
<span>Profonda</span>
</div>
</div>
<div class="control-group">
<div class="control-label">Focus Dimensione</div>
<select class="form-control" id="dimensionFocus">
<option value="all">Tutte le Dimensioni</option>
<option value="tech">Tecnologia</option>
<option value="eco">Economia</option>
<option value="legal">Diritto</option>
<option value="ethics">Etica</option>
</select>
</div>
<div class="control-group">
<div class="control-label">Tipo Analisi</div>
<select class="form-control" id="analysisType">
<option value="tensions">Analisi Tensioni</option>
<option value="opportunities">Opportunità</option>
<option value="risks">Analisi Rischi</option>
<option value="compliance">Compliance Check</option>
</select>
</div>
</div>
</div>
</section>
<!-- Analisi Dimensionale Approfondita -->
<section class="section-card">
<div class="section-header">
<h2 class="section-title">
<i class="fas fa-layer-group"></i>
Analisi Dimensionale Approfondita
</h2>
<p>Explore ogni dimensione del framework attraverso metriche specializzate e indicatori di performance</p>
</div>
<div class="section-content">
<div class="tabs-container">
<button class="tab active" onclick="switchTab('tech')">
<i class="fas fa-microchip"></i> Tecnologia
</button>
<button class="tab" onclick="switchTab('eco')">
<i class="fas fa-chart-line"></i> Economia
</button>
<button class="tab" onclick="switchTab('legal')">
<i class="fas fa-balance-scale"></i> Diritto
</button>
<button class="tab" onclick="switchTab('ethics')">
<i class="fas fa-heart"></i> Etica
</button>
</div>
<!-- Tecnologia Tab -->
<div id="tech-tab" class="tab-content active">
<div class="analysis-grid">
<div class="analysis-item tech">
<h3><i class="fas fa-cogs"></i> Maturità Componenti</h3>
<div style="margin: 1rem 0;">
<canvas id="techMaturityChart" width="300" height="200"></canvas>
</div>
<p>Valutazione della maturità tecnologica delle componenti core per l'implementazione dell'AI distribuita in sanità.</p>
<div style="margin-top: 1rem;">
<div style="background: #3b82f6; color: white; padding: 0.5rem; border-radius: 4px; text-align: center;">
<strong>Score Complessivo: 4.2/5</strong>
</div>
</div>
</div>
<div class="analysis-item tech">
<h3><i class="fas fa-shield-alt"></i> Gap Identificati</h3>
<ul style="margin: 1rem 0; padding-left: 1.5rem;">
<li><strong>Standardizzazione:</strong> Mancanza di standard unificati per l'interoperabilità FL in sanità</li>
<li><strong>Scalabilità:</strong> Limiti nell'orchestrazione di nodi FL su larga scala</li>
<li><strong>Monitoring:</strong> Carenza di strumenti di monitoraggio distribuito in tempo reale</li>
</ul>
<button class="btn btn-primary" style="margin-top: 1rem;">
<i class="fas fa-download"></i> Report Dettagliato
</button>
</div>
</div>
<!-- Azioni Consigliate -->
<div style="background: #f0f9ff; padding: 1.5rem; border-radius: 12px; border-left: 4px solid #3b82f6;">
<h4 style="color: #1e40af; margin-bottom: 1rem;"><i class="fas fa-lightbulb"></i> Azioni Consigliate</h4>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem;">
<div>
<strong>1. Implementa API Gateway unificato</strong>
<p style="font-size: 0.9rem; color: #666; margin-top: 0.5rem;">Per standardizzare comunicazioni between FL nodes</p>
</div>
<div>
<strong>2. Upgrade Differential Privacy a v3.0</strong>
<p style="font-size: 0.9rem; color: #666; margin-top: 0.5rem;">Ridurre parametri di privacy-budget per maggiore privacy</p>
</div>
<div>
<strong>3. Implementa Monitoring Dashboard</strong>
<p style="font-size: 0.9rem; color: #666; margin-top: 0.5rem;">Real-time performance tracking per tutti i nodi FL</p>
</div>
</div>
</div>
</div>
<!-- Economia Tab -->
<div id="eco-tab" class="tab-content">
<div class="analysis-grid">
<div class="analysis-item eco">
<h3><i class="fas fa-calculator"></i> ROI Calculator</h3>
<div style="background: #f8fafc; padding: 1rem; border-radius: 8px; margin: 1rem 0;">
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;">
<div>
<label style="font-weight: 600; margin-bottom: 0.5rem; display: block;">Investment Iniziale</label>
<input type="number" class="form-control" value="2500000" id="initialInvestment">
</div>
<div>
<label style="font-weight: 600; margin-bottom: 0.5rem; display: block;">Benefici Annuali</label>
<input type="number" class="form-control" value="800000" id="annualBenefits">
</div>
</div>
<div style="margin-top: 1rem; text-align: center;">
<div style="font-size: 1.5rem; font-weight: 700; color: #10b981;">
ROI Break-even: <span id="roiResult">3.1 anni</span>
</div>
</div>
</div>
<button class="btn btn-primary" onclick="calculateROI()">
<i class="fas fa-calculator"></i> Ricalcola ROI
</button>
</div>
<div class="analysis-item eco">
<h3><i class="fas fa-chart-pie"></i> Distribuzione Costi</h3>
<div style="margin: 1rem 0;">
<canvas id="costDistributionChart" width="300" height="200"></canvas>
</div>
<div style="font-size: 0.9rem; color: #666;">
<p><strong>Infrastruttura:</strong> €1.2M (48%)</p>
<p><strong>Sviluppo:</strong> €0.8M (32%)</p>
<p><strong>Compliance:</strong> €0.3M (12%)</p>
<p><strong>Training:</strong> €0.2M (8%)</p>
</div>
</div>
</div>
</div>
<!-- Diritto Tab -->
<div id="legal-tab" class="tab-content">
<div style="background: #fef3c7; padding: 1.5rem; border-radius: 12px; border-left: 4px solid #f97316; margin-bottom: 2rem;">
<h4 style="color: #9a3412; margin-bottom: 1rem;"><i class="fas fa-exclamation-triangle"></i> Alert Compliance</h4>
<p>Il quadro normativo per l'AI distribuita è in rapida evoluzione. L'AI Act europeo entrerà in vigore il <strong>2 Agosto 2025</strong>.</p>
</div>
<div class="analysis-grid">
<div class="analysis-item legal">
<h3><i class="fas fa-file-contract"></i> Compliance Status</h3>
<div style="margin: 1rem 0;">
<div style="margin-bottom: 1rem;">
<div style="display: flex; justify-content: space-between; margin-bottom: 0.5rem;">
<span>GDPR Compliance</span>
<span style="color: #10b981; font-weight: 600;">85%</span>
</div>
<div style="background: #e5e7eb; border-radius: 4px; height: 8px;">
<div style="background: #10b981; width: 85%; height: 100%; border-radius: 4px;"></div>
</div>
</div>
<div style="margin-bottom: 1rem;">
<div style="display: flex; justify-content: space-between; margin-bottom: 0.5rem;">
<span>AI Act Readiness</span>
<span style="color: #f97316; font-weight: 600;">60%</span>
</div>
<div style="background: #e5e7eb; border-radius: 4px; height: 8px;">
<div style="background: #f97316; width: 60%; height: 100%; border-radius: 4px;"></div>
</div>
</div>
<div style="margin-bottom: 1rem;">
<div style="display: flex; justify-content: space-between; margin-bottom: 0.5rem;">
<span>MDR Compliance</span>
<span style="color: #ef4444; font-weight: 600;">45%</span>
</div>
<div style="background: #e5e7eb; border-radius: 4px; height: 8px;">
<div style="background: #ef4444; width: 45%; height: 100%; border-radius: 4px;"></div>
</div>
</div>
</div>
</div>
<div class="analysis-item legal">
<h3><i class="fas fa-tasks"></i> Action Items</h3>
<div style="margin: 1rem 0;">
<div style="display: flex; align-items: center; margin-bottom: 0.8rem; padding: 0.5rem; background: #fef3c7; border-radius: 6px;">
<i class="fas fa-circle" style="color: #f97316; margin-right: 0.5rem; font-size: 0.8rem;"></i>
<span style="font-size: 0.9rem;">Implementare sistema di audit logging distribuito</span>
</div>
<div style="display: flex; align-items: center; margin-bottom: 0.8rem; padding: 0.5rem; background: #fee2e2; border-radius: 6px;">
<i class="fas fa-circle" style="color: #ef4444; margin-right: 0.5rem; font-size: 0.8rem;"></i>
<span style="font-size: 0.9rem;">Definire framework di responsabilità distribuita</span>
</div>
<div style="display: flex; align-items: center; margin-bottom: 0.8rem; padding: 0.5rem; background: #dcfce7; border-radius: 6px;">
<i class="fas fa-circle" style="color: #10b981; margin-right: 0.5rem; font-size: 0.8rem;"></i>
<span style="font-size: 0.9rem;">Aggiornare Data Processing Agreements</span>
</div>
</div>
</div>
</div>
</div>
<!-- Etica Tab -->
<div id="ethics-tab" class="tab-content">
<div class="analysis-grid">
<div class="analysis-item ethics">
<h3><i class="fas fa-balance-scale-right"></i> Ethical Impact Assessment</h3>
<div style="margin: 1rem 0;">
<div style="background: #f3f4f6; padding: 1rem; border-radius: 8px;">
<div style="margin-bottom: 0.8rem;">
<strong>Equità Algoritmica:</strong>
<span style="color: #10b981; float: right;">✓ Buona</span>
</div>
<div style="margin-bottom: 0.8rem;">
<strong>Trasparenza:</strong>
<span style="color: #f97316; float: right;">⚠ Da migliorare</span>
</div>
<div style="margin-bottom: 0.8rem;">
<strong>Autonomia Paziente:</strong>
<span style="color: #10b981; float: right;">✓ Preservata</span>
</div>
<div>
<strong>Beneficenza:</strong>
<span style="color: #10b981; float: right;">✓ Elevata</span>
</div>
</div>
</div>
<button class="btn btn-primary">
<i class="fas fa-file-alt"></i> Report Etico Completo
</button>
</div>
<div class="analysis-item ethics">
<h3><i class="fas fa-users"></i> Stakeholder Impact</h3>
<div style="margin: 1rem 0;">
<canvas id="stakeholderImpactChart" width="300" height="200"></canvas>
</div>
<div style="font-size: 0.9rem; color: #666; margin-top: 1rem;">
<p><strong>Pazienti:</strong> +4.2 (beneficio elevato)</p>
<p><strong>Medici:</strong> +3.8 (supporto decisionale)</p>
<p><strong>Ospedali:</strong> +4.0 (efficienza operativa)</p>
<p><strong>Società:</strong> +3.5 (equità accesso)</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Analisi Avanzata delle Tensioni -->
<section class="section-card">
<div class="section-header">
<h2 class="section-title">
<i class="fas fa-project-diagram"></i>
Analisi Avanzata delle Tensioni
</h2>
<p>Heatmap interattiva delle tensioni e strumenti di mitigazione per identificare e risolvere conflitti dimensionali</p>
</div>
<div class="section-content">
<!-- Heatmap Tensioni -->
<div class="heatmap-container">
<!-- Tension Matrix Grid -->
<div style="width: 100%; max-width: 600px;">
<h3 style="text-align: center; margin-bottom: 1rem; color: #334155;">Matrice delle Tensioni Multidimensionali</h3>
<div style="display: grid; grid-template-columns: 100px repeat(4, 1fr); gap: 2px; font-size: 0.9rem;">
<!-- Header -->
<div></div>
<div style="background: #3b82f6; color: white; padding: 0.8rem; text-align: center; font-weight: 600;">Tech</div>
<div style="background: #10b981; color: white; padding: 0.8rem; text-align: center; font-weight: 600;">Eco</div>
<div style="background: #f97316; color: white; padding: 0.8rem; text-align: center; font-weight: 600;">Legal</div>
<div style="background: #8b5cf6; color: white; padding: 0.8rem; text-align: center; font-weight: 600;">Ethics</div>
<!-- Tech Row -->
<div style="background: #3b82f6; color: white; padding: 0.8rem; text-align: center; font-weight: 600;">Tech</div>
<div style="background: #dbeafe; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('tech-tech')">—</div>
<div style="background: #fbbf24; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('tech-eco')">⚠</div>
<div style="background: #ef4444; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('tech-legal')">⚠⚠</div>
<div style="background: #f97316; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('tech-ethics')">⚠</div>
<!-- Eco Row -->
<div style="background: #10b981; color: white; padding: 0.8rem; text-align: center; font-weight: 600;">Eco</div>
<div style="background: #fbbf24; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('eco-tech')">⚠</div>
<div style="background: #dcfce7; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('eco-eco')">—</div>
<div style="background: #f97316; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('eco-legal')">⚠</div>
<div style="background: #ef4444; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('eco-ethics')">⚠⚠</div>
<!-- Legal Row -->
<div style="background: #f97316; color: white; padding: 0.8rem; text-align: center; font-weight: 600;">Legal</div>
<div style="background: #ef4444; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('legal-tech')">⚠⚠</div>
<div style="background: #f97316; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('legal-eco')">⚠</div>
<div style="background: #fed7aa; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('legal-legal')">—</div>
<div style="background: #f97316; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('legal-ethics')">⚠</div>
<!-- Ethics Row -->
<div style="background: #8b5cf6; color: white; padding: 0.8rem; text-align: center; font-weight: 600;">Ethics</div>
<div style="background: #f97316; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('ethics-tech')">⚠</div>
<div style="background: #ef4444; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('ethics-eco')">⚠⚠</div>
<div style="background: #f97316; color: white; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('ethics-legal')">⚠</div>
<div style="background: #ede9fe; padding: 0.8rem; text-align: center; cursor: pointer;" onclick="showTensionDetail('ethics-ethics')">—</div>
</div>
<div style="margin-top: 1rem; display: flex; justify-content: center; gap: 1rem; font-size: 0.8rem;">
<div><span style="background: #10b981; color: white; padding: 0.2rem 0.5rem; border-radius: 3px;">—</span> Neutrale</div>
<div><span style="background: #fbbf24; color: white; padding: 0.2rem 0.5rem; border-radius: 3px;">⚠</span> Tensione Media</div>
<div><span style="background: #ef4444; color: white; padding: 0.2rem 0.5rem; border-radius: 3px;">⚠⚠</span> Tensione Alta</div>
</div>
</div>
</div>
<!-- Tensione Selezionata -->
<div id="tensionDetail" style="background: #f8fafc; padding: 2rem; border-radius: 12px; margin-top: 2rem; display: none;">
<h4 id="tensionTitle" style="color: #1e293b; margin-bottom: 1rem;">Seleziona una tensione dalla matrice</h4>
<p id="tensionDescription" style="color: #64748b; margin-bottom: 1.5rem;"></p>
<div id="tensionStrategies" style="background: white; padding: 1.5rem; border-radius: 8px; border-left: 4px solid var(--primary-color);">
<h5 style="color: var(--primary-color); margin-bottom: 1rem;"><i class="fas fa-lightbulb"></i> Strategie di Mitigazione</h5>
<div id="strategiesList"></div>
</div>
</div>
</div>
</section>
<!-- Toolkit Operativo Integrato -->
<section class="section-card">
<div class="section-header">
<h2 class="section-title">
<i class="fas fa-toolbox"></i>
Toolkit Operativo Integrato
</h2>
<p>Strumenti pratici per l'implementazione e la gestione dell'AI distribuita in contesti sanitari</p>
</div>
<div class="section-content">
<div class="toolkit-grid">
<!-- FL Consortium Agreement -->
<div class="toolkit-item">
<div class="toolkit-header">
<h3 class="toolkit-title">
<i class="fas fa-handshake"></i>
FL Consortium Agreement
</h3>
<p style="font-size: 0.9rem; color: #666;">Template legale per accordi di federazione tra istituzioni sanitarie</p>
</div>
<div class="toolkit-content">
<div style="margin-bottom: 1rem;">
<div style="background: #f0f9ff; padding: 0.8rem; border-radius: 6px; margin-bottom: 0.8rem;">
<i class="fas fa-check-circle" style="color: #10b981; margin-right: 0.5rem;"></i>
<strong>Allocation IP Rights:</strong> Modello condiviso
</div>
<div style="background: #f0f9ff; padding: 0.8rem; border-radius: 6px; margin-bottom: 0.8rem;">
<i class="fas fa-check-circle" style="color: #10b981; margin-right: 0.5rem;"></i>
<strong>Data Governance:</strong> Framework GDPR-compliant
</div>
<div style="background: #f0f9ff; padding: 0.8rem; border-radius: 6px;">
<i class="fas fa-check-circle" style="color: #10b981; margin-right: 0.5rem;"></i>
<strong>Liability Distribution:</strong> Risk-sharing model
</div>
</div>
<button class="btn btn-primary" onclick="downloadTemplate('fl-agreement')">
<i class="fas fa-download"></i> Scarica Template
</button>
</div>
</div>
<!-- AI Act Compliance Checker -->
<div class="toolkit-item">
<div class="toolkit-header">
<h3 class="toolkit-title">
<i class="fas fa-shield-alt"></i>
AI Act Compliance Checker
</h3>
<p style="font-size: 0.9rem; color: #666;">Strumento interattivo per verificare conformità con l'AI Act europeo</p>
</div>
<div class="toolkit-content">
<div style="margin-bottom: 1rem;">
<div style="display: flex; justify-content: space-between; margin-bottom: 0.8rem;">
<span>Documentazione Requisiti</span>
<span style="background: #ef4444; color: white; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem;">Non Compliant</span>
</div>
<div style="display: flex; justify-content: space-between; margin-bottom: 0.8rem;">
<span>Risk Assessment</span>
<span style="background: #fbbf24; color: white; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem;">In Progress</span>
</div>
<div style="display: flex; justify-content: space-between;">
<span>Human Oversight</span>
<span style="background: #10b981; color: white; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem;">Compliant</span>
</div>
</div>
<button class="btn btn-primary" onclick="runComplianceCheck()">
<i class="fas fa-search"></i> Avvia Check
</button>
</div>
</div>
<!-- Data Processing Agreement -->
<div class="toolkit-item">
<div class="toolkit-header">
<h3 class="toolkit-title">
<i class="fas fa-database"></i>
Data Processing Agreement
</h3>
<p style="font-size: 0.9rem; color: #666;">DPA template specifico per contesti di federated learning sanitario</p>
</div>
<div class="toolkit-content">
<div style="margin-bottom: 1rem;">
<div style="background: #f9fafb; padding: 0.8rem; border-radius: 6px; border-left: 3px solid #3b82f6;">
<div style="font-weight: 600; margin-bottom: 0.5rem;">Categorie Dati Include:</div>
<ul style="margin: 0; padding-left: 1.2rem; font-size: 0.9rem;">
<li>Imaging medico (DICOM)</li>
<li>Electronic Health Records</li>
<li>Parametri modelli ML</li>
</ul>
</div>
</div>
<div style="display: flex; gap: 0.5rem;">
<button class="btn btn-primary" style="flex: 1;" onclick="customizeDPA()">
<i class="fas fa-edit"></i> Personalizza
</button>
<button class="btn" style="background: #10b981; color: white; flex: 1;" onclick="downloadTemplate('dpa')">
<i class="fas fa-download"></i> Download
</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Simulatore di Scenari -->
<section class="section-card">
<div class="section-header">
<h2 class="section-title">
<i class="fas fa-chart-area"></i>
Simulatore di Scenari
</h2>
<p>Modellazione predittiva per valutare l'impatto di diverse configurazioni di AI distribuita</p>
</div>
<div class="section-content">
<div class="simulation-container">
<h3 style="color: #1e293b; margin-bottom: 1.5rem;">
<i class="fas fa-sliders-h"></i> Costruisci il tuo Scenario
</h3>
<div class="scenario-form">
<div class="form-group">
<label class="form-label">Tipo Implementazione</label>
<select class="form-control" id="implementationType">
<option value="federated-learning">Federated Learning</option>
<option value="edge-ai">Edge AI</option>
<option value="hybrid">Approccio Ibrido</option>
</select>
</div>
<div class="form-group">
<label class="form-label">N. Partecipanti</label>
<input type="number" class="form-control" value="6" min="2" max="50" id="participantCount">
</div>
<div class="form-group">
<label class="form-label">Budget (€M)</label>
<input type="number" class="form-control" value="2.5" step="0.1" id="budgetAmount">
</div>
<div class="form-group">
<label class="form-label">Complessità Dati</label>
<select class="form-control" id="dataComplexity">
<option value="low">Bassa (DICOM)</option>
<option value="medium">Media (Multi-modal)</option>
<option value="high">Alta (Genomics + Imaging)</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Vincoli Normativi</label>
<select class="form-control" id="regulatoryConstraints">
<option value="standard">Standard EU</option>
<option value="strict">Stringenti</option>
<option value="experimental">Sandbox Regulatorio</option>
</select>
</div>
<div class="form-group">
<label class="form-label">Timeline Target</label>
<select class="form-control" id="timeline">
<option value="12">12 mesi</option>
<option value="18">18 mesi</option>
<option value="24">24 mesi</option>
<option value="36">36 mesi</option>
</select>
</div>
</div>
<div style="text-align: center; margin: 2rem 0;">
<button class="btn btn-primary" style="padding: 1rem 2rem; font-size: 1.1rem;" onclick="runSimulation()">
<i class="fas fa-play"></i> Avvia Simulazione
</button>
</div>
<!-- Results Panel -->
<div class="results-panel" id="simulationResults" style="display: none;">
<h4 style="color: #1e293b; margin-bottom: 1.5rem;">
<i class="fas fa-chart-line"></i> Risultati Simulazione
</h4>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem;">
<div class="metric-card">
<div class="metric-title">Success Probability</div>
<div class="metric-value" id="successProbability">78%</div>
</div>
<div class="metric-card">
<div class="metric-title">ROI Previsto</div>
<div class="metric-value" id="expectedROI">2.4x</div>
</div>
<div class="metric-card">
<div class="metric-title">Time to Value</div>
<div class="metric-value" id="timeToValue">18 mesi</div>
</div>
<div class="metric-card">
<div class="metric-title">Risk Score</div>
<div class="metric-value" id="riskScore" style="color: #f97316;">Medium</div>
</div>
</div>
<div style="margin-top: 2rem; padding: 1.5rem; background: #f0f9ff; border-radius: 8px; border-left: 4px solid #3b82f6;">
<h5 style="color: #1e40af; margin-bottom: 1rem;">
<i class="fas fa-lightbulb"></i> Raccomandazioni Strategiche
</h5>
<ul id="recommendations" style="color: #334155; padding-left: 1.2rem;">
<li>Considerare approccio incrementale starting da 3 nodi pilota</li>
<li>Allocare 15% budget per compliance e legal costs</li>
<li>Implementare differential privacy con ε < 1.0 per privacy ottimale</li>
<li>Stabilire governance committee multi-stakeholder</li>
</ul>
</div>
</div>
</div>
</div>
</section>
</div>
<script>
// Tab Switching
function switchTab(tabName) {
// Hide all tab contents
document.querySelectorAll('.tab-content').forEach(tab => tab.classList.remove('active'));
document.querySelectorAll('.tab').forEach(tab => tab.classList.remove('active'));
// Show selected tab
document.getElementById(tabName + '-tab').classList.add('active');
event.target.classList.add('active');
// Initialize charts for the active tab
if (tabName === 'tech') {
initTechCharts();
} else if (tabName === 'eco') {
initEcoCharts();
} else if (tabName === 'ethics') {
initEthicsCharts();
}
}
// Initialize Technology Charts
function initTechCharts() {
const ctx = document.getElementById('techMaturityChart')?.getContext('2d');
if (ctx) {
new Chart(ctx, {
type: 'radar',
data: {
labels: ['Interoperabilità', 'Sicurezza', 'Scalabilità', 'Performance', 'Manutenibilità'],
datasets: [{
label: 'Maturità Attuale',
data: [4.2, 4.5, 3.8, 4.3, 4.0],