.poppins-extralight {
    font-family: "Poppins", serif;
    font-weight: 200;
    font-style: normal;
}

.poppins-light {
    font-family: "Poppins", serif;
    font-weight: 300;
    font-style: normal;
}

.poppins-regular {
    font-family: "Poppins", serif;
    font-weight: 400;
    font-style: normal;
}

.restorations {
    display: flex;
    align-items: center;
    min-height: 100vh;
    
}

    .card-item {
        list-style: none;
        width: 100%;
        display: flex;
        height: 100%;

        @media(max-width: 768px) {
            min-height: 75vh;
        }
    }

        .card-item .card-link {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center; /* Centra gli elementi */
            max-width: 800px; /* Limita la larghezza */
           
            border: 2px solid transparent;
            box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
            transition: 0.2s ease;
            border-radius: 15px;
            overflow: hidden;
            @media(max-width: 768px){
                min-height: 70vh;
            }
        }



         .card-item .card-link:hover {
            border-color: #5372F0;
        }

 .card-link .card-image {
    width: 800px;
    max-width: 100%; /* Limita la larghezza */
    height: auto; /* Mantiene proporzioni */
    object-fit: contain; /* Adatta l'immagine all'area */
    
}

.title {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-left: 6rem;
    height: 6rem;
    color: black;
    align-items: center;
    @media(max-width: 768px){
        padding-left:1rem;
        height: 3rem;
    }
}
.card-link .badge {
    color: #2096da;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    width: fit-content;
    border-radius: 50px;
    padding: 0;
}
p.card-description {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: #777;
    margin: 1rem 0 0 0;
    max-height: 4.5em; /* (line-height * 3) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    max-width: 100%;
}



h5.badge {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 3px !important;
}
h2.card-title {
    font-size: 1.74rem;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 1.5px;
    text-transform:uppercase;
}
 .card-link .card-title {
    font-size: 1.19rem;
    color: black;
    font-weight: 600;
}


.card-link .card-button {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    border: 2px solid #5372F0;
    transform: rotate(-45deg);
    cursor: pointer;
    background: none;
    margin-top: auto; /* Spinge il bottone verso il fondo */
    align-self: flex-end; /* Allinea il bottone a destra */
}
.embla {
    max-width: 96%;
    margin: auto;
    --slide-height: 19rem;
    --slide-spacing: 1rem;
    --slide-size: 70%;
    @media(min-width: 768px){
        --slide-spacing: 6rem;
        --slide-size: 40%;
    }
}

.embla__viewport {
   overflow-x: clip;
}

.embla__container {
    display: flex;
    touch-action: pan-y pinch-zoom;
    margin-left: calc(var(--slide-spacing) * -1);
}

.embla__slide {
    transform: translate3d(0, 0, 0);
    flex: 0 0 var(--slide-size);
    min-width: 0;
    padding-left: var(--slide-spacing);
}

.embla__slide__number {
    box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
    border-radius: 1.8rem;
    font-size: 4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--slide-height);
    user-select: none;
}

.embla__controls {
    display: grid;
    grid-template-columns: auto 1fr;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.embla__buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    align-items: center;
}

.embla__button {
    -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
    width: 3.6rem;
    height: 3.6rem;
    z-index: 1;
    border-radius: 50%;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .embla__button:disabled {
        color: var(--detail-high-contrast);
    }

.embla__button__svg {
    width: 35%;
    height: 35%;
}

.embla__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin-right: calc((2.6rem - 1.4rem) / 2 * -1);
}

