.box,
.relative {
    border-radius: 10px
}

.autore,
.autore.auto-in,
.d-block strong,
.table-responsive .titolo-mes,
footer h5 {
    font-weight: 600
}

body {
    font-size: 19px;
    line-height: 30px;
    color: #454545
}

html {
    scroll-behavior: smooth
}

footer ul li {
    margin-bottom: 0
}

footer .comuni {
    font-size: 9px !important;
    text-align: center
}

.autore.auto-in {
    font-size: 17px;
    margin-bottom: 6px
}

.testo-footer-g {
    font-size: 18px;
    color: #fff
}

.testo-footer {
    font-size: 15px;
    line-height: 24px;
    color: #fff
}

.btn.btn-switch-text.btn-small>span {
    padding: 7px 18px
}

.tag-cloud a {
    background: #f5f5f5
}

header .logo {
    width: 100%;
    max-width: 300px;
    height: auto
}

header.sticky.sticky-active .logo {
    max-width: 200px !important
}

.bg-white,
.dropdown-menu,
.gallery-box,
footer {
    position: relative
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff
}

.dropdown-item-column ul {
    width: 50%;
    list-style: none;
    padding: 20px;
    float: left
}

.dropdown-menu.mega-menu {
    width: 550px !important;
    left: -50%
}

.dropdown-item-column {
    flex: 1;
    padding: 10px
}

.dropdown-item-column a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px
}

.dropdown-item-column a:hover {
    color: #007bff
}

.navbar .navbar-nav .dropdown .dropdown-menu a i,
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a i {
    font-size: 12px !important;
    margin-right: 8px !important;
    width: 3px !important
}

.box {
    position: absolute;
    width: 280px;
    height: 222px;
    right: 0
}

.testo-mega {
    text-align: left;
    font-size: 13px
}

.navbar .navbar-nav .dropdown .dropdown-menu {
    box-shadow: 0 7px 76px 0 rgb(0 0 0 / 12%)
}

.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
    color: #212529 !important;
    font-size: 16px;
    font-weight: 600;
    margin: 0
}

header.sticky .navbar-brand {
    position: relative;
    top: -4px
}

.immagine-sfondo.meta {
    height: 50%
}

.icona-social:hover {
    opacity: .5
}

.navbar .navbar-nav .nav-item>i {
    display: block;
    margin-left: -19px;
    font-size: 11px;
    top: 1px;
    position: relative
}

.absolute-middle-center.sotto-poco {
    top: 71%
}

.breadcrumb.plus {
    background: #fff;
    margin: 20px
}

.gg {
    width: 147px
}

.container.plus {
    max-width: 1520px
}

.archivio {
    padding: 10px;
    text-align: center
}

.snistra-spazio-30,
.spazio-destra {
    padding-right: 60px
}

#programma a:hover,
.info-dett-hub p a {
    color: #c31d5d
}

#programma a:hover.border-color-extra-medium-gray {
    border-color: #c31d5d !important
}

.icon-grande {
    font-size: 37px
}

.due-colonne {
    column-count: 2;
    column-gap: 2rem;
    display: block
}

.spazio {
    width: 100% !important
}

.navbar .navbar-nav .nav-item>i::after,
header .left-nav .navbar-nav:before,
header .navbar-brand .mobile-logo,
header img.alt-logo,
header.sticky-active img.default-logo {
    display: none
}

.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li,
hr.navigazione {
    margin: 0
}

.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a:hover {
    background: #ededed
}

.categories-btn {
    margin-left: 15px;
    margin-top: 15px
}

.basso-60 {
    padding-bottom: 60px
}

.relative {
    position: relative
}

.immagine-sfondo.spazio-img {
    z-index: 1
}

.spazio-img {
    padding: 20px 20px 0
}

.fill-giallo {
    fill: #ffca00
}

.fill-bianco {
    position: absolute;
    z-index: 20;
    fill: #fff;
    width: 200px;
    height: 200px;
    right: 0;
    bottom: 200px
}

header.sticky-active img.alt-logo {
    display: block;
    margin-top: 12px
}

img.default-logo {
    width: 300px !important;
    height: auto !important
}

img.alt-logo {
    width: 200px !important;
    height: auto !important
}

header .navbar {
    border-top: 3px solid #c31d5d;
    z-index: 9999
}

header .navbar [class*=col-] .navbar-nav .nav-item,
header .navbar [class*=col-] .navbar-nav .nav-item a {
    margin: 0 10px;
    color: #212529;
    font-size: 17px;
    font-weight: 500
}

.sopra-30 {
    margin-top: 30px
}

.none-basso {
    padding-bottom: 0
}

.altezza-box {
    min-height: 350px
}

.immagine-sfondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1
}

.sotto-20 {
    margin-bottom: 10px;
    margin-top: 10px
}

.grandezza-cella {
    width: 113px
}

.biography h3,
.fs-22 {
    font-size: 22px
}

.biography {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    position: relative
}

.biography p {
    line-height: 1.6;
    color: #555
}

.mapppa-bordi iframe {
    border-radius: 20px 20px 0 0;
    display: block
}

.info-dett-hub {
    padding-top: 20px
}

.info-dett-hub p a:hover {
    opacity: .7
}

.info-dett-hub p,
.services-box-content p,
.sezione-intro p,
.text-pof {
    font-size: 16px;
    line-height: 25px
}

.spazio-60 {
    margin: 60px 0 0
}

.icona,
.icona-g {
    margin-right: 20px
}

.icona,
.icona-g,
.pro-titolo h3 {
    margin-bottom: 0
}

.icona {
    width: 25px
}

.icona-g {
    width: 35px
}

.posizione,
a.comuni img {
    margin: 0 auto
}

.text-justify {
    text-align: justify
}

.content,
a.comuni {
    text-align: center
}

.logo-sfondo {
    opacity: .04;
    top: 70px;
    width: 100%;
    display: block;
    padding: 75px
}

.border-color-transparent-white-very-light {
    border-color: #ffc107 !important
}

.nero,
.swiper-number-pagination-style-01 .swiper-number .swiper-pagination-bullet {
    color: #111
}

.swiper-number-pagination-style-01 .swiper-number .swiper-pagination-bullet:after {
    background: #111
}

.testo-p,
.testo-p h2 {
    margin-top: 20px;
    font-size: 20px;
    line-height: 31px
}

.h2,
.testo,
.testo h1,
h2 {
    font-size: 3rem;
    line-height: 3.438rem
}

header {
    border-top: 2px solid #c31d5d
}

header .navbar-brand img {
   height: 70px
}

.fill-giallo {
    position: absolute;
    z-index: 20;
    fill: #c31d5d;
    width: 150px;
    right: 50px
}

