/* Plumbix note: shared visual styling for home index. */
/**
 * Plumbix — Homepage (header inline + sezioni ordinate)
 * Usato solo da index.html
 */
@import url('macro-colors.css');

/* --------------------------------------------------------------------------
   Variabili
   -------------------------------------------------------------------------- */
.home-page {
  --home-blue: #1a66d9;
  --home-blue-dark: #0e4ea8;
  --home-blue-light: #eff6ff;
  --home-navy: #0a1628;
  --home-cyan: #22d3ee;
  --home-cyan-soft: #67e8f9;
  --home-yellow: #eab308;
  --home-yellow-dark: #ca8a04;
  --home-slate: #64748b;
  --home-border: #e2e8f0;
  --home-border-soft: #eef2f7;
  --home-max: 1280px;
  --home-radius: 14px;
  --home-radius-lg: 20px;
  --home-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
  --home-shadow-md: 0 8px 24px rgba(10, 22, 40, 0.08);
  --home-shadow-lg: 0 20px 48px rgba(10, 22, 40, 0.12);
  --home-font: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  --home-ease: cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--home-font);
  background: linear-gradient(180deg, #eef2f8 0%, #f4f7fb 32%, #f8fafc 100%);
  margin: 0;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-page .container {
  width: 100%;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.home-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  box-shadow: var(--home-shadow);
  transition: box-shadow 0.25s var(--home-ease), border-color 0.25s var(--home-ease), background 0.25s var(--home-ease);
}

/* Fascia scura superiore (mockup) */
.home-header__utility {
  background: linear-gradient(90deg, #0a1628 0%, #0f2847 55%, #123a5c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 -1px 0 rgba(34, 211, 238, 0.12);
}

.home-header__utility-inner {
  padding: 7px 0;
}

.home-header__utility-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
}

.home-header__utility-item,
.home-header__utility-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #94b8e0;
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.home-header__utility-link:hover {
  color: #e2e8f0;
}

.home-header__utility-item strong,
.home-header__utility-link strong {
  color: #e2e8f0;
  font-weight: 600;
}

.home-header__utility-item i,
.home-header__utility-link i {
  color: #38bdf8;
  font-size: 0.7rem;
}

/* Riga 1: logo · ricerca · toolbar */
.home-header__primary .home-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.home-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.home-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
}

.home-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.home-logo img {
  width: 40px;
  height: auto;
  display: block;
}

/* Logo ufficiale assets/images/logo.png (wordmark completo) */
.home-logo--wordmark img {
  width: auto;
  height: 44px;
  max-width: min(200px, 46vw);
}

.home-logo--wordmark .home-logo__text {
  display: none;
}

.home-logo__text {
  margin-left: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e293b;
}

.home-logo__text .home-logo__tld {
  color: var(--home-blue);
  font-weight: 700;
}

@media (min-width: 1024px) {
  .home-header__utility-links {
    justify-content: space-between;
  }

  .home-header__nav-inner {
    padding: 10px 0 12px;
  }

  .home-nav ul {
    gap: 8px;
  }
}

.home-search {
  display: flex;
  align-items: center;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 4px 4px 4px 14px;
  background: #f4f7fc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-search:focus-within {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 102, 217, 0.12);
}

.home-search__icon {
  color: #94a3b8;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.home-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-size: 0.88rem;
  color: #1e293b;
  outline: none;
}

.home-search__input::placeholder {
  color: #94a3b8;
}

.home-search__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--home-blue), var(--home-blue-dark));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--home-ease), box-shadow 0.2s var(--home-ease), filter 0.2s;
}

.home-search__submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.home-search__submit:active {
  transform: translateY(0);
}

.home-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.home-toolbar__btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #334155;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--home-ease), color 0.2s, border-color 0.2s, transform 0.2s;
}

.home-toolbar__btn:hover {
  background: var(--home-blue-light);
  border-color: #dbeafe;
  color: var(--home-blue);
}

.home-toolbar__btn:focus-visible {
  outline: 2px solid var(--home-blue);
  outline-offset: 2px;
}

.home-toolbar__badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.home-toolbar__badge[hidden] {
  display: none !important;
}

.home-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
}

