/*
Theme Name: Electrodomestici
Theme URI: https://www.electrodomestici.com
Author: Electrodomestici
Description: Tema WooCommerce su misura per pellet, stufe e riscaldamento domestico.
Version: 1.0.0
Text Domain: electrodomestici
*/

:root {
  --ed-orange: #f36b21;
  --ed-orange-dark: #d94e08;
  --ed-amber: #ffb347;
  --ed-charcoal: #242729;
  --ed-ink: #16191b;
  --ed-muted: #667078;
  --ed-cream: #fff8f1;
  --ed-surface: #ffffff;
  --ed-line: #e8e4df;
  --ed-radius: 18px;
  --ed-shadow: 0 18px 55px rgba(27, 25, 22, .09);
  --ed-wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ed-ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--ed-wrap)); margin-inline: auto; }
.site-main { min-height: 55vh; }

.announcement { background: var(--ed-charcoal); color: #fff; font-size: .86rem; }
.announcement .container { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 30px; text-align: center; }
.announcement strong { color: var(--ed-amber); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ed-line); backdrop-filter: blur(14px); }
.header-main { display: grid; grid-template-columns: 300px 1fr auto; align-items: center; gap: 30px; min-height: 88px; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: min(290px, 100%); max-height: 72px; object-fit: contain; object-position: left center; }
.site-branding { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.site-tagline { color: #68717c; font-size: .72rem; letter-spacing: .02em; line-height: 1.2; }
.brand-fallback { font-size: 1.35rem; font-weight: 850; }
.brand-fallback span { color: var(--ed-orange); }
.primary-menu { display: flex; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-weight: 700; font-size: .96rem; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--ed-orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-action { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--ed-line); border-radius: 999px; font-weight: 750; font-size: .9rem; }
.header-action:hover { border-color: var(--ed-orange); color: var(--ed-orange); }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; color: #fff; background: var(--ed-orange); font-size: .72rem; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.6rem; }

.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #fff9f3 0%, #fff 55%, #fff0df 100%); }
.hero::after { content: ""; position: absolute; width: 460px; height: 460px; right: -100px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(243,107,33,.25), rgba(243,107,33,0) 70%); }
.hero-grid { position: relative; z-index: 1; min-height: 610px; display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: 70px; padding-block: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--ed-orange-dark); font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: .77rem; }
.eyebrow::before { content: ""; width: 27px; height: 3px; background: var(--ed-orange); border-radius: 9px; }
.hero h1 { max-width: 780px; margin: 16px 0 22px; font-size: clamp(2.55rem, 5.3vw, 5.15rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--ed-orange); font-style: normal; }
.hero-copy { max-width: 650px; margin: 0 0 30px; color: var(--ed-muted); font-size: 1.12rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ed-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; border: 0; border-radius: 999px; background: var(--ed-orange); color: #fff; font-weight: 800; transition: .2s ease; }
.ed-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { transform: translateY(-2px); background: var(--ed-orange-dark); color: #fff; }
.ed-button.secondary { color: var(--ed-ink); background: #fff; border: 1px solid var(--ed-line); }
.ed-button.secondary:hover { border-color: var(--ed-orange); color: var(--ed-orange); }
.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.heat-card { width: min(100%, 430px); aspect-ratio: 1 / 1.05; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 44% 56% 35% 65% / 58% 38% 62% 42%; background: linear-gradient(145deg, var(--ed-orange), #ff9c42); box-shadow: 0 35px 80px rgba(232, 86, 14, .28); }
.heat-card::before { content: ""; width: 58%; height: 70%; border-radius: 65% 35% 60% 40% / 70% 55% 45% 30%; background: #fff4e8; transform: rotate(8deg); }
.heat-card::after { content: ""; position: absolute; bottom: 22%; width: 46%; height: 22%; border-radius: 50%; background: repeating-linear-gradient(155deg, #d89a56 0 14px, #b66e2c 15px 23px); box-shadow: 0 13px 0 rgba(120,59,14,.12); }
.float-note { position: absolute; left: -12px; bottom: 20px; padding: 16px 20px; border-radius: 15px; background: #fff; box-shadow: var(--ed-shadow); font-weight: 800; }
.float-note small { display: block; color: var(--ed-muted); font-weight: 600; }

.trust-strip { border-block: 1px solid var(--ed-line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 25px 30px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--ed-line); }
.trust-item:last-child { border: 0; }
.trust-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--ed-orange-dark); background: var(--ed-cream); font-size: 1.25rem; }
.trust-item strong { display: block; }
.trust-item span { color: var(--ed-muted); font-size: .87rem; }

.section { padding-block: 90px; }
.section.soft { background: #f8f7f5; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.045em; }
.text-link { color: var(--ed-orange-dark); font-weight: 800; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { position: relative; min-height: 290px; padding: 28px; overflow: hidden; border-radius: var(--ed-radius); background: var(--ed-charcoal); color: #fff; transition: .25s ease; }
.category-card:nth-child(even) { background: linear-gradient(145deg, #f36b21, #c94608); }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--ed-shadow); }
.category-card .category-symbol { position: absolute; right: -15px; bottom: -35px; font-size: 8rem; opacity: .14; transform: rotate(-9deg); }
.category-card h3 { margin: 80px 0 6px; font-size: 1.45rem; }
.category-card p { margin: 0; opacity: .78; }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto!important; margin: 0!important; padding: 14px 14px 20px; border: 1px solid var(--ed-line); border-radius: var(--ed-radius); background: #fff; transition: .25s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--ed-shadow); }
.woocommerce ul.products li.product a img { border-radius: 13px; aspect-ratio: 1/1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ed-ink); font-size: 1rem; }
.woocommerce ul.products li.product .price { color: var(--ed-orange-dark); font-size: 1.1rem; font-weight: 850; }
.woocommerce span.onsale { background: var(--ed-orange); }
.empty-products { padding: 45px; border: 1px dashed #d3ccc5; border-radius: var(--ed-radius); text-align: center; color: var(--ed-muted); background: #fff; }

.benefit-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 18px; }
.benefit-intro, .benefit-card { padding: 32px; border-radius: var(--ed-radius); }
.benefit-intro { color: #fff; background: var(--ed-charcoal); }
.benefit-intro h2 { margin: 8px 0 12px; font-size: 2.35rem; line-height: 1.05; }
.benefit-card { border: 1px solid var(--ed-line); background: #fff; }
.benefit-number { color: var(--ed-orange); font-size: .8rem; font-weight: 900; letter-spacing: .15em; }
.benefit-card h3 { margin: 42px 0 8px; }
.benefit-card p { color: var(--ed-muted); margin: 0; }

.cta { padding: 0 0 90px; }
.cta-box { position: relative; overflow: hidden; padding: 54px 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-radius: 28px; color: #fff; background: linear-gradient(115deg, var(--ed-orange-dark), var(--ed-orange)); }
.cta-box::after { content: ""; position: absolute; right: 25%; width: 260px; height: 260px; border: 55px solid rgba(255,255,255,.09); border-radius: 50%; }
.cta-box h2 { position: relative; z-index: 1; margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.1; }
.cta-box p { position: relative; z-index: 1; margin: 0; opacity: .86; }
.cta-box .ed-button { position: relative; z-index: 1; color: var(--ed-ink); background: #fff; white-space: nowrap; }

.content-wrap { padding-block: 65px 90px; }
.page-header { padding: 68px 0 50px; background: var(--ed-cream); }
.page-header h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.045em; }
.entry-content { max-width: 900px; }

.site-footer { padding-top: 65px; color: #d9dddf; background: var(--ed-charcoal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; padding-bottom: 55px; }
.footer-brand { color: #fff; font-size: 1.35rem; font-weight: 850; }
.footer-brand span { color: var(--ed-orange); }
.footer-copy { max-width: 360px; color: #aeb5b9; }
.site-footer h3 { color: #fff; font-size: .95rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a:hover { color: var(--ed-amber); }
.footer-payments { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid rgba(255,255,255,.11); }
.footer-payments__text { display: flex; flex-direction: column; line-height: 1.35; }
.footer-payments__text strong { color: #fff; }
.footer-payments__text span { color: #aeb5b9; font-size: .84rem; }
.payment-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.payment-badge { min-height: 38px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 7px; border-radius: 7px; color: #172033; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.09); font-size: .76rem; font-weight: 800; line-height: 1; }
.payment-badge--bank svg { width: 20px; height: 20px; fill: var(--ed-orange-dark); }
.payment-badge--visa { color: #1434cb; font-size: 1.08rem; font-style: italic; letter-spacing: -.04em; }
.payment-badge--mastercard { font-size: .68rem; }
.mc-circles { position: relative; width: 31px; height: 19px; display: inline-block; }
.mc-circles i { position: absolute; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #eb001b; }
.mc-circles i:last-child { right: 0; background: #f79e1b; opacity: .92; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.11); color: #9aa3a7; font-size: .84rem; }

.ed-whatsapp-chat { position: fixed; right: 22px; bottom: 22px; z-index: 999; min-height: 56px; padding: 10px 18px 10px 12px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; color: #fff; background: #25d366; box-shadow: 0 12px 34px rgba(0,0,0,.24); font-size: .92rem; font-weight: 850; transition: transform .2s ease, background .2s ease; }
.ed-whatsapp-chat:hover { color: #fff; background: #1eaf56; transform: translateY(-3px); }
.ed-whatsapp-chat svg { width: 34px; height: 34px; flex: 0 0 auto; fill: currentColor; }
.ed-whatsapp-chat:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 980px) {
  .header-main { grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: block; }
  .site-nav { display: none; grid-column: 1 / -1; padding-bottom: 22px; }
  .site-nav.is-open { display: block; }
  .primary-menu { flex-direction: column; gap: 13px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 330px; }
  .heat-card { width: 330px; }
  .category-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--ed-wrap)); }
  .announcement { display: none; }
  .header-main { min-height: 74px; gap: 12px; }
  .custom-logo { width: min(185px, 100%); max-height: 58px; }
  .header-action.account { display: none; }
  .hero-grid { padding-block: 50px; gap: 30px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-visual { min-height: 280px; }
  .heat-card { width: 270px; }
  .float-note { left: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--ed-line); }
  .section { padding-block: 65px; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid, .woocommerce ul.products, .benefit-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-payments { align-items: flex-start; flex-direction: column; }
  .category-card { min-height: 235px; }
  .cta-box { padding: 38px 28px; align-items: start; flex-direction: column; }
  .ed-whatsapp-chat { right: 14px; bottom: 14px; width: 58px; height: 58px; min-height: 58px; padding: 12px; justify-content: center; }
  .ed-whatsapp-chat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.ed-delivery-estimate {
  clear: both;
  margin: 1rem 0;
  padding: .85rem 1rem;
  border-left: 4px solid #ef7d00;
  background: #fff7ed;
  color: #303030;
  font-size: .95rem;
  line-height: 1.55;
}
