/* COLORI, COMMENTARE QUANDO FINITO DI PROGETTARE LA STRUTTURA */
/* .main-content {
	background-color: cyan;
}
.main-content > .top {
	background-color: red;
}
.main-content > .left {
	background-color: lime;
}
.main-content > .right {
	background-color: blueviolet;
}
.main-content > .bottom {
	background-color: gold;
} */
/* COLORI, COMMENTARE QUANDO FINITO DI PROGETTARE LA STRUTTURA */

/* @font-face {
	font-family: Roboto;
	src: url(../fonts/Roboto/Roboto-Regular.ttf);
} */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
	--main-font: "Lato";
	--main-space: 50px;
	--blocks-space: 10px;
	--my-color: #e2101a;
}

body {
	font-family: var(--main-font);
	color: #89959d;
	font-weight: bold;
	/* background-color: #eff1f4; */
}
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    font-family: "Open Sans";
    font-weight: 700;
    font-style: normal;
	color: var(--my-color);
	text-transform: uppercase;
}
:is(h1, h2, h3, h4, h5, h6)::after {
	content: "";
	width: 30px;
	height: 3px;
	background-color: var(--my-color);
	display: block;
	margin: auto;
	margin-top: 10px;
	margin-bottom: 10px;
}

.tm-box,
.header,
.meteo-content,
.temp,
.slides {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.main-content {
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
.main-content > * {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}
.main-content img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.main-content > .top {
	height: 10%;
}
.main-content > .left {
	width: calc(25% - var(--main-space) - var(--blocks-space));
	height: 70%;
	padding-left: var(--main-space);
	padding-right: var(--blocks-space);
}
.main-content > .center {
	width: calc(50% - var(--main-space) - var(--blocks-space));
	height: 70%;
	justify-content: flex-start;
	flex-direction: column;
}
.main-content > .right {
	width: calc(25% - var(--main-space) - var(--blocks-space));
	height: 65%;
	padding-right: var(--main-space);
	padding-left: var(--blocks-space);
}
.main-content > .bottom {
	height: 20%;
	justify-content: space-around;
}
.main-content .video {
	height: 100%;
}
.main-content .meteo {
	width: 100%;
}
.main-content .meteo .title {
	width: 100%;
	text-align: center;
}
.main-content .meteo-content > div {
	width: 100%;
	max-width: 120px;
	text-align: center;
}
.main-content .meteo :is(.title, .desc)::first-letter {
	text-transform: capitalize;
}
.main-content .meteo .temp {
	width: 100%;
}
.main-content .meteo .temp .unit {
	margin-left: 0.3em;
}
.main-content .footer {
	width: 70%;
	padding-right: var(--main-space);
	padding-left: var(--blocks-space);
}

.main-content .slides {
	position: relative;
	margin-left: 50px;
	border: 2px solid red;
    box-shadow: 10px 10px 10px gray;
}
.main-content .slides > * {
	position: absolute;
	top: 0;
	left: 0;
	right: auto;
	bottom: 0;
	margin: auto;
	width: auto;
	height: 100%;
	transition: 0.5s;
	width: 100%;
	object-fit: cover;
	/* background-color: black; */
}

.news {
	overflow: hidden;
	border-top: 2px solid #000;
	border-bottom: 2px solid #000;
	display: flex;
	padding: 10px 0;
	border-color: var(--my-color);
}

.news span {
	font-size: 1.2em;
	white-space: nowrap;
	/* text-transform: uppercase; */
	/* margin-right: 1.5em;
	border-left: 1px solid black;
	padding-left: 5px; */
}

.header {
	background-color: #232227;
}
.header .logo {
	width: 168px;
}

body.dark {
	background-color: #3d3b45;
	color: white;
}
body.dark .news {
	border-color: white;
}

/* .dati-energia {
	color: #666666;
} */
.dati-energia .ambiente > div {
	display: flex;
	align-items: center;
}
.dati-energia .ambiente > div:first-child {
	border-bottom: 1px solid lightgray;
}
.dati-energia .ambiente > div img {
	width: 60px;
	margin-right: 10px;
}
.dati-energia .ambiente > div > div {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}
.dati-energia .ambiente > div > div span {
	width: 100%;
}
.dati-energia .ambiente > div > div span:nth-child(2),
.dati-energia .energia > div span:nth-child(2) {
	/* color: var(--my-color); */
	color: rgb(30,30,30);
	font-weight: bold;
	font-size: 1.2em;
}
.dati-energia .energia {
	display: flex;
	align-items: center;
	margin-top: 30px;
	text-align: center;
}
.dati-energia .energia > div {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.dati-energia .energia > div:not(:last-child) {
	padding-right: 10px;
	border-right: 1px solid lightgray;
}
.dati-energia .energia > div:not(:first-child) {
	padding-left: 10px;
}
.dati-energia .energia > div span:nth-child(2) {
	margin-top: 10px;
}

.comunicazioni {
	max-height: 60%;
    /* overflow: hidden; */
	position: relative;
	width: 100%;
	height: 100%;
}
.comunicazioni-item {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	transition: 1s;
}
.comunicazioni p {
	font-weight: normal;
	font-size: 1.1em;
}
.comunicazioni > div {
	padding:3%;
	text-align: center;
	border: 3px solid var(--my-color);
}

.graph-calendar {
	margin-bottom: 50px;
	margin-top: 50px;
	text-align: center;
}
.graph-calendar > div {
	display: flex;
	position: relative;
	flex-wrap: wrap;
	justify-content: center;
}
.graph-calendar .simbolo {
	position: absolute;
	left: -45px;
	bottom: 0;
	top: 0;
	margin: auto;
	height: fit-content;
}
.graph-calendar .simbolo svg {
	width: 30px;
	fill: var(--my-color);
}
.graph-calendar .dati {
	display: flex; 
	justify-content: center;
	align-items: center;
}
.graph-calendar .dati .titolo {
	margin-bottom: 3px;
	color: var(--my-color);
}
.graph-calendar .dati .data {
	margin-top: 0;
}

.left h3 {
	text-align: center;
	width: 100%;
}

.meteo h3 {
	text-align: center;
}

.main-content .left > * {
	transform: scale(0.9);
}
