.contenuto p {
    max-width: 85ch; 
}
.contenitore-centrato-testo {
    max-width: 85ch; /* stessa larghezza del testo */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between; /* distribuisce i 3 blocchi uniformemente */
    gap: 8px;
}

    /* Singolo blocco */
    .contenitore-centrato-testo > div {
        flex: 1; /* ciascun blocco prende spazio proporzionale */
        text-align: center; /* centra immagine e label internamente */
        padding: 4px;
        display: flex;
        flex-direction: column; /* impila immagine + label */
        align-items: center;
    }

/* Contenitore dei label e LinkButton */
.contenitore-sotto-blocchi {
    max-width: 85ch; /* stesso contenitore dei blocchi */
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* centra tutti gli elementi */
    margin-top: 10px; /* distanza dai blocchi sopra */
}

    .contenitore-sotto-blocchi > * {
        display: block;
        margin: 4px 0; /* separazione verticale tra label e linkbutton */
    }
/*
    .contenuto p a {
        color: #16395E;
        text-decoration: underline;
    }

.contenuto table {
    width: 100%;
}
*/
.Header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.GVSugar td, th {
    FONT-SIZE: 100%;
    COLOR: #003300;
    font-family: "Titillium Web","Helvetica Neue",Helvetica,Arial,sans-serif;
    /*margin-left: 20px;*/
    padding: 5px;
    white-space: normal;
    word-wrap:break-word;
}
@media (max-width: 720px) {
    /* Nascondo l'header originale */
    .GVSugar thead {
        position: absolute;
        left: -9999px;
        top: -9999px;
    }

    /* Trasformo ogni riga in blocco */
    .GVSugar tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        padding: 0.5rem;
        background: #fff;
    }

    /* Ogni cella diventa una riga “flex” */
    .GVSugar td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.4rem 0;
        border: none;
        border-bottom: 1px solid #eee;
        word-break: break-word;
    }

        /* Mostro il nome dell’header prima del valore */
        .GVSugar td::before {
            content: attr(data-label);
            font-weight: 600;
            text-align: left;
            flex: 0 0 45%;
            min-width: 45%
        }

        .GVSugar td:last-child {
            border-bottom: none;
        }
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9998; /* sopra il contenuto, sotto il modale */
    display: block;
}

.scheda_breve {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 400px);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    z-index: 9999;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scheda-header {
    background: #015A9C;
    color: #fff;
    text-align: center;
    border-radius: 10px 10px 0 0;
    padding: 5px;
    font-weight: bold;
    font-size: 1.2em;
    word-wrap: break-word;
}

.scheda-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.scheda-text {
    word-break: break-word;
}

.scheda-link {
    color: #015A9C;
    text-decoration: underline;
    word-break: break-word;
}

.btn-link {
    display: inline-block;
    margin: 5px 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-link:focus {
    outline: 2px solid gold;
    outline-offset: 2px;
}

.principale { color: #015A9C; }
.secondario { color: #0066ff; }

@media (min-resolution: 2dppx), (max-width: 480px) {
    .center-panel { width: 95vw; font-size: 1.1em; }
}

.CookiesAlert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    max-width: min(400px, 90vw); /* garantisce che non superi la viewport */
    min-width: 200px; /* evita che diventi troppo stretto */
    min-height: 150px;
    max-height: 80vh;
    border-radius: 15px;
    text-align: center;
    background-color: #16395e;
    color: #fff;
    padding: 10px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow-y: auto; /* scroll verticale se serve */
    overflow-x: hidden; /* blocca scroll orizzontale */
    word-wrap: break-word; /* forza il testo lungo a andare a capo */
}
    .CookiesAlert a {
        color: #ffffff;
        text-decoration: underline;
        word-break: break-word;
        overflow-wrap: break-word;
    }

        .CookiesAlert a:focus,
        .CookiesAlert button:focus {
            outline: 2px solid gold;
            outline-offset: 2px;
        }

.cookie-btn {
    border-radius: 5px;
    background-color: gold;
    color: #16395e;
    font-weight: bold;
    padding: 5px 12px;
    border: none;
    cursor: pointer;
}

    .cookie-btn:hover {
        background-color: #ffde55;
    }

#MapContainer {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
}

    #MapContainer img {
        width: 100%;
        height: auto;
        display: block;
    }

    #MapContainer svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

#mapTooltip {
    position: absolute;
    display: none;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px;
    border-radius: 5px;
    z-index: 9997;
    pointer-events: none;
    white-space: nowrap;
}

.cerchi:focus-visible {
    outline: 5px solid red;
}

#LegendaMappa {
    position: absolute;
    top: 66%; /* esempio: 300px / 451px */
    left: 6.25%; /* esempio: 50px / 800px */
    z-index: 20;
    background-color: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 8px;
    font-family: Arial;
    font-size: 13px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.legenda-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.vuoto-orari {
    color: #015A9C !important;
}
.noLink {
    text-decoration: none !important; /* niente sottolineatura */
    cursor: default; /* puntatore normale */
    color: inherit; /* stesso colore del testo normale */
}

.Skiplinks {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

    .Skiplinks:focus,
    .Skiplinks:active {
        position: static !important;
        width: auto !important;
        height: auto !important;
        left: auto !important;
        overflow: visible !important;
        padding: 1em !important;
        background: #000 !important;
        color: #fff !important;
        z-index: 10000 !important;
    }

form, .aspNetHidden {
    margin: 0 !important;
}

ul {
    list-style-type: disc;
    color:#015A9C;
    margin-left:20px;
}
.gv-text-blue {
    border-collapse: collapse;
}
.gv-text-blue td, th {
    color: #015A9C;
    font-family: "Titillium Web","Helvetica Neue",Helvetica,Arial,sans-serif;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    white-space: normal;
    line-height:0.9em;
}
.pointer-none {
    pointer-events: none;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: #16395e;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}