﻿body {
    background-color: white;
    
}
header{
    display:flex;
}
a {
    text-decoration: unset !important;
    color: unset;
}

.white-text {
    color:#FFFFFF
}
.orange-text {
    color: #F79104
}
.flag-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #ddd;
}

.dropdown-item {
    padding-left: 1.3vh !important;
    padding-right: 1.3vh !important;
    margin-top: 0.5vh !important;
    cursor: pointer !important;
}

    .dropdown-item:hover {
        background-color: #efefef !important;
    }

.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.container-articolo {
    width: 70%;
    border-radius: 12px;
}

    .container-articolo a {
        color: #014160 !important;
        text-underline-offset: 2px !important;
        transition: color 0.2s ease-in-out !important;
        cursor: pointer !important;
    }
        .container-articolo a:hover {
            color: #026CA0 !important;
        }
.meta-info strong {
    color: #014160
}
.rte-content {
    font-family: 'Roboto', sans-serif !important;
}
.rte-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0; /* Optional spacing */
}

    .meta-info {
        font-size: 1.2rem;
        color: black;
        margin-bottom: 10px;
    }

.label {
    font-size: 1.2rem;
    color: #527199;
}

.etf-selector .label{
    margin-bottom: 0.3rem;
}

.black-border {
    border: 1px solid black;
}
.black-border + .black-border{
    border-top:none;
}

.banner {
    background-size:contain;
    background-position: center;
    height:5vw;
}

.big-tag {
    background-color: #014160;
    border-radius: 12px;
    padding-right: 1vw;
    padding-left: 1vw;
    padding-top: 1vh;
    padding-bottom: 1vh;
    cursor: pointer;
    font-size: 1vw;
    transition: all 0.2s ease-in;
    font-weight: 450;
}

    .big-tag:hover {
        background-color: #025d84
    }

#tag-input-container {
    display: flex;
    overflow-x: auto;
    padding: 5px;
    padding-top:7px;
    border-radius: 5px;
    gap: 5px;
    min-height: 2.2rem;
    transform: scaleY(-1); /* flip container vertically */
}

    #tag-input-container .tags {
        display: flex;
        gap: 5px;
        transform: scaleY(-1); /* flip content back to normal */
    }



