.bg_main {
    background: #ffffff; /* fallback */
background: linear-gradient(to top, #ffffff 0%, #d8d8db 100%);
background: -webkit-linear-gradient(top, #ffffff 0%, #d8d8db 100%);
background: -moz-linear-gradient(top, #ffffff 0%, #d8d8db 100%);
width: 100%;
height: 40%;
position:absolute;
z-index: -1;
}
.color_red {
    color: #c80806;
}
.bg_red {
    background-color: #c80806;
}
.color_blue {
    color: #4faff8;
}
.bg_dark {
    background: #0a0a0a;
}
.bg_dark_half {
  background: linear-gradient(
    to top,
    #ffffff 50%,
    #0a0a0a 50%
  );
  width: 100%;
  height: 80%;
  position: absolute;
  z-index: -1;
}

.video-modal {
    display: none;              /* nascosto di default */
    position: fixed;
    inset: 0;                   /* top:0; right:0; bottom:0; left:0; */
    background: rgba(0, 0, 0, 0.9); /* sfondo nero con opacity 0.3 */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;              /* mostralo come flex per centrare il contenuto */
}

.video-modal-content {
    position: relative;
    background: #000;
    padding: 0px;
    border-radius: 2rem;
    max-width: 90vw;
    max-height: 90vh;
}

.video-modal-content video {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 0px;
    cursor: pointer;
    z-index: 99999;
}
#video_overlay {
    cursor: pointer;
}

/* Compatibilità aggiuntiva (facoltativa ma consigliata) */
.bg_dark_half {
  background: -webkit-linear-gradient(top, #0a0a0a 50%, #ffffff 50%);
  background: -moz-linear-gradient(top, #0a0a0a 50%, #ffffff 50%);
}
.bg_main_cnt h3 {
    color: #b7b7b7;
    text-align: center;
    font-size: 50px;
    position: absolute;
    z-index: 1;
    top: 0.5rem;
}
.bg_main_cnt img {
    z-index: 2;
    position: relative;
    width: 100%!important;
}
.desc_1 label {
    text-align: center;
        background: #e6e6e8;
    border-radius: 3px;
    padding: 2px 8px;
}
.button_full {
    background-color: #000;
    color: #fff;
    border-radius: 3px;
    padding: 15px 25px;
    border: 1px solid #000;
    text-decoration: none;
}
.button_full_blue {
    background-color: #4faff8;
    color: #fff;
    border-radius: 3px;
    padding: 15px 25px;
    border: 1px solid #4faff8;
    text-decoration: none;
}
.button_empty {
    background-color: #fff;
    color: #000;
    border-radius: 3px;
    padding: 15px 25px;
    border: 1px solid #000;
    text-decoration: none;
}
.button_empty_red {
    background-color: #c80806;
    color: #fff;
    border-radius: 3px;
    padding: 15px 25px;
    border: 1px solid #c80806;
    text-decoration: none;
}
.button_empty_white {
    background-color: transparent;
    color: #fff;
    border-radius: 3px;
    padding: 15px 10px;
    border: 1px solid #fff;
    text-decoration: none;
}
.desc_2 .big {
    font-size: 65px;
}
.desc_3 h3 {
    font-weight: 900;
    font-size: 35px;
}
.desc_3 h4 {
    font-size: 30px;
}
.img_out_1 {width: 60%;}
.img_out_1 img {border-radius: 0 1rem 1rem 0;}
.img_out_2 {width: 100%; margin-top: -3rem;}
.img_out_2 img {border-radius: 1rem 0 0 1rem; width: 50%;}
.img_out_3 {width: 70%; margin-top: -4rem;}
.img_out_3 img {border-radius: 0 1rem 1rem 0;}
.card {background-color: #eeeff2;border:0px;border-radius: 1rem;}
.card_2 {position: relative;}
.card_2 img {border-radius: 1rem; z-index: 1;}
.card_2 .descr {position: absolute;z-index: 2;width: 100%;height: 100%;bottom: 0;display: flex;flex-direction: column;justify-content: flex-end; color: #fff;}
.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    position: relative;
    margin-top: 1rem;
}
.swiper-pagination-bullet {background: #000!important;}
.pulse {
  animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
}
.dot {
    border-radius: 50%;
    height: 28px;
    width: 28px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 1px 1px #ffffff1a;
}
.dot1 {
    position: absolute;
    top: 10rem;
    left: 3rem;
    z-index: 2;
}
.dot2 {
    position: absolute;
    top: 15rem;
    right: 3rem;
    z-index: 2;
}
.dot3 {
    position: absolute;
    bottom: 18rem;
    right: 7rem;
    z-index: 2;
}
.dot4 {
    position: absolute;
    bottom: 10rem;
    left: 5rem;
    z-index: 2;
}
.dot5 {
    position: absolute;
    top: 15rem;
    left: 9rem;
    z-index: 2;
}
video {border-radius: 1rem;}
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 50px;
    height: 50px;

    border: 2px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;

    display: flex;
    justify-content: center;
    align-items: center;
}

.video-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}
.swiper5 .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 1;
    padding: 0.3rem;
    border-radius: 0.5rem;
}
.swiper5 .swiper-slide-thumb-active {
    opacity: 1;
    border: 1px solid #000;
    padding: 0.3rem;
    border-radius: 0.5rem;
}
.swiper5 .swiper-button-prev.swiper-button-disabled,
.swiper5 .swiper-button-next.swiper-button-disabled {
    display: none;
}
.swiper5 .swiper-button-next,
.swiper5 .swiper-button-prev {
    background-color: #e4e4e5;
    height: 28px;
    width: 28px;
    border-radius: 0.2rem;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.16);
    top: 60% !important;
}
.swiper5 .swiper-button-next svg,
.swiper5 .swiper-button-prev svg {
    color: #000;
    height: 15px;
}
.swiper4 .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    position: absolute;
    bottom: 0;
    padding-top: 2rem;
    padding-bottom: 0.8rem;
}
.swiper4 .swiper-pagination {
    background: #ffffff00; /* fallback */
background: linear-gradient(to top, #ffffff00 0%, #000 100%);
background: -webkit-linear-gradient(top, #ffffff00 0%, #000 100%);
background: -moz-linear-gradient(top, #ffffff00 0%, #000 100%);
}
.swiper4 .swiper-pagination-bullet {background: #fff!important;}
.row>* {
    padding-right: calc(var(--bs-gutter-x) * 1.2);
    padding-left: calc(var(--bs-gutter-x) * 1.2);
}
.offcanvas-header {
    align-items: flex-start;
}
button.btn-close {
    height: 28px;
    width: 28px;
    border-radius: 0.2rem;
    padding: 0 !important;
    opacity: 1;
    background: #f1f1f2 var(--bs-btn-close-bg) center/0.75em auto no-repeat;
    margin-top: 0rem !important;
}
.offcanvas.show:not(.hiding), .offcanvas.showing {width: 100%;border-left: 0px;}

.offcanvas-header, .offcanvas-body {
    padding-right: 4rem;
    padding-left: 4rem;
}
.accordion-button:not(.collapsed) {
    background-color: transparent;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='8' y1='2' x2='8' y2='14'/%3e%3cline x1='2' y1='8' x2='14' y2='8'/%3e%3c/svg%3e");
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='2' y1='8' x2='14' y2='8'/%3e%3c/svg%3e");
}
.info-panel {
  position: fixed;
  top: 0; left: 0;
  bottom: 0; right: 0;
  width: 100%;
  padding: 25px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  z-index: 20;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
    width: 100%;
    align-content: end;
    flex-wrap: wrap;
}
.info-panel.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}
button.panel-close {
    position: absolute;
    right: 20px;
    background-color: #fff;
    border-radius: 5px;
    border: 0px;
    padding: 10px;
    font-size: 24px;
    color: #6e6e6e;
    line-height: 17px;
}
.panel_text h4, .panel_text p {
    color: #fff;
}
#panel1 {
    background-image: url(../img/ANTEPRIMA-REEL-Q8.png);
}
#panel2 {
    background-image: url(../img/ANTEPRIMA-REEL-Q8.png);
}
#panel3 {
    background-image: url(../img/ANTEPRIMA-REEL-Q8.png);
}
#panel4 {
    background-image: url(../img/ANTEPRIMA-REEL-Q8.png);
}
#panel5 {
    background-image: url(../img/ANTEPRIMA-REEL-Q8.png);
}
input {
    background-color: #fff;
    color: #000!important;
    border-radius: 3px!important;
    padding: 15px 10px!important;
    border: 1px solid #000!important;
}
input#phone {
    padding-left: 76px!important;
}
#_form_29_ label,
#_form_33_ label {
    background-color: #fff;
}
div#offcanvasNavbar3,
div#offcanvasNavbar2,
div#offcanvasNavbar {
    width: 56%;
}
.offcanvas-body #_form_29_ ._form_element,
.offcanvas-body #_form_33_ ._form_element {
    width: 50%;
}
.offcanvas-body #_form_29_ ._form-content,
.offcanvas-body #_form_33_ ._form-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.offcanvas-body #_form_29_ ._form_element:nth-child(1),
.offcanvas-body #_form_29_ ._form_element:nth-child(3),
.offcanvas-body #_form_29_ ._form_element:nth-child(5),
.offcanvas-body #_form_33_ ._form_element:nth-child(1),
.offcanvas-body #_form_33_ ._form_element:nth-child(3),
.offcanvas-body #_form_33_ ._form_element:nth-child(5) {
    padding-right: 5px;
}
.offcanvas-body #_form_29_ ._form_element:nth-child(2),
.offcanvas-body #_form_29_ ._form_element:nth-child(4),
.offcanvas-body #_form_29_ ._form_element:nth-child(6),
.offcanvas-body #_form_33_ ._form_element:nth-child(2),
.offcanvas-body #_form_33_ ._form_element:nth-child(4),
.offcanvas-body #_form_33_ ._form_element:nth-child(6) {
    padding-left: 5px;
}
._form_element._x06164302._full_width.mb-0 {
    width: 100%!important;
}
.offcanvas-body #_form_29_ ._button-wrapper._full_width,
.offcanvas-body #_form_33_ ._button-wrapper._full_width {
    width: 50%;
    margin-top: 1rem;
}
.bg_main_cnt img.logo_02 {
    width: 35%!important;
}
#_form_31_._inline-form ._submit {
    width: 100%;
    margin-bottom: 2rem;
}
header img {
    width: 25%;
}
.px_personalizzato {
    padding-left: 20rem;
    padding-right: 20rem;
}
.box_manipoli {
    border: 1px solid #dddddd;
    border-radius: 1rem;
    padding: 1rem;
}
.box_manipoli a {
    text-decoration: none;
    color: #000;
}
.hr_box {
    border-bottom: 1px solid #dddddd;
    border-top: 0px;
    opacity: 1;
}
.select_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.select_box .risposta {
    width: 80%;
}
.text-grey {
    color: #a2a2a2;
}
#overlay_form_manipoli {
    position: absolute;
    top: -1px;
    right: -1px;
    left: -1px;
    bottom: -1px;
    background-color: #fff;
    opacity: 0.8;
    z-index: 10;
}
input[type="radio"] {
    width: 22px;
    height: 22px;
}
input[type="radio"]:checked {
    color: #000;
}
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #000;
    border-radius: 50% !important;
    display: grid;
    place-content: center;
    cursor: pointer;
    padding: 0px !important;
}

