@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;0,700;0,900;1,500;1,700;1,900&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
    font-family: Poppins;
    font-weight: 500;
    margin: 0;
    background-color: #010101;
    color: #eee;
}
svg{
    width: 25px;
}
/* header{
    width: 100vw;
    background-color: #fff;
    padding: 1.5rem;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 50px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
}
header .logo{
    font-weight: bold;
    & img{
        max-width: clamp(500px,50%);
    }
}
header .menu{
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;

    & a{
        text-decoration: none;
        color: #000;
        &:hover{
            color: #7e7e7e; }   
    }
} */

header {
  width: 100%;
  height: 132px;
  background-color: #fff;
  padding: 1.5rem;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* Spazio tra logo e nav */
  position: relative;
  z-index: 100;
}

.logo img {
  max-width: 100%;
  height: auto;
}

nav ul.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

nav ul.menu li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

@media (max-width: 768px) {
  header {
    grid-template: auto auto / auto;
    text-align: center;
  }

  nav ul.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0;
    font-size: 0.8rem;
    line-height: 1rem;
  }
}

/* css slider */
.slider{
    height: calc(100vh - 5.5rem);
    margin-top: -50px;
    position: relative;
}
.slider .list .item{
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider .list .item::after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(
        to top, #000 20%, transparent
    );
}
.slider .list .item .content{
    position: absolute;
    left: 10%;
    top: 15%;
    width: 500px;
    max-width: 80%;
    z-index: 1;
}
.slider .list .item .content p:nth-child(1){
    text-transform: uppercase;
    letter-spacing: 10px;
}
.slider .list .item .content h2{
    font-size: 100px;
    line-height: 100px;
    margin: 1.5rem 0;
}
.slider .list .item.active{
    opacity: 1;
    z-index: 10;
}
@keyframes showContent {
    to{
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}
.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(2),
.slider .list .item.active p:nth-child(3),
.slider .list .item.active p:nth-child(4){
    transform: translateY(30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s .7s ease-in-out 1 forwards;
}
.slider .list .item.active h2{
    animation-delay: 1s;
}
.slider .list .item.active p:nth-child(3){
    animation-duration: 1.3s;
}
.slider .list .item.active p:nth-child(4){
    animation-duration: 1.6s;
}
.arrows{
    position: absolute;
    bottom: 25px;
    left: 10%;
    z-index: 100;
}
.arrows button{
    background-color: #eee5;
    border: none;
    font-family: monospace;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: x-large;
    color: #eee;
    transition: .5s;
}
.arrows button:hover{
    background-color: #eee;
    color: black;
}
/* .thumbnail{
    position: absolute;
    bottom: 0;
    z-index: 11;
    display: grid;
    gap: 10px;
    width: 100%;
    height: 250px;
    padding: 0 50px;
    box-sizing: border-box;
    overflow: auto;
    grid-template-columns: auto auto auto 1fr;
} */
.thumbnail{
    position: absolute;
    bottom: 0;
    z-index: 11;
    display: flex;
    gap: 10px;
    width: 100%;
    height: clamp(200px, 270px, 70%);
    padding: 0 50px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: flex-end;
}
.thumbnail::-webkit-scrollbar{
    width: 0;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    filter: brightness(.5);
    transition: .5s;
    flex-shrink: 0;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.thumbnail .item.active{
    filter: brightness(1.5);
}
.thumbnail .item .content{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem;
    background-color: rgba(0, 0, 0, .6);
}
.thumbnail .description{
    width: 50%;
}
@media screen and (max-width: 1180px) {
    .slider .list .item .content{
        width: 80%;
    }
    .slider .list .item .content h2{
        font-size: 65px;
        line-height: 65px;
    }
    .thumbnail .description div{
        width: auto;
        padding: 20px;
    }
}
@media screen and (max-width: 678px) {
    .thumbnail{
        justify-content: center;
        gap: 0;
        padding: 0 20px;
    }
    .slider .list .item .content h2{
        font-size: 45px;
        line-height: 45px;
    }
    .slider .list .item .content p{
        font-size: 0.9rem;
        line-height: 1.2rem;
    }
    .arrows{
        /* top: 8%;
        left: 60%; */
        display: none;
    }
}
@media screen and (max-width: 450px) {
    .thumbnail .item{
        display: none;
        visibility: hidden;
    }
    .thumbnail .description {
        width: 95%;
        padding: 0 0 70px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        font-size: 0.8rem;
    }
}

.item .content .go{
margin-top: 1rem;   
}

.item .content .go button{
padding: 0.5rem 0.75rem;
font-size: 1.15rem;
font-weight: 900;
font-style: italic;
cursor: pointer;
}