.piccola {
    width: 180px
}

.img-sin,
header.sticky-active .piccola {
    width: 140px
}
/*
.swiper {
    border-radius: 500px 0 0
}
*/

.swiper {border-radius:60px 0 0;}


.testo,
.testo h1 {
    color: #c31d5d;
    font-weight: 500
}

.testo h1 strong,
.testo strong {
    font-weight: 800
}

.img-sin {
    display: inline-block;
    height: auto
}

.btn.btn-small {
    font-size: 16px;
    padding: 13px 26px
}

.btn.btn-base-color {
    background-color: #c31c5d;
    color: var(--white)
}

.btn-link.text-base-color,
.text-base-color,
.top-titolo,
a.comuni:hover,
header .navbar [class*=col-] .navbar-nav .nav-item a:hover {
    color: #c31c5d
}

.bg-very-light-green-tel {
    background-color: #c31c5d17
}

.text-dark-gray strong {
    font-weight: 700
}

.bg-base-color,
.header-cart-icon .cart-count {
    background-color: #dc3545
}

.fill-lilla {
    fill: #988efb !important
}

.fill-celeste {
    fill: #a3daf2 !important
}

.fill-magenta {
    fill: #d63384 !important
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: rgba(0, 0, 0, 0);
    background-clip: border-box;
    border: 0 solid rgba(0, 0, 0, .125)
}

.card-intro .rotating-image {
    animation: 5s linear infinite rotate;
    margin-bottom: 40px
}

@keyframes rotate {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.feature-box:hover .rotating-image {
    animation: .5s linear infinite rotate
}

.fs-20,
.fs-20 h3 {
    font-size: 24px;
    line-height: 39px
}

.gallery-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover
}

h4 {
    font-size: 1.9rem !important;
    line-height: 2.5rem !important
}

.fs-45,
.h3,
h3 {
    font-size: 2.6rem
}

.d-block {
    font-weight: 400
}

div .picclo-descrittivo {
    font-size: 17px;
    line-height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 7.5em;
}

.sopra::after {
    contain: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    top: 0;
    left: 0
}

a.comuni img {
    width: 90%
}

a.comuni {
    font-size: 16px;
    display: inline-block
}

.titoli-comuni {
    font-size: 27px;
    line-height: 40px;
    color: #c31c5d;
    text-transform: uppercase
}

.bg-very-light-green {
    background-color: #f3f3f3
}

footer a {
    color: #ededed;
    font-size: 14px
}

.bg-dark-gray,
.bg-dark-gray:focus {
    background-color: #c31c5d
}

.breadcrumb {
    list-style: none;
    display: flex;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 12px;
    margin-bottom: 20px
}

.breadcrumb li {
    display: flex;
    align-items: center
}

.breadcrumb li a {
    text-decoration: none;
    color: #111;
    padding: 5px 10px;
    font-size: 14px
}

.breadcrumb li a:hover {
    text-decoration: underline
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #000
}

.breadcrumb .active {
    color: #000;
    font-size: 14px
}

.bordone {
    border-radius: 490px 0 0
}

.grigio {
    background: #f7f7f7;
    padding: 30px
}

.contenuto-lavoro {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center
}

.scroll-laterale {
    margin: 20px
}

.top-titolo {
    display: inline-block;
    float: left;
    font-size: 26px;
    margin-bottom: 10px;
    margin-left: 25px
}

.destra {
    float: right;
    width: 45%;
    margin: 10px 18px 0 0
}

.ricerca {
    width: 100%;
    margin-top: 118px
}

.scrollable-content {
    width: 100%;
    height: 88vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0 0
}

.box-per-info,
.mapppa {
    width: 100%;
    height: auto
}

.col-lg-6.mappa,
.col-lg-8.mappa {
    position: relative;
}


.col-lg-6.mappa iframe,
.col-lg-8.mappa {
    width: 98%;
    height: 100%;
    border: 0
}

p.testo-mestieri {
    font-size: 16px;
    line-height: 24px
}

.puntatore {
    position: absolute;
    right: 24px;
    top: 11px
}

.p-header {
    padding: 4% 6% 6% !important
}

.box-per-info {
    position: relative;
    margin-top: 12px;
    margin-left: 60px
}

.mapppa,
.news-box {
    position: relative;
    margin-top: 40px
}

.table-responsive {
    font-size: 16px
}

.botao-wpp {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    background-color: #25d366;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 35px
}

.botao-wpp:hover {
    background-color: darken(#25d366, 5%)
}

.botao-wpp:focus {
    background-color: darken(#25d366, 15%)
}

.card-intro.card-intro.tt .rotating-image {
    animation: 5s linear infinite rotate;
    margin-bottom: 0;
    margin-right: 20px;
    width: 25px
}

.pro-titolo {
    padding: 10px 30px;
    margin-bottom: 30px
}

.pro-titolo h3 {
    font-size: 25px;
    border-bottom: 1px solid #c9c9c9
}

.mapppa {
    border-radius: 20px
}

.mapppa iframe {
    border-radius: 20px;
    display: block
}

footer .fs-18 {
    font-size: 15px
}

footer h5 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 9px;
    line-height: 25px
}

header.sticky.sticky-active [data-header-hover=light] .icon>a,
header.sticky.sticky-active [data-header-hover=light] .navbar-nav .nav-link {
    color: #212529
}

.navbar .navbar-nav .nav-link {
    padding: 0 20px 0 0
}

.navbar .navbar-nav .dropdown .dropdown-menu a i,
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a i {
    color: #000 !important
}

.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
    margin-top: 0px
}

.navbar .navbar-nav .dropdown .dropdown-menu li.active>a,
.navbar .navbar-nav li.active>a {
    color: #c31c5d !important;
    background-color: #fff !important
}

.navbar .navbar-nav .nav-item .nav-link.active,
.navbar .navbar-nav .nav-item.active .nav-link,
.navbar .navbar-nav .nav-item:hover .nav-link {
    opacity: 10
}

.btn.btn-base-color:hover {
    background: #ffca00 !important;
    color: #c31d5d !important;
    border-color: #ffca00
}

.footer-right {
    padding-right: 80px
}

.gialli-tab {
    border-color: #ffca00 !important;
    background: #ffca00 !important;
    color: #c31c5d !important
}

.content,
.news-text,
.news-text h3,
.testo-p,
.testo-p h2 {
    color: #fff
}

.news-box {
    width: 80%;
    max-width: 800px;
    height: 50px;
    overflow: hidden;
    position: relative;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff
}

.posizione,
.testo-p,
.testo-p h2 {
    max-width: 1400px;
    width: 100%
}

.content,
.news-ticker,
.scritta,
.sfondo-colore {
    position: absolute
}

