<style>
:root {
    --primary:    #3498db;
    --secondary:  #2ecc71;
    --dark:       #2c3e50;
    --light-bg:   #f8f9fa;
    --gray:       #bdc3c7;
    --border:     #e0e0e0;
    --error:      #e74c3c;
    --success:    #27ae60;
}

.contratti-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contratti-container h1 {
    color: var(--dark);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Area elenco documenti */
.contratti-elenco-file {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
}

.contratti-elenco-file h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Tabella documenti */
.contratti-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.contratti-table th,
.contratti-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.contratti-table th {
    background: var(--primary);
    color: #000000;
    font-weight: 600;
}

.contratti-table tr:hover td {
    background: var(--light-bg);
}

/* Pulsante Download */
.download-link {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.download-link:hover {
    background: #e8f6ef;
    text-decoration: underline;
}
</style>
