/* ------------ GOOGLE FONTS ------------ */
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:wght@500&display=swap');







/* ------------ CUSTOM PROPERTIES ------------ */
:root {
    /* FONT */
    --fontPlayfair: 'Playfair Display', sans-serif;
    --fontMontserrat: 'Montserrat', sans-serif;

    /* COLORS */
    --White: #F6F6F9;
    --Black: #0c0c0c;
    --PrimaryColor: #fffff0;
    /*#2a5a38;*/
    --SecondaryColor: #6d071a;
    /*#391b0f;*/
    --TertiaryColor: #e4d191;
}

/* ------------ ASSEGNAZIONE FONTS E COLORI------------ */

/*classe css di debug per vedere contorno degli elementi*/
/** {
    outline: 1px solid red;
    overflow-x: hidden;
}*/



/* ------------ ASSEGNAZIONE FONTS E DIMENSIONI CARATTERI ------------ */

html {
    font-family: var(--fontMontserrat), sans-serif;
}

/* Titoli e intestazioni */
h1 {
    font-family: var(--fontPlayfair), sans-serif;
    color: var(--SecondaryColor);
    font-size: clamp(2.2rem, 2.5vw + 1.5rem, 3rem);
    letter-spacing: 0.1rem;
}

h2 {
    font-family: var(--fontPlayfair), sans-serif;
    color: var(--PrimaryColor);
    font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    letter-spacing: 0.075rem;
}

h3 {
    font-family: var(--fontPlayfair), sans-serif;
    color: var(--PrimaryColor);
    font-size: clamp(1.5rem, 1.5vw + 0.75rem, 2rem);
    letter-spacing: 0.05rem;
}

h4 {
    font-family: var(--fontPlayfair), sans-serif;
    color: var(--PrimaryColor);
    font-size: clamp(1.25rem, 1vw + 0.75rem, 1.75rem);
    letter-spacing: 0.025rem;
}

h5 {
    font-family: var(--fontPlayfair), sans-serif;
    color: var(--PrimaryColor);
    font-size: clamp(1rem, 0.75vw + 0.75rem, 1.5rem);
    letter-spacing: 0.01rem;
    font-weight: normal;
}

/* Testo normale */
p {
    font-family: var(--fontMontserrat), sans-serif;
    font-size: clamp(1rem, 0.5vw + 0.75rem, 1.25rem);
    letter-spacing: 0.00875rem;
    line-height: 1.6;
}

li {
    /*font-family: var(--fontMontserrat), sans-serif;*/
    font-size: clamp(1rem, 0.5vw + 0.75rem, 1.25rem);
    line-height: 1.5;
    color: var(--PrimaryColor);
}

a {
    /*font-family: var(--fontMontserrat), sans-serif;*/
    font-size: clamp(1rem, 0.5vw + 0.75rem, 1.25rem);
    color: var(--PrimaryColor);
}






h2.montserrat {
    font-family: var(--fontMontserrat), sans-serif;
    font-weight: bold;
}

p.black {
    color: black;
}

li.colored {
    color: var(--SecondaryColor);
}

li.black {
    color: black;
}

b.colored {
    color: var(--SecondaryColor);
}

.secondaryColor {
    color: var(--SecondaryColor);
}

.bg-secondaryColor {
    background-color: var(--SecondaryColor);
}

.montserrat {
    font-family: var(--fontMontserrat), sans-serif;
}

.bold {
    font-weight: bold;
}

.reduced-text {
    font-size: 0.85rem;
}






/* ==========================================================================
   SISTEMA DI TITOLI STANDARDIZZATO
   ========================================================================== */

/* Titolo principale della pagina - usato nell'intestazione */
.ewp-page-title {
    color: var(--SecondaryColor);
    font-weight: bold;
    font-family: var(--fontPlayfair), sans-serif;
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
}

/* Titolo di sezione - usato per intestare le principali sezioni della pagina */
.ewp-section-title {
    color: var(--SecondaryColor);
    font-weight: bold;
    font-family: var(--fontPlayfair), sans-serif;
    margin-bottom: 1.5rem;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

/* Titolo di sottosezione - usato per elementi all'interno di una sezione principale */
.ewp-subtitle {
    color: var(--SecondaryColor);
    font-weight: 600;
    font-family: var(--fontPlayfair), sans-serif;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 2vw, 1.75rem);
}

/* Variante del titolo con font Montserrat */
.ewp-title-montserrat {
    font-family: var(--fontMontserrat), sans-serif;
}

/* Variante del titolo centrato */
.ewp-title-center {
    text-align: center;
}

/* Titolo della card */
.ewp-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--SecondaryColor);
    text-align: center;
}

/* Titolo con sfondo colorato (ad esempio per sezioni con sfondo --TertiaryColor) */
.ewp-title-light {
    color: var(--White);
}





/* ------------ Navbar ------------ */
.navbar {
    background-color: var(--PrimaryColor);
    box-shadow: none;
    /* Rimossa l'ombra a inizio pagina per un look più pulito e integrato */
    max-width: 100%;
    min-height: 80px;
    margin: 0;
    /* Rimossa l'impostazione "sospesa" */
    border-radius: 0;
    /* Rimossi i bordi arrotondati */
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

/* Attivata via JS allo scroll */
.navbar.navbar-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Aggiunta ombra morbida allo scorrimento */
    background-color: rgba(255, 255, 240, 0.97);
    /* Leggermente opaco per un effetto vetro discreto */
}

.navbar-brand {
    font-family: var(--fontMontserrat), sans-serif;
    /*font-size: 26px;*/
    font-size: clamp(1rem, 1.5vw + 0.75rem, 1.7rem);
    font-weight: 700;
    color: var(--SecondaryColor);
    transition: 0.3s color;
}

/* classe non usata, inserire per login button */
.login-button {
    background-color: var(--SecondaryColor);
    color: var(--White);
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s background-color;
}

/* classe non usata, inserire per login button */
.login-button:hover {
    background-color: var(--PrimaryColor);
}

