/***********************
    HERO - MENU
************************/
.brand_mobile{
    display: none;
}
.brand{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.brand .site_title{
    font-size: 6rem;
    color: var(--logo);
    font-weight: 600;
}
.brand div h2{
    margin-top: 3rem;
    font-weight: 300;
    font-size: 18px;
    line-height: 2rem;
    text-transform: uppercase;
    max-width: 900px;
    width: 100%;
}
.logo{
    width: 90px;
}
.hero_row{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5rem;
}
.menu{
    margin-top: -6rem;
    position: relative;
    width: 10%;
}
.menu_bar{
    position: absolute;
    top: 20px;
    right: 7px;
    height: 90%;
    width: 4px;
    background-color: var(--violet);
}
.menu ul li{
    line-height: 3rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    transition: all 450ms linear;
    cursor: pointer;
}
.menu ul li span{
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid black;
    background: var(--white);
    z-index: 1;
}
.menu ul li:hover a{
    font-weight: bold;
}
.menu ul li:hover span{
    border: 2px solid var(--violet);
    background: var(--violet);

}
li.active a{
    color: var(--violet);
    font-weight: bold;
}
.menu ul li.active span{
    border: 2px solid var(--violet);
    background: var(--violet);
}
.fa-user{
    font-size: 20px;
}
.menu ul li:hover .fa-user{
    color: var(--violet);
}
.menu ul li.active .fa-user{
    color: var(--violet);
}
.grid_container{
    width: 90%;
    padding-top: 1rem;
    display: grid;
    grid-auto-columns: 1fr; /*per essere sicuri che ogni colonna di spazio abbia grandezza uguale*/
    grid-template-areas: /*per il mobile uno sotto l'alto*/
    ". . connection_one . . . . . . . "
    "hero_img hero_img hero_img hero_img hero_img . hero_img_two hero_img_two hero_img_two hero_img_two"
    "hero_img hero_img hero_img hero_img hero_img connection_two hero_img_two hero_img_two hero_img_two hero_img_two"
    "hero_img hero_img hero_img hero_img hero_img . hero_img_two hero_img_two hero_img_two hero_img_two"
    ". . . . . . hero_img_two hero_img_two hero_img_two hero_img_two"
    ". . . . . .  . connection_three connection_three . "
    ". . . . .  . . hero_btn hero_btn . ";    
    /* transition: opacity 150ms; */

}
.connection{
    opacity: 1;
    /* transition: opacity 150ms; */
}
.connection_one{
    grid-area: connection_one;

    width: 5px;
    height: 100px;
    background: var(--violet);
    margin: 0 auto;
    z-index: 999;
    position: relative;
}
.connection_dot{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--violet);
}
.connection_one div:first-child,
.connection_three div:first-child{
    position: absolute;
    top: -12px;
    left: -7.5px;
}
.connection_one div:last-child,
.connection_three div:last-child{
    position: absolute;
    bottom: -10px;
    left: -7.5px;
}