.home-lang .lang-btn {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.home-lang .lang-btn:hover:not(.active) {
  border-color: #cbd5e1;
  color: #64748b;
  background: #f8fafc;
}

.home-lang .lang-btn.active {
  background: linear-gradient(145deg, #1a66d9, #0e4ea8);
  border-color: #1a66d9;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 102, 217, 0.35);
}

/* Riga 2: navigazione · account */
.home-header__nav-row {
  border-top: 1px solid var(--home-border-soft);
  background: linear-gradient(180deg, #fcfdfe 0%, #f8fafc 100%);
}

.home-header__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 10px;
  flex-wrap: wrap;
}

.home-header__signup {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--home-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.home-header__signup:hover {
  background: #eff6ff;
}

.home-account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.home-nav a:hover {
  background: #f1f5f9;
  color: var(--home-blue);
}

.home-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--home-blue), var(--home-blue-dark));
  box-shadow: 0 2px 10px rgba(26, 102, 217, 0.28);
}

.home-account {
  position: relative;
  z-index: 3000;
  flex-shrink: 0;
}

.home-account .home-account__btn {
  flex-shrink: 0;
}

.home-account__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.home-account__btn .fa-chevron-down {
  font-size: 0.65rem;
  opacity: 0.55;
}

.home-account__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 272px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.12);
  z-index: 3000;
}

.home-account__menu.is-open {
  display: block;
}

.home-account__cart-hint {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.home-account__label {
  display: block;
  padding: 8px 16px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.home-account__menu a,
.home-account__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  color: #334155;
  font-size: 0.88rem;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.home-account__menu a:hover,
.home-account__menu button:hover {
  background: #eff6ff;
  color: var(--home-blue);
}

.home-account__menu a i {
  width: 18px;
  color: var(--home-blue);
}

.home-account__divider {
  height: 1px;
  margin: 6px 0;
  background: #e2e8f0;
}

/* Riga 3: macrocategorie */
.home-header__categories {
  padding-bottom: 12px;
  border-top: 1px solid #f1f5f9;
}

.home-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.home-mega {
  position: relative;
}

.home-mega__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: none;
  border-radius: var(--home-radius);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s var(--home-ease), box-shadow 0.2s var(--home-ease), filter 0.2s;
}

.home-mega__trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  filter: brightness(1.04);
}

.home-mega__trigger .fa-chevron-down {
  margin-left: auto;
  font-size: 0.65rem;
  opacity: 0.85;
}

.home-mega--tools .home-mega__trigger {
  background: linear-gradient(135deg, #1a66d9, #0e4ea8);
}

.home-mega--fittings .home-mega__trigger {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

.home-mega--faucets .home-mega__trigger {
  background: linear-gradient(135deg, #475569, #334155);
}

.home-mega--heating .home-mega__trigger {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #1e293b;
}

.home-mega__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 2rem);
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}

.home-mega:hover .home-mega__panel {
  opacity: 1;
  visibility: visible;
}

.home-mega__panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #334155;
  font-size: 0.85rem;
  text-decoration: none;
}

.home-mega__panel a:hover {
  background: #eff6ff;
  color: var(--home-blue);
}

.home-mega__panel a i {
  width: 18px;
  color: var(--home-blue);
}

/* --------------------------------------------------------------------------
   Main — blocchi comuni
   -------------------------------------------------------------------------- */
.home-main {
  display: block;
}

.home-block {
  padding: 44px 0;
}

.home-block--alt {
  background: #fff;
}

.home-block__head {
  margin-bottom: 28px;
}

.home-block__head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 700;
}

.home-block__head p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.home-block__head h2 i {
  margin-right: 8px;
  color: var(--home-blue);
}

