@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root, * {
    --border-radius: 12px;
}

html, body {
    min-width: 100% !important;
    min-height: 100% !important;
    height: 100% !important;
    width: 100% !important;
}


body {
    border-color: var(--bs-primary);
    font-family: "FuturaPT", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 0.9rem;
    -webkit-font-smoothing: antialiased;
    color:  var(--bs-primary);
}

body, body * {
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
    vertical-align: top;
}
a,
a:visited,
a:hover,
a:focus,
a:active,
a *:not(u){
    text-decoration: none !important;
    color:  var(--bs-primary);
}

.no-anima {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "FuturaPT", serif;
    font-weight: 500 !important;
    font-style: normal;
    color: var(--text-secondary);
    word-break: break-word !important;
}

[style*="background-image"] {
    background-size: cover;
    background-position: center center;
}

#layout-header {
    margin-bottom: -10vw;
}
[data-tema="rect-head"] #layout-header {
    margin-bottom: -3vw;
}


.header-bg {
    position: relative;
}
.header-bg::before {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 50%;
    transform: translateX(-50%);
    z-index: -1;
    background-color: #fff;
}

.header-bg::after {
    content: '';
    position: absolute;
    display: block;
    background-image: var(--bg-header);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: bottom center;
    top: 0;
    left: 50%;
    width: 100vw;
    height: calc(100% + 12vw);
    transform: translateX(-50%);
    z-index: -1;
    border-top: 5vw solid #fff;
}

.banner-light,
.banner-hp {
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 4px;
    border: 3px solid var(--bs-primary);
    position: relative;
    z-index: 1;
}
.banner-light::after,
.banner-hp::after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: var(--bs-primary);
    z-index: -1;
    border: 2px solid #fff;
}
.banner-light { outline: 1px solid #fff; }
.banner-light::after { border: 1px solid #fff; }

.btn {
    background-color: #000;
    color: var(--bs-primary) !important;
    border-radius: var(--border-radius) !important;
}
.btn[class*="border-"] {
    border-color: #000;
}
.bg-white [class*="border-"]{
    border-style: solid !important;
}
.bg-white [class*="border-"]{
     border-color: #000;
 }
body:not([data-tema*="rect-head"]) #site {
    padding-top: 18vw !important;
}
body[data-tema*="rect-head"] #site {
    padding-bottom: 6vw;
    min-height: 230px;
}
body[data-tema*="rect-head"] #site:not(.hasMaps) {
    padding-top: 6vw !important;
}

select, input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
    padding: 18px 14px;
    border-radius: var(--border-radius) !important;
    width: 100%;
    border: none;
    background-color: #fff;
    min-height: 60px;
}

label[for="privacy"] {
    padding-right: ;
    padding-left: 40px;
    position: relative;
}
label[for="privacy"] input {
    position: absolute;
    top: 0;
    left: 0;
    height: 30px;
    width: 30px;
}


.header-logo {
    width: 100px;
}
.img-title {
    max-width: 34px;
}


.blur #site:not(.no-overlay)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}
.blur #site {
    position: relative;
}
.blur #site .container {
    z-index: 10;
    position: relative;
}

#qrcode {
    cursor: pointer;
}
#qrcode::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: transparent;
    pointer-events: none;
    outline: 15px solid #fff;
}

.qr-big #qrcode {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999999999;
    transform: translate(-50%,-50%);
    max-width: calc(100vw - 20px);
    outline: 2000px solid rgba(0,0,0,.8);
}
.qr-big header { z-index: 10 !important; }
.qr-big #content { z-index: 1000 !important; }








/* styling base, opzionale */
.menu-slider .slide > div {
    border-radius: 12px;
    border: 1px solid;
}

.tns-outer {
    width: 120vw;
    left: calc( ( 120vw - 100vw ) * -1 );
    position: relative;
}

.tns-outer + #custom-nav {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.tns-outer + #custom-nav button {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    max-width: 8px;
    max-height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
}

.tns-outer + #custom-nav button.active {
    background: #333;
}

.tns-outer .tns-ovh {
    padding: 20px 0px;
}

.tns-outer .tns-item.tns-slide-active + .tns-item.tns-slide-active > div:not( .tns-item.tns-slide-active + .tns-item.tns-slide-active + .tns-item.tns-slide-active > div ) {
    background-color: rgba(var(--bs-primary-rgb), 1) !important;
    color: #fff;
}

