/*
====================================================================
ETRUSCAFORM - CSS COMPLETO
====================================================================
Versione: 2.9.0 - Price Range Slider & Hero Headers Uniformati
Data: 2026-02-10

Novità v2.9:
- Price Range Slider moderno per E-learning
- Hero Headers uniformati per tutte le sezioni
- Miglioramenti UX per filtri categoria

====================================================================
*/

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
  --color-primary: #39110e;
  --color-primary-light: #5a1b17;
  --color-secondary: #d07c39;
  --color-secondary-dark: #c06f33;
  --color-footer-bg: #f0f0f0;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ============================================
   RESET & BASE
   ============================================ */

a:active, a:focus {
  outline: 0;
  border: none;
  -moz-outline-style: none;
}

a:focus {
  outline: solid 0px !important;
}

*:focus {
  outline: 0 !important;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
}

/* ============================================
   LINKS
   ============================================ */

a, a:active, a:focus, a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

.dropdown-menu > .active > a, 
.dropdown-menu > .active > a:focus, 
.dropdown-menu > .active > a:hover {
  background-color: var(--color-secondary);
}

/* ============================================
   LOGO
   ============================================ */

.site-branding-logo img {
  width: 210px;
}

.heading-row .site-heading {
  flex-basis: 240px;
}

.site-branding-text {
  display: none !important;
}

.site-branding-logo a,
.site-branding-logo img {
  transition: transform var(--transition);
}

.site-branding-logo:hover img {
  transform: scale(1.05);
}

/* ============================================
   HEADER - Sticky con blur
   ============================================ */

.site-header,
.business-heading,
.woo-heading {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

/* Navigation menu underline effect */
.main-menu a,
.navbar-nav > li > a {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.main-menu a::after,
.navbar-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.main-menu a:hover::after,
.navbar-nav > li > a:hover::after,
.main-menu .current-menu-item > a::after,
.navbar-nav > .current-menu-item > a::after {
  width: 80%;
}

/* ============================================
   SLIDER FIX
   ============================================ */

#rev_slider_5_1_wrapper {
  left: 0px !important;
}

/* ============================================
   HOMEPAGE
   ============================================ */

.page-id-138 .top-header {
  display: none !important;
}

/* ============================================
   TOP HEADER / HERO - UNIFORMATO v2.9
   ============================================ */

.top-header {
  height: 40vh !important;
  background-image: url('https://staging.etruscaform.com/wp-content/uploads/2024/07/corso-online.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Gradient overlay uniformato */
.top-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(57, 17, 14, 0.85) 0%,
    rgba(57, 17, 14, 0.7) 50%,
    rgba(208, 124, 57, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Hero content wrapper */
.top-header .header-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sopratiolo uniformato */
.top-header .header-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-secondary) !important;
  margin-bottom: 15px;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Titolo principale uniformato */
.top-header .header-title,
.top-header h1 {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-style: normal !important;
}

/* Descrizione uniformata */
.top-header .header-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SINGLE POST
   ============================================ */

.single .top-header, 
.single .author-meta, 
.single .comments-meta {
  display: none;
}

.single .site-main {
  margin-top: 50px;
}

/* ============================================
   CATEGORIE PRODOTTI
   ============================================ */

.product-categories ul.children li a {
  color: #63270a;
}

.product-categories a {
  font-weight: 600;
  transition: all var(--transition);
}

.product-categories a:hover {
  transform: translateX(3px);
}

/* ============================================
   FILTRI CATEGORIA - MIGLIORATI v2.9
   ============================================ */

.category-filters-wrapper {
  margin: 40px 0 30px;
  padding: 0 15px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.category-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.category-filter-btn:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.category-filter-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  background: rgba(208, 124, 57, 0.15);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.category-filter-btn.active .count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ============================================
   PRICE RANGE SLIDER - NUOVO v2.9
   ============================================ */

.price-filter-wrapper {
  margin: 30px 0;
  padding: 25px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(57, 17, 14, 0.08);
}

.price-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.price-filter-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.price-filter-values {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
}

.price-separator {
  color: #999;
  font-weight: 400;
}

/* Price Range Slider Container */
.price-range-container {
  position: relative;
  height: 6px;
  background: linear-gradient(
    to right,
    #f0f0f0 0%,
    #f0f0f0 100%
  );
  border-radius: 3px;
  margin: 25px 0 15px;
}

/* Active range track */
.price-range-track {
  position: absolute;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-secondary) 0%,
    var(--color-primary) 100%
  );
  border-radius: 3px;
  pointer-events: none;
}

/* Price slider inputs */
.price-slider {
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 3px solid var(--color-secondary);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.price-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 3px solid var(--color-secondary);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(208, 124, 57, 0.3);
}

.price-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(208, 124, 57, 0.3);
}

.price-slider:active::-webkit-slider-thumb {
  transform: scale(1.1);
  border-color: var(--color-primary);
}

.price-slider:active::-moz-range-thumb {
  transform: scale(1.1);
  border-color: var(--color-primary);
}

/* Price labels */
.price-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.price-label {
  font-size: 13px;
  color: #999;
  font-weight: 500;
}

/* Reset price button */
.price-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all var(--transition);
}

