:root {
    /* Colori principali del brand */
    --brand-dark-grey: #101010;
    --brand-medium-dark-grey: #222222;
    --brand-grey: #797979;
    --white: #FFFFFF;
    --brand-red: #9C1F2D;
    --brand-green: #11AC00;
    --brand-orange: #f19913;

    /* Varianti con trasparenza per effetti */
    --white-05: rgba(255, 255, 255, 0.5);
    --white-08: rgba(255, 255, 255, 0.8);
    --white-095: rgba(255, 255, 255, 0.95);
    --white-03: rgba(255, 255, 255, 0.3);
    --white-01: rgba(255, 255, 255, 0.1);
    --brand-red-01: rgba(156, 31, 45, 0.1);
    --brand-red-025: rgba(156, 31, 45, 0.25);
    --brand-dark-grey-098: rgba(16, 16, 16, 0.98);
    --black:#000000;
    --black-01: rgba(0, 0, 0, 0.1);
    --black-015: rgba(0, 0, 0, 0.15);

    /* Font families */
    --font1: "Inter", sans-serif;
    --font2: "Michroma", sans-serif;
}

.bg-white{
    background: var(--white);
    color: var(--brand-medium-dark-grey);
}
.moreinfo-orange-ctas-section{
    background: var(--brand-orange);
}

.moreinfo-grey-ctas-section{
    background: var(--brand-medium-dark-grey);
}

/* GENERAL STYLE */
.preTitle {
    letter-spacing: 2px;
    font-size: 20px;
    text-transform: uppercase;
}

.preTitleB {
    letter-spacing: 2px;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--brand-dark-grey);
}

.preTitleR {
    letter-spacing: 2px;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--brand-red);
    font-weight: 400;
}

.red,
.text-red {
    color: var(--brand-red);
}

.r30 {
    border-radius: 30px;
}

.r50 {
    border-radius: 50px;
}

.bt {
    border-top: 1px solid rgb(180 180 180 / 56%);
}

.bb {
    border-bottom: 1px solid rgb(180 180 180 / 56%);
}

.br {
    border-right: 1px solid rgb(180 180 180 / 56%);
}

.pt90 {
    padding-top: 90px;
}

.mt90 {
    margin-top: 90px;
}

.r30dx {
    border-bottom-right-radius: 30px;
    border-top-right-radius: 30px;
}

.r30sx {
    border-bottom-left-radius: 30px;
    border-top-left-radius: 30px;
}

.breadcrumps-section .breadcrumps-link {
    color: var(--brand-grey);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.breadcrumps-section .breadcrumps-link.active {
    color: var(--brand-red);
    font-weight: 700;
    transition: all 0.3s ease;
}

.breadcrumps-section svg.svg-inline--fa.fa-2xs {
    font-size: .425em !important;
}

a:link,
a:visited,
a:hover,
a:active {
    color: var(--brand-grey);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--brand-grey) !important;
}


.btn.btn-outline-primary {
    border-radius: 50px;
    padding: 7px 20px;
    color: var(--brand-red);
    background: transparent;
}

.btn.btn-outline-primary:hover {
    color: var(--white) !important;
    background: var(--brand-red);
}


body {
    overflow-x: hidden;
}

body .block a:link,
body .block a:visited,
body .block a:hover,
body .block a:active {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

body .block a:hover {
    color: var(--brand-grey);
}


.footerLnks a {
    font-size: 14px;
}

.footerLnks h6 {
    font-size: 14px;
    font-family: var(--font1);
    letter-spacing: 2px;
}

.text-muted {
    color: var(--brand-grey) !important;
}

.bg-primary {
    background: var(--brand-red) !important;
}

.bg-white {
    background-color: #F5F5F5;
}

.ml12 {
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.ml12 .letter {
  display: inline-block;
  line-height: 1em;
}

.automotiveText{
    font-weight: 800;
    font-size: 80px;
    color: var(--brand-grey);
}
/* PULSANTI */

a.cta-standard {
    background: #e9e9e9;
    color: var(--black) !important;
    font-weight: 400;
    padding: 8px 20px !important;
    border-radius: 20px;
    width: max-content;
    font-size: 16px;
}
a.cta-standard:hover {
    background: var(--brand-red);
    color: var(--white) !important;
    font-weight: 400;
    padding: 6px 20px !important;
    border-radius: 20px;
    width: max-content;
    font-size: 16px;
}

.btn-primary {

    background: #e9e9e9;
    color: var(--brand-dark-grey) !important;
    border-radius: 50px;
    padding: 7px 20px;
    border: 1px solid var(--white);
}

.btn-primary:hover {
    background: var(--brand-red);
    color: var(--white) !important;
    border: 1px solid var(--brand-red);
}

.btn-secondary {

    background: var(--brand-red);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 7px 20px;
    border: 1px solid var(--brand-red);
}

.btn-secondary:hover {
    background: var(--brand-dark-grey);
    color: var(--white) !important;
    border: 1px solid var(--brand-dark-grey);
}

.btn-terziary {
    background: transparent;
    color: var(--white) !important;
    border-radius: 50px;
    padding: 7px 20px;
    border: 1px solid var(--white);
}

.btn-terziary:hover {
    background: var(--brand-dark-grey);
    color: var(--white) !important;
    border: 1px solid var(--brand-dark-grey);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-red);
    --bs-btn-border-color: var(--brand-red);
    --bs-btn-hover-color: var(--white);
    --bs-btn-hover-bg: var(--brand-red);
    --bs-btn-hover-border-color: var(--brand-red);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: var(--white);
    --bs-btn-active-bg: var(--brand-red);
    --bs-btn-active-border-color: var(--brand-red);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--brand-red);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--brand-red);
    --bs-gradient: none;
}

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}


