#full-table_wrapper {
    margin-top: -75px;
}

/* Responsive wrapper */
.dt-container {
    overflow-x: visible;
}
.tabella-tecnica {
    border-radius: 10px 10px 0 0;
    box-shadow: 0 45px 112px 0 rgba(0, 0, 0, 0.06), 0 23px 49px 0 rgba(0, 0, 0, 0.04), 0 9px 18px 0 rgba(0, 0, 0, 0.03), 0 2px 6px 0 rgba(0, 0, 0, 0.02);
    overflow: hidden;
}
#full-table_wrapper .tabella-tecnica {
    border-radius: 10px;
    table-layout: fixed;
    width: 100%;
}
#full-table_wrapper .tabella-tecnica thead th:first-child {
    width: 200px;
}
.tabella-tecnica thead th:nth-child(2) {
    width: 40% !important;
}
.tabella-tecnica thead th:nth-child(3),
.tabella-tecnica thead th:nth-child(4) {
    width: 30% !important;
}
.tabella-tecnica thead th {
    border: none !important;
    background-color: #eeeeee;
    color: #333333;
    padding: 6px 20px !important;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 13px;
    text-transform: uppercase;
    vertical-align: middle;
}
.tabella-tecnica tbody tr {
    border-bottom: 1px solid rgba(34, 114, 130, 0.2);
}
.tabella-tecnica tbody tr.group {
    background-color: rgba(34, 114, 130, 0.8);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.tabella-tecnica tbody tr.group:hover {
    background-color: rgba(34, 114, 130, 0.9);
}
.tabella-tecnica tbody tr.group td {
    color: var(--e-global-color-adb330f) !important;
    text-align: center;
    text-transform: uppercase;
    position: relative;
}
/* Icona + per i gruppi */
.tabella-tecnica.dtr-inline.collapsed > tbody > tr.group > td:before {
    content: '+';
    background-color: var(--e-global-color-accent);
    color: var(--e-global-color-adb330f);
    border-radius: 3px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    margin-right: 8px;
    float: left;
}

.tabella-tecnica.dtr-inline.collapsed > tbody > tr.group.expanded > td:before {
    content: '-';
}

/* Aggiorna icone gruppi dinamicamente */
@media screen and (max-width: 768px) {
    .tabella-tecnica.dtr-inline.collapsed > tbody > tr.group > td:before {
        content: '+';
    }
    
    .tabella-tecnica.dtr-inline.collapsed > tbody > tr.group.expanded > td:before {
        content: '-';
    }
}
.tabella-tecnica tbody td {
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 19px;
    color: #333333 !important;
    border-bottom: 1px solid rgba(34, 114, 130, 0.2);
    background-color: var(--e-global-color-adb330f) !important;
    border: none !important;
    padding: 10px 20px !important;
}
.tabella-tecnica tbody td:first-child {
    background-color: rgba(77, 166, 184, 0.2) !important;
    font-weight: 600;
}
#short-table.tabella-tecnica tbody td {
    font-size: 11px;
    padding: 6px 10px !important;
}
#size-table.tabella-tecnica tbody td:first-child {
    background-color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 600;
}
#size-table.tabella-tecnica tbody td {
    text-align: center !important;
}
#size-table.tabella-tecnica tfoot td:last-child {
    text-align: left;
}
.tabella-tecnica thead th {
    text-align: center !important;
}
.tabella-tecnica tfoot td {
    border: none !important;
    background-color: #eeeeee;
    color: #333333;
    padding: 6px 20px !important;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 19px;
}
.tabella-tecnica tfoot td:last-child {
    text-align: right;
}
.tabella-tecnica tfoot td a {
    font-size: 11px;
    line-height: 20px;
    color: var(--e-global-color-adb330f);
    font-weight: 500;
    background-color: var(--e-global-color-secondary);
    border-radius: 4px;
    padding: 4px 6px;
    transition: all .3s ease-in-out;
}
.tabella-tecnica tfoot td a:hover {
    color: var(--e-global-color-adb330f);
    background-color: var(--e-global-color-accent);
}
.dt-container .dt-search input.dt-input {
    border-radius: 8px;
    padding: 8px 16px;
    background-color: #eff1f9;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
}
.elementor-widget-shortcode .table-foot {
    border: none !important;
    background-color: #eeeeee;
    color: #333333;
    padding: 6px 20px !important;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 19px;
    display: flex;
    justify-content: space-between;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-top: -25px;
    z-index: 1;
    position: relative;
    box-shadow: 0 45px 112px 0 rgba(0, 0, 0, 0.06), 0 23px 49px 0 rgba(0, 0, 0, 0.04), 0 9px 18px 0 rgba(0, 0, 0, 0.03), 0 2px 6px 0 rgba(0, 0, 0, 0.02);
}
.elementor-widget-shortcode .table-foot a {
    font-size: 11px;
    line-height: 20px;
    color: var(--e-global-color-adb330f);
    font-weight: 500;
    background-color: var(--e-global-color-secondary);
    border-radius: 4px;
    padding: 4px 6px;
    transition: all .3s ease-in-out;
}
.elementor-widget-shortcode .table-foot a:hover {
    color: var(--e-global-color-adb330f);
    background-color: var(--e-global-color-accent);
}

