:root {
	--primary-color: #003366;
	--secondary-color: #0066cc;
	--accent-color: #00aa44;
	--light-bg: #f8f9fa;
	--card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--card-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/*     body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	min-height: 100vh;
}*/

/*      .progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 4px;
	background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
	z-index: 1000;
	transition: width 0.3s ease;
	}
	
	.header {
	background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	position: relative;
	overflow: hidden;
	}
	
	.header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path></svg>') no-repeat;
	background-size: cover;
	opacity: 0.1;
	}
	
	.header-content {
	position: relative;
	z-index: 2;
	}
	
	.header-title {
	font-weight: 600;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
	letter-spacing: -0.025em;
	}
*/
.main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.page-title {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
}

.page-title .subtitle {
	font-size: 1.1rem;
	color: #6b7280;
	font-weight: 400;
}

.documents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.document-card {
	background: white;
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: var(--card-shadow);
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.document-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.document-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--card-shadow-hover);
}

.document-card:hover::before {
	transform: scaleX(1);
}

.document-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.document-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: white;
	flex-shrink: 0;
}

.document-icon.pdf {
	background: linear-gradient(135deg, #dc3545, #c62828);
}

.document-icon.word {
	background: linear-gradient(135deg, #0d6efd, #0056b3);
}

.document-icon.excel {
	background: linear-gradient(135deg, #198754, #146c43);
}

.document-icon.default {
	background: linear-gradient(135deg, #6c757d, #495057);
}

.document-info {
	flex: 1;
	min-width: 0;
}

/* titolo limitato a 2 righe */
/*     .document-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.25rem;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
} */

/* titolo senza limitazioni di lunghezza */
.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.document-meta {
	display: flex;
	gap: 1rem;
	color: #6b7280;
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

.document-meta span {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.download-button {
	width: 100%;
	padding: 0.75rem;
	background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
	color: white;
	border: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none;
}

.download-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
	color: white;
	text-decoration: none;
}

.download-button:active {
	transform: translateY(0);
}

.no-documents {
	text-align: center;
	padding: 3rem;
	color: #6b7280;
	background: white;
	border-radius: 16px;
	box-shadow: var(--card-shadow);
}

.no-documents i {
	font-size: 4rem;
	margin-bottom: 1rem;
	color: #d1d5db;
}

@media (max-width: 768px) {
	.documents-grid {
		grid-template-columns: 1fr;
	}
	
	.page-title h1 {
		font-size: 2rem;
	}
}

.fade-in {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}