/* ============================
   RESET BASE
   ============================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f5f7;
    margin: 0;
    padding: 0;
    color: #1d1d1f;
}

/* ============================
   CONTAINER CENTRATO (come prima)
   ============================ */

.container {
    max-width: 850px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    animation: fadeIn 0.4s ease-out;
}

/* ============================
   HEADER PACKSTATION (centrato)
   ============================ */

.header-brand {
    display: flex;
    flex-direction: column;      /* LOGO + TESTO IN COLONNA */
    align-items: center;         /* CENTRA TUTTO */
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

.brand-icon {
    font-size: 48px;             /* LOGO PIÙ GRANDE */
    color: #007aff;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 6px;
}

.brand-title {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.brand-sub {
    font-size: 12px;
    opacity: 0.6;
    text-align: center;
}

/* ============================
   TITOLI
   ============================ */

h1, h2 {
    font-weight: 600;
    color: #1d1d1f;
    margin-top: 0;
}

/* ============================
   TOP BAR
   ============================ */

.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

/* ============================
   INPUT STYLE BIG SUR
   ============================ */

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    margin-bottom: 18px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    transition: border 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
}

input[type="text"]:focus, input[type="number"]:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0,122,255,0.2);
    outline: none;
}

/* ============================
   TABELLA
   ============================ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    background: #007aff;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #e5e5ea;
}

.table tr:nth-child(even) {
    background: #f9f9fb;
}

/* ============================
   BOTTONI BIG SUR
   ============================ */

button {
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
}

button:hover {
    transform: scale(1.03);
}

/* Blu Apple */
.btn-blue {
    background: #007aff;
    color: white;
}

.btn-blue:hover {
    background: #006be6;
}

/* Verde Apple */
.btn-green {
    background: #34c759;
    color: white;
}

.btn-green:hover {
    background: #28a745;
}

/* Grigio Apple */
.btn-grey {
    background: #8e8e93;
    color: white;
}

.btn-grey:hover {
    background: #7a7a7e;
}

/* ============================
   AUTOCOMPLETE
   ============================ */

.suggest-item {
    background: #ffffff;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #e5e5ea;
    border-radius: 8px;
    margin-bottom: 4px;
    animation: fadeIn 0.2s ease-out;
}

.suggest-item:hover {
    background: #f2f2f7;
}

/* ============================
   MESSAGGI
   ============================ */

.msg {
    background: #e6f4ff;
    color: #004085;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #b8daff;
}

/* ============================
   FOOTER (se lo userai)
   ============================ */

.footer-adriano {
    position: fixed;
    bottom: 12px;
    right: 18px;
    font-size: 12px;
    opacity: 0.6;
}

/* ============================
   ANIMAZIONI
   ============================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   MESSAGGI (successo / errore)
   ============================ */

.msg {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.msg-success {
    background: #e8fbe8;
    color: #1b7f1b;
    border: 1px solid #a6e3a6;
}

.msg-error {
    background: #ffe8e8;
    color: #b30000;
    border: 1px solid #ffb3b3;
}

/* Messaggio temporaneo nell’index */
.msg-temp {
    background: #e8fbe8;
    color: #1b7f1b;
    border: 1px solid #a6e3a6;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}
}