:root {
    --bg: #58a6ff;
    --fg: #1b2430;
    --muted: #6b7684;
    --line: #d9dee5;
    --accent: #1f6feb;
    --card: #fff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14181d;
        --fg: #e8ecf1;
        --muted: #98a3b1;
        --line: #2c343e;
        --accent: #58a6ff;
        --card: #1c222a;
    }
}

body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    margin: 0;
    background-color: #58a6ff;
}
.header-index{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #003366;
    font-family: "Oswald";
    font-size: 90px;
    color: yellow;
    text-shadow: 4px 3px 2px #36BFCE;
    padding-bottom: 10px;
    padding-top: 10px;
}

.box {
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 20px;
    margin-top: 30px;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: var(--fg);
}

input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

ul {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    max-height: 300px;
    overflow-y: auto;
}

ul:empty {
    display: none;
}

li {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
}

li:last-child {
    border-bottom: 0;
}

li:hover,
li[aria-selected="true"] {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
}

li small {
    display: block;
    color: var(--muted);
}

#risultato {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--muted);
}

