/* ============================================================
   GENERAL SETTINGS
   ============================================================ */
:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #000;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #13678a;
    --bs-secondary: #149a9b;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #eff5f7;
    --bs-dark: #0e4d68;
    --nav-bg-hover: #adb5bd!important;
    --nav-bg-active: #149a9b!important;
    --bs-gray-100-rgb: 248,249,250;
    --bs-gray-200-rgb: 233,236,239;
    --bs-gray-300-rgb: 222,226,230;
    --bs-gray-400-rgb: 206,212,218;
    --bs-gray-500-rgb: 173,181,189;
    --bs-gray-600-rgb: 108,117,125;
    --bs-gray-700-rgb: 73,80,87;
    --bs-gray-800-rgb: 52,58,64;
    --bs-gray-900-rgb: 33,37,41;
    --bs-primary-rgb: 19, 103, 138;
    --bs-secondary-rgb: 20, 154, 155;
    --bs-success-rgb: 25, 135, 84;
    --bs-info-rgb: 13, 202, 240;
    --bs-warning-rgb: 255, 193, 7;
    --bs-danger-rgb: 220, 53, 69;
    --bs-light-rgb: 239, 245, 247;
    --bs-dark-rgb: 14, 48, 110;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-body-color-rgb: 0, 33, 48;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-font-sans-serif: "Montserrat", sans-serif;
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #002333;
    --bs-body-bg: #fff;
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-2xl: 2rem;
    --bs-border-radius-pill: 50rem;
    --bs-link-color: #13678a;
    --bs-link-hover-color: #0f526e;
    --bs-code-color: #d63384;
    --bs-highlight-bg: #fff3cd;
    --bs-card-border-radius: 20px;
    --bs-card-bg: #f4f4f4;
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;
    --wd-primary-color: rgb(19,103,138);
    --wd-secondary-color: rgb(20,154,155);
    --wd-primary-color-rgb: 19,103,138;
    --wd-secondary-color-rgb: 20,154,155;
    --bgcolor-white: #fff;
    --bgcolor-gray-100: #f7f7f7;
    --bgcolor-gray-200: #f7f7f7;
    --bgcolor-gray-300: #f1f1f1;
    --brdcolor-gray-200: rgba(0,0,0,0.075);
    --brdcolor-gray-300: rgba(0,0,0,0.105);
    --brdcolor-gray-400: rgba(0,0,0,0.12);
    --brdcolor-gray-500: rgba(0,0,0,0.2);
    --color-white: #fff;
    --color-gray-100: #f7f7f7;
    --color-gray-200: #f1f1f1;
    --color-gray-300: #bbb;
    --color-gray-400: #a5a5a5;
    --color-gray-500: #777;
    --color-gray-600: #666;
    --color-gray-700: #555;
    --color-gray-800: #333;
    --color-gray-900: #242424;
    --bgcolor-white-rgb: 255,255,255;
    --wd-text-color: #777;
    --wd-title-color: #242424;
    --wd-entities-title-color: #333;
    --wd-entities-title-color-hover: rgba(51,51,51,0.65);
    --wd-link-color: #333;
    --wd-link-color-hover: #242424;
    --wd-form-brd-color: rgba(0,0,0,0.1);
    --wd-form-brd-color-focus: rgba(0,0,0,0.15);
    --wd-form-placeholder-color: #333;
    --wd-widget-title-font-size: 18px!important;
}
:root textarea {
    overflow: auto;
    padding: 10px 15px;
    min-height: 190px;
    resize: vertical;
    border-radius: 15px;
}
:root select {
    padding-left: 20px;
    padding-right: 20px;
    background-image: var(--wd-form-chevron);
    background-position: right 20px top 50%;
    background-size: auto 18px;
    background-repeat: no-repeat;
}

/* ============================================================
   GENERAL STYLE
   ============================================================ */
.wd-title-style-bordered .liner-continer:after {
    position: relative;
    top: 5px;
}
.icon::before {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}
.register .mailchimp-newsletter {
    display: none!important;
}
input[type="text"], input[type="tel"],input[type="email"] {
    font-weight: 500;
    padding-left: 20px;
}

