/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

.fix {
    clear: both;
    display: block;
}

.hide {
    display: none !important;
}

.no-link {
    cursor: default;
    pointer-events: none;
}

/* FIX SINGLE IMAGE POSITION COMPOSER */
.compose-mode .vc_element.vc_image_with_animation {
    position: relative !important;
}

/**/

/*FIX*/
body .container-wrap .wpb_row[data-column-margin="40px"]:not(.full-width-section):not(.full-width-content) {
    margin-bottom: 0;
}

.material .wpb_content_element,
.material .wpb_row {
    margin-bottom: 0;
}

body .container-wrap .wpb_row[data-column-margin="30px"]:not(.full-width-section):not(.full-width-content) {
    margin-bottom: 0;
}

#header-outer:not(.transparent) .sf-menu > li ul {
    border: none !important;
}

.container-full {
    max-width: 100% !important;
    width: 100%;
}
body[data-header-resize="1"] .container-wrap,
body[data-header-resize="1"] .project-title {
    padding-top: 0;
}

/**/

body .main-content table,
body .main-content table tr,
body .main-content table th,
body .main-content table td {
    background-color: transparent !important;
    border-color: #0e1f29 !important;
}

a,
a:hover {
    -webkit-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
}

strong,
bold {
    font-weight: 700;
}

h2 {
    color: #8d5ecf !important;
}

.nectar-cta[data-style="arrow-circle-animation"] .arrow-circle-animation-arrow-wrap {
    width: 30px !important;
    rotate: 45deg;
}

/* INIZIO OVER SUBMENU */
#header-outer:not([data-format="left-header"]) #top > .container > .row,
#header-outer:not([data-format="left-header"]) #top > .container > .row nav,
#header-outer:not([data-format="left-header"]) #top > .container > .row nav > ul,
#header-outer:not([data-format="left-header"]) #top > .container > .row nav > ul > li {
    overflow: visible;
}

body .sf-menu > li > ul,
#header-outer #top .sf-menu > li > ul {
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

/* FINE OVER SUBMENU */

body #header-outer[data-transparent-header="true"].transparent {
    background-color: rgba(0, 0, 0, 0.25) !important;
}

/*INIZIO HOVER BOTTONE*/

#header-outer[data-header-button_style="default"] #top nav > ul > li[class*="button_solid_color"] > a:hover:before,
#header-outer[data-header-button_style="default"].transparent
    #top
    nav
    > ul
    > li[class*="button_solid_color"]
    > a:hover:before {
    opacity: 1 !important;
    background-color: #8d5ecf !important;
}

body #header-outer[data-lhe="default"] #top nav .sf-menu > li[class*="button_solid_color"] > a:hover {
    color: #fff !important;
}

#header-outer[data-format="centered-menu-under-logo"] #top nav > ul > li[class*="button_"] > a:before {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
}

body .nectar-button.large.see-through,
body .nectar-button.large.see-through-2,
.nectar-button.large {
    font-size: 16px !important;
    /*    padding-top: 18px;*/
}

.nectar-button.jumbo,
.nectar-button.large {
    color: #fff;
}

.nectar-button.jumbo:hover,
.nectar-button.large:hover {
    opacity: 1 !important;
    background-color: #8d5ecf !important;
    color: #fff;
}

body .col.dark .nectar-button.see-through-2:hover,
body .col.dark .nectar-button.see-through-3:hover,
body .nectar-button.see-through-2:hover {
    color: #fff !important;
}

.nectar-button.accent-color.jumbo:hover {
}

.nectar-button {
    margin-bottom: 0;
}

/*FINE HOVER BOTTONE*/

/*INIZIO HOME BANNER*/

.home-banner {
    width: 100%;
    height: 700px;
    display: flex;
    align-items: center; /* Centra VERTICALMENTE */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-left: 80px; /* Distanza dal bordo sinistro */
}

