/* --- Media collegati: YouTube + Virtual Tour (shared) --- */
.media-collegato .yt-player {
    max-width: 100%;
    overflow: hidden;
}

.yt-thumbnail {
    position: absolute;
    inset: 0;
    background-color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 5;
}

.yt-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    width: 68px;
    height: 48px;
    background-color: rgba(33, 33, 33, 0.8);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.yt-thumbnail:hover .play-btn {
    background-color: #ff0000;
}

.play-btn::after {
    content: "";
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #fff;
}

.yt-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 10;
    pointer-events: auto;
}

.vr-wrapper {
    position: relative;
}

.vr-control-btn {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

.vr-control-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.vr-control-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Modal tappe percorso smart */
div#modalItinerario .modal-dialog,
div#modalTappaPercorsoSmart .modal-dialog {
    left: 0;
    right: 0;
    margin: auto !important;
    min-width: 60vw;
}

#modalTappaPercorsoSmart .modal-dialog {
    width: calc(100vw - 32px);
    max-width: 1320px;
}

#modalTappaPercorsoSmart .splide__arrows {
    position: fixed;
    right: max(10px, calc((100vw - min(1320px, calc(100vw - 32px))) / 2 - 76px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 100050;
}

#modalTappaPercorsoSmart .splide__arrow--prev,
#modalTappaPercorsoSmart .splide__arrow--next {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
}

#modalTappaPercorsoSmart .splide__arrow {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 0;
    background: #f0f3f6;
    color: #0c7aa6;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

#modalTappaPercorsoSmart .splide__arrow svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    transform: none !important;
}

#modalTappaPercorsoSmart .splide__arrow--prev svg,
#modalTappaPercorsoSmart .splide__arrow--next svg {
    transform: none !important;
}

#modalTappaPercorsoSmart .splide__arrow[disabled] {
    opacity: 0.5;
    pointer-events: none;
}

#modalTappaPercorsoSmart .splide__pagination {
    display: none !important;
}

#modalTappaPercorsoSmart img.modal-img-slide {
    width: 100%;
    height: 540px;
    object-fit: cover;
    border-radius: 8px;
}

#modalTappaPercorsoSmart .splide__track {
    overflow: hidden;
}

#modalTappaPercorsoSmart .splide__list {
    display: flex;
}

#modalTappaPercorsoSmart .splide__slide {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

#modalTappaPercorsoSmart .slide-itinerario-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

#modalTappaPercorsoSmart .slide-itinerario-container>* {
    max-width: 100%;
}

#modalTappaPercorsoSmart .slide-itinerario-container p,
#modalTappaPercorsoSmart .slide-itinerario-container a,
#modalTappaPercorsoSmart .slide-itinerario-container li,
#modalTappaPercorsoSmart .slide-itinerario-container h2,
#modalTappaPercorsoSmart .slide-itinerario-container h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.accordion-related {
    border-bottom: 1px solid #c5c7c9;
}

.accordion-related .accordion-item {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.accordion-related .accordion-header {
    position: relative;
}

.accordion-related .accordion-button {
    width: 100%;
    text-align: left;
    border: 0;
    border-top: 1px solid #c5c7c9;
    box-shadow: none;
    padding: 14px 24px;
    cursor: pointer;
    color: #06c;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    background: transparent;
}

.accordion-related .accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-repeat: no-repeat;
    background-size: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23006ec8' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    transition: transform .2s ease-in-out;
    transform: rotate(0deg);
}

.accordion-related .accordion-button:not(.collapsed) {
    color: #5d7083;
    background: transparent;
    box-shadow: none;
}

.accordion-related .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-related .accordion-button:hover {
    background: transparent;
    text-decoration: underline;
}

.accordion-related .accordion-button:focus,
.accordion-related .accordion-button:active {
    border-top-color: #c5c7c9;
    box-shadow: none;
}

.accordion-related .accordion-body {
    padding: 12px 24px 24px;
}

#modalTappaPercorsoSmart .vr-wrapper {
    position: relative;
}

#modalTappaPercorsoSmart .vr-wrapper.vr-blank .ratio {
    background: radial-gradient(circle at 30% 30%, rgba(12, 122, 166, 0.45), rgba(6, 38, 52, 0.95));
    border-radius: 8px;
}

