/*
Theme Name: Bioheater Avada Child
Theme URI: https://bioheater.example
Author: Bioheater
Author URI: https://bioheater.example
Description: Child theme Avada per Bioheater, produttore e distributore di resistenze elettriche riscaldanti.
Template: Avada
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bioheater
*/

:root {
  --bh-ink: #131820;
  --bh-steel: #28323e;
  --bh-muted: #657180;
  --bh-line: #d9e0e8;
  --bh-paper: #f6f8fa;
  --bh-panel: #ffffff;
  --bh-copper: #f42a12;
  --bh-copper-dark: #c91e0c;
  --bh-blue: #1c5a7b;
  --bh-shadow: 0 18px 48px rgba(19, 24, 32, 0.13);
  --bh-page-gutter: clamp(18px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  background: var(--bh-paper);
  color: var(--bh-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  max-width: 100%;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  width: 100%;
}

main,
.bh-header,
.bh-hero,
.bh-section,
.bh-band,
.bh-footer {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

/* Avada assigns #content a sidebar width by default. This homepage is full-width. */
.fusion-body main#content,
body.home main#content {
  float: none !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.bh-header {
  align-items: center;
  background: rgba(246, 248, 250, 0.94);
  border-bottom: 1px solid var(--bh-line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 15px var(--bh-page-gutter);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 50;
}

.bh-brand {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  min-width: max-content;
}

.bh-logo-mark {
  height: 52px;
  object-fit: contain;
  width: 40px;
}

.bh-logo-text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.bh-logo-bio {
  color: #090909;
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.bh-logo-heater {
  color: #f42a12;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.bh-nav {
  align-items: center;
  display: flex;
  gap: 22px;
  color: var(--bh-muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.bh-nav a:hover,
.bh-footer a:hover {
  color: var(--bh-copper);
}

.bh-language-switcher {
  align-items: center;
  display: flex;
  gap: 6px;
}

.bh-language-switcher a {
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  color: var(--bh-muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 8px 9px;
}

.bh-language-switcher a:hover,
.bh-language-switcher .is-active {
  background: var(--bh-steel);
  border-color: var(--bh-steel);
  color: #fff;
}

.bh-cta,
.bh-button,
.wp-block-button__link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

.bh-cta,
.bh-button-primary,
.wp-block-button__link {
  background: var(--bh-copper);
  color: #fff;
}

.bh-cta:hover,
.bh-button-primary:hover,
.wp-block-button__link:hover {
  background: var(--bh-copper-dark);
}

.bh-button-secondary {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--bh-line);
  color: var(--bh-ink);
}

.bh-hero {
  min-height: calc(100vh - 68px);
  overflow: hidden;
  position: relative;
}

.bh-hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.bh-hero::after {
  background:
    linear-gradient(90deg, rgba(19, 24, 32, 0.96) 0%, rgba(19, 24, 32, 0.84) 38%, rgba(19, 24, 32, 0.18) 72%),
    linear-gradient(0deg, rgba(19, 24, 32, 0.28), rgba(19, 24, 32, 0));
  content: "";
  inset: 0;
  position: absolute;
}

.bh-hero-content {
  color: #fff;
  max-width: 760px;
  padding: 118px clamp(20px, 6vw, 84px) 72px;
  position: relative;
  z-index: 1;
}

.bh-hero-content h1,
.bh-hero-content h2,
.bh-hero-content h3 {
  color: #fff;
}

.bh-eyebrow {
  color: var(--bh-copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 5.5rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.bh-hero-copy {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
  max-width: 650px;
}

.bh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 42px;
}

.bh-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  max-width: 740px;
}

.bh-metrics div {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 16px;
}

.bh-metrics dt {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.bh-metrics dd {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  margin: 4px 0 0;
}

.bh-section {
  padding: 88px var(--bh-page-gutter);
}

.bh-quick-paths {
  background: #fff;
  border-bottom: 1px solid var(--bh-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 var(--bh-page-gutter);
}

.bh-quick-paths a {
  border-left: 1px solid var(--bh-line);
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: 28px;
}

.bh-quick-paths a:last-child {
  border-right: 1px solid var(--bh-line);
}

.bh-quick-paths span,
.bh-quick-paths b {
  color: var(--bh-copper);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bh-quick-paths strong {
  font-size: 1.4rem;
  line-height: 1.15;
}

.bh-quick-paths small {
  color: var(--bh-muted);
  font-size: 0.92rem;
}

.bh-quick-paths b {
  align-self: end;
}

.bh-stock-section {
  background: #eef1f4;
  position: relative;
}

.bh-anchor {
  position: absolute;
  top: -96px;
}

.bh-contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.bh-contact-details p {
  margin: 0;
}

.bh-custom-band {
  background: #fff;
  border-bottom: 1px solid var(--bh-line);
  border-top: 1px solid var(--bh-line);
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
}

.bh-custom-copy p:not(.bh-eyebrow) {
  color: var(--bh-muted);
  margin-bottom: 28px;
}

.bh-custom-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.bh-custom-list li {
  border-top: 1px solid var(--bh-line);
  font-weight: 800;
  padding: 20px 20px 20px 34px;
  position: relative;
}

.bh-custom-list li::before {
  color: var(--bh-copper);
  content: "+";
  font-weight: 900;
  left: 10px;
  position: absolute;
}

.bh-technical-intro h3 {
  font-size: 1.35rem;
}

.bh-intro,
.bh-contact {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
}

.bh-intro p,
.bh-copy,
.bh-card p,
.bh-step p,
.bh-contact p {
  color: var(--bh-muted);
}

.bh-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.bh-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bh-card {
  background: var(--bh-panel);
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  padding: 28px;
}

.bh-card-featured {
  background: var(--bh-steel);
  color: #fff;
}

.bh-card-featured p,
.bh-card-featured li {
  color: rgba(255, 255, 255, 0.76);
}

.bh-tag {
  background: rgba(244, 42, 18, 0.13);
  border-radius: 999px;
  color: var(--bh-copper-dark);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 24px;
  padding: 6px 10px;
  text-transform: uppercase;
}

.bh-card-featured .bh-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bh-copper);
}

.bh-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.bh-band {
  background: var(--bh-steel);
  color: #fff;
}

.bh-band .bh-copy {
  color: rgba(255, 255, 255, 0.76);
}

.bh-process {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.bh-step {
  border-top: 1px solid var(--bh-line);
  padding-top: 22px;
}

.bh-step span {
  color: var(--bh-copper);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 12px;
}

.bh-contact-box,
.bh-form,
.bh-contact .wpcf7 {
  background: #fff;
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  box-shadow: var(--bh-shadow);
  padding: 28px;
}

.bh-contact-box,
.bh-contact .wpcf7 {
  grid-column: 1 / -1;
}

.bh-form,
.bh-contact .wpcf7-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bh-field-wide,
.bh-stock-panel,
.bh-utility-panel,
.bh-contact .wpcf7-submit,
.bh-contact .wpcf7-response-output {
  grid-column: 1 / -1;
}

.bh-field {
  display: grid;
  gap: 8px;
}

.bh-field label {
  font-size: 0.92rem;
  font-weight: 800;
}

.bh-field input,
.bh-field select,
.bh-field textarea,
.bh-contact .wpcf7 input[type="text"],
.bh-contact .wpcf7 input[type="email"],
.bh-contact .wpcf7 input[type="number"],
.bh-contact .wpcf7 input[type="date"],
.bh-contact .wpcf7 input[type="file"],
.bh-contact .wpcf7 select,
.bh-contact .wpcf7 textarea {
  background: #f9fbfc;
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  color: var(--bh-ink);
  font: inherit;
  min-height: 46px;
  padding: 12px 14px;
  width: 100%;
}

.bh-field textarea {
  resize: vertical;
}

.bh-contact .wpcf7 label {
  color: var(--bh-ink);
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
}

.bh-contact .wpcf7-form-control-wrap {
  display: block;
}

.bh-contact .wpcf7-list-item {
  margin: 0;
}

.bh-contact .wpcf7-list-item label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.bh-contact .wpcf7 input[type="checkbox"],
.bh-contact .wpcf7 input[type="radio"] {
  accent-color: var(--bh-copper);
  height: 18px;
  width: 18px;
}

.bh-request-type {
  gap: 10px;
}

.bh-request-type .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.bh-stock-panel {
  background: #f2f3f5;
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.bh-stock-panel > p:first-child {
  background: #fff;
  border-radius: 6px;
  margin: 0;
  padding: 16px 20px;
  text-align: center;
}

.bh-stock-panel > p:first-child strong {
  color: var(--bh-ink);
  display: block;
  font-size: 2rem;
  line-height: 1.08;
  margin-bottom: 8px;
}

.bh-stock-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bh-stock-grid select {
  border-color: var(--bh-copper) !important;
}

.bh-stock-actions {
  display: grid;
  gap: 0;
  justify-self: center;
  max-width: 380px;
  width: 100%;
}

.bh-stock-reset,
.bh-stock-continue {
  border: 1px solid var(--bh-copper);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 58px;
  padding: 12px 20px;
  text-transform: uppercase;
}

.bh-stock-reset {
  background: transparent;
  border-radius: 32px;
  color: var(--bh-copper);
}

.bh-stock-continue {
  background: var(--bh-copper);
  border-radius: 32px;
  color: #fff;
}

.bh-stock-extra {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .bh-quick-paths,
  .bh-stock-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bh-custom-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .bh-quick-paths {
    grid-template-columns: 1fr;
  }

  .bh-quick-paths a,
  .bh-quick-paths a:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--bh-line);
    min-height: 0;
  }

  .bh-custom-list {
    grid-template-columns: 1fr;
  }

  .bh-stock-panel > p:first-child strong {
    font-size: 1.45rem;
  }

  .bh-contact .wpcf7-form,
  .bh-stock-grid,
  .bh-stock-extra {
    grid-template-columns: 1fr;
  }
}

.bh-contact .wpcf7-submit {
  border: 0;
  cursor: pointer;
}

.bh-contact .wpcf7-not-valid-tip,
.bh-contact .wpcf7-response-output {
  font-size: 0.9rem;
  font-weight: 700;
}

.bh-help,
.bh-check small,
.bh-file-summary {
  color: var(--bh-muted);
  font-size: 0.84rem;
}

.bh-utility-panel {
  background: #f6f8fa;
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.bh-check {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.bh-check input {
  accent-color: var(--bh-copper);
  height: 18px;
  margin-top: 3px;
  width: 18px;
}

.bh-check span {
  display: grid;
  gap: 3px;
}

.bh-file-summary {
  margin: 0;
  overflow-wrap: anywhere;
}

.bh-notice {
  color: var(--bh-blue);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
  min-height: 1.4em;
}

.bh-footer {
  align-items: center;
  background: #10151c;
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  justify-content: space-between;
  padding: 28px var(--bh-page-gutter);
}

@media (min-width: 1440px) {
  :root {
    --bh-page-gutter: clamp(72px, 7vw, 128px);
  }

  .bh-hero-content {
    max-width: 860px;
  }
}

.bh-footer p {
  margin: 0;
}

.bh-footer-links {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
}

@media (max-width: 980px) {
  :root {
    --bh-page-gutter: clamp(18px, 4vw, 40px);
  }

  .bh-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .bh-nav {
    order: 3;
    overflow-x: auto;
    width: 100%;
  }

  .bh-intro,
  .bh-contact,
  .bh-grid,
  .bh-process {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --bh-page-gutter: 18px;
  }

  .bh-header {
    gap: 10px 14px;
    padding: 12px 16px;
  }

  .bh-logo-mark {
    height: 44px;
    width: 34px;
  }

  .bh-logo-bio {
    font-size: 1.05rem;
  }

  .bh-logo-heater {
    font-size: 0.86rem;
  }

  .bh-cta {
    display: none;
  }

  .bh-hero {
    min-height: auto;
  }

  .bh-hero img {
    object-position: 60% center;
  }

  .bh-hero::after {
    background: linear-gradient(90deg, rgba(19, 24, 32, 0.98) 0%, rgba(19, 24, 32, 0.82) 68%, rgba(19, 24, 32, 0.3) 100%);
  }

  .bh-hero-content,
  .bh-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bh-hero-content {
    min-height: calc(100svh - 118px);
    padding-bottom: 44px;
    padding-top: 68px;
  }

  .bh-section {
    padding-bottom: 58px;
    padding-top: 58px;
  }

  h1 {
    font-size: 2.4rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.85rem;
    line-height: 1.08;
  }

  .bh-nav {
    gap: 16px;
    padding-bottom: 2px;
  }

  .bh-metrics {
    grid-template-columns: 1fr;
  }

  .bh-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (min-width: 421px) and (max-width: 640px) {
  .bh-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bh-metrics div {
    padding: 12px;
  }

  .bh-metrics dd {
    font-size: 0.76rem;
  }
}

.bh-stock-panel[hidden] {
  display: none !important;
}

.bh-grid.bh-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 680px) {
  .bh-grid.bh-grid-2 {
    grid-template-columns: 1fr;
  }
}