.connection_two div:first-child{
    position: absolute;
    left: -12px;
    top: -7.5px;
}
.connection_two div:last-child{
    position: absolute;
    right: -12px;
    top: -7.5px;
}
.hero_img{
    grid-area: hero_img;
    /* height: 350px; */
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 30px;
    border: 5px solid var(--logo);
    box-shadow: var( --color_sdw);

}
.connection_two{
    grid-area: connection_two;

    width: 100%;
    height: 5px;
    background: var(--violet);
    margin: 0 auto;
    z-index: 998;
    position: relative;
}
.hero_img_two{
    grid-area: hero_img_two;

    border-radius: 30px;
    width: 100%;
    min-height: 600px;
    height: 100%;
    border: 5px solid var( --logo);
    background-color: var(--tab_bg);
    box-shadow: var( --color_sdw);

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}
.hero_img img,
.hero_img_two img{
    /* object-fit: cover; */
    height: 100%;
    width: 100%;
}
.connection_three{
    grid-area: connection_three;

    width: 5px;
    height: 80px;
    background: var(--violet);
    margin: 0 auto;
    z-index: 999;
    position: relative;
}
.hero_btn{
    grid-area: hero_btn;

    /* will-change: transform; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .9rem;
    width: fit-content;
    margin: 0 auto;
    margin-top: 2rem;
    padding: .5rem 1.25rem;
    font-size: 1.3rem !important;
    font-family: var(--txt_title);
    font-weight: 600;

    border-radius: 0.625rem;
    background: var(--logo);
    color: var(--white);

    /* purple_shadow */
    box-shadow: var(--color_sdw);
    font-size: 12px;
    transition: all 250ms linear;
}
.hero_btn:hover{
    /* transform: scale(1.005); */
    /* box-shadow: 2px 3px 3px 0px rgba(127, 127, 254, 0.35); */
    background: var(--green);
}
.hero_btn:active{
    box-shadow: none;
    /* transform: scale(1); */
}
@media (max-width: 1355px){
    .hero_btn{
        font-size: 1rem !important;
    }
}
@media (max-width: 1281px){
    .menu{
        width: 15%;
    }
    .grid_container{
        width: 75%;
    }
    .hero_btn{
        font-size: .95rem !important;
        gap: .5rem;
    }
}
@media (max-width: 1255px){
    .hero_btn{
        font-size: .85rem !important;
        gap: .3;
    }
}
@media (max-width: 1192px){
    .hero_btn{
        font-size: .75rem !important;
        gap: .1;
    }
}
@media (max-width: 1130px){
    .brand{
        display: none;
    }
    .menu{
        display: none;
    }
    .brand_mobile{
        display: block;
        margin-top: 4rem;
    }
    .brand_mobile h1{
        font-size: 76px;
        text-align: center;
        margin-bottom: 2rem;
    }
    .brand_mobile h2{
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
        font-size: 1rem;
        line-height: 1.8rem;
        font-weight: 300;
        text-align: center;
    }
    .hero_row{
        margin-top: 3rem;
        justify-content: center;
        align-items: center;
    }
    .grid_container{
        display: grid;
        grid-template-columns: auto; 
        justify-content: center;
        align-content: center;
        grid-template-areas:    
        "connection_one"
        "hero_img"
        "connection_two"
        "hero_img_two"
        "connection_three"
        "hero_btn";
    }
    .connection_one{
        grid-area: connection_one;
    
        height: 129px;
    }
    .hero_img{
        grid-area: hero_img;
    
    }
    .connection_two{
        grid-area: connection_two;
    
        width: 5px;
        height: 129px;
    }
    .connection_two div:first-child{
        position: absolute;
        left: -7px;
        top: -12px;
    }
    .connection_two div:last-child{
        position: absolute;
        bottom: -12px;
        right: -7.5px;
        top: auto;
    }
    .hero_img_two{
        grid-area: hero_img_two;
        min-height: 700px;
        height: 100%;
    }
    .connection_three{
        grid-area: connection_three;
    
        height: 129px;
    }

}
@media (max-width: 768px){
    .hero_row{
        margin-top: 3rem;
    }
    .hero_img_two{
        grid-area: hero_img_two;
        min-height: 600px;
        height: 100%;
    }
}
@media (max-width: 630px){
    .brand_mobile h1{
        font-size: 56px;
    }
    .connection_one{
        height: 80px;
    }
    .connection_two{
        height: 80px;
    }
    .connection_three{
        height: 80px;
    }
    .hero_img_two{
        grid-area: hero_img_two;
        min-height: 500px;
        height: 100%;
    }
    .hero_btn{
        font-weight: 500;
    }
}
@media (max-width: 430px){
    .brand_mobile{
        margin-top: 3rem;
    }
    .brand_mobile h1{
        font-size: 36px;
    }
    .brand_mobile h2{
        font-size: .95rem;
        line-height: 1.5rem;
        text-align: justify;
        width: 90%;
    }
    .hero_img_two{
        grid-area: hero_img_two;
        min-height: 400px;
        height: 100%;
    }
}
@media (max-width: 400px){
    .hero_row{
        margin-top: 2rem;
    }
    .hero_img_two{
        grid-area: hero_img_two;
        min-height: 360px;
        height: 100%;
    }
}
@media (max-width: 375px){
    .brand_mobile h2{
        width: 95%;
    }
    .hero_img_two{
        grid-area: hero_img_two;
        min-height: 300px;
        height: 100%;
    }
}
@media (max-width: 320px){
    .brand_mobile h1{
        font-size: 28px;
    }
    .hero_img,
    .hero_img_two{
        border: 4px solid var(--logo);
    }
}
/***********************
    LATEST NEWS
************************/
.news_row{
    margin-bottom: 5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 3rem;
}
.news_col{
    width: calc((100% - 3rem * 2) / 3.33);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.news_col:hover .img_preview{
    border: 5px solid var(--green);
}
.news_col:hover .line{
    background-color: var(--green);
}
.news_content{
    margin-top: 1rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}
.news_col h2{
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3rem;
    /* transition: all .3s linear; */
}
.img_preview{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 230px;
    max-height: 230px;
    border: 5px solid var(--tab_stroke);
    border-radius: 30px;
    transition: all .3s linear;
}
.news_date{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 1.2rem;
    color: var(--tab_stroke);
}
.news_date i{
    font-size: 15px;
}
.news_txt{
    font-size: 12px;
    line-height: 1.2rem;
    font-weight: 300;
    text-align: justify;
    color: var(--black_logo);
}
@media (max-width: 1512px){
    .news_col{
        width: calc((100% - 3rem * 2) / 3);
    }
    .news_col h2{
        font-size: .85rem;
        line-height: 1.2rem;
    }
}
@media (max-width: 1130px){
    .news_row{
        margin-top: 5rem;
        justify-content: center;
        gap: 3rem;
    }
    .news_col{
        width: calc((100% - 3rem) / 2);
    }
    .news_row .news_col:last-child{
        display: none;
    }
    .img_preview{
        min-height: 250px;
        max-height: 250px;
    }
}
@media (max-width: 768px){
    .news_row{
        margin-top: 4rem;
        gap: 2rem;
    }
    .news_col{
        width: calc((100% - 2rem) / 2);
    }
    .img_preview{
        min-height: 200px;
        max-height: 200px;
    }
}
@media (max-width: 678px){
    .news_col{
        width: 100%;
    }
    .news_row .news_col:nth-child(2){
        display: none;
    }
    .img_preview{
        min-height: 320px;
        max-height: 320px;
    }
    .news_col h2{
        font-size: 21px;
        line-height: 1.8rem;
    }
    .news_txt{
        font-size: 14px;
        line-height: 1.3rem;
    }
}
@media (max-width: 530px){
    .img_preview{
        min-height: 250px;
        max-height: 250px;
    }
    .news_col h2{
        font-size: 1rem;
        line-height: 1.5rem;
    }
    .news_txt{
        font-size: 12px;
        line-height: 1.2rem;
    }
}
@media (max-width: 430px){
    .img_preview{
        min-height: 230px;
        max-height: 230px;
    }
}
@media (max-width: 375px){
    .img_preview{
        min-height: 200px;
        max-height: 200px;
    }
}
@media (max-width: 320px){
    .news_row{
        margin-top: 3rem;
    }
    .img_preview{
        min-height: 180px;
        max-height: 180px;
    }
    .news_col h2{
        font-size: .85rem;
        line-height: 1.3rem;
    }
}
/***********************
    OUR SHOP
************************/
.shop_container{
    width: 82%;
    margin: 0 auto;
    margin-bottom: 5rem;
}
.element{
    transition: all .3s linear;
    background-color: var(--white);
    border-radius: 1.88rem;
    border: 5px solid var(--tab_stroke);
    box-shadow: var(--color_sdw);
    /* height: 31.25rem;
    max-width: 25rem;
    width: 90%; */
    margin: 0 2rem;
    padding: 1.5rem;
    position: relative;
}
.shop_card{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: min-content;
    gap: 10px;
    place-items: space-between;
    grid-template-areas:
    "tags"
    "title"
    "image"
    "arrow";
}
.shop_arrow svg path{
    transition: all .3s linear;
}
.element:hover{
    border: 5px solid var(--green);
}
.element:hover .shop_arrow svg path:nth-child(2){
    fill: var(--green);
}
.element:hover .shop_arrow svg path:nth-child(1){
    fill: transparent;
}
.element:hover .shop_preview{
    border: 3px solid var(--green);
}
.element:active{
    box-shadow: none;
}
.shop_tags{
    grid-area: tags;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shop_tags img{
    width: 65px;
}
.shop_tags img:nth-child(2){
    width: 60px;
}
.shop_card h3{
    grid-area: title;
    width: 100%;
    height: 80px;
    overflow: hidden;
    text-align: center;
    font-size: 26px;
    margin: 1rem 0;
}
.shop_preview{
    grid-area: image;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 250px;
    max-height: 250px;
    border: 3px solid var(--black_logo);
    border-radius: 0.31rem;
    transition: all .3s linear;
}
.shop_arrow{
    grid-area: arrow;
    place-self: end;
    margin-top: 2rem;
}
/********************************************************************/
/*fix bug di fireFox che non legge correttamente la percentuale 120%*/
/* @supports (-moz-appearance:none) {
    .shop_preview > div img {
        width: calc(100% + 350px);
        height: auto;
    }
} */
/********************************************************************/
@media screen and (max-width: 1440px){
    .element{
        margin: 0 .5rem ;
    }
    .shop_preview{
        min-height: 225px;
    }
}
@media screen and (max-width: 1280px){
    .element{
        margin: 0 2rem ;
    }
    .shop_card h3{
        font-size: 24px;
        margin: .8rem 0;
    }
}
@media screen and (max-width: 1024px){
    .element{
        margin: 0 .5rem ;
    }
}
@media screen and (max-width: 900px){
    .shop_preview{
        min-height: 300px;
    }
}
@media screen and (max-width: 430px){
    .element{
        padding: .5rem 1rem;
    }
    .shop_preview{
        min-height: 200px;
    }
    .shop_tags img{
        width: 60px;
    }
    .shop_tags img:nth-child(2){
        width: 55px;
    }
    .shop_card h3{
        font-size: 22px;
    }
}
@media screen and (max-width: 375px){
    .shop_preview{
        min-height: 200px;
    }
    .shop_tags{
        display: none;
    }
    .shop_card h3{
        font-size: 16px;
        line-height: 1.5rem;
        margin: 0;
        margin-top: 1rem;
    }
    .shop_arrow{
        margin: 1rem 0;
    }
}
@media screen and (max-width: 320px){
    .element{
        padding: 0 1rem;
    }
    .shop_preview{
        min-height: 180px;
    }
    .shop_card h3{
        font-size: 15px;
    }
}
/****** SLICK CSS CUSTOM ********/
.slick-list {
    padding: 1rem 0;
}
.shop_slider .slick-next:before, 
.shop_slider .slick-prev:before{
    font-family: 'fontawesome';
    font-size: 35px;
    color: var(--violet);
}
.shop_slider .slick-next:before{
    /* opacity: 1; */
    content: '\f0da';
}
.shop_slider .slick-prev:before{
    /* opacity: 1; */
    content: '\f0d9';
}
/* .shop_slider .slick-next::before:hover, 
.shop_slider .slick-prev::before:hover{
    color: var(--green) !important;
} */
.shop_slider .slick-next, .shop_slider .slick-prev{
    width: auto;
    height: auto;
}
.shop_slider .slick-next, .shop_slider .slick-prev {
    width: auto;
    height: auto;
}
/***********************************/
/***********************
    LEARNING
************************/
.learning_row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}
.learning_col{
    width: 50%;
}
.learning_row div:first-child{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.learning_col h3{
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 3rem;
}
.learning_col p{
    font-weight: 300;
    max-width: 600px;
    text-align: center;
}
.learning_col > a{
    /* will-change: transform; */
    transition: all .3s linear;
    max-width: 38rem;
    width: 100%;
    max-height: 21rem;
    border-radius: 1.25rem;
    border: 5px solid var(--logo);
    box-shadow: var(--color_sdw);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.learning_col >  a svg{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.learning_col >  a:hover{
    /* transform: scale(1.01); */
    border: 5px solid var(--green);
}
.learning_col >  a:active{
    /* transform: scale(1); */
    box-shadow: none;
}
.learning_col >  a svg path,
.learning_col >  a svg circle{
    transition: all 150ms linear;

}
.learning_col >  a:hover svg path{
    fill: var(--green);
}
.learning_col >  a:hover svg circle{
    fill: transparent;
}
.learning_col p a{
    text-decoration: underline;
    color: var(--violet);
}
@media screen and (max-width: 1440px){
    .learning_row div:first-child svg{
        width: 70px;
        height: 70px;
    }
    .learning_col h3{
        font-size: 2.2rem;
    }
    .learning_col p{
        max-width: 560px;
        text-align: center;
    }
    .learning_col >  a{
        max-width: 34rem;
        max-height: 21rem;
    }
}
@media screen and (max-width: 1280px){
    .learning_col >  a{
        max-width: 32rem;
        max-height: 21rem;
    }
}
@media screen and (max-width: 1130px){
    .learning_row{
        flex-direction: column;
        justify-content: center;
    }
    .learning_col{
        width: 100%;
    }
    .learning_col h3{
        font-size: 2.4rem;
        text-align: center;
    }
    .learning_col p{
        max-width: 600px;
    }
    .learning_col >  a{
        max-width: 38rem;
        margin: 0 auto;
    }
}
@media screen and (max-width: 430px){
    .learning_row div:first-child{
        gap: 1rem;
    }
    .learning_col h3{
        font-size: 1.5rem;
        line-height: 2rem;
        font-weight: 500;
    }
    .learning_col >  a{
        max-height: 24rem;
    }
    .learning_col >  a svg{
        width: 90px;
        height: 90px;
    }
}
@media screen and (max-width: 375px){
    .learning_col >  a svg{
        width: 80px;
        height: 80px;
    }
}
@media screen and (max-width: 320px){
    .learning_col p{
        font-size: .85rem;
        line-height: 1.5rem;
    }
}
/***********************
        GALLERY
************************/
.gallery{
    margin: 10rem auto;
    margin-bottom: 20rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box{
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;

    animation: animate 20s linear infinite;
}
@keyframes animate
{
    0%{
        transform: perspective(1000px) rotateY(0deg);
    }
    100%{
        transform: perspective(1000px) rotateY(360deg);
    }
}
.box span{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(400px);
    -webkit-box-reflect: below 0 linear-gradient(transparent, transparent, #0004);
    border: 1px solid var(--black_logo);
    background-color: var(--white);
}
/* Creazione dell'effetto di riflessione con un elemento pseudo ::before per firefox*/
.box span::before {
    content: "";
    position: absolute;
    bottom: -100px; /* Regola la distanza della riflessione dal box */
    left: 0;
    width: 100%;
    height: 200px; /* Regola l'altezza della riflessione */
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
    transform: scaleY(-1);
    opacity: 0.3; /* Regola l'opacità della riflessione */
  }
  .box span img{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
  }
  .gallery_row{
    display: none;
}
  @media screen and (max-width: 1000px){
    .gallery{
        display: none;
    }
    .gallery_row{
        /* display: block; */
        display: flex;
        justify-content: center;
        align-items: center;
        /* gap: 1rem; */
        margin-bottom: 5rem;
        margin-top: 4rem;
    }
    .gallery_col{
        width: 20rem;
        height: 20rem;
        border-radius: 0.19rem;
        border: 4px solid var(--black_logo);
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .gallery_col img{
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
    }
  }
  @media screen and (max-width: 880px){
    /* .gallery_row{
        gap: 3rem;
    } */
    .gallery_col{
        /* max-height: 20rem; */
        height: auto;
        width: auto;
        aspect-ratio: 1/1;
    }
  }
  /* @media screen and (max-width: 768px){
    .gallery_row div:nth-child(2){
        display: none;
    }
  }
  @media screen and (max-width: 490px){
    .gallery_col{
        width: 20rem;
        height: 20rem;
    }
  }
  @media screen and (max-width: 390px){
    .gallery_col{
        width: 18rem;
        height: 18rem;
    }
  }
  @media screen and (max-width: 350px){
    .gallery_col{
        width: 16rem;
        height: 16rem;
    }
  } */