/* Sticky Cards */

.stickyCardsWrapper {
    width: 100%;
    height: 100%;
}

.stickyCardsWrapper .card-wrapper {
    width: 100%;
    perspective: 500px;
    margin-bottom: 50px;
}

.stickyCardsWrapper .card-wrapper:last-child {
    margin-bottom: 0;
}

.stickyCardsWrapper .cards {
    width: 70%;
    margin: 0 auto;
    padding: 0 50px;
}

.stickyCardsWrapper .card {
    width: 100%;
    height: 400px;
}

/* ===================================
           NAVIGATION STYLES
           =================================== */

#topNav {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    z-index: 1050;
}

#topNav.nobckheader,
#topNav.nobckheader.scrolled,
#topNav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background-color: rgb(0 0 0 / 30%);
    backdrop-filter: blur(10px);
}

/* Logo */
#topNav .navbar-brand {
    position: relative;
    display: inline-block;
}

#topNav .logo-img {
    height: 40px;
    width: auto;
    transition: opacity 0.4s ease;
}

#topNav .logo-white {
    opacity: 1;
}

#topNav .logo-red {
    position: absolute;
    top: 5px;
    left: 0;
    opacity: 0;
}

#topNav .navbar-brand:hover .logo-white {
    opacity: 0;
}

#topNav .navbar-brand:hover .logo-red {
    opacity: 1;
}

@media (min-width: 992px) {
    #topNav .logo-img {
        height: 50px;
    }
}

/* Navigation container */
#navbarNav {
    background: var(--white-01);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
}

#topNav.scrolled #navbarNav {
    background: var(--white-03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Navigation links */
#topNav .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 400;
    font-size: 14px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    display: flex;
}

#topNav .navbar-nav .nav-link:hover,
#topNav .navbar-nav .nav-link:focus {
    color: var(--brand-red) !important;
}

/* Dropdown menu */
#topNav .dropdown-menu {
    background: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px var(--black-015);
    margin-top: 0.5rem;
    padding: 1rem 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

#topNav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#topNav .dropdown-item {
    color: var(--brand-dark-grey);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

#topNav .dropdown-item:hover,
#topNav .dropdown-item:focus {
    background: var(--brand-red-01);
    color: var(--brand-red);
    border-left-color: var(--brand-red);
}

/* Dropdown chevron */
#topNav .dropdown-toggle::after {
    border: none;
    content: "\f107";
    margin-left: 7px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
}

#topNav .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Language selector */
#topNav .language-selector {
    position: relative;
}

#topNav .language-select {
    color: var(--brand-dark-grey) !important;
    background-color: var(--white) !important;
    font-size: 14px;
    border-radius: 50px;
    border: 1px solid var(--brand-grey);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
}

#topNav .language-select option {
    color: var(--brand-dark-grey);
    background-color: var(--white);
}


/* Mobile hamburger menu */
#topNav .navbar-toggler {
    border: none;
    padding: 0.25rem;
    background: transparent;
    position: relative;
    z-index: 1050;
}

#topNav .navbar-toggler:focus {
    box-shadow: none;
}

#topNav .hamburger-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

#topNav .hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

#topNav .hamburger-icon span:nth-child(1) {
    margin-bottom: 6px;
}

#topNav .hamburger-icon span:nth-child(2) {
    margin-bottom: 6px;
}

#topNav .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#topNav .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

