/* Colori Wimmo Business, allineati al portale pubblico. */
:root,
[data-bs-theme="light"] {
    --bs-primary: #29637F;
    --bs-primary-rgb: 41, 99, 127;
    --bs-primary-text-emphasis: #29637F;
    --bs-primary-bg-subtle: #e8f0f4;
    --bs-primary-bg-dark: #204e66;
    --bs-primary-border-subtle: #bdd2dc;
    --headingColor: #29637F;

    --bs-secondary: #B92422;
    --bs-secondary-rgb: 185, 36, 34;
    --bs-secondary-text: #ffffff;
    --bs-secondary-border-subtle: #e8bdbc;
}

[data-bs-theme="dark"] {
    --bs-primary: #29637F;
    --bs-primary-rgb: 41, 99, 127;
    --bs-primary-text-emphasis: #6e9db5;
    --bs-primary-bg-subtle: #173846;
    --bs-primary-bg-dark: #204e66;
    --bs-primary-border-subtle: #29637F;

    --bs-secondary: #B92422;
    --bs-secondary-rgb: 185, 36, 34;
    --bs-secondary-text: #ffffff;
    --bs-secondary-border-subtle: #6d1615;
}

.bg-secondary {
    color: #ffffff;
}

#cookie-consent-modal {
    padding-right: 0 !important;
}

#cookie-consent-modal .modal-content {
    border: 0;
    border-radius: .75rem;
    overflow: hidden;
}

#cookie-consent-modal .modal-header,
#cookie-consent-modal .modal-footer {
    padding: 1.5rem;
}

#cookie-consent-modal .modal-footer {
    justify-content: flex-end;
    gap: .5rem;
}

#cookie-consent-modal .cookie-consent-reject-link {
    display: inline-flex;
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    align-items: center;
    gap: .45rem;
    color: var(--bs-primary);
    font-size: .875rem;
    font-weight: 600;
    text-align: right;
}

#cookie-consent-modal .cookie-consent-title {
    order: 1;
}

#cookie-consent-modal .cookie-consent-reject-link:hover,
#cookie-consent-modal .cookie-consent-reject-link:focus {
    color: var(--bs-secondary);
}

#cookie-consent-modal .cookie-consent-reject-link.disabled {
    pointer-events: none;
    opacity: .6;
}

#cookie-consent-modal .nav-tabs .nav-link {
    color: var(--bs-primary);
}

#cookie-consent-modal .nav-tabs .nav-link.active {
    color: var(--bs-secondary);
    font-weight: 600;
}

#cookie-consent-modal .cookie-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

#cookie-consent-modal .cookie-consent-option:last-child {
    border-bottom: 0;
}

#cookie-consent-modal .cookie-consent-switch {
    position: relative;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 1.5rem;
}

#cookie-consent-modal .cookie-consent-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

#cookie-consent-modal .cookie-consent-switch span {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 2rem;
    background: #adb5bd;
    transition: background-color .2s ease;
}

#cookie-consent-modal .cookie-consent-switch span::before {
    position: absolute;
    bottom: .2rem;
    left: .2rem;
    width: 1.1rem;
    height: 1.1rem;
    content: '';
    border-radius: 50%;
    background: #ffffff;
    transition: transform .2s ease;
}

#cookie-consent-modal .cookie-consent-switch input:checked + span {
    background: var(--bs-primary);
}

#cookie-consent-modal .cookie-consent-switch input:checked + span::before {
    transform: translateX(1.25rem);
}

#cookie-consent-modal .cookie-consent-switch input:disabled + span {
    cursor: not-allowed;
    opacity: .7;
}

@media (max-width: 575.98px) {
    #cookie-consent-modal .modal-header {
        flex-wrap: wrap;
        gap: .5rem;
    }

    #cookie-consent-modal .cookie-consent-reject-link {
        order: 1;
        margin-left: auto;
    }

    #cookie-consent-modal .cookie-consent-title {
        order: 2;
        width: 100%;
    }
}

#preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

#preloader .wimmo-preloader-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
    animation: wimmo-preloader-pulse 1.3s ease-in-out infinite;
}

@keyframes wimmo-preloader-pulse {
    50% {
        opacity: .55;
        transform: scale(.94);
    }
}

@media (prefers-reduced-motion: reduce) {
    #preloader .wimmo-preloader-icon {
        animation: none;
    }
}

.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-secondary .text-dark {
    color: #ffffff !important;
}

.wimmo-home-hero {
    background-image:
        linear-gradient(rgba(255, 255, 255, .40), rgba(255, 255, 255, .40)),
        url('/business/assets/img/body-background-1920x1080.webp');
    background-repeat: no-repeat;
}

.wimmo-home-hero .btn-secondary:hover,
.wimmo-home-hero .btn-secondary:focus,
.wimmo-home-hero .btn-secondary:active {
    color: #ffffff !important;
}

.wimmo-mobile-menu-brand {
    display: none;
}

.navigation-portrait .wimmo-mobile-menu-brand {
    display: block;
    padding: 12px 15px;
}

.navigation-portrait .wimmo-mobile-menu-brand img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
}

.wimmo-services {
    background-color: #f3f5fc;
}

.wimmo-services .modern-heading .subtitleHeading-wrap .subtitle-heading {
    text-transform: none;
}

.wimmo-blog-page-title {
    background-color: #29637F !important;
    color: #ffffff;
}

.wimmo-blog-page-title h1,
.wimmo-blog-page-title h2,
.wimmo-blog-page-title h3,
.wimmo-blog-page-title h4,
.wimmo-blog-page-title h5,
.wimmo-blog-page-title h6,
.wimmo-blog-page-title p {
    color: #ffffff !important;
}

#helpGestionaleAccordion .accordion-button::after,
#helpSitoWebAccordion .accordion-button::after,
#helpPortaleAccordion .accordion-button::after {
    content: "\f0d7";
}

.pricing-period-switch {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid rgba(41, 99, 127, .2);
    border-radius: 999px;
    background-color: #ffffff;
}

.pricing-period-switch-wrap {
    position: relative;
    display: inline-flex;
}

.pricing-period-discount {
    position: absolute;
    top: -.95rem;
    right: -4rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 50px;
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.pricing-period-switch button {
    padding: .55rem 1.35rem;
    border: 0;
    background-color: transparent;
    color: #1f4f6a;
    font-weight: 600;
}

.pricing-period-switch button.active {
    background-color: var(--bs-primary);
    color: #ffffff;
}

.pricing-period-switch button:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.pricing-plan-select.disabled {
    cursor: not-allowed;
    opacity: .65;
}

#pricing-plans .pricing-plan-select:hover,
#pricing-plans .pricing-plan-select:focus,
#pricing-plans .pricing-plan-select:active {
    color: #ffffff !important;
}

.pricing-plan-card.pricing-plan-unavailable {
    opacity: .48;
    transition: opacity .2s ease;
}

.pricing-plan-icon {
    font-size: 2rem;
    line-height: 1.875rem;
}

.pricingbox {
    position: relative;
    overflow: hidden;
}

.pricing-plan-ribbon {
    position: absolute;
    top: 1.7rem;
    right: -2.8rem;
    z-index: 1;
    width: 11rem;
    padding: .45rem 0;
    background-color: var(--bs-danger);
    color: #ffffff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
}
/* Stili del flusso di registrazione agenzia Business. */
.pricing-selected-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .12em;
}

.pricing-selected-currency,
.pricing-selected-period {
    font-size: .55em;
    font-weight: 400;
}

.pricing-selected-period {
    align-self: center;
}

.registration-payment-domain {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.15rem;
    color: var(--bs-primary);
    border: 1px solid rgba(41, 99, 127, .3);
    border-radius: .75rem;
    background-color: #eef4f7;
}

.registration-payment-domain > i {
    font-size: 1.25rem;
}