.news-ticker {
    display: flex;
    white-space: nowrap;
    top: 50%;
    width: max-content;
    animation: scroll-left 30s linear infinite
}

#video-background,
.content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.news-text,
.news-text h3 {
    font-size: 23px;
    line-height: 0;
    display: inline-block;
    flex-shrink: 0;
    padding-right: 80px
}

@keyframes scroll-left {
    0% {
        transform: translateX(0) translateY(-50%)
    }

    100% {
        transform: translateX(-50%) translateY(-50%)
    }
}

.bordo {
    border: 1px solid #919191
}

.ombra-testo {
    text-shadow: #000 -8px -1px 10px
}

.container.grande {
    max-width: 1620px
}

.fill-giallo {
    bottom: 14%;
    fill: #fff;
    opacity: .8
}

#video-background {
    position: fixed;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1
}

.content {
    font-size: 3rem;
    font-family: Arial, sans-serif;
    z-index: 3
}

.content h1 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, .8)
}

.sfondo-colore {
    content: '';
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1
}

.alto {
    margin-top: 75px;
    border-bottom: 3px solid #c31c5d
}

.scritta {
    z-index: 10;
    left: 8%;
    right: 5%;
    top: 10%;
    width: auto;
    max-width: none;
}

.scritta .testo,
.scritta .testo h1 {
    color: #fff;
    font-size: clamp(28px, 5vw, 99px);
    line-height: 1.05;
}

.fs-30 {
    font-size: 30px;
    line-height: 39px
}

.news-valle {
    background-color: #f3f3f3;
    padding: 100px 0 0 !important;
    overflow: hidden;
    z-index: 999;
    position: relative
}

.absolute-pos,
.blog-categories,
.blog-date {
    position: absolute
}

.bottom-minus-50px {
    bottom: -100px;
    left: -98px
}

.news-img {
    width: 100%;
    display: block
}

.fs-20-i {
    font-size: 18px;
    line-height: 27px
}

.blog-date {
    font-size: 12px;
    color: #c31c5d;
    right: 10px;
    top: 3px;
    display: block
}

.margine-40 {
    margin-top: 40px
}

.feature-box-content .margine-40 {
    margin-top: 10px;
}


.cta-gialle {
    width: 250px
}

.cta-55 {
    width: 255px
}

.margine-sotto-15 {
    margin-bottom: 15px !important;
    display: block
}

.margine-sopra-32 {
    margin-top: -32px
}

.alto {
    margin-top: 104px;
}

.eventi-img {
    width: 120px;
    height: auto;
    margin: 0px 20px 0px 0px
}

.testo-footer p {
     margin-bottom: 45px;
}

/* MOBILE */
@media (max-width: 1581px) {

    html,
    body {
        /*overflow-x: hidden;*/
    }

    .margine-40 {
        margin-top: 0px;
    }

    .testo {
        margin-top: 0px !important;
    }

    /* Menù */
    header .logo {
        max-width: 200px;
    }

    header .navbar [class*=col-] .navbar-nav .nav-item,
    header .navbar [class*=col-] .navbar-nav .nav-item a {
        margin: 0px 7px 0px 7px;
        font-size: 15px;
    }

    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
        font-size: 14px;
    }

    header .navbar [class*=col-] {
        padding: 0 4px;
    }

    header.sticky.sticky-active .logo {
        max-width: 170px !important;
    }

    .scritta .testo,
    .scritta .testo h1 {
        font-size: clamp(28px, 5vw, 66px);
        line-height: 1.05;
    }

    .testo-p,
    .testo-p h2 {
        font-size: 18px;
        line-height: 26px;
    }

    footer h5 {
    padding-top: 25px;
}
.testo-footer p {
     margin-bottom: 15px;
}
    /*Fine*/
}

@media (max-width: 1420px) {
    header .navbar [class*=col-] .navbar-nav .nav-item, header .navbar [class*=col-] .navbar-nav .nav-item a {
        font-size: 13px;
        letter-spacing: -0.03em;
    }
    header .navbar [class*=col-] .navbar-nav .nav-item, header .navbar [class*=col-] .navbar-nav .nav-item a {
        margin: 0 5px!important;
    }

        .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
            font-size: 12px;
        }

        .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a{
            padding: 10px;
        }
}

@media (max-width:1280px) {

    header.sticky .navbar-brand {
    top: -2px;
}

        .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
            font-size: 11px;
        }

        .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a{
            padding: 10px;
        }

    header.sticky.sticky-active .logo {
        max-width: 120px !important;
    }

    header .logo, header.sticky.sticky-active .logo {
        max-width: 150px;
    }
    .breadcrumb li a {
        padding: 3px 7px;
        font-size: 13px;
    }

    .breadcrumb .active {
        font-size: 13px;
        margin-left: 3px;
    }

    .breadcrumb li:not(:last-child)::after {
        margin: 0 3px;
    }

    body {
        font-size: 17px;
        line-height: 28px;
    }

    header .container-fluid {
        padding-left: 25px;
        padding-right: 25px;
    }

    .fs-45,
    .h3,
    h3 {
        font-size: 2.2rem;
    }

    .fill-bianco {
        width: 134px;
        height: 134px;
        bottom: 247px;
    }

    .sticky.sticky-active header .logo {
        position: relative;
        top: 3px;
    }

    .fs-30 {
        font-size: 25px;
        line-height: 31px;
    }

    .pre-tittolo {
        font-size: 15px;
        display: block;
        line-height: 25px;
    }

    .titoli-comuni {
        font-size: 23px;
        line-height: 26px;
    }

    a.comuni {
        font-size: 13px;
    }

    .p-header {
        padding: 4% 4% 4% 4% !important;
    }

    .fs-20,
    .fs-20 h3 {
        font-size: 20px;
    }

    .bordone {
        border-radius: 400px 0px 0px 0px;
    }

    .fs-18 {
        font-size: 17px;
    }

    /*Fine*/
}

@media (max-width: 1199px) {
    .lg-w-250px {
        width: 200px !important;
        height: 147px;
    }

    .btn.btn-switch-text.btn-small>span{
     padding: 5px 10px;
     font-size: 12px;
    }

}

@media (max-width: 991px) {

    .md-h-auto {
        height: 500px !important;
    }

    header .navbar [class*=col-] .navbar-nav .nav-item {
        border-bottom: #ededed solid 1px;
        padding: 10px;
    }

    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
        margin-top: 0px;
    }

    .navbar .navbar-nav .dropdown .dropdown-menu {
        box-shadow: none;
    }

    .dropdown-menu::before {
        display: none
    }

    .navbar .navbar-nav .nav-item .dropdown-toggle {
        right: 15px;
        top: 10px;
    }

    .navbar .navbar-nav .nav-item>i {
        font-size: 18px;
    }

    .dropdown-item-column ul {
        width: 100%;
    }

    /* Fine */
}

