
:root{
    --VERDE: #119647;
    --VERDONE: #097233;
	--VERDINO: #ACE4AA;
}
.bck_VERDE{
    background-color: var(--VERDE);
}
.color_VERDE{
    color: var(--VERDE);
}

body{
	font-family: "Ubuntu", sans-serif;
	font-weight: 400;
	font-style: normal;
	background: var(--VERDINO);
	min-height: 100vh;
	margin: 0;
}
html.no-scroll,
body.no-scroll{
    overflow: hidden;
}
body.no-scroll{ position: fixed; width: 100%; }

.technical-details{ font-size:13px; margin:0; }
.technical-details dt{ font-weight:bold; margin-top:12px; }
.technical-details dd{ margin:3px 0 0; overflow-wrap:anywhere; }
.technical-details [data-tech="uid"],
.technical-details [data-tech="subscription"],
.technical-details [data-tech="onesignal"]{ font-family:monospace; }

h1,h2,h3,h4,h4,h6
{
	font-family: "Winky Rough", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
}
b, strong{

    font-style:normal;
    font-weight:700;
}

.w_def{
    width: 90%;
    margin: auto;
}
.w_limited{
    margin: auto;
    max-width: 1100px;
}


.link{
    cursor: pointer;
    text-decoration: underline;
}
/*
div#loading
{
	position:fixed;
	width:100vw;
	height:100vh;
	background-color:black;
	opacity:0;
	left:0px;
	top:0px;
	z-index:210;
	text-align:center;
	background-image:url('../images/gear.gif');
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	pointer-events: none;
    transition: 400ms ease;
}*/

div#loading {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  
  background-color: black;
  opacity: 0;
  z-index: 210;
  
  /* centra il loader */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* rimuovi background-attachment: fixed per iOS */
  background-image: url('../images/gear.gif');
  background-repeat: no-repeat;
  background-position: center center;
  
  pointer-events: none;
  transition: 400ms ease;
}

div#loading.visible
{
	opacity:0.8 !important;
	pointer-events: auto;
}
div#overlay
{
	width:100vw;
	height:100vh;
	background-color:black;
	opacity:0;
	position:fixed;
	left:0px;
	top:0px;
	z-index:40;
    transition: 400ms ease;
	pointer-events: none;
}
.menu_opened div#overlay
{
	opacity:0.6;
	pointer-events: auto;
}

/********* HEADER ***********/
header{
    position: fixed;
	top:0px;
	left:0px;
	z-index:600;
	background-color:black;
	width:100vw;
	height:35px;
	box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

header .grid{
    display: grid;
    grid-template-columns: 1fr 40px;
    padding-top:3px; 
}
header .header_title{
    font-size:24px; 
	color: white;
	font-family: 'Ubuntu';
    font-weight: normal;
	text-align:left;
	margin-left:10px;
	transition: left 0.4s ease;

	
}
.menu_opened header .header_title
{
	display:none;
}
.menu_opened header #ico_points
{
	display:none;
}

header #ico_points
{
	color:white;
	text-align:right;
	font-size:24px;
	font-weight:bold;
	margin-right:20px;
	
}

header .wrap_menu
{
    position: fixed;
    top: 35px;
	right:-100vw;
    width:80vw;
	height:100%;
    background-color: black;
    color: white;
    z-index: 20;
    box-shadow: 0 20px 20px rgba(0,0,0,.1);
    transition: 400ms ease;
    display: block;
	
}
header .wrap_menu .logo 
{
	border-radius:50%;
	border:1px solid black;
}


header .wrap_menu ul {
    list-style-type: none;
    font-style: normal;
    font-weight: 900;
    font-size: 20px;
}
header .wrap_menu ul li
{
    width:100%;
	border-bottom:1px solid white;
	text-align:center;
}
header .wrap_menu ul li a{
	width:100%;
	color: white;
	margin:20px 20px;
}
header .wrap_menu .descr{
	font-size:14px;
	font-weight:200;
	font-family: "Ubuntu", sans-serif;
	
	
}
header .wrap_menu .logo 
{
	border-radius:50%;
	border:2px solid white;
	width:100px;
	margin-bottom:10px;
}
header .wrap_menu .descr b{
	font-size:16px;
	font-weight:600;
	font-family: "Winky Rough", sans-serif;
}

.menu_opened{
    overflow: hidden;
	height:100vh;
}
.menu_opened header .wrap_menu{
	right:0px;
	height:100%;
	overflow:auto;
}
/********* END HEADER ***********/

/******* ICO_MENU ********/
.wrap_ico_menu{
    width: 30px;
    height: 30px;
	margin-right:20px;
	margin-top:8px;
	position:relative;
}
#ico_menu{
	z-index: 70;
	cursor: pointer;
    height: 20px;
    width: 50px;
  transition: left 0.4s ease;
}
#ico_menu .line, #ico_menu:before, #ico_menu:after{
	background-color: white;
	left:10px;
}
.menu_opened #ico_menu .line, .menu_opened #ico_menu:before, .menu_opened #ico_menu:after{
	background-color: var(--VERDONE);
}
	