.navbar-toggler {
    border: none;
    font-size: 1.25rem;
}

.navbar-toggler:focus,
.btn-close:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    font-size: clamp(0.9rem, 0.9vw + 0.2rem, 1.1rem);
    color: #666777;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0.5rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--Black);
}

.offcanvas-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--SecondaryColor);
}

@media (min-width: 991px) {
    .nav-link:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: var(--PrimaryColor);
        
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        background-color: var(--SecondaryColor);
        visibility: visible;
        width: 100%;
    }
}


/* Dropdown Menu Styles */
.dropdown-menu {
    background-color: var(--White);
}

.dropdown-item {
    color: var(--SecondaryColor);
}

.dropdown-item:hover {
    background-color: var(--SecondaryColor);
    color: var(--White);
}






/* ------------ HEADER ------------ */
#brand_name {
    text-align: center;
    z-index: 1;
}

#brand_spot {
    text-align: center;
    z-index: 1;
}

#logo {
    position: relative;
    display: block;
    margin-top: 10%;
    margin-bottom: 0;
    margin-inline: auto;
}

@media (max-width: 992px) {
    .EWP-logo-container {
        margin-top: 1.75rem;
    }
}


.custom-logo {
    width: clamp(200px, 35vw, 800px);
    /* Min 330px, 35vw preferito per desktop, max 650px */
    max-width: 100%;
    /* Impedisce che l'immagine superi il contenitore */
    height: auto;
    /* Mantiene il rapporto d'aspetto */
    border-radius: 24px;
    /* Angoli arrotondati */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    
}

/* ------------ HEADER PARALLAX ------------ */
/*Solo nella Homepage del sito si ha un effetto parallasse, con una Hero più ampia che comprende anche uno slogan e una CTA*/

#header_parallax {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#header_parallax img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

#header_parallax #logo {
    position: relative;
    max-width: 8em;
    max-height: 8em;
    z-index: 1;
    display: block;
    margin: 0;
}

#header_parallax #brand_name {
    position: relative;
    text-align: center;
}

#header_parallax #brand_spot {
    position: relative;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    /* Ombra potenziata */
}



/* ----------- CARD Servizi + BUTTON ------------ */
.service-card {
    width: auto;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.service-card .img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Media query per far sì che all'hover da desktop le card dei servizi a cui è applicata la classe serviceCard-grow si ingrandiscano*/
@media(hover: hover) and (pointer: fine) and (min-width: 1385px) {
    .serviceCard-grow:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .serviceCard-grow:hover .img {
        transform: scale(1.1);
    }
}

.card_background_trat {
    /*background-color: rgba(0, 0, 0, 0.15);*/
    /* Nero trasparente al 15% */
    background-color: var(--SecondaryColor);
    /*per modificare il colore di sfondo della card*/
    opacity: 0.8;
    /* Aggiunta opacità per visualizzare l'immagine con blend */
    mix-blend-mode: multiply;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 5px;
}



.button-card {
    background-color: rgba(255, 255, 255, 0.6);
    /* Nero trasparente al 60% */
    color: var(--SecondaryColor);
    /*white;*/
    /* Colore del testo bianco */
    border: none;
    /* Rimuove il bordo predefinito */
    padding: 15px 32px;
    /* Spazio intorno al testo */
    text-align: center;
    /* Allinea il testo al centro */
    text-decoration: none;
    /* Rimuove il sottolineato */
    display: inline-block;
    font-size: 18px;
    
    border-radius: 25px;
    /* Angoli arrotondati */
}

.button-card:hover {
    background-color: var(--TertiaryColor);
}

.button-card:hover::before,
.button-card:hover::after {
    content: '';
    /* Contenuto vuoto per rendere gli pseudo-elementi visibili */
    background-color: var(--PrimaryColor);
    /* Altre proprietà CSS a piacere per personalizzare gli pseudo-elementi */
}

.button-card:active {
    background-color: var(--PrimaryColor);
}


/* ------------ Sezione Perchè sceglierci index.html ------------ */
.why-choose-us {
    /*background-color: #f9f9f9;*/
    background-color: var(--TertiaryColor);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: url('../images/bg_img.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    display: flex;
    justify-content: center;
}

.feature-icon-bg {
    width: 80px;
    height: 80px;
    background-color: var(--SecondaryColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-bg i {
    color: #ffffff;
    font-size: 36px;
}

.feature-card h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--SecondaryColor);
}

.feature-card p {
    margin-bottom: 20px;
    color: #333;
}

.feature-list {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #444;
    font-family: var(--fontMontserrat), sans-serif;
    font-size: 14px;
}

.feature-list li::before {
    content: "\F633";
    /* Bootstrap icons check-circle */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var(--SecondaryColor);
}

/* Stili per statistiche */
.stats-row {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px 15px;
    margin-top: 70px;
}

.stats-title {
    margin-bottom: 30px;
    font-weight: 600;
}

.stat-item {
    padding: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--SecondaryColor);
    margin-bottom: 5px;
    font-family: var(--fontMontserrat), sans-serif;
}

.stat-text {
    font-size: 16px;
    color: #666;
    font-family: var(--fontMontserrat), sans-serif;
}

/* Call to action button */
.btn-cta {
    background-color: var(--SecondaryColor);
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--SecondaryColor);
    margin-top: 20px;
    font-family: var(--fontMontserrat), sans-serif;
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--SecondaryColor);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .why-choose-us {
        padding: 50px 0;
    }

    .why-choose-us::before {
        width: 0;
    }

    .feature-card {
        margin-bottom: 20px;
    }

    .stats-row {
        padding: 20px 10px;
    }

    .stat-item {
        padding: 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-text {
        font-size: 14px;
    }
}









/* ------------ Classi Sezione standard immagine-testo ------------ */
.ewp-image-text-section {
    padding: 5rem 0;
}

