:root {
    --primary: #004aad;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #010101;
    --color-blue: #103B61; 
    --color-orange: #FAB52B;
    --color-light: #FFF3E1;
    --color-fucsia: #E8308A;
    --color-green: #3BA835;
    
    --font-size-base: 1.1rem;
    --font-scale: 1;
}

@media (max-width: 480px) {
    :root {
        --font-scale: 0.85;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --font-scale: 0.9;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --font-scale: 0.95;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    :root {
        --font-scale: 1;
    }
}

@media (min-width: 1281px) and (max-width: 1440px) {
    :root {
        --font-scale: 1.1;
    }
}

@media (min-width: 1441px) and (max-width: 1700px) {
    :root {
        --font-scale: 1.3;
    }
}

@media (min-width: 1701px) {
    :root {
        --font-scale: 1.5;
    }
}

body {
    font-family: 'Gotham', sans-serif;
    font-size: calc(var(--font-size-base) * var(--font-scale));
    line-height: 130%;
}

.gotham {
    font-family: 'Gotham', sans-serif;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, .Cocogoose {
    font-family: 'Cocogoose-Pro-Bold', sans-serif;
    color: var(--color-blue);
}

h1, .h1 {
    font-size: calc(var(--font-size-base) * 2.2 * var(--font-scale));
}

h2, .h2 {
    font-size: calc(var(--font-size-base) * 2 * var(--font-scale));
}

h3, .h3 {
    font-size: calc(var(--font-size-base) * 1.75 * var(--font-scale));
}

h4, .h4 {
    font-size: calc(var(--font-size-base) * 1.5 * var(--font-scale));
}

h5, .h5 {
    font-size: calc(var(--font-size-base) * 1.25 * var(--font-scale));
}

h6, .h6 {
    font-size: calc(var(--font-size-base) * 1.125 * var(--font-scale));
}

.font-medium {
    font-size: calc(var(--font-size-base) * 0.85 * var(--font-scale));
}

.font-small {
    font-size: calc(var(--font-size-base) * 0.70 * var(--font-scale));
}

.call-obj.custom-object {
    background-color: var(--color-green);
    position: relative;
    overflow: hidden;
    padding-left: 5vw;
    padding-right: 5vw;    
    padding-top: 150px;
    padding-bottom: 70px;
    min-height: 0;    
}

.call-container {
    position: relative;
}

.call-icon-top-left {
    position: absolute;
    top: -110px;
    left: -70px;
    width: 150px;
    height: 150px;
    z-index: 2;
}

.call-icon-top-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.call-icon-bottom-right {
    position: absolute;
    bottom: -60px;
    right: -70px;
    width: 150px;
    height: 150px;
    z-index: 2;
}

.call-icon-bottom-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.call-content {
    position: relative;
    z-index: 1;
    color: #FFF;
    padding-left: 100px;
    padding-right: 100px;
    max-width: 79%;
}

.call-title {
    margin-bottom: 20px;
    color: #FFF
}

.call-description p {
    margin-bottom: 20px;
}

.whatsapp-button {
    position: fixed;
    bottom: 5vh;
    right: 5vw;
    width: fit-content;
    background-color: #3BA835;
    color: white;
    border-radius: 4px;    
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    gap: 12px;
    padding: 1% 1.5%;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color:#FFF
}
.whatsapp-button span {    
    font-weight: 300 !important;
}

@media (max-width: 1680px) {
    .call-obj.custom-object {
        padding-top: 120px;
    }    
    .call-icon-top-left {
        top: -80px;
        left: -40px;
        width: 130px;
        height: 130px;
    }
    .call-icon-bottom-right {
        bottom: -60px;
        right: -70px;
        width: 130px;
        height: 130px;
    }    
}
@media (max-width:1440px) {
    .call-icon-top-left {
        top: -60px;
        left: 0px;
        width: 100px;
        height: 100px;
    }
    .call-icon-bottom-right {
        bottom: -60px;
        right: 0px;
        width: 100px;
        height: 100px;
    }     
}

@media (max-width: 1280px) {
    .call-icon-top-left {
        top: -50px;
        left: 20px;
        width: 80px;
        height: 80px;
    }
    .call-icon-bottom-right {
        bottom: -50px;
        right: 20px;
        width: 80px;
        height: 80px;
    }    
}

@media (max-width: 992px) {
    .call-content {
        max-width:100%
    }
}

@media (max-width:767px) {
    .call-obj.custom-object {
        padding-top: 90px;
    }    
    .call-content {
        padding-left: 40px;
        padding-right: 40px;
    }
    .call-icon-bottom-right, .call-icon-top-left {
        width: 60px;
        height: 60px;
    }
    .call-icon-top-left {
        top: -50px;
        left: -16px;    
    }
    .call-icon-bottom-right {
        bottom: -70px;
        right: 0;
    }
}

@media (max-width:500px) {
    .whatsapp-button span { display: none; }
    .whatsapp-button {
        bottom: 5vh;
        right: 5vw;
        border-radius: 50%;
        padding: 10px;
        width: 60px;
        height: 60px;
        justify-content: center;
    }    
}

.btn-primary {
    color: #FFF;
    background-color: #103B61;
    border-color: #103B61;
}
.btn-primary:disabled, .btn-primary.disabled {
    color: #FFF;
    background-color: #103B61;
    border-color: #103B61;
}
.btn-secondary {
    color: #fff;
    background-color: #2196f3;
    border-color: #1a78c3;
}
.btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus {
    background-color: #038ccc;
    border-color: #03A9F4;    
}

a {
    color: #0048a8;
    text-decoration: none;
}
a:hover {
    color: #2196f3;
}

input#edm-email:focus-visible {
    outline: 1px solid #ddd;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.pt-6 {
    padding-top: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed !important;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}
.back-to-top {
    border: 1px solid #004aad;
}

nav.navbar { position: fixed; width: 100%; z-index: 1000; }

.navbar-brand img:hover {
    opacity: 0.8;
}
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
    position: relative;
    z-index: 1;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

/* Navbar con sfondo blu */
.navbar.bg-custom-blue {
    background-color: var(--color-blue) !important;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFF !important;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #FFF !important;
    opacity: 0.8;
}

.navbar .navbar-nav .nav-link.nav-link-active {
    color: var(--color-orange) !important
}

.navbar-socials a {
    color: #FFF !important;
    text-decoration: none;
}

.navbar-socials a:hover {
    opacity: 0.8;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link:hover::before,
.navbar .navbar-nav .nav-link.active::before {
    width: 100%;
    left: 0;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-family: 'Cocogoose-Pro-Bold';
    font-size: calc(0.75rem * var(--font-scale));
    line-height: 115%;
}

.navbar-light.sticky-top {
    top: 0;
    transition: .5s;
}

/* Navbar toggler per dispositivi mobili */
.navbar-toggler {
    outline: 0 !important;
    border-width: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1100;
    box-shadow: none;
}
.navbar-toggler:focus { box-shadow: none !important}

.navbar-toggler.active {
    transform: rotate(90deg);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
        color: white !important;
        font-size: 1rem;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
    }
    
   .navbar-collapse {
        background-color: var(--color-blue);
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0px 20px 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    .navbar-collapse.show {
        /*max-height: 80vh;*/
        overflow-y: auto;
    }
    
    /* Stile per i dropdown nel menu mobile */
    .navbar .nav-item .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
        padding-left: 15px;
    }
    
    .navbar .nav-item .dropdown-menu .dropdown-item {
        color: white !important;
        padding: 8px 15px;
    }
    
    .navbar .nav-item .dropdown-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        background-color: var(--color-blue);
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
    
    /* Stili per i link del dropdown */
    .navbar .nav-item .dropdown-menu .dropdown-item {
        color: #FFF !important;
        background-color: transparent;
    }
    
    .navbar .nav-item .dropdown-menu .dropdown-item:hover {
        color: #FFF !important;
        background-color: rgba(255, 255, 255, 0.1);
        opacity: 0.8;
    }
}


/*** Header ***/

/* Aggiunge spazio per la navbar fissa */
body {
    padding-top: 80px;
}
.header-carousel .container,
.page-header .container {
    position: relative;
    padding: 45px 0 45px 35px;
    border-left: 15px solid var(--primary);
}

.header-carousel .container::before,
.header-carousel .container::after,
.page-header .container::before,
.page-header .container::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100px;
    height: 15px;
    background: var(--primary);
}