.wc-user-register-fields .woocommerce-billing-fields h3 {
    display: none;
}
.hide-privacy-link {
    display: none;
}
.privacy-policy-popup {
    padding: 0!important;
}
.grecaptcha-badge {
    opacity: 0;
}
.contact-icon-text {
    position: absolute; 
    top: 7px; 
    margin-left: 5px; 
    font-size: 20px;
}
:is(.e-con,.elementor-column).wd-side-hidden.wd-left {
    border-radius: 0;
}
.wd-popup .wd-popup-inner {
    overflow: hidden!important;
}
.wd-action-btn.wd-style-text .wd-action-icon {
    font-size: 1.3rem;
    margin-top: 2px;
    margin-inline-end: .2em;
}
.wd-popup-close.wd-action-btn.wd-style-text .wd-action-icon {
    margin-top: 3px!important;
}
.payment-icons i {
    padding-right: 5px;
}

/* -- Select2 ---------------------------------------- */
/* Dropdown aperto in basso: angoli superiori arrotondati, inferiori = 0 */
body .select2-container--default.select2-container--open.select2-container--below .select2-selection--single {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
/* Dropdown aperto in alto: angoli inferiori arrotondati, superiori = 0 */
body .select2-container--default.select2-container--open.select2-container--above .select2-selection--single {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}
body .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-weight: 500;
    padding-left: 20px;
}
body .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 0;
    width: 48px;
}
body .select2-container--default .select2-dropdown {
    border-width: var(--wd-form-brd-width);
    border-color: var(--wd-form-brd-color);
    border-radius: 0 !important;
    background-color: var(--bgcolor-white);
    color: var(--wd-form-color);
}
body .select2-container--default .select2-results,
.select2-container--default .select2-results > .select2-results__options,
.select2-dropdown--above,
.select2-dropdown--below {
    border-radius: 0 !important;
}
body .register .select2-container--default {
    width: 100%!important;
}

/* -- Select2: fix overflow orizzontale su mobile ----- */
@media (max-width: 1024px) {
    .select2-container {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .select2-dropdown {
        max-width: calc(100vw - 30px) !important;
        box-sizing: border-box !important;
        left: auto !important;
    }
}

/* ============================================================
   CHECK BOX & RADIO BOX
   ============================================================ */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0 6px 0 0;
    font: inherit;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
    transform: translateY(-1px);
}

/* --- CHECKBOX --- */
input[type="checkbox"] {
    width: 1.1em;
    height: 1.1em;
    border: 1.5px solid var(--brdcolor-gray-500);
    border-radius: 4px;
    transition: background-color 150ms ease, border-color 150ms ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
}
input[type="checkbox"]:checked {
    background-color: rgb(var(--wd-secondary-color-rgb));
    border-color: rgb(var(--wd-secondary-color-rgb));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 4.5'/%3E%3C/svg%3E");
}
input[type="checkbox"]:focus-visible {
    outline: 1.5px solid rgb(var(--wd-secondary-color-rgb));
    outline-offset: 2px;
}

/* --- RADIO --- */
input[type="radio"] {
    width: 1.1em;
    height: 1.1em;
    border: 1.5px solid var(--brdcolor-gray-500);
    border-radius: 50%;
    display: inline-grid;
    place-content: center;
    transition: border-color 150ms ease;
}
input[type="radio"]::before {
    content: "";
    width: 0.45em;
    height: 0.45em;
    border-radius: 50%;
    background-color: rgb(var(--wd-secondary-color-rgb));
    transform: scale(0);
    transition: transform 150ms ease-in-out;
}
input[type="radio"]:checked {
    border-color: rgb(var(--wd-secondary-color-rgb));
}
input[type="radio"]:checked::before {
    transform: scale(1);
}
input[type="radio"]:focus-visible {
    outline: 1.5px solid rgb(var(--wd-secondary-color-rgb));
    outline-offset: 2px;
}

/* Iubenda banner: non sovrascrivere stili interni */
#iubenda-cs-banner input[type="checkbox"],
#iubenda-cs-banner input[type="radio"] {
    all: revert;
}