.home-block__cta {
  margin-top: 28px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   1. Pillole informative
   -------------------------------------------------------------------------- */
.home-info {
  padding: 12px 0;
  background: #fff;
  border-bottom: 1px solid #e8eef5;
}

.home-info__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.home-info__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.home-info__pill i {
  color: var(--home-blue);
  font-size: 0.72rem;
}

.home-info__pill strong {
  color: var(--home-blue);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. Barra promo
   -------------------------------------------------------------------------- */
.home-promo {
  padding: 10px 0;
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1px solid #fde68a;
}

.home-promo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.home-promo__text {
  flex: 1;
  min-width: 220px;
  margin: 0;
  color: #1e3a5f;
  font-size: 0.85rem;
}

.home-promo__text i {
  margin-right: 6px;
  color: var(--home-blue);
}

.home-promo__btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--home-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.home-promo__close {
  border: none;
  background: none;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--home-navy) 0%, #0f2847 45%, #123a5c 100%);
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 56px;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #22d3ee;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-hero__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.home-hero__title .accent {
  color: #67e8f9;
}

.home-hero__sub {
  max-width: 520px;
  margin: 0 0 24px;
  color: #94b8e0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero__actions .btn-primary {
  border: none;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.home-hero__actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.home-hero__aside {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.home-hero__aside h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.home-hero__aside h2 i {
  color: #fbbf24;
}

.home-systems {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-systems a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.22);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--home-ease), border-color 0.2s, transform 0.2s;
}

.home-systems a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(103, 232, 249, 0.25);
  transform: translateX(4px);
}

.home-systems a > i:first-child {
  width: 20px;
  color: #67e8f9;
}

.home-systems a > i:last-child {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   4. Macrocategorie (card)
   -------------------------------------------------------------------------- */
.home-macros {
  padding: 40px 0;
  background: #fff;
}

.home-macros__title {
  margin: 0 0 24px;
  text-align: center;
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
}

.home-macros__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-macro-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 140px;
  padding: 24px 20px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s;
}

.home-macro-card:hover {
  transform: translateY(-3px);
}

.home-macro-card i {
  font-size: 1.75rem;
}

.home-macro-card span {
  font-size: 1rem;
  font-weight: 700;
}

/* Colori macro: css/macro-colors.css */

/* --------------------------------------------------------------------------
   5–8. Griglie contenuto
   -------------------------------------------------------------------------- */
.home-grid--products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home-grid--offers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 920px;
}

.home-grid--news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-grid--pro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-pro-card {
  display: block;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.home-pro-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(26, 102, 217, 0.1);
}

.home-pro-card > i {
  margin-bottom: 12px;
  color: var(--home-blue);
  font-size: 1.5rem;
}

.home-pro-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.1rem;
}

.home-pro-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.home-news-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-macros__grid,
  .home-grid--products {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-header__toggle {
    display: flex;
  }

  .home-header__primary .home-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .home-search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }

  .home-search__submit span {
    display: none;
  }

  .home-header__utility-links {
    justify-content: flex-start;
    gap: 8px 12px;
  }

  .home-header__utility-item,
  .home-header__utility-link {
    font-size: 0.68rem;
  }

  .home-header__nav-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .home-nav.is-collapsed {
    display: none;
  }

  .home-nav ul {
    flex-direction: column;
  }

  .home-account {
    width: 100%;
  }

  .home-account__btn {
    width: 100%;
    justify-content: center;
  }

  .home-mega-grid {
    grid-template-columns: 1fr;
  }

  .home-mega__panel {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }

  .home-mega.is-open .home-mega__panel {
    display: block;
  }

  .home-mega:hover .home-mega__panel {
    opacity: 1;
    visibility: visible;
  }

  .home-grid--offers,
  .home-grid--news,
  .home-grid--pro,
  .home-grid--products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-trustbar__item:nth-child(n + 3) {
    display: none;
  }
}

/* ==========================================================================
   PREMIUM E-COMMERCE — livello shop top
   ========================================================================== */

.home-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--home-border-soft);
  box-shadow: 0 4px 28px rgba(10, 22, 40, 0.1);
}

.home-logo__text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--home-navy);
  line-height: 1;
}

.home-logo__tld {
  font-weight: 600;
  color: var(--home-blue);
}

.home-search {
  max-width: 720px;
  padding: 5px 5px 5px 16px;
  background: #fff;
  border-color: #dbe3ef;
  box-shadow: inset 0 1px 2px rgba(10, 22, 40, 0.04);
}

.home-search__submit {
  box-shadow: 0 4px 14px rgba(26, 102, 217, 0.38);
}