.header-carousel .container::after,
.page-header .container::after {
    top: 100%;
    margin-top: -15px;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/*.page-header {
    background: linear-gradient(rgba(43, 57, 64, .5), rgba(43, 57, 64, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}*/

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
.about-bg {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 5px 5px;
}


/*** Category ***/
.cat-item {
    display: block;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    border: 1px solid transparent;
    transition: .5s;
}

.cat-item:hover {
    border-color: rgba(0, 0, 0, .08);
    box-shadow: none;
}


/*** Job Listing ***/
.nav-pills .nav-item .active {
    border-bottom: 2px solid var(--primary);
}

.job-item {
    border: 1px solid transparent;
    border-radius: 2px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.job-item:hover {
    border-color: rgba(0, 0, 0, .08);
    box-shadow: none;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}


/*** Footer ***/
/* Footer con sfondo blu */
.custom-footer.bg-custom-blue {
    background-color: var(--color-blue) !important;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 2px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.custom-footer {
    color: #FFF !important;
}

.custom-footer .footer-col {
    color: #FFF !important;
}

.custom-footer a {
    color: #FFF !important;
    text-decoration: none;
}

.custom-footer a:hover {
    opacity: 0.8;
}

.custom-footer .footer-right a {
    color: #FFF !important;
    font-size: 18px;
    margin: 0 5px;
}

.custom-footer .footer-right a:hover {
    opacity: 0.8;
}

.custom-dark h1,.custom-dark .h1,.custom-dark  h2,.custom-dark  .h2,.custom-dark  h3,.custom-dark  .h3,.custom-dark h4, 
.custom-dark .h4, .custom-dark h5,.custom-dark  .h5,.custom-dark  h6,.custom-dark  .h6 {
    color: #FFF;
}

.custom-object { min-height: 40vh; padding-top: 20vh;     padding-bottom: 20vh; }

.custom-contatti { 
    padding-top: 100px;
    padding-bottom: 100px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;    
}
.custom-contatti .container { position: relative; z-index: 1; }
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: rgba(0,0,0,0.4);
}
.custom-contatti h2 {     border-bottom: 5px solid var(--primary);
    display: inline-block;
    padding-left: 12px;
    padding-right: 12px;}

.carousel-item h1 { text-shadow: 1px 1px 2px #000; font-size: 56px; max-width: 560px; }
.carousel-item h1 div.carousel-subtitle { display: inline; }
.carousel-item h1 div.carousel-subtitle span { color: var(--primary);}
.carousel-item h1 div p {
    font-size: 28px;
    color: #e5e5e5;
    margin-top: 20px;
}

.container-row { width: 100%; }    
.col-80 { width: 80%; margin: 0 auto; }

.prefooter {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.footer-description {
    text-align: justify;
}

.custom-contact a { color: #FFF; font-size: 16px; font-weight:bold;}

.partners-container {
    padding-top: 80px;
    padding-bottom: 80px;
}

.partners-container h2 {
    margin-bottom: 40px;
}

.partners-container .partner-logo {
    height: 80px;
    margin-bottom: 30px;
    padding: 10px;
    text-align: center;
}

.partners-container .partner-logo img {
    max-height: 100%;
    max-width: 100%;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partners-container .partner-logo:hover img {
    filter: grayscale(0%);
}

.service-obj {
    padding-top: 80px;
    padding-bottom: 80px;
}

.service-obj h2 {
    margin-bottom: 50px;
    text-align: center;
}

.service-icon-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    transition: all 0.3s ease;
}

.service-icon-container:hover {
    transform: translateY(-10px);
}

.service-obj-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-icon-container:hover .service-obj-image {
    background-color: var(--primary);
}

.service-obj-image img {
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s ease;
}

.service-icon-container:hover .service-obj-image img {
    filter: brightness(0) invert(1);
}

.service-icon-container h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.service-icon-container p {
    color: #6c757d;
    font-size: 0.9rem;
}

.navbar-brand {
    padding-right: 18px;
}

.navbar-brand img {
    width: 300px;
    height: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.navbar-socials {
    padding-right: 18px;
    font-size: calc(0.75rem * var(--font-scale));
}

@media (max-width:1440px) {
    .navbar-brand img {
        width: 270px;
    }
}
@media (max-width: 1280px) {
    .navbar-brand img {
        width: 220px;
    }
}
@media (max-width: 1200px) {
    .navbar-brand img {
        width: 170px;
    }
    body {
        padding-top: 70px;
    }    
}

@media (max-width: 768px) {
    .service-obj {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .service-obj h2 {
        margin-bottom: 30px;
    }
    
    .service-obj-image {
        width: 100px;
        height: 100px;
        padding: 20px;
    }
    
    .partners-container {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .partners-container h2 {
        margin-bottom: 30px;
    }
    
    .partners-container .partner-logo {
        height: 60px;
        margin-bottom: 20px;
    }
    
    .carousel-item h1 {
        font-size: 36px;
    }
    
    .carousel-item h1 div p {
        font-size: 18px;
    }    
    .why-elements li {
        width: 100%;
    }    

}
.so-panel {
    margin: 0 !important;
}
@media (max-width:360px) {
    .navbar-brand { border: 0 !important;}
    .service-obj-image {
        width: 95px;
    }    
    .service-icon-container h5 {
        font-size: 0.9rem;
    }    
    .custom-contact a {
        font-size: 13px
    }
}

.custom-object.custom-object-contatore {
    padding-top: 24vh;
    background-color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    z-index: 1;
}

.floating-icon-top-left {
    top: 8%;
    left: 7%;
    animation: float1 4s ease-in-out infinite;
    width: 15%;
}

.floating-icon-top-right {
    top: 6%;
    right: 3%;
    animation: float2 3s ease-in-out infinite;
    width: 15%;
}

.floating-icon-bottom-left {
    bottom: 10%;
    left: 21%;
    animation: float3 3s ease-in-out infinite;
    width: 15%;
}

.floating-icon-bottom-right {
    bottom: 10%;
    right: 18%;
    animation: float4 4s ease-in-out infinite;
    width: 15%;
}

.icon-img {
    max-width: 85%;
    height: auto;
}

.contatore-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 80%;
    margin: 0 auto;
}

.contatore-title-wrapper {

}

.contatore-title {
    font-weight: bold;
    color: var(--color-blue);
}

.title-prefix, .title-suffix {
    display: inline-block;
}

.counter-number, .counter-number-placeholder {
    font-size: 190%;
    font-weight: 800;
    color: var(--color-orange);
    display: inline-block;    
}
.counter-number-placeholder { visibility: hidden; }
.counter-number { position: absolute; left: 0 }

.contatore-subtitle-wrapper {
    margin-bottom: 40px;
}

.contatore-subtitle {
    display: inline-block;
    background-color: var(--color-orange);
    color: var(--color-blue);
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 0;
}

.contatore-link-wrapper {
    margin-top: 40px;
}

.contatore-link {
    color: var(--color-blue); 
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contatore-link:hover {
    color: var(--color-orange); 
}

.chevron-down {

}

@media (max-width: 768px) {

    .custom-object.custom-object-contatore {
        padding-top: 10vh;
    }
    .counter-number, .counter-number-placeholder {
        font-size: 170%;
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

.custom-object-blocco {
    background-color: var(--color-blue);
    color: white;   
}

.blocco-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.blocco-text {
    flex: 1;
    padding: 30px;
}

.blocco-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;    
}

.blocco-image img {
    max-width: 100%;
    height: auto;
}

.blocco-title {
    font-weight: bold;
    color: var(--color-orange);
    display: flex;
    align-items: center;
    padding-right: 15%;
}

.blocco-subtitle {
    font-weight: normal;
    margin-bottom: 20px;
    color: white;
    padding-right: 15%;
}

.blocco-title-icon {
    max-width: 15%;
    height: auto;
    width: 100%;
    position: absolute;
    right: 0;
    top: -100%;
}

.blocco-description p {
    font-weight: 300;
    line-height: 140%; 
}
.blocco-description strong {
    font-weight: 600 
}
/* Classi per l'ordinamento */
.order-first {
    order: 1;
}

.order-last {
    order: 2;
}


@media (max-width: 768px) {
    .blocco-content {
        flex-direction: column;
    }  
    
    .blocco-image {
        margin-bottom: 20px;
    }   
    
    .blocco-image {
        order: 1 !important;
    }
    
    .blocco-text {
        order: 2 !important;
    }

    .blocco-title-icon {
        max-width: 10%;
        top: 0%;
    }    
}

@media (max-width: 500px) {    
    .blocco-text {
        padding: 20px 0;
    }
    .blocco-image {
        padding: 0;
    }      
}

.custom-object-risparmia {
    background-color: var(--color-blue);
    color: white;
}

.risparmia-content {
    padding-right: 30px;
}

.risparmia-title {
    font-weight: bold;
    margin-bottom: 30px;
    color: white;
}

.risparmia-description {
    margin-bottom: 30px;
    font-weight: 300
}

.text-highlight {
    color: var(--color-orange);
}

.rotating-text {
    display: inline-block;
    color: var(--color-orange);
    transition: opacity 0.5s, transform 0.5s;
    opacity: 1;
    transform: translateY(0);
    font-weight: bold;
}

.rotating-text.text-exit {
    opacity: 0;
    transform: translateY(-10px);
}

.rotating-text.text-enter {
    opacity: 1;
    transform: translateY(0);
}

.risparmia-cta {
    margin-top: 40px;
    margin-top: 40px;
}

.whatsapp-text {
    color: #FFD700;
}

.risparmia-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

@media (max-width: 768px) {
    .risparmia-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .risparmia-title {
        font-size: 2.2rem;
    }

    .risparmia-image {
        margin-top: 30px;
    }
}

.why-obj {
    background-color: #FDC741;
    position: relative;
    overflow: hidden;
    padding-top: 10vh;
    padding-bottom: 15vh;    
}

.animate-in-view {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in-view.in-view {
    opacity: 1;
    transform: translateY(0);
}

.why-main-icon {
    position: relative;
}

.icon-popup-effect {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    transform: scale(0.1);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    top: 30px;    
}

.why-main-icon.in-view .icon-popup-effect {
    animation: popupOnce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.icon-popup-effect img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.why-main-title {
    font-weight: 700;
    color: var(--color-blue);
    text-transform: lowercase;
}

.why-main-description {
    color: var(--color-blue);
    margin-left: auto;
    margin-right: auto;
}

.why-elements-row {
}

.why-element {
    text-align: center;
    padding: 20px 15px;
}

.why-element-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.why-element-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    top: 15px;    
}

.why-element-title {
    font-weight: 600;
    color: var(--color-blue);
    text-transform: uppercase;
}

@keyframes popupOnce {
    0% {
        transform: scale(0.1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.why-element:hover .why-element-icon {
    transform: translateY(-5px);
    box-shadow: none;
}

@media (max-width: 768px) {

    
    .why-main-title {
        font-size: 36px;
    }
    
    .why-main-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .icon-popup-effect {
        width: 100px;
        height: 100px;
    }
    
    .icon-popup-effect img {
        width: 50px;
        height: 50px;
    }
    
    .why-element-icon {
        width: 70px;
        height: 70px;
    }
}


.faq-obj {    
    background-color: #FFF;
    padding-top: 10vh;
    padding-bottom: 10vh; 
    color: var(--color-blue);
    padding-left: 20vw;
    padding-right: 20vw;    
}

.faq-main-title {
    font-weight: 600;
    color: var(--color-blue);
    margin-bottom: 30px;
    text-align: center;
}

.faq-main-description {
    margin-bottom: 60px;
    text-align: center;
}

.faq-accordion {
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0;
}

.faq-question {
    padding: 25px 0;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.faq-question h6 { color: var(--color-blue); }

.faq-star-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -5px;
    margin-right: 5px;
    /*opacity: 0;*/
    transition: opacity 0.3s ease;
}
.faq-star-icon img {
    width:100%; height:auto
}

/*.faq-question.active .faq-star-icon {
    opacity: 1;
}*/

.faq-answer {
    border-top: none;
    margin-top: -2.8rem;
}

.faq-answer-content {
    padding: 0 0 25px 88px;
}

.faq-answer-content p {
    margin: 0;
}

@media (max-width:1440px) {
    .faq-star-icon {    
        width: 45px;
        height: 45px;
    }
    .faq-question {
        padding: 12px 0;
    }
    .faq-answer {    
        margin-top: -1.5rem;
    }
    .faq-answer-content {
        padding: 0 0 25px 70px;
    }    
}
@media (max-width: 768px) {
    
    .custom-object.faq-obj {
        padding-left: 0vw;
        padding-right: 0vw;
        padding-top: 7vh;
        padding-bottom: 7vh;
    }
    
    .faq-question {
        gap: 15px;
    }
    .faq-answer {
        margin-top: -1rem;
    }
    .faq-answer-content {
        padding: 0 0 25px 56px;
    }    
    
    .faq-star-icon {
        width: 35px;
        height: 35px;
        transition: opacity 0.3s ease;
    }
    
    .faq-question.active .faq-star-icon {
        opacity: 1;
    }
    
}

.phrases-obj {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    padding-top: 10vh;
    padding-bottom: 5vh;
}

.phrases-main-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.phrases-main-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.phrases-list-row {
    margin-top: 40px;
}

.phrase-item {
    margin-bottom: 40px;
}

.phrase-content {
    padding: 30px 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.phrase-icon-container {
    position: relative;
    margin-bottom: 0px;
}

.phrase-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.phrase-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.phrase-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-blue)
}

.phrase-description {
    color: var(--color-blue);
    font-weight: 600;
    background-color: var(--color-orange);
    width: fit-content;
    padding: 2px 12px;
    margin: 0 auto;    
}

@media (max-width: 768px) {
    .phrases-obj {
        padding-top: 5vh;
        padding-bottom: 5vh;
    }    

}


.custom-object.custom-object-blocco { padding-top: 15vh; padding-bottom: 15vh; }

.comments-obj {
    padding-top: 10vh;
    padding-bottom: 10vh;;
    background-color:#FFF;
    position: relative;
    overflow: hidden;
}

.comments-main-title {
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--color-blue)
}

.comments-main-description {
    margin-bottom: 50px;
    text-align: center;
    color: var(--color-blue)
}

.comment-content {
    background-color: #FFF3E1;
    padding: 20px;
    border-radius: 8px;
}

.comment-user-info {
    font-weight: 600;
    color: var(--color-blue);    
}

.comment-user-name {
    margin: 0 0 5px 0;
}

.comment-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10vh;
    flex-wrap: wrap;
}
.comment-item {
    width: 25%;
}
.comment-item a:hover { opacity: 0.9; }
.comment-text {    
    color: var(--color-orange);
    font-weight: 800;    
}

/* Video Modal Styles */
#videoModal .modal-content {
    background: #000;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

#videoModal .modal-header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: none;
    padding: 10px 15px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1051;
    width: auto;
    background: transparent;
}

#videoModal .btn-close {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    opacity: 1;
    font-size: 12px;
    transition: all 0.3s ease;
}

#videoModal .btn-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

#videoModal .modal-body {
    padding: 0;
}

#videoModal video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.open-video { cursor: pointer; }

@media (max-width: 768px) {
    #videoModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    #videoModal video {
        max-height: 60vh;
    }
}

.comment-video-icon {
    position: absolute;
    top: -25px;
    left: -25px;
    width: 50px;
    height: 50px;
}
.comment-video-icon img {
    width: 100%;
    height: auto;
}
.comment-video {
    height: 240px;
    margin-left: 20%;
    margin-right: 20%;
    background-color: var(--color-blue);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;    
}

.owl-dots {
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.owl-dots .owl-dot {
    width:6px;
    height:6px;
    background-color: var(--color-blue);
    border-radius: 10px;
    opacity:0.5
}
.owl-dots .owl-dot.active {
    opacity: 1
}

@media (max-width:992px) {
    .comment-item {
        width: 35%;
    }    
}

@media (max-width:600px) {
    .comment-item {
        width: 60%;
    }    
}

@media (max-width:478px) {
    .comment-item {
        width: 100%;
    }    
}

.partners-obj {
    min-height: 0;
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--color-blue);
    color: #FFF;
}
.partners-obj .partners-title { color: var(--color-orange); max-width: 75%; margin: 0 auto;}

.partners-logo img {
    width: 180px;
}
.partners-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

@media (max-width:1440px) {
    .partners-logo img {
        width: 130px;
    }    
    .partners-slider {
        gap: 30px;
    }
}


@media (max-width: 768px) {
    .custom-object {
        min-height: 0;
        padding-top: 15vh;
        padding-bottom: 10vh;
    }    

    .partners-logo img {
        width: 100px;
    }
}

@media (max-width: 500px) {    
    .custom-object {
        padding-top: 5vh;
    }    
    .custom-object.custom-object-blocco {
        padding-top: 5vh;
        padding-bottom: 5vh;
    } 
    .custom-object.why-obj {
        padding-top: 0vh;
        padding-bottom: 5vh;
    }        
}

.wpcf7-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.wpcf7-form label {
    display: block;
    color: var(--color-blue);
}

.form-row label {
    font-weight: bold;
}


.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-blue);
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* File Upload Section */
.file-upload-section {
    margin: 25px 0;
    padding: 20px;
    border: 2px solid #4a9b5e;
    border-radius: 8px;
    background-color: white;
    text-align: center;
    position: relative;
}

.file-upload-section label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.file-upload-section p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.device-link {
    color: #e74c3c !important;
    cursor: pointer;
    text-decoration: underline;
}

.file-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: #666;
}

.wpcf7-form input[type="file"] {
    margin-top: 10px;
}

.checkbox-section {
    margin: 25px 0;
}

.checkbox-section .wpcf7-list-item {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-section input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-section .wpcf7-list-item-label {
    color: #333;
}

.all-checkboxes  {
    background-color: #fefefe;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--color-blue);
}

.wpcf7-form input[type="submit"] {
    background-color: #e74c3c;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    transition: background-color 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #c0392b;
}

.form-obj {
    background-color: #f5f5f5;
    padding-top: 10vh;
    padding-bottom: 5vh;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .form-col { margin-bottom: 10px; }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .wpcf7-form {
        padding: 20px;
    }
}

.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.text-with-arc-show {
    display: inline-block;
    position: relative;
}
.text-with-arc-show:before {
    content: "";
    position: absolute;
    background-image: url('../images/text-with-arc.gif');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    width: 110%;
    height: 165%;
    margin: 0 0px -3% -5%;
    top: -50%;  
}