/*
Theme Name: Ecommerce Legna
Description: Tema WooCommerce per ecommerce-legna.com, con catalogo, assistenza e pagine informative.
Version: 1.0.7
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: ecommerce-legna
*/
:root{--ink:#3b241e;--dark:#40201b;--paper:#fff3da;--muted:#664337;--line:#e6c0a0;--amber:#963718}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.6 system-ui,sans-serif;overflow-wrap:anywhere}
img,video,iframe{max-width:100%}img,video{height:auto}
a{color:inherit;text-underline-offset:.24em}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #963d2b;outline-offset:4px}
h1,h2,h3{line-height:1.12;letter-spacing:-.025em}h2{font-size:clamp(1.55rem,3vw,2.4rem)}
.el-wrap{width:min(100% - 2rem,1200px);margin-inline:auto}
.el-skip{position:absolute;left:1rem;top:1rem;z-index:100;background:#fff;padding:.5rem 1rem;transform:translateY(-200%)}
.el-skip:focus{transform:none}
.el-header{background:var(--paper);border-bottom:1px solid var(--line)}
.el-header-inner{min-height:4.8rem;display:flex;align-items:center;gap:1rem 2rem;flex-wrap:wrap;padding-block:.75rem}
.el-brand{margin-right:auto;font-size:1.25rem;font-weight:850}
.el-brand a,.el-header nav a{text-decoration:none}
.el-brand img{display:block;width:auto;max-height:52px;max-width:175px}
.el-header ul,.el-footer ul{padding:0;margin:0;list-style:none}
.el-header ul{display:flex;gap:.25rem 1.15rem;align-items:center;flex-wrap:wrap}
.el-header nav a,.el-cart{display:inline-flex;min-height:44px;align-items:center;font-weight:650}
.el-cart{border:1px solid var(--line);border-radius:100px;padding:0 .9rem;text-decoration:none}
.el-hero{position:relative;isolation:isolate;background:#381f19;color:#fff;overflow:hidden}
.el-hero-photo,.el-hero::after{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.el-hero-photo{object-fit:cover;object-position:center right}
.el-hero::after{content:"";background:linear-gradient(90deg,rgba(50,20,15,.94),rgba(50,20,15,.76) 44%,rgba(50,20,15,.26))}
.el-hero-inner{min-height:clamp(26rem,55vw,41rem);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-block:4rem}
.el-hero h1{font-size:clamp(2.8rem,8vw,6.7rem);line-height:.99;letter-spacing:-.065em;margin:0}
.el-hero p{max-width:36ch;color:#f2eadb;margin:1.4rem 0;font-size:clamp(1rem,2vw,1.18rem)}
.el-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.65rem 1.2rem;border-radius:8px;font-weight:750;text-decoration:none;text-align:center}
.el-button:hover,.el-cart:hover{box-shadow:0 0 0 2px currentColor}
.el-primary{background:var(--amber);color:#ffffff}
.el-section{padding-block:clamp(1.6rem,5vw,3.5rem)}
.el-section h2,.el-help h2{margin:0 0 1rem}
.el-section-head,.el-help-inner{display:flex;align-items:center;justify-content:space-between;gap:1.1rem;flex-wrap:wrap}
.el-section-head{margin-bottom:1rem}
.el-section-head h2,.el-help p{margin:0}
.el-section-head a{font-weight:700}
.el-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.85rem}
.el-categories>a{display:flex;flex-direction:column;justify-content:end;overflow:hidden;background:#ffdfae;min-height:6rem;border-radius:12px;text-decoration:none;font-weight:760;font-size:1.12rem}
.el-categories>a:hover{text-decoration:underline}
.el-categories img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}
.el-categories>a>span{display:flex;justify-content:space-between;padding:1rem}
.el-content{padding-block:clamp(1.5rem,5vw,4rem);min-height:35vh}
.el-content>article>p{max-width:74ch}
.el-content table{max-width:100%}
.el-help{background:#ffd5a0;padding-block:2rem}
.el-help p{color:var(--muted)}
.el-wa{background:#21644c;color:#fff}
.el-footer{background:var(--dark);color:#fff1dd;padding-block:2.5rem}
.el-footer-grid{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:1.5rem}
.el-footer h2{font-size:1.15rem;margin:0 0 .75rem}
.el-footer p,.el-footer li{margin:0 0 .45rem}
.el-footer-bottom{text-align:center;padding:.8rem 1rem;background:#291311;color:#fff}
.el-footer-bottom a{display:inline-flex;align-items:center;min-height:44px}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{min-width:0}
.woocommerce ul.products li.product a img{border-radius:8px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce select{max-width:100%}
.el-products .woocommerce ul.products{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 3rem)/4);gap:1rem;margin:0;overflow-x:auto;scroll-snap-type:x mandatory;padding:.3rem .2rem .65rem}
.el-products .woocommerce ul.products::before,.el-products .woocommerce ul.products::after{display:none}
.el-products .woocommerce ul.products li.product{float:none;clear:none;width:auto;margin:0;scroll-snap-align:start;padding:.8rem;background:#fff;border:1px solid var(--line);border-radius:12px}
@media(max-width:850px){.el-products .woocommerce ul.products{grid-auto-columns:calc((100% - 1rem)/2)}}
@media(max-width:600px){
.el-header-inner{gap:.35rem 1rem}.el-header nav{order:3;width:100%;border-top:1px solid var(--line)}
.el-footer-grid{grid-template-columns:1fr}.el-hero-photo{object-position:65% center}
.el-hero::after{background:linear-gradient(90deg,rgba(50,20,15,.95),rgba(50,20,15,.58))}
.el-help-inner .el-button{width:100%}
}
@media(max-width:600px){.el-products .woocommerce ul.products{grid-auto-columns:72%}}

.el-search{padding-top:1.35rem}
.el-search form{display:flex;align-items:stretch;gap:.6rem;flex-wrap:wrap}
.el-search input[type=search]{flex:1 1 12rem;min-width:0;min-height:46px;padding:.65rem .9rem;border:1px solid var(--line);border-radius:8px;font:inherit;background:#fff;color:var(--ink)}
.el-search button{min-height:46px;padding:.6rem 1.15rem;border:0;border-radius:8px;background:var(--dark);color:white;font:inherit;font-weight:700;cursor:pointer}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}


.el-header { border-bottom: 3px solid #c46c36; }
.el-primary { background: linear-gradient(110deg, #923519, #8b3a32); }
.el-categories > a { background: linear-gradient(130deg, #ffe6bd, #f8c18e); }
.el-help { background: linear-gradient(110deg, #ffdfae, #f3bd8d); }
.el-footer { background: linear-gradient(115deg, #40201b, #542b28); }

.el-carousel-controls:not([hidden]) { display:flex; justify-content:flex-end; gap:.5rem; margin-bottom:.5rem; }
.el-carousel-controls button { min-width:44px; min-height:44px; color:#fff; background:#963718; border:0; border-radius:8px; font-size:1.15rem; cursor:pointer; }
.el-carousel-controls button:disabled { background:#f2d9c7; color:#664337; cursor:default; }

.el-category-banner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1.2rem;
    margin-bottom:1rem;
    padding:clamp(1.25rem,4vw,3rem);
    border-radius:16px;
    background:linear-gradient(115deg,#ffe6bd,#f3bd8d);
}
.el-category-banner p { margin:.5rem 0 1rem; color:var(--muted); }
.el-category-banner h2 { margin:0; }
.el-category-banner img { width:clamp(7rem,28vw,18rem); height:clamp(7rem,20vw,14rem); object-fit:contain; flex:none; background:#fff; border-radius:10px; padding:.5rem; }
@media(max-width:600px) {
    .el-category-banner { flex-wrap:wrap; }
    .el-category-banner img { width:100%; height:9rem; }
}
