/*
 * =========================================
 * STILI CUSTOM ARCHIVIO PUNTI MULTILINGUA
 * =========================================
 */

/* ----------------------------------------------------------- */
/* 1. Box di Ricerca e Indice Alfabetico                       */
/* ----------------------------------------------------------- */
.custom-list-search-container {
    font-family: inherit;
    max-width: 900px;
    margin: 0 auto 30px;
}
.custom-list-search-box {
    margin: 10px auto;
    display: flex;
    gap: 10px;
    max-width: 600px;
}
#custom-list-search-input {
    padding: 12px 15px;
    border: 2px solid #E76466 !important;
    border-radius: 6px !important;
    flex-grow: 1;
    font-size: inherit;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}
#custom-list-search-input:focus {
    outline: none;
    border-color: #d45557;
}
#custom-list-search-button {
    background-color: #E76466 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px;
    border-radius: 6px !important;
    cursor: pointer;
    font-size: inherit;
    font-weight: bold;
    transition: background-color 0.3s;
}
#custom-list-search-button:hover {
    background-color: #d45557;
}
.custom-list-search-info {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
    text-align: center;
}
.custom-list-search-container .alphabetical-index {
    margin-top: 12px;
    text-align: center;
    line-height: 2;
}
.alphabetical-index a {
    text-decoration: none;
    color: #E76466;
    margin-right: 6px;
    font-weight: bold;
    white-space: nowrap;
}
.alphabetical-index a.active {
    color: #d00;
}
.alphabetical-index span {
    margin-right: 6px;
    font-weight: bold;
    color: #666;
}
.alphabetical-section h3 {
    margin-top: 24px;
    font-size: 1.8em;
    border-bottom: 2px solid #E76466;
    padding-bottom: 5px;
    text-align: left;
    color: #333;
}

/* ----------------------------------------------------------- */
/* 2. Tabella Multilingua — Desktop (> 900px)                  */
/* ----------------------------------------------------------- */

/* Wrapper per scroll orizzontale su schermi intermedi */
.stitch-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stitch-multilang-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9em;
    min-width: 620px;
}
.stitch-multilang-table thead {
    background-color: #f0f0f0;
    border-bottom: 2px solid #ccc;
}
.stitch-multilang-table th,
.stitch-multilang-table td {
    padding: 10px 6px;
    border: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}
.stitch-multilang-table .col-num {
    width: 3%;
    text-align: center;
}
.stitch-multilang-table .col-img {
    width: 110px;
    text-align: center;
}
.stitch-multilang-table .col-en {
    /*width: auto;
    font-weight: bold; */
}
.stitch-multilang-table .col-fr,
.stitch-multilang-table .col-it,
.stitch-multilang-table .col-es,
.stitch-multilang-table .col-de {
    width: 15%;
}
.stitch-multilang-table td img {
    height: auto;
    max-width: 100px;
    display: block;
    margin: 0 auto;
}
.stitch-multilang-table tbody tr:hover {
    background-color: #fff9f9;
}
.stitch-multilang-table td a {
    color: #E76466;
    text-decoration: none;
}
.stitch-multilang-table td a:hover {
    text-decoration: underline;
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
}

/* ----------------------------------------------------------- */
/* 3. Laptop / Tablet stretto (601px – 900px)                  */
/*    Tabella rimane orizzontale ma più compatta               */
/* ----------------------------------------------------------- */
@media (max-width: 900px) {
    .stitch-multilang-table {
        font-size: 0.82em;
    }
    /* Nasconde colonna # */
    .stitch-multilang-table th.col-num,
    .stitch-multilang-table td:first-child {
        display: none;
    }
    .stitch-multilang-table .col-img {
        width: 70px;
    }
    .stitch-multilang-table td img {
        max-width: 64px;
    }
    .stitch-multilang-table .col-fr,
    .stitch-multilang-table .col-it,
    .stitch-multilang-table .col-es,
    .stitch-multilang-table .col-de {
        width: 13%;
    }
}

/* ----------------------------------------------------------- */
/* 4. Mobile (≤ 600px) — layout a card                        */
/*    RICHIEDE data-label="Français" ecc. sulle <td lang="">   */
/*    Aggiungili nel PHP: <td lang="fr" data-label="Français"> */
/* ----------------------------------------------------------- */
@media (max-width: 600px) {

    .stitch-table-wrapper {
        overflow-x: visible;
    }

    .stitch-multilang-table,
    .stitch-multilang-table thead,
    .stitch-multilang-table tbody,
    .stitch-multilang-table th,
    .stitch-multilang-table td,
    .stitch-multilang-table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .stitch-multilang-table thead {
        display: none;
    }

    .stitch-multilang-table {
        min-width: unset;
    }

    /* Ogni riga = card */
    .stitch-multilang-table tbody tr.stitch-row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 10px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    /* Numero: nascosto */
    .stitch-multilang-table td:first-child {
        display: none;
    }

    /* Immagine: colonna sinistra */
    .stitch-multilang-table td.col-img {
        flex: 0 0 80px;
        width: 80px;
        border: none;
        padding: 0;
        text-align: center;
    }
    .stitch-multilang-table td.col-img img {
        max-width: 75px;
        border-radius: 4px;
    }

    /* Nome EN: occupa il resto */
    .stitch-multilang-table td.col-en-title {
        flex: 1 1 calc(100% - 96px);
        font-weight: bold;
        font-size: 1em;
        border: none;
        padding: 4px 0 0 0;
        display: flex;
        align-items: center;
    }

    /* Celle lingue: full width con etichetta */
    .stitch-multilang-table td[lang] {
        flex: 0 0 100%;
        width: 100%;
        border: none;
        border-top: 1px solid #f2f2f2;
        padding: 5px 4px;
        font-size: 0.85em;
        color: #444;
    }
    .stitch-multilang-table td[lang]::before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: #999;
        font-size: 0.78em;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-right: 4px;
    }

    .stitch-multilang-table tbody tr:hover {
        background-color: #fff;
    }
    .stitch-simple-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    columns: 2;
    gap: 12px;
}
.stitch-simple-list li {
    padding: 4px 0;
    break-inside: avoid;
}
.stitch-simple-list a {
    color: #E76466;
    text-decoration: none;
}
.stitch-simple-list a:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .stitch-simple-list {
        columns: 1;
    }
}
}


