/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/************MAH************/
/*** Griglia Prodotti con box flip ***/
/* Contenitore con prospettiva 3D */
.product .flip-card {
    position: relative;
    width: 100%;
    perspective: 1000px;
    aspect-ratio: 1 / 1.5; /* larghezza:altezza */
    /*height: 100%; /* oppure altezza fissa, es: 300px */
}

/* Parte interna rotabile */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

/* Effetto rotazione al passaggio del mouse */
.products .product:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Facce della card */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    top: 0;
    left: 0;
}

/* Fronte: immagine */
.flip-card-front {
    z-index: 1;
}

/* Retro: abstract */
.flip-card-back {
    transform: rotateY(180deg);
    background-color: #BF151D;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    z-index: 2;
}
.product-abstract {
    font-size: 20px;
    line-height: 1;
}
.read-more-button {
  margin-top: 0 px;
  display: inline-block;
  background: #fff;
  color: #BF151D;
  padding: 6px 20px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}

/* Disabilita flip su dispositivi con schermo max 768px (tablet e smartphone) */
@media (max-width: 768px) {
  .flip-card-inner {
    transform: none !important;
  }

  .flip-card-back {
    display: none !important;
  }
}
/*** END Griglia Prodotti con box flip ***/