.home-account__btn {
  border-color: var(--home-border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-account__btn:hover {
  border-color: #93c5fd;
  background: var(--home-blue-light);
  color: var(--home-blue);
}

.home-header__signup {
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.home-header__signup:hover {
  border-color: #bfdbfe;
}

/* Trust bar */
.home-trustbar {
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid #e8eef5;
}

.home-trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-trustbar__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-trustbar__item > i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  color: var(--home-blue);
  font-size: 1rem;
  flex-shrink: 0;
}

.home-trustbar__item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.home-trustbar__item span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

/* Promo premium */
.home-promo {
  padding: 12px 0;
  background: linear-gradient(90deg, #ecfdf5 0%, #eff6ff 50%, #f5f3ff 100%);
}

.home-promo__btn {
  box-shadow: 0 4px 14px rgba(26, 102, 217, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.home-promo__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 102, 217, 0.4);
}

/* Hero premium */
.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.home-hero__stats li {
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.home-hero__stats strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.home-hero__stats span {
  display: block;
  margin-top: 4px;
  color: #94b8e0;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.home-btn--primary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.home-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.45);
}

.home-btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.home-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.home-hero__aside {
  backdrop-filter: blur(8px);
}

/* Quick actions — sotto l'hero senza sovrapposizione */
.home-quick {
  margin-top: 0;
  padding: 32px 0 12px;
  position: relative;
  z-index: 1;
  background: #f4f7fc;
}

.home-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-quick__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border-radius: var(--home-radius-lg);
  background: #fff;
  border: 1px solid #e8eef5;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--home-shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-quick__card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: var(--home-shadow-lg);
}

.home-quick__card--highlight {
  border-color: #93c5fd;
  background: linear-gradient(145deg, #fff 0%, #eff6ff 100%);
}

.home-quick__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--home-blue);
  font-size: 1.15rem;
}

.home-quick__card--highlight .home-quick__icon {
  background: var(--home-blue);
  color: #fff;
}

.home-quick__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.home-quick__hint {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

/* Section headers (Shopify-style) */
.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.home-section-head__eyebrow {
  margin: 0 0 6px;
  color: var(--home-blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-section-head__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.home-section-head__sub {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.92rem;
  max-width: 520px;
}

.home-section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--home-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.home-section-head__link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.home-section-head--light .home-section-head__title,
.home-section-head--light .home-section-head__sub {
  color: #fff;
}

.home-section-head--light .home-section-head__eyebrow {
  color: #67e8f9;
}

.home-section-head--light .home-section-head__link {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Macro cards premium */
.home-macros {
  padding: 48px 0 56px;
}

.home-macro-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
}

.home-macro-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.home-macro-card__title {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}

.home-macro-card__cta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}

.home-macro-card__cta i {
  font-size: 0.65rem;
  transition: transform 0.15s;
}

.home-macro-card:hover .home-macro-card__cta i {
  transform: translateX(3px);
}

/* Product grid — card shop premium */
.home-block--shop {
  padding: 56px 0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.home-products-wrap {
  padding: 8px;
  border-radius: var(--home-radius-lg);
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.04);
}

.home-page .home-grid--products {
  gap: 16px;
  padding: 16px;
}

.home-page .home-grid--products .product-card {
  border-radius: 16px;
  border: 1px solid #eef2f7;
  padding: 16px;
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-page .home-grid--products .product-card:hover {
  transform: translateY(-6px);
  border-color: #bdd4fc;
  box-shadow: 0 16px 36px rgba(26, 102, 217, 0.12);
}

.home-page .home-grid--products .product-card .product-image i,
.home-page .home-grid--products .product-card .product-icon i {
  width: 88px;
  height: 88px;
  line-height: 88px;
  font-size: 2rem;
  border-radius: 16px;
}

.home-page .home-grid--products .product-card h4,
.home-page .home-grid--products .product-card .product-title {
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 2.6em;
}

.home-page .home-grid--products .product-card .product-price {
  font-size: 1.2rem;
}

/* Offers premium */
.home-page .home-grid--offers {
  max-width: none;
}

.home-page .home-grid--offers .offer-flyer {
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  border: 1px solid #e8eef5;
  box-shadow: var(--home-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-page .home-grid--offers .offer-flyer:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-lg);
}

/* News premium */
.home-page .home-grid--news .news-card-home {
  border-radius: 16px;
  border: 1px solid #eef2f7;
  padding: 22px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.home-page .home-grid--news .news-card-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 22, 40, 0.08);
}

.home-news-tools {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef2f7;
}

/* Pro band */
.home-block--pro-band {
  padding: 56px 0;
  background: linear-gradient(135deg, #0a1628 0%, #12243d 50%, #0e3a5c 100%);
}

.home-pro-card {
  position: relative;
  padding-top: 32px;
  background: rgba(255, 255, 255, 0.97);
}

.home-pro-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  color: var(--home-blue);
  font-size: 1.25rem;
}

.home-pro-card > i:not(.home-pro-card__icon i) {
  display: none;
}

.home-pro-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--home-blue);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Guarantees strip */
.home-guarantees {
  padding: 20px 0;
  background: #fff;
  border-top: 1px solid #e8eef5;
}

.home-guarantees__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}

.home-guarantees__inner > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
}

.home-guarantees__inner i {
  color: var(--home-blue);
}

.home-footer {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .home-trustbar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-quick__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-logo__text {
    display: none;
  }

  .home-logo--wordmark img {
    height: 36px;
    max-width: min(160px, 52vw);
  }

  .home-quick {
    padding: 24px 0 16px;
  }

  .home-quick__grid {
    grid-template-columns: 1fr;
  }

  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Public chrome alignment
   Keeps the shared header identical on home, catalog and category pages.
   -------------------------------------------------------------------------- */
.home-header,
.plumbix-header-chrome {
  --home-blue: #1a66d9;
  --home-blue-dark: #0e4ea8;
  --home-blue-light: #eff6ff;
  --home-border-soft: #eef2f7;
  --home-radius: 14px;
  --chrome-max: var(--home-max, 1280px);
  --chrome-pad: 20px;
  --chrome-topbar-h: 32px;
  --chrome-primary-h: 72px;
  --chrome-nav-h: 54px;
}

.home-header .container,
.plumbix-header-chrome .container {
  width: 100%;
  max-width: var(--chrome-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--chrome-pad);
  padding-right: var(--chrome-pad);
  box-sizing: border-box;
}

.home-header__utility-inner {
  min-height: var(--chrome-topbar-h);
  display: flex;
  align-items: center;
}

.home-header__utility-links {
  width: 100%;
}

.home-search__submit {
  min-width: 112px;
  justify-content: center;
  background: linear-gradient(135deg, var(--home-blue), var(--home-blue-dark)) !important;
  color: #fff !important;
}

.home-search__submit span,
.home-search__submit i {
  color: inherit;
}

.home-nav a.is-active,
.home-nav a.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--home-blue), var(--home-blue-dark)) !important;
  box-shadow: 0 2px 10px rgba(26, 102, 217, 0.28);
}

