/* Stile base */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: #0056b3; /* Blu istituzionale */
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #77aadd 3px solid;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    padding-bottom: 5px;
}

header h2 {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: normal;
    background-color: rgba(0,0,0,0.1);
    padding: 5px 10px;
    display: inline-block;
    border-radius: 5px;
}

/* Sezioni generali */
section {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

h2 {
    color: #0056b3;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

h3 {
    color: #007bff;
    margin-top: 25px;
}

h4 {
    color: #333;
    margin-top: 20px;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    padding: 0;
}

li {
    margin-bottom: 8px;
}

strong {
    font-weight: bold;
}

/* Stili specifici per le sezioni */
.intro p {
    font-style: italic;
    text-align: right;
    margin-bottom: 5px;
}

.module-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.module {
    background: #e9f7ff; /* Azzurro chiaro */
    padding: 15px;
    border-left: #007bff 5px solid;
    border-radius: 5px;
}

.module h3 {
    color: #0056b3;
    margin-top: 0;
}

.scenario {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.scenario h3 {
    color: #28a745; /* Verde per enfasi */
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.scenario h3:first-of-type {
    color: #dc3545; /* Rosso per il primo scenario, se vuoi distinguere */
}


.scenario ul {
    list-style-type: circle;
    margin-left: 25px;
}

.scenario p strong {
    color: #000;
}

.final-statement {
    font-style: italic;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #0056b3;
}

.signature {
    text-align: right;
    margin-top: 40px;
    font-weight: bold;
    font-style: italic;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2em;
    }

    .module-list {
        grid-template-columns: 1fr; /* Una colonna sui dispositivi più piccoli */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.4em;
    }
}