.xml-menu {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
}

.xml-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.xml-menu ul li {
    margin-right: 20px;
}

.xml-menu ul li a {
    color: #000000;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.xml-menu ul li a:hover,
.xml-menu ul li a.active {
    background-color: #007bff;
    color: white;
}

/* Smooth scrolling per le sezioni */
.xml-element {
    display: none;
    scroll-margin-top: 20px;
}

.xml-element.active {
    display: block;
}

/* Transizione smooth per il cambio di sezione */
.xml-element {
    transition: opacity 0.3s ease-in-out;
}

.dati-identificativi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    overflow: hidden;
}

.dati-identificativi .box-body {
    padding: 20px;
}

.dati-identificativi ul {
    list-style: none;
    padding: 0;
}

.dati-identificativi ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.prestazione-energetica-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.classeEnergeticaField {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.classeEnergeticaField .left,
.classeEnergeticaField .right {
    flex: 1;
}

.classeEnergeticaField .middle {
    flex: 2;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
}

.box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.box-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.box-body {
    padding: 20px;
}

.media {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.media .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.media-body {
    flex: 1;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Stili per la navigazione con hash */
.xml-menu ul li a[href="#dati"]:target,
.xml-menu ul li a[href="#prestazione"]:target,
.xml-menu ul li a[href="#impianti"]:target,
.xml-menu ul li a[href="#documenti"]:target {
    background-color: #007bff;
    color: white;
}

/* Stili per le sezioni attive basate sull'hash */
#dati:target,
#prestazione:target,
#impianti:target,
#documenti:target {
    display: block !important;
}
