:root {
  --ec-black: #0c0d0d;
  --ec-dark: #1c1e1e;
  --ec-paper: #f5f4ef;
  --ec-white: #fff;
  --ec-text: #151616;
  --ec-muted: #676b68;
  --ec-green: #b8d400;
  --ec-border: rgba(18,20,19,.14);
  --ec-radius: 6px;
  --ec-shadow: 0 18px 48px rgba(10,12,11,.10);
  --ec-shell: min(1380px, calc(100% - 64px));
  --ec-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ec-display: "Arial Narrow", "Roboto Condensed", var(--ec-font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ec-text); background: var(--ec-paper); font-family: var(--ec-font); line-height: 1.6; }
body.admin-bar .ec-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.ec-shell { width: var(--ec-shell); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 10px; left: 10px; z-index: 99999; width: auto; height: auto; padding: .75rem 1rem; clip: auto; color: #000; background: #fff; }

h1, h2, h3, h4 { font-family: var(--ec-display); line-height: 1.05; letter-spacing: -.02em; }
.ec-eyebrow { margin: 0 0 .9rem; color: var(--ec-green); font-size: .77rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.ec-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 48px; padding: .82rem 1.35rem; border: 0; border-radius: 3px; color: #111; background: var(--ec-green); font-weight: 800; text-decoration: none; cursor: pointer;
}
.ec-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { color: #fff; background: #111; }

/* Mantiene tutti i controlli WooCommerce nello stile approvato, anche quando
   i plugin caricano il proprio foglio di stile dopo quello del tema. */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce-page a.button.alt,
.woocommerce-page button.button.alt,
.woocommerce-page input.button.alt,
.woocommerce .ec-filters .button {
  color: #111 !important;
  background: var(--ec-green) !important;
  border-color: var(--ec-green) !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce-page a.button.alt:hover,
.woocommerce-page button.button.alt:hover,
.woocommerce-page input.button.alt:hover,
.woocommerce .ec-filters .button:hover {
  color: #fff !important;
  background: #111 !important;
  border-color: #111 !important;
}
.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce button.button.alt:disabled[disabled] {
  color: #666 !important;
  background: #e4e6df !important;
  border-color: #e4e6df !important;
  opacity: 1 !important;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ec-green);
  outline-offset: 3px;
}

.ec-utility { color: rgba(255,255,255,.82); background: #090909; border-bottom: 1px solid rgba(255,255,255,.10); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ec-utility__inner { display: grid; grid-template-columns: repeat(3,1fr); align-items: center; gap: 2rem; padding-block: .58rem; }
.ec-utility__inner span { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.ec-utility__inner span:first-child { justify-content: flex-start; }
.ec-utility__inner span:last-child { justify-content: flex-end; }
.ec-utility svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ec-header { position: sticky; top: 0; z-index: 50; color: #fff; background: #0b0b0b; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.ec-header__primary { background: #0b0b0b; }
.ec-header__main { min-height: 100px; display: grid; grid-template-columns: minmax(190px,250px) minmax(300px,620px) auto; align-items: center; justify-content: space-between; gap: clamp(1.5rem,3.5vw,4rem); }
.ec-brand { display: inline-flex; align-items: center; text-decoration: none; }
.ec-brand__logo { width: auto; max-width: 230px; max-height: 84px; object-fit: contain; }
.ec-brand__fallback { font-weight: 300; letter-spacing: .10em; white-space: nowrap; }
.ec-brand__fallback b { color: var(--ec-green); }
.ec-header-search form, .ec-search-panel form { position: relative; display: flex; width: 100%; margin: 0; }
.ec-header-search input, .ec-search-panel input { width: 100%; min-height: 50px; padding: .85rem 3.5rem .85rem 1rem; border: 1px solid rgba(255,255,255,.24); border-radius: 3px; color: #fff; background: #202020; }
.ec-header-search input::placeholder, .ec-search-panel input::placeholder { color: rgba(255,255,255,.58); }
.ec-header-search button, .ec-search-panel button { position: absolute; inset: 0 0 0 auto; min-width: 52px; padding: 0; border: 0; color: #111; background: var(--ec-green); font-size: 0; cursor: pointer; }
.ec-header-search button::before, .ec-search-panel button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; transform: translate(-62%,-62%); }
.ec-header-search button::after, .ec-search-panel button::after { content: ""; position: absolute; top: 58%; left: 58%; width: 8px; height: 2px; background: currentColor; transform: rotate(45deg); }
.ec-nav { background: linear-gradient(180deg,#1d1d1d,#151515); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.12); }
.ec-menu { display: flex; justify-content: space-between; align-items: center; gap: clamp(.75rem,1.65vw,1.75rem); margin: 0; padding: 0; list-style: none; }
.ec-menu li { min-width: 0; }
.ec-menu a { display: block; padding: 1.15rem 0; font-family: var(--ec-display); font-size: clamp(.7rem,.9vw,.84rem); font-weight: 700; letter-spacing: .02em; white-space: nowrap; text-decoration: none; text-transform: uppercase; }
.ec-menu a:hover, .ec-menu .current-menu-item > a { color: var(--ec-green); }
.ec-menu__home { display: none; }
.ec-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.8rem,1.5vw,1.5rem); font-size: .78rem; font-weight: 700; }
.ec-header__actions a { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; text-decoration: none; }
.ec-header__actions svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.ec-cart-link { position: relative; }
.ec-cart-link b { position: absolute; top: -10px; right: -13px; display: inline-grid; place-items: center; min-width: 20px; min-height: 20px; padding: 0 4px; border-radius: 50%; color: #111; background: var(--ec-green); font-size: .68rem; }
.ec-search-toggle, .ec-menu-toggle { padding: .5rem; color: #fff; background: transparent; border: 0; cursor: pointer; }
.ec-search-toggle { display: none; }
.ec-menu-toggle { display: none; }
.ec-search-panel { padding: 1rem 0; background: #111; border-top: 1px solid rgba(255,255,255,.12); }

.ec-hero { min-height: clamp(540px,68vh,760px); display: grid; align-items: center; color: #fff; background-color: #0b0c0c; background-image: radial-gradient(circle at 78% 42%,#303333 0,#151616 35%,#080909 72%); background-position: center; background-size: cover; }
.ec-hero.has-image { background-position: center, center; background-size: 100% 100%, cover; background-repeat: no-repeat, no-repeat; }
.ec-hero__content { padding-block: 7rem; }
.ec-hero h1 { max-width: 820px; margin: 0 0 1.35rem; font-size: clamp(3rem,5.4vw,5.6rem); text-transform: uppercase; }
.ec-hero__content > p:not(.ec-eyebrow) { max-width: 630px; margin: 0 0 2rem; color: rgba(255,255,255,.80); font-size: clamp(1rem,1.4vw,1.2rem); }

.ec-promo { position: relative; width: min(1320px,calc(100% - 96px)); min-height: clamp(460px,48vw,620px); margin: clamp(1.5rem,3vw,3rem) auto; overflow: hidden; color: var(--ec-text); background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-radius); box-shadow: 0 14px 40px rgba(17,17,17,.06); }
.ec-promo__slide, .ec-promo__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ec-promo__slide { display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.ec-promo__slide.is-active { opacity: 1; visibility: visible; }
.ec-promo__slide > img { position: absolute; inset: 0 auto 0 0; width: 49%; height: 100%; padding: clamp(1.5rem,3vw,3.5rem); object-fit: contain; background: linear-gradient(145deg,#f0f0ed,#fff); }
.ec-promo__shade { display: none; }
.ec-promo__content { position: relative; z-index: 2; width: 51%; margin-right: 0; margin-left: 49%; padding: clamp(3rem,6vw,6rem); }
.ec-promo h2 { max-width: 620px; margin: 0 0 1.2rem; font-size: clamp(2.4rem,4.2vw,4.8rem); text-transform: uppercase; }
.ec-promo__content > p:not(.ec-eyebrow) { max-width: 540px; margin: 0 0 2rem; color: var(--ec-muted); font-size: 1.08rem; }
.ec-promo__dots { position: absolute; z-index: 4; left: 50%; bottom: 1.75rem; display: flex; gap: .65rem; transform: translateX(-50%); }
.ec-promo__dots button { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(17,17,17,.25); cursor: pointer; }
.ec-promo__dots button.is-active { background: var(--ec-green); }

.ec-section { padding-block: clamp(5.5rem,9vw,9rem); }
.ec-section-title { margin: 0 0 1rem; text-align: center; font-size: clamp(2.4rem,4.5vw,4.5rem); text-transform: uppercase; }
.ec-process .ec-section-intro { max-width: 680px; margin: 1.75rem auto 4.75rem; text-align: center; color: var(--ec-muted); }
.ec-process__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(2rem,5vw,5rem); }
.ec-process { background: var(--ec-paper); }
.ec-process article { position: relative; min-height: 220px; display: flex; flex-direction: column; padding: 1.9rem 2.2rem 2.1rem; background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-radius); }
.ec-process article:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: calc(clamp(2rem,5vw,5rem) / -2 - .55rem); color: var(--ec-green); font-size: 1.6rem; font-weight: 900; transform: translateY(-50%); }
.ec-process h3 { display: flex; align-items: center; gap: .85rem; margin: 0; font-size: 1.65rem; }
.ec-process h3 span { width: 52px; height: 52px; flex: 0 0 52px; display: inline-flex; align-items: center; justify-content: center; margin: 0; color: inherit; border: 2px solid currentColor; border-radius: 50%; font: 800 1rem/1 var(--ec-font); letter-spacing: 0; }
.ec-process article p { max-width: 30ch; margin: 1.35rem 0 0; color: var(--ec-muted); font-size: 1.05rem; line-height: 1.55; }

.ec-video { position: relative; min-height: clamp(650px,80vh,980px); display: grid; align-items: center; overflow: hidden; color: #fff; background: #090a0a; }
.ec-video video, .ec-video__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ec-video video { object-fit: cover; }
.ec-video__youtube { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100%; border: 0; pointer-events: none; transform: translate(-50%,-50%); }
.ec-video__shade { background: linear-gradient(90deg,rgba(0,0,0,.90),rgba(0,0,0,.40) 62%,rgba(0,0,0,.18)); }
.ec-video__content { position: relative; z-index: 2; padding-block: 8rem; }
.ec-video h2 { max-width: 850px; margin: 0 0 1.25rem; font-size: clamp(3rem,6vw,6.5rem); text-transform: uppercase; }
.ec-video__content > p:not(.ec-eyebrow) { max-width: 620px; color: rgba(255,255,255,.83); font-size: 1.1rem; }
.ec-video--empty { min-height: 520px; }

.ec-latest { background: #fff; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; margin: 3rem 0 0; }
.ec-latest .woocommerce ul.products { grid-template-columns: repeat(4,minmax(0,1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { float: none; width: 100% !important; margin: 0; padding: 1rem; background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-radius); transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--ec-shadow); }
.woocommerce ul.products li.product a img { width: 100%; height: clamp(240px,24vw,390px); margin-bottom: 1rem; padding: clamp(.65rem,1.4vw,1.25rem); object-fit: contain; object-position: center; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 2.8em; color: var(--ec-text); font-size: 1rem; line-height: 1.4; }
.woocommerce ul.products li.product .price { color: var(--ec-text); font-size: 1rem; font-weight: 800; }
.woocommerce span.onsale { min-width: 0; min-height: 0; padding: .45rem .65rem; border-radius: 3px; color: #111; background: var(--ec-green); line-height: 1; }
.ec-loop-stock { display: block; margin: .3rem 0 .8rem; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.ec-loop-stock.is-available, .stock.in-stock { color: #577000; }
.ec-loop-stock.is-sold-out, .stock.out-of-stock { color: #9e2727; }

.ec-trust { color: #fff; background: var(--ec-dark); }
.ec-trust__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.5rem,3vw,3rem); padding-block: clamp(4rem,6vw,6rem); }
.ec-trust__grid > div { display: grid; gap: .25rem; padding: 1.2rem clamp(1.25rem,2.5vw,2.25rem); border-left: 2px solid var(--ec-green); }
.ec-trust strong { font-family: var(--ec-display); font-size: 1.3rem; }
.ec-trust span { color: rgba(255,255,255,.66); font-size: .88rem; }
.ec-footer { color: #fff; background: var(--ec-dark); border-top: 2px solid var(--ec-green); }
.ec-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: clamp(2rem,5vw,5rem); padding-block: clamp(5rem,8vw,8rem); }
.ec-footer__brand { margin-bottom: 1rem; }
.ec-footer__brand img { width: auto; max-width: 240px; max-height: 112px; object-fit: contain; }
.ec-footer p { max-width: 380px; color: rgba(255,255,255,.64); }
.ec-footer h2 { margin: 0 0 1rem; font-size: 1rem; text-transform: uppercase; }
.ec-footer a { display: block; margin: 0 0 .55rem; color: rgba(255,255,255,.73); text-decoration: none; }
.ec-footer a:hover { color: var(--ec-green); }
.ec-footer__bottom { padding-block: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .78rem; }

.ec-catalog-hero { min-height: clamp(360px,42vw,580px); display: grid; align-items: end; padding-block: 5rem; color: #fff; background-color: #151616; background-image: radial-gradient(circle at 75% 30%,#363938,#171818 52%,#0a0b0b); background-position: center; background-size: cover; }
.ec-catalog-hero--category { min-height: clamp(180px,21vw,290px); padding-block: clamp(2rem,3.5vw,2.75rem); }
.ec-catalog-hero--category h1 { font-size: clamp(2.4rem,4.5vw,4.5rem); }
.ec-catalog-hero .woocommerce-breadcrumb { color: rgba(255,255,255,.68); }
.ec-catalog-hero .woocommerce-breadcrumb a { color: #fff; }
.ec-catalog-hero h1 { max-width: 1200px; margin: .8rem 0 0; font-size: clamp(3rem,6vw,6rem); overflow-wrap: anywhere; text-wrap: balance; text-transform: uppercase; }
.ec-catalog-hero p { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.78); }
.ec-categories__intro { max-width: 700px; margin-bottom: 3rem; }
.ec-categories__intro h2 { margin: 0 0 .8rem; font-size: clamp(2rem,3.5vw,3.6rem); text-transform: uppercase; }
.ec-categories__intro p { color: var(--ec-muted); }
.ec-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.ec-category-card { min-height: clamp(280px,34vw,440px); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem,3vw,3rem); overflow: hidden; color: #fff; background-color: #202222; background-image: linear-gradient(145deg,#353938,#151616); background-position: center; background-size: cover; border-radius: var(--ec-radius); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.ec-category-card:hover { transform: translateY(-3px); box-shadow: var(--ec-shadow); }
.ec-category-card span { font-family: var(--ec-display); font-size: clamp(1.8rem,3vw,3.4rem); font-weight: 800; text-transform: uppercase; }
.ec-category-card small { color: rgba(255,255,255,.72); }
.ec-category-child { min-height: 112px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; overflow: hidden; color: #fff; background-color: #252827; background-image: linear-gradient(145deg,#353938,#171818); background-position: center; background-size: cover; border-radius: var(--ec-radius); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.ec-category-child:hover { transform: translateY(-2px); box-shadow: var(--ec-shadow); }
.ec-category-child span { font-family: var(--ec-display); font-size: clamp(1rem,1.35vw,1.35rem); font-weight: 800; line-height: 1.08; text-transform: uppercase; }
.ec-category-child small { margin-top: .35rem; color: rgba(255,255,255,.7); }
.ec-subcategory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-bottom: 3rem; }
.ec-subcategory-grid .ec-category-child { aspect-ratio: 1 / 1; min-height: 0; padding: 1.35rem; }
.ec-subcategory-grid .ec-category-child.has-image { background-color: #e8e8e5; background-position: center, center; background-repeat: no-repeat, no-repeat; background-size: cover, contain; }
.ec-admin-note { padding: 2rem; border: 1px dashed var(--ec-border); }
.ec-subcategories { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem; }
.ec-subcategories a { padding: .6rem .9rem; border: 1px solid var(--ec-border); border-radius: 3px; text-decoration: none; }
.ec-shop__toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 1.2rem; margin-bottom: 2rem; }
.ec-shop.ec-section { padding-top: clamp(2.5rem,4.5vw,4.5rem); }
.ec-shop__toolbar .woocommerce-result-count { margin-right: auto; }
.ec-shop__toolbar .woocommerce-ordering, .ec-shop__toolbar .woocommerce-result-count { float: none; margin-bottom: 0; }
.ec-shop__layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 3rem; }
.ec-shop__products ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.25rem,2.2vw,2rem); }
.ec-shop__products ul.products li.product { display: flex; flex-direction: column; min-width: 0; padding: clamp(1rem,1.6vw,1.35rem); }
.ec-shop__products ul.products li.product > a.woocommerce-LoopProduct-link { display: block; }
.ec-shop__products ul.products li.product a img { width: 100%; height: clamp(280px,25vw,410px); padding: clamp(.75rem,1.5vw,1.35rem); object-fit: contain; object-position: center; border-radius: 4px; }
.ec-shop__products ul.products li.product .woocommerce-loop-product__title { min-height: 0; margin-top: .25rem; font-size: clamp(1.05rem,1.45vw,1.3rem); }
.ec-shop__products ul.products li.product .price { margin-top: auto; padding-top: .35rem; font-size: 1.15rem; }
.ec-shop__products ul.products li.product .button { width: 100%; margin-top: .75rem; text-align: center; }
.ec-filters { position: sticky; top: 120px; }
.ec-filters__heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 2px solid #111; }
.ec-filters__heading button { display: none; border: 0; background: transparent; font-size: 2rem; }
.ec-filters fieldset { margin: 0; padding: 1.4rem 0; border: 0; border-bottom: 1px solid var(--ec-border); }
.ec-filters legend { width: 100%; margin-bottom: .7rem; font-weight: 800; }
.ec-filters label { display: flex; align-items: center; gap: .6rem; margin: .45rem 0; color: var(--ec-muted); font-size: .9rem; }
.ec-filters input[type="checkbox"] { accent-color: var(--ec-green); }
.ec-filters .button { width: 100%; margin-top: 1.2rem; }
.ec-filter-reset { display: block; margin-top: .8rem; text-align: center; font-size: .85rem; }
.ec-filter-button { display: none; min-height: 42px; padding: .6rem 1rem; border: 1px solid #111; background: #fff; font-weight: 800; }
.woocommerce nav.woocommerce-pagination { margin-top: 3rem; }

.ec-product-page { padding-block: 2rem 7rem; }
.ec-product-page .woocommerce-breadcrumb { margin-bottom: 2rem; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images { padding: clamp(.5rem,1.5vw,1.2rem); border: 1px solid var(--ec-border); border-radius: var(--ec-radius); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { margin-bottom: 4rem; }
.woocommerce div.product div.images img { border-radius: var(--ec-radius); background: #fff; object-fit: contain; }
.woocommerce div.product .product_title { margin-top: .2rem; font-size: clamp(2.3rem,4vw,4.4rem); text-transform: uppercase; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #111; font-size: 1.45rem; font-weight: 900; }
.woocommerce div.product form.cart .variations { margin-top: 1.5rem; }
.woocommerce div.product form.cart .variations tbody, .woocommerce div.product form.cart .variations tr { width: 100%; }
.woocommerce div.product form.cart .variations th { padding: .6rem 1rem .6rem 0; text-align: left; }
.woocommerce div.product form.cart .variations select { min-width: 260px; min-height: 46px; padding: .6rem; border: 1px solid var(--ec-border); background: #fff; }
.woocommerce div.product form.cart div.quantity { margin-right: .7rem; }
.woocommerce .quantity .qty { min-height: 48px; }
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 2rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 0; padding: 0; border-bottom: 1px solid var(--ec-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 1rem 1.3rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { box-shadow: inset 0 -3px var(--ec-green); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 1050px; padding: 2rem 0; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--ec-border); }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--ec-paper); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ec-muted); }

/* Il configuratore importato dal CSV deve sembrare parte naturale della scheda prodotto. */
.woocommerce div.product .summary .ec-csv-test-configuration,
.woocommerce div.product form.cart .ec-csv-test-configuration {
  width: 100% !important;
  max-width: none !important;
  margin: 1.5rem 0 !important;
  padding: 0 !important;
  color: var(--ec-text) !important;
  background: transparent !important;
  border: 0 !important;
}
.woocommerce div.product .ec-csv-test-configuration > strong {
  display: block !important;
  margin: 0 0 1.25rem !important;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--ec-green);
  color: var(--ec-text);
  font-family: var(--ec-display);
  font-size: clamp(1.35rem,2vw,1.8rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.woocommerce div.product .ec-csv-test-configuration .form-row { margin: 0 0 1rem; padding: 0; }
.woocommerce div.product .ec-csv-test-configuration label { display: block; margin-bottom: .4rem; color: var(--ec-text); font-size: .9rem; font-weight: 800; }
.woocommerce div.product .ec-csv-test-configuration select {
  width: 100% !important;
  min-height: 50px;
  padding: .7rem 2.5rem .7rem .85rem;
  color: var(--ec-text);
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: 4px;
}
.woocommerce div.product .ec-csv-test-configuration select:focus { outline: 2px solid var(--ec-green); outline-offset: 1px; }

.ec-page { min-height: 60vh; padding-block: clamp(4rem,7vw,7rem); }
.ec-page__inner { max-width: 1050px; }
.ec-page h1 { margin-top: 0; font-size: clamp(2.6rem,5vw,5rem); text-transform: uppercase; }
.ec-content { font-size: 1.04rem; }
.ec-content > * { max-width: 850px; }
.ec-content > .alignwide { max-width: 1200px; }
.ec-content > .alignfull { max-width: none; }
.ec-post-card, .ec-search-results article { padding-block: 2rem; border-bottom: 1px solid var(--ec-border); }
.ec-404 { display: grid; align-items: center; background: var(--ec-paper); }
.ec-404 .ec-page__inner { padding-block: 5rem; }
.woocommerce-cart .ec-page__inner, .woocommerce-checkout .ec-page__inner, .woocommerce-account .ec-page__inner { max-width: 1240px; }
.woocommerce table.shop_table { border-color: var(--ec-border); border-radius: var(--ec-radius); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 46px; padding: .7rem .8rem; border: 1px solid var(--ec-border); border-radius: 3px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus { border-color: #758800; box-shadow: 0 0 0 2px rgba(184,212,0,.20); outline: 0; }
.woocommerce-error, .woocommerce-info, .woocommerce-message { border-top-color: var(--ec-green); background: var(--ec-paper); }
.woocommerce-info::before, .woocommerce-message::before { color: #657500; }
.woocommerce-checkout #payment { background: var(--ec-paper); }
.woocommerce-checkout #payment div.payment_box { background: #fff; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--ec-border); }
.woocommerce-checkout input[type="checkbox"], .woocommerce-account input[type="checkbox"] { accent-color: var(--ec-green); }

/* Complianz: il contenuto e il consenso restano gestiti dal plugin; il tema
   coordina soltanto colori e forma del banner con il resto del sito. */
#cmplz-cookiebanner-container .cmplz-cookiebanner { border-radius: var(--ec-radius); box-shadow: var(--ec-shadow); }
#cmplz-cookiebanner-container .cmplz-btn.cmplz-accept,
.cmplz-manage-consent { color: #111 !important; background: var(--ec-green) !important; border-color: var(--ec-green) !important; }
#cmplz-cookiebanner-container .cmplz-btn.cmplz-deny,
#cmplz-cookiebanner-container .cmplz-btn.cmplz-view-preferences { border-color: #111 !important; }

@media (max-width: 1100px) {
  :root { --ec-shell: min(100% - 40px, 1000px); }
  .ec-header__main { grid-template-columns: auto 1fr auto; }
  .ec-header-search { display: none; }
  .ec-search-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ec-nav { position: fixed; inset: 0 0 0 auto; width: min(420px,88vw); padding: 7rem 2rem 2rem; color: #fff; background: #111; transform: translateX(100%); transition: transform .25s ease; }
  .ec-nav .ec-shell { width: auto; }
  .ec-menu-open .ec-nav { transform: translateX(0); }
  .ec-nav .ec-menu { display: grid; justify-content: stretch; gap: 0; }
  .ec-nav li { border-bottom: 1px solid rgba(255,255,255,.14); }
  .ec-nav a { display: block; padding: 1rem 0; font-size: 1rem; }
  .ec-menu__home { display: block; }
  .ec-menu-toggle { z-index: 2; display: grid; gap: 4px; order: 3; }
  .ec-menu-toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; background: #fff; }
  .ec-header__actions { justify-self: end; }
  html.ec-menu-open, html.ec-menu-open body { overflow: hidden; }
  .ec-latest .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ec-footer__grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  body.admin-bar .ec-header { top: 46px; }
  .ec-utility { display: none; }
  .ec-header__main { min-height: 82px; gap: 1rem; }
  .ec-header__actions > a:not(.ec-cart-link) { display: none; }
  .ec-process__grid { grid-template-columns: 1fr; gap: 1rem; }
  .ec-process article { min-height: 190px; }
  .ec-process article::after { display: none; }
  .ec-process article p { max-width: 36ch; margin-top: 1.5rem; }
  .ec-category-grid { grid-template-columns: 1fr; }
  .ec-category-card { min-height: 340px; }
  .ec-subcategory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ec-shop__layout { grid-template-columns: 1fr; }
  .ec-shop__products ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ec-filter-button { display: inline-flex; }
  .ec-shop__sidebar { position: fixed; z-index: 100; inset: 0 0 0 auto; width: min(390px,92vw); padding: 2rem; overflow-y: auto; background: #fff; box-shadow: -20px 0 45px rgba(0,0,0,.15); transform: translateX(105%); transition: transform .25s ease; }
  .ec-filters-open .ec-shop__sidebar { transform: translateX(0); }
  .ec-filters { position: static; }
  .ec-filters__heading button { display: block; }
  .ec-trust__grid { grid-template-columns: 1fr; padding-block: 2.5rem; }
  .ec-trust__grid > div { padding-block: 1.3rem; }
}

@media (max-width: 520px) {
  .ec-category-child { min-height: 96px; }
  .ec-subcategory-grid { grid-template-columns: 1fr; }
  .ec-subcategory-grid .ec-category-child { min-height: 0; }
}

@media (max-width: 600px) {
  :root { --ec-shell: min(100% - 24px, 540px); }
  .ec-brand__fallback { font-size: .76rem; }
  .ec-brand__logo { max-width: 150px; max-height: 70px; }
  .ec-header__actions { gap: .4rem; }
  .ec-cart-link { font-size: 0; }
  .ec-cart-link span { font-size: .75rem; }
  .ec-hero { min-height: 680px; }
  .ec-hero.has-image { background-position: center, 64% center; background-size: 100% 100%, cover; }
  .ec-hero__content { padding-block: 5.5rem; }
  .ec-hero h1 { font-size: clamp(2.7rem,13vw,4.4rem); }
  .ec-promo { width: calc(100% - 24px); min-height: 680px; color: #fff; background: #111; }
  .ec-promo__slide > img { inset: 0; width: 100%; height: 100%; padding: 0; object-fit: cover; background: #111; }
  .ec-promo__shade { display: block; background: linear-gradient(0deg,rgba(0,0,0,.94),rgba(0,0,0,.18) 78%); }
  .ec-promo__content { align-self: end; width: auto; margin: 0; padding: 5.5rem 1.4rem; }
  .ec-promo__content > p:not(.ec-eyebrow) { color: rgba(255,255,255,.82); }
  .ec-promo__dots button { background: rgba(255,255,255,.42); }
  .ec-promo h2 { font-size: clamp(2.5rem,12vw,4rem); }
  .ec-video { min-height: 760px; }
  .ec-video__shade { background: linear-gradient(0deg,rgba(0,0,0,.94),rgba(0,0,0,.18) 78%); }
  .ec-video__content { align-self: end; padding-block: 5rem; }
  .ec-video h2 { font-size: clamp(2.7rem,12vw,4.3rem); }
  .woocommerce ul.products, .ec-latest .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
  .ec-shop__products ul.products { grid-template-columns: 1fr; gap: 1rem; }
  .woocommerce ul.products li.product { padding: .65rem; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .88rem; }
  .ec-shop__toolbar { flex-wrap: wrap; justify-content: space-between; }
  .ec-shop__toolbar .woocommerce-result-count { width: 100%; }
  .ec-footer__grid { grid-template-columns: 1fr; }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: 100%; }
  .woocommerce div.product form.cart .variations select { min-width: 0; width: 100%; }
  .woocommerce div.product .woocommerce-tabs ul.tabs { display: grid; }
  .woocommerce div.product .woocommerce-tabs ul.tabs li a { width: 100%; }
  .ec-catalog-hero--category { min-height: 170px; padding-block: 1.75rem; }
  .ec-catalog-hero--category h1 { font-size: clamp(2rem,10vw,3.1rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
