/* RESET BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    height: 100vh;
}

/* MENU PRINCIPALE */
.container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 50%;
    max-width: 400px;
    margin: 0 auto;
}

.btn {
    padding: 16px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #183f62;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background-color: #1f4f7a;
}

@media (min-width: 768px) {
    .btn {
        font-size: 18px;
    }
}

/* SCHERMATA ARTICOLI */
#articoliContainer {
    display: none;               /* visibile solo quando selezionata */
    position: relative;
    height: 100vh;
}

/* HEADER FISSO CON BOTTONE INDIETRO */
#headerArticoli {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background-color: #183f62;
    z-index: 10;
    display: flex;
    align-items: center;
}

#headerArticoli #btnIndietro {
    width: auto;
    padding: 8px 16px;
    font-size: 16px;
}

/* CONTENITORE TABELLA SCROLLABILE */
#tabellaArticoliContainer {
    margin-top: 60px; /* spazio per header */
    padding: 12px;

    display: flex;
    flex-direction: column;   /* verticale */
    align-items: center;      /* centra orizzontalmente */
    justify-content: flex-start; /* parte dall’inizio verticalmente */

    /*height: calc(100vh - 60px);*/
    width: 100%;
    overflow-y: auto;
}

/* TABELLA STESSA */
#tabellaArticoli {
    width: 100%;        /* prende tutto lo spazio disponibile */
    max-width: 800px;   /* massima larghezza per non diventare enorme su desktop */
}

/* TABELLA ARTICOLI */
.articoli-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.articoli-table th,
.articoli-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.articoli-table th {
    background-color: #183f62;
    color: white;
    position: sticky;
    top: 0;
}

.articoli-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.articoli-table tr:hover {
    background-color: #dce6f1;
    transition: background 0.2s;
}