.payment-method-icons .fa-brands {
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
}

.registration-payment-option {
    position: relative;
    border-color: rgba(41, 99, 127, .28) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.registration-payment-option:not(.is-disabled):hover {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 .5rem 1.2rem rgba(41, 99, 127, .12);
    transform: translateY(-2px);
}

.registration-payment-option.is-disabled {
    opacity: .42;
    cursor: not-allowed;
}

.registration-payment-option.is-disabled button {
    cursor: not-allowed;
}

.registration-payment-recommended {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 1;
    font-size: .68rem;
    letter-spacing: .02em;
}

.registration-agency-form .form-control {
    border: 2px solid rgba(41, 99, 127, .35);
}

.registration-agency-form .form-control:focus {
    border-color: var(--bs-primary);
}

.form-select-wimmo {
    padding-right: 2.25rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2329637F' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.5 5.5a.5.5 0 0 1 .8-.4L8 9.6l5.7-4.5a.5.5 0 0 1 .6.8l-6 4.75a.5.5 0 0 1-.6 0l-6-4.75a.5.5 0 0 1-.2-.4Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: .85rem;
}

.form-select-wimmo:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2329637F' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.5 10.5a.5.5 0 0 1 .8.4L8 6.4l5.7 4.5a.5.5 0 0 1-.6.8l-6-4.75a.5.5 0 0 1-.6 0l-6 4.75a.5.5 0 0 1-.2-.4Z'/%3E%3C/svg%3E");
}

.registration-agency-form .input-group > .form-control {
    border-right: 0;
}

.registration-agency-form .input-group-text {
    border: 2px solid rgba(41, 99, 127, .35);
    border-left: 0;
    color: var(--bs-primary);
}

.registration-agency-form .form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid var(--bs-primary);
}

.registration-agency-form .form-check-input:checked {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
}

.registration-agency-form .form-check-label {
    cursor: pointer;
}

.registration-agency-form .registration-submit-button,
.registration-agency-form .registration-submit-button:hover,
.registration-agency-form .registration-submit-button:focus,
.registration-agency-form .registration-submit-button:active {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: #ffffff !important;
}

.registration-setup-preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .96);
    text-align: center;
}

.registration-setup-preloader[hidden] {
    display: none;
}

.registration-setup-preloader-content {
    max-width: 30rem;
}

.registration-setup-preloader-content h2 {
    margin: 1.5rem 0 .5rem;
    color: var(--bs-primary);
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.registration-setup-preloader-content p {
    margin: 0;
    font-weight: 600;
}

.registration-setup-preloader-spinner {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    border: .35rem solid rgba(41, 99, 127, .2);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: registration-setup-preloader-spin .8s linear infinite;
}

.registration-setup-loading {
    overflow: hidden;
}

@keyframes registration-setup-preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

.registration-agency-form .registration-readonly {
    background-color: #eef4f7;
    pointer-events: none;
}

.registration-billing-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.registration-billing-heading h5,
.registration-billing-heading .form-check {
    margin: 0;
}

.registration-agency-form .form-check-input:disabled {
    opacity: .45;
}

/* Riepilogo piano nella sola pagina di registrazione agenzia */
.registration-plan-summary {
    overflow: hidden;
}

.registration-plan-summary .registration-plan-features {
    margin-bottom: 1.5rem !important;
}

.registration-plan-summary .registration-plan-features ul {
    margin: 0;
    padding: 0;
}

.registration-plan-summary .registration-plan-features ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-right: 1.35rem;
    margin-left: 1.35rem;
    padding: .78rem 0;
    text-align: left;
    border-bottom: 1px dashed rgba(41, 99, 127, .28);
}

.registration-plan-summary .registration-plan-features ul li:first-child {
    border-top: 1px dashed rgba(41, 99, 127, .28);
}

.registration-plan-summary .registration-plan-features ul li i {
    order: 2;
    flex: 0 0 auto;
    margin: 0;
}
