.ai-search-page .bg-blue-25 {
    background-color: var(--bs-blue-25) !important;
}
.ai-search-page .bg-gray-50  {
    background-color: var(--bs-gray-50) !important;
}
.ai-search-page .bg-sand-10  {
    background-color: var(--bs-sand-10) !important;
}
.ai-search-page .bg-lilac-10 {
    background-color: var(--bs-lilac-10) !important;
}
@media (min-width: 992px) {
    .ai-search-page {
        padding-top: 7.375rem;
        background-image: linear-gradient(180deg, transparent 34px, rgba(52, 64, 84, 0.2) -7%, transparent 5%);
    }
}
.it-header-wrapper {
    background: rgba(52, 64, 84, 0.8) !important;
}
.ai-search-page a {
    text-decoration: none;
}
.ai-search-page a:hover {
    color: #1d2939;
}
.ai-search-page  .p {
    font-family: 'Rethink Sans', sans-serif;
    font-size: 1rem;
    line-height: 20px;
    font-weight: 400;
}

.ai-search-page .sparkle {
    margin-right: 6px;
    width: 20px;
    height: 20px;
    margin: auto 6px auto 0;
}
/* No search section */
.ai-search-page #noSearchSection {
    display: none;
    padding: 60px 0;
}

/* Answer section */
.ai-search-page #answerSection {
    display: none;
    padding: 60px 0;
    padding-bottom: 30px;
}
.ai-search-page #answerSection .query {
    margin-bottom: 19px;
}
.ai-search-page #answerSection #query {
    font-size: 18px;
    line-height: 26px;
}
.ai-search-page #answerSection #answer {
    font-family: 'Rethink Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
}
/* Results section */
.ai-search-page .section-contenuto-rte__inner {
    background-color: white !important;
}

.ai-search-page #sectionResults {
    display: none;
    padding: 2rem 0 5rem 0;
}
.ai-search-page #sectionResults .title {
    font-family: "PT Serif", serif;
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 38px;
}
.ai-search-page #sectionResults .container #resultsList {
    gap: 32px;
    display: flex;
    flex-direction: column;
}
.ai-search-page #sectionResults .section-contenuto-rte.contenuto-rte-center-box {
    margin-bottom: 0;
    padding-top: 0;
    background-color: transparent;
}
.ai-search-page #sectionResults .section-contenuto-rte .section-contenuto-rte__title {
    max-width: none;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 26px;
    font-size: 20px;
    font-family: 'Rethink Sans', sans-serif;
}
.ai-search-page #sectionResults .section-contenuto-rte .section-contenuto-rte__content {
    font-weight: 400;
    line-height: 20px;
    font-size: 16px;
    font-family: 'Rethink Sans', sans-serif;
}
.ai-search-page #sectionResults .section-contenuto-rte.contenuto-rte-center-box .section-contenuto-rte__inner:hover {
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.22);
    transition: all 0.2s ease-out;
}
.ai-search-page #sectionResults .section-contenuto-rte.contenuto-rte-center-box .section-contenuto-rte__inner:hover .section-contenuto-rte__title{
    text-decoration: underline !important;
    transition: all 0.2s ease-out;
}
/* Advices section */
.ai-search-page #sectionAdvices {
    padding-top: 5rem;
    padding-bottom: 30px;
    --ai-search-news-evidenza-bg-color: #F2F4F7;
    background-color: var(--ai-search-news-evidenza-bg-color);
}
.ai-search-page #sectionAdvices .news-evidenza {
    background-color: var(--ai-search-news-evidenza-bg-color);
}
.ai-search-page #sectionAdvices .advices_intestazione {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-search-page #sectionAdvices .advices_intestazione__title {
    font-family: "PT Serif", serif;
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 400;
    margin: 0;
}
.ai-search-page #sectionAdvices .divider {
    width: 100%;
    height: 1px;
    background-color: #98A2B3;
    margin-top: 24px;
}
@media (min-width: 768px) {
    .ai-search-page #sectionAdvices .splide__list {
        row-gap: calc(var(--bs-gutter-x) * .5 * 2);
    }
}
.ai-search-page #sectionAdvices .splide__list .splide__slide {
    padding: 0;
}
.ai-search-page #sectionAdvices .splide__list .cdp-card__content{
    padding-right: calc(var(--bs-gutter-x) * .5 * 2);
}
.ai-search-page #sectionAdvices .news-evidenza .splide__arrows:has(.splide__arrow--prev:disabled):has(.splide__arrow--next:disabled) {
    display: none;
}
.ai-search-page #sectionAdvices .badge-fill-white {
    background-color: var(--bs-blue-25) !important;
}
/* Cards section */
.ai-search-page #sectionCards {
    display: none;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.8px;
    padding-top: 30px;
}
.ai-search-page #sectionCards .obbligazioni-slider .splide {
    border: none;
    padding: 0;
    margin-top: 24px;
}
.ai-search-page #sectionCards .obbligazioni-slider .splide__arrows {
    border: none;
    bottom: -60px;
    top: auto;
}
.ai-search-page #sectionCards .obbligazioni-slider .splide__arrows:has(.splide__arrow--prev:disabled):has(.splide__arrow--next:disabled) {
    display: none;
}