#topNav .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu styles */
@media (max-width: 991.98px) {

    /* Ripristina l'effetto blur per #topNav in modalità mobile */
    #topNav {
        background: var(--white-05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050;
    }

    #topNav.scrolled {
        /* background: var(--white-08); */
        background: var(--brand-medium-dark-grey);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    /* Assicura che la navbar rimanga visibile quando il menu è aperto */
    #topNav .container {
        position: relative;
        z-index: 1051;
        padding: 0.5rem 1rem;
    }

    /* Logo sempre visibile */
    #topNav .navbar-brand {
        display: block !important;
        position: relative;
        z-index: 1052;
    }

    /* Logo nel menu mobile aperto */
    /* #topNav .navbar-collapse.show::before {
                content: '';
                position: absolute;
                top: 20px;
                left: 50%;
                transform: translateX(-50%);
                width: 150px;
                height: 40px;
                background-image: url('../img/ferrero-logo-white.png');
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
                z-index: 1041;
            } */

    /* Rimuovi l'effetto blur da #navbarNav in modalità mobile */
    #navbarNav {
        background: #000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #topNav.scrolled #navbarNav {
        background: #000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #topNav .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--brand-dark-grey);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0;
        padding-top: 100px;
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
        border-radius: 0;
        will-change: opacity, visibility, transform;
    }

    #topNav .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #topNav .navbar-nav {
        padding-top: 1rem;
        text-align: center;
        width: 100%;
    }

    #topNav .navbar-nav .nav-item {
        margin-bottom: 0;
        border-bottom: 1px solid var(--white-03);
        width: 100%;
    }

    #topNav .navbar-nav .nav-item:last-child {
        border-bottom: 1px solid var(--white-03);
    }

    #topNav .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 8px 2rem;
        color: var(--white) !important;
        text-align: center;
        display: block;
        width: 100%;
    }

    #topNav .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    #topNav .dropdown.show .dropdown-menu {
        display: block;
        margin-bottom: 10px;
        animation: slideDown 0.3s ease;
    }

    #topNav .dropdown-item {
        color: var(--brand-grey);
        padding: 7px 2rem;
        font-size: 1rem;
        border-left: none;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    #topNav .dropdown-item:last-child {
        border-bottom: none;
    }

    #topNav .dropdown-item:hover {
        background: transparent;
        color: var(--white);
    }

    #topNav .language-selector {
        margin-top: 1rem;
        text-align: center;
        padding: 1.2rem 2rem;
        border-top: none;
    }

    #topNav .language-select {
        font-size: 0.9rem;
        padding: 0.5rem 2rem 0.5rem 1rem;
        border-radius: 25px;
        min-width: 80px;
        cursor: pointer;
        transition: all 0.3s ease;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 16px 12px;
    }

    #topNav .language-select:focus {
        background: var(--white-05);
        color: var(--brand-dark-grey);
        border-color: var(--brand-red);
        box-shadow: 0 0 0 0.2rem var(--brand-red-025);
    }

    #topNav .language-select option {
        background: var(--white);
        color: var(--brand-dark-grey);
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* ===================================
           HERO VIDEO SECTION STYLES
           =================================== */

.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 50px rgb(0 0 0 / 50%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    margin-bottom: 3rem;
    margin-right: 2rem;
}