.search-button {
    background-color: #014160; /* Background color */
    color: white; /* Text color */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 20px; /* Spacing */
    font-size: 16px; /* Font size */
    display: flex; /* Flexbox for icon and text alignment */
    align-items: center; /* Center vertically */
    gap: 8px; /* Space between icon and text */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

    .search-button:hover {
        background-color: #012c40; /* Darker shade on hover */
    }

.card-container {
    
    transition: all 0.3s linear;
    /*background-color: #EFEFEF;*/
    box-sizing: border-box;
    overflow: hidden;
}

.grid-container {
    height: 0px;
    transition: all 0.3s linear;
    /*background-color: #EFEFEF;*/
    box-sizing: border-box;
    overflow: hidden;
    width:100%
}

.search-button:disabled {
    opacity: 0.5;
    cursor: default;
    background-color: #014160;
}

.autocomplete-container{
    position:relative;
    color:black;
}
.autocomplete {
    position: absolute !important;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    width: 100%;
    border-radius: 8px;
    margin-top: 1%;
}
.autocomplete-item {
    cursor: pointer;
    padding: 12px 8px;
    border-bottom: none;
    font-size: 14px;
}

    .autocomplete-item:last-child {
        border-bottom: none;
    }

    .autocomplete-item:hover {
        background-color: #F1F1F1 !important;
    }


.dropdown-container {
    position: relative;
    width: 100%;
    cursor:pointer;
    color: black;
}

.dropdown-trigger {
    display: flex;
    justify-content: space-between;
    padding-left: 4%;
    align-self:center;
}
    .dropdown-trigger:hover {
        background-color: #fbfbfb;
    }

    

.dropdown {
    position: absolute !important;
    top: 105%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    background-color: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 8px;
}

    .dropdown li {
        padding: 12px 8px;
        cursor: pointer;
        border-bottom: none;
        font-size: 14px;
    }

        .dropdown li:hover,
        .dropdown li.selected {
            background-color: #f0f0f0;
        }


.page-container {
    background-color: #F7F7F7;
    padding-top: 0 !important;
    padding-left: 4rem;
    padding-right: 4rem;
    padding-bottom: 2rem;
}

/* Medium screens (tablets) */
@media (max-width: 992px) {
    .page-container {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* Small screens (phones) */
@media (max-width: 576px) {
    .page-container {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
        padding-bottom: 1rem;
    }
}

    .page-container .header {
        border-top-left-radius: 10px; /* Top-left corner */
        border-top-right-radius: 10px; /* Top-right corner */
        border-bottom-left-radius: 0; /* Bottom-left corner (default) */
        border-bottom-right-radius: 0; /* Bottom-right corner (default) */
        font-size: 1.7vw;
        background-color: #ACBBD0;
    }

.header-button {
    transition: all 0.3s linear;
    cursor: pointer;
    border-left: 1px solid #FFFFFF;
    border-right: 1px solid #FFFFFF;
    font-weight: 500;
}

    .header-button:hover {
        background-color: rgb(255, 255, 255, 0.6)
    }

header {
    display: block !important;
    /*background-color: #014160;*/
    transition: all 0.5s ease;
    position:fixed;
    top:0;
    z-index:10000;
    width: 100%;
}
    header.hide {
       
    }

    header .image-container {
        overflow:hidden;
        display: flex;
        justify-content: center;
        transition: all 0.3s ease;
        background-color:white;
    }
        header .image-container img {
            transition: all 0.5s ease;
            cursor: pointer;
        }

    header.hide .image-container {
        height: 0; /* Shrinks the container */
        margin: 0; /* Removes any margin when hidden */
        
        padding:0 !important;
    }
        header.hide .image-container img {
            
            opacity: 0; /* Optionally hide the image visually */
        }

        header .button-container {
            display: flex;
            justify-content: center;
        }

.tags {
    display: flex;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in;
    height: 32px;
}

.tag {
    display: flex;
    align-items: center;
    background-color: #014160;
    color: white;
    padding: 10px;
    gap: 8px;
    border-radius: 100px;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.05vw;
}
    .tag:hover {
        background-color: #F79104;
        color: #014160;
    }
        .tag:hover .remove {
            color: #014160;
        }

    .tag .remove {
        transition: all 0.2s ease-in-out;
        cursor: pointer;
        font-weight: bold;
        color: white;
    }

.page-title-container {
    text-align: center;
}

.page-title {
    font-size: 36px; /* Adjust for larger or smaller size */
    font-weight: bold;
    color: #014160; /* Main dark blue */
    margin: 0;
}

.page-subtitle {
    font-size: 18px;
    color: #7a7a7a; /* Neutral gray for subtitle */
}

.page-title-container hr {
    margin: 20px auto;
    width: 50%;
    height: 2px;
    background-color: #ACBBD0; /* Light blue-gray accent */
    border: none;
}


.text-box {
    width: 100%;
    border: 1px solid #ACBBD0;
    border-radius: 8px;
    padding: 10px;
    background-color: #FFFFFF;
    font-size: 14px;
    color: black;
}

    .text-box:focus {
        outline: none;
        border-color: #014160 !important;
        box-shadow: 0 0 5px rgba(1, 65, 96, 0.5) !important;
    }

.page-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    width: 100%;
    -moz-appearance: textfield;
}

    .page-input::-webkit-outer-spin-button,
    .page-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.form-control {
    border: 2px solid #ACBBD0;
}

    .form-control:focus {
        border-color: #014160 !important;
        box-shadow: 0 0 5px rgba(1, 65, 96, 0.5);
    }


.card {
    background-color: white;
    border: 1px solid #ACBBD0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor:pointer;
    overflow-y:auto;
    height:32vh !important;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.2rem;
    color: #014160;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-date {
    font-size: 0.975rem;
    color: #7a7a7a;
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 1.05rem;
    color: #014160;
    font-weight: 500;
}

.home-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 1;
}

.flex-direction-column{
    flex-direction:column;
}

.grow-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}


.home-gallery{
    height:60vh;
}

.home-card:hover {
    transform: scale(1.05);
}

    .home-card:hover .overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }

.home-card > .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    transition: background-color 0.3s ease;
}

    .home-card > .overlay > .title {
        font-size: 18px;
        font-weight: bold;
    }

    .home-card > .overlay > .date {
        font-size: 14px;
        opacity: 0.8;
    }

    .home-card > .overlay > .subtitle {
        font-size: 14px;
    }

.loading-overlay {
    position: relative;
    pointer-events: none; /* Prevent interaction */
    opacity: 0.7; /* Make it look disabled */
}

    /* The overlay */
    .loading-overlay::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 25px;
        height: 25px;
        border: 3px solid rgba(255, 255, 255, 0.6);
        border-top: 3px solid #014160; /* Spinner color */
        border-radius: 50%;
        animation: spin 1s linear infinite;
        transform: translate(-50%, -50%);
    }

/* Spinner animation */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.chart{
    min-height: 400px !important;
    height: 400px !important;
    width: 100%;
    border-radius: 10px;
}

.box{
    min-height: 40vh;
    width: 100%;
}