/* Overlay opzionale */
.home-banner::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.001) 0%, #08131a 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    text-align: left; /* Testo allineato a sinistra */
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 35px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .home-banner {
        height: 380px;
        padding-left: 30px;
        padding-right: 30px;
        align-items: end;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    body.material .hero-content .nectar-button.jumbo {
        padding: 10px 20px !important;
        font-size: 15px !important;
        margin-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .home-banner {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/*FINE HOME BANNER*/

/*INIZIO VIDEO*/

.visualizzazioni {
    color: #fff;
    float: right;
    padding-top: 5px;
}

.video-banner iframe {
    width: 1420px !important;
    height: 100% !important;
}

.hero-video,
.dark-color {
    background: #060e13 !important;
}

.dark-color h1,
.dark-color span {
    color: #8d5ecf !important;
}

.data {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    margin-right: 10px;
}

.video-banner {
    height: 600px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-video {
    margin-top: 60px;
}

.results-container {
    padding: 60px 0;
}

.results-header {
    padding-bottom: 40px;
}

.related-posts {
    margin: 40px 0;
}

.related-posts h2 {
    margin-bottom: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.video-card {
    background: #0e1f29 !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
}

.video-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    color: white;
}

.video-content {
    padding: 15px;
}

.video-title {
    margin: 0 !important;
    font-size: 18px;
    line-height: 24px;
    color: #fff;
}

.video-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-excerpt {
    margin-bottom: 0;
    color: #fff;
    line-height: 1.6;
    font-size: 0.95rem;
}

.video-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    /*    border-top: 1px solid #f1f5f9;*/
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 16px;
    border: 10;
    text-decoration: none;
    color: #8d5ecf;
}

.pagination span {
    margin: 0 5px;
    padding: 8px 16px;
    border: 10;
    text-decoration: none;
    background: #8d5ecf;
    color: fff;
    border-radius: 4px;
}

.pagination a:hover {
    background: #8d5ecf;
    color: white;
    border-radius: 4px;
}
/*FINE VIDEO*/

/* INIZIO CF7 */
body[data-fancy-form-rcs="1"] .fancy-select-wrap {
    padding: 0 !important;
}

.select2-container--default .select2-selection--single {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    border-color: #3c3c3c !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #3c3c3c transparent transparent transparent !important;
}

.select2-container--default .select2-selection--single:hover .select2-selection__arrow b {
    border-color: #3c3c3c transparent transparent transparent !important;
}

body[data-fancy-form-rcs="1"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #3c3c3c !important;
}

.select2-dropdown {
    border-radius: 0 !important;
}

.line-cf7 {
    width: 100%;
    height: 2px;
    background: #3c3c3c;
    margin: 40px 0;
}

body.material input[type="text"]:focus,
body.material input[type="email"]:focus,
body.material textarea:focus {
    /*border: 1px solid #3c3c3c !important;*/
    box-shadow: 0 0 0 rgb(255 255 255 / 0%) !important;
}

.wpcf7-form {
    display: table;
    margin: 0 auto;
    padding: 0;
}

.wpcf7-form h3 {
    color: #3c3c3c !important;
    font-weight: 500 !important;
}

.wpcf7 p {
    padding: 0;
    line-height: 28px;
}

.summary .wpcf7-form {
    text-align: left;
    margin: 0 0 10px 0;
}

.wpcf7-form label span {
    text-align: left !important;
    font-size: 17px;
    font-weight: 400;
    color: #3c3c3c;
    display: flex;
}

body .light .wpcf7-form p span,
.wpcf7-form p span {
    font-size: 16px;
}

.campo label,
.campo-area label {
    text-align: left !important;
    font-size: 17px !important;
    margin: 5px 0 0 0;
    display: table;
}

.campo {
    width: 100%;
    display: inline-block;
    margin: 10px 0;
}

.campo-half {
    width: 48.5%;
}

.campo-half-contatto {
    width: 49.7%;
}

.campo-half.right,
.campo-half-contatto.right,
.float-right {
    float: right;
}

.campo-half.left,
.float-left {
    float: left;
}

.campo-area {
    display: inline-block;
    clear: both;
    width: 100%;
    margin: 10px 0;
}

.last {
    margin-right: 0;
}

.fancybox-content {
    padding: 20px 30px !important;
    background: #f3f3f3 !important;
}

::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #3c3c3c !important;
    opacity: 1 !important;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #3c3c3c !important;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #3c3c3c !important;
}

input.wpcf7-date {
    color: #3c3c3c;
    font-size: 16px !important;
    font-weight: 400;
    border: 1px solid #3c3c3c !important;
    background: transparent !important;
    width: 100% !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    padding: 18px 15px !important;
}

input.wpcf7-text,
.wpcf7-select,
.newsletter .select2-container--default .select2-selection--single,
input.wpcf7-quiz {
    color: #3c3c3c !important;
    font-size: 16px !important;
    font-weight: 500;
    border: 1px solid #d1d3d4 !important;
    background: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px !important;
    border-radius: 8px;
    box-shadow: none !important;
    height: auto !important;
}

.wpcf7-textarea {
    color: #3c3c3c;
    font-size: 16px !important;
    font-weight: 500;
    border: 1px solid #d1d3d4 !important;
    background: #fff !important;
    resize: none !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    height: 140px !important;
    padding: 15px !important;
}

.wpcf7 .ajax-loader {
    margin: -7px 64px !important;
}

p.invio {
    margin: 10px 0;
}

body[data-form-submit="regular"] .container-wrap input[type="submit"].wpcf7-submit,
.wpcf7-submit {
    background-color: #8d5ecf;
    border: none;
    font-size: 18px !important;
    color: #fff !important;
    padding: 15px 60px !important;
    margin-top: 20px;
}

body[data-form-submit="regular"] .container-wrap input[type="submit"].wpcf7-submit:hover {
    background-color: #fff !important;
    color: #8d5ecf !important;
    opacity: 1 !important;
}

div.wpcf7-response-output {
    margin: 0 !important;
}

input.wpcf7-not-valid,
textarea.wpcf7-not-valid,
select.wpcf7-not-valid,
.fancy-select-wrap:has(select.wpcf7-not-valid) {
    border: 1px solid #cd323d !important;
    border-radius: 12px;
}

.fancy-select-wrap:has(select.wpcf7-not-valid) .select2-selection {
    border: none !important;
}

span.wpcf7-not-valid-tip {
    display: none !important;
}

.wpcf7-checkbox.wpcf7-not-valid {
    border: none !important;
}

.wpcf7-checkbox.wpcf7-not-valid span {
    color: #cd323d !important;
}

span.wpcf7-list-item {
    margin: 0 !important;
}

.Accetto span.wpcf7-not-valid-tip {
    display: inherit !important;
    font-size: 14px !important;
    margin-left: 5px !important;
    color: #cd323d !important;
}

div.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    color: #cd323d !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-size: 14px;
}

div.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
    color: #398f14 !important;
    padding: 0 !important;
    border: none !important;
    background: none;
}