input[type="radio"]::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: scale(0);
  transition: 0.2s ease-in-out;
  background: #000;
}

input[type="radio"]:checked::before {
  transform: scale(1);
}
.numero_macchinari {
    font-size: 55px;
}
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
}
.time-box {
    text-align: center;
    min-width: 60px;
}
.time-value {
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    color: white;
    font-family: 'Museo Sans', sans-serif !important;
}
.time-label {
    font-size: 12px;
    font-family: 'Museo Sans', sans-serif !important;
    color: white;
    margin-top: 0px;
}
.separator {
    font-size: 24px;
    font-weight: bold;
    color: #58ffb0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dot {
    font-size: 30px;
    color: #fff;
    font-family: 'Museo Sans', sans-serif !important;
    background-color: transparent;
    box-shadow: none;
}
.bg_red .button_empty {
    border: 0px;
}
@media screen and (max-width:600px) {
    .desc_2 .big {
        font-size: 40px;
    }
    .desc_3 h3 {
        font-size: 25px;
    }
    .w-50 {
        width: 100%!important;
    }
    div#offcanvasNavbar2,
    div#offcanvasNavbar3 {
        width: 100%;
    }
    .offcanvas-body, .offcanvas-header {
    padding-right: calc(var(--bs-gutter-x) * 1.2);
    padding-left: calc(var(--bs-gutter-x) * 1.2);}
    .offcanvas-body #_form_29_ ._form_element,
    .offcanvas-body #_form_33_ ._form_element {
        width: 100%;
    }
    .offcanvas-body #_form_29_ ._form_element:nth-child(1),
    .offcanvas-body #_form_29_ ._form_element:nth-child(3),
    .offcanvas-body #_form_29_ ._form_element:nth-child(5),
    .offcanvas-body #_form_33_ ._form_element:nth-child(1),
    .offcanvas-body #_form_33_ ._form_element:nth-child(3),
    .offcanvas-body #_form_33_ ._form_element:nth-child(5) {
        padding-right: 0px;
    }
    .offcanvas-body #_form_29_ ._form_element:nth-child(2),
    .offcanvas-body #_form_29_ ._form_element:nth-child(4),
    .offcanvas-body #_form_29_ ._form_element:nth-child(6),
    .offcanvas-body #_form_33_ ._form_element:nth-child(2),
    .offcanvas-body #_form_33_ ._form_element:nth-child(4),
    .offcanvas-body #_form_33_ ._form_element:nth-child(6) {
        padding-left: 0px;
    }
    .offcanvas-body #_form_29_ ._button-wrapper._full_width,
    .offcanvas-body #_form_33_ ._button-wrapper._full_width {
        width: 100%;
    }
    .button_empty, .button_full {
        width: 100%;
    }
    #_form_31_._inline-form ._submit {
        width: 100%;
        margin-bottom: 2rem;
    }
    .bg_main_cnt img.logo_02 {
        width: 55%!important;
    }
    .first_page h1 {font-size: 22px;}
    header img {
        width: 50%;
    }
    .px_personalizzato {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    div#offcanvasNavbar2,div#offcanvasNavbar3, div#offcanvasNavbar {
        width: 100%!important;
    }
}