/* =========================
   DITALS CUSTOM CSS - VERSIONE OTTIMIZZATA
   ========================= */

/* Altezza auto categorie corsi di laurea */
.term-corsi-di-laurea-online .woocommerce ul.products li.product {
    min-height: 23vh !important;
}

/* Popup aggiunta corso al carrello */
.wcap-modal {
    top: 30vh !important;
    left: 55vw !important;
}
.wcap_popup_text { padding-top: 12px; }
.wcap-modal img { height: 100px !important; }

/* Popup login modale */
.loginpopup_wrapper { background: rgba(0, 0, 0, 0.8) !important; }
.login_popup { background: #313b3d !important; }
.login_popup_content,
.login_popup.medium .login_popup_content h2,
.login_popup.elegance .login_popup_content h2 { color: #ffffff !important; }
.login_popup .loginform .control > .vicon {
    color: #444444 !important;
    right: .5rem !important;
}
.login_popup .loginform .input { color: #ffffff !important; }

/* GDPR message block sotto ai pulsanti iscriviti-info */
#wcap_gdpr_message_block small,
#wcap_gdpr_message_block span {
    display: grid;
    float: left;
    padding: 6px 0;
}

/* Nascondi link SVUOTA dalle varianti prodotto */
.reset_variations { display: none !important; }

/* Icone metodi di pagamento */
label[for=payment_method_klarna_payments_pay_later] img {
    float: right;
    padding-left: 8px !important;
    padding-top: 10px !important;
}
.woocommerce-checkout-payment .payment_method_heylight img {
    float: right;
    padding-left: 8px !important;
    padding-top: 5px !important;
}

/* Nasconde varianti prodotto dalle opzioni sconto */
div.woobt-product.woobt-product-this { display: none; }
div.woobt-alert.woobt-text { display: none !important; }

/* Effetto grayscale sui loghi */
img.loghi {
    filter: grayscale(0.90);
    transform: scale(0.90);
    opacity: 0.90;
    transition: all .2s ease-in-out !important;
}
img.loghi:hover {
    filter: none;
    transform: scale(1);
    opacity: 1;
}

/* Allinea campi nel checkout */
input#billing_phone.input-text,
input#billing_titolodistudio.input-text,
input#billing_codfiscpartitaiva.input-text,
input#billing_email.input-text,
input#billing_sdi.input-text,
input#billing_company.input-text {
    height: 30px !important;
}

/* Allinea checkbox e label al checkout */
.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    position: inherit;
}

/* Nasconde "(opzionale)" su campo Provincia */
.woocommerce-billing-fields__field-wrapper label[for="billing_state"] span {
    font-size: 0;
}

/* Cambia testo Klarna nel checkout */
#payment .payment_methods label[for="payment_method_klarna_payments_pay_later"] {
    font-size: 0;
}
#payment .payment_methods label[for="payment_method_klarna_payments_pay_later"]::after {
    content: "In 3 rate con Klarna" !important;
    font-size: 14px;
    font-weight: 600 !important;
}

/* Cambia testo PagoLight/HeyLight nel checkout */
#payment .payment_method_heylight label[for="payment_method_heylight"] {
    font-size: 0;
}
#payment .payment_method_heylight label[for="payment_method_heylight"]::after {
    content: "Da 4 a 9 rate con HeyLight" !important;
    font-size: 14px;
    font-weight: 600 !important;
}

/* Tab info corsi e master */
.tab-infocorsimaster { margin-bottom: 20px; }

/* Allinea checkbox "acconsento" Mailchimp checkout */
div#mailchimp-gdpr-fields > label.woocommerce-form__label.woocommerce-form__label-for-checkbox.inline > span {
    margin-left: 10px !important;
}

/* Cookie banner: link bianchi */
.cmplz-custom-accept-btn a,
.cmplz-custom-accept-btn a:link,
.cmplz-custom-accept-btn a:visited,
.cmplz-custom-accept-btn a:hover { color: #fff; }
button .cmplz-deny .cmplz-revoke-custom a { text-decoration: none; }

/* Nascondi amazon pay e googlepay nel minicart */
div.wc-stripe-cart-checkout-container,
.wc-proceed-to-checkout #pay_with_amazon,
.cart-collaterals .aligncenter,
.col-md-12 klarna-placement,
#content > div > div > div > div > div > div:nth-child(2) > div.wpb_column.vc_column_container.vc_col-sm-9 > div > div > div > div.wc-amazon-checkout-message.wc-amazon-payments-advanced-populated > div {
    display: none;
}