/* =================================================
============== NUOVO ============================ */


@media (max-width: 1199px) {
	
	.lg-w-90.border-radius-10px {width: 100% !important;}
	
/* FINE */	
}	




@media (max-width: 1550px) {
  .testo-p, .testo-p h2 {
    max-width: 1000px;
  }
/* FINE */	
}

@media (max-width: 1540px) {
 header .navbar [class*=col-] {padding: 0 0px;}	
.scritta {left: 16%;right: 5%;top: 5%;}	
/* FINE */		
}



@media (max-width: 1210px) {
.testo-p, .testo-p h2 {max-width: 900px;}
.scritta {left:9%;right:5%;}
/* FINE */	

}

@media (max-width: 1150px) {
    header .navbar [class*=col-] .navbar-nav .nav-item, header .navbar [class*=col-] .navbar-nav .nav-item a{
        margin: 0 3px !important;
    }

    header .logo {
        max-width: 120px;
        margin-right: 10px;
    }

    header .navbar [class*=col-] .navbar-nav .nav-item, header .navbar [class*=col-] .navbar-nav .nav-item a {
        font-size: 11px;
    }
}


@media (max-width: 1100px) {
.testo-p h2 {line-height: 6px;}
.testo-p p {line-height: normal;}	
	
	
.fill-giallo {bottom: 15%; width:95px; right:61px;}	
.scritta .testo, .scritta .testo h1 {font-size: clamp(28px, 5vw, 60px); line-height: 1.05;}	
.scritta {right:5%;top: 0%;}	
/* FINE */	
}	
@media (max-width: 990px) {
.bordone {border-radius: 240px 0px 0px 0px;}
.scritta {left: 5%;right:5%;}	
.fill-giallo {bottom: 11%;width: 81px;right: 8px;}
.news-ticker {top: 76%;}	
/* FINE */	
}	
@media (max-width: 810px) {
.testo-p, .testo-p h2 {font-size: 16px;}
.scritta .testo, .scritta .testo h1 {font-size: clamp(28px, 5vw, 45px); line-height: 1.05;}
/* FINE */	
}

@media (max-width: 717px) {
.testo-p, .testo-p h2 {font-size: 15px;}
.news-box {margin-top:15px; margin-bottom:38px;}
.floatable-wrapper.floatable-bottom-left {
 bottom:16px!important;;left: 15px!important;}
.pre-tittolo {margin-bottom: 20px;}	

	
/* FINE */	
}

@media (max-width:991px) {
    header .navbar [class*=col-] .navbar-nav .nav-item, header .navbar [class*=col-] .navbar-nav .nav-item a {
        font-size: 15px;
    }

    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a{
        font-size: 14px;
    }
}

@media (max-width:680px) {

    .fs-14,
    .fs-14 a {
        font-size: 12px !important;
    }

    .alto-mobile-40 {
        margin-top: 30px;
    }

    .table-responsive {
        font-size: 15px;
    }

    header .navbar [class*=col-] {
        padding: 0 31px;
    }

    .swiper {
        border-radius: 0px 0 0;
    }

    .lg-w-250px .fs-20 {
        font-size: 14px;
        line-height: 16px;
    }

    .fs-30 {
        font-size: 24px;
        line-height: 29px;
    }

    /* Home Video */
    .testo-p,
    .testo-p h2 {
        margin-top: 20px;
        font-size: 15px;
        color: #fff;
        line-height: 17px;

    }

    .scritta .testo,
    .scritta .testo h1 {
        font-size: clamp(24px, 5vw, 30px);
        line-height: 1.15;
    }

    .scritta {
        z-index: 10;
        left: 5%;
        right: 5%;
        top: 9%;
    }

    .fill-giallo {
        right: -5px;
        width: 57px;
        bottom: 2%;
    }

    .news-text h3,
    .news-text {
        font-size: 20px;
        margin-bottom: 13px;
    }

    .titoli-comuni {
        font-size: 22px;
        line-height: 30px;
    }

    /* Inizio Smatphone */
    body {
        font-size: 16px;
        line-height: 27px;
    }

    /* Logo */
    header .logo {
        max-width: 150px;
    }

    header.sticky.sticky-active .logo {
        max-width: 150px !important;
    }

    .bordone {
        border-radius: 140px 0px 0px 0px;
        margin-top: 22px;
    }

    .sm-h-400px {
        height: 280px !important;
    }

    .fs-45,
    .h3,
    h3 {
        font-size: 1.6em;
    }

    .fs-20,
    .fs-20 h3 {
        font-size: 18px;
        line-height: 28px;
    }

    .card-intro.card-intro.tt .rotating-image {
        margin-bottom: 4px;
        margin-right: 5px;
        width: 18px;
    }

    .logo-sfondo {
        padding: 14px;
    }


    .footer-right {
        padding-right: 0px;
    }

    .h2,
    h2 {
        font-size: 2.0rem;
        line-height: 2.7rem;
    }

    .md-mb-50px {
        margin-bottom: 0px !important;
    }

    .fs-16 {
        font-size: 13px;
    }

    .card-intro .rotating-image {
        margin-bottom: 11px;
    }

    .breadcrumb .active,
    .breadcrumb {
        font-size: 12px;
    }

    .breadcrumb {
        padding: 4px;
        border-radius: 7px;
        margin-bottom: 20px;
    }

    .overflow-hidden.bg-very-light-green .container {
        padding-right: 0px;
        padding-left: 0px;
    }

    .overflow-hidden.bg-very-light-green .container .row .col-md-6.col-10 {
        padding-right: 0px;
        padding-left: 0px;
    }

    .slider-navigation-style-04 {
        height: 45px;
        width: 45px;
    }

    h3 svg {
        width: 20px;
        height: 20px;
        top: -3px;
    }

    .col-auto.text-center.pt-15px.pb-15px.ps-40px.pe-40px.md-ps-25px.md-pe-25px.bg-white.border.border-color-extra-medium-gray.border-radius-100px.xs-border-radius-10px {
        width: 100% !important;
    }

    .col-auto.text-center.pt-15px.pb-15px.ps-40px.pe-40px.md-ps-25px.md-pe-25px.bg-white.border.border-color-extra-medium-gray.border-radius-100px.xs-border-radius-10px .fs-16 {
        font-size: 16px;
    }

    .icon-very-medium {
        font-size: 22px;
    }

    .services-box-content .fs-22 {
        font-size: 15px;
    }

    .due-colonne {
        column-count: 1;
    }

    .icona-g {
        margin-bottom: 0px;
        margin-right: 3px;
        width: 26px;
        position: relative;
        top: -2px;
    }

    .container.overlap-section .feature-box.feature-box-left-icon .feature-box-content,
    .feature-box.feature-box-left-icon-middle .feature-box-content {
        font-size: 16px !important
    }

    .gialli-tab {
        width: 100% !important
    }

    .feature-box-content .fs-19 {
        font-size: 16px;
    }

    .feature-box.feature-box-left-icon .feature-box-content,
    .feature-box.feature-box-left-icon-middle .feature-box-content {
        font-size: 14px;
        line-height: 22px;
    }

    .bordi-frame {
        height: 300px !important;
    }

    .one-fifth-screen {
        height: 400px !important;
    }

    .h1,
    h1 {
        font-size: 2.1rem;
        line-height: 2.2rem;
    }

    .ls-minus-2px {
        letter-spacing: 0px !important;
    }

    .alto {
        margin-top:84px;
    }

    .dropdown-item-column ul {
        padding: 0px;
    }

    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
        font-size: 14px;
        font-weight: 400;
    }

    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
        border-bottom: 1px solid rgba(23, 23, 23, .1) !important;
    }

    .cta-55 {
        width: 100%;
    }

    p.picclo-descrittivo {
        font-size: 16px;
        line-height: 26px;
    }

    .card-intro.tt.feature-box-content.text-dark-gray.fs-20 {
        font-size: 17px !important;
        text-align: center;
    }

    .fs-19.ls-minus-05px.fw-600.text-dark-gray.d-block.lh-26 {
        font-size: 18px !important;
    }

    .autore.auto-in {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .snistra-spazio-30,
    .spazio-destra {
        padding-right: 15px;
    }

    /* FINE */
}



