body,
.space-grotesk,
button,
input,
select,
textarea,
.btn,
#open-btn,
.box-heading,
.card-title {
    font-family: "Space Grotesk", sans-serif !important;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-white:hover {
    color: #ffffff !important;
}

.btn-black:hover,
.btn-black:focus,
.btn-black:active {
    background-color: #121212 !important;
    color: #ffffff !important;
}

.custom-app-btn {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.custom-app-btn:hover {
    transform: translateY(-2px);
    background-color: #212529 !important;
}

@media (max-width: 576px) {
    .custom-anim-box {
        max-width: 220px !important;
        height: 220px !important;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.sponsor-ticker {
    display: flex;
    overflow: hidden;
    width: 100%;
    user-select: none;
    backface-visibility: hidden;
    perspective: 1000px;
}

.sponsor-track {
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    gap: 0.8rem;
    padding-right: 0.8rem;
    animation: infiniteSponsor 25s linear infinite;
    will-change: transform;
    flex-shrink: 0;
}

.sponsor-track img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transform: translateZ(0);
    margin: 0 30px;
    transition: height 0.2s ease, opacity 0.2s ease;
}

.sponsor-track img.logo-large {
    height: 65px;
}

@keyframes infiniteSponsor {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.custom-cards-section .style-box-img {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cards-section .style-box-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.custom-cards-section .card-text-wrapper {
    width: calc(100% - 85px);
}

@media (max-width: 575.98px) {
    
    .custom-cards-section .custom-box {
        padding: 1.25rem !important; 
    }
    
    .custom-cards-section .style-box-img {
        width: 45px;
        height: 45px;
    }
    
    .custom-cards-section .card-bianca .style-box-img {
        width: 75px !important;  
        height: 75px !important;
        overflow: visible !important;
    }
    
    .custom-cards-section .card-bianca .style-box-img img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain;
        transform: scale(1.4) !important;
        transform-origin: center;
    }
    
    .custom-cards-section .card-bianca .card-text-wrapper {
        width: calc(100% - 85px) !important;
    }
    
    .custom-cards-section .custom-box p {
        font-size: 0.95rem !important; 
    }
}
}

.custom-box {
    min-height: 220px;
}

.shadow-black {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35) !important;
}

.style-box-img {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.style-box-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.custom-big-box {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.tracking-wide {
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.style-top-img {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.style-top-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.box-row {
    padding: 80px 0;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.col-custom-height {
    height: 40vh;
    min-height: 250px;
    padding: 2rem !important;
}

.box1,
.box2,
.box3,
.box4 {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.box1 {
    background-image: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0) 65%), url(../images/bg-1.jpg);
}

.box2 {
    background-image: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0) 65%), url(../images/bg-2.jpg);
}

.box3 {
    background-image: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0) 65%), url(../images/bg-3.jpg);
}

.box4 {
    background-image: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0) 65%), url(../images/bg-4.jpg);
}

.box-heading {
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 600px;
    background-color: #000000;
    border: 12px solid #1a1a1a;
    border-radius: 36px;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #121212;
    position: relative;
    overflow: hidden;
}

.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 18px;
    background-color: #1a1a1a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.section-btn {
    width: 100%;
}

.animate-pulse {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.animate-pulse:hover {
    transform: scale(1.05);
}

.overlay-container-bs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.overlay-container-bs.attivo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.section-bs {
    width: 96% !important;
    max-width: 1450px;
    height: 90vh;
    border-radius: 24px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overlay-container-bs.attivo .section-bs {
    transform: scale(1);
}

@media (min-width: 992px) {
    .border-end-desktop {
        border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
    }
}

@media (max-width: 991.98px) {
    .border-end-desktop {
        border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
        padding-bottom: 1.5rem;
    }

    .col-custom-height {
        min-height: 180px;
        padding: 1.5rem !important;
    }

    .section-bs {
        max-width: 94%;
        height: 85vh;
        padding: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .phone-mockup {
        max-width: 260px;
        height: 520px;
    }
}

.bg-black .style-box-img {
    width: 120px;
    height: 120px;
    background: transparent !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-black .style-box-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background-color: #000000;
    border-radius: 9999px;
    padding: 4px;
    gap: 2px;
}

.lang-btn {
    background-color: transparent;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.lang-btn:hover {
    color: #cccccc;
}

.lang-btn.active {
    background-color: #ffffff;
    color: #000000;
}

@media (max-width: 991.98px) {
    .lang-switcher {
        padding: 3px;
    }
    .lang-btn {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.7rem;
    }
}
