:root {
    --primary: #2563eb;
    --bg: #f8fafc;
    --card-bg: #ffffff;
}

body {
    font-family: system-ui, sans-serif;
    margin: 0;
    background: var(--bg);
    padding-bottom: 60px; /* Spazio per footer */
}

.main-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.filters input, .filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.collection-container {
    padding: 15px;
    display: grid;
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-content { padding: 15px; }

.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { background: #e2e8f0; font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; }

.hidden { display: none !important; }

.modal {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}

.modal-content { background: white; padding: 20px; border-radius: 12px; width: 80%; }