.limit-rows p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-pnrr {
    color: #fff;
    font-size: 14px;
    line-height: 24px;
}

.h1-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 15px !important;
    display: block;
}
.h1-hero br,
.scritta .testo br,
.scritta .testo h1 br {
    display: none;
}

h1 span.text-huge {
    display: block;
    color: #c31d5d;
    font-weight: 600;
    padding: 10%;
}

h1 span.text-small {
    display: block;
    font-weight: 400;
}

.testo-mestieri p {
    font-size: 16px;
    line-height: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.margin-zero p {
    margin-bottom: 0;
}

.titoli-comuni h4 {
    font-size: 25px !important;
    line-height: 40px;
    color: #c31c5d;
    text-transform: uppercase
}

.custom-description {
    max-width: 100%;
    margin: 10px auto;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
}

.custom-description h5 {
    color: var(--dark-gray);
    /* colore più scuro per h5 */
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    max-width: 100%;
}


.custom-description p {
    max-width: 100%;
    font-size: 19px;
    line-height: 30px;
    color: #454545;
}

.custom-description img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    object-fit: cover;

}

.custom-description iframe.bordi-frame {
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* mantiene rapporto 16:9 */
    margin-top: 1rem;
    display: block;
}


.custom-description nav.breadcrumb {
    margin: 10px 0;
}

.custom-description nav.breadcrumb ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 5px;
}

.custom-description nav.breadcrumb li {
    margin-right: 5px;
}

.custom-description nav.breadcrumb li a {
    text-decoration: none;
    color: #007bff;
}

.custom-description nav.breadcrumb li.active {
    color: #6c757d;
    font-weight: bold;
}

.overlap-section {
    position: relative;
    z-index: 20;
}

.cta-stack {
    display: block !important;
    width: auto !important;
    margin-right: 0 !important;
}



h2.grande-titolo {
    display: block;
    color: #c31d5d;
    font-weight: 600;
    padding: 10%;
}

h1 span.text-huge {
    font-size: 3rem;
    font-weight: 400;
    line-height: 3.438rem;
    letter-spacing: -1px !important;
}

.text-huge strong {
    font-weight: 600;
}

.text-huge strong::after {
    content: "";
    display: block;
}


@media (max-width: 680px) {
    h1 span.text-huge {
        font-size: 2.3rem;
        line-height: 2.7rem;
        font-weight: 400;

    }
}

h2.grande-titolo span {
    display: block;
    font-weight: 400;
}

h3.titoli-pro {
    text-align: center;
    margin-bottom: 40px;
    color: #c31d5d;
    font-weight: 600;
    text-transform: uppercase;
    font-weight: 400;
}

h3.titoli-pro span {
    font-weight: 600
}

h3.titoli-pro.alto_up {
    margin-top: 30px;
}

.bianco_bg_c {
    background-color: #fff
}

.colore_link {
    text-transform: uppercase;
    color: #c31d5d;
    font-size: 17px;
}

#partner_sezione .colore_link,
#partner_sezione h3.titoli-pro {
    color: #003e44;
}

#partner_sezione_con .colore_link,
#partner_sezione_con h3.titoli-pro {
    color: #433f69;
}

.spazio-inabita {
    padding: 40px 20px 20px 20px
}

/* Sezione PopUp */
h2#popup-title {
    font-size: 20px;
    margin-bottom: 0px;
    color: #000;
    font-weight: 600;
}

p#popup-text {
    font-size: 17px;
    line-height: 27px;
}

.read-more {
    margin-top: 10px;
    padding: 0px;
    background-color: transparent;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
}

.read-more:hover {
    text-decoration: none;
    color: #c31d5d
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content img {
    max-width: 200px;
    margin-bottom: 15px;
    border: #c31c5d solid 1px;
    border-radius: 20px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #c31d5d;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    position: relative;
    text-align: left;
    margin: 0 auto;
    margin-top: 7%;
}


@media (max-width: 767px) {
    .popup-content {
        height: 600px;
        overflow-y: scroll;
    }
}

.spazio-inabita p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* mostra massimo 2 righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sezione-intro p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* mostra massimo 2 righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 1) Appiattisci i paragrafi dentro l'abstract */
.sezione-intro .abstract p {
    display: inline;
    margin: 0;
    padding: 0;
}

.sezione-intro .abstract p+p::before {
    content: " ";
    /* spazio tra paragrafi */
}

/* 2) Limita a 4 righe (clamp + fallback universale) */
.sezione-intro .abstract.line-clamp-4 {
    --lines: 4;
    --lh: 1.6;
    /* tienilo uguale al line-height reale */
    line-height: var(--lh);

    /* clamp moderno (WebKit/Blink) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--lines);
    overflow: hidden;

    /* fallback per tutti (incl. Firefox) */
    max-height: calc(var(--lines) * var(--lh) * 1em);
}

/* opzionale: in caso di <br> residui */
.sezione-intro .abstract br {
    display: none;
}


.footer-right p {
    color: #fff;
}