.swiper-slide {
    display: flex !important;
    justify-content: center !important;
    max-height: 10vh;
    position:relative;
}



    .swiper-slide a {
        max-height: 100% !important;
        max-width: 100% !important;
    }

.swiper-slide img{
    max-height:100%;
    min-width:100%;
    cursor:pointer;
}


.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    text-shadow: 1px 1px 2px black;
    filter: drop-shadow(1px 1px 3px black);
    transition: transform 0.2s ease-in-out;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform:scale(1.1);
}

.disabled {
    pointer-events: none; /* Prevents interaction */
    opacity: 0.5; /* Makes it look faded */
    background-color: #e9ecef; /* Light gray background like disabled inputs */
    color: #6c757d; /* Dimmed text color */
    cursor: not-allowed; /* Show disabled cursor */
}



.fade-out {
    opacity:0;
    transition: opacity 0.3s ease-out
}

.label-classifica{
    font-size: 1.1vw;
    cursor:pointer;
    transition: all 0.2s ease-in-out
}
    .label-classifica:hover {
        color:#F19B37;
        transform: scale(1.05)
    }
.yellow {
    color: #F19B37;
}
input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.menu {
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

.menu-title {
    background-color: #f5f5f5;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: white;
    overflow: hidden;
}

    .menu-list li {
        padding: 10px;
        border-top: 1px solid #eee;
        cursor: pointer;
    }

        .menu-list li:hover {
            background-color: #f0f0f0;
        }

/* Transition animation */
.menu-animation-enter-active, .menu-animation-leave-active {
    transition: max-height 0.3s ease-out, opacity 0.2s;
    overflow: hidden;
}

.menu-animation-enter-from, .menu-animation-leave-to {
    max-height: 0;
    opacity: 0;
}

.menu-animation-enter-to, .menu-animation-leave-from {
    max-height: 200px; /* Adjust based on content */
    opacity: 1;
}

th.gridjs-th {
    background-color: #014160 !important;
    color:white !important;
}

.gridjs-sort {
    filter: brightness(0) invert(1) !important;
}
    .gridjs-sort.gridjs-sort-neutral{
        opacity:0.7;
    }

.fund .title{
    all:unset;
    font-size:4vh;
    letter-spacing: 0.2vw;
}

.fund .icon {
    font-size: 4.8vh;
    color: #014160;
}

.fund .border-bottom {
    border-bottom: 2px solid #ACBBD0 !important;
}

.fund .info {
    width: 100%;
    height: auto;
    background: #FFFFFF;
    border: 1px solid #ACBBD0;
    transition: all 0.18s ease-in-out;
}

    .fund .info::after {
        content: "";
        display:block;
        height: 8px;
        width: 100%;
        background-color: #EFEFEF;
    }

    .fund .info:hover {
        /*border: 1px solid #014160;*/
    }

.fund .sub-title {
    color: #014160;
    font-weight: 500;
    padding-left: 8%;
    padding-top: 4%;
    cursor:default;
}

.fund .text {
    padding-left: 8%;
    padding-bottom: 4%;
}

.fund-selector .selection {
    position:relative !important;
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    text-align: center;
    color: #527199;
    cursor:pointer;
    transition: all 0.2s ease-in-out;
}

.fund-selector .selection i {
    font-size:2.5vh;
}

    .fund-selector .selection.selected span::after {
        content: " ";
        display: block;
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        background-color: #F7F7F7;
        clip-path: polygon(50% 10%, -10% 100%, 110% 100%);
    }

    .fund-selector .selection:hover {
        color: white;
        background-color: #ACBBD0;
    }

    .fund-selector .selection.selected {
        color: white;
        background-color: #527199;
        position:relative !important;
    }

.selection > span {
    font-size: 1.2rem; /* Base size */
}

@media (max-width: 992px) {
    .selection > span {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .selection > span {
        font-size: 0.9rem;
    }
}


.growing-container{
    height:0px;
    overflow:hidden;
    transition: height 0.5s ease-in-out;
    width:100%;
}

.rating-star {
    color: #ddd;
    transition: transform 0.2s ease-in-out;
    font-size: 1.8rem;
    cursor: pointer;
}
    .selectable .rating-star:hover {
        transform: scale(1.3);
    }
    .rating-star.active {
        color: #FCA733;
        transform: scale(1.2);
    }

.switch-container {
    width: 60px;
    height: 30px;
    border-radius: 30px;
    background-color: #bbb; /* Default gray color */
    display: flex;
    align-items: center;
    padding: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

    /* Switch Active (ON) */
    .switch-container.active {
        background-color: #014160;
        box-shadow: 0px 4px 10px rgba(1, 65, 96, 0.4);
    }

/* Switch Handle */
.switch-handle {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 3px;
}

/* Move Handle When Active */
.switch-container.active .switch-handle {
    transform: translateX(30px);
}
.justify-items-center{
    justify-items: center;
}

.noUi-connect {
    background: #014160 !important;
}

.noUi-touch-area{
    cursor:pointer;

}

.gridjs-td{
    background-color:transparent !important
}

.gridjs-tr:hover {
    background-color: #EAEAEA !important;
}
.grid-select {
    cursor: pointer;
    
}
    .grid-select:hover {
        color: #014160 !important;
    }

.gridjs-tr:nth-child(even) {
    background-color: #FAFAFA; /* Light gray */
}

.gridjs-tr:nth-child(odd) {
    background-color: #FFFFFF; /* White */
}

.bg-orange {
    background-color: #FCA733;
}

.filter-container {
    color: #FAFAFA;
    cursor: default;
}
    .filter-container i {
        font-size: 1.25rem;
        align-self: center;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        transform-origin: center;
    }

        .filter-container i.fa-xmark:hover {
            transform: rotate(90deg);
        }

    .filter-container h5 {
        display: flex;
        text-align: center;
        align-items: center;
        align-self: center;
        margin: 0 !important;
        font-weight: 500;
        font-size: 16px;
    }

.noUi-horizontal .noUi-tooltip{
    bottom: unset !important;
    top:105% !important;
}
.gridjs-td {
    white-space: nowrap;
    
}

.ag-header-row {
    background-color: #014160 !important;
    color: white !important;
}

.ag-header-cell{
    border: 1px solid white;
}
.ag-header-group-cell{
    border: 1px solid white;
}

.ag-row:nth-child(even) {
    background-color: #FAFAFA !important;
}

.ag-row:nth-child(odd) {
    background-color: #FFFFFF !important; 
}

.ag-theme-params-1 {
    height: auto !important;
    min-height: 0 !important;
}

.ag-theme-alpine.growing-container {
    overflow-y: hidden !important;
    overflow-x: visible !important;
}

/*.ag-theme-params-1::after {
    content: "";
    display: block;
    height: 30px;
}*/
    .cursor-pointer {
        cursor: pointer;
    }

.light-hover{
    transition: color 0.2s ease-in-out
}

    .light-hover:hover {
        color: #527199;
    }

.fund-selector .button {
    background-color: #527199; /* Background color */
    color: white; /* Text color */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 20px; /* Spacing */
    font-size: 16px; /* Font size */
    display: flex; /* Flexbox for icon and text alignment */
    align-items: center; /* Center vertically */
    gap: 8px; /* Space between icon and text */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth hover effect */
    height: auto;
}

    .fund-selector .button:hover {
        background-color: #012c40; /* Darker shade on hover */
    }
    .fund-selector .button.active {
        background-color: #012c40; /* Darker shade on hover */
    }

.ag-cell-focus {
    border-color: transparent !important;
}

.ag-row-hover:hover {
    background-color: rgba(82, 113, 153, 0.1) !important;
}


.multiselect-dropdown .selected {
    background-color: #014160 !important;
    color: white !important;
}

.multiselect-dropdown label{
    cursor:pointer !important;
}

[v-cloak] {
    display: none;
}

.cursor-default{
    cursor:default;
}

.article-sugg {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
    cursor:pointer;
}

    .article-sugg:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .article-sugg img {
        width: 40%;
        object-fit: cover;
    }

.sugg-content {
    padding: 0.75rem 1rem;
}

    .sugg-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    .sugg-content .date {
        font-size: 0.875rem;
        color: #888;
        margin-bottom: 0.5rem;
    }
    .sugg-content .subtitle {
        font-size: 0.95rem;
        color: #555;
    }

a.text-decoration-none {
    all: unset !important;
    text-decoration: none !important;
    text-underline-offset: unset !important;
    transition: unset !important;
    color: black !important;
    cursor:pointer !important;
}

.grid-link{
    all:unset !important;
}

.banner-side-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-y-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.banner-rotator > a {
    display: none;
}

.banner-rotator[data-position="y"] > a:nth-child(1) {
    display: block;
}

.banner-rotator[data-position="x"] {
    display: inline-block;
    width: 10vh;
    height: 40vw;
    position: relative;
    justify-items: center;
}

.banner-rotator[data-position="y"] {
    height: 10vh;
    width: 40vw;
}

.banner-rotator[data-position="y"] a{
    height:100%
}

.rotated-banner {
    transform: rotate(90deg);
    transform-origin: top left;
    display: block;
    max-width: none;
    max-height: none;
}

.banner-y-wrapper img{
    border-radius: 5px;
    width:100%;
    height:100%;
}

.banner-side-wrapper img {
    border-radius: 5px;
}

.box-text{
    font-weight: 400;
    font-size: 1.5rem;
    color: #FFFFFF;
    letter-spacing: 0px;
}

.ag-theme-alpine {
    --ag-font-family: 'DM Sans', sans-serif !important;
    --ag-header-font-family: 'DM Sans', sans-serif !important;
    --ag-cell-font-family: 'DM Sans', sans-serif !important;
}

.headerbuttonoutline {
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: var(--_colors---colorsecondary);
    border-right-style: solid;
    border-right-width: 1px;
    border-right-color: var(--_colors---colorsecondary);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: var(--_colors---colorsecondary);
    border-left-style: solid;
    border-left-width: 1px;
    border-left-color: var(--_colors---colorsecondary);
    
    -webkit-text-fill-color: inherit;
    background-color: #0000;
    background-clip: padding-box;
    border-radius: 8px;
    padding: 7px 15px;
}

#header a{
    font-weight: 600;
    color: #9EA2AD;
    font-size: 1.1rem;
}

#header .me-2{
    font-size:1.1rem;
}

    #header a.headerbuttonoutline {
        color: var(--_colors---colorsecondary);
        transition: all 0.1s ease-in;
    }

        #header a.headerbuttonoutline:hover {
            color: white;
            background-color: var(--_colors---colorsecondary);
        }



