/* Aggiungi il cursore a forma di mano sulle intestazioni con gli ID specifici */
#nameHeader:hover, #cityProvinceHeader:hover {
    cursor: pointer;
}

/* Colonna bandiera O.V.: si stringe quanto basta per l'emoji */
th.flag-col,
td.flag-col {
    width: 1%;
    white-space: nowrap;
    padding: 4px 8px;
    text-align: center;
    font-size: 2.8em;
    line-height: 1;
    vertical-align: middle;
}

/* Emoji bandiera come blocco, per far scendere V.O.S. sotto */
td.flag-col span.flag-emoji {
    display: block;
}

/* Etichetta V.O.S. sopra la bandierina */
td.flag-col span.vos-label {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

/* WordPress converte le emoji in <img class="emoji"> e forza 1em —
   sovrascriviamo con selettore più specifico + !important */
td.flag-col img.emoji,
td.flag-col img.wp-smiley {
    height: 2em !important;
    width: 2em !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* Colonna Giorno: si espande con le altre */
th.day-col,
td.day-col {
    min-width: 110px;
}

body {
    font-family: ;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px auto;
    font-size: 18px;
    text-align: center;
    border: none;
}

th, td {
    padding: 12px;
    border: none;
}

thalf {
    padding: 0px;
    font-size: 9px;
    border: none;
}

th {
    text-transform: uppercase;
    text-align: center;
}

/* ATTENZIONE:
   questa regola nasconde SEMPRE l'ultima colonna della tabella.
   La lascio invariata perché è nel tuo CSS attuale. */
th:last-child {
    display: flex;
}

td {
    text-transform: uppercase;
    text-align: left;
    font-size: 16px;
}

td.name {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
}

input[type="text"] {
    margin: 20px auto;
    padding: 10px;
    font-size: 16px;
    width: 50%;
    display: none;
    border-radius: 9px;
}

.nexo-geo-btn {
    display: block;
    margin: 8px auto 0;
    padding: 10px 20px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3a7bd5 0%, #1a56b0 100%);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 10px rgba(30, 80, 180, 0.25);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.nexo-geo-btn:hover {
    background: linear-gradient(135deg, #2f6ec4 0%, #1347a0 100%);
    box-shadow: 0 5px 16px rgba(30, 80, 180, 0.35);
}
.nexo-geo-btn:active {
    transform: scale(0.97);
}
.nexo-geo-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

h1 {
    text-align: center;
    color: #fff;
}

p {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.time-button {
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.giorni, .ore {
    font-size: 20px;
}

.acquista-button {
    border: 0px solid black;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    text-decoration: none;
    box-shadow: 2px 3px 5px rgba(0, 0, 0.5, 0.3);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 24px;
    color: #fff;
}

.loading:before {
    content: "";
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.testo-element {
    width: 90%;
    padding: 2px 2px;
    border: 0px solid #ccc;
    border-radius: 3px;
    background-color: #ffffff;
    color: #000000;
    font-size: 12px;
    text-align: center;
}

.testo-cell {
    width: 30%;
    padding: 1px 1px;
    border-radius: 3px;
    color: #f8f4f4;
    font-size: 12px;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    table {
        width: 100%;
        font-size: 14px;
    }
    th, td {
        padding: 8px;
    }
    input[type="text"] {
        width: 90%;
    }
    .nexo-geo-btn {
        width: 90%;
        font-size: 14px;
        padding: 10px 16px;
    }
    .cinema-grid-head {
        display: none !important;
    }
    .cinema-grid-body {
        padding-top: 0 !important;
    }
    .cinema-row {
        grid-template-columns: 1fr !important;
        gap: .8rem !important;
        padding: 1rem !important;
    }
    .cinema-cell {
        padding-right: 0 !important;
    }
    .cinema-cell.city {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: initial !important;
    }
    .cinema-cell.meta {
        align-items: flex-start !important;
    }
    .cinema-fields {
        gap: .35rem !important;
    }
    .cinema-field {
        width: 100% !important;
    }
    .cinema-cell.day,
    .cinema-cell.times,
    .cinema-cell.link {
        display: block !important;
    }
    .cinema-cell.day select {
        width: 100% !important;
        max-width: none !important;
        margin-top: .35rem !important;
    }
    .cinema-cell.times .button-container {
        margin-top: .35rem !important;
    }
    .cinema-cell.meta::before {
        display: none !important;
        content: none !important;
    }
    .cinema-cell::before {
        content: attr(data-label) !important;
        display: block !important;
        margin-bottom: .35rem !important;
        font-size: .72rem !important;
        letter-spacing: .08em !important;
        text-transform: uppercase !important;
        color: rgba(255,255,255,.6) !important;
    }
    .cinema-cell.name::before,
    .cinema-cell.city::before,
    .cinema-cell.day::before,
    .cinema-cell.times::before,
    .cinema-cell.link::before {
        display: block !important;
    }
    .cinema-cell.name {
        font-size: 1.08rem !important;
    }
    .time-button,
    .acquista-button {
        min-height: 46px !important;
    }
}

@media (max-width: 480px) {
    table {
        display: block;
    }
}
