@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   VARIABILI E RESET
   =========================== */
:root {
    --primary-cyan: #00BCD4;
    --primary-yellow: #FFD526;
    --text-dark: #333333;
    --text-gray: #8B8B8B;
    --text-light: #CCCCCC;
    --bg-gray: #cbcbcb;
    --white: #FFFFFF;
}
[class*="border-"] {
    border-style: solid;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0097A7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   HEADER
   =========================== */
.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header__logo {
    width: 180px;
}

.header__badge {
    width: 60px;
}

/* ===========================
   HERO SECTION (SLIDER)
   =========================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero__image {
    flex: 1;
}

.hero__content {
    flex: 1;
    text-align: left;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero__arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero__arrow {
    background: rgba(255,255,255,0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.hero__arrow:hover {
    background: rgba(255,255,255,0.5);
}

/* ===========================
   BENEFICI SECTION
   =========================== */
.benefits {
    background: var(--white);
    padding: 80px 20px;
}

.benefits__container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits__intro {
    text-align: left;
    margin-bottom: 40px;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.4;
}

.benefits__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.benefits__card {
    text-align: left;
}

.benefits__card--main {
    padding: 40px 30px;
    border-radius: 0;
}

.benefits__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 25px;
    text-transform: uppercase;
    line-height: 1.3;
}

.benefits__value {
    font-size: 6rem;
    line-height: 4rem;
    font-weight: 500;
    color: var(--primary-cyan);
    margin: 0;
}

.benefits__value-currency {
    font-size: 2rem;
    vertical-align: super;
}

.benefits__description {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 10px;
    line-height: 1.5;
}

.benefits__description strong {
    font-weight: 700;
}

.btn-primary {
    background: var(--primary-cyan);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    background: #0097A7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,188,212,0.3);
}

/* ===========================
   STEPS SECTION
   =========================== */
.steps {
    background: var(--white);
    padding: 80px 20px;
}

.steps__container {
    max-width: 1200px;
    margin: 0 auto;
}

.steps__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 60px;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.step {
    text-align: center;
}

.step__number {
    font-size: 6rem;
    font-weight: 200;
    color: var(--primary-cyan);
    line-height: 1;
    margin-bottom: 15px;
}

.step__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.step__description {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.step__link {
    color: var(--primary-cyan);
    font-weight: 600;
}

/* ===========================
   CTA SECTION
   =========================== */


.cta {

}
.cta__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta__image {

}

.cta__content {
    flex: 1;
    text-align: left;
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--white);
    padding: 40px 20px;
    border-top: 1px solid #E0E0E0;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer__text {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.footer__text a {
    color: var(--primary-cyan);
    text-decoration: underline;
}

.footer__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.footer__logo {
    width: 150px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer__logo:hover {
    opacity: 1;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
    }

    .hero__image {
        max-width: 100%;
    }

    .hero__title {
        font-size: 2rem;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits__value {
        font-size: 3rem;
    }

    .steps__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta__container {
        flex-direction: column;
        text-align: center;
    }

    .cta__image {
        max-width: 100%;
    }

    .cta__title {
        font-size: 1.8rem;
    }

    .footer__logos {
        flex-direction: column;
        gap: 30px;
    }

    .hero__arrow {
        width: 40px;
        height: 40px;
    }

    .header__logo {
        width: 140px;
    }

    .header__badge {
        width: 50px;
    }
}

/* ===========================
   SLIDER STYLES
   =========================== */
.hero__slides {
    position: relative;
    width: 100%;
}

.hero__slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.hero__slide.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   OLD STYLES (PRESERVED)
   =========================== */

.text-cyan {
    color: var(--primary-cyan) !important;
}
.bg-cyan {
    background-color: var(--primary-cyan) !important;
}






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

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



.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: var(--primary-cyan);
    color: #fff !important;
    border-radius: 6px !important;
    min-width: 250px;
    max-width: 100%;
    border-color: var(--primary-cyan);
}
.btn:hover {
    color: var(--primary-cyan) !important;
    background-color: #fff;
    border-color: var(--primary-cyan);
}
.btn[class*="border-"] {
    border-color: var(--primary-cyan);
}
.bg-white [class*="border-"]{
    border-style: solid !important;
}
.bg-white [class*="border-"]{
     border-color: #000;
 }


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: 1px solid #c1c0c0 !important;
    background-color: #fff;
    min-height: 60px;
}
input[type="checkbox"] {
    border: 1px solid #c1c0c0 !important;
    background-color: #fff;
}

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

#confermatoScontrinoForm select,
#confermatoScontrinoForm input[type="text"],
#confermatoScontrinoForm input[type="email"],
#confermatoScontrinoForm input[type="password"],
#confermatoScontrinoForm input[type="tel"] {
    min-height: 40px;
}


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


#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 {
    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-ambassadors .icona-ambassador {
    max-width: 34px;
    width: 34px;
    min-width: 34px;
}
.lista-ambassadors .espandi-ambassador {
    max-width: 26px;
    width: 26px;
    min-width: 26px;
}
.lista-ambassadors .spesa-ambassador {
    max-width: 100px;
    width: 100px;
    min-width: 100px;
}
.lista-ambassadors > .row {
    border: 1px solid rgba(var(--bs-primary-rgb),var(--bs-bg-opacity));
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

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


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

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

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

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

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

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

 */

.ambassador-temporaneo {
    position: absolute;
    bottom: 30px;
    z-index: 999999999;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}
.ambassador-temporaneo .lista-ambassador {
    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-testers .show-testers,
.gruppo-ambassadors .show-ambassadors { display: block !important; }

.gruppo-ambassadors .show-testers,
.gruppo-testers .show-ambassadors { 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;
}

.validation-error > p {
    color: red !important;
}







































.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;
    right: 0;
    bottom: 0;
    z-index: 999999999999;
    background-color: rgba(255,255,255,.8);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}
#appQR:not(.hidden),
#appVue:not(.hidden) {
    display: flex;
}
#appQR video,
#appVue video {
    border: 2px solid #fff;
    border-radius: 20px;
    object-fit: cover;
 }

.is-disabled {
    pointer-events: none;   /* blocca il click */
    opacity: 0.5;           /* aspetto disabilitato */
    cursor: default;
}

.isLoading:after{
    content: "Riconoscimento in corso...";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.isBlur > video {
    outline: 4px solid red !important;
    outline-offset: -4px !important;
}


.tester-mail-error {
    text-align: center;
    font-size: 16px;
    color: red;
    margin-top: 10px;
}

/* ===========================
   TESTDRIVE PAGE
   =========================== */
.delete-media-btn {
    z-index: 10;
    position: absolute;
    right: 4px;
    top: 0;
    border: none;
    background-color: red;
    border-radius: 0 !important;
    width: 30px;
    height: 30px;
}

.edit-field-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.media-item-fade {
    transition: opacity 0.3s;
}
