/* 
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 */

.splide__track {
  overflow: visible;
}
.custom-splide {
  padding: 40px 10px;
}

.splide__slide {
  display: flex;
  height: auto;
}

.carousel-item {
  font-family: "Montserrat", Sans-serif;
  background: #fff;
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  align-items: center;
}

.carousel-img {
  margin-top: -80px;
  margin-bottom: 20px;
}

.carousel-img img {
  width: auto;
  height: auto;
  max-height: 330px;
  display: block;
  margin: 0 auto;
}

.carousel-title {
  font-weight: 700;
  font-size: 1.625rem;
  color: var(--e-global-color-accent);
  margin: 0 0 10px;
}

.carousel-benefici {
  font-weight: 600;
  font-size: 1.063rem;
  color: var(--e-global-color-text);
  margin-bottom: 15px;
}

.carousel-excerpt {
  font-weight: 400;
  font-size: 1.063rem;
  color: var(--e-global-color-text);
  margin-bottom: 20px;
}

.carousel-button {
  font-weight: 700;
  font-size: 1.188rem;
  background: var(--e-global-color-primary);
  color: #fcf9f8 !important;
  text-decoration: none;
  padding: 12px 24px;
  border: solid var(--e-global-color-primary);
  border-radius: 50px;
  display: inline-block;
  margin-top: auto;
  transition: background 0.3s ease;
}

.carousel-button:hover {
  background-color: white;
  color: var(--e-global-color-text) !important;
}

@media (hover: hover) and (pointer: fine) {
  .custom-splide .splide__slide:hover .carousel-item {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
    transition: box-shadow 0.3s ease;
  }

  .custom-splide .splide__slide:hover .carousel-img img {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
  }
}

@media (max-width: 750px) {
  .carousel-item {
    padding: 40px 20px;
  }
}
@media (max-width: 1024px) {
  .carousel-item {
    padding: 40px 25px;
  }
}