.embla__dot {
    -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    touch-action: manipulation;
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    padding: 0;
    margin: 0;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .embla__dot:after {
        box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
        width: 1.4rem;
        height: 1.4rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        content: '';
    }

.embla__dot--selected:after {
    box-shadow: inset 0 0 0 0.2rem var(--text-body);
}

 body {font-family: "MuseoSans", arial, sans-serif; overflow-x: hidden;}
   
.social-spacing {
    margin-left: 13px;
  
;
}
#social-buttons-header{
    display: flex;
    @media(max-width:1100px ){
        visibility: hidden;

    }
}
.social-btn{
      color: black; 
  }
  .header-right {
    
    @media(max-width: 768px){
        font-size: 18px;
        width: 26%;
    }
    @media(min-width: 768px){
        padding-left: 15px;
        padding-right: 15px;
    }
}
.menuNav {
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    padding: 2vw 1vw;
    background-color: #fefeff;
    gap: 1vw;
    justify-content: center;
    width: 20vw;
    height: fit-content;
    pointer-events: all;
    z-index: 22;
}

.menu-text {
    font-size: 1.5vw;
    margin: 0;
    text-decoration: none;
    color: #010001;
}

.menuSocial {
    width: 20vw;
    height: auto;
    color: #f0f1fa;
    border-radius: 25px;
    padding: 1vw;
    background-color: #fefeff;
    display: flex;
    justify-content: space-evenly;
    pointer-events: all;
    z-index: 20;
}

.nav-brands {
    font-size: 2vw;
    color: #010001;
    cursor: pointer;
    padding: 1vw;
    border-radius: 15px;
    transition: 0.5s ease;
}

.navigation-left {
    width: fit-content;
    height: 70%;
    background-color: #fefeff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25vw;
    padding: 0 1.5vw;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    left: 50px;
}

.navigation-text {
    font-size: 0.8vw;
    color: #010001;
}

#navbarDropdown {
    left: 10px;
    top: 9vh;
    width: 20vw;
    display: none;
    border-radius: 25px;
}

@media (max-width: 768px) {
    #navbarDropdown {
        width: 80vw;
    }

    .menuNav {
        border-radius: 15px;
        padding: 4vw;
        gap: 2vw;
        width: 100%;
    }

    .menu-text,
    .nav-brands {
        font-size: 2rem;
    }

    .menuSocial {
        padding: 4vw 2vw;
        width: 100%;
        position: relative;
        top: 10px;
        border-radius: 15px;
    }

    .navigation-left {
        width: 20%;
        left: 0;
    }
    
}
.logo{
        height: 72px;
        @media(min-width: 768px){
            height: 93px;
            width: 100%;
        }
    }


    /* Base styles */
#header {
  height: auto;
}
.cont{
    display: flex;
    height: 100%;
    justify-content:center;
}
/* Media query for screens 768px and above */
@media (min-width: 768px) {
    #header {
        height: 120px;
        transition: height 0.8s ease;
    }

    body.scrolled #header {
        height: 90px;
    }

    #logo {
        height: 85px;
        transition: height 0.8s ease;
    }

    body.scrolled #logo {
        height: 72px !important;
    }
}


/* Media query for screens below 768px */
@media (max-width: 767px) {
  #header {
    height: auto;
    transition: none;
  }
}
.instagram {
    margin-top: 2rem;
    width: 100%;
    padding: 1rem;
}
@media(max-width: 768px){
.mobile-menu{
    padding-top: .4rem;
    padding-bottom: .4rem;
}
    .hamburger--spin{
        padding-right: 15px;
        padding-left: 8px;
    }
}

.current,
.second {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative; /* Assicura che gli pseudo-elementi vengano gestiti correttamente */
}

.current {
    background-image: url("../assets/img/superleggera-veloce12/azzurra-cielo.jpg");
}

.second {
    background-image: url("../assets/img/3500gt/Maserati_3500_GT_Restored_1.jpg");
    background-position: 25%;
}

.animated {
    animation: slideFromRight 1.2s ease-out forwards;
}

#modelContainer {
    display: flex;
    width: 100%;
    height: 90vh;
    padding-top: 70px;

    @media (min-width: 768px) {
        padding-top: 140px;
    }
}

.card-inner {
    position: relative;
    height: 100%;
    cursor: pointer;
}

.modelWrapper,
.modelRightWrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 0% 2% 2%;
}

    .modelRightWrapper.slidefromright {
        animation: slideFromRight 0.5s ease-in-out;
    }