#modalTappaPercorsoSmart .vr-tour-placeholder {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: #ffffff;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(4, 35, 48, 0.45), rgba(4, 35, 48, 0.7));
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#modalTappaPercorsoSmart .vr-tour-placeholder:hover {
    background: linear-gradient(180deg, rgba(4, 35, 48, 0.32), rgba(4, 35, 48, 0.62));
}

#modalTappaPercorsoSmart .vr-tour-placeholder:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -4px;
}

#modalTappaPercorsoSmart .vr-placeholder-icon {
    width: clamp(76px, 12vw, 112px);
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

#modalTappaPercorsoSmart .vr-placeholder-label {
    display: inline-block;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    letter-spacing: 0.02em;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.25);
}

#modalTappaPercorsoSmart .vr-wrapper .tour-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

#modalTappaPercorsoSmart .vr-wrapper .vr-control-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(12, 122, 166, 0.9);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.alignleft {
    float: left;
    margin: 0.5em 1em 0.5em 0;
}

.titoloeventoelenco {
    font-family: var(--OmTeloleton);
    font-size: 2.5rem;
    text-transform: uppercase;
}

.hidden {
    display: none;
}

.colorarcevia {
    color: #8d4942
}

.colorbarbara {
    color: #db6015
}

.colorcastelleone {
    color: #c5a900
}

.colorcorinaldo {
    color: #df1721
}

.colorostra {
    color: #c5a287
}

.colorostravetere {
    color: #ffad5f
}

.colorsenigallia {
    color: #80cdef
}

.colorserradeconti {
    color: #f5b335
}

.colortrecastelli {
    color: #7ac0a2
}


.acym__subscription__form__shortcode {
    width: 100% !important;
    background-color: transparent !important;
}

.acym__subscription__form__shortcode form {
    width: 100% !important;
}

.acym__subscription__form__fields input {
    background-color: #fff !important;
    color: #212529 !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
    font-size: var(--font20);
    border-radius: 50rem !important;
}

.acym__subscription__form__fields input[type=text],
.acym__subscription__form__fields input[type=email] {
    width: 100% !important
}

.acym__subscription__form__termscond,
.acym__subscription__form__shortcode {
    color: #fff !important;
    text-align: center;
}

.acym__subscription__form__button button {
    height: 70px;
    border-radius: 50px;
    background: var(--greenlight) !important;
    text-transform: uppercase;
    font-size: var(--font24);
    text-align: center;
    border-radius: 50rem !important;
}

.fieldacyterms a {
    color: #fff;
    text-decoration: none !important;
    font-weight: 900;
}

.newsletter-page .acym__subscription__form__termscond,
.newsletter-page .acym__subscription__form__shortcode {
    color: #000 !important;
    text-align: center;
}

.newsletter-page .fieldacyterms a {
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 900;
}

.onefield .acym__field__error__block {
    background-color: var(--greenlight) !important;
    ;
}

.card-title a {
    background: none !important;
}

.macroeventi.noveterritori {
    background: url(../images/Mi-vola-il-gusto-banner.jpg) top center no-repeat;
    background-size: 100% auto;
}

.macroeventi.noveterritori.natale {
    background: url(../images/natale_valmivola_background.jpg) top center no-repeat;
    background-size: 100% auto;
}

.macroeventi .heading {
    font-size: var(--font90);
    color: var(--bluedark);
    font-family: var(--OmTeloleton);
    text-transform: uppercase;
}

.dcenter {
    position: relative;
}

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

.ectext {
    background: rgba(255, 255, 255, 0.3) none repeat scroll 0 0;
    border: 1px solid #fff;
    color: #fff;
    font-size: 23px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding: 20px;
    text-transform: uppercase;
    z-index: 1;
    text-shadow: 2px 2px #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
}

.eventoconcluso {
    background: rgba(153, 153, 136, 0.8) none repeat scroll 0 0;
    bottom: 0;
    height: auto;
    left: 0;
    margin: 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 10px 20%;
    color: #fff;
    opacity: 0.91;
}

.eventoconcluso button {
    position: absolute;
    right: 0%;
}