.price-reset-btn:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background: rgba(208, 124, 57, 0.05);
}

.price-reset-btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   FILTERS SECTION LAYOUT
   ============================================ */

.filters-section {
  margin: 40px 0;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.filters-col-categories {
  flex: 1 1 100%;
}

.filters-col-price {
  flex: 1 1 100%;
  max-width: 400px;
}

@media (min-width: 768px) {
  .filters-col-categories {
    flex: 1 1 65%;
  }
  
  .filters-col-price {
    flex: 1 1 30%;
  }
}

/* ============================================
   BOTTONI WPBAKERY
   ============================================ */

.vc_general.vc_btn3,
.vc_btn3-container a.vc_general,
.vc_grid-item .vc_btn3,
.vc_gitem_row .vc_btn3 {
  display: inline-block;
  line-height: 1;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  overflow: visible;
  padding: 10px 25px !important;
  font-size: 14px;
  border-radius: 2px !important;
  border: 1px solid var(--color-secondary) !important;
  box-shadow: none !important;
  background-color: var(--color-secondary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  transition: all var(--transition);
  margin: 5px 15px 15px 15px;
}

.vc_general.vc_btn3:hover,
.vc_btn3-container a.vc_general:hover,
.vc_grid-item .vc_btn3:hover,
.vc_general.vc_btn3:focus {
  background-color: var(--color-secondary-dark) !important;
  border-color: var(--color-secondary-dark) !important;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

.vc_general.vc_btn3:active {
  transform: translateY(0);
}

.vc_general.vc_btn3[class*="vc_btn3-color-"],
.vc_general.vc_btn3[class*="vc_btn3-style-"] {
  background-image: none !important;
}

a.vc_gitem-link {
  text-decoration: none !important;
}

/* ============================================
   BOTTONI WOOCOMMERCE
   ============================================ */

.woocommerce #respond input#submit, 
.woocommerce #respond input#submit.alt, 
.woocommerce a.button, 
.woocommerce a.button.alt, 
.woocommerce button.button, 
.woocommerce button.button.alt, 
.woocommerce input.button, 
.woocommerce input.button.alt {
  background-color: var(--color-secondary) !important;
  color: #fff;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  transition: all var(--transition);
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover {
  background-color: var(--color-secondary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   CARRELLO
   ============================================ */

.amount-cart {
  background: var(--color-secondary);
  transition: all var(--transition);
}

.cart-contents span.count {
  background-color: var(--color-secondary);
}

.amount-cart:before {
  border-right: 7px solid var(--color-secondary);
}

.amount-cart:hover {
  transform: scale(1.05);
}

/* ============================================
   ICONE HOME
   ============================================ */

.iconehome .vc_single_image-img {
  max-width: 50% !important;
}

/* ============================================
   SHOP - Nascondi seconda paginazione
   ============================================ */

.woocommerce-shop .page-description {
  display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */

#content-footer-section {
  background-color: var(--color-footer-bg);
  color: var(--color-primary);
}

#content-footer-section .widget-title h3 {
  color: var(--color-primary);
  font-weight: 600 !important;
}

#content-footer-section .widget.col-md-3 {
  margin: 0%;
}

#content-footer-section a {
  transition: color var(--transition);
}

/* Footer verso il basso */
#site-content {
  min-height: calc(100vh - 450px) !important;
}

/* ============================================
   TABELLE
   ============================================ */

table {
  max-width: 100%;
}

th {
  text-align: left;
}

.entry-content table, 
.modal-body table {
  width: 100%;
  margin-bottom: 10px;
}

.entry-content table td, 
table td, 
.entry-content table th, 
table th {
  padding: 10px;
}

.entry-content table tr:nth-child(even), 
.modal-body table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.03);
}