.hero-pretitle {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    color: var(--white);
    font-family: var(--font2);
    font-size: 90px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-hero {
    background: var(--brand-red);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(156, 31, 45, 0.3);
}

.btn-hero-white {
    background: var(--white);
    color: var(--brand-dark-grey) !important;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-white:hover {
    background: var(--white-05);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(156, 31, 45, 0.3);
}

/* Mobile Styles */
@media (max-width: 767.98px) {
    .hero-video {
        object-position: center center;
    }

    .hero-content {
        margin-bottom: 2rem;
        margin-right: 0;
        padding: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 1.5rem;
    }

    .hero-pretitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-content {
        margin-bottom: 2.5rem;
        margin-right: 1.5rem;
    }
}

body {
    font-family: var(--font1);
    font-weight: 200;
    color: var(--brand-dark-grey);
    font-size: 18px;
    padding: 0;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font2);
}

h2.titleBlack {
    color: var(--brand-dark-grey);
}

.titleBlack {
    color: var(--brand-dark-grey);
}

.txtBlack {
    color: var(--brand-dark-grey);
}

/* ===================================
           FOOTER STYLES
           =================================== */

footer {
    font-size: 16px;
}

footer.section-bg {
    background-color: #F5F5F5;
}

/* Footer logo */
footer .footer-logo {
    max-width: 200px;
}

/* Footer headings */
footer h5,
footer h6 {
    color: var(--brand-dark-grey);
}

footer h5 {
    font-family: var(--font1);
    font-weight: 300;
    letter-spacing: 1px;
}

footer h6 {
    color: var(--brand-red);
}

/* Footer contact icons */
footer .contact-icon {
    color: var(--brand-red);
}

/* Footer links and text */
footer a {
    color: var(--brand-dark-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:link,
a:visited {
    color: var(--brand-dark-grey);
}

footer a:hover {
    color: var(--brand-grey);
}

footer p {
    color: var(--brand-dark-grey);
}

/* Footer horizontal dividers */
footer .footer-divider {
    border-color: var(--brand-grey);
    margin: 3rem 0;
}

footer .footer-divider-bottom {
    border-color: var(--brand-grey);
    margin: 3rem 0 2rem 0;
}

/* Footer navigation chevron icons */
footer .nav-chevron {
    color: var(--brand-red);
    font-size: 0.8em;
}

footer ul.listarrow {
    padding-left: 0.5rem;
}

footer ul.listarrow li::marker {
    content: "\f054";
    /* FontAwesome Unicode */
    font-family: FontAwesome;
    display: inline-block;
    color: var(--brand-red);
    font-size: 0.8em;
    margin-left: calc(var(--icon-space) * 10);
}

footer ul.listarrow li {
    padding-left: 10px;
}

/* Footer copyright text */
footer .copyright-text {
    color: var(--brand-dark-grey);
}

/* Footer credits text */
footer .credits-text {
    color: var(--brand-dark-grey);
}

/* Footer social links */
footer a.social-link {
    color: var(--brand-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .social-link:hover {
    color: var(--brand-grey);
}

/* ===================================
           ABOUT SECTION STYLES
           =================================== */


/* Card con bordo sfumato */
/* .card-gradient-border {
    border-radius: 50px;
    padding: 36px;
    border: 1px solid var(--white-05);
    transition: all 0.3s ease-in-out;
    color: var(--white);
    background: var(--brand-dark-grey);
} */
/*
.card-gradient-border {
    border-radius: 50px;
    padding: 36px;
    border: 1px solid rgb(46 46 46);
    transition: all 0.3s ease-in-out;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgb(61 61 61) 100%);
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgb(44 18 18) 100%);
    box-shadow: 0px 31px 20px -10px rgb(0 0 0 / 21%);
}
*/
.card-gradient-border {
    border-radius: 8px;
    padding: 36px;
    border: 1px solid rgb(46 46 46);
    transition: all 0.3s ease-in-out;
    color: var(--brand-medium-dark-grey);
    /* background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgb(61 61 61) 100%); */
    box-shadow: 0px 31px 20px -10px rgb(0 0 0 / 21%);
}

.card-gradient-border:hover {
    border: 1px solid var(--brand-red);
    transition: all 0.3s ease-in-out;
}


/* Bordo rosso per le sticky cards quando sono in posizione pinned */
.stickyCardsWrapper .card-wrapper.is-pinned .card-gradient-border {
    border-color: var(--brand-red);
}

section.about-section {
    background: var(--brand-dark-grey);
    background: linear-gradient(180deg, var(--brand-dark-grey) 0%, var(--brand-red) 100%);
}

section.about-section.light {
    background: var(--white);
}

.is-sticky {
    padding-top: 100px !important; /* offset solo durante l'effetto calamita */
    transition: all 500ms ease-in-out;
}


/* ===================================
   CLIENTS SECTION STYLES
   =================================== */

/* Client logo carousel */
.owlClients {
    margin: 20px 0;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.client-logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

/* Personalizzazione frecce di navigazione */
.owlClients .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.owlClients .owl-nav button.owl-prev,
.owlClients .owl-nav button.owl-next {
    background: transparent;
    color: var(--brand-dark-grey) !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -20px;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.owlClients .owl-nav button.owl-prev:hover,
.owlClients .owl-nav button.owl-next:hover {
    background-color: var(--brand-red) !important;
    color: var(--white) !important;
}

/* Responsive styles */
@media (max-width: 767.98px) {
    .clients-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .owlClients .owl-nav {
        position: relative;
        margin-top: 20px;
        justify-content: center;
        gap: 20px;
    }

    .owlClients .owl-nav button.owl-prev,
    .owlClients .owl-nav button.owl-next {
        margin: 0;
    }
}

/* ===================================
   TECHNOLOGIES CAROUSEL STYLES
   =================================== */

/* Tech card styles */

/* .tech-bg {
    background-color: #F5F5F5;
}

.tech-card {
    padding: 30px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    margin: 15px;
    height: 300px;
    display: flex;
    align-items: flex-end;
    transition: all 0.3s ease;
}

.tech-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    z-index: -1;
}

.tech-card:hover .tech-card-img {
    transform: scale(1.1);
}

/* Overlay for better text readability */
/* .tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 0;
}

.tech-card-inner {
    position: relative;
    z-index: 2;
}

.tech-card .preTitle {
    color: var(--white);
    font-size: 18px;
}

.tech-card .small {
    font-size: 14px;
    line-height: 1.4;
}  */

.tech-card a{
    color: var(--brand-dark-grey);
    font-weight: 400;
}

.tech-card img{
 border-radius: 8px;
 transition: all 0.3s ease-in-out;
}

.tech-card .tech-card-info{
    margin-top: 15px;
    margin-bottom: 15px;
    padding:10px 20px;
    border-left:1px solid var(--black);
    transition: all 0.15s ease-in-out;
}

.tech-card .tech-card-info .preTitle{
    font-weight: 400;
}

.tech-card a:hover img{
    filter: brightness(1.5);
    transition: all 0.3s ease-in-out;
}
.tech-card a:hover .tech-card-info{
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--brand-dark-grey);
}

.tech-card a:hover .tech-card-info .preTitle{
    color:var(--brand-red);
}

/* Tech carousel navigation */
.tech-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.tech-nav-prev,
.tech-nav-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    /* color: var(--brand-medium-dark-grey); */
    color: #8a8a8a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* .tech-nav-prev:hover,
.tech-nav-next:hover {
    background-color: var(--brand-red);
    color: var(--white);
}

.tech-nav-prev i,
.tech-nav-next i {
    font-size: 20px;
} */

/* Owl Carousel custom styles for technologies */
.owlTechnologies .owl-stage-outer {
    padding: 10px 0;
}

.owlTechnologies .owl-nav {
    display: none;
}

/* Responsive styles */
/* @media (max-width: 767.98px) {
    .tech-card {
        height: 250px;
    }

    .tech-carousel-nav {
        justify-content: center;
    }
} */

/* ===================================
   SQUARE CAROUSEL NAVIGATION STYLES
   =================================== */

/* Square carousel navigation */
.square-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.square-nav-prev,
.square-nav-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    /* color: var(--white); */
    color: #8a8a8a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.square-nav-prev:hover,
.square-nav-next:hover {
    background-color: var(--brand-red);
}

.square-nav-prev i,
.square-nav-next i {
    font-size: 20px;
}

/* Responsive styles */
@media (max-width: 767.98px) {
    .square-carousel-nav {
        justify-content: center;
    }
}

/* ===================================
   SERVICES SECTION STYLES
   =================================== */

/* Services section */
.services-section .colServiceGrid {
    display: flex
}

.services-section .colService {
    background: var(--brand-red);
    width: 200px;
    padding: 20px;
    height: 300px;
    border-radius: 8px;
    position: relative;
    margin-right: 20px;
    border: 1px solid var(--brand-red);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--white);
}

.services-section .colService:last-child {
    margin-right: 0;
}

.services-section .colService .normalContent .service-img-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    overflow: hidden;
}

.services-section .colService .normalContent .service-img-wrapper .service-img {
    width: 70px;
    height: 70px;
    opacity: 1;
    transition: all 0.3s ease;
}

.services-section .colService:hover .normalContent .service-img-wrapper .service-img {
    opacity: 0;
    transition: all 0.3s ease;
}

.services-section .colService .normalContent .service-img-wrapper .service-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    opacity: 0;
    z-index: -1;
    filter: invert(1);
    transition: all 0.3s ease;
}

.services-section .colService:hover .normalContent .service-img-wrapper .service-img-hover {
    opacity: 1;
    z-index: 1;
    transition: all 0.3s ease;
}

.services-section .colService.active {
    width: 100%;
    border: 1px solid var(--brand-medium-dark-grey);
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--brand-dark-grey);
}

.services-section .colService:hover {
    border: 1px solid var(--brand-medium-dark-grey);
    background: var(--brand-medium-dark-grey);
    transition: all 0.3s ease;
}
.services-section .colService.active:hover{
    background: var(--white);
    border: 1px solid var(--brand-red);
    transition: all 0.3s ease;
}

.services-section .colService .normalContent {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
}

.services-section .colService.active .normalContent {
    display: none;
}

.services-section .colService .normalContent .preTitle {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
}

.services-section .colService .normalContent h3 {
    font-size: 24px;
}

.services-section .colService .activeContent {
    transform: translateX(20px);
    opacity: 0;
    visibility: hidden;
    height: 0;
    transition: all 0.3s ease;
}

.services-section .colService .activeContent p {
    font-size: 13px;
}

.services-section .colService.active .activeContent {
    transform: translateX(0px);
    height: 100%;
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.services-section .colService h3 {
    font-size: 30px;
}

@media (max-width: 1024px) {
    .services-section .colServiceGrid {
        display: block;

    }

    .services-section .colService {
        width: 100%;
        height: inherit;
        margin-right: 0px;
        margin-bottom: 20px;
    }

    .services-section .colService .normalContent {
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        opacity: 1;
    }

    .services-section .colService .normalContent .preTitle {
        font-size: 20px;
    }

}




/* ===================================
   CERTIFICATIONS SECTION STYLES
   =================================== */

/* Certifications section */
.certifications-ctas-section .ctaBig {
    background: var(--white);
    color: var(--brand-medium-dark-grey);
    border: 1px solid var(--brand-medium-dark-grey);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.certifications-ctas-section .ctaBig:hover {
    padding: 1rem 2.5rem 1rem 4rem;
    color: var(--brand-red) !important;
    border: 1px solid var(--brand-red);
    transition: all 0.3s ease;
    text-decoration: none;
}


/* ===================================
   Hero Image Section
   =================================== */

.heroImgSection .HeroTitle {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.heroImgSection .HeroTitle .overText {
    height: 100%;
    position: relative;
    z-index: 2;
}

.heroImgSection .HeroTitle .overTextContentWrapper {
    display: flex;
    justify-content: end;
    align-items: end;
    width: 100%;
    height: 100%;
}

.heroImgSection .HeroTitle .overTextContentWrapper h1,
.heroImgSection .HeroTitle .preTitle{
    color: var(--white);
}

.heroImgSection .HeroTitle .HeroTitleVideoImgWrapper:before {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    z-index: 0;
    /*background: url(../img/overlay-satin.jpg) no-repeat center center;
    background-size: cover;
    mix-blend-mode: overlay;*/
    top: 0;
    left: 0;
}

.heroImgSection .HeroTitle .HeroTitleVideoImgWrapper img {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    height: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    /*opacity: 0.4;*/
    opacity: 0.8;
    z-index: -1;
}

@media (max-width: 768px) {

    .heroImgSection .HeroTitle .HeroTitleVideoImgWrapper img {
        position: absolute;
        width: auto;
        height: auto;
        min-width: 100%;
        min-height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        z-index: -1;
    }

    .heroImgSection .HeroTitle .overTextContentWrapper {
        text-align: center;
    }
}

/* FAQ Accordion */
.section-faq-accordion .faqList .faqItem {
    position: relative;
    border-bottom: 1px solid var(--white-03);
}


.section-faq-accordion .faqList .faqItemBlack {
    position: relative;
    border-bottom: 1px solid var(--black-015);
}

.faqItemBlack a:link,
a:visited,
a:hover,
a:active {
    color: var(--brand-dark-grey);
    text-decoration: none;
    font-weight: 400;
}

.section-faq-accordion .faqList .faqItem a {
    display: block;
    padding: 20px;
    padding-right: 50px;
}

.section-faq-accordion .faqList .faqItemBlack a {
    display: block;
    padding: 20px;
    padding-right: 50px;
    font-size: 18px;
}

.section-faq-accordion .faqList .faqItem.noborder {
    border-bottom: none;
}

.section-faq-accordion .faqList .faqItemBlack.noborder {
    border-bottom: none;
}

.section-faq-accordion .faqList .faqItem a[aria-expanded="false"]:after {
    content: "\2b";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    right: 25px;
    top: 25px;
    color: var(--white);
    transition: all 0.3s ease;
}

.section-faq-accordion .faqList .faqItemBlack a[aria-expanded="false"]:after {
    content: "\2b";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    right: 25px;
    top: 25px;
    color: var(--brand-grey);
    transition: all 0.3s ease;
}

.section-faq-accordion .faqList .faqItem a[aria-expanded="false"]:hover:after {
    content: "\2b";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    right: 25px;
    top: 25px;
    color: var(--brand-grey);
    transition: all 0.3s ease;
}

.section-faq-accordion .faqList .faqItemBlack a[aria-expanded="false"]:hover:after {
    content: "\2b";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    right: 25px;
    top: 25px;
    color: var(--brand-grey);
    transition: all 0.3s ease;
}

.section-faq-accordion .faqList .faqItem a[aria-expanded="true"]:after {
    content: "\f068";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    right: 25px;
    top: 25px;
    color: var(--white);
    transition: all 0.3s ease;
}

.section-faq-accordion .faqList .faqItemBlack a[aria-expanded="true"]:after {
    content: "\f068";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    right: 25px;
    top: 25px;
    color: var(--brand-red);
    transition: all 0.3s ease;
}

.faqItemBlack a:link[aria-expanded="true"] {
    color: var(--brand-red);
    text-decoration: none;
}

.section-faq-accordion .faqList .faqItem a[aria-expanded="true"]:hover:after {
    content: "\f068";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    right: 25px;
    top: 25px;
    color: var(--brand-grey);
    transition: all 0.3s ease;
}

.section-faq-accordion .faqList .faqItemBlack a[aria-expanded="true"]:hover:after {
    content: "\f068";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    right: 25px;
    top: 25px;
    color: var(--brand-red);
    transition: all 0.3s ease;
}

.section-faq-accordion .faqList .faqItem .faqItemExtended {
    padding: 20px;
    padding-top: 0;
}

.section-faq-accordion .faqList .faqItemBlack .faqItemExtended {
    padding: 20px;
    padding-top: 0;
}

/* Contact Form */
.customForm .form-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.customForm .form-control {
   background: var(--white);
    color: var(--black);
    border: 0;
    border: 1px solid var(--brand-grey);
}

/* Map Wrapper */
.mapWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}




/* .mapWrapper .animated-pointer {
    position: absolute;
    width: 150px;
    height: 150px;
    background: url(../img/pointer.svg) no-repeat center center;
    background-size: cover;
    z-index: 2;
}
.mapWrapper .animated-pointer:hover {
    position: absolute;
    width: 150px;
    height: 150px;
    background: url(../img/pointer-sel.svg) no-repeat center center;
    background-size: cover;
    z-index: 2;
} */

.mapWrapper .animated-pointer {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--brand-red);
    display: block;
    border-radius: 50%;
    /* box-shadow: 0px 0px 1px 1px #ff00001a;
  animation: pulse-animation 2s infinite; */
    cursor: pointer;
}

.mapWrapper .animated-pointer:before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--brand-red);
    display: block;
    border-radius: 50%;
    box-shadow: 0px 0px 1px 1px #ff00001a;
    animation: pulse-animation 2s infinite;
    z-index: -2;
}



.mapWrapper .animated-pointer .state {
    color: var(--white);
    position: absolute;
    top: 0;
    left: 6px;
    height: 0;
    z-index: 2;
    border-left: 1px solid var(--white);
    opacity: 0;
    visibility: hidden;
    padding-left: 10px;
    transform-origin: 0% 10;
    transition: all 0s ease;
}

.mapWrapper .animated-pointer:hover {
    background: var(--white);
    box-shadow: 0px 0px 1px 1px transparent;
    animation: none
}

.mapWrapper .animated-pointer:hover .state {
    opacity: 1;
    visibility: visible;
    height: 100px;
    top: -100px;
    transition: all 0.3s ease;

}



@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(255, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(255, 0, 0, 0);
    }
}