/* Nascondi pulsante aggiungi al carrello in master e corsi universitari */
.product_cat-master-online-e-corsi-universitari .woobt-form button.single_add_to_cart_button.button.alt {
    display: none;
}

/* Bordo pagamenti a rate */
.bordo-rate {
    border: 1px solid #eae7e4;
    padding: 14px;
    margin: 6px 0;
}

/* Cancella quantità prodotto */
div.quantity { display: none !important; }

/* Block utility */
.block {
    display: block;
    float: left;
    width: 100%;
    margin: 20px 0;
}
.block img { margin-right: 20px; }

/* Menu padding */
header nav > .menu > li > a,
header.sleek nav > .menu > li > a,
header.sleek .topmenu > li > a,
header #searchicon,
.mooc .topmenu > li > a,
.mooc nav > .menu > li > a,
#alt_logo,
#new_searchicon {
    padding-bottom: 20px;
    padding-top: 20px;
    margin: 5px;
}

/* Scrolltop */
#scrolltop {
    bottom: 20px;
    border-radius: 50% !important;
margin-right:-5px;
}

#scrolltop a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#scrolltop a i {
font-size: 28px;
margin-top: -4px;
padding-bottom: 2px;
}

/* Nascondi item user menu top */
#sidebar-me > ul:nth-of-type(2) > li:nth-of-type(2) a,
#sidebar-me > ul:nth-of-type(2) > li:nth-of-type(3) a,
#wallet-personal-li,
#members_detail-personal-li,
div.ls-gui-element.ls-shadow {
    display: none;
}

/* Griglia archivio tag */
.archivio_tag .woocommerce ul.products li.product {
    height: 369px;
    float: left;
    width: 332px;
    padding: 0 15px;
}

/* Badge WooCommerce */
span.onsale {
    line-height: 3.236 !important;
    font-size: 10px !important;
    font-weight: 900;
    padding-top: 10px !important;
    text-indent: -10px;
    text-align: center;
    top: -2.5em !important;
    left: -2.5em !important;
    color: #fff;
    position: absolute;
    width: 100px;
    height: 90px;
    z-index: 99;
    background-color: transparent !important;
}
span.onsale:before,
span.onsale:after {
    z-index: -99;
    position: absolute;
    content: "";
    left: 45px;
    top: 0;
    width: 40px;
    height: 60px;
    background: red;
    border-radius: 30px 30px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}
