#header .navbar-brand .logo {
    height: 58px;
    width: auto;
}

.navbar-expand .main-menu {
    background: #00205c !important;
    padding: 3rem 0;
    position: relative;
    transition: all .3s ease-in-out;
    width: 100%;
    z-index: 3;
}

.module-hero-dropimage .d-md-flex .bg {
    background-color: #eef0f4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-logo-centrato {
    padding: 10px;
}

.module-hero-dropimage .d-md-flex .flex-grow-1 {
    height: auto !important;
}

.ol-count-list {
    list-style-type: decimal;
    padding-inline-start: 20px;
}

.ol-count-list li {
    padding-left: 1rem;
}

.ol-squer-list {
    list-style-type: square;
    padding-inline-start: 45px;
}

.ul-dot-list li {
    margin-bottom: 0px !important;
}

.text-fw-900 {
    font-weight: 900 !important;
}

.module-title .title *+svg {
    left: 30px;
    position: absolute;
    top: -2.5rem;
    z-index: 0
}

@media (min-width: 768px) {
    .block-rounded .module-title .title svg {
        left: -8.33334%
    }
}

.block-rounded .svg-icon-lexy {
    height: calc(100% + 4.5rem);
    max-width: 268px;
    max-height: 268px;
}

@media (min-width: 768px) {
    .block-rounded .svg-icon-lexy {
        height: calc(100% + 20rem);
    }
}

.diagonal-strike {
    position: relative;
    display: inline-block;
}

.diagonal-strike::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: grey;
    transform: rotate(-20deg);
    transform-origin: center;
}

.price-element-list {
    white-space: nowrap;
    break-inside: avoid;
    font-size: 1.6rem;
}

.avoid-brake-line {
    white-space: nowrap;
    break-inside: avoid;
}

@media (max-width: 768px) {
    #main-content .bg img.logo {
        margin-top: 250px;
        height: 200px !important;
    }
}

@media (max-width: 575px) {
    #main-content .module-hero-dropimage .container {
        margin-left: 0px;
        margin-right: 0px;
    }

    #main-content .bg img.logo {
        margin-top: 200px;
    }
}

.det-sconti {
    font-size: 16px !important;
    border-top: 2px solid #cacacaff;
    padding-top: 1.8rem;
    margin-top: 1.3rem;
}

.flex-item-with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.btn-aree-legali {
    background: linear-gradient(135deg, #04398e 0%, #00205c 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(4, 57, 142, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-aree-legali:hover {
    background: linear-gradient(135deg, #00205c 0%, #04398e 100%);
    box-shadow: 0 6px 16px rgba(4, 57, 142, 0.35);
    transform: translateY(-2px);
}

.btn-aree-legali:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(4, 57, 142, 0.3);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-backdrop[style*="opacity: 1"] .modal-container {
    transform: scale(1);
}

.modal-scroll-content {
    padding: 45px;
    overflow-y: auto;
    max-height: calc(90vh - 20px);
}

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close-button:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
    transform: rotate(90deg);
}

.icon-btn-aree {
    background-color: #04398e;
    height: 32px;
    width: 32px;
}

.icon-btn-aree:hover {
    background-color: #00205c !important;
}

.title-cas_titolo {
    color: #00205c;
}

@media (max-width: 768px) {
    .flex-item-with-button {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-aree-legali {
        align-self: flex-end;
        margin-top: 10px;
    }

    .modal-scroll-content {
        padding: 25px;
    }

    .modal-close-button {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

.swal-confirm-black {
    background-color: black !important;
    color: white !important;
}

@media (max-width: 768px) {
    .swal2-popup {
        width: 90vw !important;
        max-width: 90vw !important;
        font-size: 14px !important;
        grid-row: 1 !important;
    }
    .swal2-html-container {
        font-size: 16px !important;
    }
    .swal2-title {
        font-size: 20px !important;
    }
}

.aree_legali_span {
    color: #00205c;
    font-size: 20px;
    margin-top: 15px;
    font-weight: 700;
    padding-right: 8px;
}

@media screen and (max-width: 576px) {
    .aree_legali_span {
        font-size: 16px;
        margin-bottom: 4px;
        padding-bottom: 4px;
    }

    .btn-aree-legali {
        font-size: 1.4rem;
        display: inline-block;
        margin-top: 8px;
    }

    .aree_legali_div {
        text-align: center;
    }
}

.ul-dot-list.red-bullet li::before {
    background-color: #b25b58 !important;
}