#ico_menu .line{
	width: 100%;
	height: 5px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: 400ms ease;
}
#ico_menu:before, #ico_menu:after{
	content: ' ';
	position: absolute;
	right: 0;
	height: 5px;
	transition: 400ms ease;
}
#ico_menu:before{
	top: 2px;
	width: 100%;
}
#ico_menu:after{
	bottom: 2px;
	width: 100%;
}
.menu_opened #ico_menu .line{
	opacity: 0;
} 
.menu_opened #ico_menu:before{
	transform: rotate(45deg);
	top: 50%;
}
.menu_opened #ico_menu:after{
	transform: rotate(-45deg);
	width: 100% !important;
	top: 50%;
}
.corsivo
{
	font-family: 'Cedarville Cursive', cursive;
}
/******* END ICO_MENU ********/

#img_webcam
{
	max-width:800px;  
	width:100%;
	height:auto;
	z-index:2;
	transform-origin: center center;
	transition: transform 0.2s ease;
	touch-action: none;
	will-change: transform;
}

.zoom-container {
  touch-action: none; /* Disabilita lo zoom nativo della pagina dentro il container */
  overflow: hidden;
  position: relative;
}

#after_webcam
{
	margin-top:-10px;
	background-color:var(--VERDINO); 
	width:100%; 
	height:10px; 
	border:0px solid red; 
	border-radius: 10px 10px 0px 0px; 
	z-index:3;
	position:relative;

}

.testo {
 	font-family: "Ubuntu", sans-serif;
	font-weight: 20;
	font-style: normal;

	width: 100%;
    position: absolute;
    bottom: 10px;
    /* left: auto; */
    color: white;
    text-align: center;
}

.scroller_container
{
	margin-top:-10px;
	display: flex;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	gap: 10px;
	padding: 10px;
	paddint-top:0px;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE e Edge */	
	scroll-padding-left: 10px;
}
.scroller_scheda
{
	flex: 0 0 auto;
	flex-direction: column;
	width: 110px;
	height: 80px;
	background: white;
	scroll-snap-align: start;
	border-radius: 8px;
	box-shadow: 0 5px 5px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-size: 16px;
	color: var(--VERDONE);
	border:1px solid var(--VERDONE);
	white-space: pre-line;

	cursor: pointer;
	touch-action: manipulation;
	transition: transform 0.1s ease;	
}
.scroller_scheda:active 
{
	transform: scale(0.97);
}

code
{
	font-family: 'Cedarville Cursive', cursive;
	font-size:14px;
	margin-bottom:5px;
	
}

.scroller_scheda .val
{
	z-index:2;
	font-weight:600;
	font-size:26px;
}

.scroller_scheda i {
    font-size: 32px;
    color: var(--VERDONE);
	margin-right:5px;
}
.scroller_scheda.allerta_V
{
	display:none;
	color:red;
	text-align:center;
	font-weight:bold;
}	