.ewp-image-text-section .section-title {
    color: var(--SecondaryColor);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.ewp-image-text-section .section-title-white {
    color: var(--PrimaryColor);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.ewp-image-text-section .section-image {
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ewp-image-text-section .image-container {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ewp-image-text-section .content-container {
    padding: 1.5rem;
}

.ewp-image-text-section p {
    /*font-size: 1.1rem;*/
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ewp-image-text-section ul {
    margin-top: 1.5rem;
    padding-left: 1.2rem;
}

.ewp-image-text-section ul li {
    margin-bottom: 0.5rem;
    /* font-size: 1.1rem;*/
}

/* Per controllare l'ordine delle colonne su dispositivi mobili */
@media (max-width: 767.98px) {
    .ewp-image-text-section .order-md-first {
        order: -1;
    }

    .ewp-image-text-section .image-container {
        margin-bottom: 2rem;
    }
}






/* Stili per la sezione Contatti nella pagina Chi Siamo */
.contact-international-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.contact-international-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-image: url('../images/bg_img.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

/* Stili per le informazioni di contatto */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background-color: var(--SecondaryColor);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-text {
    flex-grow: 1;
}

.contact-text h5 {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--SecondaryColor);
}

.contact-text p {
    margin-bottom: 0;
    color: #555;
}

.contact-text a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--SecondaryColor);
}

/* Media queries per responsività */
@media (max-width: 991.98px) {
    .contact-info-item {
        padding: 15px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    .contact-international-section {
        padding: 50px 0;
    }

    .contact-info-item {
        padding: 12px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 1.1rem;
    }

    .contact-text h5 {
        font-size: 1rem;
    }

    .contact-text p {
        font-size: 0.9rem;
    }
}









/* ------------ Stili di base per la timeline pagina RIsk_Management.html ------------ */
.timeline-dot {
    width: 20px;
    height: 20px;
    /*background-color: var(--SecondaryColor);*/
    background-color: #6C757D;
    border-radius: 50%;
    z-index: 1;
    position: absolute;
}

/* Per mobile: pallini centrati */
@media (max-width: 767.98px) {

    .timeline-dot-left,
    .timeline-dot-right {
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
    }
}

/* Per desktop: pallini posizionati sulla linea centrale */
@media (min-width: 768px) {
    .timeline-dot-left {
        right: -10px;
        top: 20px;
    }

    .timeline-dot-right {
        left: -10px;
        top: 20px;
    }
}

/* Assicura che le card siano distanziate correttamente sul mobile */
@media (max-width: 767.98px) {
    .timeline-card {
        margin-top: 20px;
        margin-bottom: 40px;
    }
}


/* ------------ Stili di base la pagina Private_Wealth_Management.html ------------ */
.wealth-feature {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.wealth-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.wealth-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--SecondaryColor);
    transition: all 0.3s ease;
}

.wealth-feature:hover .wealth-icon {
    transform: scale(1.1);
}

.hexagon-feature {
    position: relative;
    width: 100%;
    padding-bottom: 115%;
    margin-bottom: 30px;
}

.hexagon-inner {
    position: absolute;
    top: -0rem;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 15%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
}


/* Media query per tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hexagon-inner {
        padding: 8%;
        /* Riduciamo ulteriormente il padding per i tablet */
    }

    .hexagon-inner h4 {
        font-size: 1.1rem;
        /* Riduciamo leggermente la dimensione del testo del titolo */
        margin-bottom: 0.5rem;
    }

    .hexagon-inner p.small {
        font-size: 0.75rem;
        /* Riduciamo leggermente la dimensione del testo del paragrafo */
        margin-bottom: 0;
    }

    .wealth-icon {
        font-size: 2rem;
        /* Riduciamo leggermente la dimensione dell'icona */
        margin-bottom: 1rem;
    }
}

.hexagon-inner:hover {
    background-color: var(--SecondaryColor);
    /*transform: scale(1.02);*/
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hexagon-inner:hover h4,
.hexagon-inner:hover p,
.hexagon-inner:hover .wealth-icon {
    color: white !important;
}


.process-step {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--SecondaryColor);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.wealth-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.wealth-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.wealth-card-header {
    background-color: var(--SecondaryColor);
    padding: 1.5rem;
    color: white;
}

.wealth-card-body {
    padding: 1.5rem;
}

.wealth-list {
    list-style: none;
    padding-left: 0;
}

.wealth-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #333;
}

.wealth-list li:before {
    content: "\F633";
    /* Bootstrap icons check-circle */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var(--SecondaryColor);
}

/* Media query per tablet - correzione per le card di Corporate Advisory */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Aumentiamo la larghezza delle card su tablet */
    .wealth-card {
        max-width: 100%;
    }

    /* Adattiamo l'header delle card per ospitare il testo più lungo */
    .wealth-card-header {
        padding: 1rem 1.2rem;
        min-height: 85px;
        /* Altezza minima per prevenire tagli */
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Riduciamo leggermente il testo dell'header su tablet */
    .wealth-card-header h4.fs-5 {
        font-size: 1rem !important;
        line-height: 1.3;
        margin-left: 10px;
        /* Distanziamento dall'icona */
        flex: 1;
        word-break: break-word;
        /* Permettiamo alle parole lunghe di andare a capo */
    }

    /* Riduciamo leggermente la dimensione dell'icona */
    .wealth-card-header .rounded-circle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .wealth-card-header .fs-4 {
        font-size: 1.2rem !important;
    }

    /* Adattiamo il corpo della card */
    .wealth-card-body {
        padding: 1.2rem;
    }

    /* Assicuriamo che le liste non vengano tagliate */
    .wealth-list li {
        padding: 8px 0;
        padding-left: 25px;
        font-size: 0.9rem;
    }
}


.bg-wealth {
    background-color: #f8f9fa;
    position: relative;
}

.testimonial-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.testimonial-box:before {
    content: "\F141";
    /* Bootstrap icons quote */
    font-family: "bootstrap-icons";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: var(--TertiaryColor);
    opacity: 0.4;
    z-index: -1;
}





/* ------------ Stili di base la pagina Servizi_Finanziari.html ------------ */
/* Stili per le card finanziarie */
.finance-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.finance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.finance-card .bg-secondary {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.finance-card .bg-secondary::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.finance-icon {
    font-size: 4rem;
    transition: all 0.3s ease;
}

.finance-card:hover .finance-icon {
    transform: scale(1.1);
}

.finance-btn {
    border-radius: 30px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.finance-btn:hover {
    background-color: var(--SecondaryColor);
    color: white;
    border-color: var(--SecondaryColor);
}

.finance-btn .bi-chevron-down {
    transition: transform 0.3s ease;
}

.finance-btn[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 767.98px) {
    .finance-card .col-md-4 {
        height: 150px;
    }
}


/* Stili per la timeline finanziaria */
.finance-timeline {
    position: relative;
    padding: 20px 0;
}

.finance-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 3px;
    background-color: var(--SecondaryColor);
    transform: translateX(-50%);
}

.finance-timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 70px;
}

.finance-timeline-indicator {
    position: absolute;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--SecondaryColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transform: translateX(-50%);
    z-index: 1;
}

.finance-timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Media query per md e oltre (≥768px) */
@media (min-width: 768px) {
    .finance-timeline::before {
        left: 50%;
    }

    /* Elementi a destra della timeline (dispari) */
    .finance-timeline-item-right {
        padding-left: 50%;
        padding-right: 0;
    }

    .finance-timeline-item-right .finance-timeline-indicator {
        left: 50%;
    }

    .finance-timeline-item-right .finance-timeline-content {
        margin-left: 30px;
        margin-right: 0;
    }

    /* Elementi a sinistra della timeline (pari) */
    .finance-timeline-item-left {
        padding-left: 0;
        padding-right: 50%;
        text-align: right;
    }

    .finance-timeline-item-left .finance-timeline-indicator {
        left: 50%;
    }

    .finance-timeline-item-left .finance-timeline-content {
        margin-right: 30px;
        margin-left: 0;
    }
}

/* Animazione al passaggio del mouse */
.finance-timeline-content {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finance-timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}




/* Stili per la citazione finanziaria */
.financial-quote {
    position: relative;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.financial-quote-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--SecondaryColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.financial-quote-icon i {
    color: white;
    font-size: 24px;
}

.financial-quote-text {
    padding-top: 20px;
    margin-bottom: 0;
    font-style: italic;
    color: var(--SecondaryColor);
}

.financial-quote-text p {
    margin-bottom: 0;
}

.blockquote-footer {
    color: var(--SecondaryColor);
    opacity: 0.8;
}


/* Classi specifiche per esagoni nella pagina Servizi Finanziari */
.finance-hexagon-feature {
    position: relative;
    width: 100%;
    padding-bottom: 115%;
    margin-bottom: 30px;
}

.finance-hexagon-inner {
    position: absolute;
    top: -0rem;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--TertiaryColor);
    /* Sfondo terziario invece di bianco */
    padding: 15%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
}

.finance-hexagon-inner:hover {
    background-color: var(--SecondaryColor);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.finance-hexagon-inner:hover h4,
.finance-hexagon-inner:hover p,
.finance-hexagon-inner:hover .wealth-icon {
    color: white !important;
}

/* Media query migliorata per tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .finance-hexagon-inner {
        padding: 12%;
        /* Aumentiamo il padding sui tablet */
    }

    .finance-hexagon-inner h4 {
        font-size: 1rem;
        /* Riduciamo ulteriormente la dimensione del titolo */
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .finance-hexagon-inner p.small {
        font-size: 0.7rem;
        /* Riduciamo ulteriormente il testo */
        margin-bottom: 0;
        line-height: 1.3;
    }

    .finance-hexagon-inner .wealth-icon {
        font-size: 1.8rem;
        /* Riduciamo l'icona */
        margin-bottom: 0.8rem;
    }
}

/* Media query per dispositivi più piccoli */
@media (max-width: 767.98px) {
    .finance-hexagon-inner {
        padding: 13%;
    }
}


/* Stili per la sezione di pianificazione finanziaria */
.finance-plan-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.finance-plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.finance-plan-header {
    background-color: var(--SecondaryColor);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.finance-plan-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.finance-plan-icon span {
    color: var(--SecondaryColor);
    font-weight: bold;
    font-size: 1.2rem;
}

.finance-plan-header h4 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.finance-plan-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.finance-plan-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: #333;
}

.finance-plan-list li:before {
    content: "\F633";
    /* Bootstrap icons check-circle */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var(--SecondaryColor);
}

.finance-plan-progress {
    margin-top: auto;
    padding-top: 15px;
}

.finance-plan-progress .progress {
    height: 8px;
}

/* Stili per la visualizzazione finanziaria */
.finance-visual-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow: hidden;
}

