/*LOGO-MOTTO*/
.logo_motto {
    text-align: center;
    padding: 20px;
}

.logo_motto img {
    height: clamp(100px, 20vw, 200px);
    width: auto;
    animation: fall 2s ease-in-out;  
}

.logo_motto h2 {
    color: rgba(255, 255, 255, 0.74);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeIn 3s ease-in-out;  
    font-size: clamp(12px, 1.5vw, 40px);
}

.sfondo_logo {
    height: 50vh;
    /*background: linear-gradient(rgba(58, 34, 20, 0.7), rgba(121, 83, 61, 0.664), rgb(107, 81, 66)), url('../images//home/sfondo_legno.jpg') no-repeat center center;*/
    background: linear-gradient(rgba(88, 74, 74, 0.685),rgb(107, 81, 66)), url('../images//home/sfondo_legno.webp') no-repeat center center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.falling {
    animation: fall 2s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    65%{
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/*LAVORI OFFERTI*/
.lavori {
    margin-top: 5vh;
    text-align: center;
    color: rgba(255, 255, 255, 0.74);
}

.container-cube {
    margin-top: 150px;
    display: grid;
    grid-template-columns: repeat(3, 10vw); /* Due colonne */
    grid-template-rows: repeat(2, 2vw); /* Tre righe */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12vw; /* Spazio tra i cubi */
    margin-bottom: 20vh;
}

@media (max-width: 1200px){
    .container-cube {
        gap: 150px; /* Spazio tra i cubi */
    }
}


.cube {
    width: clamp(130px, 11vw, 200px);
    height: clamp(110px, 9vw, 200px);
    box-shadow: 4px 5px 4px 0px rgba(0, 0, 0, 0.2);
}

.cube-descr{
    margin-bottom: 5px;
    width: clamp(130px, 11vw, 200px);
    border-color: black;
    border-style: solid;
    border-width: 3px;
    background-color: rgba(0, 0, 0, 0.404);

    font-size: clamp(10px, 1vw, 30px);
}

.cube-animation{
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.cube-animation:hover{
    transform: scale(1.2);
}

#tapparelle{
    position: relative;
    background-image: url(../images/home/c_persiana.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
}
#tapparelle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.24);; 
    z-index: 1; 
}

#mobile{
    position: relative;
    background-image: url(../images/home/mobili.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
}
#mobile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.24);; 
    z-index: 1; 
}

#porta {
    position: relative;
    background-image: url(../images/home/porta.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#porta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.24);; 
    z-index: 1; 
}

#serramento{
    position:relative;
    background-image: url(../images/home/serramento.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
}
#serramento::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.24);; 
    z-index: 1; 
}

#arredamento{
    position: relative;
    background-image: url(../images/home/cucina.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
}
#arredamento::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.24);; 
    z-index: 1; 
}

#zanzariera{
    position: relative;
    background-image: url(../images/home/zanzariera.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
}
#zanzariera::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.24);; 
    z-index: 1; 
}

@media (max-width: 768px) {
    .container-cube {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Due colonne */
        grid-template-rows: repeat(3, auto); /* Tre righe */
        gap: 10vw; /* Spazio tra i cubi (opzionale) */
        justify-content: center; 
        align-items: center;
        width: fit-content; /* Adatta la larghezza al contenuto */
        margin: 0 auto; /* Centra il contenitore stesso */
    }
    

    
}

/*CARD LAVORI SVOLTI*/
@media (max-width: 768px) {
      
      .card {
        margin-bottom: 20px;
      }
}

@media (max-width: 1200px){
  .card{
    margin-top: 20px;
  }
}
