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

/*PADDING SEZIONI*/
.ele-section-inline {
 padding-inline: clamp(1rem, 0.833rem + 0.741vw, 1.5rem) ;
}

.ele-section-xs {
 padding-block: clamp(1rem, 0.833rem + 0.741vw, 1.5rem);
 padding-inline: clamp(1rem, 0.833rem + 0.741vw, 1.5rem) ;
}

.ele-section-s {
 padding-block: clamp(1.5rem, 1.5rem + 0vw, 1.5rem);
 padding-inline: clamp(1rem, 0.833rem + 0.741vw, 1.5rem) ;
}

.ele-section-m {
 padding-block: clamp(1.5rem, 1.167rem + 1.481vw, 2.5rem);
 padding-inline: clamp(1rem, 0.833rem + 0.741vw, 1.5rem);
}

.ele-section-d {
 padding-block: clamp(3rem, 2.333rem + 2.963vw, 5rem);
 padding-inline: clamp(1rem, 0.833rem + 0.741vw, 1.5rem) ;
}

.ele-section-l {
 padding-block: clamp(4.5rem, 3.5rem + 4.444vw, 7.5rem);
 padding-inline: clamp(1rem, 0.833rem + 0.741vw, 1.5rem) ;
}

.ele-section-xl {
 padding-block: clamp(6rem, 4.667rem + 5.926vw, 10rem);
 padding-inline: clamp(1rem, 0.833rem + 0.741vw, 1.5rem);
}
/*FINE PADDING SEZIONI*/

/* Slide In From The Top Option */

.header-2 {
 transform: translatey(-104px);
 -moz-transition: all .3s ease!important;
 -webkit-transition: all .3s ease!important;
 transition: all .3s ease!important;
 width: 100%!important;
}


.elementor-sticky--effects.header-2  {
 height: auto!important;
 transform: translatey(0px);
}

.elementor-sticky--effects.header-1 {
 display: none!important;
}

/*fine Slide*/

/*WPML*/

.wpml-ls-legacy-dropdown {
    width: 9em;
    max-width: 100%;
}

.wpml-ls-legacy-dropdown a {
	border:none;
}

.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover>a, .wpml-ls-legacy-dropdown a:focus, .wpml-ls-legacy-dropdown a:hover {
	background-color:transparent !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
	border:none !important;
}

.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:after {
    content: "\f078"; /* codice unicode per chevron-down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em; /* puoi regolare la dimensione */
	border:none;
}

.wpml-ls-legacy-dropdown .wpml-ls-flag {
	border-radius:0px;
}

/* BOX PRINCIPALE */
.componente-toggle {
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-bottom: 0px;
  overflow: hidden;
  transition: background 0.3s ease;
}

/* WRAPPER INTERNO */
.componente-toggle-inner {
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}

/* HEADER: IMMAGINE + TITOLO + FRECCIA */
.componente-toggle-top {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 20px;
}

.componente-toggle-img {
  aspect-ratio: 1 / 1;
  width: 30%; /* mantiene la proporzione della colonna */
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 20px;
}

.componente-toggle-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.componente-toggle-title {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.componente-toggle-title h4 {
  margin: 0;
  font-size: 2rem;
	font-weight:600;
	color:#1d1d1b;
}

/* ICONA FRECCIA */
.componente-toggle-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  pointer-events: none;
}

/* CONTENUTO NASCOSTO */
.componente-toggle-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px 0; /* padding bottom 0 iniziale */
  opacity: 0;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* STATO APERTO */
.componente-toggle.open {
  background-color: rgba(236, 236, 236, 0.55);
}

.componente-toggle.open .componente-toggle-content {
  max-height: 800px; /* valore massimo stimato (dipende dalla quantità di contenuto) */
  padding: 0 20px 20px;
  opacity: 1;
}

.componente-toggle.open .componente-toggle-arrow {
  transform: rotate(180deg);
}

/* GRIGLIA RESPONSIVE */
.componenti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start; /* 👈 forza l’allineamento in alto */
}

/* 2 colonne per tablet */
@media (max-width: 1024px) {
  .componenti-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 colonna per mobile */
@media (max-width: 768px) {
  .componenti-grid {
    grid-template-columns: 1fr;
  }
	.componente-toggle {
    margin-bottom: 0;
  }
}

.componenti-section .componenti-gruppo {
  padding-bottom: 3.5em;
  border-bottom: 1px solid #ddd;
}

.componenti-gruppo-title {
	padding-top: 1em;
}

.componenti-gruppo.is-last {
  border-bottom: none;
  padding-bottom: 0;
}

/*Formattazione stile tabella tablepress*/
.tablepress>:where(thead,tfoot)>tr>* {
	text-transform:uppercase;
}

/*Formattazione card prodotto utilizzato in applicazioni*/

.card-prodotto {
  min-width: 280px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.card-prodotto:hover {
  transform: translateY(-10px);
}

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
  padding: 20px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-img {
  width: 100%;
  height:220px;
  align-items: center;       /* centra verticalmente */
  text-align: center;   /* centra orizzontalmente */
  overflow: hidden;
  aspect-ratio: 4 / 2; /* oppure 1 / 1 per quadrato, o personalizzato */
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
	position:relative;
}

.card-img img {
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: container;
  object-position: center;
  display: inline-block;
}

.card-icone {
    display: flex;
    gap: 10px;
    left:0px;
	top:0px;
}

.icona-tooltip img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  cursor: pointer;
}

/* Tooltip browser-native tramite attributo title */
.icona-tooltip img:hover {
  opacity: 0.85;
}

.card-meta {
  display: flex;
  flex-direction: column;
	flex: 1 1 auto;
  gap: 20px;
}

.card-categoria {
  font-size: 16px;
  text-transform: uppercase;
  color: #0087c5;
	font-weight: 500; 
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: #1d1d1b !important;
}

.card-riassunto {
  font-size: 16px;
  color: #444;
  flex-grow: 1;
  margin: 0;
}

.card-btn {
	align-self: flex-start;
	 display: inline-flex;
  align-items: center;
	gap: 15px;
  margin-top: auto;
  background: #0087c5;
  color: #fff;
  padding: 12px 24px;
	width: fit-content;
  text-align: center;
	text-transform:uppercase;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
	font-family: Helvetica, sans-serif;
  transition: background 0.3s ease;
	line-height: 1;
}

.card-btn i {
  font-size: 15px;
}

.card-btn:hover {
  background: #584d93;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Tablet (≤1024px): 2 colonne */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (≤768px): 1 colonna */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.product-applications-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:30px !important;
}

@media (max-width:1024px){
  .product-applications-grid{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:767px){
  .product-applications-grid{ grid-template-columns:1fr !important; }
}

.application-card{
  position:relative !important;
  display:block !important;
  min-height:416px !important;
  border-radius:3px !important;
  overflow:hidden !important;
  text-decoration:none !important;

  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;

  transform:translateY(0) !important;
  transition:transform 200ms ease !important;
}

.application-card:hover{ transform:translateY(-10px) !important; }

.application-card::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  background:linear-gradient(180deg, rgba(28,30,60,0) 0%, rgba(28,30,60,1) 100%) !important;
  opacity:0.5 !important;
  z-index:1 !important;
}

.application-card__content{
  position:absolute !important;
  inset:0 !important;
  z-index:2 !important;

  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;

  padding:24px !important;
}

.application-card__content h3{
  color:#fff !important;
  margin:0 0 10px 0 !important;
}

.application-card__content h5{
  color:#fff !important;
  margin:0 !important;
}