body {
	color: #2c3e50;
	font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    /* color: #333; */
}

label {
	display: block;
	/* font-weight: bold; */
	margin-bottom: 4px;
}

.go-to {
	transition:0.3s;
}

.go-to:hover {
	transition:0.3s;
	/* opacity: 0.7; */
	cursor:pointer;
}

.home-container {
    width: 100%;
	max-width: min(1800px, calc(100vw - 250px));
    height: 100%;
    min-height: 100vh; /* Altezza minima pari al viewport */
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    /* display: block; */
    /* position: relative; */
    overflow: auto;
	overflow-x: hidden;
	background-color:#eeeeff;
	border-radius:12px;
	margin-bottom:30px;
	margin-top:10px;
}

/* Responsive Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
}

/* Base column styles */
[class*="col"] {
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%; /* Default to full width on mobile */
    margin-bottom: 15px;
}

/* Column definitions */
.col1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
.col2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col3 { flex: 0 0 25%; max-width: 25%; }
.col4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col6 { flex: 0 0 50%; max-width: 50%; }
.col7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col9 { flex: 0 0 75%; max-width: 75%; }
.col10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col12 { flex: 0 0 100%; max-width: 100%; }

.group-column {	/* Raggruppa colonne per andare a capo assieme */
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* On tablets, make most columns full width */
    [class*="col"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* On mobile, all columns full width */
    [class*="column-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive: su schermi piccoli tutte le colonne diventano full-width */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .col1, .col2, .col3, .col4, .col5, .col6 {
        flex: none;
        width: 100%;
        min-width: unset;
    }
	
	.stat-card {
		min-width: 220px; /* Riduce leggermente la larghezza su mobile */
	}
}

.bold { font-weight: bold; }
.italic { font-style: italic; }

.positive-color {
	color: #27ae60 !IMPORTANT;
}

.negative-color {
	color: #e60000 !IMPORTANT;
}

.btn {
	background: #6666ff;
	color: white;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: 0.2s;
	text-decoration: none;
}

.btn:hover {
	background: #9999ff;
	transition: 0.2s;
	text-decoration: none;
}

.btn-link, .btn-link:hover {
	color: white !IMPORTANT;
	text-decoration: none;
	transition: 0.2s;
}

.btn-disabled, .btn-disabled:hover {
	background: #9999ff;
	cursor: not-allowed;
}

.btn-map {
	background-color: #2eb82e !IMPORTANT;
}

.btn-map:hover {
	background-color: #248f24 !IMPORTANT;
}

.btn-excel {
	background-color: #2eb82e !IMPORTANT;
}

.btn-excel:hover {
	background-color: #248f24 !IMPORTANT;
}

.btn-simulatore {
	background-color: #ff8c5f !IMPORTANT;
}

.btn-simulatore:hover {
	background-color: #e64100 !IMPORTANT;
}

.btn-reset {
	background-color: #6b7280 !IMPORTANT;
}

.btn-reset:hover {
	background-color: #374151 !IMPORTANT;
}

.btn-pdf {
	background-color: #BE1313 !IMPORTANT;
}

.btn-pdf:hover {
	background-color: #960F0F !IMPORTANT;
}

.header {
	border-radius: 8px;
	padding: 20px;
	/* margin-bottom: 20px; */
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header h1 {
	font-size: 20px;
	margin-bottom: 5px;
}

.header-info {
	color: #7f8c8d;
	font-size: 14px;
}

/* Contenitore principale del carosello con controlli */
.carousel-wrapper {
	position: relative;
}

/* Pulsanti di navigazione */
.carousel-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #3498db;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: white;
	font-size: 18px;
	font-weight: bold;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
	z-index: 10;
	opacity: 0.7;
}

.carousel-nav-btn:hover {
	background: #2980b9;
	transform: translateY(-50%) scale(1.1);
	opacity: 1;
}

.carousel-nav-btn:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
	transform: translateY(-50%);
	opacity: 0.4;
}

#prevBtn {
	left: 10px;
}

#nextBtn {
	right: 10px;
}

.carousel-section {
	display: flex;
	gap: 20px;
	/* margin-bottom: 30px; */
	background-color: #ddddff;
	padding: 10px;
	border-radius: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 10px; /* Spazio per la scrollbar */
	scroll-behavior: smooth; /* Scorrimento fluido */
}

/* Styling personalizzato per la scrollbar */
.carousel-section::-webkit-scrollbar {
	height: 8px;
}

.carousel-section::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.carousel-section::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 4px;
}

.carousel-section::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

.stat-card {
	background: #ffffff;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	border-left: 4px solid #3498db;
	min-width: 240px; /* Larghezza minima fissa */
	flex-shrink: 0; /* Impedisce il restringimento delle card */
	transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	border-left: 4px solid #59d98e;
}

.stat-card-header {
	display: flex; /* Ripristinato il flex */
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ecf0f1;
}

.stat-card-title {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
}

.stat-card-actions {
	display: flex;
	gap: 5px;
}

.action-icon {
	width: 18px;
	height: 18px;
	display: inline-block;
	opacity: 1;
	transition: opacity 0.3s;
}

.action-icon:hover {
	opacity: 0.7;
}

.download-icon {
	width: 24px !IMPORTANT;
	height: 24px !IMPORTANT;
	padding: 3;
	border: 1px solid #aaa;
	border-radius: 3px;
	background-color: #f0f0f0;
	
}

.data-item {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px solid #f8f9fa;
}

.data-label {
	font-size: 13px;
	color: #7f8c8d;
}

.data-value {
	font-size: 13px;
	font-weight: 600;
	color: #2c3e50;
}

.performance-section {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #ecf0f1;
}

.performance-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 5px 0;
}

.performance-label {
	font-size: 12px;
	color: #7f8c8d;
}