.ai-search-page #sectionCards .obbligazioni-slider .btn-outline {
    position: absolute;
    bottom: 16px
}
.line-clamp-1 {
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line-clamp-7 {
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .ai-search-page #sectionCards .cdp-card__abstract {
        -webkit-line-clamp: 2;
    }
}
.ai-search-page #sectionCards .tcl-picture--ar-384x256:before {
    padding-bottom: 60.6666666667%;
}

.ai-search-page #sectionCards .obbligazioni-slider .btn-outline:hover {
    background-color: #344054;
    border: 1px solid #344054;
    color: #fff;
}

.ai-search-page #sectionCards .cdp-card__content .cdp-card__title:hover {
    text-decoration: underline;
}
/* Section AiOff */

.ai-search-page #sectionAiOff {
    display: none;
}

.ai-search-page #sectionAiOff .title {
    font-family: "PT Serif", serif;
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 38px;
}

.ai-search-page #sectionAiOff .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.ai-search-page #sectionAiOff .results {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.ai-search-page #sectionAiOff .container .tab-content.active {
    gap: 32px;
    display: flex;
    flex-direction: column;
}

.ai-search-page #sectionAiOff .section-contenuto-rte.contenuto-rte-center-box {
    margin-bottom: 0;
    padding-top: 0;
    background-color: transparent;
}

.ai-search-page
#sectionAiOff
.section-contenuto-rte
.section-contenuto-rte__title {
    max-width: none;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 26px;
    font-size: 20px;
    font-family: "Rethink Sans", sans-serif;
}

.ai-search-page
#sectionAiOff
.section-contenuto-rte
.section-contenuto-rte__content {
    font-weight: 400;
    line-height: 20px;
    font-size: 16px;
    font-family: "Rethink Sans", sans-serif;
}

.ai-search-page
#sectionAiOff
.section-contenuto-rte.contenuto-rte-center-box
.section-contenuto-rte__inner:hover {
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.22);
    transition: all 0.2s ease-out;
}

.ai-search-page
#sectionAiOff
.section-contenuto-rte.contenuto-rte-center-box
.section-contenuto-rte__inner:hover
.section-contenuto-rte__title {
    text-decoration: underline !important;
    transition: all 0.2s ease-out;
}

/* Tabs */

.ai-search-page #sectionAiOff .tabs {
    display: flex;
    width: fit-content;
    gap: 8px;
}

/* Tab content */

.ai-search-page #sectionAiOff .tab-content {
    display: none;
    padding: 2.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.ai-search-page #disclaimerSection {
    display: none;
}

.ai-search-page #disclaimerSection .p {
    font-style: italic;
}

.search-bar {
    width: 100%;
    max-width: 1204px;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px;
    background: #ffffff;
    border-bottom: 1px solid rgba(32, 82, 138, 0.2);
    margin-top: 48px;
}

.search-bar__field {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 46px;
}

.search-bar__input {
    position: absolute;
    inset: 0;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    margin: 0;
    padding: 20px 0 0;
    font-family: "Rethink Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #173b68;
}

.search-bar__label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Rethink Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #173b68;
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease, letter-spacing 0.15s ease;
}

.search-bar__input:focus+.search-bar__label,
.search-bar__input:not(:placeholder-shown)+.search-bar__label {
    top: -6px;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.14px;
    color: #5e7797;
}

.search-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}

.icon-btn:hover {
    opacity: 0.7;
}

.icon-btn:focus-visible {
    outline: 2px solid #173b68;
    outline-offset: 2px;
}

.search-bar:has(.search-bar__input:not(:placeholder-shown)) #submitBtn {
    display: none;
}

.search-bar__field input {
    border-bottom: none;
}