/* RESPONSIVE DATATABLES */
/* Icona expand/collapse per full table - solo righe normali */
.tabella-tecnica.dtr-inline.collapsed > tbody > tr.normal > td:first-child:before {
    content: '+';
    background-color: var(--e-global-color-secondary);
    color: var(--e-global-color-adb330f);
    border-radius: 3px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    margin-right: 8px;
    float: left;
    border: none !important;
}

.tabella-tecnica.dtr-inline.collapsed > tbody > tr.normal.dtr-expanded > td:first-child:before {
    content: '-';
    background-color: var(--e-global-color-accent);
}



/* Mostra colonne none su desktop */
@media screen and (min-width: 769px) {
    .tabella-tecnica thead th.none,
    .tabella-tecnica tbody td.none {
        display: table-cell !important;
    }
}

/* Stile per mobile - solo prima colonna */
@media screen and (max-width: 768px) {
    #full-table_wrapper {
        margin-top: -20px;
    }
    
    .tabella-tecnica.dtr-inline.collapsed {
        table-layout: auto !important;
    }
    
    .tabella-tecnica.dtr-inline.collapsed > thead > tr > th:first-child,
    .tabella-tecnica.dtr-inline.collapsed > tbody > tr > td:first-child {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Nascondi completamente le colonne header nascoste */
    .tabella-tecnica.dtr-inline.collapsed > thead > tr > th.dtr-hidden {
        display: none !important;
        width: 0 !important;
    }
    
    /* Forza la prima colonna a occupare tutto lo spazio */
    .tabella-tecnica.dtr-inline.collapsed > thead > tr,
    .tabella-tecnica.dtr-inline.collapsed > tbody > tr.normal {
        display: table-row;
    }
    
    .tabella-tecnica.dtr-inline.collapsed colgroup {
        display: none;
    }
    
    /* Override delle larghezze fisse per mobile */
    .tabella-tecnica.dtr-inline.collapsed {
        width: 100% !important;
    }
    
    .tabella-tecnica.dtr-inline.collapsed > thead > tr > th:first-child {
        width: calc(100% - 40px) !important;
        padding-right: 40px !important;
        height: 20px;
    }
    
    .tabella-tecnica.dtr-inline.collapsed > tbody > tr > td:first-child {
        width: calc(100% - 20px) !important;
        padding-right: 20px !important;
    }
}

/* Stile righe espanse */
table.dataTable.dtr-inline.collapsed > tbody > tr.child {
    background-color: rgba(77, 166, 184, 0.1) !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child td {
    border-top: none !important;
    padding-left: 20px !important;
}

/* Stile contenuto espanso */
table.dataTable.dtr-inline.collapsed > tbody > tr.child ul.dtr-details {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child ul.dtr-details li {
    border-bottom: 1px solid rgba(34, 114, 130, 0.1);
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child ul.dtr-details li:last-child {
    border: none !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child ul.dtr-details li span.dtr-title {
    font-weight: 600;
    color: var(--e-global-color-secondary);
    min-width: 100px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.child ul.dtr-details li span.dtr-data {
    text-align: right;
    flex: 1;
}

/* Responsive breakpoints personalizzati */
@media screen and (max-width: 768px) {
    .tabella-tecnica {
        font-size: 12px;
    }
    
    .tabella-tecnica thead th {
        padding: 4px 8px !important;
        font-size: 10px;
    }
    
    .tabella-tecnica tbody td {
        padding: 8px 8px !important;
        font-size: 12px;
    }
    
    .tabella-tecnica thead th:nth-child(2) {
        width: 50% !important;
    }
    
    .tabella-tecnica thead th:nth-child(3),
    .tabella-tecnica thead th:nth-child(4) {
        width: 25% !important;
    }
}

@media screen and (max-width: 480px) {
    .tabella-tecnica {
        font-size: 11px;
    }
    
    .tabella-tecnica thead th {
        padding: 3px 6px !important;
        font-size: 9px;
    }
    
    .tabella-tecnica tbody td {
        padding: 6px 6px !important;
        font-size: 11px;
    }
    
    .tabella-tecnica thead th:nth-child(2) {
        width: 60% !important;
    }
}