/* Struttura Tabella */
.table td {
    width: 33%;
    text-align: center;
}

.table-data td {
    width: fit-content;
}

/* Immagini */
.table .image-container {
    margin: 0.5rem 0;
}

.table .image-container svg {
    height: 5em;
}

.table .data-container .data-item svg {
    width: 1rem;
    fill: #e3101e;
}

/* Typography */
.table p, .table-data p { margin: 0;}

.table thead,
.table-data thead {
    font-size: 1.25em;
}

.table .data-container h5 {
    font-size: 1em;
    font-weight: 300;
    margin-bottom: 0.25em;
    letter-spacing: 0.03em;
}

.table .data-container .data {
    font-size: 1.5em;
}

.table .data-container .data-mid,
.table-data .data {
    font-size: 1em;
}

/* Layout */
.table .data-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;

    padding-top: 1rem;
    padding-bottom: 1rem;
}

.table .data-container.d-flex {
    display: flex;
    flex-direction: column;
}

.table .data-stack {
    display: flex;
    gap: 2rem;
}

.table .data-container .data-item span {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

/* Reset colori tabella */
.table tbody tr:nth-child(2n + 1) {
    background-color: rgba(230, 235, 237, 0); 
}
.table tbody tr:nth-child(2n) {
    background-color: rgba(230, 235, 237, 0.25); 
}

/* Helpers */
.rotate-180 {
    transform: rotate(180deg);
}

/* Responsive */
@media screen and ( max-width: 700px ) {

    /* Struttura Tabella */
    .table thead,
    .table-data thead {
        display: none;
    }

    .table td {
        display: block;
        text-align: right;
        width: 100%;
        position: relative;
        padding-top: 4rem;
        border-bottom: solid 1px rgba(210, 215, 217, 0.75)
    }

    .table-data td {
        display: block;
        width: 100%;
        text-align: right;
        padding-top: 1.5rem;
        position: relative;
    }

    .table td:last-child {
        border-bottom: none;
    }

    .table-wrapper + .table-wrapper {
        margin-top: 5rem !important;
    }

    .table td .data-container .data-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .table .data-container {
        flex-direction: column;
        align-items: unset;
    }

    .table .data-stack {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Etichette dati */
    .table td::before {
        content: attr(data-label);
        position: absolute;
        width: 100%;
        left: 50%;
        top: 1rem;
        transform: translateX(-50%);
        text-align: center;

        font-size: 1.3rem;
        font-weight: 600;
        font-family: "Open Sans", sans-serif;
    }

    .table-data td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.75em;
        font-weight: 600;
        font-family: "Roboto Slab", serif;
    }

    /* Typography */
    .table-data td:first-child {
        display: block;
        width: 100%;
        text-align: right;
        padding-top: 1.5rem;
        position: relative;
    }

    .table-data td:last-child {
        padding-bottom: 1.5rem;
    }

    .table .data,
    .table .data-mid,
    .table h5,
    .table-data .data,
    .table-data td::before {
        font-size: 1.25em !important;
    }

    .table .image-container {
        width: 100%;
        text-align: center;
    }

    /* Reset Colori Tabella */
    .table tbody tr:nth-child(2n) {
        background-color: rgba(230, 235, 237, 0); 
    }

    .table-data tbody tr:nth-child(2n + 1) {
        background-color: rgba(230, 235, 237, 0);
    }

    /* Helpers */
    .mobile-hide {
        display: none;
    }

}