.tns-outer .tns-item.tns-slide-active + .tns-item.tns-slide-active:not( .tns-item.tns-slide-active + .tns-item.tns-slide-active + .tns-item.tns-slide-active ) {
    transform: scale(120%);
    image-rendering: optimizeSpeed; /* a volte aiuta */
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.tns-outer .tns-item + .tns-item > div img:not( .tns-item + .tns-item + .tns-item > div img ) {
    filter: brightness(110%);
}

.white-svg,
.tns-outer .tns-item.tns-slide-active + .tns-item.tns-slide-active > div img:not( .tns-item.tns-slide-active + .tns-item.tns-slide-active + .tns-item.tns-slide-active > div img ) {
     filter: brightness(300%);
}

.lista-negozi .icona-negozio {
    max-width: 34px;
    width: 34px;
    min-width: 34px;
}
.lista-negozi .espandi-negozio {
    max-width: 26px;
    width: 26px;
    min-width: 26px;
}
.lista-negozi .spesa-negozio {
    max-width: 100px;
    width: 100px;
    min-width: 100px;
}
.lista-negozi > .row {
    border: 1px solid rgba(var(--bs-primary-rgb),var(--bs-bg-opacity));
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.lista-negozio.selected {
    background-color: rgb(var(--bs-primary-rgb));
    color: #fff;
}
.lista-negozio.selected img {
    filter: brightness(300%);
}


.lista-negozio > a,
.lista-negozio > div {
    position: relative;
    z-index: 1;
}

.lista-negozio > a:after,
.lista-negozio > div:after {
    content: '';
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
    pointer-events: none;
    background-color: rgba(var(--bs-primary-rgb),0);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    display: block;
}

.lista-negozio:not(.white) > a[aria-expanded="true"]:after,
.lista-negozio:not(.white) > a[aria-expanded="true"] + div:after {
    background-color: rgba(var(--bs-primary-rgb),1);
}

.lista-negozio:not(.white) > a[aria-expanded="true"] *,
.lista-negozio:not(.white) > a[aria-expanded="true"] + div * {
    color: #fff !important;
}

.lista-negozio > a[aria-expanded="true"] img {
    filter: brightness(300%);
}

.lista-negozio.white > a:after,
.lista-negozio.white > div:after {
    background-color: #fff;
}

/*
.lista-negozio > a[aria-expanded="true"],
.lista-negozio > .collapsing,
.lista-negozio > .collapse.show {
    background-color: rgba(var(--bs-primary-rgb), 1) !important;
    color: #fff !important;
}
.lista-negozio > a[aria-expanded="true"] * {
    color: #fff !important;
}

 */

.negozio-temporaneo {
    position: absolute;
    bottom: 30px;
    z-index: 999999999;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}
.negozio-temporaneo .lista-negozio {
    background-color: rgb(var(--bs-primary-rgb)) !important;
}




.menu-hamburger {
    right: 0;
    top: 40px;
}
.menu-btn {
    cursor: pointer;
}
.menu-content .menu-btn,
.menu-hamburger {
    height: 26px;
    max-width: 26px;
    width: 26px;
}

.back-btn{
    left: 0;
    top: 40px;
}
.back-btn img{
    height: 26px;
    max-height: 26px;
    max-width: 26px;
    width: 26px;
}

.menu-content {
    position: fixed;
    top: 10px;
    right: 0px;
    transform: translateX(100%);
    background-color: rgba(var(--bs-primary-rgb),1);
    width: 60px;
    height: calc( 100vh - 20px );
    z-index: 999999;
    border-radius: 6px;
}
body.show-menu .menu-content {
    right: 10px;
    transform: translateX(0%);
}
.menu-content img {
    cursor: pointer;
    filter: brightness(160%);
    height: 28px;
    max-width: 28px;
}
.menu-content img:hover {
    filter: brightness(300%);
}

.read-qrcode {
    max-width: 90px;
}

.gruppo-clienti .show-clienti,
.gruppo-negozi .show-negozi { display: block !important; }

.gruppo-negozi .show-clienti,
.gruppo-clienti .show-negozi { display: none !important; }

.qr-scanner {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0,0,0,.8);
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.qr-scanner.show{
    display: flex;
    z-index: 999999999999999999999999999999;
}
.hidden {
    display: none;

}












.collapse:not(.show) {
    display: none !important;
}
















































#gmaps, #gmaps * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}
#gmaps { min-height: 230px; height: 100%; width: 100%; }
#gmaps.expand {
    min-height: 450px;
}
#gmaps .pulse {
    position: relative;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,.35) inset;
}
#gmaps .pulse::before{
    content: "";
    position: absolute; inset: -8px;
    border: 3px solid #000;
    border-radius: 50%;
    opacity: .85;
    animation: ring 1.8s cubic-bezier(.2,.6,.4,1) infinite;
}
@keyframes ring {
    0% { transform: scale(.5); opacity: .9; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { opacity: 0; }
}

.cursor-pointer {
    cursor: pointer !important;
}

.close-qr-scanner {
    top: 30px;
    left: 30px;
    width: 40px;
    height: 40px;
}









































.pulse {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
}
.pulse::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 3px solid #000;
    border-radius: 50%;
    opacity: .85;
    animation: ring 1.8s cubic-bezier(.2,.6,.4,1) infinite;
}
@keyframes ring {
    0%   { transform: scale(.5); opacity: .9; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { opacity: 0; }
}


#appQR,
#appVue {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999999999;
    background-color: rgba(255,255,255,.8);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#appQR:not(.hidden),
#appVue:not(.hidden) {
    display: flex;
}
#appQR video,
#appVue video {
     border: 2px solid #fff;
     border-radius: 20px;
 }