div.wpcf7 img.ajax-loader {
    margin-top: 0 !important;
}

.trattamento {
    font-size: 14px !important;
}

span[data-name="trattamento-dati"] {
    display: inline-block !important;
    color: #3c3c3c;
}

.trattamento-dati span {
    font-size: 16px !important;
    margin-right: 5px;
}

a.trattamento-dati-link {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    -webkit-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
}

a.trattamento-dati-link:hover {
    color: #fff;
    opacity: 0.8;
    -webkit-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
}

a.link-trattamento {
    font-size: 16px !important;
    color: #3c3c3c;
}

a.link-trattamento:hover {
    color: #74cd7d !important;
}

h3.notifica-corso {
    font-size: 20px !important;
}

.quiz {
    font-weight: bold;
}

input.wpcf7-quiz {
    border: 1px solid #c9c9c9;
    background: #fcfcfc;
    height: 45px;
    width: 65px !important;
    font-size: 16px;
    text-align: center;
}

.wpcf7-quiz.wpcf7-not-valid {
    border: 1px solid #cd323d;
}

.math-quiz {
    margin-top: 10px;
    display: table;
}

.wpcf7-spinner {
    top: 7px;
}

/* FINE CF7 */
/* INIZIO MODALE CF7 */
.wpcf7-response-output {
    position: fixed;
    background: rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.modale {
    position: absolute;
    z-index: 999;
    background: #8d5ecf;
    color: #fff;
    font-size: 22px;
    border: none !important;
    padding: 80px 40px !important;
    width: 520px;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-box-shadow: 0px 0px 38px 0px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 38px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 38px 0px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center !important;
}

.modale h4 {
    font-size: 30px;
    margin-bottom: 20px;
    padding: 0 !important;
    color: #fff;
}

.chiudi {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 5px;
    right: 5px;
    background: url("images/close.svg") no-repeat center;
    cursor: pointer;
}

@media only screen and (max-width: 699px) {
    .modale {
        width: 90%;
    }
}

/* FINE MODALE CF7 */
/* CUSTOM CHECKBOX */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}

[type="checkbox"]:not(:checked) + span,
[type="checkbox"]:checked + span {
    position: relative;
    padding-left: 1.95em;
    cursor: pointer;
}

[type="checkbox"]:not(:checked) + span:before,
[type="checkbox"]:checked + span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 1.25em;
    height: 1.25em;
    border: 1px solid #fff;
    background: transparent;
    border-radius: 5px;
}

