/* ============================================================
   CONTENITORE
   ============================================================ */
.tabella-tecnica-container {
    font-family: Arial, sans-serif !important;
    margin: 20px 0 !important;
    border: 1px solid #587aaa !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.tabella-tecnica-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important; /* niente scroll desktop */
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   TABELLA
   ============================================================ */
table.tabella-tecnica {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important; /* usa tutta la larghezza */
    margin: 0 !important;
    background: #fff !important;
}

table.tabella-tecnica thead,
table.tabella-tecnica thead tr {
    background: #587aaa !important;
}

table.tabella-tecnica th {
    border: 1px solid #ffffff !important;
    padding: 10px 4px !important;
    text-align: center !important;
    vertical-align: middle !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    background: #587aaa !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.unit {
    display: block !important;
    margin-top: 3px !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: #ffffff !important;
}

table.tabella-tecnica td {
    border: 1px solid #cce5ff !important;
    padding: 8px 4px !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: #333 !important;
    white-space: nowrap !important;
}

table.tabella-tecnica tbody tr:nth-child(even) {
    background-color: #f0f8ff !important;
}

table.tabella-tecnica tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

/* ============================================================
   LARGHEZZE DESKTOP - TOTALE 100%
   Descrizione è la più larga
   A e B sono identiche
   ============================================================ */

/* 1 Codice */
table.tabella-tecnica td:nth-child(1) {
    width: 6% !important;
    font-weight: 700 !important;
}
table.tabella-tecnica thead tr:first-child th:nth-child(1) {
    width: 6% !important;
}

/* 2 Descrizione */
table.tabella-tecnica td:nth-child(2) {
    width: 18% !important;
    white-space: normal !important;
}
table.tabella-tecnica thead tr:first-child th:nth-child(2) {
    width: 18% !important;
}

/* 3 A */
table.tabella-tecnica td:nth-child(3) {
    width: 3.5% !important;
}

/* 4 B */
table.tabella-tecnica td:nth-child(4) {
    width: 3.5% !important;
}

/* Header SPESSORE = A + B */
table.tabella-tecnica thead tr:first-child th:nth-child(3) {
    width: 7% !important;
}

/* 5 C */
table.tabella-tecnica td:nth-child(5) {
    width: 7% !important;
}
table.tabella-tecnica thead tr:first-child th:nth-child(4) {
    width: 7% !important;
}

/* 6 H */
table.tabella-tecnica td:nth-child(6) {
    width: 6% !important;
}
table.tabella-tecnica thead tr:first-child th:nth-child(5) {
    width: 6% !important;
}

/* 7 D */
table.tabella-tecnica td:nth-child(7) {
    width: 8% !important;
}
table.tabella-tecnica thead tr:first-child th:nth-child(6) {
    width: 8% !important;
}

/* 8 E */
table.tabella-tecnica td:nth-child(8) {
    width: 4% !important;
}

/* 9 F */
table.tabella-tecnica td:nth-child(9) {
    width: 4% !important;
}

/* 10 G */
table.tabella-tecnica td:nth-child(10) {
    width: 4% !important;
}

/* Header ANCORAGGIO = E + F + G */
table.tabella-tecnica thead tr:first-child th:nth-child(7) {
    width: 12% !important;
}

/* 11 Raggio curvatura */
table.tabella-tecnica td:nth-child(11) {
    width: 12% !important;
}
table.tabella-tecnica thead tr:first-child th:nth-child(8) {
    width: 12% !important;
}

/* 12 Gradi angolazione */
table.tabella-tecnica td:nth-child(12) {
    width: 9% !important;
}
table.tabella-tecnica thead tr:first-child th:nth-child(9) {
    width: 9% !important;
}

/* 13 N° fori ancoraggio */
table.tabella-tecnica td:nth-child(13) {
    width: 10% !important;
}
table.tabella-tecnica thead tr:first-child th:nth-child(10) {
    width: 10% !important;
}

/* 14 Peso */
table.tabella-tecnica td:nth-child(14) {
    width: 5% !important;
}
table.tabella-tecnica thead tr:first-child th:nth-child(11) {
    width: 5% !important;
}

/* Header seconda riga */
table.tabella-tecnica thead tr:last-child th {
    padding-left: 3px !important;
    padding-right: 3px !important;
}

/* Seconda tabella */
.tabella-tecnica-secondaria {
    table-layout: fixed !important;
}

.tabella-tecnica-secondaria th,
.tabella-tecnica-secondaria td {
    white-space: normal !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media screen and (max-width: 767px) {
    .tabella-tecnica-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .tabella-tecnica-scroll {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
    }

    table.tabella-tecnica {
        width: 1250px !important;
        min-width: 1250px !important;
        max-width: none !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    table.tabella-tecnica thead {
        display: table-header-group !important;
        position: static !important;
        clip: auto !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    table.tabella-tecnica thead tr {
        display: table-row !important;
        visibility: visible !important;
    }

    table.tabella-tecnica th,
    table.tabella-tecnica td {
        display: table-cell !important;
        visibility: visible !important;
    }

    table.tabella-tecnica th {
        font-size: 11px !important;
        line-height: 1.2 !important;
        padding: 8px 6px !important;
        white-space: normal !important;
        background: #587aaa !important;
        color: #fff !important;
    }

    table.tabella-tecnica td {
        font-size: 11px !important;
        padding: 8px 6px !important;
        white-space: nowrap !important;
    }

    table.tabella-tecnica th:nth-child(2),
    table.tabella-tecnica td:nth-child(2) {
        white-space: normal !important;
    }
}











/* --- INTEGRAZIONE ESCLUSIVA AVVISO SCROLL MOBILE (Stile Alert) --- */

.mobile-scroll-hint {
    display: none;
}

@media screen and (max-width: 767px) {
    .mobile-scroll-hint {
        display: flex !important;
        align-items: center;
        justify-content: center;
        /* Colori tipo Alert (Grigio chiaro / Blu sobrio) */
        background: #f8f9fa; 
        color: #587aaa;
        padding: 10px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: 1px solid #dee2e6;
        border-top: none;
        margin-bottom: 20px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    /* Icona Finger Swipe stilizzata */
    .mobile-scroll-hint::before {
        content: "";
        width: 20px;
        height: 20px;
        margin-right: 10px;
        background-color: #587aaa;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z'/%3E%3C/svg%3E") no-repeat center;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z'/%3E%3C/svg%3E") no-repeat center;
        animation: hintSlide 2s infinite ease-in-out;
    }
}

@keyframes hintSlide {
    0%, 100% { transform: translateX(-4px); opacity: 0.7; }
    50% { transform: translateX(4px); opacity: 1; }
}