:root {
    --fire-red: #dc3545;
    --fire-orange: #e73546;
    --section-bg: #f8f9fa;
    --section-border: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
}

/* ── Sezioni del form ── */
.form-section {
    background: #ffffff;
    border: 1px solid var(--section-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fire-red);
    border-bottom: 2px solid var(--fire-red);
    padding-bottom: .4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ── Mappa ── */
#map-container {
    height: 500px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--section-border);
    z-index: 0;
}

/* ── Coordinate badge ── */
.coord-badge {
    background: #212529;
    color: #f8f9fa;
    border-radius: 6px;
    padding: .4rem .75rem;
    font-family: 'Courier New', monospace;
    font-size: .82rem;
}

/* ── Violazioni ── */
.violation-list .form-check {
    padding: .4rem .75rem;
    border-radius: 5px;
    transition: background .15s;
}

.violation-list .form-check:hover {
    background: #fff3cd;
}

.violation-list .form-check-input:checked ~ .form-check-label {
    font-weight: 600;
    color: var(--fire-red);
}

/* ── Stato catasto ── */
.catasto-status {
    font-size: .82rem;
    padding: .3rem .6rem;
    border-radius: 4px;
}

/* ── Spinner ── */
.spinner-overlay {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: #6c757d;
}

/* ── Bottone genera ── */
.btn-genera {
    background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
    border: none;
    color: white;
    padding: .75rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(220,53,69,.35);
    transition: transform .15s, box-shadow .15s;
}

.btn-genera:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,53,69,.45);
    color: white;
}

.btn-genera:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ── Responsive mappa ── */
@media (max-width: 768px) {
    #map-container {
        height: 300px;
    }
}