span.onsale:after {
    left: 5px;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

/* Altezza min prodotti woo griglia */
.woocommerce ul.products li.product { min-height: 369px !important; }
.woocommerce ul.products li.product a img { margin-bottom: 0; }
h2.woocommerce-loop-category__title { padding: 0; }

/* Padding sottocategorie woo (FIX: era "padding-left 15px;" senza i due punti) */
li.product-category.product {
    padding-left: 15px;
    padding-right: 15px;
}

/* Checkbox consenso/termini woocommerce */
.wpcf7-form-control-wrap { margin-left: -15px; }
#terms { position: relative; margin: 0; }

/* Descrizione categorie */
.term-description { margin-bottom: 20px; }

/* Form rows generali */
p.form-row-first,
p.form-row-last {
    width: 50%;
    float: left;
}
.woocommerce form .form-row label { display: block; }
span.select2.select2-container { width: 100% !important; }

/* Mobile header trigger */
@media screen and (max-width: 812px) {
    header #trigger { top: 3px !important; }
}

/* Footer base */
footer .row:nth-of-type(1) {
    background-color: white;
    margin-top: -30px;
    margin-bottom: -30px;
    padding-bottom: 30px;
    padding-left: 10px;
}
.footertop .row:nth-of-type(1) a,
footer .row:nth-of-type(1) .footertitle { color: #444; }
footer .row { width: 100vw; }
.footertop, .footerbottom { margin: auto; }
.footerbottom .row { background-color: #232b2d !important; }
footer .container {
    margin: 0;
    padding-left: -30px;
}

/* Footer larghezze responsive (consolidato + regole comuni unite) */
@media screen and (min-width: 1200px) {
    .widget_recent_entries { padding-left: 60px; }
    #nav_menu-5 { padding-left: 80px; }
    a.prev,
    a.next,
    ul.prev_next,
    div.prev_next_links,
    img-attachment-thumbnail.size-thumbnail.wp-post-image {
        margin-top: -130px !important;
    }
}
@media screen and (min-width: 992px) and (max-width: 1169px) {
    a.prev,
    a.next,
    ul.prev_next,
    div.prev_next_links,
    img-attachment-thumbnail.size-thumbnail.wp-post-image {
        margin-top: -130px !important;
    }
}
@media screen and (min-width: 1440px) {
    .footertop, .footerbottom { width: 1410px; }
}
@media screen and (min-width: 1200px) and (max-width: 1439px) {
    .footertop, .footerbottom { width: 1170px; }
}
@media screen and (min-width: 992px) and (max-width: 1169px) {
    .footertop, .footerbottom { width: 970px; }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .footertop, .footerbottom { width: 750px; }
}

/* Archivio woo desktop layout */
@media (min-width: 992px) {
    .woocommerce.archive .col-md-9.col-sm-8.col-md-push-3.col-sm-push-4 {
        float: left !important;
        left: 0;
        width: 80% !important;
    }
    .woocommerce.archive .col-md-3.col-sm-4.col-md-pull-9.col-sm-pull-8 {
        float: right !important;
        left: 0;
        width: 20% !important;
    }
}

/* Nasconde breadcrumbs su pagine eventi */
body.events-archive ul.breadcrumbs,
body.single-tribe_events ul.breadcrumbs { display: none !important; }

/* JoinChat (whatsapp) */
.joinchat__button,
.joinchat__box { margin-bottom: 60px !important;
margin-right:-20px;}
.joinchat__badge { top: -130px; right:-10px;}
.joinchat__copy,
.joinchat__powered { visibility: hidden !important; }

/* Footer bottom padding */
#footerbottom { padding-bottom: 80px !important; }

/* Nascondi vari elementi */
nav .menu li a span,
.tribe-events-event-image,
div.cats { display: none; }

/* Widget title */
.widget_title {
    border: 0 !important;
    padding-bottom: 5px !important;
    margin-bottom: 5px !important;
}
header.vc_cta3-content-header { background-color: #f7f7f7 !important; }
div.pagination { margin-top: 20px !important; }

/* WPS slider */
#wps-slider-section,
img.wpsf-product-img { margin: auto !important; }

#wcal_gdpr_message_block { display: inline-block; }

/* Footer scuro: titoli bianchi */
#nav_menu-4 > div > h4,
#bbp_topics_widget-2 > div > h4 > span,
.footertitle { color: #fff !important; }
.widget_recent_entries > h4 > span { color: #000 !important; }
.footerbottom .row:nth-of-type(1) a,
footer .row:nth-of-type(1) .footertitle { color: #fff; }

/* ========================
   ICONE SOCIAL FOOTER (consolidate)
========================= */

/* Stili comuni a tutte le icone social a 28x28 */
i.vicon.vicon-facebook:before,
.vicon-instagram:before,
.vicon-linkedin:before,
.vicon-telegram:before,
.vicon-google:before,
.vicon-youtube:before,
.vicon-vimeo:before {
    content: "";
    background-size: 28px 28px;
    display: inline-block;
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

/* Margini specifici */
i.vicon.vicon-facebook:before,
.vicon-instagram:before {
    margin-left: -9px;
    margin-right: -9px;
}
.vicon-linkedin:before,
.vicon-telegram:before,
.vicon-google:before,
.vicon-youtube:before,
.vicon-vimeo:before {
    margin-left: -6px;
    margin-right: -6px;
}

/* Background image specifico per icona */
i.vicon.vicon-facebook:before {
    background-image: url(https://www.ditals.com/wp-content/uploads/2021/04/facebook-128.png);
}
.vicon-instagram:before {
    background-image: url(https://www.ditals.com/wp-content/uploads/2021/04/instagram-128.png);
}
.vicon-linkedin:before {
    background-image: url(https://www.ditals.com/wp-content/uploads/2021/04/linkedin-128.png);
}
.vicon-telegram:before {
    background-image: url('https://www.ditals.com/wp-content/uploads/2021/04/telegram-128-e1617459113785.png');
}
.vicon-google:before {
    background-image: url(https://www.ditals.com/wp-content/uploads/2025/04/google-128.png);
}
.vicon-youtube:before {
    background-image: url(https://www.ditals.com/wp-content/uploads/2021/04/youtube-128.png);
}
.vicon-vimeo:before {
    background-image: url(https://www.ditals.com/wp-content/uploads/2021/04/vimeo-128.png);
}

/* Twitter/X (formato diverso 31x31) */
.vicon-twitter:before {
    content: "";
    background: url(https://www.ditals.com/wp-content/uploads/2023/09/twitter-x-128.png);
    background-size: 31px 31px;
    background-color: #000000;
    border-radius: 15px;
    display: inline-block;
    width: 31px;
    height: 31px;
    vertical-align: middle;
    margin-left: -6.5px;
    margin-right: -6.5px;
}

/* RSS */
a.rss i {
    display: none;
}

a.rss::before {
    content: "\f09e";
    font-family: 'FontAwesome';
    font-size: 20px;
    display: inline-block;
    line-height: 28px;
    text-align: center;
    vertical-align: middle;
}

ul.socialicons.color li a:hover,
ul.socialicons.social li a:hover { background: transparent; }

/* =======================
   FINE ICONE SOCIAL
========================= */

div#vibe_bp_login.pop_login.active { z-index: 99999; }

/* Pulsanti CTA bold */
a.vc_general.vc_btn3.vc_btn3-size-lg.vc_btn3-shape-rounded.vc_btn3-style-3d.vc_btn3-block.vc_btn3-color-green,
a.vc_general.vc_btn3.vc_btn3-size-lg.vc_btn3-shape-rounded.vc_btn3-style-3d.vc_btn3-block.vc_btn3-color-warning,
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    font-weight: bold !important;
    color: #fff !important;
}

/* Pulsanti calendario eventi */
a.tribe-events-gcal.tribe-events-button,
a.tribe-events-ical.tribe-events-button {
    font-weight: bold !important;
    color: #fff !important;
    background-color: dodgerblue !important;
}

nav.tribe-events-nav-pagination { width: 100% !important; }
.button.product_type_simple.add_to_cart_button.ajax_add_to_cart { text-transform: uppercase !important; }
.tribe-events-cal-links { text-align: center !important; }
.tribe-events,
.tribe-events-calendar-list__event-header { z-index: 0; }
.tribe-events-c-view-selector { display: none !important; }
.post-type-archive-tribe_events #title { display: none; }
.tribe-common-l-container { padding-top: 10px !important; }
.tribe-events-calendar-list-nav { width: 100%; }
.tribe-events-c-subscribe-dropdown { display: none; }

/* Mobile woo column */
@media screen and (max-width: 670px) {
    div.col-md-3.col-sm-4 { float: none !important; }
}

a.wp-facebook-url { display: none !important; }

div#snippet-box {
    visibility: hidden;
    height: 0;
}

div.pagetitle { margin-left: 30px; }

/* NOTA: queste classi ".726", ".Certificazioni.Glottodidattiche", ecc. */
/* contengono caratteri non standard per CSS. Mantenute in caso siano */
/* generate dinamicamente dal codice del sito. */
div.726 { background-color: #cccccc; }
div.Certificazioni.Glottodidattiche { background-color: #7ba84d; }
div.Università.e.mondo.Scuola { background-color: #eebf75; }
div.Glottodidattica.ed.educazione.linguistica { background-color: #cc433c; }
div.Insegnare.Italiano.a.stranieri { background-color: #6aa0dd; }
div.Lingua.e.cultura.italiana { background-color: #ccc2ad; }

textarea {
    height: 50px;
    background-color: #fafafa;
}

#shop-personal-li,
#course-personal-li,
#activity-personal-li,
li#wp-admin-bar-my-account-activity,
li#wp-admin-bar-my-account-activity-default { display: none; }

div#comments { margin-top: 50px; }

.woocommerce div.product form.cart .button { padding: 10px; }

/* Form responsive */
#responsive-form {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}
.form-row { width: 100%; }
.column-half,
.column-full {
    float: left;
    position: relative;
    padding: 0.65rem;
    width: 100%;
    box-sizing: border-box;
}
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}
@media only screen and (min-width: 48em) {
    .column-half { width: 50%; }
}

/* Mobile menu personalizzato */
.sidemenu li.menu-item-has-children.active:after { content: "\f077"; }
.sidemenu li.menu-item-has-children:after {
    content: "\f078";
    font-family: 'FontAwesome';
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ffffff;
}
.open #trigger .lines { display: none; }

div#at-share-dock { height: 32px; }

figure.woocommerce-product-gallery__wrapper > div:nth-of-type(1) {
    pointer-events: none;
}

/* =========================
   ACCORDION MANUALE
 ========================= */

/* FIX: corretto "0p" → "0px" nel border-radius */
.ditalsaccordion {
    background-color: #2e7d32;
    color: #fff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 6px 6px 0 0;
    outline: none;
    transition: 0.4s;
}
.ditalsaccordion h4 { color: #fff; }
.active,
.ditalsaccordion:hover {
    background-color: #2c553d;
    color: #fff;
}
.ditalsaccordion::before {
    content: '\2304';
    display: inline-block;
    margin-right: 10px;
    font-size: 1.8em;
    line-height: 1;
    float: left;
    padding-right: 10px;
    transition: transform 0.4s ease;
}
.ditalsaccordion.active::before {
    content: '\2303';
    padding-top: 10px;
}
.ditalspanel {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    border-radius: 0 0 6px 6px;
}

/* =========================
   TABELLA CDC TI
 ========================= */

div.cdc_ts,
div.cdc {
    font-family: 'Open Sans', sans-serif;
    border: 0 solid #ffffff;
    width: 100%;
    text-align: left;
}
.divTable.cdc_ts .divTableCell,
.divTable1.cdc .divTableCell1,
.divTable.cdc_ts .divTableHead,
.divTable1.cdc .divTableHead1 {
    padding: 20px 15px;
}
.divTableCell .pc1 { width: 100%; }
.c1 { width: 30%; }
.c2 { width: 10%; }
.c3 { width: 60%; }
.divTable.cdc_ts .divTableBody .divTableCell a,
.divTable1.cdc .divTableBody1 .divTableCell1 a {
    font-size: 16px;
    font-weight: 400;
}
.divTable.cdc_ts .divTableRow:nth-child(even),
.divTable1.cdc .divTableRow1:nth-child(even) {
    background: #ebebeb;
}
.divTable.cdc_ts .divTableHeading {
    background: #58b9da;
    border-bottom: 5px solid #ffffff;
}
.divTable1.cdc .divTableHeading1 {
    background: #2c553d;
    border-bottom: 5px solid #ffffff;
}
.divTable.cdc_ts .divTableHeading .divTableHead,
.divTable1.cdc .divTableHeading1 .divTableHead1 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-align: left;
    border-left: 0 solid #ffffff;
}
.divTable.cdc_ts .divTableHeading .divTableHead:first-child,
.divTable1.cdc .divTableHeading1 .divTableHead1:first-child {
    border-left: none;
}

/* divTable display modes */
.divTable, .divTable1 { display: table; }
.divTableRow, .divTableRow1 { display: table-row; }
.divTableHeading, .divTableHeading1 { display: table-header-group; }
.divTableCell, .divTableHead, .divTableCell1, .divTableHead1 { display: table-cell; }
.divTableFoot, .divTableFoot1 { display: table-footer-group; }
.divTableBody, .divTableBody1 { display: table-row-group; }

/* Pulsante indietro */
#pulsante-indietro {
    float: right;
    margin: 10px 2px;
    background: #eee;
    color: #444;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 5px 10px;
}

/* Casella ricerca CDC */
#ricercacdc {
    margin: 10px 10px 10px 0;
    padding: 15px;
    border-radius: 6px;
}
#cercacdc input[type=text] {
    width: 70%;
    transition: width 0.15s ease-in-out;
}
.r-elenco { display: block; }

/* Tabella Laurea */
div.laurea {
    border: 1px solid #ffffff;
    width: 100%;
    height: 200px;
    text-align: left;
    border-collapse: collapse;
}
.divTable.laurea .divTableCell,
.divTable.laurea .divTableHead { padding: 6px; }
.mastersanitari .divTable.laurea .divTableHeading {
    background: #05a9b5;
    border-bottom: 4px solid #ffffff;
}
.mastersanitari .divTable.laurea .divTableBody > div:nth-of-type(odd) {
    background-color: #b6faff;
}
.mastersanitari .divTable.laurea .divTableBody > div:first-child {
    background-color: #05a9b5;
    color: #ffffff;
}
.mastersanitari .divTable.laurea .divTableBody > div:last-child {
    background-color: #ffffff;
}
.divTable.laurea .divTableBody .divTableCell { font-size: 14px; }
.divTable.laurea .divTableHeading {
    background: #58b9da;
    border-bottom: 5px solid #ffffff;
}
.divTable.laurea .divTableHeading .divTableHead {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-align: left;
}
.laurea .tableFootStyle {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    background: #d0e4f5;
    border-top: 3px solid #444444;
}
div.laurea .hh2 { background: #eeeeee; }
div.laurea .vuota { height: 24px !important; }

/* Categorie e prodotti shop 4 colonne desktop */
@media all and (min-width: 1024px) {
    [class*=woocommerce] ul.columns-3 li.product {
        width: 23.1% !important;
        margin: 0 0 1em 0 !important;
        clear: none !important;
        float: left;
    }
    [class*=woocommerce] ul.columns-3 li.product:nth-child(4n) {
        margin-right: 0 !important;
    }
    [class*=woocommerce] ul.columns-3 li.product:nth-child(4n+1) {
        clear: both !important;
    }
}

/* Barra laterale sharing */
div.a2a_kit.a2a_kit_size_32.a2a_floating_style.a2a_vertical_style {
    top: unset !important;
    margin-left: 3px;
    bottom: 90px !important;
}

/* =========================
   MENU UTENTI LOGGATI / NON LOGGATI (consolidato)
========================= */

/* Voci nascoste agli utenti non loggati */
.logged-out li#main-menu-item-17641,
.logged-out li#main-menu-item-33868,
.logged-out li#main-menu-item-17644,
.logged-out li#menu-item-17641,
.logged-out li#menu-item-33868,
.logged-out li#menu-item-17644,
.logged-out .vicon.vicon-shopping-cart {
    display: none !important;
}

/* Voci visibili agli utenti loggati */
.logged-in li#main-menu-item-17641,
.logged-in li#main-menu-item-33868,
.logged-in li#main-menu-item-17644,
.logged-in li#menu-item-17641,
.logged-in li#menu-item-33868,
.logged-in li#menu-item-17644 {
    display: block;
}

/* Icona carrello menu desktop solo per loggati */
@media (min-width: 992px) {
    .logged-out li#main-menu-item-33411 { display: none !important; }
    .logged-in .fa-shopping-cart {
        content: "\f07a" !important;
        font-family: FontAwesome !important;
    }
}

li#menu-item-33411 { display: none !important; }

/* Badge carrello mobile */
.logged-in .cartcontentmobile {
    font-size: 10px;
    color: #fff;
    background: red;
    border-radius: 50%;
    padding: 2px 4px;
    position: relative;
    left: -3px;
    top: -10px;
    opacity: 0.9;
}

/* Fix logo duplicato mobile */
header.generic.fixed #header_logo { display: block !important; }

/* Trust Reviews */
div.trustreviews.wpac { width: 125% !important; }
div.trustreviews-content { margin: auto !important; }
div.trustreviews-header {
    visibility: hidden;
    display: none;
}

/* WooCommerce vari */
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th.label {
    color: #000000 !important;
}

#tribe-events-content a,
.tribe-events-event-meta a { border-bottom: 0 !important; }

abbr[title] { cursor: text; }

div.vc_column-inner ul {
    margin-left: 20px;
    list-style-type: initial;
}
div.vc_column-inner ol {
    margin-left: 20px;
    list-style-type: decimal;
}

/* Messaggio woocommerce (FIX: era "inline block" senza trattino) */
div.woocommerce-message-1 {
    background-color: #d9534f;
    display: inline-block;
    padding: .2em .6em;
    font-weight: bold;
    color: #fff;
    text-align: center;
    border-radius: .5em;
}

p.stock.available-on-backorder { color: orange !important; }

/* =========================
   GRIGLIA PRODOTTI WOO 4 COLONNE
   ========================= */

ul.products.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.products.custom-grid li.product {
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
ul.products.custom-grid li.product img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    display: block;
    object-fit: contain;
}
ul.products.custom-grid li.product h2.woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: #333;
}
ul.products.custom-grid li.product .price {
    display: block;
    margin: 0.5rem 0;
    color: #444;
    font-weight: 500;
}
ul.products.custom-grid li.product .button {
    white-space: nowrap;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    padding: 0.5em 1em;
    letter-spacing: 0;
    max-width: 100%;
    width: auto;
}
.custom-woo-products-title {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #222;
    text-align: left;
}
@media (max-width: 1024px) {
    ul.products.custom-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
@media (max-width: 600px) {
    ul.products.custom-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CHECKOUT FORM ROWS (consolidato i due blocchi sovrapposti)
   ========================= */

.woocommerce form .form-row {
    box-sizing: border-box;
    padding: 0 10px;
    margin-bottom: 1em;
    float: left;
    clear: none;
}

/* 2 colonne */
.woocommerce .form-row-first,
.woocommerce .form-row-last { width: 48%; }

/* 3 colonne */
.woocommerce .form-row-third,
.woocommerce .form-row-third-last {
    width: 32% !important;
    margin-right: 2% !important;
    float: left !important;
    clear: none !important;
    display: block !important;
    box-sizing: border-box !important;
}
.woocommerce .form-row-third-last { margin-right: 0 !important; }

/* Riga intera */
.woocommerce .form-row-full {
    width: 100% !important;
    clear: both !important;
    float: none !important;
}

@media (max-width: 768px) {
    .woocommerce .form-row-third,
    .woocommerce .form-row-third-last {
        width: 100% !important;
        margin-right: 0 !important;
        float: none !important;
    }
}

/* Pagamenti specifici */
body.woocommerce-checkout li.wc_payment_method.payment_method_stripe_applepay.active {
    background-color: transparent !important;
    color: #3c434a !important;
}
body.woocommerce-checkout li.wc_payment_method.payment_method_angelleye_ppcp_cc {
    display: none !important;
}

/* Menu inferiore About Ditals */
#menu-menuinferiore li a {
    padding: 4px 0;
    display: block;
}
@media (max-width: 768px) {
    #menu-menuinferiore li a {
        padding: 14px 16px;
        min-height: 44px;
    }
}

/* Topmenu */
#headertop li a {
    padding: 4.5px 2.5px !important;
    display: block;
}

/* Footer recent entries */
div.footerwidget.widget_recent_entries h3.footertitle { color: #000000 !important; }

/* Pagetitle e breadcrumbs */
div.pagetitle h1,
#breadcrumbs { margin-top: 20px; }

/* =========================
   CAROSELLO telefono e rate
========================= */

.ws-carousel {
    --ws-fade: 1s;
    position: relative;
    overflow: hidden;
    display: block;
}
.ws-carousel .ws-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--ws-fade) ease-in-out;
    text-decoration: none;
    z-index: 0;
}
.ws-carousel .ws-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ws-carousel .ws-slide.ws-active {
    opacity: 1;
    z-index: 1;
}

/* =========================
   PULSANTI CTA - VERDE / ARANCIONE
   ========================= */

/* Pulsante CHIEDI INFO */
a.chiedi-info-btn,
a.chiedi-info-btn:visited {
    background-color: #c96a1a !important;
    padding: 7px;
    font-weight: 700;
    border-radius: 3px;
    color: #ffffff;
}
a.chiedi-info-btn:hover,
a.chiedi-info-btn:focus {
    background-color: #9f4f12 !important;
    color: #ffffff !important;
}

/* Pulsante ISCRIVITI hover */
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:focus {
    background-color: #256628 !important;
    border-color: #256628 !important;
    color: #ffffff !important;
}

/* Accordion verde → arancione */
.vc_tta-color-green.vc_tta-style-classic .vc_tta-panel-heading,
.vc_tta.vc_tta-color-green .vc_tta-panel-heading {
    background-color: #c96a1a !important;
    border-color: #c96a1a !important;
}
.vc_tta-color-green.vc_tta-style-classic .vc_tta-panel-heading:hover,
.vc_tta-color-green.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-heading {
    background-color: #9f4f12 !important;
}
.vc_tta-color-green.vc_tta-style-classic .vc_tta-panel-title a {
    color: #ffffff !important;
}

/* Pulsante CTA SCOPRI I CORSI 3D verde */
.vc_btn3.vc_btn3-color-green.vc_btn3-style-3d {
    background-color: #2e7d32 !important;
    box-shadow: 0 5px 0 #2c553d !important;
}
.vc_btn3.vc_btn3-color-green.vc_btn3-style-3d:hover {
    background-color: #2c553d !important;
    box-shadow: 0 2px 0 #2c553d !important;
}
.vc_btn3.vc_btn3-color-green.vc_btn3-style-3d.vc_btn3-size-lg {
    box-shadow: #2c553d 0 5px 0;
}

/* Pulsante CTA flat verde */
.vc_btn3.vc_btn3-color-green,
.vc_btn3.vc_btn3-color-green.vc_btn3-style-flat {
    background-color: #2e7d32;
    font-weight: 700;
}

/* Pulsante verde stati */
.vc_btn3.vc_btn3-color-green:hover,
.vc_btn3.vc_btn3-color-green:focus,
.vc_btn3.vc_btn3-color-green:active {
    background-color: #2c553d !important;
    border-color: #2c553d !important;
}

/* Pulsante arancione stati */
.vc_btn3.vc_btn3-color-warning:hover,
.vc_btn3.vc_btn3-color-warning:focus,
.vc_btn3.vc_btn3-color-warning:active {
    background-color: #9f4f12 !important;
    border-color: #9f4f12 !important;
}

/* Icona cappellino verde */
.vc_icon_element.vc_icon_element-outer .vc_icon_element-inner.vc_icon_element-color-green .vc_icon_element-icon {
    color: #2e7d32 !important;
}

/* Prezzo WooCommerce */
.woocommerce .woocommerce-Price-amount.amount,
.woocommerce-page .woocommerce-Price-amount.amount {
    color: #4e8232 !important;
}

/* Accordion arancione → verde */
.vc_tta-color-orange.vc_tta-style-classic .vc_tta-panel-heading,
.vc_tta.vc_tta-color-orange .vc_tta-panel-heading {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
}
.vc_tta-color-orange.vc_tta-style-classic .vc_tta-panel-heading:hover,
.vc_tta.vc_tta-color-orange .vc_tta-panel-heading:hover {
    background-color: #2c553d !important;
}
.vc_tta-color-orange.vc_tta-style-classic .vc_tta-panel.vc_active .vc_tta-panel-heading,
.vc_tta.vc_tta-color-orange .vc_tta-panel.vc_active .vc_tta-panel-heading {
    background-color: #2c553d !important;
    border-color: #2c553d !important;
    color: #ffffff !important;
}
.vc_tta-color-orange.vc_tta-style-classic .vc_tta-panel-title a {
    color: #ffffff !important;
}

/* Pulsante CTA 3D arancione */
.vc_btn3.vc_btn3-color-warning.vc_btn3-style-3d,
.vc_btn3.vc_btn3-color-orange.vc_btn3-style-3d {
    background-color: #c96a1a !important;
    box-shadow: 0 5px 0 #9f4f12 !important;
}
.vc_btn3.vc_btn3-color-warning.vc_btn3-style-3d:hover,
.vc_btn3.vc_btn3-color-orange.vc_btn3-style-3d:hover {
    background-color: #9f4f12 !important;
    box-shadow: 0 2px 0 #9f4f12 !important;
}
.vc_btn3.vc_btn3-color-warning.vc_btn3-style-3d.vc_btn3-size-lg,
.vc_btn3.vc_btn3-color-orange.vc_btn3-style-3d.vc_btn3-size-lg {
    box-shadow: #9f4f12 0 5px 0;
}

/* Pulsante CTA flat arancione */
.vc_btn3.vc_btn3-color-warning,
.vc_btn3.vc_btn3-color-warning.vc_btn3-style-flat,
.vc_btn3.vc_btn3-color-orange,
.vc_btn3.vc_btn3-color-orange.vc_btn3-style-flat {
    background-color: #c96a1a !important;
}

/* Icona punto interrogativo arancione */
.vc_icon_element.vc_icon_element-outer .vc_icon_element-inner.vc_icon_element-color-warning .vc_icon_element-icon,
.vc_icon_element.vc_icon_element-outer .vc_icon_element-inner.vc_icon_element-color-orange .vc_icon_element-icon {
    color: #c96a1a !important;
}

/* Icona prima colonna CTA */
.wpb_column:first-child .vc_cta3-container .vc_icon_element-inner,
.wpb_column:first-child .vc_cta3-container .vc_icon_element-inner * {
    color: #c96a1a !important;
    -webkit-text-fill-color: #c96a1a !important;
}