@media (max-width: 767px) {
    .macroeventi .heading {
        font-size: var(--font60);
    }
}

.macroeventi .sottotitolo {
    font-size: var(--font40);
    color: #fff;
    font-family: var(--OmTeloleton);
    text-transform: uppercase;
    margin-right: 30px;
}

.bi-star {
    color: #DEC978;
}

ol.breadcrumbs-list {
    list-style: none;
    padding-left: 0px !important;
}

.breadcrumbs-list li {
    display: inline-block;
}

.breadcrumbs-list a {
    float: left;
    margin-right: 5px;
    padding-right: 10px;
    position: relative;
    font-size: var(--font12);
    font-weight: 700;
    color: var(--graycolor1);
    text-decoration: none;
}

.breadcrumbs-list span {
    float: left;
    /* margin-right: 15px; */
    /* padding-right: 15px; */
    position: relative;
    font-size: var(--font12);
}

.breadcrumbs-list a::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--graycolor1);
    border-radius: 100%;
    right: 0;
    top: 50%;
    margin-top: -2px;
}

.icone-mobile {
    right: 11%;
    position: absolute;
}

.icone-social img {
    width: 32px;
    margin: 0 12px !important;
}

.icone-mobile img,
.icone-mobile svg {
    width: 32px;
}

.select2-selection__rendered {
    background: #f7f7f7;
    border-radius: 15px;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0;
    padding: 5px;
}

.select2-container .select2-selection--multiple {
    max-height: 34px;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    overflow: visible;
    height: auto;
    float: left;
    padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 5px;
}

.gj-datepicker-md {
    width: 100%;
}

.card.listing-box {
    height: auto;
}

#form_ricerca .input-group-text,
.searchsec .input-group-text {
    position: absolute;
    right: 10px;
    top: 4px;
}

.datepickerdate {
    background: #f7f7f7;
    padding: 5px 10px !important;
    border-radius: 15px;
    font-family: 'Roboto Slab', serif !important;
    cursor: pointer;
}

.gj-picker {
    font-family: 'Roboto Slab', serif !important;
}

.img-fluid.search {
    width: 32px;
}

.icona-home {
    width: 1em;
}

.accordion-item.accordion-valmivola {
    background-color: transparent;
    border: 0;
}

.text-left {
    text-align: justify !important;
}

.text-justify {
    text-align: justify !important;
}

.topheader .nav-item .nav-link {
    /*    background: url(../images/valblob.svg);        background-size: contain;        background-position: center 150px;        background-repeat: no-repeat;*/
    transition: all 0.5s;
    transform: scale(1);
}

.topheader .nav-item .nav-link:hover {
    /*    background-position: center;*/
    transform: scale(1.2);
}

.rightbutton img,
.rightbutton svg {
    max-width: 32px;
    z-index: 1;
    position: relative;
}

.heartshape:hover svg path {
    fill: #fff !important;
}

.lente.btn {
    background: #eee;
    padding: 15px;
    border-radius: 15px;
    border: none;
}

.lente.btn:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.sub-title svg {
    width: 32px;
    margin-top: -5px;
}

.card-subtitle svg {
    max-width: 30px;
    margin-top: -7px;
    margin-right: .5rem !important;
}

.sub-title svg,
.card-subtitle svg path {
    fill: #fff;
}

.breadcrumb-sec .breadcrumb-item:first-of-type {
    padding: 0 10px 0 0;
}

