a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (min-width: 992px) {
    .navbar .navbar-collapsable .navbar-nav li.nav-item {
        display: list-item;
    }
    .navbar .navbar-collapsable .navbar-nav > li.nav-item > ul > li.nav-item > ul > li.nav-item > ul {
        padding-left: 20px;
        font-size: calc(.85 * var(--bi1-rem));
    }
}
    
@media screen and (max-width:767px) {
    .scheda-news .scheda-testo.scheda-testo-nofoto {
        margin-right: 0 !important;
    }
    .card .card-calendar {
        right: 16px;
    }
}

@media screen and (min-width:768px) {
    .mb32-l {
        margin-bottom: 32px !important;
    }
}

.external-link:after {
    content: " \1f59d";
    font-family: ita!important;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 1;
    font-size: 70%;
    speak: none;
    text-transform: none;
    white-space: pre;
}

.icon-external-link {
    width: 20px;
    height: 20px;
    fill: #fff;
    vertical-align: sub;
    margin-left: 5px;
}

.icon-external-link-img {
    position: absolute;
    display: inline-block;
    right: 20px;
    margin: -10px 0 0 !important;
    filter: drop-shadow(1px 1px 2px rgb(0 0 0 / .7));
}

.scheda-news .flag-icon {
    position: absolute;
    margin-top: -24px;
    height: 24px;
    right: 24px;
}

@media screen and (max-width: 576px) {
    .scheda-news .flag-icon {
        right: 130px;
    }
}

@media screen and (min-width: 577px) and (max-width: 767px) {
    .scheda-news .flag-icon {
        right: 160px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .scheda-news .flag-icon {
        right: 12px;
    }
}

.scheda.card:after {
    content: none;
}

.wp-caption-text, .wp-block-image > figcaption {
    display: none !important;
}

p.logged-in-as, p.comment-notes {
    padding-bottom: calc(2.4 * var(--bi1-rem)) !important;
}

.form-submit > input {
    float: right;
}

nav.u-layout-prose {
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden;
}

table#wp-calendar *,
.wp-block-calendar * {
    text-align: center !important;
}

table#wp-calendar td, table#wp-calendar th,
.wp-block-calendar td, .wp-block-calendar th {
    padding: 0.3em !important;
    background: transparent;
    border-left: 0;
    border-right: 0;
}

table#wp-calendar th,
.wp-block-calendar th {
    font-weight: bold !important;
}

table#wp-calendar a,
.wp-block-calendar a {
    text-decoration: none !important;
}

table#wp-calendar a:hover,
.wp-block-calendar a:hover {
    text-decoration: underline !important;
}

.Footer-block .calendar_wrap {
    border-top: calc(.1 * var(--bi1-rem)) solid currentColor!important;
    border-top-width: calc(0.1 * var(--bi1-rem)) !important;
    border-top-style: solid !important;
    border-top-color: rgb(90, 103, 114) !important;
    padding-top: 18px;
}

table#wp-calendar #wp-calendar > caption {
    padding-bottom: 10px;
}

table#wp-calendar tfoot td {
    padding-top: 14px !important;
}

#wp-calendar a {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 3px;
}

.map-full-content {
    padding: 0 !important;
    margin: 0 auto -7px !important;
}

.map-full-content > iframe,
.map-container {
    width: 100%;
    height: 500px;
    margin: 0;
}

/* Da div a button (section-map.php): azzera bordo, padding e resa nativa del controllo.
   display:block non e' cosmetico. Un <button> nasce inline-block, e sugli elementi
   inline-level i margini verticali non entrano nel calcolo della line box: il
   margin-bottom negativo con cui mapWrap() (inc/scripts.js) fa risalire l'iframe sotto
   l'overlay veniva ignorato, e la mappa scendeva di 500px lasciando una banda vuota. */
