﻿

.cfsconnect-section .accodion-text {
    color: #F8F8F8;
}

.cfsconnect-section .accordion-toggle .accordion-title {
    color: #FFFFFF;
}

.cfsconnect-section .accordion-icon {
    color: #FFFFFF;
}

.cfsconnect-section .accordion-toggle.w--open .accordion-icon {
    color: #FCA733;
}

.cfsconnect-section .accordion-toggle.w--open .accordion-title {
    color: #FCA733;
}

.cfsconnect-section .accordion-icon {
    transition: color 1s ease;
}

.cfsconnect-section .accordion-title {
    transition: color 1s ease;
}

.text-align-center {
    text-align: center;
}

.dropdown-menu {
    width: max-content;
    min-width: 100%; /* fallback: at least as wide as the toggle button */
}

.carousel-subtitle {
    color: #333333;
}

.carousel-age {
    color: var(--_colors---colorsecondary);
    font-size: 30px;
}



.service-card img {
    height: 200px;
    object-fit: cover;
}



.carousel-next {
    display: inline-block;
    margin-top: 1rem;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 3.5rem;
    color: #333;
    background: linear-gradient( 90deg, #333 0%, #333 40%, #026CA0 50%, #333 60%, #333 100% );
    background-size: 300% 100%;
    background-position: 130% 0%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-text 2.5s linear infinite;
}

    .carousel-next:hover {
        color: #026CA0;
        background: none;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
        transition: color 0.2s ease;
    }

@keyframes glow-text {
    0% {
        background-position: 130% 0%;
    }

    100% {
        background-position: -30% 0%;
    }
}

.carousel-prev {
    display: inline-block;
    margin-top: 1rem;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 3.5rem;
    color: #333;
    background: linear-gradient( 90deg, #333 0%, #333 40%, #026CA0 50%, #333 60%, #333 100% );
    background-size: 300% 100%;
    background-position: 130% 0%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow-text-prev 2.5s linear infinite;
}

    .carousel-prev:hover {
        color: #026CA0;
        background: none;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
        transition: color 0.2s ease;
    }

@keyframes glow-text-prev {
    0% {
        background-position: -30% 0%;
    }

    100% {
        background-position: 130% 0%;
    }
}

.carousel-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.thin-icon {
    color: transparent; /* nasconde il riempimento */
    -webkit-text-stroke: 2px #777777; /* crea il contorno */
    font-size: 2.5rem; /* dimensione a piacere */
    display: inline-block;
    transition: -webkit-text-stroke 0.3s, color 0.3s;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.w-nav-menu {
    display: flex !important; /* o inline-flex, grid, etc. */
    transform: none !important;
    opacity: 1 !important;
    position: static !important;
}

.w-nav-button {
    display: none !important;
}

@media (max-width: 768px) {
    .carousel-next {
        font-size: 2rem; /* or any smaller value you prefer */
    }
    .carousel-prev {
        font-size: 2rem;
    }
}

.cfsconnect-section {
    width: 100%;
    margin-top: 2rem;
}

.cfsconnect-container {
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* Left column */
.cfsconnect-left {
    flex: 1 1 50%;
    max-width: 40%;
}

.left-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit:fill;
    height:100%;
}

/* Right column */
.cfsconnect-right {
    flex: 1;
    background-image: url('/assets/images/right-connect.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 3rem;
    position: relative;
}

.content-overlay {
    color: white;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
}

/* Titles & text */
.cfstitle {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cfstext {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Keep accordion style from Webflow */
.accordion-item {
    margin-bottom: 1rem;
}

.accordion-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-content {
    padding-top: 0.5rem;
    /*color: #ddd;*/
    font-size: 0.95rem;
}


/* Responsive */
@media (max-width: 1300px) {
    .cfsconnect-container {
        flex-direction: column;
    }

    .cfsconnect-left {
        display: none;
    }

    .cfsconnect-right {
        width: 100%;
        padding: 2rem;
    }

    .content-overlay {
        max-width: 100%;
    }

    .cfstitle {
        font-size: 1.6rem;
    }
    .cfsconnect-right .accordion-title {
        white-space: normal !important;
        margin-right: 1.2rem;
    }
}

#footer a {
    text-decoration: unset;
    background-color: unset;
}

#footer li {
    list-style-type: none;
}

.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;
}

.slider-article-card {
    display: flex;
    flex-direction: column;
    width: 100%; /* important to respect flex-basis */
    height: 100%;
}

.article-image-wrapper {
    width: 100%;
    height: auto; /* Or define a ratio if needed */
    flex-shrink: 0;
}

.article-image {
    width: 100%;
    height: auto; /* Keeps aspect ratio */
    display: block;
    object-fit: cover; /* Optional: crop image nicely */
}
.article-image {
    max-width: 100%;
    height: auto !important;
}

@media screen and (max-width: 479px) {
    h2 {
        font-size: 34px;
    }
}

@media screen and (min-width: 1020px) {
    .herotitle {
        white-space: nowrap;
    }
}

/* Container: same as .container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Row: flex with wrap, like Bootstrap .row */
.row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

/* Columns: spacing inside .row */
[class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    box-sizing: border-box;
}

/* Specific col rules for your footer */

/* Mobile: col-12 and col-6 work naturally because flex-basis 100% or 50% */
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Desktop: simulate col-md-4 and col-md-auto */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .col-md-2 {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }

    .col-md-auto {
        flex: 0 0 auto;
        width: auto;
    }
}

/* Alignment utilities */
.text-center {
    text-align: center;
}

@media (min-width: 768px) {
    .text-md-start {
        text-align: left;
    }
}

/* Margin utilities */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-md-0 {
    margin-bottom: 0;
}

.mt-3 {
    margin-top: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-md-0 {
    margin-left: 0;
    margin-right: 0;
}

.pt-5 {
    padding-top: 3rem;
}

.pb-4 {
    padding-bottom: 1.5rem;
}

.my-4 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Footer styles */
.footer-section {
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.footer-heading {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.footer-link {
    display: block;
    white-space: nowrap;
    text-decoration: none;
    margin: 0.25rem 0;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

hr {
    border: none;
    border-top: 1px solid #D3D5D8;
}

.small {
    font-size: 0.85rem;
}

.text-muted {
    color: #6c757d;
}

.text-align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#valori-sec a {
    all: unset;
    color: #014160;
    cursor: pointer !important;
}

    #valori-sec a:hover {
        all: unset;
        color: #026CA0;
    }

.marquee-content a {
    all: unset;
    display: inline-block;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.marquee-content a:hover{
    transform: scale(1.1);
}

    .marquee-content a .marquee-item,
    .marquee-content .marquee-item {
        width: auto !important;
        height: auto !important;
        max-height: 200px !important;
        max-width: 320px !important;
        display: inline-block !important;
        vertical-align: middle !important;
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }


.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 */
    }


#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: 2rem;
}

#disclaimers p {
    font-size: 1.3rem;
}

#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 */
    }