.rightbutton {
    position: absolute;
    right: 0;
    top: 10rem;
    background: #fff;
    border-radius: 30px 0 0 30px;
    padding: 5px 0 5px 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.topheader .rightbutton .heartshape {
    overflow: hidden;
}

.wpml-ls-legacy-dropdown-click a {
    border: transparent;
}

.wpml-ls-legacy-dropdown-click {
    width: auto;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle {
    position: relative;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 0px;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle::after {
    display: none;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-current-language>a,
.wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a {
    border-radius: 0 0 0 25px;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
    text-align: center;
}

.fi-select {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.container.animate-heart-icon {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
}

.infowindow {
    border-radius: 15px;
}

.gridsection .infowindow .card:hover {
    transform: none;
    z-index: 0;
}

.gridsection .infowindow .card .card-img-top img {
    max-height: 150px;
    object-fit: cover;
}

.gm-style-iw.gm-style-iw-c {
    padding: 0;
    border-radius: 15px;
}

#m24_locationmap button.gm-ui-hover-effect {
    background: #fff !important;
    top: 0px !important;
    right: 0px !important;
    border-radius: 0 15px;
}

#m24_locationmap {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    margin-top: 1rem;
}

#map {
    height: 66vh;
}

.infowindow .card {
    background-color: #fff;
}

.infowindow .card-titolo {
    font-family: 'Roboto Slab', serif !important;
}

.bg-bluedark {
    background: var(--bluedark);
}

.paginazione {
    text-align: center;
}

.paginazione a {
    color: var(--darkgray1);
}

.page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px 0 0;
    border: 1px solid #eee;
    line-height: 1;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
}

.page-numbers.current,
a.page-numbers:hover {
    color: var(--dark-gray);
    ;
}

/*Removing some default CSS from our language switcher*/
#event-search-form {
    position: fixed;
    top: 87px;
    background: #fff;
    z-index: 9999;
    width: 100%;
    left: 0;
    padding: 15px;
    box-shadow: 0 30px 30px rgba(13, 48, 88, 0.5);
}

#event-search-form .form-control.search__bar {
    border-radius: 25px;
}

a {
    color: #4ca9d3;
    text-decoration: none !important;
}

.redmoretext a,
#information a,
.timeline-sec-wrap a,
.breadcrumb a,
.about-sec a,
.crinaldo-sec a,
.content-caption a {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1)), linear-gradient(to right, #72c7ee, #c09800, #d40018, #ff9a49, #6fb591);
    background-size: 100% 0.1em, 0 0.1em;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size 400ms;
}

.redmoretext a:hover,
.redmoretext a:focus,
#information a:hover,
#information a:focus,
.timeline-sec-wrap a:hover,
.timeline-sec-wrap a:focus,
.breadcrumb a:hover,
.breadcrumb a:focus,
.about-sec a:hover,
.about-sec a:focus,
.crinaldo-sec a:hover,
.crinaldo-sec a:focus,
.content-caption a:hover,
.content-caption a:focus {
    background-size: 0 0.1em, 100% 0.1em;
    color: var(--bluedark);
}

.tipico-img {
    border-radius: 15px;
}

.breadcrumb_last {
    color: var(--bluedark);
    font-weight: 500;
}

.content-item {
    scroll-margin-top: 4em;
}

.locandina img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 15px;
}

.card-title .sottotitolo {
    font-size: 14px;
}

.eventi .swiper-slide .card,
.gridsection .card {
    border: transparent;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.eventi .swiper-slide .card:hover,
.gridsection .card:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(1.03);
    z-index: 1;
}

/*.eventi .swiper-slide .card .card-body .card-title {    min-height: 150px;}*/
.gridsection .card {
    width: 100%;
}

.itinerary-sec .itinerary-img {
    border-radius: 15px;
}

.itinerary-sec .itinerary-img .inner-caption .item-image,
.itinerary-sec .itinerary-img:hover .inner-caption {
    border-radius: 15px;
}

.noveterritori .swiper-slide:first-of-type .inner-caption {
    border-radius: 15px 0 0 15px;
    overflow: hidden;
}

.noveterritori .swiper-slide:last-of-type .inner-caption {
    border-radius: 0 15px 15px 0;
    overflow: hidden;
}

.terraza-sec .terraze-inner {
    border: transparent;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.content-sec-rocca .right-caption {
    border-radius: 15px;
    overflow: hidden;
}

.content-sec-rocca .content-caption .content-item .subtitle {
    background: url(../images/valblob.svg);
    background-size: contain;
    background-position: center left;
    background-repeat: no-repeat;
}

.card.right-caption .bggradient {
    background: rgb(255, 255, 255);
    background: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 1) 100%);
    background: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff", endColorstr="#ffffff", GradientType=1);
}