.pagination-style-01 .page-item.active .page-link {
    background-color: #212529;
    /* colore di sfondo attivo */
    color: #fff;
    /* colore testo */
    border-color: #212529;
    /* opzionale, per il bordo */
    z-index: 3;
    /* così sta sopra agli altri */
}

.dropdown-menu-user {
    position: absolute !important;
    left: -0.5rem !important;
}

.toggle-user.dropdown-toggle::after {
    display: none !important;
}


.privacy-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.privacy-field input[type="checkbox"] {
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    width: 16px;
    height: 16px;
    margin-top: 6px;
    border-radius: 2px;
}

.privacy-label {
    margin: 0;
    font-size: 15px;
    color: #333;
    /* opzionale */
}

.privacy-label a {
    text-decoration: underline;
}


#video-cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px; /* <-- alinea a destra */
    z-index: 99999;
    max-width: 360px;
    width: calc(100% - 40px);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
}

#video-cookie-banner .vcb-inner {
    background: #ffffff;
    color: #333;
    border: 1px solid #e1e1e1;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
}

#video-cookie-banner .vcb-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

#video-cookie-banner .vcb-text {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
    opacity: 0.85;
}

#video-cookie-banner .vcb-button {
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #007cff;
    color: #ffffff;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

#video-cookie-banner .vcb-button:hover {
    background: #006ae0;
    box-shadow: 0 3px 10px rgba(0, 60, 150, 0.25);
}

#video-cookie-banner .vcb-button:active {
    background: #005ec4;
    box-shadow: none;
}

/* Mobile fix */
@media (max-width: 480px) {
    #video-cookie-banner {
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: none;
    }
}

.quiv-vimeo-guard-host {
    position: relative;
}

.quiv-vimeo-iframe-wrapper {
    position: relative;
    display: block;
}

.quiv-vimeo-iframe-wrapper iframe {
    display: block;
}

.quiv-vimeo-guard-notice,
.quiv-vimeo-popup-notice {
    position: absolute;
    inset: 0;
    z-index: 35;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 2vw, 24px);
    background: rgba(17, 24, 39, 0.46);
    color: #212529;
    text-align: center;
    pointer-events: auto;
}

.quiv-vimeo-popup-notice {
    border-radius: 10px;
}

.quiv-vimeo-guard-notice.is-visible,
.quiv-vimeo-popup-notice.is-visible {
    display: flex;
}

.quiv-vimeo-guard-notice__inner {
    width: min(92%, 500px);
    max-width: 500px;
    margin: 0 auto;
    padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 26px);
    border: 1px solid rgba(195, 29, 93, 0.34);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.16);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.quiv-vimeo-popup-notice .quiv-vimeo-guard-notice__inner {
    width: min(94%, 540px);
    max-width: 540px;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.2);
}

.quiv-vimeo-guard-notice__title {
    margin: 0;
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    font-weight: 700;
    line-height: 1.3;
    color: #c31c5d;
    letter-spacing: 0.01em;
}

.quiv-vimeo-guard-notice__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333333;
}

.quiv-vimeo-guard-notice__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    min-height: 48px;
    padding: 12px 26px;
    border: 2px solid #c31c5d;
    border-radius: 999px;
    color: #ffffff;
    background: #c31c5d;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 16px rgba(195, 29, 93, 0.35);
}

.quiv-vimeo-popup-notice .quiv-vimeo-guard-notice__link {
    min-height: 50px;
    padding: 13px 30px;
}

.quiv-vimeo-guard-notice__link:hover,
.quiv-vimeo-guard-notice__link:focus {
    color: #c31c5d;
    border-color: #ffca00;
    background: #ffca00;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(195, 29, 93, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .quiv-vimeo-guard-notice,
    .quiv-vimeo-popup-notice {
        padding: 14px;
    }

    .quiv-vimeo-guard-notice__inner,
    .quiv-vimeo-popup-notice .quiv-vimeo-guard-notice__inner {
        width: min(95%, 470px);
        padding: 18px 16px;
        border-radius: 12px;
        gap: 10px;
    }

    .quiv-vimeo-guard-notice__link,
    .quiv-vimeo-popup-notice .quiv-vimeo-guard-notice__link {
        width: 100%;
        min-height: 46px;
        padding: 11px 18px;
    }
}

