

   /* tool bar 
   
  .widget {
    position: fixed;
    top: 30%;
    margin-left: 90%;
        z-index: 1000;
    width: 48px;
    height: auto;
}
*/


.widget {
    position: fixed;
    top: 30%;
    right: 12px;
    left: auto;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    width: 60px;
    height: auto;
    margin: 0;
    padding: 6px;
    background-color: white;
}
	
   	 .tools {
 
	      background-color: #3D3D3D;
      color: white;
      border: none;
     width:100%;
	padding-bottom: 15%;
	padding-top: 15%;
      margin: 5px;
      border-radius: ;
      cursor: pointer;
	    display: block ;
		 min-width: 48px; /* fissa una larghezza minima */
		
		    }
			
			/* Pulsanti della toolbar */
.widget .tools,
.widget .contrasto {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    min-width: 48px;
    min-height: 48px;
    height: 48px;
    flex: 0 0 48px;

    margin: 0;
    padding: 4px;
    border: none;
    border-radius: 4px;

    background-color: #3D3D3D;
    color: white;
    cursor: pointer;
}

	/* Evidenziazione accessibile */
.widget .tools:hover,
.widget .contrasto:hover,
.widget .tools:focus-visible,
.widget .contrasto:focus-visible {
    background-color: #F7D145;
    color: #3D3D3D;
    outline: 2px solid red;
    outline-offset: 2px;
    transform: none;
}
		
			
			
			
			
	/* evidenziazione da tastiera
		
    .tools:focus {
      background-color: #F7D145;
  color: #4A4A4A;
  outline: 2px solid red;
  transform: none;
    }
*/

.contrasto{
 
	      background-color: #3D3D3D;
      color: white;
      border: none;
     width:100%;
	padding-bottom: 15%;
	padding-top: 15%;
      margin: 5px;
      border-radius: ;
      cursor: pointer;
	    display: block ;
		 min-width: 48px; /* fissa una larghezza minima */
		
		    }

    a:focus {
      background-color: #F7D145;
  color: #3D3D3D;
  outline: 2px solid red;
  transform: none;
    }


/* evidenziazione da mouse*/
  .tools:hover {
  background-color: #F7D145;
  color: #4A4A4A;
  outline: 2px solid red;
  transform: none;
  }
  
  #showInstructionsBtn {
 margin: 5px;
}
#grad1 {
  height: 40px;
  background-color: #F7D145; /* For browsers that do not support gradients */
  background-image: linear-gradient(to right, #F7D145 50%, black 50%);
}


/* Cambio colore attivo */
body.changecolor {
    background-color: #3D3D3D !important;
    color: #FFFFFF !important;
}

/* Testi */
body.changecolor p,
body.changecolor li,
body.changecolor b{
    color: #FFFFFF !important;
}

body.changecolor h1,
body.changecolor h2,
body.changecolor h3,
body.changecolor h4,
body.changecolor h5,
body.changecolor h6 {
    color: #FFD700 !important;
}
/* Link in modalità cambio colore */
body.changecolor a,
body.changecolor a:visited {
    color: #FF6347 !important;
}
/* TUTTI GLI SFONDI IN MODALITÀ CAMBIO COLORE */
body.changecolor,
body.changecolor header,
body.changecolor nav,
body.changecolor main,
body.changecolor section,
body.changecolor article,
body.changecolor aside,
body.changecolor footer,
body.changecolor div,
body.changecolor p,
body.changecolor ul,
body.changecolor ol,
body.changecolor li,
body.changecolor blockquote,
body.changecolor .widget,
body.changecolor .info-box,
body.changecolor .info-box1 {
    background-color: #3D3D3D !important;
}

/* Mantieni leggibili i testi */
body.changecolor {
    color: #FFFFFF !important;
}

body.changecolor h1,
body.changecolor h2,
body.changecolor h3,
body.changecolor h4,
body.changecolor h5,
body.changecolor h6 {
    color: #FFD700 !important;
}

body.changecolor p,
body.changecolor li,
body.changecolor b,
body.changecolor label {
    color: #FFFFFF !important;
}

/* Link */
body.changecolor a {
    color: #FFD700 !important;
}

/* Pulsanti */
body.changecolor button {
    background-color: #3D3D3D !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* Barra accessibilità su cellulare */
@media (max-width: 768px) {
    body.changecolor .widget {
        background-color: #3D3D3D !important;
    }
}






    /* Effetti attivati solo quando si premono i relativi tools 
    body.alto-contrasto-tools {
      background-color: #3D3D3D !important;
      color: #fff !important;
    }
    body.alto-contrasto-tools h1,
    body.alto-contrasto-tools h2,
    body.alto-contrasto-tools h3,
    body.alto-contrasto-tools p,
    body.alto-contrasto-tools li,
    body.alto-contrasto-tools a,
    body.alto-contrasto-tools label {
      color: #3D3D3D !important;
    }
    body.alto-contrasto-tools a {
      outline-color: #FFD700;
    }
    body.link-sottolineati-tools a {
      text-decoration: underline !important;
      text-underline-offset: 3px;
    }
	*/

/* Sfondo delle card */
body.alto-contrasto-tools .card,
body.alto-contrasto-tools .card-content {
    background-color: #3D3D3D !important;
}


	
 /* Media Query per schermi piccoli */
@media (max-width: 768px) {
   /* .widget {
        position: sticky;
        top: 0;
        left: auto;
        z-index: 900;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 4px;
        box-sizing: border-box;
        background: white;
		border-top: 3px solid #FFD600;
padding-top: 4px;
		
    }*/
	
	 .widget {
        position: sticky;
        top: 0;
        right: auto;
        left: auto;
        z-index: 900;

        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;

        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 8px;
        border-top: 3px solid #FFD600;

        background-color: white;
    }

    .widget .tools,
    .widget .contrasto {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        flex: 0 0 48px;

        margin: 0;
        padding: 4px;
        font-size: 12px;
    }

    /* Corregge il vecchio selettore: l'ID effettivo è
       accessibility-toolbar, non accessibilita */
    #accessibility-toolbar {
        display: flex;
    }

    #instructions {
        flex-basis: 100%;
        max-width: 100%;
        min-width: 0;
    }
	

  /*  .tools {
       width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex: 0 0 48px;
        margin-right: 3%;
        padding: 6px 3px;
        box-sizing: border-box;
        font-size: 12px;
    }
	
	


.contrasto{ 
       width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex: 0 0 48px;
        margin-right: 3%;
        padding: 6px 3px;
        box-sizing: border-box;
        font-size: 12px;
		    }
	*/
		
			
    #accessibilita {
        display: none;
    }
}