.genericobox .inner-caption {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.searchsec .middlesearch .topsec {
    border-radius: 15px 15px 0 0;
}

.searchsec {
    margin-top: -5rem;
}

.searchsec .middlesearch {
    border-radius: 15px;
    border: transparent !important;
}

.select2-dropdown {
    background-color: white;
    border: transparent;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 15px 15px;
}

.select2-container--default .select2-selection--multiple {
    border: transparent;
    border-radius: 15px;
    padding: 0px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: transparent;
    outline: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #eee;
    border: transparent;
    border-radius: 15px;
    padding: 3px 10px;
}

.select2-container--default .select2-search--inline .select2-search__field {
    text-align: center;
}

.senigallia-sub-header .dates .round:after {
    content: none;
}

.eventi .swiper-slide .card .card-img-top .dates .round:first-child::after,
.gridsection .card .card-img-top .dates .round:first-child::after {
    content: none;
}

.data-intervallo {
    position: absolute;
    display: inline-block;
    border-radius: 100px;
    width: 28px;
    height: 28px;
    z-index: 1;
    font-size: var(--font20);
    padding: 0;
    line-height: 22px;
    color: #fff;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    padding: 4px;
}

.timeline-sec-wrap .timeline-caption .img-wrap .image-in {
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    background-color: var(--bluelight);
    padding: 14px;
    width: 250px;
    height: 250px;
}

.image-zigzag-sec {
    border-radius: 15px;
}

.swiper-wrapper,
.swiper-slide {
    height: auto;
}

.swiper.thumbnailslider1.swiper-horizontal {
    border-radius: 15px 15px 0 0;
}

.swiper.thumbnailslider.swiper-horizontal.swiper-thumbs {
    border-radius: 0 0 15px 15px;
}

.manfiare-sec .content-wrap.left,
.manfiare-sec .content-wrap.right {
    border-radius: 15px;
}

.accordion:not(.accordion-related) button[aria-expanded="false"]::after {
    content: "\F112";
    font-family: bootstrap-icons;
    margin-left: 1rem;
    background: url(../images/valblob.svg);
    background-size: 100%;
    background-position: center top;
    overflow: visible;
    width: 40px;
    position: relative;
    display: inline-block;
    background-repeat: no-repeat;
}

.accordion:not(.accordion-related) button[aria-expanded="true"]::after {
    content: "\F115";
    font-family: bootstrap-icons;
    margin-left: 1rem;
    background: url(../images/valblob.svg);
    background-size: 100%;
    background-position: center top;
    overflow: visible;
    width: 40px;
    position: relative;
    display: inline-block;
    background-repeat: no-repeat;
}

#richiestapreventivo {
    position: absolute;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 0 100px;
    border-radius: 15px;
    width: 98vw;
    left: 1vw;
    height: 96vh;
    top: 1vh;
}

#richiestapreventivo .card {
    overflow-y: scroll;
    height: 96vh;
    position: relative;
}

#richiestapreventivo input:not([type='checkbox']) {
    border: transparent;
    background: #eee;
    border-radius: 25px;
    padding: 5px;
    margin: 0 0 15px;
    width: 100%;
}

#richiestapreventivo input.btn {
    color: #132c48 !important;
    text-transform: uppercase;
}

#richiestapreventivo select {
    border-radius: 25px;
    border: transparent;
    padding: 5px;
    margin: 0 0 15px;
    width: 100%;
}

#richiestapreventivo textarea {
    border: transparent;
    background: #eee;
    border-radius: 15px;
    padding: 5px 10px;
    margin: 0 0 15px;
    width: 100%;
}

.wpcf7-acceptance .wpcf7-list-item,
.wpcf7-acceptance.optional .wpcf7-list-item {
    margin: 1rem 0;
}

.ckprcf {
    font-size: 80%;
}

.programmasmall {
    font-size: 50%;
    display: block;
}

.rightcircle {
    transform: scale(1);
    transition-duration: 0.5s;
}

.riducicerchio {
    transform: scale(0.5);
    transition-duration: 0.5s;
    right: 0;
    bottom: 0;
}

.riducicerchio .scopri {
    background: transparent;
}

.riducicerchio p {
    display: none;
}

.riducicerchio button {
    transform: scale(1.5);
    position: absolute;
    width: 100%;
    bottom: 0;
    right: 0;
}