.cfschart-title {
    color: var(--_colors---colorsecondary);
    font-weight: 400;
    font-size: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: #527199 1px solid;
    padding:0;
    margin:0;
}

.cfschart-bottom {
    color: #026CA0;
    font-weight: 400;
    font-size: 0.9rem
}

.grow:hover{
    transition: all 0.3s ease-in-out;
    transform: scale(1.2);
}

#header a.headerbutton {
    background-color: var(--_colors---colorsecondary);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    transition: all 0.1s ease-in;
}

.ag-sort-indicator-icon.ag-sort-order{
    display: none !important;
}

.multiselect-dropdown label{
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: unset;
    font-weight: 100;
}
.arrow-text-container {
    display: flex;
    flex-direction: column;
}

.arrow-subtext {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #595C69;
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #333333;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

    .footer-link:hover {
        color: #026CA0;
        text-decoration: underline;
    }

.footer-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #026CA0; /* Colore istituzionale di CFS Rating */
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.w--current {
    color: #026CA0 !important;
    font-weight: bold;
}

.text-align-center{
    text-align: center;
}

.offcanvas .dropdown-menu {
    z-index: 1051; /* higher than default offcanvas (1050) */
}

.autocomplete-container {
    position: relative;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 52%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

    .clear-btn:hover {
        /*color: #FF6364;*/

        color: #F79104;
    }

.card{
    height:100% !important;
}

@media (max-width: 1200px) {
    .mt-xl-down-5 {
        margin-top: 3rem !important; /* equivalent to mt-5 */
    }
}

.loading-autocomplete {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* or higher, depending on your design */
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading-spinner {
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-top: 3px solid #014160;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.ag-theme-alpine {
    width: 100% !important;
    overflow-x: auto !important;
}

/* Default: ≥1200px → 8rem */
.responsive-grid-wrapper {
    padding-left: 3rem;
    padding-right: 3rem;
    margin-left: 3rem;
    margin-right: 3rem;
}

/* Between 993px and 1199.98px → 6rem */
@media (max-width: 1199.98px) and (min-width: 993px) {
    .responsive-grid-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

/* ≤992px → 1.5rem */
@media (max-width: 992px) {
    .responsive-grid-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* ≤576px → 0.5rem */
@media (max-width: 576px) {
    .responsive-grid-wrapper {
        padding-left: 0rem;
        padding-right: 0rem;
        margin-left: 0rem;
        margin-right: 0rem;
    }
}

@media (max-width: 768px) {
    .ag-paging-panel {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

        .ag-paging-panel .ag-paging-page-summary-panel,
        .ag-paging-panel .ag-paging-button {
            flex: 1 1 auto;
            width: 100%;
            text-align: center;
        }
}

.ag-root-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .ag-paging-page-size {
        display: none;
    }
}

.legend-item{
    cursor: pointer;
}

.article-image{
    cursor: pointer;
}

.manager-entry {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Make the image smaller, consistent size */
.manager-image {
    width: 200px; /* fixed width */
    height: 200px; /* fixed height */
    object-fit: cover; /* maintain aspect ratio and fill */
    border-radius: 8px;
}

/* Reduce text size slightly for better balance */
.manager-text {
    font-size: 0.95rem;
    color: #333333;
}

    .manager-text strong {
        color: #003366;
    }

    .manager-text p {
        margin-top: 10px;
        line-height: 1.5;
    }

@media (max-width: 768px) {
    .manager-image {
        width: 120px;
        height: 120px;
        margin-bottom:1.8rem;
    }

    .manager-text {
        font-size: 0.9rem;
    }
}

/* Apply a max-width, centering, and spacing like an article */
.container-style {
    max-width: 800px;
    margin: 0 auto; /* center the container */
    padding: 1rem 2rem; /* top/bottom and side padding */
}

/* Optional: Style elements inside the rich text */
.profile-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

.profile-content h2,
.profile-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.profile-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.profile-content strong {
    color: #003366;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-style {
        padding: 1rem;
    }

    .profile-content p {
        font-size: 0.95rem;
    }
}

.profile-content hr {
    margin: 2rem 0;
    border-top: 1px solid #ccc;
}
.responsive-content-wrapper {
    max-width: 1140px; /* Similar to Bootstrap's container-lg */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    .responsive-content-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.responsive-content-wrapper-xl {
    max-width: 1520px; /* Larger than container-lg */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 768px) {
    .responsive-content-wrapper-xl {
        padding-left: 0rem;
        padding-right: 0rem;
    }
}

.page-title-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.header-dropdown span {
    color: #9EA2AD !important;
    font-weight: 600;
}

#header .headerbutton{
    font-weight: 500;
}

#header .headerbuttonoutline{
    font-weight: 500;
}

@media (max-width: 768px) {
    /* Font size aumentato per le voci dei dropdown */
    .mobile-dropdown-item {
        font-size: 1.2rem !important; /* aumenta il testo */
        padding: 0.75rem 1rem !important;
    }

    /* Bottoni ingranditi */
    .mobile-header-button {
        font-size: 1.2rem !important;
        padding: 0.6rem 1.4rem !important;
    }

    .ag-theme-alpine.growing-container {
        overflow-y: hidden !important;
        overflow-x: visible !important;
    }

        .ag-theme-alpine.growing-container::after {
            content: "";
            display: block;
            height: 300px;
        }
    .ag-paging-page-size{
        display:none;
    }
    .ag-paging-row-summary-panel{
        display:none;
    }
}

.cfsgrid-card-img {
    filter: brightness(0) invert(1) contrast(1.2);
}
.section.my-connect .cfsgrid-title {
    color: #FFFFFF;
}

.section.my-connect .cfsgrid-card-text {
    color: #FFFFFF;
}

.section.my-connect .button {
    background-color: #F79104;
    color: #014160;
    font-weight: 500;
}

.section.my-connect h2 {
    color: #FFFFFF;
}

.section.my-connect p {
    color: #E2E2E2;
}

.section.my-connect h4 {
    color: #FFFFFF;
}

.section.my-connect .w-layout-blockcontainer.container.cfscontainer.w-container {
    margin-bottom: 0px;
    background-color: #014160;
    padding-bottom: 1.5rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding-top: 0.9rem;
}

.section.my-connect .w-layout-layout.gridcfs.wf-layout-layout {
    background-color: #014160;
    margin-top: -1px;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding-bottom: 2rem;
}

.section.my-connect .w-layout-blockcontainer.container.cfscontainer.w-container,
.section.my-connect .w-layout-layout.gridcfs.wf-layout-layout {
    padding-left: 2rem;
    padding-right: 2rem;
}

.section.my-connect{
    grid-row-gap: 0px;
}

#header .fa.fa-bars.fs-4{
    font-size: 35px !important;
}

.header-dropdown .fa-chevron-down{
    font-size: 15px;
}

@media screen and (max-width: 768px) {
    .header-dropdown .fa-chevron-down {
        font-size: 25px;
    }
}

.ag-paging-button{
   width:auto !important;
}

.ag-paging-page-summary-panel{
    justify-content: center;
}

/* Common base style for all cards */
.fund .card {
    border: 1px solid #D3D5D8;
    border-bottom: 4px solid #D3D5D8;
    padding: 1rem;
    white-space: normal;
    word-break: break-word;
    flex: 0 1 auto;
    height: auto;
    cursor: default;
}

    /* Title inside the card */
    .fund .card .card-title {
        color: #014160;
        font-weight: bold;
        margin: 0;
    }

    /* Content inside the card */
    .fund .card .card-content {
        color: #5f5f5f; /* same as border */
        margin: 0.9rem 0 0 0;
        font-weight: 500;
        width: auto;
    }

    .fund .card .card-content span {
        cursor: text;
        width: fit-content;
    }
        .fund .card .card-content p {
            cursor: text;
            width: fit-content;
        }


    /* Version 1: fit content width (default) */
    .fund .card.fit-content {
        flex: 0 1 auto; /* do not grow */
    }

    /* Version 2: expand mode — cards share row space */
    .fund .card.full-width {
        flex: 1 1 0; /* grow and shrink equally */
    }

.breadcrumb-wrapper {
    flex-direction: row;
}

@media (max-width: 768px) {
    .breadcrumb-wrapper {
        flex-direction: column;
    }

    .breadcrumb-arrow {
        margin: 0.5rem 0;
    }
}

.card-title span {
    margin-left: 0.35rem;
    font-size: 0.8rem;
    font-weight: 350;
    color: #014160;
}

.card-content .ranking {
    color: #014160;
}

    .card-content .ranking strong {
        margin-left: 0.35rem;
    }

.performance-big {
    font-size: 1.5rem;
    font-weight: 500;
    margin-right: 1.5rem; 
}

.ranking {
    font-size: 1rem; 
    font-weight: 500;
}

.fund .subtitle-icon {
    font-size: 1.5rem; /* adjust size to your taste */
    color: #014160; /* same as card title for brand consistency */
}

.fund .subtitle-text {
    font-size: 1.75rem; /* a bit bigger, but not too big */
    font-weight: 600;
    color: #014160; /* same as card title for coherence */
    margin: 0; /* reset default */
}

    .fund .subtitle-text i {
        font-size: 1.1rem;
    }

.data-info {
    font-size: 0.9rem; /* small text */
    color: #5f5f5f; /* match card content color */
    margin: 0;
}

    .data-info .data-date {
        font-weight: 600; /* slightly bolder for date */
        margin-left: 0.35rem;
    }

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-text {
    font-size: 0.9rem;
    color: #5f5f5f;
}

.leaderboard {
    font-family: 'DM Sans', sans-serif;
}

.leaderboard-value {
    font-size: 0.7rem;
    font-weight: 100;
}

.leaderboard-stack {
    display: flex;
    flex-direction: column; /* best = top */
    align-items: center;
    gap: 6px;
}

.leaderboard-rect {
    width: 100%; /* wider rectangle */
    height: 20px; /* not a square */
    background-color: #D3D5D8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rect-text {
    font-size: 0.81rem;
}

@media (max-width: 768px) {
    .rect-text {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .rect-text {
        font-size: 8px;
    }
}

    .leaderboard-rect.active {
        background-color: #014160; /* highlight color */
        color: white; /* text in white */
    }

.leaderboard-year {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.fund .subtitle {
    font-size: 1.3rem;
    color: #014160; 
}

    .fund .subtitle p {
        font-size: 0.8rem;
        color: #868b95;
    }

.fund .leaderboard-value {
    font-size: 0.9rem;
    font-weight: 600;
}

.srri-rect {
    width: 100%; /* adjust as needed */
    height: 32px; /* square box */
    border: 1px solid #D3D5D8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: white;
}

    .srri-rect.active {
        background-color: #014160; /* your highlight color */
        color: #fff;
    }

.tippy-box[data-theme~='cfs'] {
    background-color: white;
    color: #333;
    border: 1px solid #014160;
    font-size: 0.8rem;
    padding: 8px;
}

.tippy-box[data-theme~='cfs'] {
    background: white;
    border: 1px solid #014160;
}

    .tippy-box[data-theme~='cfs'] svg path {
        fill: white;
        stroke: #014160;
        stroke-width: 1px;
    }

    /* Flip for top placement */
    .tippy-box[data-theme~='cfs'][data-placement^='top'] svg {
        transform: rotate(180deg);
    }

.cost-bar-bg {
    position: relative;
    width: 100%;
    height: 30px;
    background-color: #D3D5D8;
    border-radius: 4px;
    overflow: hidden;
}

.cost-bar-fill {
    height: 100%;
    background-color: #014160;
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 600;
}

.cost-label-in-bar {
    font-weight:400;
}

.legend-text {
    font-size: 0.8rem;
    color: #5f5f5f;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.fund .rating-star {
    color: #D3D5D8; /* Inactive color */
    font-size: 1.2rem;
    cursor: default;
}

    .fund .rating-star.active {
        color: #FCA733;
    }

/* Common header style */
.modal-content .modal-header {
    color: #fff; /* Make title text white */
}

.modal-header .modal-title{
    font-size: 1.2rem;
    font-weight: 400;
}

/* Variant: danger (red header) */
.modal-danger .modal-header {
    background-color: #dc3545; /* Bootstrap red */
}

/* Variant: success (green header) */
.modal-success .modal-header {
    background-color: #198754; /* Bootstrap green */
}

/* Variant: info (custom default blue header) */
.modal-info .modal-header {
    background-color: #014160; /* your custom default blue */
}

/* Force the top-right close X to always be white */
.modal-content .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 1;
}

.modal-content .btn-close {
    background-color: transparent; /* remove default grey */
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-content img {
    display: block; /* ensures block-level so margin auto works */
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* still responsive */
    height: auto;
}

/* Apply to only cards that have this marker class */
.fund .info-card {
    position: relative; 
    cursor: pointer; 
}

    /* Add the Font Awesome info icon */
    .info-card::after {
        content: "\f05a"; /* Unicode for fa-circle-info */
        font-family: "Font Awesome 6 Free";
        font-weight: 900; /* solid style */
        position: absolute;
        bottom: 5px; 
        right: 5px; 
        font-size: 1.5rem;
        color: #014160; 
        pointer-events: none; 
    }

.fund .subtitle i{
    font-size:1.1rem;
}

/* ===== NUOVA CLASSE ARTICLE-PREVIEW ===== */
/* Classe specifica per le anteprime articoli (alternativa alla classe .card) */
.article-preview {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

    .article-preview:hover {
        transform: translateY(-2px);
    }

    .article-preview img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 16px;
    }

.article-preview .card-title {
    font-size: 1.2rem;
    color: #014160;
    margin-bottom: 10px;
    font-weight: 500;
    margin: 0;
    transition: 0.2s ease-in-out;
}

    .article-preview .card-subtitle {
        font-size: 1.05rem;
        font-weight: 500;
        color: #000000
    }

    .article-preview .card-date {
        font-size: 0.975rem;
        color: #7a7a7a;
        margin-bottom: 10px;
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .article-preview:hover .card-title {
        color: #026CA0;
    }

.noUi-value{
    margin-top: 0.3rem;
}

.autocomplete-container .text-box{
    padding-right: 1.5rem;
}

#disclaimers .modal-header {
    background-color: #F7F7F7;
    color: #014160
}

#disclaimers .modal-body {
    background-color: #F7F7F7;
    border-radius: 5px;
}

#disclaimers .btn-primary {
    background-color: #FFFFFF;
    color: black;
    border: 1px solid black;
}
    #disclaimers .btn-primary:hover {
        background-color: #F7F7F7;
    }

    #disclaimers h5{
        font-size: 1.6rem;
    }

#disclaimers p {
    font-size: 1.1rem;
}

