/* 
Theme Name: Amecstudio Theme
Theme URI: https://github.com/elementor/hello-theme/
Description: Elementor hello child theme su misura
Author: Amecstudio
Author URI: https://www.stilverso.it/
Template: hello-elementor
Version: 1.0.1
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
*/

/* =========================================================
   OVERLAY ORGANICO
   ========================================================= */

.overlay-organico {
  position: relative !important;
  isolation: isolate;
  box-sizing: border-box !important;

  width: min(920px, 65vw) !important;
  max-width: 100% !important;
  min-height: 300px !important;

  margin: 0 auto !important;
  padding: 65px 85px !important;

  background: transparent !important;
  overflow: visible !important;
}

/* Sagoma organica */
.overlay-organico::before {
  content: "";
  position: absolute;
  inset: -12px -18px;
  z-index: -1;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 360' preserveAspectRatio='none'%3E%3Cpath d='M105 45 C230 43 365 52 480 31 C570 14 635 10 695 34 C737 51 760 66 807 62 C875 57 932 72 959 112 C984 150 985 229 956 270 C929 308 846 306 750 302 C636 297 558 314 465 321 C370 329 317 311 248 278 C188 249 123 241 72 220 C30 202 15 169 21 125 C27 79 56 50 105 45 Z' fill='%23fffdf5' fill-opacity='.92' stroke='%23b09c49' stroke-opacity='.58' stroke-width='1.4'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;

  pointer-events: none;
}

/* Contenuto sopra la sagoma */
.overlay-organico > * {
  position: relative !important;
  z-index: 2 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .overlay-organico {
    width: min(820px, 82vw) !important;
    min-height: 290px !important;
    padding: 55px 65px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .overlay-organico {
    width: 90vw !important;
    min-height: 245px !important;
    padding: 40px 28px !important;
  }

  .overlay-organico::before {
    inset: -8px -10px;
  }
}

/* =========================================================
   CARD STRUTTURE - ALTEZZA UGUALE
   ========================================================= */

/* Swiper: tutte le slide della riga hanno la stessa altezza */
.elementor-widget-loop-carousel .swiper-wrapper {
  align-items: stretch !important;
}

/* Ogni slide deve essere estensibile */
.elementor-widget-loop-carousel .swiper-slide {
  height: auto !important;
  display: flex !important;
}

/* Loop item Elementor */
.elementor-widget-loop-carousel .swiper-slide .e-loop-item {
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* =========================================================
   CARD
   ========================================================= */

.mdm-card-struttura {
  width: 100% !important;
  height: 100% !important;

  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* =========================================================
   BODY
   Tutto quello che sta sotto l'immagine
   ========================================================= */

.mdm-card-body {
  width: 100% !important;

  display: flex !important;
  flex-direction: column !important;

  flex: 1 1 auto !important;
}

/* =========================================================
   TITOLO
   Riservo sempre spazio per massimo 2 righe
   ========================================================= */

.mdm-card-title {
  min-height: 2.6em !important;
  flex: 0 0 auto !important;
}

.mdm-card-title .elementor-heading-title {
  margin: 0 !important;
}

/* =========================================================
   INDIRIZZO
   Riservo sempre spazio per massimo 2 righe
   ========================================================= */

.mdm-card-address {
  min-height: 3em !important;
  flex: 0 0 auto !important;
}

.mdm-card-address .elementor-icon-list-items {
  margin: 0 !important;
}

/* =========================================================
   FEATURES
   ========================================================= */

.mdm-card-features {
  flex: 0 0 auto !important;
}

/* =========================================================
   BOTTONE
   Viene spinto in fondo al BODY
   ========================================================= */

.mdm-card-button {
  margin-top: auto !important;
  flex: 0 0 auto !important;
}
