/********** Template CSS **********/
:root {
    --primary: #0078d7;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #003366;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: #000;
}
.btn {
    border-radius: 8px;
    font-size: 14px;
}
.btn-primary {
    color: #000;
    background-color: #0078d7;
    border-color: #0078d7;
}
.btn-primary:disabled, .btn-primary.disabled {
    color: #000;
    background-color: #004aad;
    border-color: #004aad;
}
.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 { /*border-top: 2px solid #004aad;*/ border-bottom: 1px solid #eee; }
/*** 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 .navbar-brand,
.navbar a.btn {
    height: 70px;
    overflow: hidden;
    border: 0 !important;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
    font-size: 20px;
    line-height: 120%;
    font-family: "Barlow Condensed", serif;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #555;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
.custom-topbar { font-size: 0.85rem; }
@media (min-width: 1300px) {
    .custom-topbar { font-size: 1rem; }   
}

@media (max-width:1350px) {
    .navbar .navbar-nav .nav-link {
        font-size: 18px;
    }
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 4px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }

}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    text-align: left;
    /*background: rgba(0, 0, 0, .75);*/
    background-image: linear-gradient(90deg, black, transparent);    
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 64px; /*15%;*/
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

.pagination-wrapper {
    margin: 2rem 0;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .page-numbers li {
    margin: 0 5px;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    padding: 4px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination-wrapper .page-numbers .current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-wrapper .page-numbers a:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
}

.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-image {
    height: 220px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.post-date {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: block;
}

.post-date i {
    margin-right: 5px;
}

.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    opacity: 0.9;
}

.card-text {
}

p.card-text-p {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;

}
.custom-adv { 
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
 }
@media (min-width:992px) {
.custom-adv { 
    border: 1px solid #DDD;
    border-radius: 8px;
    padding: 8px 0;    
 }
}
.custom-adv img {
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

div#crumbs {
    font-size: 14px;
    margin-bottom: 8px;
    font-size: 18px;
    margin-bottom: 8px;
    font-family: "Barlow Condensed", serif;     
}
div#crumbs a {
    color: #F3BD00;   
}

h1.heading {
    font-family: 'Barlow Condensed', serif;
    text-transform: uppercase;
    /*padding-bottom: 0;
    padding-top: 0;
    background-color: #0078d7;
    padding-top: 24px;
    border-radius: 8px;
    color: #FFF;*/
    
}

.sgpb-main-html-content-wrapper p { text-align:center }
#sgpb-popup-dialog-main-div { background-color: #FFF !important; }

.social-share .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    line-height: 35px;
    text-align: center;
}

