body
{
    background-color: #212121;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    color: white;
    font-size: 1.5vh;
}
.main
{
    /* height: 100vh; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.image1
{
    width: 30vh;
    /* width: 75%; */
    /* width: 20vw; */
    /* width: 70%; */
    display: flex;
    justify-content: center;
    align-items: center;
}
hr.linea {
    position: relative;
    width: 75%;            /* Lunghezza della linea */
    border: none;          /* Rimuove il bordo predefinito */
    height: 1px;           /* Altezza della linea */
    background-color: grey; /* Colore di sfondo grigio */
    margin: 20px 0;        /* Spaziatura sopra e sotto */
  }
  hr.linea2 {
    position: relative;
    margin-top: 200px;
    width: 75%;            /* Lunghezza della linea */
    border: none;          /* Rimuove il bordo predefinito */
    height: 1px;           /* Altezza della linea */
    background-color: grey; /* Colore di sfondo grigio */
    margin: 20px 0;        /* Spaziatura sopra e sotto */
  }
/* .btn1
{
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;

    border: none;
    cursor: pointer;
    width: 50vw;
    border-radius: 5px;
    font-size: 1.2em;
} */
/* .btn2
{

    background-color: #ff0000;
    color: white;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    width: 50vw;
    border-radius: 5px;
    font-size: 1.2em;
} */
/* .btn3
{

    background-color: #ff8800;
    color: white;
    padding: 14px 20px;

    border: none;
    cursor: pointer;
    width: 50vw;
    border-radius: 5px;
    font-size: 1.2em;
} */
.desc
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    margin-top: 5px;
    width: 50%;
    /* height: auto; */
    font-size: 1.2em;
    text-align: justify;
    /* border: 1px solid white; */
    letter-spacing: 1px;
    border-radius: 10px;;
    /* background-color: rgb(65, 65, 65, 0.5); */
}
.title1, .title2
{
    margin: 0;
}
.title2
{
    display: flex;
    flex-direction: row;
}
.txt-orange
{
    display: inline;
    color: #ff6a00;
    text-transform: uppercase;
}
/* .paragrafo 
{
    margin-top: 10px;
    opacity: 0;
    transition: all 1s ease-in-out;
    transition-delay: 1s; 
}
  
.paragrafo.visibile 
{
    opacity: 1;
} */
.paragrafo 
{
    opacity: 0;
    margin-top: 10px;
    transition: all 1s;
    transition-delay: 0.2s; /* Ritardo di 3 secondi */
}



.paragrafo-opacity
{
    opacity: 1 !important;
}

.paragrafo2
{
    margin-top: 10px;
    display: none;
}
#nascondi
{
    display: none;
}

.griglia
{
    margin-top: 5px;
    /* padding: 10px 14px; */
    width: 75%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 7.5vh;
    grid-gap: 10px;
    /* margin: 20px; */
    opacity: 0;
    transition: all 1s;
    transition-delay: 0.5s;
}
.griglia-opacity
{
    opacity: 1 !important;
}
.item-griglia
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    color: white;
    /* background-color: rgb(173, 173, 0); */
    font-size: 1.0em;
    border-radius: 10px;
    /* border: 1px solid yellow; */
    border: 1px solid white;
}

/************ANIMATION**********/
.item-griglia
{
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.item-griglia:hover
{
    background-color: #F44336;
}
.item-griglia:before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    transform: translateX(-100%) rotate(45deg);
    transition: all 0.5s;
}

.item-griglia:hover:before
{
    transform: translateX(100%) rotate(45deg);
}

/* CARD */
.card-griglia
{
    margin-top: 5px;
    width: 75%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* grid-auto-rows: 7.5vh; */
    grid-gap: 10px;
    height: 150px;

}
.card
{
    position: relative;
    transition: 0.5s;
    height: 150px;
    background-color: #212121;
    border: 1px solid white;
}
.content
{
    margin-top: 60px;
}
.card:hover .face
{
    background-color: #F44336;
}
.card:hover .face2
{
    background-color: #F44336;
}
.face:before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #fff;
    transform: translateX(-100%) rotate(45deg);
    transition: all 0.3s;
}
.face:hover:before
{
    transform: translateX(100%) rotate(45deg);
}

.face
{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.face2 h2
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2.1vh;
}
.content h2, .content ul
{
    font-size: 1.7vh;
}
.face2
{
    background-color: #212121;
    color: white;
    transition: all 0.5s;
    text-transform: uppercase;
}
.card:hover .face2
{
    height: 60px;
    width: 80%;
    border-radius: 10px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    /* background-color: #212121; */

}
.face1
{
    position: absolute;
    /* margin-top: 15px; */
    text-align: center;
    background-color: #212121;
    color: white;
    font-size: 2.2vh;
}
.face ul
{
    list-style: none;
    padding: 0;
    font-size: 1.3vh;
}
.content h2
{
    font-size: 1.7vh;
    text-transform: uppercase;
}

/*  */
/************TEST BTN************/

.btn1
{
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #212121;
    border: 1px solid white !important;
    color: white;
    padding: 14px 14px;

    border: none;
    cursor: pointer;
    width: 75vw;
    border-radius: 5px;
    font-size: 1.2em;

    /* opacity: 0;
    transition: all 1s;
    transition-delay: 2.0s; */
}
/* body:hover .btn1
{
    opacity: 1 !important;
} */

.btn1
{
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.btn1:hover
{
    background-color: rgb(68, 255, 0);
}
.btn1:before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    transform: translateX(-100%) rotate(45deg);
    transition: all 0.5s;
}

.btn1:hover:before
{
    transform: translateX(100%) rotate(45deg);
}


/************TEST BTN************/
.btn-detail
{
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #212121;
    border: 1px solid white !important;
    color: white;
    padding: 14px 14px;

    border: none;
    cursor: pointer;
    width: 50vw;
    border-radius: 5px;
    font-size: 1.2em;
}

.btn-detail
{
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.btn-detail:hover
{
    background-color: rgb(214, 225, 0);
}
.btn-detail:before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    transform: translateX(-100%) rotate(45deg);
    transition: all 0.5s;
}

.btn-detail:hover:before
{
    transform: translateX(100%) rotate(45deg);
}


/**IMAGE***/
.container-image
{
    /* width: 500px; */
    /* width: 100%; */
    width: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 500px; */
    position: relative;
    overflow: hidden;
}
img
{
    width: 100%;
    transition: all 1.5s;
}
.caption
{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;    
    justify-content: center;
    align-items: center;
    color: white;

    text-align: center;
    transition: all 1.0s;
    transform: translateX(-100%);
}   
.caption h1
{
    /* text-transform: uppercase; */
    margin: 0;
}
.caption p
{
    font-size: 28px;
    text-transform: capitalize;
}

.container-image:hover .caption
{
    background-color: rgba(0,0,0,0.5);
    transform: translateX(0);
}
.container-image:hover img
{
    transform: scale(1.3) rotate(-15deg);

}