/* /assets/css/style.css */
:root {
    --primary: #27ae60;
    --primary-dark: #219150;
    --dark: #2c3e50;
    --light: #f4f7f6;
    --error: #e74c3c;
    --border: #dcdde1;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.card {
    background: #fff;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 1.5rem; position: relative; }

label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }

input, select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1); }

button.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

button.btn-primary:hover { background: var(--primary-dark); }

/* Suggestion Box per Comuni */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}
.result-item { padding: 0.7rem 1rem; cursor: pointer; border-bottom: 1px solid var(--light); }
.result-item:hover { background: var(--light); }
/* Stile Contenitore Immagine */
.card-img-container {
    position: relative;
    width: 100%;
    height: 200px; /* Altezza fissa per tutte le foto */
    overflow: hidden;
    border-radius: 12px 12px 0 0; /* Arrotonda solo gli angoli sopra */
    background-color: #f1f5f9;
    border-bottom: 3px solid #27ae60;
}

/* Stile Immagine */
.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Taglia l'immagine senza deformarla per riempire il box */
    transition: transform 0.3s ease;
}

/* Effetto Zoom al passaggio del mouse (opzionale ma molto elegante) */
.lotto-card:hover .card-img-container img {
    transform: scale(1.05);
}

/* Badge in sovrimpressione sulla foto */
.badge-stato-img {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}
.badge-stato-img.attiva { background: rgba(22, 163, 74, 0.9); color: white; }
.badge-stato-img.scaduta { background: rgba(220, 38, 38, 0.9); color: white; }
.badge-stato-img.aggiudicata { background: rgba(37, 99, 235, 0.9); color: white; }