.finance-visual-wrapper {
    position: relative;
    height: 100%;
    min-height: 300px;
    padding: 20px;
}

.finance-chart-container {
    position: relative;
    height: 100%;
    width: 100%;
    min-height: 250px;
}

.finance-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(to right, var(--SecondaryColor), var(--TertiaryColor));
    transform: translateY(-50%);
}

.finance-line:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--SecondaryColor);
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
}

.finance-line:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--TertiaryColor);
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.finance-point {
    position: absolute;
    transform: translate(-50%, -50%);
}

.finance-point-dot {
    width: 16px;
    height: 16px;
    background-color: var(--SecondaryColor);
    border-radius: 50%;
    margin: 0 auto 10px;
    box-shadow: 0 0 0 4px rgba(109, 7, 26, 0.1);
    transition: all 0.3s ease;
}

.finance-point:hover .finance-point-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(109, 7, 26, 0.2);
}

.finance-point-label {
    color: var(--SecondaryColor);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.finance-visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    text-align: center;
}

.finance-visual-text {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.finance-cta-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

@media (max-width: 991.98px) {
    .finance-visual-wrapper {
        min-height: 200px;
    }

    .finance-point-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .finance-visual-wrapper {
        min-height: 180px;
    }

    .finance-point {
        position: absolute;
    }

    .finance-point-label {
        font-size: 0.7rem;
    }
}









/* ------------ Stili specifici per la pagina Servizi_Legali.html ------------ */

/* Stili Hero Section */
.legal-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-quote {
    background-color: rgba(228, 209, 145, 0.2);
    border-left: 5px solid var(--SecondaryColor);
    padding: 1.5rem;
}

/* Stili per la navigazione a tab */
.legal-nav-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 10px;
    margin-bottom: 20px;
}