/* Spacer in case of No Hero Image */
.headerSpacer {
    height: 80px;
}

/* ============================================
   THEME TOGGLER
   ============================================ */
.theme-toggler {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
}

.theme-toggler:hover {
    /* background: var(--white-01); */
}

.theme-icon {
    position: absolute;
    transition: all 0.3s ease;
    color: var(--white);
}

.theme-toggler .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggler .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

/* Dark theme active */
body.dark-theme .theme-toggler .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

body.dark-theme .theme-toggler .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ============================================
   DARK THEME STYLES
   ============================================ */
body.dark-theme {
    background-color: #0a0a0a;
    color: #e0e0e0;
}

body.dark-theme a:visited {
    color: var(--brand-grey);  
}

body.dark-theme section.about-section.light {
    background-color: #0a0a0a;
    color: #e0e0e0;
}

body.dark-theme  .text-black,
body.dark-theme .titleBlack{
    color: #e0e0e0 !important;
}


body.dark-theme .customForm .form-control {
    background: var(--brand-medium-dark-grey);
    color: var(--white);
    border: 0;
    border-bottom: 1px solid var(--white-05);
}



/* Navbar in dark theme */
body.dark-theme #topNav {
    background-color: rgba(10, 10, 10, 0.98);
}

body.dark-theme #topNav.scrolled {
    background-color: rgba(10, 10, 10, 0.98);
}