#disclaimers .btn{
    font-size: 1.1rem;
}

.modal .btn-secondary {
    background-color: #014160
}

    #disclaimers .btn-secondary:hover {
        background-color: #026CA0
    }

#disclaimers .btn-dark {
    background-color: #FFAA1D
}
    #disclaimers .btn-dark:hover {
        background-color: #FFBB4D; /* lighter version */
    }

.toast-disabled {
    pointer-events: none !important;
    opacity: 0.6;
}

.profile-content td{
    vertical-align: top;
}

h2.label{
    font-size: 1.6rem;
}

.fund-selector .subtitle-text i {
    color: #014160;
}

#header img{
    max-height:51px;
}

#header {
    padding: 24px 16px;
}

/* Seleziona i tuoi radio */
input[type="radio"]:checked {
    background-color: #527199; 
    border-color: #527199;
}

input[type="radio"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(82, 113, 153, 0.25);
}

.list-unstyled i {
    color: #527199;
}

.iti__country-list{
    border-radius: 10px;
}

.iti.iti--allow-dropdown{
    width: 100%;
}

.form-check-label {
    font-weight: 500;
}

.ag-body {
    cursor: pointer;
}

.under-group-header .ag-header-cell-label {
    justify-content: center;
}

.ag-picker-field-wrapper.ag-picker-has-focus,
.ag-picker-field-wrapper:focus-within {
    border-color: #014160 !important;
    box-shadow: 0 0 4px 2px rgba(1, 65, 96, 0.3) !important;
}

.modal-footer .btn-danger {
    background-color: #F79104;
}

    .modal-footer .btn-danger:hover,
    .modal-footer .btn-danger:focus,
    .modal-footer .btn-danger:active {
        background-color: #db8103; /* Darker orange */
    }

.ag-header-group-cell.text-center > .ag-header-cell-comp-wrapper {
    justify-content: center;
}

i.info-tippy {
    color: #014160;
}

.flatpickr-day.selected {
    background-color: #014160 !important;
    border-color: white !important;
}

.dropdown-menu.dropdown-menu-end.show .dropdown-item.d-flex.align-items-center {
    font-weight: 500 !important;
}

nav a.nav-link:not(.w--current):hover {
    color: rgb(97, 148, 171) !important;
}

nav span:not(.w--current):hover {
    color: rgb(97, 148, 171) !important;
}

#languageDropdown:hover {
    color: rgb(97, 148, 171) !important;
}

#cookieToast {
    width: 75%;
    min-width: 280px;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 992px) {
    #cookieToast {
        width: 50%;
    }
}

.toast-body strong{
    font-size: 1.2rem;
    font-weight: 500;
}

.form-check-input{
    cursor: pointer;
}

.toast-body a:hover{

}