.legal-nav {
    gap: 10px;
}

.legal-nav-btn {
    background-color: #f8f9fa;
    border: none;
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 15px 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.legal-nav-btn i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--SecondaryColor);
}

.legal-nav-btn.active {
    background-color: var(--SecondaryColor);
    color: white;
}

.legal-nav-btn.active i {
    color: white;
}

/* Stili per i tab content */
.legal-tab {
    display: none;
}

.legal-tab.active {
    display: block;
}

/* Stili per icone servizi legali */
.legal-service-icon {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.legal-feature {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.legal-feature:hover {
    transform: translateX(5px);
}

.legal-entity {
    background-color: #f8f9fa;
    border-radius: 30px;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.legal-entity:hover {
    background-color: var(--TertiaryColor);
    transform: translateY(-3px);
}

.legal-process-step {
    position: relative;
    padding-left: 40px;
    margin-bottom: 25px;
}

.legal-process-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: var(--SecondaryColor);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.legal-list {
    list-style: none;
    padding-left: 0;
}

.legal-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: #333;
}

.legal-list li:before {
    content: "\F633";
    /* Bootstrap icons check-circle */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var(--SecondaryColor);
}

.legal-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.legal-benefit-icon {
    background-color: var(--SecondaryColor);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.legal-benefit-text {
    flex-grow: 1;
}

.legal-service-card {
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.legal-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.legal-card-icon {
    background-color: #f8f9fa;
    color: var(--SecondaryColor);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}



/* Stili per la nuova sezione Servizi Legali */
.legal-filter-container {
    position: sticky;
    top: 80px;
    z-index: 10;
    margin-bottom: 20px;
}

.legal-filter {
    border-radius: 30px;
    border: 2px solid var(--SecondaryColor);
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.legal-cards-nav {
    margin-bottom: 30px;
}

.legal-nav-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.legal-nav-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--SecondaryColor);
    transition: width 0.3s ease;
}

.legal-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.legal-nav-card:hover::after {
    width: 100%;
}

.legal-nav-card.active {
    background-color: var(--SecondaryColor);
}

.legal-nav-card.active .legal-nav-icon,
.legal-nav-card.active .legal-nav-title {
    color: white;
}

.legal-nav-icon {
    font-size: 2rem;
    color: var(--SecondaryColor);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.legal-nav-title {
    color: #333;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.legal-content-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.legal-content-panel.active {
    display: block;
}

.legal-content-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.legal-content-header {
    background-color: var(--SecondaryColor);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
}

.legal-content-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 20px;
}

.legal-content-title {
    margin: 0;
    color: white;
    font-weight: 700;
}

.legal-content-body {
    padding: 30px;
}

.legal-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.legal-feature-item:hover {
    transform: translateX(5px);
}

.legal-feature-item i {
    color: var(--SecondaryColor);
    margin-right: 15px;
    margin-top: 3px;
}

.legal-content-cta {
    margin-top: 30px;
    text-align: center;
}

.legal-content-cta .btn {
    border-radius: 30px;
    padding: 10px 25px;
    border-color: var(--SecondaryColor);
    color: var(--SecondaryColor);
    transition: all 0.3s ease;
}

.legal-content-cta .btn:hover {
    background-color: var(--SecondaryColor);
    color: white;
}

/* Accordion styles for mobile */
.legal-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.legal-accordion .accordion-button {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.legal-accordion .accordion-button:not(.collapsed) {
    background-color: var(--SecondaryColor);
    color: white;
}

.legal-accordion .accordion-button:not(.collapsed) .legal-accordion-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.legal-accordion-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(109, 7, 26, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--SecondaryColor);
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries */
@media (max-width: 991.98px) {
    .legal-nav-title {
        font-size: 0.8rem;
    }
}

/* Adattamento per mobile */
@media (max-width: 767.98px) {
    .legal-content-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        text-align: center;
        /* Aumentiamo l'altezza minima del contenitore */
        min-height: 130px;
    }

    .legal-content-header-icon {
        position: static;
        /* Rimuove il posizionamento absolute */
        transform: none;
        margin-bottom: 20px;
        /* Aumentiamo lo spazio sotto l'icona */
        left: auto;
        top: auto;
        /* Assicuriamoci che l'icona abbia dimensioni fisse */
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .legal-content-header h3 {
        width: 100%;
        text-align: center;
        /* Diamo un margin-top per ulteriore separazione */
        padding-top: 15px;
        /* Assicuriamoci che il titolo non sia influenzato da altri stili */
        position: static;
    }

    /* Se esiste una classe .ewp-title-light, aggiustiamo anche quella */
    .legal-content-header h3.ewp-title-light {
        margin-top: 10px;
        position: static;
    }

    .legal-content-body {
        padding: 20px;
    }
}







/* Stili per la sezione Servizi Legali migliorata */

/* Grid di selezione servizi legali */
.legal-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .legal-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .legal-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Selettori di servizi legali */
.legal-service-selector {
    background-color: white;
    border-radius: 12px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.legal-service-selector:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.legal-service-selector:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.legal-service-selector.active {
    border: 1px solid #f8f8f8;
}

.legal-service-selector.active:before {
    background-color: var(--SecondaryColor);
}

.legal-service-icon {
    width: 60px;
    height: 60px;
    background-color: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.legal-service-selector.active .legal-service-icon {
    background-color: var(--SecondaryColor);
}

.legal-service-icon i {
    font-size: 25px;
    color: var(--SecondaryColor);
    transition: all 0.3s ease;
}

.legal-service-selector.active .legal-service-icon i {
    color: white;
}

.legal-service-selector h5 {
    color: #333;
    margin: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    line-height: 1.3;
}

.legal-service-selector.active h5 {
    color: var(--SecondaryColor);
}

/* Contenitore del contenuto dei servizi */
.legal-service-content {
    position: relative;
    min-height: 300px;
}

.legal-content-item {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.legal-content-item.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card del contenuto */
.legal-content-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.legal-content-header {
    position: relative;
    padding: 25px 25px 25px 100px;
    /*background-color: #f8f9fa;*/
    background-color: var(--SecondaryColor);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-content-header-icon {
    position: absolute;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    /*background-color: var(--SecondaryColor);*/
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-content-header-icon i {
    font-size: 28px;
    /*color: white;*/
    color: var(--SecondaryColor);
}

.legal-content-header h3 {
    margin: 0;
}

.legal-content-body {
    padding: 30px;
}

/* Grid di figure professionali in Responsabilità Civile */
.legal-entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.legal-entity {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.legal-entity:hover {
    background-color: var(--TertiaryColor);
    transform: translateY(-3px);
}

.legal-entity i {
    color: var(--SecondaryColor);
    font-size: 1.2rem;
}

/* Step numerati nella sezione Contenziosi */
.legal-process-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    min-height: 40px;
}

.legal-process-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--SecondaryColor);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Stili per l'accordione Altri Servizi */
.legal-accordion .accordion-item {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.legal-accordion .accordion-header {
    border-radius: 10px;
    overflow: hidden;
}

.legal-accordion .accordion-button {
    background-color: #f8f9fa;
    color: var(--SecondaryColor);
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 20px;
}

.legal-accordion .accordion-button:not(.collapsed) {
    background-color: var(--SecondaryColor);
    color: white;
}

.legal-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.legal-accordion .accordion-button:not(.collapsed) i {
    color: white;
}

.legal-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236d071a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.legal-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Adattamento per tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .legal-content-header {
        padding: 20px 20px 20px 90px;
    }

    .legal-content-header-icon {
        width: 50px;
        height: 50px;
        left: 20px;
    }

    .legal-content-header h3 {
        font-size: 1.4rem;
    }

    .legal-content-body {
        padding: 25px;
    }

    .legal-entities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Adattamento per mobile */
@media (max-width: 767.98px) {
    .legal-content-header {
        padding: 65px 20px 20px 20px;
        text-align: center;
    }

    .legal-content-header-icon {
        left: 50%;
        top: 20px;
        transform: translateX(-50%);
    }

    .legal-content-body {
        padding: 20px;
    }

    .legal-entities-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .legal-entity {
        padding: 10px;
        font-size: 0.9rem;
    }
}












/*!*todo una volta rimossa la timeline rimuovere*!
!* Stili per la timeline legale *!
.legal-timeline-line {
    position: absolute;
    width: 3px;
    height: 100%;
    background-color: var(--SecondaryColor);
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.legal-timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
}

.legal-timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--SecondaryColor);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.legal-timeline-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    width: 45%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.legal-timeline-icon {
    position: absolute;
    top: -25px;
    background-color: var(--SecondaryColor);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.legal-timeline-right {
    justify-content: flex-end;
}

.legal-timeline-left {
    justify-content: flex-start;
}

.legal-timeline-right .legal-timeline-icon {
    left: 25px;
}

.legal-timeline-left .legal-timeline-icon {
    right: 25px;
}

!* Adattamento per mobile *!
@media (max-width: 767.98px) {
    .legal-timeline-line {
        left: 20px;
    }

    .legal-timeline-item {
        justify-content: flex-end;
    }

    .legal-timeline-dot {
        left: 20px;
    }

    .legal-timeline-content {
        width: calc(100% - 40px);
    }

    .legal-timeline-icon {
        left: 25px !important;
        right: auto !important;
    }
}*/







/* Stili per la sezione "Il nostro Approccio" con quadrati interattivi */
.legal-approach-section {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 3rem;
    background-color: #f9f9f9;
}

.approach-process-container {
    position: relative;
    /*margin-bottom: 3rem;*/
    padding: 2rem 0;
}

.approach-process-flow {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


/* Stili comuni */
.approach-hexagon-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.approach-icon-wrapper {
    margin-bottom: 10px;
}

.approach-hexagon i {
    font-size: 2rem;
    color: var(--SecondaryColor);
    transition: all 0.3s ease;
}

.approach-hexagon h4 {
    font-size: 1rem;
    color: var(--SecondaryColor);
    margin: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.approach-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 0;
}

.approach-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #333;
}

.approach-features li i {
    color: var(--SecondaryColor);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Linee di connessione tra i quadrati */
/* Desktop layout */
@media (min-width: 992px) {
    .approach-connection-lines {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, transparent 0%, var(--SecondaryColor) 15%, var(--SecondaryColor) 85%, transparent 100%);
        z-index: 0;
    }

    .approach-connection-lines:before,
    .approach-connection-lines:after {
        content: '';
        position: absolute;
        top: -3px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: var(--SecondaryColor);
    }

    .approach-connection-lines:before {
        left: 15%;
    }

    .approach-connection-lines:after {
        right: 15%;
    }

    .approach-step {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 25%;
        padding: 0 15px;
        margin-bottom: 3rem;
        z-index: 1;
    }

    .approach-hexagon {
        position: relative;
        width: 120px;
        height: 120px;
        margin-bottom: 2rem;
        cursor: pointer;
        transition: all 0.4s ease;
    }

    .approach-content {
        background-color: white;
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
        width: 100%;
        opacity: 0.7;
        transform: translateY(10px);
        transition: all 0.4s ease;
    }
}

/* STILE PER TABLET */
@media (min-width: 768px) and (max-width: 991px) {
    .approach-connection-lines {
        display: none;
    }

    .approach-process-flow {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .approach-step {
        position: relative;
        width: 100%;
        margin-bottom: 0;
    }

    /* Stile unificato card per tablet */
    .approach-step {
        display: flex;
        flex-direction: column;
    }

    .approach-hexagon {
        position: relative;
        width: 110px;
        height: 110px;
        margin: 0 auto;
        z-index: 2;
    }

    .approach-content {
        background-color: white;
        border-radius: 12px;
        padding: 2rem 1.5rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
        width: 100%;
        margin-top: -40px;
        padding-top: 50px;
        opacity: 1;
        transform: none;
    }

    .approach-hexagon-inner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--SecondaryColor);
        border-radius: 15px;
        transition: all 0.4s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .approach-hexagon i,
    .approach-hexagon h4 {
        color: white;
    }

    .approach-hexagon h4 {
        font-size: 0.9rem;
    }
}

/* STILE PER MOBILE */
@media (max-width: 767px) {
    .approach-connection-lines {
        display: none;
    }

    .approach-process-flow {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .approach-step {
        position: relative;
        width: 100%;
        margin-bottom: 0;
    }

    /* Stile unificato card per mobile */
    .approach-step {
        display: flex;
        flex-direction: column;
    }

    .approach-hexagon {
        position: relative;
        width: 110px;
        height: 110px;
        margin: 0 auto;
        z-index: 2;
    }

    .approach-content {
        background-color: white;
        border-radius: 12px;
        padding: 2rem 1.5rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
        width: 100%;
        margin-top: -40px;
        padding-top: 50px;
        opacity: 1;
        transform: none;
    }

    .approach-hexagon-inner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--SecondaryColor);
        border-radius: 15px;
        transition: all 0.4s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .approach-hexagon i,
    .approach-hexagon h4 {
        color: white;
    }
}



/* Effetti di hover solo per desktop */
@media (hover: hover) and (min-width: 992px) {
    .approach-step:hover .approach-hexagon {
        transform: translateY(-10px);
    }

    .approach-step:hover .approach-hexagon-inner {
        background-color: var(--SecondaryColor);
    }

    .approach-step:hover .approach-hexagon i,
    .approach-step:hover .approach-hexagon h4 {
        color: white;
    }

    .approach-step:hover .approach-content {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(109, 7, 26, 0.4);
        }

        70% {
            box-shadow: 0 0 0 15px rgba(109, 7, 26, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(109, 7, 26, 0);
        }
    }

    .approach-step.active .approach-hexagon {
        animation: pulse 2s infinite;
        border-radius: 15px;
    }
}

/* Numeri degli step */
.approach-step[data-step="1"] .approach-hexagon:before {
    content: "1";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--TertiaryColor);
    color: var(--SecondaryColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--fontMontserrat), sans-serif;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.approach-step[data-step="2"] .approach-hexagon:before {
    content: "2";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--TertiaryColor);
    color: var(--SecondaryColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--fontMontserrat), sans-serif;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.approach-step[data-step="3"] .approach-hexagon:before {
    content: "3";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--TertiaryColor);
    color: var(--SecondaryColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--fontMontserrat), sans-serif;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.approach-step[data-step="4"] .approach-hexagon:before {
    content: "4";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--TertiaryColor);
    color: var(--SecondaryColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--fontMontserrat), sans-serif;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}



















/* Stile per citazione grande */
.legal-big-quote {
    position: relative;
    padding: 40px 60px;
}

.legal-big-quote-icon {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 5rem;
    color: white;
    opacity: 0.2;
}

.legal-big-quote-text {
    position: relative;
    z-index: 1;
    color: var(--SecondaryColor);
    margin: 0;
}












/* CSS per la sezione internazionale */
.legal-international-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
}

.legal-international-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-image: url('../images/bg_img.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

/* ========== PARTE SINISTRA: Contatori statistici e features (originali) ========== */
.international-stats-container {
    height: 100%;
    padding: 20px;
}

.international-counter-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.international-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.counter-circle {
    width: 100px;
    height: 100px;
    background-color: var(--SecondaryColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 8px 25px rgba(109, 7, 26, 0.2);
}

.counter-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed var(--TertiaryColor);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.counter-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.counter-number {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--fontMontserrat), sans-serif;
}

.counter-plus {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    margin-left: 2px;
}

/* Features */
.international-features {
    margin-top: 30px;
}

.international-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.international-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    min-width: 50px;
    width: 50px;
    height: 50px;
    background-color: rgba(109, 7, 26, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--SecondaryColor);
}

.feature-content h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #555;
}

/* ========== PARTE DESTRA: Tab navigation ========== */
.simple-tab-container {
    background-color: transparent;
    height: 100%;
}

/* Tab navigation */
.simple-tab-nav {
    margin-bottom: 20px;
}

.simple-tab-button {
    background-color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.simple-tab-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.simple-tab-button.active {
    background-color: var(--SecondaryColor);
}

.tab-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--SecondaryColor);
    transition: color 0.3s ease;
}

.tab-label {
    font-weight: 600;
    color: var(--SecondaryColor);
    transition: color 0.3s ease;
}

.simple-tab-button.active .tab-icon,
.simple-tab-button.active .tab-label {
    color: white;
}

/* Contenuto dei tab */
.simple-tab-content {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stile per le regioni */
.region-header {
    margin-bottom: 20px;
}

.region-header h4 {
    color: var(--SecondaryColor);
    font-weight: 700;
    display: inline-block;
    margin-right: 10px;
}

.region-badge {
    display: inline-block;
    background-color: rgba(109, 7, 26, 0.1);
    color: var(--SecondaryColor);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 30px;
    vertical-align: middle;
    font-weight: normal;
}

.region-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.region-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.region-description p {
    margin-bottom: 20px;
}

.region-services {
    margin-bottom: 20px;
}

.region-services h5 {
    color: var(--SecondaryColor);
    font-weight: 600;
    margin-bottom: 10px;
}

.region-services ul {
    list-style: none;
    padding-left: 0;
}

.region-services li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
    color: #555;
}

.region-services li::before {
    content: "\F633";
    /* Bootstrap icons check-circle */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    color: var(--SecondaryColor);
    font-size: 0.9rem;
}

.region-contact {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Media queries per responsività */
@media (max-width: 991.98px) {
    .international-counter-row {
        flex-wrap: wrap;
    }

    .international-counter-item {
        width: 33%;
        margin-bottom: 20px;
    }

    .counter-circle {
        width: 80px;
        height: 80px;
    }

    .counter-number {
        font-size: 1.8rem;
    }

    .counter-plus {
        font-size: 1.2rem;
    }

    .international-feature {
        padding: 12px;
    }

    .feature-icon {
        min-width: 40px;
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 1.2rem;
    }

    .simple-tab-button {
        padding: 12px 8px;
    }

    .tab-icon {
        font-size: 1.5rem;
    }

    .tab-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .international-counter-item {
        width: 50%;
    }

    .counter-circle {
        width: 70px;
        height: 70px;
    }

    .counter-number {
        font-size: 1.5rem;
    }

    .counter-plus {
        font-size: 1rem;
    }

    .feature-content h5 {
        font-size: 0.9rem;
    }

    .feature-content p {
        font-size: 0.8rem;
    }
}




/* Stili per la sezione CTA */
.cta-section {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-image: url('../images/bg_img.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

/* Parte sinistra con features */
.cta-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.cta-feature {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.cta-feature:hover {
    transform: translateX(5px);
}

.cta-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--SecondaryColor);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(109, 7, 26, 0.2);
}

.cta-icon-wrapper i {
    color: white;
    font-size: 1.5rem;
}

.cta-feature p {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

/* Card CTA a destra */
.cta-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-card-content {
    padding: 40px 25px;
    position: relative;
    z-index: 2;
}

.cta-card h3 {
    color: var(--SecondaryColor);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.cta-card p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Button CTA */
.btn-cta {
    background-color: var(--SecondaryColor);
    color: white;
    border: 2px solid var(--SecondaryColor);
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: white;
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-cta:hover {
    color: var(--SecondaryColor);
}

.btn-cta:hover::before {
    width: 100%;
}

.btn-lg {
    padding: 15px 35px;
}

/* Decorazione card */
.cta-card-decorator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--SecondaryColor) 0%, var(--TertiaryColor) 100%);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--TertiaryColor);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background-color: var(--SecondaryColor);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

/* Media Queries */
@media (max-width: 991.98px) {
    .cta-feature {
        margin-bottom: 15px;
    }

    .cta-icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .cta-icon-wrapper i {
        font-size: 1.3rem;
    }

    .cta-feature p {
        font-size: 1rem;
    }

    .cta-card {
        margin-top: 30px;
    }

    .cta-card h3 {
        font-size: 1.4rem;
    }

    .cta-card p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .cta-card-content {
        padding: 30px 20px;
    }

    .btn-cta {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 30px;
    }
}






/* ------------ Footer ------------ */
.footer-section {
    background-color: var(--SecondaryColor);
    color: var(--White);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .footer-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

.footer-logo {
    width: 120px;
    height: auto;
}

.footer-section h5 {
    color: var(--PrimaryColor);
    font-weight: 700;
    font-size: 1rem;
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: var(--White);
    font-size: 0.85rem;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--TertiaryColor);
}

.footer-section ul {
    padding-left: 0;
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li i {
    margin-right: 5px;
    color: var(--PrimaryColor);
}

.footer-section hr {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Stile per i loghi dei partner */
.partner-logos {
    display: flex;
    align-items: center;
}

.partner-logos a {
    margin-right: 10px;
}

.partner-logo {
    width: 80px;
    height: auto;
}

.partner-logo:hover {
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .footer-section .col-6 {
        margin-bottom: 0;
    }

    .footer-section h5 {
        font-size: 0.9rem;
    }

    .footer-section p,
    .footer-section li,
    .footer-section a {
        font-size: 0.8rem;
    }

    .footer-section .partner-logos {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   COOKIE BANNER E PRIVACY POPUP
   ========================================================================== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--PrimaryColor);
    color: var(--SecondaryColor);
    padding: 1.5rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    transition: bottom 0.5s ease-in-out;
    border-top: 3px solid var(--SecondaryColor);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    flex: 1 1 auto;
    margin-right: 2rem;
    margin-bottom: 1rem;
    font-family: var(--fontMontserrat), sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cookie-link {
    color: var(--SecondaryColor);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.cookie-link:hover {
    color: var(--TertiaryColor);
}

.cookie-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.btn-cookie-accept {
    background-color: var(--SecondaryColor);
    color: var(--White);
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-cookie-accept:hover {
    background-color: var(--TertiaryColor);
    color: var(--SecondaryColor);
}

/* Privacy Modal */
.privacy-modal .modal-header {
    background-color: var(--SecondaryColor);
    color: var(--PrimaryColor);
    border-bottom: none;
}

.privacy-modal .modal-title {
    font-family: var(--fontPlayfair), sans-serif;
    color: var(--PrimaryColor);
}

.privacy-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.privacy-modal .modal-body {
    background-color: var(--White);
    color: var(--Black);
    font-family: var(--fontMontserrat), sans-serif;
    padding: 2rem;
}

.privacy-modal .modal-body h5 {
    color: var(--SecondaryColor);
    font-family: var(--fontPlayfair), sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.privacy-modal .modal-body h5:first-child {
    margin-top: 0;
}

.privacy-modal .modal-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-modal .modal-footer {
    background-color: var(--White);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.privacy-modal .btn-secondary {
    background-color: #6c757d;
    color: white;
    border-radius: 25px;
    padding: 8px 20px;
}

/* Responsive per Cookie Banner */
@media (max-width: 767px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .cookie-content {
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
    }
    
    .btn-cookie-accept {
        width: 100%;
    }
}