body.dark-theme .tech-card .tech-card-info {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px 20px;
    border-left: 1px solid var(--white);
    transition: all 0.15s ease-in-out;
}

body.dark-theme .tech-card a{
    color: var(--white);
}

body.dark-theme .certifications-ctas-section .ctaBig {
    background: transparent;
    color: var(--brand-medium-light-grey);
    border: 1px solid var(--brand-grey);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}
body.dark-theme footer a:link, body.dark-theme footer a:visited {
    color: var(--brand-grey);
    font-weight: 400;
    transition: all 0.3s ease;
}
body.dark-theme footer a:hover{
    color: var(--white) !important;
    font-weight: 400;
}

body.dark-theme  .services-section .colService.active {
    background: var(--brand-darkgrey);
}

/* Links e testi */
body.dark-theme .nav-link {
    color: #e0e0e0 !important;
}

body.dark-theme .nav-link:hover {
    color: var(--brand-red) !important;
}

body.dark-theme .dropdown-menu {
    background-color: #1a1a1a;
    border-color: #333;
}

body.dark-theme .dropdown-item {
    color: #e0e0e0;
}

body.dark-theme .dropdown-item:hover {
    background-color: #2a2a2a;
    color: var(--brand-red);
}

body.dark-theme .dropdown-divider {
    border-color: #333;
}