@media (min-width: 769px) {
  .home-header__primary .home-header__inner {
    min-height: var(--chrome-primary-h);
    grid-template-columns: 220px minmax(360px, 1fr) auto;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .home-logo--wordmark img {
    width: auto;
    height: 44px;
    max-width: 190px;
  }

  .home-search {
    height: 48px;
    max-width: 720px;
  }

  .home-header__nav-inner {
    min-height: var(--chrome-nav-h);
    flex-wrap: nowrap;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .home-nav ul {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .home-nav a,
  .home-account__btn,
  .home-header__signup {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .home-header__categories,
  .plumbix-macro-row {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .home-mega-grid {
    gap: 12px;
  }

  .home-mega__trigger {
    min-height: 56px;
    padding: 14px 18px;
  }
}

@media (min-width: 1024px) {
  .home-header__utility-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, auto));
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .home-header__utility-item,
  .home-header__utility-link {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .home-header,
  .plumbix-header-chrome {
    --chrome-pad: 16px;
  }

  .home-toolbar {
    max-width: 100%;
    gap: 4px;
  }

  .home-lang .lang-btn:not(.active) {
    display: none;
  }

  .home-search__submit {
    min-width: 48px;
    width: 48px;
    padding-left: 0;
    padding-right: 0;
  }

  .home-search__submit span {
    display: none;
  }
}