/* stile per smartlist */
.overlay-smartlist {
    z-index: 9;
}

.demo__content {
    overflow: hidden;
    position: relative;
    height: 48rem;
    padding-top: 4.5rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.demo__card-cont {
    position: relative;
    width: 24rem;
    height: 32rem;
    margin: 0 auto 5rem;
}

.demo__card {
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform-origin: 50% 100%;
}

.demo__card.reset {
    transition: transform 0.3s;
    transform: translateX(0) !important;
}

.demo__card.reset .demo__card__choice {
    transition: opacity 0.3s;
    opacity: 0 !important;
}

.demo__card.inactive {
    transition: transform 0.3s;
}

.demo__card.to-left {
    transform: translateX(-30rem) rotate(-30deg) !important;
}

.demo__card.to-right {
    transform: translate(30rem) rotate(30deg) !important;
}

.demo__card.below {
    z-index: 1;
}

.demo__card__top {
    height: 20.5rem;
    padding-top: 4rem;
}

.demo__card__top.purple {
    background: #7132b9;
}

.demo__card__top.blue {
    background: #248cb6;
}

.demo__card__top.indigo {
    background: #303f9f;
}

.demo__card__top.cyan {
    background: #26c6da;
}

.demo__card__top.lime {
    background: #afb42b;
}

.demo__card__top.brown {
    background: #795548;
}

.demo__card__img {
    overflow: hidden;
    width: 10rem;
    height: 10rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 0.5rem solid #ffffff;
    background-image: url("//s3-us-west-2.amazonaws.com/s.cdpn.io/142996/profile/profile-512_5.jpg");
    background-size: cover;
}

.demo__card__name {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.demo__card__btm {
    height: 11.5rem;
    background: #ffffff;
}

.demo__card__we {
    text-align: center;
    font-size: 2.2rem;
    line-height: 11.5rem;
}

.demo__card__choice {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.demo__card__choice:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2rem;
    height: 2rem;
    margin-left: -1rem;
    color: #fff;
    border-radius: 50%;
    box-shadow: -2rem -3rem #fff, 2rem -3rem #fff;
}

.demo__card__choice:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4rem;
    height: 1.5rem;
    margin-left: -2rem;
    border: 0.6rem solid #fff;
    border-bottom: none;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

.demo__card__choice.m--reject {
    background: #ff945a;
}

.demo__card__choice.m--like {
    background: #b1da96;
}

.demo__card__choice.m--like:after {
    transform: scaleY(-1);
}

.demo__card__drag {
    z-index: 5;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: -webkit-grab;
    cursor: grab;
}

.demo__tip {
    text-align: center;
    font-size: 2.2rem;
}

.eventi.cardslides .topbuttons {
    white-space: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
}

.demo__card .card {
    z-index: 9;
}


.square-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* Maintain a square aspect ratio */
    overflow: hidden;
    /* Hide any overflow */
}

.square-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Maintain aspect ratio and cover the container */
}


.videoimmagine {

    object-fit: cover;
}

.video-container {
    position: relative;
    /* Set a positioning context */
    width: 100%;
    /* Set an appropriate width */
    height: auto;
    /* Set an appropriate height */
    overflow: visible;
    /* Ensure content is visible */
}

.videoterritorio .video-container {
    min-height: 520px
}

.video-container iframe {
    display: none;
    z-index: -1;
    position: absolute;
    background-color: black;
    z-index: 100;
}

.thumbnailslider1 .swiper-slide {
    height: 100%;
}




#smartbutton li .btn-smartlist.active {
    background: var(--bluelight) !important;
    color: #fff !important;
}

@media only screen and (min-width: 1024px) {

    .eventi .swiper-slide .card .card-img-top .dates .data-intervallo,
    .gridsection .card .card-img-top .dates .data-intervallo,
    .senigallia-sub-header .dates .round .data-intervallo {
        left: 68px;
    }
}

@media (max-width: 1367px) {
    .timeline-sec-wrap .timeline-caption .img-wrap .image-in {
        width: 200px;
        height: 200px;
    }
}

