:root {
    --primary-color: #5EBA42;
    --secondary-color: #27ae60;
    --accent-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 0.5rem 0.5rem;
    position: relative;
    overflow: hidden;
}

.logo {
    width: 300px;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-in-out;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-in-out;
}

header p {
    font-size: 1rem;
    /*  margin-bottom: 2rem;*/
    animation: fadeInUp 1s ease-in-out;
}

.btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    animation: fadeIn 1.5s ease-in-out;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 0.5rem;
}

section {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.login-form input {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 50px;
}

.login-form button {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: var(--secondary-color);
}

.content-form h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.content-form input, .content-form select {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 50px;
}

.content-form textarea {
    width: 100%;
    #padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 20px;
}

.content-form button {
    width: 100%;
    padding: 0.55rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.content-form button:hover {
    background-color: var(--secondary-color);
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stile generale della tabella */
.request-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* Intestazione */
.request-header,
.intervention-header {
    ##padding: 10px;
    padding: 1px;
    text-align: center;
    font-weight: bold;
    color: #333;
    border: 1px solid #b0b0b0;
}

.request-header {
    background-color: #e0e0e0;
}

.intervention-header {
    background-color: #c0c0c0;
}

/* Colonne dell'intestazione */
.request-column,
.intervention-column {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #b0b0b0;
    background-color: #e0e0e0;
}

.intervention-column {
    background-color: #c0c0c0;
}

.description-column {
    width: 300px;
    text-align: left;
}

/* Dati della tabella */
.request-data,
.intervention-data {
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 11px;
    vertical-align: top;
}

/* Righe alternate */
.request-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Effetto hover */
.request-table tbody tr:hover {
    background-color: #f0f0f0;
}

/* Celle con rowspan */
.request-table tbody td[rowspan] {
    background-color: #f5f5f5;
}

/* Messaggio "vuoto" */
.empty-message {
    text-align: center;
    ##padding: 20px;
    padding: 10px;
    font-size: 16px;
    color: #666;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
}

.pagination a, .pagination span {
    ##padding: 8px 12px;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: white;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: #f0f0f0;
    border-color: #aaa;
}

.pagination .current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}
.truncate-text {
    width: 100%;
    margin-bottom:10px;
}
