﻿/* Font: link in HTML (<head>) per evitare catena render-blocking da @import */

:root {
  --primary: #071422;
  --secondary: #152536;
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.14);
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --shadow: 0 22px 55px rgba(7, 20, 34, 0.12);
  --radius: 18px;
  /* Mobile-first: hero */
  --hero-brand-logo-h: 88px;
  /* Aceeași „cutie” pentru toate logourile (lățime × înălțime), conținut scalat cu object-fit */
  --hero-brand-logo-w: 200px;
  --brand-logo-bar-pad-x: 10px;
  --brand-logo-bar-pad-y: 8px;
  --brand-grid-gap: 15px;
  /* Logo în cardurile grilă marchi */
  --brand-card-logo-w: 136px;
  --brand-card-logo-h: 48px;
  /* Bandă defilantă: înălțime mai mică ca rândul să rămână utilizabil */
  --brand-strip-logo-h: 56px;
  --brand-strip-pad-y: 8px;
  --brand-strip-pad-x: 12px;
  --brand-strip-cell-w: 152px;
  --brand-caption-size: 0.9375rem;
  /* Foto caldaie: stesso pannello bianco ovunque */
  --boiler-photo-bg: #ffffff;
  --boiler-photo-pad: clamp(10px, 2.2vw, 16px);
  --boiler-photo-radius: 12px;
  --boiler-photo-border: 1px solid rgba(15, 23, 42, 0.1);
  /* Home / grilă marchi: aceeași „cutie” pentru fiecare poză de centrală (pătrat) */
  --brand-card-boiler-h: 184px;
  --brand-card-boiler-slot: 142px;
  /* HOME hero slideshow: lățime unică logo + centrală (slot + padding ca în card-body grilă) */
  --hero-slide-card-w: calc(var(--brand-card-boiler-slot) + 28px);
  --brand-card-footer-min-h: 68px;
  --brand-catalog-bg: #050a14;
  --brand-card-footer-bg: #0a1628;
  /* Linia „Assistenza …” — fără portocaliu: albastru deschis lizibil pe footer închis */
  --brand-card-footer-accent: #93c5fd;
  --brand-card-footer-title: #e8eef7;
}

@media (min-width: 768px) {
  :root {
    --hero-brand-logo-h: 112px;
    --hero-brand-logo-w: 236px;
    --brand-card-logo-w: 148px;
    --brand-card-logo-h: 52px;
    --brand-strip-logo-h: 60px;
    --brand-strip-cell-w: 168px;
    --brand-grid-gap: 18px;
    --brand-card-boiler-h: 196px;
    --brand-card-boiler-slot: 158px;
    --hero-slide-card-w: calc(var(--brand-card-boiler-slot) + 28px);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(34, 197, 94, 0.08), transparent),
    radial-gradient(900px 500px at 100% 0%, rgba(59, 130, 246, 0.07), transparent),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  line-height: 1.65;
  padding-bottom: 108px;
}

img {
  max-width: 100%;
  height: auto;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.65);
  outline-offset: 3px;
}