@media only screen and (max-width: 1199px) {
    .icone-mobile.d-flex {
        /* position: F; */
        position: absolute;
        top: 8px;
    }

    .container {
        max-width: 960px !important;
    }

    .topheader .hearticon {
        font-size: inherit;
        width: inherit;
        height: inherit;
        padding: .375rem .75rem;
        line-height: inherit;
        z-index: 1;
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 4rem;
        margin-bottom: 1rem;
    }

    .navbar-nav .menu-item {
        width: 100%;
        margin: 5px auto;
    }

    .topheader .nav-item .nav-link img {
        max-width: 25px;
        width: 24px;
        height: 24px;
        max-height: 24px;
    }

    .navbar-nav .menu-item.scoprimunuitem a {
        box-shadow: 0 0 25px rgba(13, 48, 88, 0.2);
        border-radius: 25px;
        margin-top: 20px;
        margin-bottom: 20px;
        text-align: center;
        border: 1px solid rgba(13, 48, 88, 0.5);
        text-transform: uppercase;
        margin: 2rem auto 0;
    }

    .navbar-nav .menu-item .dropdown-menu li {
        width: 100%;
        white-space: inherit;
    }

    .navbar-nav .menu-item .dropdown-menu li .dropdown-item {
        white-space: inherit;
    }

    .navbar-light .navbar-toggler {
        margin-left: 15px;
    }

    #event-search-form {
        top: 55px;
    }

    .bannersec .videoplayer {
        height: 40vh;
        min-height: 320px;
    }

    .rightbutton {
        position: absolute;
        right: 0;
        top: 60px;
        background: #fff;
        border-radius: 30px 0 0 30px;
        padding: 0;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
        min-width: 70px;
    }

    .timeline-sec-wrap .timeline-caption .img-wrap .image-in {
        padding: 4%;
        /*        width: 108px;                height: 108px;*/
    }

    .wpml-ls-legacy-dropdown-click .wpml-ls-current-language>a,
    .wpml-ls-legacy-dropdown-click .wpml-ls-current-language:hover>a {
        border-radius: 25px 0 0 25px;
    }

    .wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {
        border-radius: 25px;
        text-align: center;
    }

    .searchsec {
        margin-top: -54px;
    }

    .searchsec .topsec.sbradius {
        border-radius: 15px;
    }

    .noveterritori {
        background-size: cover
            /*auto 70%*/
            !important;
    }
}

@media only screen and (max-width: 1024px) {

    .eventi .swiper-slide .card .card-img-top .dates .data-intervallo,
    .gridsection .card .card-img-top .dates .data-intervallo,
    .senigallia-sub-header .dates .round .data-intervallo {
        left: 46px;
    }
}

@media (max-width: 992px) {

    .breadcrumbs-list span,
    .breadcrumbs-list a {
        font-size: var(--font10);
    }

    .content-sec-rocca .right-caption .card-content li {
        border-bottom: transparent;
    }

    .content-sec-rocca .redmoretext p {
        font-size: var(--font16);
    }

    .senigallia-sub-header .dates {
        bottom: 52px;
    }
}

@media (max-width: 767px) {
    .rightcircle {
        right: 0;
        bottom: 0;
    }

    .riducicerchio button {
        transform: scale(2);
        position: absolute;
        width: 100%;
        bottom: -50px;
        right: 25px;
    }

    .single-itinerario .card-header {
        display: block !important;
    }

    .single-itinerario .content-sec-rocca .right-caption {
        border-radius: 0;
        -webkit-box-shadow: rgba(0, 0, 0, 0.16) 0 6px 10px;
        box-shadow: rgba(0, 0, 0, 0.16) 0 6px 10px;
        top: 150px;
        border-radius: 15px;
        overflow: hidden;
    }

    .single-itinerario ul.card-content::after {
        background: transparent;
        display: none;
    }

    .genericobox .heading {
        font-size: var(--font40);
    }

    .topheader .hearticon::before {
        width: 42px;
        height: 42px;
    }

    .topheader .hearticon {
        font-size: inherit;
        width: inherit;
        height: inherit;
        line-height: inherit;
        display: block;
        position: relative;
    }

    .icone-mobile .btn {
        padding: 5px !important;
    }

    .icone-mobile .btn img,
    .icone-mobile .btn svg {
        height: 24px;
        z-index: 1;
        position: relative;
    }

    .sub-title svg {
        width: 24px;
        margin-top: -5px;
    }

    ul.card-content::after {
        content: '';
        background: rgb(255, 255, 255);
        background: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%);
        background: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%);
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff", endColorstr="#ffffff", GradientType=1);
        position: absolute;
        right: -15px;
        width: 70px;
        height: 100%;
    }

    .animate-heart-icon .piace {
        font-size: var(--font12);
        margin-right: -1rem;
    }

    .senigallia-sub-header img {
        max-width: 24px;
    }

    .senigallia-sub-header .dates {
        bottom: 70px;
    }

    .animate-heart-icon .hearticon {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .topheader .logo {
        max-width: 140px;
    }
}

