/* General body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light grey background for the page */
    margin: 0;
    padding: 0;
}

/* Main content container */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Center the content */
}

/* Section styling */
section {
    margin-bottom: 40px; /* Space between sections */
    padding: 20px;
    background-color: #fff; /* White background for sections */
    border-radius: 8px; /* Soft rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Headings */
h2 {
    color: #007bff; /* Soft blue for headings */
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

/* Paragraphs */
p {
    font-size: 16px;
    color: #555; /* Slightly darker grey for text */
    margin-bottom: 15px;
}

/* Lists */
ul {
    padding-left: 20px;
}

ul li {
    list-style-type: disc; /* Bullet points for list items */
    margin-bottom: 10px;
    color: #555;
}

/* Hero section specific styling */
#hero {
    text-align: center;
    padding: 50px 20px;
    background-color: #007bff; /* Blue background for hero section */
    color: #fff; /* White text for contrast */
    border-radius: 8px;
}

#hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff; /* White text for hero heading */
}

#hero p {
    font-size: 18px;
    color: #f8f9fa; /* Light grey for hero paragraph */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h2 {
        font-size: 20px;
    }

    #hero h2 {
        font-size: 28px;
    }

    #hero p {
        font-size: 16px;
    }

    main {
        padding: 10px;
    }

    section {
        padding: 15px;
    }
}
/* Basic reset for padding and margin */
nav, nav ul, nav li, nav a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

/* Navbar container */
nav {
    background-color: #f8f9fa; /* Light grey background */
    border-bottom: 1px solid #eaeaea; /* Subtle border for definition */
    padding: 10px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar list */
nav ul {
    display: flex;
    justify-content: flex-start; /* Align items to the start */
    align-items: center;
}

/* Navbar items */
nav li {
    margin-right: 20px; /* Space between items */
}

/* Navbar links */
nav a {
    color: #333; /* Dark grey color for text */
    font-size: 16px;
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

/* Hover effect for links */
nav a:hover {
    color: #007bff; /* Change color to a soft blue when hovered */
}

/* Active link styling */
nav a.active {
    color: #007bff; /* Soft blue for active page */
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: flex-start;
    }

    nav li {
        margin: 10px 0; /* Adjust spacing for vertical layout */
    }
}


/* Stile per il form */
form {
    margin: 20px 0;
}

/* Stile per il menu a discesa */
select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    margin-right: 10px;
}

/* Stile per il pulsante */
button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Stile per la sezione dei dati */
.data-section {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.data-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.data-section p strong {
    color: #333;
}

.hidden-table {
    display: none;
}

.cell-green { background: lightgreen; }
.cell-red { background: #ffcccc; }