.map-wrap {
    display: block;
    background: transparent;
    width: 100%;
    height: 30px;
    position: relative;
    cursor: pointer;
    border: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* frameborder e' deprecato: il bordo si toglie qui. */
.map-full-content iframe {
    border: 0;
}

@media screen and (max-width:767px){
    .map-wrap {
        display: none;
    }
    /* La nota sull'attivazione era un <h5>, ora e' un <p class="h5-map">: il vecchio
       selettore h5.h5-map non corrispondeva a nulla e la nota restava visibile su mobile,
       dove l'overlay non esiste. */
    .h5-map {
        display: none !important;
    }
}

.image-content {
    display: inline-block !important;
}

.image-content > a {
    text-decoration: none !important;
}

.Header-logo img {
    width: auto !important;
}

button.mfp-close {
    font-size: 60px !important;
    top: -10px !important;
}

.mfp-title {
    font-size: 26px !important;
    line-height: 52px !important;
}

.mfp-counter {
    font-size: 16px !important;
    line-height: 32px !important;
}

.mfp-arrow-left:before, .mfp-arrow-right:before {
    border: none !important;
}

.Forward {
    cursor: pointer;
}

.italiawp3-sidebar .wp-block-latest-posts__post-author,
.italiawp3-sidebar .wp-block-latest-posts__post-date {
    padding: 0 24px;
}

.italiawp3-sidebar .italiawp3-search .Linklist-link.Linklist-link--lev2 {
    border: none !important;
}

.italiawp3-sidebar .italiawp3-search .Linklist-link.Linklist-link--lev2:hover {
    text-decoration: none !important;
}

.header-cerca {
    z-index: 1;
}

#menu-sinistro label {
    margin: calc(1 * var(--bi1-rem)) calc(.5 * var(--bi1-rem)) calc(.5 * var(--bi1-rem)) 0;
}

select {
    width: 100%;
}

#footer .footer-list .icon,
.owl-carousel .owl-item .icon {
    width: 24px;
    height: 24px;
    vertical-align: sub;
}

.owl-carousel .owl-item .icon {
    fill: #fff;
}

/* Allineamenti immagini se ci sono gli stili AGID */

.a-alignnone, .a-aligncenter, .a-alignleft, .a-alignright {
    display: block;
}
.a-alignnone {
    text-align: left;
}
.a-alignleft {
    float: left;
}
.a-aligncenter {
    text-align: center;
}
.a-alignright {
    float: right;
}

img.alignnone, img.alignleft {
    margin: 10px 15px 15px 0 !important;
}
img.aligncenter {
    margin: 15px 0 20px 0 !important;
}
img.alignright {
    margin: 10px 0 15px 15px !important;
}

section.alignnone {
    margin: 10px 0 15px 0 !important;
}

section.aligncenter {
    display: block !important;
    text-align: center !important;
    margin: 15px 0 20px 0 !important;
}

section.aligncenter > a {
    display: inline-block !important;
}

section > a > figure {
    border-radius: 4px !important;
    -webkit-box-shadow: 0 1px 2px 0 rgba(50,50,50,.35) !important;
    box-shadow: 0 1px 2px 0 rgba(50,50,50,.35) !important;
}

section.alignright {
    float: right !important;
    margin: 10px 0 15px 15px !important;
}

section.alignleft {
    float: left !important;
    margin: 10px 15px 15px 0 !important;
}

figure figcaption > p {
    margin-bottom: 0 !important;
}

img.size-full,
img.size-large,
img.size-medium,
img.size-thumbnail {
    max-width: 100%;
    height: auto;
}

.owl-prev,.owl-next {
    cursor: pointer !important;
}

.owl-next {
    margin-left: 40px !important;
}

.owl-dots {
    margin-top: 5px !important;
}

.galleriahome .owl-dots {
    margin-top: 40px !important;
}

.Header-banner .Header-languages {
    min-height: 38px;
}

.Header-language {
    padding-right: 0 !important;
}

/* Menu Utilità con immagine */

.section.Utilities img {
    max-width: calc(100% - 20px) !important;
    height: auto !important;
    border-radius: 4px !important;
    vertical-align: bottom;
}