@media screen and (min-width: 1900px) {
    .dcenter {
        width: 100%;
    }
}

/* --- STICKY FOOTER POPUP (Image & Colored Border) --- */


.sticky-footer-popup {
    /* Position */
    position: fixed;
    bottom: 20px;
    left: 80px;
    width: 300px;
    z-index: 9999;

    /* Appearance - Card Style */
    background-color: #ffffff;

    /* COLORED BORDER REQUESTED */
    border: 2px solid #c5a900;

    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

    /* Remove padding from main container so image hits edges */
    padding: 0;
    overflow: hidden;
    /* Ensures image corners stay rounded */

    /* Animation */
    animation: slideInUp 0.8s ease-out forwards;
    display: block;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button - Moved above image */
.sticky-footer-popup .popup-close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: rgba(255, 255, 255, 0.8);
    /* Semi-transparent background */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 0;
    line-height: 22px;
    text-align: center;
    z-index: 10;
    /* Ensure it's above image */
    transition: all 0.2s;
}

.sticky-footer-popup .popup-close-btn:hover {
    background: #fff;
    color: #000;
}

/* --- IMAGE STYLE (Fluid) --- */
.sticky-footer-popup .popup-image-container {
    width: 100%;
    /* Removed fixed height to allow fluid scaling */
    height: auto;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.sticky-footer-popup .popup-image-container img {
    /* Img-fluid behavior */
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- TEXT BODY --- */
.sticky-footer-popup .popup-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 15px;
    /* Padding is now applied here */
    padding: 20px 25px 25px 25px;
}

/* Text Content Wrapper */
.sticky-footer-popup .popup-text {
    width: 100%;
}

/* Subtitle */
.sticky-footer-popup .popup-text .popup-subtitle {
    font-size: 13px;
    color: #c5a900;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Main Title */
.sticky-footer-popup .popup-text h4 {
    margin: 0 0 15px 0;
    font-family: 'Roboto Slab', serif !important;
    font-size: 20px;
    color: #2b2b2b;
    font-weight: 700;
    line-height: 1.2;

    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* NEW Icon Animation */
.sticky-footer-popup .popup-text h4::after {
    content: '';
    display: inline-block;
    width: 34px;
    height: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c5a900' d='M23,12l-2.4-2.1l0.6-3.1l-3-0.9l-1.3-2.9L14,4.3L12,2L10,4.3l-2.9-1.2L5.8,5.9L2.8,6.8l0.6,3.1L1,12 l2.4,2.1l-0.6,3.1l3,0.9l1.3,2.9l2.9-1.2l2,2.3l2-2.3l2.9,1.2l1.3-2.9l3-0.9l-0.6-3.1L23,12z'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='Arial, sans-serif' font-size='6' font-weight='bold' fill='white' dy='1'%3ENEW%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: badgePulse 2s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Editor Text */
.sticky-footer-popup .popup-editor-content {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.sticky-footer-popup .popup-editor-content p {
    margin: 0 0 10px 0;
    padding: 0;
}

/* Button CTA */
.sticky-footer-popup .btn-popup {
    display: inline-block;
    background-color: #c5a900;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    font-family: 'Roboto Slab', serif !important;
}

.sticky-footer-popup .btn-popup:hover {
    background-color: #a88f00;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(197, 169, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .sticky-footer-popup {
        width: auto;
        left: 20px;
        right: 20px;
        bottom: 80px;
    }
}