[type="checkbox"]:not(:checked) + span:after,
[type="checkbox"]:checked + span:after {
    content: "\2714";
    position: absolute;
    top: 6px;
    left: 5px;
    font-size: 1em;
    line-height: 0.8;
    color: #fff;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

[type="checkbox"]:not(:checked) + span:after {
    opacity: 0;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

[type="checkbox"]:checked + span:after {
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

[type="checkbox"]:disabled:not(:checked) + span:before,
[type="checkbox"]:disabled:checked + span:before {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: #bbb;
    background-color: #ddd;
}

[type="checkbox"]:disabled:checked + span:after {
    color: #999;
}

[type="checkbox"]:disabled + span {
    color: #aaa;
}

[type="checkbox"]:checked:focus + span:before,
[type="checkbox"]:not(:checked):focus + span:before {
    /*border: 2px dotted blue;*/
}

label:hover:before {
    border: 2px solid #3c3c3c !important;
}

/* CUSTOM CHECKBOX */

/* INIZIO LEAFLET */
.nectar-google-map .animated-dot .signal2,
.nectar-leaflet-map .animated-dot .signal2,
.nectar-google-map .animated-dot .signal,
.nectar-leaflet-map .animated-dot .signal {
    width: 100px !important;
    height: 100px !important;
    left: -40px !important;
    top: -40px !important;
}

.leaflet-popup-content {
    font-weight: bold;
}

.leaflet-popup-tip-container,
.leaflet-control-attribution,
.leaflet-popup-close-button {
    display: none;
}

@media only screen and (max-width: 999px) {
    .leaflet-container {
        height: 400px !important;
    }
}

/* FINE LEAFLET */

/*INIZIO FOOTER*/

body [class^="icon-"].icon-default-style {
    line-height: 20px;
    height: 20px;
    width: 20px;
    margin-right: 0;
    font-size: 20px;
    font-style: normal;
    background-color: transparent;
}

.iwithtext .iwt-text {
    padding-left: 30px;
}

.my-footer p,
.my-footer {
    font-size: 14px;
    line-height: 22px;
}

.my-footer h4 {
    font-size: 18px !important;
    color: #4a81c6 !important;
}

h2.widgettitle {
    font-size: 20px;
    padding: 0;
    margin: 0;
}

ul#menu-footer-menu {
    margin: 0 !important;
    padding: 0 !important;
}

ul#menu-footer-menu li {
    display: inline;
    list-style-type: none;
    padding-right: 10px !important;
    font-size: 14px !important;
    line-height: 22px;
}

ul#menu-footer-menu li a {
    color: #8d5ecf;
}

ul#menu-footer-menu li a:hover {
    color: #fff;
}

.my-footer .iwithtext {
    margin-bottom: 10px !important;
}

#footer-outer #copyright[data-layout="centered"] {
    padding: 15px !important;
}

.material .my-footer .wpb_content_element {
    margin-bottom: 8px !important;
}

.my-footer .destra .vc_column-inner {
    width: auto;
    float: right;
    display: table;
    clear: both;
}

.my-footer img.centra {
    width: 36px !important;
}

/*FINE FOOTER*/

/* INIZIO RIMUOVI BACK */
.sub-menu li.back a {
    display: none !important;
}

.sub-menu li.back::after {
    content: "\2715";
    cursor: pointer;
    font-size: 30px;
}

/* FINE RIMUOVI BACK */

@media only screen and (max-width: 999px) {
    .hide-mobile {
        display: none !important;
    }

    .post-video {
        margin-top: 10px;
    }

    .video-banner {
        height: 340px;
    }

    .visualizzazioni {
        margin-bottom: 10px;
    }

    .salient-share-buttons {
        margin: 0 0 10px 0;
    }

    .related-posts {
        margin: 20px 0;
    }

    .single-video .video-grid {
        margin-bottom: 0;
    }

    .my-footer .widget_nav_menu {
        width: 100% !important;
        float: none !important;
        display: block !important;
        text-align: center !important;
    }

    .my-footer .img-with-aniamtion-wrap.custom-width-220px {
        text-align: center !important;
        margin: 0 auto !important;
        display: table !important;
    }

    .my-footer .iwithtext .iwt-icon {
        position: relative;
    }

    .my-footer .img-with-aniamtion-wrap {
        text-align: center;
        margin: 0 auto;
        display: table;
    }

    .my-footer .col.right {
        text-align: center;
    }

    #copyright > .container > .col.span_7.col_last {
        display: none;
    }

    .mobile-padding-zero {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .campo-half {
        width: 100%;
    }

    .left,
    .right {
        flex: none;
    }

    .app .right.img-with-aniamtion-wrap,
    .app .img-with-aniamtion-wrap {
        text-align: center !important;
        margin: 0 auto;
        display: table;
    }
}

@media (max-width: 690px) {
    .video-content {
        padding: 10px;
    }

    .results-container {
        padding: 30px 15px;
    }

    .post-video {
        display: flex !important;
        flex-direction: column !important;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .video-title {
        font-size: 14px;
    }

    .video-excerpt {
        display: none;
    }

    .video-thumbnail,
    .video-thumbnail img {
        max-height: 150px;
    }
}