.scroller_scheda.allerta_G
{
	background-color:yellow;
	color:red;
	text-align:center;
	font-weight:bold;
}	
.allerta_G::before {
  content: "ALLERTA GIALLA";
}
.scroller_scheda.allerta_A
{
	background-color:#ffbf40;
	color:red;
	text-align:center;
	font-weight:bold;
}	
	.allerta_A::before {
	  content: "ALLERTA ARANCIO";
	}
.scroller_scheda.allerta_R
{
	background-color:red;
	color:white;
	text-align:center;
	font-weight:bold;
}	
.allerta_R::before {
  content: "ALLERTA ROSSA";
}

/* ***************************************************** */
.scroller_scheda_meteo
{
	flex: 0 0 auto;
	flex-direction: column;
	width: 160px;
	height: 180px;
	background: white;
	scroll-snap-align: start;
	border-radius: 8px;
	box-shadow: 0 5px 5px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-size: 1.2rem;
	color: black;
	border:1px solid var(--VERDONE);
	padding:5px;
}
.scroller_scheda_meteo .giorno
{
	text-align: center;
	margin-bottom:5px;
	
}
.scroller_scheda_meteo .riga_previsioni
{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
	height:60px;
}
.scroller_scheda_meteo .riga_previsioni .singola
{
	border:0px solid red; 
	display:inline-block;
	text-align:center;
}

.scroller_scheda_meteo .temp_min_max
{
	display:flex;
	justify-content: space-evenly;  
	width: 100%; 
	margin-bottom: 10px;
	font-weight: bold;
}
.scroller_scheda_meteo .vento_max
{
	display:flex; 
	justify-content: center; 
	align-items: center;
	width:100%;
}
.scroller_scheda_meteo .vento_max div
{
	display:inline-block; 
	float:left;
}
.icon_meteo 
{
    background: url(../images/icons_meteo.webp) top left no-repeat;
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
    border: 0px solid red;
}
/* ----------------------------------------- */
.scroller_scheda_rumenta
{
	flex: 0 0 auto;
	flex-direction: column;
	width: 160px;
	height: 180px;
	background: white;
	scroll-snap-align: start;
	border-radius: 8px;
	box-shadow: 0 5px 5px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-size: 1.2rem;
	color: black;
	border:1px solid var(--VERDONE);
	padding:5px;
}




.contenitore
{
	color:black;
	background-color: white;
    border-radius: 15px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2);
    margin: 10px;
    margin-bottom: 10px;	
	width:calc(100% - 10px); 
	padding-top:10px; 
	overflow:hidden; 
	margin-bottom:3px;
	width: calc(100vw - 20px);
	text-align:justify; 
	font-size:14px; 
	padding:10px;
	border:1px solid var(--VERDONE);
}
.contenitore .b1
{
	font-weight:500;
	text-decoration:underline;
	font-size:14px;
	text-align:center;
}
.contenitore .mylink
{
	color: #2161a2;
	text-decoration:underline;
	font-weight:300;
}

#ico_back {
	position: relative;
	width: 30px;
	height: 20px;
	cursor: pointer;
	display:none;
	transition: left 0.4s ease;
	color:white;
	text-align:right;
	font-size:24px;
	font-weight:bold;
	text-align:right;
	
}

/*  PAGINA DUE */

#contenuto-page2 {
  position: fixed;
  top: 33px;
  left: 100%;
  width: 100%;
  height: 100%;
  background: white;
  overflow-y: auto;
  transition: left 0.4s ease;
  z-index:100;
}

#contenuto-page2.open {
  left: 0px;
}

#contenuto-page2 .back{
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  padding: 6px;

  border: 0;
  border-radius: 12px;

  /* effetto glass */
  background: rgba(0,0,0,0.22); /* prima era chiara */
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);

  /* stacco su sfondi chiari/scuri */
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);

  color: #fff; /* svg usa currentColor */
  -webkit-tap-highlight-color: transparent;
}

#contenuto-page2 .back:active{
  transform: translateY(1px);
}

#contenuto-page2 .back svg{
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.55));
}