.btn-facebook { background: #3b5998; color: #fff; }
.btn-twitter { background: #1da1f2; color: #fff; }
.btn-linkedin { background: #0077b5; color: #fff; }
.btn-x { background: #000000; color: #fff; }
 
.btn-facebook:hover,
.btn-twitter:hover,
.btn-linkedin:hover,
.btn-x:hover {
    color: #fff;
    opacity: 0.9;
}

.post-navigation small {
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.post-navigation h4 {
    font-size: 1.2rem;
    margin: 0;
}

.related-posts .card-title {
    font-size: 1.1rem;
}

.prev-post, .next-post {
    background-color: #EEE;
    padding: 12px;
    border-radius: 8px;
}

.related-posts .card .card-text {
    color: #666;
    font-size: 13px;
}

.hero {
    background: linear-gradient(to right, #00509e, #0078d7);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.cta-button {
    background-color: #ffcc00;
    color: #003366;
    font-weight: 600;
    border: none;
}
.custom-shortcode-box {
    padding: 20px;
    background-color: #F6F6F6;
    margin-bottom: 20px;
    word-wrap: break-word;
}
.custom-shortcode-box.shadow {
    border: 1px solid #ddd;
    -webkit-box-shadow: 0 0 5px rgba(153, 153, 153, 0.6);
    -moz-box-shadow: 0 0 5px rgba(153, 153, 153, 0.6);
    box-shadow: 0 0 5px rgba(153, 153, 153, 0.6);
}

.custom-shortcode-button {
    text-align: center; margin-top: 15px;    
}
.custom-shortcode-button a {
    display: inline-block; background-color: #f28c28; color: white; padding: 15px 30px; font-size: 18px; font-weight: bold; text-decoration: none; border-radius: 5px;    
}

#toc_container {
    background: #f9f9f9;
    border: 1px solid #aaa;
    padding: 20px;
    margin-bottom: 30px;
    width: 100%;
    border-radius: 8px;
}

.toc_title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.toc_toggle {
    font-weight: normal;
    font-size: 0.9em;
    margin-left: 10px;
}

.toc_list {
    margin: 0;
    padding-left: 20px;
}

.toc_list li {
    margin-bottom: 4px;
    list-style: none;
}

.toc_number {
    margin-right: 5px;
    color: #666;
}

#toc_container a {
    text-decoration: none;
    color: #333;
}

#toc_container a:hover {
    color: #0056b3;
    text-decoration: underline;
}
ul.toc_sublist {
    margin-left: 0;
    padding-left: 4px;
}

h2[id], h3[id], h4[id], h5[id], h6[id] {
    scroll-margin-top: 60px;
}

/* Stile form contatti */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wpcf7-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-submit {
    background: #007bff;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7-submit:hover {
    background: #0056b3;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.wpcf7-validation-errors,
.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.wpcf7-spinner {
    margin: 0 0 0 10px;
}

.owl-dots {
    text-align: center;
    margin-top: 0px;
}

.owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.owl-dot span {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.owl-dot.active span {
    background-color: var(--bs-primary);
    width: 12px;
    height: 12px;
}

.owl-nav {
    display: none;
}

.grid-compact .card-image {
    height: 150px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.grid-compact .card-body {
    padding: 1rem;
}

.grid-compact .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.custom-adv-mobile {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 20px;
    }
    
    .wpcf7-submit {
        width: 100%;
    }
}

.text-black { color: #000!important; }

.custom-category-title {
    font-family: 'Barlow Condensed';
    text-transform: uppercase;
    font-size: 1.5rem;
    margin: 8px 0 !important;
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--dark);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: var(--dark);
    font-size: 14px;
}

.copyright a {
    color: #DDD;
    margin: 8px
}

.copyright a:hover {
    color: var(--light);
}

.bg-primary {
    background-color: var(--primary) !important;
    color: #FFF;
}
.btn-primary:hover {
    background-color: #03A9F4;
    border-color: #03A9F4;
}
.bg-black {
    background-color: var(--dark) !important;
    color: #FFF;
}
.text-primary {
    color: var(--primary) !important;
}

.custom-topbar a { color: #FFF; }
.custom-topbar a:hover { color: #eee; }

.custom-topbar .btn-link {
    color: #EEE;
}
.custom-topbar .btn-link:hover {
    color: var(--primary);
}
.btn-check:checked+.btn-primary, .btn-check:active+.btn-primary, .btn-primary:active, .btn-primary.active, .show>.btn-primary.dropdown-toggle {
    color: #000;
    background-color: var(--primary);
    border-color: #004aad;
}
a.navbar-brand img {
    width: 160px;
    height: auto;
}
.map iframe {
    width: 100%;
    height: 350px;
}

.contact-asap {
    display: flex !important;
    background-color: var(--primary);
    text-align: left;
    align-items: center;
    color: #FFF !important;
    font-weight: bold; 
    margin: 10px;
    border-radius: 12px;    
}
.contact-asap div { font-size: 20px; line-height: 115%; }
.contact-asap span { font-size: 16px; }
.contact-asap i { color: #000 !important;}

.partners.partners-slider {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.partners-element {
    width: 140px;
    margin: 10px;
}
.partners-element:hover { opacity: 0.8; }
.partners-container h2 {
    color: #000000;
    border-bottom: 5px solid var(--primary);
    display: inline-block;
    padding-left: 12px;
    padding-right: 12px;    
}

button.navbar-toggler, button.navbar-toggler:focus {
    border: none;
    outline: 0 !important;
    box-shadow: none;
}

.carousel-bg { background-size: cover; background-repeat: no-repeat; background-position: center center; width: 100%; height: calc(100vh - 114px); min-height: 650px; }

#intro { transform: translate(0,-190px) }
#contatti, #servizi, #chi-siamo { transform: translate(0,-90px) }

.custom-primary {
    background-color: var(--primary);
    color: var(--light);
    background-image: linear-gradient(90deg, #002b65, transparent);    
}

.custom-dark {
    background-color: var(--dark);
    color: var(--light);
}

.custom-primary h1,.custom-primary .h1,.custom-primary  h2,.custom-primary  .h2,.custom-primary  h3,.custom-primary  .h3,.custom-primary h4, 
.custom-primary .h4, .custom-primary h5,.custom-primary  .h5,.custom-primary  h6,.custom-primary  .h6 {
    color: #FFF;
}

.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-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;
}

.banner-flex { display: flex; flex-direction:row; align-items: center; }
.banner-text-content {

}
.banner-image-content {

}
.banner-image-content { margin: 0 auto; max-width: 320px; width: 100%;  }
.banner-image-content img { border: 10px solid #004aad; }
.banner-text-content h1 {
    font-family: 'Roboto Condensed',sans-serif;
    font-size: 55px;    
}
.banner-description strong { color: #2196F3; }

.btn-outline-primary {
    color: #004aad;
    border-color: #004aad;
    font-weight: bold !important;
}

.btn-outline-primary:hover {
    color: #000;
    border-color: #000;
    background-color: var(--dark);
}

.small-image { background-repeat:no-repeat; background-size:cover; background-position:center center; width: 200px; height: 200px; border: 12px solid #FFF; }
@media (min-width:992px) {
    .navbar .navbar-nav .dropdown-menu .nav-link {
        padding: 0 12px;
        font-size: 18px;
        line-height: 1.1rem;
        margin-bottom: 12px;
    }
    .service-elements { font-size: 1.2rem; }
}

header.masthead {
    position: relative;
    min-height: 50vh;
    padding: 0 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;    
}
header.masthead .container {
    position: relative;
}
header.masthead h1 {
    font-size: 56px;
    opacity: 0.8;    
}
.service-icon-container h5 {
    max-width: 190px;
    margin: 12px auto;
    color: var(--primary);
}
.service-obj-image { position: relative; width: 114px; margin: 0 auto; }
.service-icon-container .btn-secondary {
    border-radius: 5px;
    position: absolute;
    bottom: -6px;
    right: -13px;    
}
.service-icon-container a span {
    font-size: 0.8rem; margin-right: 4px;
}
.service-icon-container a:hover { opacity: 0.8;}
.content-section-heading {
    text-align: center;
    padding-top: 100px;
    max-width: 900px;
    margin: 0 auto;
}

.service-details {
    display: flex;
    line-height: 110%;
    margin-bottom: 20px;
    padding-right: 20px;
}

.service-details-top {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 30px;
}
.service-details-left {
    width: 110px;
}
.service-details-left img {
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
  }
  
 
  /* The Close Button */
  .close {
    color: #FFF;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .modal-header {
    padding: 2px 16px;
    background-color: var(--primary);
  }
  .modal-title { font-weight: bold; color: #FFF; }
  .modal-body {padding: 16px;}
  
  .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 12px auto;
    padding: 0;
    border: 1px solid #888;
    max-width: 500px;    
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
  }
  .wpcf7-list-item { margin: 0 }
  span.wpcf7-not-valid-tip {
    font-size: 0.7rem;
}
.form-control, .wpcf7-list-item-label {
    font-size: 0.9rem;
}
.wpcf7 form .wpcf7-response-output {
    margin: 0;
    font-size:0.9rem
}
.wpcf7-spinner {
    display: block; margin: 0 auto;
}

.wpcf7-list-item label {
    display: flex;
    align-items: baseline;
    gap: 5px;
    line-height: 100%;    
}

.why-elements ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 24px;
    text-align: center;
    flex-wrap: wrap;
}

.why-elements li {
    width: calc(33% - 24px);
    margin: 0 auto;
    margin-bottom: 24px;
}

.why-elements-icon {
    width: 100px;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-elements-content p {
    line-height: 140%;
}
.why-elements-icon {
    font-size: 36px;
}

.custom-light .why-elements-icon { background-color: var(--primary); color: #FFF; }
.custom-dark .why-elements-icon { background-color: var(--secondary); color: #FFF; }
.custom-primary .why-elements-icon { background-color: #FFF; color: var(--primary); }
.custom-light .why-elements-content h5 { color: var(--primary); } 
.custom-dark .why-elements-content h5 { color: var(--primary); } 
.custom-primary .why-elements-content h5 { color: #FFF; } 
.so-widget-custom_theme_perche .custom-light { border-bottom: 4px solid var(--primary); }

  @keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
  }

  .badge-danger {
    background-color: #fb2626;
    border-radius: 8px;
    font-size: 14px;
    position: absolute;
    left: 4px;
    top: -16px;
}  

@media (max-width:1200px) {
    .carousel-item h1 { }
    .partners.partners-slider {
        justify-content: center;
    }    
    .navbar .navbar-nav .nav-link {
        font-size: 16px;
    }    
}

@media (max-width:1100px) {

    .contact-asap div {
        font-size: 16px;
    }
    .contact-asap span {
        font-size: 15px;
    }        
    .contact-asap i {
        font-size: 40px;
    }    

}

a.contact-asap-mobile { display: none; }
.custom-primary a {
    color: #FFF;
    text-decoration: underline;
}
.content-section-why-form .form-description { display:none }
.content-section-why-form {
    max-width: 420px;
    margin: 16px auto;
}


@media (max-width:992px) {
    a.navbar-brand img {
        width: 128px;
        height: auto;
    }       
    .navbar.sticky-top {
        border-bottom: 1px solid #DDD;
    }    
    .navbar-nav {
        text-align: center;

    }
    .contact-asap {
        max-width: 200px;
        margin: 0 auto;
        margin-bottom: 10px;        
    }
    .intro-element { border-bottom: 2px solid #fff; }
    .facts {
        transform: translate(0px, -36px);
        position: relative;
        z-index: 1;
    }     
    .banner-text-content h1 {
        font-size: 36px;
    }    
    .banner-image-content { max-width: 250px }  
    .navbar-nav .dropdown-menu {
        display: block;
        text-align: center;
    }      
    a.contact-asap-mobile {
        display: inline-block;
        position: absolute;
        right: 90px;
        color: var(--custom-primary);
        font-size: 26px;
        top: 14px;
    }    
    .navbar .navbar-nav .nav-link {
        font-size: 20px;
    }      
}

@media (max-width:767px) {
    .carousel-bg {
        height: auto;
        min-height: inherit;
    }    
    .carousel-item h1 {
        font-size: 36px;
    } 
    .carousel-item h1 div p {
        font-size: 18px;
    }
    .col-80 {
        width: calc(100% - 150px);
    }
    .carousel-item h1 {
        max-width: 100%;
    }    
    .facts .container-fluid { padding: 0 !important; }
    .facts .container { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
    .prefooter {
        flex-direction: column;
        gap: 0px;
    }
    .banner-flex { flex-direction:column-reverse;}    
    header.masthead h1 {
        font-size: 36px;
    }
    header.masthead {
        padding: 0 16px;
    }    
    .py-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }    
    .banner-text-content {
        text-align: center;
    }    
    .carousel-item h1 {
        font-size: 26px;
    }     
    .why-elements li {
        width: calc(50% - 24px);
    }    
}

@media (max-width:478px) {
    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }    
    a.navbar-brand img {
        width: 125px;
    }  
    a.navbar-brand { margin-right: 0; }
    button.navbar-toggler { margin-right: 12px !important; }
    .banner-text-content h1 {
        font-size: 32px;
    }    
    .service-details {
        margin-bottom: 8px;
        padding-right: 0;
    }    
    .open-cta { display: block; }    
    .so-widget-custom_theme_servizi .btn-outline-primary { width: 100%;
        justify-content: center; }
    .content-section-heading { padding-top: 55px; }
    a.contact-asap-mobile {
        right: 70px;
    }
    .open-cta {
        width: 100%;
    }    
    .modal-content {
        margin: 24px 12px;
        width: calc(100% - 24px);
    }    
    .why-elements li {
        width: 100%;
    }    
    .custom-adv-mobile {
        display: inline-block;
    }    
    .custom-adv img.custom-adv-mobile { max-width: 280px; }
    .custom-adv-desktop {
        display: none;
    }

}
.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
    }
}