/* Box Servizi con immagine */

.box-servizi img {
    height: auto !important;
    width: calc(100% + 32px) !important;
    max-width: calc(100% + 32px) !important;
    margin: -16px -16px 14px !important;
    border-radius: 4px 4px 0 0 !important;
}

.box-servizi .no-padding {
    line-height: 0 !important;
    padding-bottom: 0 !important;
}

.box-servizi .no-padding img {
    width: calc(100% + 32px) !important;
    margin: -16px -16px 0 !important;
    border-radius: 4px !important;
}

.box-servizi img.icona {
    max-width: calc(100% - 20px) !important;
    height: auto !important;
    border-radius: 4px !important;
    width: 32px !important;
    margin: -5px 0 0 !important;
    vertical-align: middle;
}

.Form-input:not(.is-disabled), .Form-input:not(:disabled) {
    color: #000;
}

#footer .Form-input:not(.is-disabled), #footer .Form-input:not(:disabled) {
    color: #fff;
}

#articolo-dettaglio-testo {
    padding-bottom: 60px;
}

/* NUOVI */

#mappa {
    padding-bottom: 0 !important;
}

.box-servizi {
    font-weight: 700;
}

.list_link-utili li:last-child a {
    font-weight: 300;
}

.scheda.scheda-round img {
    width: 100%;
    border-radius: 4px 4px 0 0 !important;
}

#briciole .breadcrumb .breadcrumb-item.active {
    color: #555;
    font-weight: bold !important;
}

/* Gallerie */

#articolo-dettaglio-testo .paragrafo a,
.galleriahome .paragrafo a {
    position: static !important; 
    top: 0 !important;
}

#articolo-dettaglio-testo .galleriasfondo {
    height: 380px !important;
}

.galleriahome {
    padding-top: 70px;
}

.galleriahome h3 {
    color: #fff !important;
}

#sezione-notizie, #sezione-servizi, #home-novita, #home-contenuto {
    background-image: url(../static/img/ombra.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
}

.cerca-risultato-item .argomenti {
    display: inline-block;
    float: left;
    clear: both;
    width: 100%;
}
@media screen and (max-width:767px){
    .cerca-risultato-item .argomenti {
        margin-top: 16px !important;
        margin-bottom: 16px !important;
    }
    #sezione-servizi {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 768px) {
    #menu-principale {
        padding: 0;
    }

    #menu-principale > li:first-child > a {
        padding-left: 0;
    }

    #menu-principale > li:last-child > a {
        padding-right: 0;
    }

    #sub_nav .navbar,
    .navbar .navbar-collapsable .menu-wrapper {
        background: transparent !important;
    }
    
    .navbar .dropdown-menu {
        -webkit-box-shadow: 0 20px 30px 5px rgba(0,0,0,.2);
        box-shadow: 0 20px 30px 5px rgba(0,0,0,.2);
    }
    
    .navbar .dropdown-menu.show {
        display: flex;
    }
    
    .navbar .dropdown-menu .menu-item h5 a {
        font-weight: 700;
        text-transform: uppercase;
    }
    
    .navbar .dropdown-menu .menu-item ul {
        padding: 0;
    }
    
    .navbar .dropdown-menu .menu-item ul li {
        list-style: none;
    }
    
    .box-servizi {
        margin-bottom: 16px;
    }
}

@media (min-width: 992px) {
    .navbar .dropdown-item {
        padding: 12px 14px;
    }
    
    .navbar .dropdown-menu .menu-item {
        min-width: 240px;
    }
    
    .navbar .dropdown-menu .menu-item h5 a,
    .navbar .dropdown-menu .menu-item ul li a {
        white-space: normal;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .navbar .navbar-collapsable .navbar-nav li a.nav-link {
        padding: 13px 13px;
    }
    
    .navbar .dropdown-item {
        padding: 6px 10px;
    }
    
    .navbar .dropdown-menu .menu-item {
        min-width: 160px;
    }
    
    .navbar .dropdown-menu h5 {
        font-size: calc(1 * var(--bi1-rem));
    }
    
    .navbar .dropdown-menu {
        font-size: calc(.9 * var(--bi1-rem));
        line-height: calc(1.4 * var(--bi1-rem));
    }
}

#wp-calendar, table {
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    max-width: 100%;
    width: 100%;
}