button:focus-visible,
.submit-btn:focus-visible {
  outline-color: rgba(34, 197, 94, 0.92);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.nav-desktop a:focus-visible,
.breadcrumb a:focus-visible,
.contact-strip-inner a:focus-visible {
  outline-offset: 4px;
  border-radius: 8px;
}

.related-grid a:focus-visible {
  border-radius: 12px;
}

.brand-card:focus-visible {
  border-radius: 14px;
  outline-offset: 4px;
}

.wa-btn:focus-visible {
  outline-color: rgba(165, 243, 252, 0.95);
}

.btn-secondary:focus-visible {
  outline-color: rgba(255, 255, 255, 0.88);
}

.logo:focus-visible {
  border-radius: 12px;
  outline-offset: 4px;
}

.sticky-bar a:focus-visible {
  outline-offset: 3px;
}

details summary:focus-visible {
  border-radius: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  white-space: nowrap;
}

.wa-btn:hover {
  filter: brightness(1.05);
}

.wa-short {
  display: none;
}

.header-call-short {
  display: inline;
}

@media (max-width: 767px) {
  .header-call-short {
    display: none;
  }

  .header-call-mobile {
    display: inline;
  }

  .call-btn.header-call-compact {
    padding-inline: 14px;
    font-size: 0.82rem;
  }

  .wa-btn span.word-wa {
    display: none;
  }

  .wa-short {
    display: inline;
  }
}

@media (min-width: 768px) {
  .header-call-mobile {
    display: none;
  }
}

.logo {
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.logo span {
  color: var(--accent-2);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-desktop a:hover {
  color: var(--primary);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.35);
  white-space: nowrap;
}

.call-btn:hover {
  filter: brightness(1.03);
}

.hero-wrap {
  margin: 26px 0 10px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(34, 197, 94, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 20%, rgba(96, 165, 250, 0.18), transparent 50%),
    linear-gradient(145deg, #0b1220 0%, #111827 48%, #0f172a 100%);
  color: #e2e8f0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #cbd5f5;
}

.hero-grid h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.65rem, 4.5vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 54ch;
}

/* Hero scuro: testi più leggibili (contrasto) */
.hero-wrap .hero-lead {
  color: #e8edf5;
}

.hero-wrap .hero-brand-line {
  color: #f1f5f9;
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-wrap .hero-brand-line a.contact-email {
  color: #fef9c3;
  font-weight: 800;
  text-underline-offset: 3px;
}

.hero-wrap .hero-site-mark {
  font-weight: 700;
  color: #f8fafc;
}

.hero-wrap .stat-card span {
  color: #e2e8f0;
}

.hero-wrap .hero-kicker {
  color: #e0e7ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-modulo {
  border: 1px solid #16a34a;
  color: #14532d;
  background: #f0fdf4;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.btn-modulo:hover {
  filter: brightness(1.02);
}

.hero-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-card span {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* HOME: slideshow + banda testo in coloană, aliniate */
body.home .hero-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

.hero-photo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: clamp(16px, 4vw, 28px);
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12) 0%, transparent 65%),
    linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
}

/* Solo l’immagine caldaia come figlio diretto — mai applicare ai loghi dentro .image-brand-badge */
.hero-photo-inner:not(.hero-slideshow) > img {
  width: 100%;
  max-height: min(340px, 52vw);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background-color: var(--boiler-photo-bg);
  padding: var(--boiler-photo-pad);
  box-sizing: border-box;
  border-radius: var(--boiler-photo-radius);
  border: var(--boiler-photo-border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.hero-photo-inner.hero-slideshow {
  position: relative;
  isolation: isolate;
  min-height: 360px;
}

.hero-slide-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  box-sizing: border-box;
  padding: 12px clamp(8px, 2vw, 16px) 10px;
  /* Opacità di default: la prima slide deve essere visibile anche se le animazioni
     sono disattivate (Windows “effetti visivi”, estensioni, browser aziendali). */
}

.hero-slide {
  width: 100%;
  max-width: min(100%, 720px);
  height: 210px;
  max-height: 210px;
  min-height: 210px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background-color: var(--boiler-photo-bg);
  padding: var(--boiler-photo-pad);
  box-sizing: border-box;
  border-radius: var(--boiler-photo-radius);
  border: var(--boiler-photo-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

@media (min-width: 768px) {
  .hero-photo-inner.hero-slideshow {
    min-height: 440px;
  }

  .hero-slide {
    height: 280px;
    max-height: 280px;
    min-height: 280px;
  }
}

/* HOME: slideshow — card unic alb (stesso schema griglia marchi) */
body.home .hero-slideshow .hero-slide-frame {
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 16px 12px 20px;
}

body.home .hero-slideshow .hero-slide-card {
  display: flex;
  flex-direction: column;
  width: min(100%, var(--hero-slide-card-w));
  max-width: min(100%, var(--hero-slide-card-w));
  margin: 0 auto;
  flex-shrink: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

body.home .hero-slideshow .hero-slide-card .image-brand-badge {
  order: 0;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  min-height: calc(var(--brand-card-logo-h) + 20px);
  padding: 10px 12px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: none;
  background: #fff;
}

body.home .hero-slideshow .hero-slide-card .image-brand-badge img {
  display: block;
  width: var(--brand-card-logo-w);
  height: var(--brand-card-logo-h);
  max-width: min(100%, var(--brand-card-logo-w));
  max-height: var(--brand-card-logo-h);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

body.home .hero-slideshow .hero-slide-card .hero-slide-photo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: var(--brand-card-boiler-h);
  padding: 12px 14px;
  box-sizing: border-box;
  background: #fff;
}

body.home .hero-slideshow .hero-slide-card .hero-slide {
  width: var(--brand-card-boiler-slot);
  height: var(--brand-card-boiler-slot);
  min-width: 0;
  min-height: var(--brand-card-boiler-slot);
  max-width: min(100%, var(--brand-card-boiler-slot));
  max-height: min(100%, var(--brand-card-boiler-slot));
  margin: 0;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

/* Banda defilantă HOME: aceleași „cutii” logo ca în grila marchi (mini-card) */
body.home .brand-strip-block .logo-track {
  gap: var(--brand-grid-gap);
  padding: 14px 12px;
}

body.home .brand-strip-block .logo-item {
  width: calc(var(--brand-card-logo-w) + (2 * var(--brand-strip-pad-x)) + 10px);
  min-width: calc(var(--brand-card-logo-w) + (2 * var(--brand-strip-pad-x)) + 10px);
  max-width: calc(var(--brand-card-logo-w) + (2 * var(--brand-strip-pad-x)) + 10px);
  min-height: calc(var(--brand-card-logo-h) + (2 * var(--brand-strip-pad-y)) + 10px);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  padding: var(--brand-strip-pad-y) var(--brand-strip-pad-x);
}

body.home .brand-strip-block .logo-item img {
  display: block;
  width: var(--brand-card-logo-w);
  height: var(--brand-card-logo-h);
  max-width: var(--brand-card-logo-w);
  max-height: var(--brand-card-logo-h);
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

/* Solo homepage (4 slide): animazione. Pagine marchio usano .hero-slideshow--single → mai applicare keyframes qui. */
.hero-slideshow:not(.hero-slideshow--single) .hero-slide-frame:nth-child(1) {
  opacity: 1;
  z-index: 1;
  animation: heroSlideA 12s infinite ease-in-out;
}

.hero-slideshow:not(.hero-slideshow--single) .hero-slide-frame:nth-child(2) {
  opacity: 0;
  animation: heroSlideB 12s infinite ease-in-out;
}

.hero-slideshow:not(.hero-slideshow--single) .hero-slide-frame:nth-child(3) {
  opacity: 0;
  animation: heroSlideC 12s infinite ease-in-out;
}

.hero-slideshow:not(.hero-slideshow--single) .hero-slide-frame:nth-child(4) {
  opacity: 0;
  animation: heroSlideD 12s infinite ease-in-out;
}

.hero-slideshow--single .hero-slide-frame {
  opacity: 1;
  z-index: 2;
  animation: none;
}

.hero-slideshow--single .image-brand-badge {
  position: relative;
  z-index: 3;
}

@keyframes heroSlideA {
  0%,
  23% {
    opacity: 1;
    z-index: 2;
  }
  25%,
  100% {
    opacity: 0;
    z-index: 0;
  }
}

@keyframes heroSlideB {
  0%,
  24% {
    opacity: 0;
    z-index: 0;
  }
  25%,
  48% {
    opacity: 1;
    z-index: 2;
  }
  50%,
  100% {
    opacity: 0;
    z-index: 0;
  }
}

@keyframes heroSlideC {
  0%,
  49% {
    opacity: 0;
    z-index: 0;
  }
  50%,
  73% {
    opacity: 1;
    z-index: 2;
  }
  75%,
  100% {
    opacity: 0;
    z-index: 0;
  }
}

@keyframes heroSlideD {
  0%,
  74% {
    opacity: 0;
    z-index: 0;
  }
  75%,
  98% {
    opacity: 1;
    z-index: 2;
  }
  99%,
  100% {
    opacity: 0;
    z-index: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide {
    animation: none !important;
  }

  .hero-slide-frame {
    animation: none !important;
  }

  .hero-slide-frame:not(:first-child) {
    display: none !important;
  }

  .hero-slide-frame:first-child {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 400px !important;
    flex-direction: column !important;
    align-items: center !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .logo-track {
    animation: none !important;
  }
}

.hero-float {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #f8fafc;
}

.hero-float a {
  color: #86efac;
}

/* HOME: banda urgențe sub slideshow, full width, dreaptă față de card */
body.home .hero-float {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  padding: 14px 16px 16px;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

body.home .hero-visual .hero-photo-inner.hero-slideshow {
  flex: 1 1 auto;
}

@media (max-width: 767px) {
  .hero-float {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 12px;
  }

  body.home .hero-float {
    margin-top: 0;
  }
}

body.home main.container > .section {
  margin-top: 0;
  margin-bottom: 40px;
}

body.home main.container > .contact-strip + .section {
  margin-top: 12px;
  padding-top: 36px;
  border-top: 1px solid rgba(148, 163, 184, 0.42);
}

body.home main.container > .section ~ .section {
  margin-top: 28px;
  padding-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.36);
}

body.home main.container > .section + .cta-band {
  margin-top: 36px;
  padding-top: 44px;
  border-top: 1px solid rgba(148, 163, 184, 0.36);
}

body.home main.container > .cta-band + .form-layout {
  margin-top: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.36);
}

body.home main.container > .cta-band {
  margin-top: 0;
  margin-bottom: 0;
}

.section {
  margin: 44px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--primary);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Catalogo marchi: banda full-bleed scura come nel layout di riferimento */
.section--brand-catalog {
  margin: 36px 0 40px;
  padding: 0;
  border: none;
}

body.home main.container > .section.section--brand-catalog {
  border-top: none;
  padding-top: 0;
}

.brand-catalog-bleed {
  background: var(--brand-catalog-bg);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 44px 0 52px;
  box-sizing: border-box;
}

.brand-catalog-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section--brand-catalog .section-head {
  margin-bottom: 22px;
}

.section--brand-catalog .section-head h2 {
  color: #f1f5f9;
}

.section--brand-catalog .section-head p {
  color: rgba(226, 232, 240, 0.85);
  max-width: 65ch;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--secondary);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--accent-2);
  background: var(--accent-soft);
}

/* Griglia marchi: header logo + body bianco (caldaia), footer blu notte + testi come riferimento */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--brand-grid-gap);
  align-items: stretch;
}

@media (min-width: 768px) {
  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .brand-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.brand-grid .brand-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 300px;
  height: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 14px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.brand-grid .brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}

@media (prefers-reduced-motion: reduce) {
  .brand-grid .brand-card {
    transition: none;
  }

  .brand-grid .brand-card:hover {
    transform: none;
  }
}

.brand-grid .brand-card .card-header,
.hero-page-brand .brand-hero-card .card-header {
  flex-shrink: 0;
  width: 100%;
  min-height: calc(var(--brand-card-logo-h) + 20px);
  height: calc(var(--brand-card-logo-h) + 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  order: 0;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

/* Logo: aceeași suprafață — griglia HOME e pagine marchio */
.brand-grid .brand-card .card-header img,
.hero-page-brand .brand-hero-card .card-header img {
  display: block;
  width: var(--brand-card-logo-w);
  height: var(--brand-card-logo-h);
  max-width: min(100%, var(--brand-card-logo-w));
  max-height: var(--brand-card-logo-h);
  object-fit: contain;
  object-position: center center;
}

/* Logo Baxi (`baxi_logo.webp`): puțin mai mic decât celelalte, aceeași cutie */
.brand-grid .brand-card .card-header img[src*="baxi_logo"],
.hero-page-brand .brand-hero-card .card-header img[src*="baxi_logo"],
body.home .brand-strip-block .logo-item img[src*="baxi_logo"],
body.home .hero-slideshow .hero-slide-card .image-brand-badge img[src*="baxi_logo"],
.logo-item img[src*="baxi_logo"] {
  width: calc(var(--brand-card-logo-w) * 0.86);
  height: calc(var(--brand-card-logo-h) * 0.86);
  max-width: calc(var(--brand-card-logo-w) * 0.86);
  max-height: calc(var(--brand-card-logo-h) * 0.86);
}

.brand-grid .brand-card .card-body,
.hero-page-brand .brand-hero-card .card-body {
  flex: 1 1 auto;
  width: 100%;
  min-height: var(--brand-card-boiler-h);
  height: var(--brand-card-boiler-h);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px 14px;
  box-sizing: border-box;
  background: #fff;
  border: none;
  border-radius: 0;
}

/* Centrală: aceeași cutie pătrată — HOME e pagine marchio */
.brand-grid .brand-card .card-body img,
.hero-page-brand .brand-hero-card .card-body img,
.hero-page-brand .hero-page-brand-boiler {
  display: block;
  width: var(--brand-card-boiler-slot);
  height: var(--brand-card-boiler-slot);
  max-width: min(100%, var(--brand-card-boiler-slot));
  max-height: min(100%, var(--brand-card-boiler-slot));
  object-fit: contain;
  object-position: center;
  margin: 0;
}

/* Card bianco come in home: colonna destra pagina marchio */
.hero-page-brand .brand-hero-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(100%, 420px);
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
}

.brand-grid .brand-card .card-footer {
  flex-shrink: 0;
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--brand-card-footer-min-h);
  margin-top: auto;
  padding: 14px 12px 16px;
  text-align: center;
  background: var(--brand-card-footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-grid .brand-card .card-footer-name {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  color: var(--brand-card-footer-title);
  letter-spacing: 0.01em;
  max-width: 100%;
  text-wrap: balance;
}

.brand-grid .brand-card .card-footer-assist {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--brand-card-footer-accent);
  max-width: 100%;
}

/* Hero: badge logo sopra slide */
figcaption.image-brand-badge,
body.home .hero-slideshow .hero-slide-card .image-brand-badge {
  margin: 0;
}

.image-brand-badge {
  position: static;
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  min-width: 120px;
  padding: var(--brand-logo-bar-pad-y) var(--brand-logo-bar-pad-x);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  overflow: visible;
  flex-shrink: 0;
  order: -1;
  max-width: min(100%, calc(var(--hero-brand-logo-w) + (2 * var(--brand-logo-bar-pad-x))));
  margin-inline: auto;
  height: auto;
  min-height: calc(var(--hero-brand-logo-h) + (2 * var(--brand-logo-bar-pad-y)));
}

/* Logo în chenar: dimensiuni maxime uniforme, fără !important (evită dispărirea în unele browser) */
.image-brand-badge img {
  display: block;
  width: auto;
  max-width: min(100%, var(--hero-brand-logo-w));
  height: auto;
  max-height: var(--hero-brand-logo-h);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

/* Bandă logo defilantă: aceeași suprafață pentru fiecare celulă */
.logo-item img {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: calc(var(--brand-strip-cell-w) - (2 * var(--brand-strip-pad-x)));
  height: auto;
  max-height: var(--brand-strip-logo-h);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.brand-strip-block {
  overflow: hidden;
}

.logo-marquee {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.logo-track {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: max-content;
  animation: logosScroll 36s linear infinite;
}

.logo-item {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: var(--brand-strip-cell-w);
  min-width: var(--brand-strip-cell-w);
  max-width: var(--brand-strip-cell-w);
  height: auto;
  min-height: calc(var(--brand-strip-logo-h) + (2 * var(--brand-strip-pad-y)));
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.98);
  padding: var(--brand-strip-pad-y) var(--brand-strip-pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item.is-current {
  border-color: #86efac;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
  background: rgba(255, 255, 255, 0.98);
}

@keyframes logosScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.contact-strip {
  margin: 16px 0 8px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.contact-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary);
}

.contact-strip-inner strong {
  color: var(--primary);
  letter-spacing: -0.02em;
}

.contact-strip-inner .sep {
  color: var(--border);
  font-weight: 400;
}

.contact-strip-inner a {
  color: var(--accent-2);
}

.contact-strip-inner a.contact-email {
  color: var(--primary);
  font-weight: 800;
  word-break: break-all;
}

.contact-strip-inner a:hover {
  text-decoration: underline;
}

.zone-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zone-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--secondary);
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.split {
  display: grid;
  gap: 16px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--surface);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--secondary);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.cta-band {
  margin: 44px 0;
  padding: clamp(20px, 4vw, 34px);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, #ecfdf3 0%, #dbeafe 100%);
  border: 1px solid #bbf7d0;
  display: grid;
  gap: 14px;
}

.cta-band h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
}

.submit-btn {
  border: 0;
  border-radius: 14px;
  padding: 15px;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.35);
}

.form-layout {
  display: grid;
  gap: 14px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin: 0 0 10px;
  color: var(--primary);
}

.footer {
  margin: 36px 0 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.footer a {
  color: var(--secondary);
  font-weight: 700;
}

.breadcrumb {
  margin: 14px 0 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  font-weight: 700;
  color: var(--secondary);
}

.page-hero {
  margin-top: 18px;
}

.page-visual .hero-photo-inner {
  position: relative;
  border-radius: calc(var(--radius) - 4px);
}

/* Pagine marchio: stesso blocco logo+caldaia della griglia HOME */
.hero-photo-inner.hero-page-brand {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  overflow: visible;
}

.page-visual .hero-photo-inner.hero-page-brand {
  min-height: 360px;
}

@media (min-width: 768px) {
  .page-visual .hero-photo-inner.hero-page-brand {
    min-height: 440px;
  }
}

.hero-brand-line {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.hero-brand-line a {
  color: #86efac;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-grid a {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  color: var(--secondary);
}

.related-grid a:hover {
  border-color: #86efac;
}

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sticky-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.sticky-bar a small {
  font-weight: 700;
  font-size: 0.78rem;
  opacity: 0.95;
  margin-top: 2px;
}

.sticky-bar .sticky-phone {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.38);
}

.sticky-bar .sticky-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.35);
}

/* Telefon: slideshow cu logo 180px + poză */
@media (max-width: 767px) {
  .hero-photo-inner.hero-slideshow {
    min-height: 340px;
  }

  .hero-slide {
    height: 200px;
    max-height: 200px;
    min-height: 200px;
  }

  .logo-track {
    padding: 12px 10px;
    gap: 10px;
    animation-duration: 48s;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .nav-desktop {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .split {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .form-layout {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

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

  .sticky-bar {
    display: none;
  }
}

/* Banner cookie (sopra sticky mobile) */
.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(7, 20, 34, 0.96);
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.45;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
}

.cookie-banner.is-visible {
  display: flex;
}

@media (max-width: 767px) {
  .cookie-banner.is-visible {
    bottom: 72px;
  }
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 220px;
  max-width: 52rem;
}

.cookie-banner a {
  color: #86efac;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner button {
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: inherit;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
}

.form-privacy-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-privacy-note a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.legal-page main.container {
  max-width: 46rem;
}

body.legal-page h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin: 0 0 12px;
  color: var(--primary);
}

body.legal-page .legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

body.legal-page h2 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  color: var(--primary);
}

body.legal-page p,
body.legal-page li {
  color: var(--text);
  font-size: 0.95rem;
}

body.legal-page ul {
  padding-left: 1.2rem;
}

/* Google Business Profile: mappa + CTA recensioni */
.gbp-section {
  scroll-margin-top: 96px;
}

.gbp-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .gbp-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
  }
}

.gbp-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  min-height: 260px;
}

.gbp-map {
  display: block;
  width: 100%;
  height: min(52vh, 400px);
  border: 0;
}

.gbp-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gbp-btn-full {
  text-align: center;
  justify-content: center;
}

a.gbp-btn-full.call-btn {
  display: flex;
  align-items: center;
}

a.gbp-btn-full.btn-secondary {
  display: flex;
  align-items: center;
}

/* Card GBP su sfondo chiaro: .btn-secondary globale è per hero scuro (testo bianco) */
.gbp-card .btn-secondary,
.gbp-card a.btn-secondary {
  color: var(--primary);
  background: #f8fafc;
  border: 1px solid var(--border);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.gbp-card .btn-secondary:hover,
.gbp-card a.btn-secondary:hover {
  filter: none;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.gbp-card .btn-secondary:focus-visible,
.gbp-card a.btn-secondary:focus-visible {
  outline-color: rgba(22, 101, 52, 0.45);
}

.gbp-card .gbp-btn-review {
  color: #14532d !important;
  border-color: #22c55e !important;
  background: #ecfdf5 !important;
}

.gbp-card .gbp-btn-review:hover {
  background: #d1fae5 !important;
  border-color: #16a34a !important;
}
