/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.4.1760634222
Updated: 2025-10-16 17:03:42

*/

/* ===== XG Cascade – Light UI su sfondo scuro ===== */
.xg-cascade{
  --xg-text: #eaeef3;              /* testo etichette su dark */
  --xg-muted: #c9d2df;             /* testo secondario */
  --xg-line: rgba(255,255,255,.14);/* bordi soft su dark */
  --xg-focus: #60a5fa;             /* blu focus */
  --xg-field-bg: #ffffff;          /* campi chiari */
  --xg-field-text: #0f172a;        /* testo dentro ai campi */
  --xg-placeholder: #6b7280;       /* placeholder input */
  --xg-btn-bg: #f3f4f6;            /* bottone chiaro */
  --xg-btn-text: #111827;          /* testo bottone */
  --xg-btn-bg-hover: #e5e7eb;      /* hover bottone */
  --xg-shadow: 0 6px 24px rgba(0,0,0,.24);

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px 16px;
  align-items: end;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px 14px;
  border: 1px solid var(--xg-line);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.06); /* leggera trasparenza chiara su dark */
  box-shadow: var(--xg-shadow);
}

/* Campi in griglia responsive */
.xg-cascade .xg-field{
  grid-column: span 12;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
@media (min-width: 560px){
  .xg-cascade .xg-field{ grid-column: span 6; }
}
@media (min-width: 860px){
  .xg-cascade .xg-field{ grid-column: span 4; }
}

/* Etichette */
.xg-cascade .xg-field > span{
  color: var(--xg-text);
  font-size: .92rem;
  letter-spacing: .2px;
}

/* Select “card-like” */
.xg-cascade select{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: .78rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--xg-line);
  background: var(--xg-field-bg);
  color: var(--xg-field-text);
  font-size: .98rem;
  line-height: 1.1;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .02s ease;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.04);
  background-image:
    url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23343a40' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .55rem center;
  background-size: 18px;
  padding-right: 2.2rem; /* spazio per freccia */
}

.xg-cascade select:focus{
  border-color: var(--xg-focus);
  box-shadow: 0 0 0 3px rgba(96,165,250,.35);
}

.xg-cascade select:active{ transform: scale(.999); }

.xg-cascade select:disabled{
  opacity: .55;
  cursor: not-allowed;
}

/* Pulsante invio + badge conteggio */
.xg-cascade .xg-submit{
  grid-column: span 8;
  padding: .85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--xg-line);
  background: var(--xg-btn-bg);
  color: var(--xg-btn-text);
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background-color .2s ease, transform .02s ease, box-shadow .2s ease;
  box-shadow: 0 3px 14px rgba(0,0,0,.16);
}
.xg-cascade .xg-submit:hover{ background: var(--xg-btn-bg-hover); }
.xg-cascade .xg-submit:active{ transform: translateY(1px); }
.xg-cascade .xg-submit:disabled{
  opacity: .65; cursor: not-allowed;
}

.xg-total{
  grid-column: span 4;
  justify-self: end;
  align-self: center;
  color: var(--xg-muted);
  font-size: .92rem;
  padding: .4rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--xg-line);
  background: rgba(255,255,255,.08);
  white-space: nowrap;
}

@media (max-width: 720px){
  .xg-cascade .xg-submit{ grid-column: span 12; }
  .xg-total{ grid-column: span 12; justify-self: start; margin-top: -4px; }
}

/* Stato “zero risultati” sul bottone */
.xg-cascade .xg-submit[disabled]{ background: #f9fafb; color: #9ca3af; }

/* Accessibilità focus visibile per tastiera */
.xg-cascade select:focus-visible,
.xg-cascade .xg-submit:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(96,165,250,.35);
}

/* Riduzione animazioni per chi lo preferisce */
@media (prefers-reduced-motion: reduce){
  .xg-cascade *{ transition: none !important; }
}

/* Placeholder “coerente” sui select (quando simulati da plugin/UA) */
.xg-cascade select option[disabled][selected]{ color: var(--xg-placeholder); }

/* Variante compatta (opzionale): aggiungi .xg-cascade--compact al form */
.xg-cascade.xg-cascade--compact{
  gap: 10px 12px; padding: 14px;
}
.xg-cascade.xg-cascade--compact select{ padding: .68rem .85rem; border-radius: 10px; }
.xg-cascade.xg-cascade--compact .xg-submit{ padding: .7rem .9rem; border-radius: 10px; }


/* --- TIPLOGIA (solo questo select) --- */
#filter-tipologia select,
.xg-filter-tipologia select{
  width:100%;
  height:56px;
  padding:0 44px 0 18px;
  border-radius:9999px;               /* pill */
  border:1px solid #E5E7EB;
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  font:500 16px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;

  /* freccetta */
  background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px 16px;
}

#filter-tipologia select:hover,
.xg-filter-tipologia select:hover{ border-color:#D1D5DB; }

#filter-tipologia select:focus,
.xg-filter-tipologia select:focus{
  outline:0;
  border-color:#111;
  box-shadow:0 0 0 4px rgba(17,17,17,.06);
}

#filter-tipologia select:disabled,
.xg-filter-tipologia select:disabled{
  opacity:.55; cursor:not-allowed; box-shadow:none;
}

/* Spazio verticale se serve */
#filter-tipologia{ margin:12px 0; }


/* Assicura un contenitore di riferimento */
.elementor-loop-container .e-loop-item,
.elementor-loop-container .elementor-grid-item,
.elementor-posts .elementor-post,
.xg-card { position: relative; }

/* Banda bianca semitrasparente "IN SCONTO" */
.xg-sale-band{
  
  display: flex;
	padding-left:10px;
	padding-top:10px;
	padding-bottom:10px;
  background: rgb(255,255,255);   /* bianco semitrasparente */
  color: #d10000;                      /* rosso */
  font-weight: 800;
  /* opzionale: leggera cornice */
  /* outline: 1px solid rgba(0,0,0,.06); */
}

/* Variante diagonale (se la vuoi): aggiungi la classe xg-sale-diag allo shortcode */
.xg-sale-diag { 
  left: -40px; right: -40px; top: 18px;
  transform: rotate(-10deg);
}


