/*
Theme Name: Quadri Fedele
Theme URI: https://www.quadrisrl.com/
Author: Quadri SRL
Description: Ricostruzione del sito Quadri con WooCommerce e percorsi originali.
Version: 1.0.5
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: quadri-fedele
*/
:root{--q-bg:#1f1f1f;--q-text:#e3e3e3;--q-accent:#f5b72e;--q-orange:#f39519;--q-width:1000px}*{box-sizing:border-box}body{margin:0;background:var(--q-bg);color:var(--q-text);font:17px/1.5 Roboto,Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--q-accent)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--q-accent);outline-offset:4px}img{max-width:100%;height:auto}h1,h2,h3,h4,p{margin:0}h1,h2,h3{line-height:1.25;font-weight:500}p+p{margin-top:1em}button,input,textarea,select{font:inherit}button,.button{cursor:pointer}.q-skip{position:absolute;left:16px;top:-80px;z-index:100000;background:#fff;color:#000;padding:12px}.q-skip:focus{top:10px}.q-header{position:relative;z-index:10;max-width:977px;min-height:89px;margin:25px auto 0;background:#000;border-radius:11px;padding:5px 21px 5px 14px;display:flex;align-items:center;gap:24px}.q-logo{display:flex;flex:0 0 186px}.q-logo img{width:186px;height:79px;object-fit:contain}.q-nav{margin-left:auto;display:flex;align-items:center;gap:22px}.q-nav a{font-size:17px;white-space:nowrap}.q-cart{position:relative;display:flex;align-items:center;justify-content:center;width:36px;color:white}.q-cart svg{width:21px;height:27px}.q-cart-count{position:absolute;top:-11px;right:-3px;border-radius:20px;min-width:20px;height:20px;background:#ffcf60;color:#111;font-size:11px;line-height:20px;text-align:center}.q-menu-toggle{display:none;background:transparent;color:white;border:1px solid #555;border-radius:4px;padding:5px 10px}.q-main{max-width:var(--q-width);margin:33px auto 0;min-height:55vh}.q-footer{max-width:1000px;margin:40px auto 0;padding:24px 20px 36px;text-align:center;font-size:14px}.q-footer nav{display:flex;gap:15px;justify-content:center;flex-wrap:wrap}.q-footer a{text-decoration:underline}.q-home{position:relative}.home:before{content:"";position:absolute;top:0;left:0;right:0;height:1317px;background:var(--q-home-background) center top/cover no-repeat;z-index:-1}.q-hero{text-align:center;padding:6px 0 28px}.q-hero h1{font-size:38px;font-weight:400;line-height:1.28;color:#f5f5f5}.q-hero h1 em{color:var(--q-orange)}.q-hero p{font-size:20px;line-height:1.28;margin-top:20px}.q-divisions{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:4px}.q-division{display:flex;flex-direction:column;text-align:center;min-height:404px;padding:10px 20px 20px;background:var(--division-image) center/cover no-repeat;color:#f5f5f5}.q-division:hover{color:#fff}.q-division h2{font-size:29px;line-height:1.25;color:var(--q-orange);font-weight:400}.q-division p{font-size:24px;line-height:1.18;margin-top:28px}.q-division span{margin-top:auto;font-size:16px;padding:7px 12px;align-self:center;border-bottom:1px solid transparent}.q-division:hover span{border-color:var(--q-accent)}.q-story{padding:62px 60px 72px}.q-story h2{font-size:25px;text-align:center;line-height:1.8;letter-spacing:1px}.q-story h2 em{color:var(--q-orange)}.q-story p{margin-top:45px;font-size:18px;text-align:justify;line-height:1.8}.q-wide-image{width:1166px;max-width:calc(100vw - 32px);position:relative;left:50%;transform:translateX(-50%);display:block}.q-page-heading{text-align:center;margin:0 0 48px}.q-page-heading h1{font-size:36px;color:var(--q-accent)}.q-page-heading p{font-size:24px;margin-top:10px}.q-product-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:70px 70px}.q-card{display:flex;flex-direction:column;text-align:center;align-items:center}.q-card>a:first-child{display:block;width:100%}.q-card img{width:100%;height:158px;object-fit:contain}.q-card h2{font-size:24px;color:var(--q-accent);margin-top:17px;min-height:90px;font-weight:400}.q-card p{font-size:20px;line-height:1.4;flex:1;margin:0 0 20px}.q-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--q-accent);color:#181818;border:0;border-radius:3px;padding:14px 20px;display:inline-block;font-size:15px;line-height:1.4;font-weight:600;min-height:46px}.q-button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:#ffd067;color:#111}.q-card:last-child:nth-child(3n+1){grid-column:2}.q-bakery-intro{font-size:16px;line-height:1.5;margin-top:65px}.q-original-layout{position:relative;min-height:var(--canvas-height)}.q-original-block{position:absolute;left:var(--x);top:var(--y);width:var(--w);min-height:var(--h);line-height:1.2}.q-original-block h1,.q-original-block h2,.q-original-block h3,.q-original-block h4{font-weight:400;line-height:1.2}.q-original-block p+p{margin-top:0}.q-original-block img{max-width:100%;object-fit:contain}.q-original-block a{color:inherit}.q-original-block a:hover{text-decoration:underline}.q-original-block ul.nav{list-style:none;padding:0}.q-original-block .rettangolo{display:none}.q-original-block a:has(img){display:block}.q-original-block [style*="position:absolute"]{position:static!important}.q-contact{max-width:805px;padding:0 6px}.q-contact h1{color:var(--q-accent);font-size:30px;margin-bottom:12px;font-weight:600}.q-contact label{display:block;margin:14px 0 7px}.q-contact input:not([type=checkbox]),.q-contact textarea{display:block;width:100%;min-height:48px;border:1px solid #ddd;background:#fff;color:#111;padding:10px}.q-contact textarea{min-height:130px;resize:vertical}.q-contact .q-consent{display:flex;gap:10px;align-items:flex-start;font-size:15px}.q-note{font-size:14px;color:#c5c5c5;margin:16px 0}.q-notice{border-left:3px solid var(--q-accent);background:#303030;padding:13px 18px;margin-bottom:22px}.woocommerce{color:var(--q-text)}.woocommerce .woocommerce-breadcrumb{color:#bfbfbf;font-size:14px;margin-bottom:24px}.woocommerce .woocommerce-breadcrumb a{color:var(--q-text)}.woocommerce-products-header h1{font-size:32px;color:var(--q-accent);margin:15px 0 30px}.woocommerce ul.products{display:grid;grid-template-columns:repeat(3,1fr);gap:45px 28px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none;width:auto;margin:0;display:flex;flex-direction:column}.woocommerce ul.products li.product a img{height:260px;object-fit:contain;background:#f7f7f7;border-radius:8px;margin-bottom:18px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:19px;line-height:1.35;min-height:66px}.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:#fff;font-weight:600}.woocommerce ul.products li.product .price{font-size:19px;margin-top:8px}.woocommerce ul.products li.product .button{align-self:flex-start;margin-top:auto}.woocommerce div.product .product_title{font-size:25px;font-weight:700;color:#fff}.woocommerce div.product div.images{width:56%}.woocommerce div.product div.summary{width:40%}.woocommerce div.product div.images img{background:#f7f7f7;border-radius:8px;max-height:720px;object-fit:contain}.woocommerce div.product p.price{font-size:26px;margin:18px 0 35px}.woocommerce-product-details__short-description{font-size:16px;line-height:1.6;margin-bottom:24px}.woocommerce-product-details__short-description p{margin:0 0 18px}.woocommerce div.product form.cart .variations select{background:#fff;color:#222;min-height:46px;padding:6px 10px;width:100%}.woocommerce div.product form.cart .variations label{color:#ddd}.woocommerce .quantity input.qty{min-height:48px;width:72px;background:#fff;color:#111;border:1px solid #ddd}.woocommerce div.product form.cart .button{background:var(--q-accent);color:#111}.woocommerce div.product .stock{color:#8ed99b}.woocommerce div.product .out-of-stock{color:#f0bb7c}.woocommerce div.product .woocommerce-tabs ul.tabs li{background:#303030;border-color:#555;color:#eee}.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:#1f1f1f;color:var(--q-accent)}.woocommerce div.product .woocommerce-tabs ul.tabs:before{border-color:#555}.woocommerce table.shop_table{border-color:#555}.woocommerce table.shop_table td,.woocommerce table.shop_table th{border-color:#444;padding:14px}.woocommerce table.shop_table a{color:var(--q-text)}.woocommerce .cart-collaterals .cart_totals h2{font-size:25px;margin-bottom:20px}.woocommerce-cart table.cart img{width:85px}.woocommerce input.input-text,.woocommerce textarea,.woocommerce select{background:#fff;color:#111;border:1px solid #aaa;border-radius:2px;padding:10px}.woocommerce-error,.woocommerce-info,.woocommerce-message{background:#2e2e2e;color:#eee;border-top-color:var(--q-accent)}.woocommerce-info:before,.woocommerce-message:before{color:var(--q-accent)}.woocommerce a.remove{color:#ffc2b7!important}.woocommerce a.remove:hover{background:#8c2114}.woocommerce nav.woocommerce-pagination ul{border-color:#666}.woocommerce nav.woocommerce-pagination ul li{border-color:#666}.woocommerce .related>h2{font-size:26px;margin:30px 0}.q-staging-label{position:fixed;bottom:12px;right:12px;z-index:9999;border:1px solid #80652e;background:#171717;color:#f5c768;padding:6px 11px;font-size:12px;border-radius:5px}.q-empty{padding:70px 20px;text-align:center}.q-empty h1{font-size:36px;margin-bottom:20px}.woocommerce .product_meta{font-size:14px;color:#aaa}.woocommerce .product_meta>span{display:block}.woocommerce .woocommerce-ordering select{max-width:100%}
@media(max-width:1040px){.q-header{margin-left:20px;margin-right:20px}.q-main{margin-left:20px;margin-right:20px}.q-nav{gap:15px}.q-header{gap:15px}.q-product-cards{column-gap:40px}.q-original-layout{zoom:calc((100vw - 40px)/1000px)}}
@media(max-width:780px){.q-header{margin:15px 16px 0;min-height:77px;padding:8px 14px;gap:16px;flex-wrap:wrap}.q-logo{flex-basis:145px}.q-logo img{width:145px;height:61px}.q-menu-toggle{display:block;margin-left:auto}.q-nav{display:none;order:5;width:100%;margin:5px 0 8px;flex-direction:column;align-items:stretch;gap:0}.q-nav.is-open{display:flex}.q-nav a{padding:10px 8px;border-top:1px solid #2e2e2e}.q-cart{width:27px;margin-right:6px}.q-main{margin:27px 20px 0}.q-hero{padding:7px 0 20px}.q-hero h1{font-size:31px}.q-hero p{font-size:17px;line-height:1.5}.q-hero p br{display:none}.q-divisions{grid-template-columns:1fr;gap:24px;margin-top:12px}.q-division{min-height:380px;padding-top:17px}.q-division h2{font-size:27px}.q-division p{font-size:22px}.q-story{padding:45px 2px}.q-story h2{font-size:22px;line-height:1.5}.q-story p{text-align:left;margin-top:28px;font-size:17px;line-height:1.65}.q-page-heading h1{font-size:29px}.q-page-heading p{font-size:20px}.q-product-cards{grid-template-columns:repeat(2,1fr);gap:45px 24px}.q-card img{height:140px}.q-card h2{font-size:21px;min-height:95px}.q-card p{font-size:17px}.q-card:last-child:nth-child(3n+1){grid-column:auto}.q-original-layout{min-height:0;zoom:1;display:flex;flex-direction:column;gap:22px}.q-original-block{position:static;left:auto;top:auto;width:100%;min-height:0;max-width:100%;overflow-wrap:anywhere}.q-original-block img{position:static!important;width:auto!important;height:auto!important;max-height:none;display:block;margin:auto}.q-original-block [style*="font-size"]{font-size:inherit!important}.q-original-block span{font-size:min(24px,1.5rem)}.q-original-block p{text-align:left!important;line-height:1.55!important}.q-original-block h1,.q-original-block h2{text-align:center!important}.q-contact{padding:0}.woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:35px 18px}.woocommerce ul.products li.product a img{height:190px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px;min-height:80px}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:100%}.woocommerce div.product div.images img{max-height:470px}.woocommerce div.product .product_title{font-size:25px}.woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{float:none}.woocommerce table.shop_table td{padding:12px 8px}.q-staging-label{font-size:10px;padding:3px 7px;bottom:4px;right:4px}}
@media(max-width:440px){.q-product-cards{grid-template-columns:1fr;gap:48px}.q-card{max-width:310px;margin:auto}.q-card img{height:185px}.q-card h2{min-height:0;margin-bottom:18px}.q-card p{font-size:19px}.q-hero h1{font-size:29px}.q-header{gap:12px}.q-logo{flex-basis:140px}.q-logo img{width:140px}.woocommerce ul.products li.product a img{height:155px}.woocommerce ul.products li.product .button{font-size:12px;padding:12px}.q-footer nav{gap:8px 15px}}

@media(min-width:781px){.q-nav{margin-right:45px}.q-hero p{margin-top:10px}.q-logo img{object-fit:fill}}
.q-division{background-image:linear-gradient(to bottom,rgba(0,0,0,.78),rgba(0,0,0,.30)),var(--division-image)}

/* Keep the complete metal badge and tricolour; replace only the dark origin line in the header. */
body .q-header a.q-logo{display:flex;flex:0 0 170px;flex-direction:column;align-items:center;width:170px;max-width:100%;min-width:0;overflow:visible}
body .q-header a.q-logo .q-logo-graphic{display:block;width:100%;height:auto;aspect-ratio:1920/790;overflow:hidden;flex:none}
body .q-header a.q-logo .q-logo-graphic img{display:block;width:100%;max-width:100%;height:auto;max-height:none;aspect-ratio:1920/925;object-fit:contain;object-position:center top;margin:0;transform:none}
body .q-header a.q-logo .q-logo-origin{display:block;width:100%;margin-top:1px;color:#fff;font:500 12px/1.25 Arial,sans-serif;letter-spacing:.08em;text-align:center;text-transform:uppercase;white-space:nowrap}
@media(max-width:980px){
 body .q-header,body.q-shop-catalog .q-header{grid-template-columns:44px minmax(0,1fr) 44px;gap:0 12px;overflow:visible}
 body .q-header a.q-logo{width:160px;max-width:100%;justify-self:center;flex-basis:auto}
 body .q-header a.q-logo .q-logo-origin{font-size:11px}
}
