html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #800000;
    padding: 5px;
    border-radius: 0px 0px 25px 25px;
}

.header {
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.header2 {
    justify-content: center;
}

.header3 {
    width: 190.44px;
}

.title {
    text-align: center;
    color: #fff;
    font-size: 40px;
    margin: 16px;
}

.text-subtitle {
    text-align: center;
    color: #fff;
    margin: 12px;
}

path {
    cursor: pointer;
    transition: fill 0.3s;
}

path:hover {
    fill: #a83232;
    /* Colore più chiaro al passaggio del mouse */
}

main {
    display: flex;
    align-items: flex-start;
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

svg {
    width: 50%;
    height: 100%;
    object-fit: contain;
}

.pannello-info {
    width: 50%;
    padding: 20px;
    background: #f4f4f9;
    border-radius: 8px;
    margin-top: 20px;
}

.privacy-content {
    width: min(100%, 960px);
    margin: 20px auto;
    padding: 24px;
    background: #f4f4f9;
    border-radius: 8px;
    box-sizing: border-box;
}

.titolo-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titolo {
    margin: 0px 0px 15px 40px;
}

.elementi-trovati {
    margin: 0px 0px 15px 50px;
}

#estendi {
    color: #800000;
    text-decoration: none;
    margin-bottom: 10px;
}

#estendi:hover {
    text-decoration: underline;
}

.tabella {
    width: 100%;
    border-collapse: collapse;
}

.title-legend {
    margin: 0;
    margin-top: 16px;
}

.hel {
    margin: 2px;
    border: 1px solid #bbb;
    border-right: 1px solid #eee;
    padding: 5px;
    background-color: #bbb;
    text-align: center;
}

.abitanti {
    border-right: 1px solid #bbb;
}

.el {
    margin: 2px;
    border: 1px solid #bbb;
    padding: 5px;
    background-color: #eee;
}

.fel {
    margin: 2px;
    border: 1px solid #bbb;
    padding: 5px;
    background-color: #bbb;
    text-align: center;
}

.pointer {
    cursor: pointer;
}

.select-none {
    -webkit-user-select: none;
    /* Aggiunge compatibilità per i browser Apple/Safari per il comando user-select seguente */
    user-select: none;
}

.index {
    width: 15px;
    text-align: right;
}

.sigla {
    text-align: center;
}

.abitanti {
    text-align: center;
}

.sup {
    color: black;
    text-decoration: none;
}

.sup:hover {
    text-decoration: underline;
}

footer {
    background-color: #800000;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 20px;
    border-radius: 20px 20px 0px 0px;
}

.subfooter {
    display: flex;
    justify-content: center;
    gap: 30px;
}

footer p {
    margin: 10px;
}

.a_link {
    color: white;
    text-decoration: none;
}

.a_link:hover {
    text-decoration: underline;
}

.github {
    justify-content: center;
}

.github-logo {
    height: 17px;
    margin-right: 5px;
}

.button {
    cursor: pointer;
    display: inline-block;
    border: 1px solid #800000;
    border-radius: 20px;
    background-color: #fff;
    color: #800000;
    padding: 10px;
    transition: all 0.3s;
}

.button:hover {
    border: 1px solid #fff;
    background-color: #800000;
    color: white;
}

.nav-invisibile {
    position: absolute;
    left: -9999px;
}

@media (max-width: 768px) {

    .header {
        flex-direction: column;
    }

    .header1 .logo {
        height: 120px;
    }

    .header3 {
        display: none;
    }

    main {
        flex-direction: column-reverse;
    }

    .title {
        font-size: 20pt;
    }

    .text-subtitle {
        font-size: 10pt;
    }

    .pannello-info {
        width: 90%;
        max-height: none;
        margin: 0 auto;
    }

    svg {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    body {
        height: auto;
        overflow: auto;
    }

    .nav-invisibile {
        position: absolute;
        left: -9999px;
    }
}