.entry-content table thead, 
.modal-body table thead {
  background: rgba(0, 0, 0, 0.06);
}

.entry-content table p {
  margin-bottom: 0;
}

.entry-content table tr,
.modal-body table tr {
  transition: background-color var(--transition);
}

.entry-content table tbody tr:hover,
.modal-body table tbody tr:hover {
  background: rgba(208, 124, 57, 0.08);
}

/* ============================================
   DOWNLOAD BUTTON
   ============================================ */

.download-btn-wrapper {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

.download-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.download-btn:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.08);
}

.download-btn .arrow-down {
  width: 2px;
  height: 10px;
  background-color: #ffffff;
  position: relative;
  margin-bottom: 2px;
}

.download-btn .arrow-down::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ffffff;
}

.download-btn .icon-base {
  width: 12px;
  height: 0;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  margin-top: 1px;
}

.download-btn:hover .arrow-down {
  animation: btn-slide-down 0.5s ease both;
}

@keyframes btn-slide-down {
  0% { transform: translateY(-6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.download-btn .tooltip-text {
  position: absolute;
  left: 50px;
  opacity: 0;
  background-color: var(--color-primary);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.download-btn .tooltip-text::before {
  position: absolute;
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  transform: rotate(45deg);
  left: -4px;
  top: 50%;
  margin-top: -4px;
}

.download-btn:hover .tooltip-text {
  opacity: 1;
}

.download-link-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.download-link-row a.main-link {
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
}

.download-link-row a.main-link:hover {
  text-decoration: underline;
}

/* ============================================
   BACK TO TOP BUTTON - CSS PURO
   ============================================ */

.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-secondary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 9998;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Freccia CSS pura - Chevron */
.back-to-top-btn::before {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* ============================================
   LAYOUT FIX - CENTRATURA CORRETTA
   ============================================ */

/* Body e wrapper principale */
body,
#page,
.site {
  width: 100%;
  overflow-x: hidden;
}

/* Container standard - CENTRATO */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Site content centrato */
#site-content,
.site-main,
.page-area {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Entry content centrato */
#entry-content,
.entry-content {
  width: 100%;
  max-width: 100%;
}

/* 
   WPBAKERY FIX - NON sovrascriviamo le row
   Lasciamo che WPBakery gestisca il proprio layout
   Interveniamo solo se serve
*/

/* Solo per row che devono essere contenute */
.vc_row:not([data-vc-full-width="true"]):not(.vc_row-o-full-height) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Row full-width - lasciamo che siano full */
.vc_row[data-vc-full-width="true"] {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Inner content nelle full-width row */
.vc_row[data-vc-full-width="true"] > .wpb_column {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Fix per stretch_row con content al centro */
.vc_row[data-vc-stretch-content="true"] > .wpb_column {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* ============================================
   CARDS & PRODUCTS - EFFETTI HOVER
   ============================================ */

.card,
.post,
article:not(.singular-heading article),
.product,
.course-item {
  transition: all var(--transition);
}

.card:hover,
.post:hover,
.product:hover,
.course-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card img,
.post-thumbnail img,
.wp-post-image,
.product img {
  transition: transform var(--transition);
}

.card:hover img,
.post:hover .post-thumbnail img,
.product:hover img {
  transform: scale(1.05);
}

/* ============================================
   WOOCOMMERCE PRODUCTS
   ============================================ */

.woocommerce .products .product,
.woocommerce-page .products .product {
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.woocommerce .products .product:hover,
.woocommerce-page .products .product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.woocommerce .price {
  font-weight: 700;
  transition: color var(--transition);
}

/* ============================================
   FORMS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select,
.form-control {
  transition: all var(--transition);
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(208, 124, 57, 0.1);
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary-dark);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background-color: var(--color-secondary);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--color-secondary);
  color: #ffffff;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

*:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ============================================
   LEARNDASH (se presente)
   ============================================ */

.learndash .course-item,
.ld-course-list-item {
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.learndash .course-item:hover,
.ld-course-list-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   MOBILE - MAX 600px
   ============================================ */

@media screen and (max-width: 600px) {
  
  /* Top header mobile */
  .top-header {
    height: 40vh !important;
    background-image: url('https://staging.etruscaform.com/wp-content/uploads/2024/07/corso-online-mobile.jpg');
    background-position: right;
    background-repeat: no-repeat;
  }
  
  /* Logo mobile */
  .site-branding-logo {
    float: left;
    margin-bottom: 0;
    text-align: left;
    width: 190px !important;
  }
  
  .menu-button {
    margin-right: 10px;
  }
  
  /* Menu trigger */
  .hc-nav-trigger {
    top: 4px;
    width: 20px;
  }
  
  .hc-nav-trigger span, 
  .hc-nav-trigger span:after, 
  .hc-nav-trigger span:before {
    background-color: #5c5c5c;
    height: 2px;
  }
  
  .hc-nav-trigger span {
    width: 30px;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: 50% 50%;
  }
  
  .hc-nav-trigger span,
  .hc-nav-trigger span::before,
  .hc-nav-trigger span::after {
    display: block;
    position: absolute;
    left: 0;
    background: #34495E;
    transition: all .2s ease;
  }
  
  .hc-nav-trigger span::before {
    top: -8px;
  }
  
  .hc-nav-trigger span::after {
    top: 8px;
  }
  
  /* Container mobile */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Back to top mobile */
  .back-to-top-btn {
    width: 45px;
    height: 45px;
    bottom: 90px; /* Sopra WhatsApp */
    right: 20px;
  }
  
  /* Typography mobile */
  h1, h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  /* Cards mobile */
  .card,
  .post,
  article,
  .product {
    margin-bottom: 1.5rem;
  }
  
  /* Price filter mobile */
  .price-filter-wrapper {
    padding: 20px 15px;
  }
  
  .price-filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .filters-col-price {
    max-width: 100%;
  }
  
  /* Category filters mobile */
  .category-filter-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* ============================================
   TABLET - MAX 992px
   ============================================ */

@media screen and (max-width: 992px) {
  .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .vc_row:not([data-vc-full-width="true"]) {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Classe utility per fade in */
.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Fix specifico per VC Grid sulla homepage */
.page-id-138 .vc_grid-item {
  min-height: 420px !important;
}

.page-id-138 .vc_gitem-zone-c {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/*
====================================================================
FINE CSS ETRUSCAFORM v2.9.0
====================================================================
Note versione 2.9:
- Price Range Slider moderno per filtri E-learning
- Hero Headers uniformati per tutte le sezioni
- Layout responsive migliorato per filtri
- Mantenuta backward compatibility
====================================================================
*/
/* ============================================
   SEARCH BOX - v2.9.1
   ============================================ */

.elearning-search-wrapper {
  margin: 30px 0;
  padding: 0 15px;
}

.elearning-search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.elearning-search-input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  outline: none;
  transition: all var(--transition);
  background: #ffffff;
  font-family: 'Outfit', sans-serif;
}

.elearning-search-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(208, 124, 57, 0.1);
}

.elearning-search-input::placeholder {
  color: #999;
}

.elearning-search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-secondary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.elearning-search-button:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-50%) scale(1.05);
}

.elearning-search-button svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* ============================================
   WOOCOMMERCE HERO UNIFORMATO - v2.9.1
   ============================================ */

/* Uniforma il title WooCommerce con gli altri hero */
.woocommerce .page-title,
.woocommerce-page .page-title,
.archive .page-title,
.post-type-archive .page-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: #ffffff !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  margin: 0;
  line-height: 1.2;
}

/* Header subtitle per WooCommerce */
.woocommerce-products-header .page-subtitle,
.archive-header .page-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-secondary) !important;
  margin-bottom: 15px;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: 'Outfit', sans-serif;
}

/* Contenitore hero WooCommerce */
.woocommerce-products-header,
.archive-header {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-primary);
  padding: 80px 20px;
}

.woocommerce-products-header::before,
.archive-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(57, 17, 14, 0.85) 0%,
    rgba(57, 17, 14, 0.7) 50%,
    rgba(208, 124, 57, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.woocommerce-products-header > *,
.archive-header > * {
  position: relative;
  z-index: 2;
}

/* ============================================
   MOBILE - SEARCH BOX
   ============================================ */

@media screen and (max-width: 600px) {
  .elearning-search-wrapper {
    margin: 20px 0;
  }
  
  .elearning-search-input {
    padding: 14px 45px 14px 16px;
    font-size: 15px;
  }
  
  .elearning-search-button {
    width: 36px;
    height: 36px;
  }
  
  .elearning-search-button svg {
    width: 18px;
    height: 18px;
  }
}
