.amv-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: #fff;
    color: #0c2340;
    box-shadow: 0 1px 2px rgba(12, 35, 64, .06), 0 14px 32px rgba(12, 35, 64, .16);
}

.amv-popup .leaflet-popup-content {
    margin: 0;
    font-family: 'Titillium Web', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: .8125rem;
    line-height: 1.45;
}

.amv-popup .leaflet-popup-content p { margin: 0 }

.amv-popup .leaflet-popup-tip {
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    background: #fff;
    border-right: 1px solid #dbe5f0;
    border-bottom: 1px solid #dbe5f0;
    box-shadow: 0 8px 18px rgba(12, 35, 64, .10);
}

.leaflet-container .amv-popup a.leaflet-popup-close-button {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    font: 700 15px/24px 'Titillium Web', system-ui, sans-serif;
    color: #4a5b70;
    border-radius: 999px;
    transition: background-color .15s, color .15s;
}

.leaflet-container .amv-popup a.leaflet-popup-close-button:hover,
.leaflet-container .amv-popup a.leaflet-popup-close-button:focus {
    background: #f3f7fc;
    color: #0c2340;
}

.amv-pop__bar { height: 4px }

.amv-pop__head { padding: 13px 40px 14px 16px }

.amv-pop__zone {
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #0c2340;
}

.amv-pop__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 3px 9px 3px 8px;
    border: 1px solid;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.amv-pop__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    flex: none;
}

.amv-pop__risks {
    margin: 0;
    padding: 0 12px 12px;
    list-style: none;
    display: grid;
    gap: 4px;
}

.amv-pop__risk {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 10px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #f3f7fc;
}

.amv-pop__risk-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: #4a5b70;
}

.amv-pop__risk-label svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: #0a59c2;
}

.amv-pop__risk-desc {
    grid-column: 1 / -1;
    font-size: .6875rem;
    line-height: 1.35;
    color: #4a5b70;
}

.amv-pop__level {
    justify-self: end;
    padding: 2px 7px;
    border: 1px solid;
    border-radius: 6px;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.amv-pop--verde     .amv-pop__bar { background: #2e9e5b }
.amv-pop--giallo    .amv-pop__bar { background: #e0aa00 }
.amv-pop--arancione .amv-pop__bar { background: #e2700d }
.amv-pop--rosso     .amv-pop__bar { background: #d4332b }

.amv-pop__badge--verde,
.amv-pop__level--verde     { background: #e7f5ed; color: #1c6b3e; border-color: rgba(46, 158, 91, .3) }
.amv-pop__badge--giallo,
.amv-pop__level--giallo    { background: #faf1cf; color: #7a5e00; border-color: rgba(224, 170, 0, .35) }
.amv-pop__badge--arancione,
.amv-pop__level--arancione { background: #fbe5d1; color: #8a430a; border-color: rgba(226, 112, 13, .35) }
.amv-pop__badge--rosso,
.amv-pop__level--rosso     { background: #f9dbd8; color: #8c1f1a; border-color: rgba(212, 51, 43, .3) }
.amv-pop__level--nd        { background: #fff; color: #4a5b70; border-color: #dbe5f0 }

.amv-pop__badge--verde     .amv-pop__dot { background: #2e9e5b }
.amv-pop__badge--giallo    .amv-pop__dot { background: #e0aa00 }
.amv-pop__badge--arancione .amv-pop__dot { background: #e2700d }
.amv-pop__badge--rosso     .amv-pop__dot { background: #d4332b }