/* Sezioni e contenuti */
body.dark-theme section {
    background-color: rgb(10 10 10 / 15%);
}

body.dark-theme .bg-white {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.dark-theme .card {
    background-color: #1a1a1a;
    border-color: #333;
    color: #e0e0e0;
}

/* body.dark-theme .card img{
    filter: invert(1);
} */

body.dark-theme .preTitleB {
    color: #e0e0e0;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: #e0e0e0;
}

body.dark-theme p,
body.dark-theme li {
    color: #b0b0b0;
}

/* Footer */
body.dark-theme footer {
    background-color: #0a0a0a;
    border-top-color: #333;
}

/* Form elements */
body.dark-theme .form-control,
body.dark-theme .form-select {
    background-color: #1a1a1a;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
    background-color: #2a2a2a;
    border-color: var(--brand-red);
    color: #e0e0e0;
}

/* Buttons */
body.dark-theme .btn-outline-light {
    border-color: #e0e0e0;
    color: #e0e0e0;
}

body.dark-theme .btn-outline-light:hover {
    background-color: #e0e0e0;
    color: #0a0a0a;
}

/* Borders */
body.dark-theme .bt,
body.dark-theme .bb,
body.dark-theme .br {
    border-color: #333 !important;
}

/* Language selector */
body.dark-theme #topNav .language-select {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e0e0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

body.dark-theme #topNav .language-select:focus {
    background-color: #2a2a2a !important;
    border-color: var(--brand-red) !important;
}