.performance-value {
	font-size: 12px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 3px;
	background: #ecf0f1;
	color: #2c3e50;
}

.section {
	background: #ffffff;
	border-radius: 12px;
	padding: 1rem;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	height: 100%;
	box-sizing: border-box;
}

.section-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
	text-transform: none;
}

.content-text {
	width: 100%;
	/* height:100%; */
	box-sizing: border-box;
	padding: 1rem;
	border-radius: 12px;
}

.chart-div {
	width: 100%;
	/* height: 100%; */
	min-height: 370px;
	box-sizing: border-box;
}

.linea-testo {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 15px;
	display: flex;
	align-items: center;
	font-weight: bold;
	color: #555;
	margin: 20px 0;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
	/* border: 1px solid #ddd; */
}

.data-table th, .data-table td {
    padding: 6px !IMPORTANT;
    border: 1px solid #ddd;
}

.counter {
	padding: 1.5rem;
	margin: 0 auto;
	text-align: center;
}

.counter-number {
	font-size: 3.5rem;
	font-weight: 600;
}

.linea-testo::before {
	content: attr(data-text);
	margin-right: 10px;
}

.linea-testo::after {
	content: '';
	flex-grow: 1;
	border-bottom: 1px solid #555;
}

.form-input {
	padding:8px 12px;
	border:1px solid #ddd;
	border-radius:4px;
	font-size:14px;
	margin-bottom:5px;
	/* min-width:80px; */
	/* max-width:400px; */
}


/* === Style input per copia link PortalTour === */
.input-wrapper {
	background-color: #eeeeee;
	border: 1px solid;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.input-field {
	flex: 1;
	border: hidden !IMPORTANT;
	outline: none;
	font-size: 14px;
	color: #555;
	padding: 8px;
	background-color: transparent !IMPORTANT;
}

.copy-icon {
	cursor: pointer;
	background-color: #3498db;
	transition: background-color 0.2s;
	padding: 8px;
}

.copy-icon:hover {
	background-color: #2980b9;
}

.copy-icon svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

.no-border {
	border: none !IMPORTANT;
}

/* === COLORI === */
.blue { background-color: #ccccff !IMPORTANT; }
.light-blue { background-color: #eeeeff !IMPORTANT; }
.dark-blue { background-color: #aaaaff !IMPORTANT; }
.white { background-color: #ffffff !IMPORTANT; }
.grey { background-color: #dadada !IMPORTANT; }
.light-grey { background-color: #f7f7f7 !IMPORTANT; }
.mid-light-grey { background-color: #eaeaea !IMPORTANT; }
.medium-grey { background-color: #cccccc !IMPORTANT; }
.dark-grey { background-color: #bebebe !IMPORTANT; }
.light-orange { background-color: #ffede6; }
.ultra-light-orange { background-color: #fff8f5; }
.green { background-color: #c2f0c2 !IMPORTANT; }
.light-green { background-color: #eafaea !IMPORTANT; }
.dark-green { background-color: #adebad !IMPORTANT; }


/* === Animazione caricamento dati === */
/* Loading overlay che copre tutta la pagina */
#loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.8); /* Sfondo opacizzato */
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

/* Container del loading centrato */
#immediate-content {
	text-align: center;
}

/* Animazione 2: Tre pallini che rimbalzano */
.loading-dots {
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
}
.loading-dots div {
	position: absolute;
	top: 33px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #3498db;
	animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loading-dots div:nth-child(1) {
	left: 8px;
	animation: dots1 0.6s infinite;
}
.loading-dots div:nth-child(2) {
	left: 8px;
	animation: dots2 0.6s infinite;
}
.loading-dots div:nth-child(3) {
	left: 32px;
	animation: dots2 0.6s infinite;
}
.loading-dots div:nth-child(4) {
	left: 56px;
	animation: dots3 0.6s infinite;
}
@keyframes dots1 {
	0% { transform: scale(0); }
	100% { transform: scale(1); }
}
@keyframes dots3 {
	0% { transform: scale(1); }
	100% { transform: scale(0); }
}
@keyframes dots2 {
	0% { transform: translate(0, 0); }
	100% { transform: translate(24px, 0); }
}

.chart-container { min-height: 400px; position: relative; }
.hidden { display: none; }

.titolo
{
	font-family: sans-serif;
	line-height: 1.2;
	font-size: 1.75rem;
	font-weight: 400;
	color: black;
	margin-top: 0px;
	margin-bottom: 10px;
}

.table-class {
	border-collapse: collapse;
	width: 100%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	border-radius: 12px;
	overflow: hidden;
}

/* .table-class th, .table-class td { */
	/* padding: 5px 3px; */
	/* border: 0px solid #cccccc; */
/* } */

/* Simulatore */
.field-sim {	
	padding:8px;
	width:80px;
}

.chart-container-sim {
	display: flex;         
	justify-content: center;          
	flex-wrap: wrap; 
	overflow: hidden;
}

.chart-div-sim {
	padding: 10px;
	/* flex: 1 1 40px; */
	min-width: 630px;
	max-width: 700px;
	height: 450px;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Stile per popup verde che conferma modifiche in form */
.campo-modificato {
	border-left: 3px solid #f0a500 !important;
	background-color: #fffbe6 !important;
	transition: border-left 0.2s, background-color 0.2s;
}

.toast-saved {
	position: fixed;
	top: 1px;
	left: 50%;
	transform: translateX(-50%) translateY(-6px);
	background: rgba(80, 150, 30, 0.75);
	color: #EAF3DE;
	font-size: 13px;
	font-weight: 500;
	padding: 9px 18px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: none;
	z-index: 9999;
	white-space: nowrap;
}

.toast-saved.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.toast-saved-icon {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #97C459;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}