/* Navbar logo without animation */
.navbar-logo {
    animation: none !important;
    
}

a.link {
    height: 100%;
    width: 100%;
    align-items: flex-end;
    display: flex;
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 1.5em;
}

.subheadline {
    font-size: 3vw;
    width: 70%;
    color: white;
}

.front-top {
    width: 100%;
    align-items: flex-end;
    transition: transform 0.3s ease, filter 0.3s ease;
    height: 100%;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    background-color: hsla(0,3%,47%,1);
}

    .front-top.current {
        animation: slideFromLeft 1.2s ease-out forwards;
    }

    .front-top::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: inherit;
        filter: blur(0px);
        transition: filter 0.3s ease;
        z-index: -1;
    }

    .front-top.current:hover::before,
    .front-top.second:hover::before {
        filter: blur(8px); /* Applica il blur su entrambe le classi al passaggio del mouse */
    }

    .front-top.current:hover #text,
    .front-top.second:hover #text2 {
        transform: translateY(-50%);
    }

#text,
#text2 {
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .second {
        height: 100% !important;
    }

    .right {
        width: 20vw;
    }

    .modelRightWrapper {
        width: 60%;
    }

    .front-top {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .subheadline {
        font-size: 5vw;
        backdrop-filter: blur(1px);
    }

    #modelContainer {
        flex-direction: column;
    }

    .modelWrapper {
        display: flex;
        height: 100%;
        width: 100%;
        position: relative;
        top: 30px;
    }

    .card-inner {
        height: 90%;
    }

    .front-top {
        height: 100%;
        align-items: flex-end;
    }

    .bottomBack {
        position: relative;
        bottom: 50px;
    }
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}



.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px
}

    .hamburger-inner, .hamburger-inner::after, .hamburger-inner::before {
        background-color: #000;
        position: absolute;
        transition-property: transform;
        transition-duration: .15s;
        transition-timing-function: ease
    }

        .hamburger-inner::after, .hamburger-inner::before {
            content: "";
            display: block
        }

        .hamburger-inner::before {
            top: -8px
        }

        .hamburger-inner::after {
            bottom: -8px
        }

.hamburger--spin .hamburger-inner {
    transition-duration: .22s;
    transition-timing-function: cubic-bezier(.55,.055,.675,.19)

}
    .hamburger-inner, .hamburger-inner::after, .hamburger-inner::before {
        width: 29px;
        height: 2px;
    }
    .hamburger--spin .hamburger-inner::before {
        transition: top .1s .25s ease-in,opacity .1s ease-in
    }

    .hamburger--spin .hamburger-inner::after {
        transition: bottom .1s .25s ease-in,transform .22s cubic-bezier(.55,.055,.675,.19)
    }
@media (min-width: 768px) {
    .hamburger-inner, .hamburger-inner::after, .hamburger-inner::before {
        width: 32px;
        height: 3px;
    }
}
.hamburger--spin.is-active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: .12s;
    transition-timing-function: cubic-bezier(.215,.61,.355,1)
}

    .hamburger--spin.is-active .hamburger-inner::before {
        top: 0;
        opacity: 0;
        transition: top .1s ease-out,opacity .1s .12s ease-out
    }

    .hamburger--spin.is-active .hamburger-inner::after {
        bottom: 0;
        transform: rotate(-90deg);
        transition: bottom .1s ease-out,transform .22s .12s cubic-bezier(.215,.61,.355,1)
    }
#hamburger {
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: .15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
    display: inline-block;
    position: relative;
    z-index: 4;
    vertical-align: middle;
   padding-top: 0!important;
   padding-bottom: 0 !important;
   
    height: 21px;
    @media(max-width: 768px){
        width: 16.5%;
    }

}

.hamburger-container {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    width: 100%;
    @media(min-width: 768px){
        width: 94%;
    }
}
.navbar-logo {
    display:flex;
    @media(max-width: 768px) {
        width: 48%;
        justify-content: center;
    }
}
