
/* #####################################
   Reset y estilos globales
##################################### */
body{
    overflow-x: hidden;
    background-color: #F7F5F2;
}
html, body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

footer {
  position: relative;
  margin-top: 6rem;
}

main {
    width: 100%;
    flex: 1;
}

/* #####################################
   BAR
##################################### */

.NavBarButtons li {
  display: inline-block;
  margin-right: 3.5rem;
}


.NavBarButtons {
  display: flex;
  gap: 2rem; 
}

/* #####################################
   Title
##################################### */

h1{
    font-family: "DM Sans", sans-serif;
    color: #434240;
    text-align: center;
    font: sans serif;
}

/* #####################################
   Objets
##################################### */

.item span{
    font-family: "Libre Baskerville", serif;
}

.item {
    font-family: "DM Sans", sans-serif;
    width: 12rem;
    height: 11rem;
    background-color: white;
    padding: 1.8rem 1.6rem;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    align-items: center;
    justify-content: center;
}

.img-bg {
    width: 100%;
    padding: 1rem 1rem;
    background-color: #E7E7E7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-bg img {
    width: 80%;
    height: 80%;
    object-fit: contain;

}

.item img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
    transition: 0.3s;
}

.titulo,
.texto {
    opacity: 0;
    transition: opacity 0.3s ease;
}


.titulo {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: clamp(0.5rem, 1.1vw, 1rem);
}

.texto {
    font-size: 0.8rem;
    margin-top: 0.1rem;
    max-height: 0
}

.item:hover .texto{
    max-height: 100px
}


.items {
    opacity: 1;
    transition: opacity 0.5s ease;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 20vw));
    row-gap: 1rem;   
    column-gap: 0.1vw;  
    justify-content: center;
}


.item:hover {
    height: 17rem; 
}

.item:hover .titulo,
.item:hover .texto {
    opacity: 1;
}

/*
#################
    General Style
################
*/

h1{
    font-family: "Libre Baskerville", serif;
}

/*
##############################
    Mobile adjustments
###############################
*/

/*###################
    Lines visibility
#####################*/

.LinesMenu {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.LinesMenu button{
    transition: transform 0.3s ease;;
    background: none;
    color: #434240;
    border: none;
    font-family: "Libre Baskerville", serif;
}

.LinesMenu button:hover{
    transform: scale(1.05);
        color: #676766;
}

.NoDisponibleText{
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 6rem;
}
.invisible{
    opacity: 0;
    pointer-events: none;
}

.NoDisponibleText.visible{
    color: #434240;
    opacity: 1;
    font-weight: 100;
    font-family: "Libre Baskerville", serif;
}

@media (max-width: 768px) {

    .NoDisponibleText{
        font-size: clamp(1rem, 2rem, 3rem);;
    }

    .titulo {
        font-weight: bold;
        margin-bottom: 0.5rem;
        font-size: clamp(0.5rem, 0.9vw, 1rem);
    }

    .texto {
        font-size: 0.8rem;
        margin-top: 0.1rem;
        max-height: 0;
    }
    main {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .item {
        height: 17rem;
    }

    .titulo,
    .texto {
        opacity: 1;
    }

    .titulo {
        font-size: 1rem;
    }

    .texto {
        max-height: 100px;
    }

    .items {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}


