/*
Theme Name: Tecno Power
Theme URI: https://tecnopowercoop.it
Author: Tecno Power
Description: Tema WooCommerce personalizzato per Tecno Power Societa Cooperativa, edilizia, impiantistica e ferramenta.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: tecno-power
*/

:root{
  --tp-blue:#0b4d88;
  --tp-blue-dark:#062f55;
  --tp-deep:#041f39;
  --tp-orange:#ff7a12;
  --tp-orange-dark:#e96900;
  --tp-text:#15324b;
  --tp-muted:#687b8d;
  --tp-line:#dfe7ef;
  --tp-bg:#f5f8fb;
  --tp-white:#fff;
  --tp-shadow:0 10px 30px rgba(5,47,85,.10);
  --tp-radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--tp-text);background:#fff}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.tp-container{width:min(1280px,calc(100% - 32px));margin:auto}
.tp-topbar{background:var(--tp-deep);color:#edf5fb;font-size:13px}
.tp-topbar .tp-container{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:9px 0;flex-wrap:wrap}
.tp-topbar-left,.tp-topbar-right{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.tp-header{background:#fff;position:sticky;top:0;z-index:1000;box-shadow:0 1px 0 rgba(0,0,0,.06)}
.tp-head-main{display:grid;grid-template-columns:255px 1fr auto;gap:26px;align-items:center;padding:17px 0}
.tp-logo img{width:235px;height:86px;object-fit:contain;object-position:left center}
.tp-search form{display:flex;border:2px solid var(--tp-line);border-radius:14px;overflow:hidden;background:#fff}
.tp-search input{width:100%;border:0;outline:0;padding:15px 16px;font-size:15px}
.tp-search button{border:0;background:var(--tp-orange);color:white;width:62px;font-size:24px;font-weight:900;cursor:pointer}
.tp-head-actions{display:flex;gap:20px;align-items:center}
.tp-action{display:flex;gap:7px;align-items:center;font-size:13px;font-weight:800;color:var(--tp-blue-dark)}
.tp-action .ico{font-size:25px}
.tp-cart-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:20px;background:var(--tp-orange);color:white;font-size:11px;margin-left:4px}
.tp-nav{background:linear-gradient(90deg,var(--tp-blue),var(--tp-blue-dark));color:#fff}
.tp-nav .tp-container{display:flex;align-items:stretch;gap:0}
.tp-allcats{display:flex;align-items:center;padding:15px 18px;background:#1265ad;font-weight:900;white-space:nowrap}
.tp-menu{display:flex;align-items:stretch;list-style:none;margin:0;padding:0;overflow:auto}
.tp-menu li{margin:0}
.tp-menu a{display:block;padding:15px 17px;font-weight:800;font-size:14px;white-space:nowrap}
.tp-menu a:hover{background:rgba(255,255,255,.09)}
.tp-offer-link{background:var(--tp-orange)!important}
.tp-hero{position:relative;color:#fff;background:
linear-gradient(90deg,rgba(4,31,57,.96) 0%,rgba(4,31,57,.86) 38%,rgba(4,31,57,.30) 70%),
url('assets/hero-construction.jpg') center right/cover no-repeat;min-height:510px;display:flex;align-items:center}
.tp-hero .tp-container{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:24px}
.tp-hero-copy{padding:48px 0}
.tp-eyebrow{color:#ffb16f;font-size:17px;font-weight:900;text-transform:uppercase;letter-spacing:.4px}
.tp-hero h1{font-size:68px;line-height:.96;margin:10px 0 14px;letter-spacing:-3px;font-weight:900;max-width:760px}
.tp-hero h1 strong{color:var(--tp-orange)}
.tp-hero p{font-size:20px;line-height:1.45;color:#edf5fb;max-width:590px;margin:0 0 26px}
.tp-btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 20px;border-radius:11px;font-weight:900;border:0;cursor:pointer}
.tp-btn-primary{background:var(--tp-orange);color:#fff}
.tp-btn-primary:hover{background:var(--tp-orange-dark);color:#fff}
.tp-btn-outline{border:1px solid rgba(255,255,255,.35);color:#fff;background:rgba(255,255,255,.08);margin-left:8px}
.tp-benefits{display:flex;gap:22px;flex-wrap:wrap;margin-top:24px;font-size:14px;font-weight:800}
.tp-benefits span{display:flex;align-items:center;gap:7px}
.tp-hero-side{display:flex;align-items:flex-end;justify-content:flex-end;min-height:440px}
.tp-hero-card{background:rgba(4,31,57,.54);backdrop-filter:blur(7px);border:1px solid rgba(255,255,255,.18);padding:18px 20px;border-radius:16px;max-width:280px;margin-bottom:34px}
.tp-hero-card .script{font-family:cursive;font-size:24px;line-height:1.18}
.tp-section{padding:34px 0}
.tp-section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}
.tp-section-head h2{margin:0;color:var(--tp-blue-dark);font-size:30px;letter-spacing:-1px}
.tp-section-head a{font-weight:900;color:var(--tp-orange-dark);font-size:14px}
.tp-category-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}
.tp-cat{border:1px solid var(--tp-line);background:#fff;border-radius:13px;overflow:hidden;box-shadow:0 3px 12px rgba(0,0,0,.04);transition:.2s}
.tp-cat:hover{transform:translateY(-3px);box-shadow:var(--tp-shadow)}
.tp-cat-img{height:130px;background:linear-gradient(180deg,#f0f6fb,#fff);display:flex;align-items:center;justify-content:center;padding:10px}
.tp-cat-img img{width:100%;height:100%;object-fit:cover;border-radius:9px}
.tp-cat-label{display:flex;justify-content:space-between;align-items:center;padding:11px 12px 14px;font-weight:900;color:var(--tp-blue-dark);font-size:14px}
.tp-split{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tp-banner{min-height:190px;border-radius:15px;padding:24px;display:flex;align-items:center;background:linear-gradient(115deg,#07497e,#0b6aad);color:white;overflow:hidden;position:relative}
.tp-banner.light{background:linear-gradient(115deg,#f6f8fb,#dce8f3);color:var(--tp-blue-dark)}
.tp-banner h3{font-size:24px;margin:0 0 8px}.tp-banner p{max-width:430px;line-height:1.45;margin:0 0 18px}
.tp-services{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tp-service{background:linear-gradient(135deg,#eef5fb,#fff);border:1px solid var(--tp-line);border-radius:15px;padding:22px;display:flex;gap:16px}.tp-service .icon{font-size:34px}.tp-service h3{margin:0 0 7px;color:var(--tp-blue-dark)}.tp-service p{margin:0;color:var(--tp-muted);line-height:1.55}
.tp-brands{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}.tp-brand{padding:16px 8px;border-top:1px solid var(--tp-line);border-bottom:1px solid var(--tp-line);font-weight:900;text-align:center;color:var(--tp-blue-dark);font-size:18px}.tp-brand:nth-child(even){color:var(--tp-orange-dark)}
.tp-footer{background:linear-gradient(180deg,var(--tp-blue-dark),#041f39);color:#e7f0f7;margin-top:28px}.tp-footer-grid{display:grid;grid-template-columns:1.2fr 1.25fr 1fr 1fr 1fr;gap:22px;padding:34px 0}.tp-footer-logo img{width:220px}.tp-footer h4{color:white;margin:0 0 12px}.tp-footer p,.tp-footer a{color:#d8e4ed;line-height:1.65;margin:0 0 5px;display:block}.tp-footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:14px 0;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:13px;color:#c3d2df}
/* WooCommerce */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:14px;margin:0!important}.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}.woocommerce ul.products li.product{width:auto!important;margin:0!important;border:1px solid var(--tp-line);border-radius:14px;padding:13px;background:#fff;box-shadow:0 4px 12px rgba(4,31,57,.05)}.woocommerce ul.products li.product a img{border-radius:10px;height:190px;object-fit:contain}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:17px!important;color:var(--tp-blue-dark);font-weight:800}.woocommerce ul.products li.product .price{color:#ef5e00!important;font-weight:900;font-size:20px!important}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--tp-orange)!important;color:white!important;border-radius:9px!important}.woocommerce span.onsale{background:#e93326!important}
.tp-content{padding:36px 0;min-height:55vh}.tp-content h1{color:var(--tp-blue-dark)}
@media(max-width:1100px){.tp-head-main{grid-template-columns:220px 1fr auto}.tp-category-grid{grid-template-columns:repeat(4,1fr)}.tp-brands{grid-template-columns:repeat(4,1fr)}.woocommerce ul.products{grid-template-columns:repeat(3,1fr)!important}.tp-footer-grid{grid-template-columns:1fr 1fr}.tp-hero .tp-container{grid-template-columns:1fr}.tp-hero-side{display:none}}
@media(max-width:760px){.tp-topbar .tp-container{display:block}.tp-head-main{grid-template-columns:1fr}.tp-logo img{width:190px}.tp-head-actions{display:none}.tp-nav .tp-container{display:block}.tp-menu{display:flex}.tp-hero h1{font-size:44px;letter-spacing:-2px}.tp-category-grid,.tp-split,.tp-services,.tp-brands{grid-template-columns:1fr 1fr}.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}.tp-footer-grid{grid-template-columns:1fr}.tp-section-head{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.tp-category-grid,.tp-split,.tp-services,.tp-brands{grid-template-columns:1fr}.woocommerce ul.products{grid-template-columns:1fr!important}.tp-btn-outline{margin:10px 0 0}.tp-hero h1{font-size:38px}}

.custom-logo-link{display:none!important}