body.dark-theme #topNav .language-select option {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

/* Fix per Safari e altri browser */
body.dark-theme #topNav .language-selector select {
    color: #e0e0e0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Classe generica per tintare le icone in bianco nel dark theme */
.dark-tintable {
    transition: filter 0.3s ease;
}

body.dark-theme .dark-tintable {
    filter: brightness(0) invert(1);
}

/* Smooth transition for theme change */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

section,
.card,
.dropdown-menu,
.form-control,
.form-select {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* =============================================
   Reveal Card - Card con overlay e hover
   ============================================= */
.revealCard .card {
    border: none;
    border-radius: 30px;
    overflow: hidden;
    background: transparent;
}

.revealCard .card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    height: 400px;
}

.revealCard .card-img-wrapper .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 30px;
}

/* Overlay scuro trasparente sopra l'immagine */
.revealCard .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
    border-radius: 30px;
    pointer-events: none;
    transition: background 0.4s ease;
}

/* Testi posizionati sopra l'overlay */
.revealCard .card-img-wrapper .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    color: var(--white);
}

.revealCard .card-img-wrapper .card-title {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.revealCard .card-img-wrapper .card-text {
    color: var(--white-08);
    font-size: 0.9rem;
}

.revealCard .card-img-wrapper ul.card-text {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.revealCard .card-img-wrapper ul.card-text li {
    padding: 0.15rem 0;
    color: var(--white-08);
}


/* =============================================
   Reveal Card - Mobile (sotto 768px)
   ============================================= */
@media (max-width: 767.98px) {
    .revealCard .card {
        border-radius: 0;
        background: transparent;
        overflow: visible;
        border: none;
        box-shadow: none;
    }

    .revealCard .card-img-wrapper {
        position: static;
        overflow: visible;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .revealCard .card-img-wrapper .card-img-top {
        border-radius: 30px;
        aspect-ratio: 4/3;
    }

    .revealCard .card-overlay {
        display: none;
    }

    .revealCard .card-img-wrapper .card-body {
        position: static;
        padding: 1.25rem 0.5rem;
        color: var(--brand-dark-grey);
        background: transparent;
        border-radius: 0;
    }

    .revealCard .card-img-wrapper .card-title {
        color: var(--brand-dark-grey);
    }

    .revealCard .card-img-wrapper .card-text {
        color: var(--brand-grey);
    }

    .revealCard .card-img-wrapper ul.card-text li {
        color: var(--brand-grey);
    }

    /* Dark theme mobile */
    body.dark-theme .revealCard .card-img-wrapper .card-body {
        color: var(--white);
    }

    body.dark-theme .revealCard .card-img-wrapper .card-title {
        color: var(--white);
    }

    body.dark-theme .revealCard .card-img-wrapper .card-text {
        color: var(--white-08);
    }

    body.dark-theme .revealCard .card-img-wrapper ul.card-text li {
        color: var(--white-08);
    }
}