.w100 {
    width: 100%;
}
.h100 {
    height: 100%;
}
.mb50 {
    margin-bottom: 50px;
}
.mb10 {
    margin-bottom: 10px;
}
.mt20 {
    margin-top: 20px;
}
.zindex0 {
    z-index: 0;
}
.tacentro {
    text-align: center;
}
.heading-content.home {
    padding: 2rem 2rem;
}
.w-slider-arrow-left,
.w-slider-arrow-right {
    display: none !important;
    height: 0;
}
.h2rem2 {
    font-size: 2rem;
}
.footer-logo.bd {
    max-width: 50%;
    width: 100%;
    height: auto;
}
.work-gallery-image-wrapper iframe {
    width: 100%;
}
.about-heading-wrapper h1 {
    white-space: normal !important;
    word-spacing: normal !important;
}
/*.project-detail-content { grid-row-gap:6rem}*/
.container.admin {
    padding: 1rem 1rem;
}
.team-image {
    width: 100%;
    height: auto;
    max-width: none;
}
.small-logo.bd {
    height: 4rem;
}
.container.materiali .team-section-wrapper {
    grid-row-gap: 1rem;
}

@media screen and (max-width: 767px) {
    .container.materiali {
        padding: 8rem 1rem;
    }
    .h2rem2 {
        font-size: 1rem;
    }
}
@media screen and (max-width: 991px) {
    .container.materiali {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    .h2rem2 {
        font-size: 1.5rem;
    }
}
/* Editor CSV */
.admin-csv-editor {
    background: var(--sand);
    padding: 25px;
    border: 1px solid var(--dune);
    border-radius: 8px;
    margin: 40px 0;
}

.tabulator {
    border: 1px solid var(--charcoal) !important;
    background: var(--white) !important;
}
.tabulator-header {
    background-color: var(--charcoal) !important;
    color: var(--white) !important;
}
.tabulator-col {
    background-color: var(--charcoal) !important;
}
.tabulator-col-title {
    color: var(--white) !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Paginazione Custom Build Design */
.tabulator-footer {
    background-color: var(--sand) !important;
    border-top: 1px solid var(--dune) !important;
    color: var(--charcoal) !important;
}
.tabulator-page {
    background: var(--white) !important;
    border: 1px solid var(--dune) !important;
    color: var(--charcoal) !important;
    border-radius: 2px !important;
    margin: 0 2px !important;
}
.tabulator-page.active {
    background: var(--charcoal) !important;
    color: var(--white) !important;
    border-color: var(--charcoal) !important;
}
.tabulator-page:hover:not(.active) {
    background: var(--dune) !important;
}

/* Uniformità colori filtri (Bottoni sopra la tabella) */
.btn-filter {
    border: 1px solid var(--dune);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
}

/* Mappa Colori Sincronizzata (usata sia in JS che CSS) */
.bg-critico {
    background: #e74c3c !important;
    color: white !important;
}
.bg-approvato {
    background: #2ecc71 !important;
    color: white !important;
}
.bg-corso {
    background: #3498db !important;
    color: white !important;
}
.bg-revisione {
    background: #f1c40f !important;
    color: white !important;
}

.tabulator,
.tabulator-header,
.tabulator-row,
.tabulator-cell {
    border-color: #f7f5ef !important;
    outline: none !important;
}

/* 2. Header: Sfondo Black con separatori Sand */
.tabulator-header {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-bottom: 2px solid #f7f5ef !important;
}

.tabulator-col {
    background-color: var(--black) !important;
    border-right: 1px solid #f7f5ef !important;
}

/* 3. Alternanza Righe: Black e Charcoal */
.tabulator-row {
    background-color: #33322d !important;
    color: var(--white) !important;
    border-bottom: 1px solid #f7f5ef !important;
}

/* Riga Pari (Alternata) */
.tabulator-row.tabulator-row-even {
    background-color: red !important;
}

/* Hover: leggermente più chiaro per visibilità */
.tabulator-row:hover {
    background-color: #33322d !important;
}

/* 4. Celle: Linee di separazione verticali Sand */
.tabulator-cell {
    border-right: 1px solid var(--sand) !important;
    padding: 8px !important;
}

/* 5. Input Filtri nell'header scuro */
.tabulator-header .tabulator-header-filter input {
    background: var(--charcoal) !important;
    border: 1px solid #e0dac3 !important;
    color: var(--white) !important;
    padding: 4px !important;
}

/* 6. Paginazione coerente */
.tabulator-footer {
    color: #242320 !important;
    border-top: 1px solid #f7f5ef !important;
    padding: 10px !important;
}

/* Pulsanti delle pagine */
.tabulator-page {
    color: #242320 !important;
    border: 1px solid #f7f5ef !important;
    border-radius: 2px !important;
    padding: 4px 10px !important;
}

/* Pagina Attiva */
.tabulator-page.active {
    background: #242320 !important; /* Sand per la pagina corrente */
    color: #fff !important;
    border-color: #f7f5ef !important;
    font-weight: bold;
}

/* Hover sui tasti */
.tabulator-page:hover:not(.active) {
    background: #33322d !important;
    color: #ffffff !important;
}

.tabulator-row:nth-child(2n) .tabulator-cell:first-child {
    border-left: 10px solid #555 !important;
}
/* Contenitore flessibile */
.admin-csv-editor {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto; /* Abilita lo scroll orizzontale se serve */
    padding: 10px; /* Ridotto per mobile */
    box-sizing: border-box;
}

/* Forza Tabulator a non sforare */
#csv-table-editor {
    min-width: 800px; /* Larghezza minima per garantire la leggibilità delle colonne */
}

/* Toolbar dei filtri responsiva */
.toolbar-admin {
    display: flex;
    flex-wrap: wrap; /* Manda i bottoni a capo su schermi piccoli */
    gap: 8px;
    margin-bottom: 15px;
}

.btn-filter {
    flex: 1 1 auto; /* I bottoni si adattano allo spazio */
    text-align: center;
    font-size: 10px; /* Leggermente più piccolo per mobile */
}
