body {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #5E359D;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

h2.indievisione-section-title {
    text-align: center;
}

h1:hover, h2:hover, h3:hover {
    color: #FAD233;
}

.indievisione-case-study h2:hover {
    color: #ffffff;
}

.wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
}

.indievisione-upload-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #5E359D;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
    border: 2px solid #FAD233;
}

.indievisione-upload-form:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.custom-file-label {
    color: #FAD233;
    font-size: 1.2em;
    cursor: pointer;
}

#file-name {
    color: #ffffff;
    margin-left: 20px;
    font-weight: bold;
}

input[type="submit"] {
    background-color: #FAD233;
    color: #5E359D;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #5E359D;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.indievisione-chart {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #FAD233, #ffffff);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.4s ease;
}

.indievisione-chart:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

canvas {
    width: 100% !important;
    height: auto !important;
}

.indievisione-advice {
    background: linear-gradient(135deg, #5E359D, rgba(94, 53, 157, 0.8));
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    margin-bottom: 25px;
    border-left: 2px solid rgba(250, 210, 51, 0.2);
    transition: box-shadow 0.4s ease;
}

.indievisione-advice:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.indievisione-advice h3 {
    color: #FAD233;
    margin-bottom: 12px;
    font-size: 1.4em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.indievisione-advice-item {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    box-shadow: inset 0 -1px 0 rgba(250, 210, 51, 0.3);
    transition: box-shadow 0.4s ease;
}

.indievisione-advice-item:hover {
    box-shadow: inset 0 -1px 0 rgba(250, 210, 51, 0.6);
}

.indievisione-advice-item p {
    margin: 0;
    color: #ffffff;
    font-size: 1.1em;
}

.custom-file-label:hover {
    color: #ffffff;
    text-decoration: underline;
}

input[type="file"] {
    display: none;
}

input[type="submit"]:active {
    transform: scale(0.98);
}

.indievisione-health-score {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.health-score-bar-container {
    width: 100%;
    background: #eee;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.health-score-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #FAD233, #5E359D);
    transition: width 1s ease-in-out;
}

.indievisione-level {
    color: #5E359D;
    font-size: 1.2em;
    margin-top: 10px;
}

.chart-animated {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.indievisione-download-btn {
    background-color: #FAD233;
    color: #5E359D;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: background-color 0.4s ease, transform 0.3s ease;
}

.indievisione-download-btn:hover {
    background-color: #5E359D;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.indievisione-case-study {
    background: linear-gradient(135deg, #FAD233, #ffffff);
    color: #5E359D; /* <-- già corretto */
    padding: 20px;
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in-out;
}

.indievisione-case-study h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5E359D; /* <-- CAMBIA questo da #FAD233 a #5E359D */
}

.indievisione-case-study p + h3 {
    margin-top: 20px;
}

.indievisione-case-study p {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: left;
    max-width: 100%;
    margin: 0 0 10px 0;
    color: #5E359D; /* <-- CAMBIA questo da #ffffff a #5E359D */
}

.indievisione-case-study ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.indievisione-case-study li {
    color: #5E359D; /* <-- AGGIUNGI questo per i punti elenco */
    margin-bottom: 5px;
}

.indievisione-case-study h3:hover {
    color: #ffffff;
}

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