#wp-calendar > caption {
    position: relative;
    text-align: center;
    caption-side: top;
}

#wp-calendar a {
    cursor: pointer;
    display: block;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    /* Qui c'era outline:none, che toglieva l'indicatore di focus ai link del
       calendario senza sostituirlo (WCAG 2.4.7). L'anello standard di tema.css lo
       copre comunque, ma la dichiarazione restava una trappola per chi la ereditasse. */
    border: 0;
    margin: 0;
    width: 100%;
    padding: 5px;
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
}

.u-sizeFull {
    width: 100% !important;
}

/* Qui il pulsante di ricerca del menu mobile azzerava il fondo al passaggio. Ora il
   pulsante e' un cerchio pieno anche sotto i 992px, e l'hover e' quello unico calcolato
   in inc/style.php ($color_compl con l'icona rimisurata sopra): questa regola lo
   svuotava, lasciando l'icona su un fondo imprevedibile. */

/* Tabelle */

table {
    border: 0;
    border-collapse: collapse;
    max-width: 100%;
    width: 100%;
    margin: 12px 0;
}

table tr {
    border-bottom: 1px solid #d6dce3;
}

table thead tr:first-child td, table thead tr:first-child th {
    border-top: 0;
}

table td, table th {
    text-align: left;
    padding: 1em 0 1em 1em !important;
}

table td:last-child, table th:last-child {
    padding-right: 1em !important;
}

@media (max-width: 991px) {
    .chip.chip-simple {
        padding-top: 4px;
    }
}

.form-group input.btn-primary {
    color: #fff !important;
}

@media (min-width: 576px) and (max-width: 991px) {
    .header-tablet {
        margin: 0;
        width: calc(100% -50px);
    }
}

#sezione-notifica {
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 14px;
    line-height: 18px;
    font-weight: bold;
}

#sezione-notifica p {
    margin: 0;
}

.logotxt .logo-titolo small,
.logotxt .logo-titolo span.tagline {
    font-size: calc(.9 * var(--bi1-rem));
    vertical-align: super;
    font-weight: 600;
}

.logotxt .logo-titolo span.tagline {
    display: block;
    margin-top: 10px;
}

.logotxt .logo-titolo small span.tagline {
    font-size: calc(.7 * var(--bi1-rem));
    margin-top: 0;
}

.logotxt .logo-titolo {
    line-height: 0.7;
}

/* Fix Menu Lingue Polylang */

.cbp-spmenu .pll-parent-menu-item img + span {
    float: none;
    font-size: inherit;
}

.cbp-spmenu .pll-parent-menu-item img + span:after {
    display: none;
}

.langMenuLi {
    width: 100%
}

/* Fix Menu Principale, sottomenu sulla destra */

.drodownmenu-on-right {
    left: auto !important;
    right: 0 !important;
}

.drodownmenu-on-right:before {
    left: auto;
    right: 24px;
}

.navbar-toggle {
    z-index: 999999 !important;
}

.navbar .navbar-collapsable .menu-wrapper .nav-item.megamenu .dropdown-menu {
    padding: calc(0.5 * var(--bi1-rem)) 0 !important;
}

/* Logo Amministrazione Afferente */

#mainheader .entesup a > img {
    height: 100%;
    width: auto;
    position: absolute;
}

/* Menu in alto */

#menu-alto {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu-alto li {
    display: none;
    margin: 0 3px;
    font-weight: normal;
}

#menu-alto li:nth-of-type(-n+3) {
    display: inline-block;
}

#menu-alto li > ul {
    display: none;
}