@media (max-width: 575px) {
    .quiv-vimeo-guard-notice,
    .quiv-vimeo-popup-notice {
        padding: 10px;
    }

    .quiv-vimeo-guard-notice__inner,
    .quiv-vimeo-popup-notice .quiv-vimeo-guard-notice__inner {
        width: 100%;
        padding: 15px 14px;
        border-radius: 10px;
        gap: 8px;
    }

    .quiv-vimeo-guard-notice__title {
        font-size: 0.95rem;
    }

    .quiv-vimeo-guard-notice__text {
        font-size: 0.89rem;
        line-height: 1.45;
    }

    .quiv-vimeo-guard-notice__link,
    .quiv-vimeo-popup-notice .quiv-vimeo-guard-notice__link {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (min-width: 1400px) {
    .quiv-vimeo-popup-notice .quiv-vimeo-guard-notice__inner {
        max-width: 560px;
    }
}


/* stato iniziale: slider nascosto */
.slider-one-slide {
    opacity: 0;
    transition: opacity .3s ease;
    min-height: 260px;
}

/* quando Swiper è pronto */
.slider-one-slide.swiper-initialized {
    opacity: 1;
}



.position-sticky.top-120px  h3.text-dark-gray.mb-0.ls-minus-1px {
 margin-left:0px!important;
}




/* Nuome Fixed */
@media (max-width: 1890px) {
header .navbar [class*=col-] .navbar-nav .nav-item, 
header .navbar [class*=col-] .navbar-nav .nav-item a {margin: 0 7px;}	
/* FINE */		
}

@media (max-width: 1720px) {
header .navbar [class*=col-] {padding: 0px 1px;}
.navbar .me-25px {margin-right: 0px !important;}	
header .navbar-brand img {max-height: 28px;}
header .navbar-brand img {height: 50px; margin-right: 10px;}	
/* FINE */		
}	

@media (max-width: 1500px) {
header .container-fluid {
  padding-left: 20px;
  padding-right: 20px;
}
/* FINE */		
}

@media (max-width: 1404px) {
/*.navbar .col-auto.ms-auto.ps-lg-0.d-none.d-sm-flex {margin-top:-20px; margin-bottom:20px;}*/
	
}
/* FINE */		


@media (max-width: 1399px) {	
.titoli-comuni.w-80	{width: 100% !important;}
.titoli-comuni h4 {font-size: 23px !important;}
.fs-45, .h3, h3 {font-size: 2.3rem;}			
/* Progetti */	
#attivazione-ed-eventi-culturali .col-lg-4, #infrastrutture-territoriali .col-lg-4, #infrastrutture-immateriali .col-lg-4,
#narrazione-di-vallata .col-lg-4 {display:none!important;}	
#attivazione-ed-eventi-culturali .col-md-6,
#infrastrutture-territoriali .col-md-6, #infrastrutture-immateriali .col-md-6,#narrazione-di-vallata .col-md-6 {width:80%}
/* FINE */		
}



@media (max-width:1280px) {	
.container .border-end::last-child {border-right: none;}
.swiper {border-radius:40px 0 0;}
.fs-20-i { font-size: 16px;line-height: 27px;}
/*.navbar .col-auto.ms-auto.ps-lg-0.d-none.d-sm-flex {margin-top: -10px;margin-bottom: 15px;}	*/
/* FINE */		
}








@media (max-width: 1199px) {
.navbar .col-auto.ms-auto.ps-lg-0.d-none.d-sm-flex {margin-top:20px; margin-bottom:20px;}
.d-none {display:flex!important;}	
 header .navbar [class*="col-"] {padding: 0px 0px;/*margin-left: -16px;*/}	
/* FINE */		


.header-search-icon.icon .h-45px, .icona-social .h-45px {
    height: 35px !important;
}

.header-search-icon.icon .w-45px, .icona-social .w-45px {
    width: 35px !important;
}

.header-search-icon.icon .lh-44, .icona-social .lh-44{
    line-height: 2.2rem;
}

}

@media (max-width: 991px) {
.navbar .col-auto.ms-auto.ps-lg-0.d-none.d-sm-flex {margin-top:20px; margin-bottom:20px;}
.d-none	.header-search-icon.icon, .d-none .icona-social {display:none;}
.d-none .header-icon {margin-right: 12px;}
 header .navbar [class*="col-"] {padding: 0px 0px;margin-left:0px;}
header .navbar{
  padding-left: 40px;
  padding-right: 40px;
}	
/* FINE */		
}

.accordion-title span.fs-18.fw-600 p {display:inline-block;margin:0;}

/* Widget Qualità dell'aria */
.qualita-aria-widget {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px 24px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.qualita-aria-titolo {
    font-size: 20px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 20px;
}
.qualita-aria-table {
    width: 100%;
    border-collapse: collapse;
}
.qualita-aria-table th {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
.qualita-aria-table td {
    font-size: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #454545;
    vertical-align: top;
}
.qualita-aria-table td:first-child {
    width: 110px;
    font-weight: 600;
    padding-right: 10px;
}
.qualita-aria-table tbody tr:last-child td {border-bottom: none;}
.qa-value {font-weight: 700;color: #232323;font-size: 16px;}
.qa-unit {font-size: 13px;color: #999;margin-left: 4px;}
.qa-val-unit {display: flex;align-items: baseline;justify-content: space-between;margin-bottom: 6px;}
.qa-bar {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #2d8a4e, #4caf50 20%, #8bc34a 33%, #cddc39 45%, #ffeb3b 55%, #ff9800 70%, #f44336 90%, #c62828);
    margin-bottom: 4px;
}
.qa-dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.qa-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
}
.qa-l-buona {color: #2d8a4e;}
.qa-l-media {color: #f9a825;text-align: center;}
.qa-l-scarsa {color: #c62828;text-align: right;}
.row .border-end:last-child{border-right: none!important;}
.floatable-wrapper.floatable-bottom-left {bottom: 15px!important;left: 15px!important;}
.accordion-style-02 .accordion-item .accordion-body {padding: 15px 0 20px;}
.accordion-style-02 .accordion-item .accordion-header {padding: 18px 0;}
.accordion-title span.fs-18.fw-600 {line-height: 1.4;}

@media (max-width: 680px) {
	
	
	
header .navbar {padding-left: 10px;padding-right: 10px;}	
header .navbar .btn-double-text {font-size: 13px;}
.btn.btn-small {font-size: 13px;}
header .navbar-brand img {max-height: 20px;}
header .navbar-brand img {height: 20px;}	
.news-valle {padding: 50px 0 0 !important;}	
.fs-45, .h3, h3 {font-size: 1.8rem;}	
.md-mb-20px {margin-bottom: 10px !important;}
h3 svg {top:-3px!important; margin-right: 3px!important;}	
.p-30px {padding: 25px 14px 17px 15px !important;}   
.fs-20-i {font-size: 16px;line-height: 25px;}
h3.text-dark-gray.mb-0.ls-minus-1px {margin-left:0px!important}	
.btn.btn-switch-text.btn-extra-large > span {font-size: 16px;}	
.sm-mb-15 {margin-bottom: 10% !important;}	
div .picclo-descrittivo {font-size: 16px;line-height: 28px;max-height: none;}	
#attivazione-ed-eventi-culturali .col-md-6, #infrastrutture-territoriali .col-md-6, #infrastrutture-immateriali .col-md-6, #narrazione-di-vallata .col-md-6 {width: 87%;}	
.fs-18 {font-size: 15px;}	
.fs-19 {font-size: 18px;}
.titoli-comuni h4 {font-size: 19px !important;}	
.sm-mb-30px {margin-bottom: 10px !important;}
a.comuni img { width: 66%; clear: both;display: block;}	
.testo-footer {font-size: 14px;line-height: 21px;}	
.footer-pnrr {font-size: 13px;line-height: 24px;} 
#map {height:420px !important;}
.h1-hero h1 {font-size: clamp(1.4rem, 4vw, 2.1rem); line-height: 1.2;}
h3.titoli-pro { margin-bottom: 15px;font-size: 2.1rem;line-height: 1.2;}	
.bianco_bg_c img {max-width: 66%;height: auto;display: block;margin: 0 auto;}
h4 {font-size: 1.4rem !important;line-height: 2.0rem !important;}
.scroll-progress.d-none.d-xxl-block.visible {display:none!important;}
.services-box-content .fs-22 {font-size: 14px;color: #808080;}	
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl, .row>* {
    padding-right: 13px;
    padding-left: 13px;
}	
.custom-description p {font-size: 16px;line-height: 26px;}	
.destra {float: right;width: 97%;margin: 10px 6px 0 0;}	
section {padding-top: 25px; padding-bottom: 25px;}	
.feature-box .feature-box-icon.me-10px {display:none;}
.feature-box-content .fs-19.ls-minus-05px.fw-600.text-dark-gray.d-block.lh-26 {font-size: 17px !important;}	
.custom-description {padding: 20px;}
.text-justify {text-align: revert;}
.bordone {margin-top:51px;}	
.alto {margin-top:80px;}	
.table.table-striped tr td {width:100%; display:block;}	
.accordion-style-02 .accordion-item .accordion-body {padding: 10px 0;}
.xs-p-9 {padding:2% !important;}	
header.sticky .navbar-brand {top: 0px;}	
	
	
/* FINE */		
}

 .audio-table{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Riga */
.audio-row{
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: center;
  gap: 20px;
}

/* Titolo */
.audio-title{
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

/* Player */
.audio-el{
  width: 100%;
  display: block;
}

/* Mobile */
@media (max-width: 767px){
  .audio-row{
    grid-template-columns: 1fr;
    gap: 8px;
  }
}



/* Container custom solo per questa pagina */
.container-768 {
    width: 100%;
    padding-right: var(--bs-gutter-x, 1.5rem);
    padding-left: var(--bs-gutter-x, 1.5rem);
    margin-right: auto;
    margin-left: auto;
}

/* Desktop */
@media (min-width: 992px) {
    .container-768 {
        max-width: 768px;
    }
}

span.titolo-mes{
    font-weight:600;
}

@media (min-width: 993px) {
    .title-vetrina-secondo-livello h1{
        font-size: 2.6em;
        line-height: 1.2;
        margin-bottom: 15px !important;
        display: block;
    }
}

@media (max-width: 992px) {
    .title-vetrina-secondo-livello h1{
        font-size: 2.1em;
    }
}

@media (max-width: 768px) {
    .title-vetrina-secondo-livello{
            margin-top: 51px;
    }
}


 .header-filters{
  display: flex;
  align-items: center;
  gap: 16px;
}

/* titolo a sinistra */
.header-filters .top-titolo{
  white-space: nowrap;
}

/* blocco filtri a destra */
.filters-right{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* dimensioni */
.filter-search{ max-width: 300px; }
.filter-select{ max-width: 220px; }

/* MOBILE */
@media (max-width: 767px){
  .header-filters{
    flex-direction: column;
    align-items: stretch;
  }

  .filters-right{
    margin-left: 0;
    width: 100%;
    flex-direction: column;
  }

  .filter-search,
  .filter-select{
    max-width: 100%;
  }
}

.cerca-view h1{
    font-size: 2.6rem;
    line-height: 1.2;

    display: block;
    color: #c31c5d;
}

.cerca-view .cat{
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 100%;
    padding-bottom: 5px;
}

.cerca-view ul, .cerca-view ul li{
    margin: 0;
    padding:0;
}

.cerca-view ul li{
    -webkit-box-shadow: 0 5px 5px rgba(0, 0, 0, .08);
    box-shadow: 0 5px 5px rgba(0, 0, 0, .08);
}

.cerca-view ul li a{
    color: #c31c5d;
}

.cerca-view ul li a:hover{
    color:#000;
}

.cerca-view ul li p{
    font-size: 13px;
    margin-bottom: 0;
    line-height: 20px;
}

/*ATLANTE*/

  /* Overlay: prende tutto lo schermo, anche se trasparente.
   Serve per "clicca ovunque per chiudere" */
  .feature-panel__overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    /* click-through visivo, ma cattura click */
    z-index: 1999;
  }

  /* Modal: fisso in basso a destra dello schermo */
  .feature-panel {
    position: fixed;
    right: 16px;
    bottom: 16px;

    width: min(560px, 94vw);
    /* più largo */
    max-height: min(80vh, 720px);
    height: auto;
    /* <-- si adatta al contenuto */

    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);

    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* cornice pulita */
    z-index: 2000;
    /* sopra overlay e sopra mappa */
  }

  .feature-panel[aria-hidden="true"] {
    display: none;
  }

  /* X piccola sempre in alto a sinistra del modal */
  .feature-panel__close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: grid;
    place-items: center;
    z-index: 50;
  }

  /* immagine opzionale in alto */
  .feature-panel__media {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f3f4f6;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .feature-panel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Contenuto: non forza altezza, ma scrolla se supera max-height del modal */
  .feature-panel__content {
    padding: 16px 18px 18px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* titolo con spazio per la X */
  .feature-panel__title {
    margin: 0 0 10px;
    font-size: 27px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    padding-left: 10px;
    padding-top: 20px;
  }

  .feature-panel__body {
    font-size: 16px;
    line-height: 25px;
    padding-left: 10px;
    margin-top: 10px;
    color: rgba(0, 0, 0, 0.78);
  }

  /* se c'è solo titolo e niente altro, riduco un filo lo spazio */
  .feature-panel__audio-list:empty {
    display: none;
  }

  .feature-panel__body:empty {
    display: none;
  }




  /* Mobile: resta in basso, quasi full-width */
  @media (max-width: 900px) {
    .feature-panel {
      left: 12px;
      right: 12px;
      bottom: 12px;
      width: auto;
      max-height: 75vh;
      border-radius: 16px;
    }
  }

  .custom-image-marker.active-marker {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.45));
    transform: scale(1.25);
    transition: transform 0.15s ease, filter 0.15s ease;
  }

  /* Legenda: dimensione in base al contenuto */
.leaflet-control-layers{
  width: fit-content !important;
  max-width: 260px;           /* desktop */
  border-radius: 14px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.15) !important;
}

.leaflet-control-layers-expanded{
  padding: 10px 12px !important;
}

/* Nascondi checkbox/radio ma mantieni accessibilità e click tramite label */
.leaflet-control-layers input{
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}

/* Riga legenda: tutta cliccabile, su una riga, senza “spazi vuoti” */
.leaflet-control-layers-overlays label,
.leaflet-control-layers-base label{
  display: flex;
  align-items: center;
  margin: 6px 0 !important;
  cursor: pointer;
  width: fit-content;
}

/* il nostro wrapper (icona + testo) su una riga */
.layer-legend{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}

/* Hover leggero coerente */
.leaflet-control-layers-overlays label:hover .layer-legend{
  background: rgba(0,0,0,0.04);
}

/* Icona */
.layer-legend__icon{
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  flex: 0 0 18px;
}
.layer-legend__icon--svg svg{
  width: 18px;
  height: 18px;
  display:block;
}

/* Testo non attivo */
.layer-legend__text{
  font-size: 13px;
  color: rgba(0,0,0,0.70);
  transition: color .15s ease, font-weight .15s ease;
}

/* Stato selezionato */
.layer-legend.is-active{
  background: rgba(0,0,0,0.06);
}
.layer-legend.is-active .layer-legend__text{
  color: rgba(0,0,0,0.92);
  font-weight: 600;
}

.leaflet-control-layers-list{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* MOBILE: più stretto e senza occupare troppo */
@media (max-width: 900px){
  .leaflet-control-layers{
    max-width: 210px;
  }
  .layer-legend__text{
    font-size: 12px;
  }

}
