/* Realizzato da Lomazzi Federico */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f4f7f6;
    --text-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container { width: 90%; max-width: 600px; margin: auto; padding: 20px; }

header { background: var(--primary-color); color: white; padding: 1rem; text-align: center; }

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 10px; box-sizing: border-box; }

/* Mobile First: layout monocolonna è default */

/* PATCH STEP 08: Finiture UX/UI [cite: 25, 27] */
.item-row {
    transition: background 0.2s;
}
.item-row:active {
    background: #f0f0f0; /* Feedback al tocco su smartphone */
}

input, select, textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px; /* Evita zoom automatico su iOS */
    padding: 12px;
}

.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* Gallery Fix */
#main-slider::-webkit-scrollbar {
    display: none;
}
#main-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}