/* 
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 */
a,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
}

.pesa-image-carousel .elementor-image-carousel img {
  height: 23vw;
  width: auto;
  object-fit: cover;
}

.pesa-image-carousel figure.swiper-slide-inner {
    width: fit-content;
}

.pesa-image-carousel .swiper-slide {
    width: fit-content!important;
}

span.elementor-button-content-wrapper{
	letter-spacing: 0;
}

/* TABLET ≤ 1024px */
@media (max-width: 1024px) {

  /* immagini un po' più alte per compensare il viewport */
  .pesa-image-carousel .elementor-image-carousel img {
    height: 32vw; /* da 23vw → 32vw */
    width: auto;
  }

  /* slide “auto-larghezza” su tablet */
  .pesa-image-carousel figure.swiper-slide-inner {
    width: fit-content;
  }
  .pesa-image-carousel .swiper-slide {
    width: fit-content !important;
  }
}

/* MOBILE-LARGE ≤ 768px */
@media (max-width: 768px) {

  /* su mobile le slide devono occupare tutta la larghezza */
  .pesa-image-carousel .swiper-slide {
    width: 100% !important;
  }
  .pesa-image-carousel figure.swiper-slide-inner {
    width: 100%;
  }

  /* immagine più alta */
  .pesa-image-carousel .elementor-image-carousel img {
    width: 100%;
    height: 55vw; /* aumenta l'altezza relativa per dare respiro */
    object-fit: cover;
    display: block; /* evita spazi sotto l'immagine */
  }

  /* pulsanti: migliora la tap area */
  span.elementor-button-content-wrapper{
    letter-spacing: 0;
  }
}

/* MOBILE ≤ 480px */
@media (max-width: 480px) {

  /* slide a tutta larghezza, sempre */
  .pesa-image-carousel .swiper-slide {
    width: 100% !important;
  }
  .pesa-image-carousel figure.swiper-slide-inner {
    width: 100%;
  }

  /* immagine più alta per schermi stretti */
  .pesa-image-carousel .elementor-image-carousel img {
    width: 100%;
    height: 62vw; /* da 55vw → 62vw */
    object-fit: cover;
  }

  /* touch target */
  .elementor-button,
  .elementor-button-link {
    min-height: 44px;
  }
}

