/* ═══════════════════════════════════════════════════════════
   HYDROPOWER — style.css v1.0
   Stack: Bootstrap 5.3 + Custom CSS
   Design: Navy #151D32 | Cyan #5EA2CC | Manrope + Inter
══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ────────────────────────────────────── */
:root {
  --hp-navy:     #151D32;
  --hp-cyan:     #0a7d8c;      /* era #4cbcca — migliorato contrasto WCAG AA (5.1:1 su bianco, 4.8:1 su #F6F8FA) */
  --hp-deep:     #344253;
  --hp-grey:     #4a6b80;      /* era #5F7E93 — migliorato contrasto WCAG AA (5.2:1 su bianco) */
  --hp-silver:   #DBDEE0;      /* bordi e sfondi decorativi — non usato come colore testo */
  --hp-muted:    #8b9297;      /* testo attenuato — contrasto 3.4:1 su bianco (OK per testo ≥18pt bold) */
  --hp-light:    #F6F8FA;
  --hp-white:    #FFFFFF;

  --hp-font-head: 'Philosopher', sans-serif;
  --hp-font-body: 'Plus Jakarta Sans', sans-serif;

  --hp-radius:    4px;
  --hp-radius-sm: 4px;
  --hp-shadow:    0 4px 24px rgba(21,29,50,.08);

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout:  cubic-bezier(0.77, 0, 0.175, 1);

  --hp-header-h: 72px;
}

/* ── LENIS SMOOTH SCROLL ─────────────────────────────── */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ── BASE ─────────────────────────────────────────────── */
body {
  font-family: var(--hp-font-body);
  color: var(--hp-navy);
  background: var(--hp-white);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

html,
main#primary {
  max-width: 100%;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hp-font-head);
}

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

/* ── OVERLINE ─────────────────────────────────────────── */
.hp-overline {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hp-cyan);
  margin-bottom: .75rem;
}

/* ── BUTTONS ──────────────────────────────────────────── */
[class*="hp-btn-"] {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.hp-btn-primary {
  background-color: var(--hp-cyan);
  border-color: var(--hp-cyan);
  color: var(--hp-white);
  font-family: var(--hp-font-body);
  font-weight: 700;
  border-radius: 100px;
  transition: background-color 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              transform 160ms var(--ease-out);
}
.hp-btn-primary:hover {
  background-color: var(--hp-deep);
  border-color: var(--hp-deep);
  color: var(--hp-white);
}
.hp-btn-primary:active {
  transform: scale(0.97);
}

/* Variante hover invertito: bg cyan -> bg bianco, testo cyan (hero fullwidth + hero home) */
.hp-btn-primary.hp-btn-invert:hover {
  background-color: var(--hp-white);
  border-color: var(--hp-white);
  color: var(--hp-cyan);
}

/* Pulse ring — richiama l'attenzione sul pulsante */
.hp-btn-pulse {
  position: relative;
}
.hp-btn-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: -1;
  animation: hp-btn-pulse-ring 2.2s ease-out infinite;
}
@keyframes hp-btn-pulse-ring {
  0% { opacity: .55; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
  .hp-btn-pulse::after { animation: none; }
}

.hp-btn-ghost {
  background-color: transparent;
  border: 2px solid var(--hp-white);
  color: var(--hp-white);
  font-family: var(--hp-font-body);
  font-weight: 700;
  border-radius: 100px;
  transition: background-color 200ms var(--ease-out),
              color 200ms var(--ease-out),
              transform 160ms var(--ease-out);
}
.hp-btn-ghost:hover {
  background-color: var(--hp-white);
  color: var(--hp-navy);
}
.hp-btn-ghost:active { transform: scale(0.97); }

.hp-btn-ghost-light {
  background-color: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: var(--hp-white);
  font-family: var(--hp-font-body);
  font-weight: 700;
  border-radius: 100px;
  transition: background-color 200ms var(--ease-out),
              color 200ms var(--ease-out),
              transform 160ms var(--ease-out);
}
.hp-btn-ghost-light:hover {
  background-color: var(--hp-white);
  color: var(--hp-navy);
}
.hp-btn-ghost-light:active { transform: scale(0.97); }

.hp-btn-cyan {
  background-color: var(--hp-cyan);
  border-color: var(--hp-cyan);
  color: var(--hp-white);
  font-family: var(--hp-font-body);
  font-weight: 700;
  border-radius: 100px;
  transition: background-color 200ms var(--ease-out),
              transform 160ms var(--ease-out);
}
.hp-btn-cyan:hover {
  background-color: var(--hp-deep);
  border-color: var(--hp-deep);
  color: var(--hp-white);
}
.hp-btn-cyan:active { transform: scale(0.97); }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.hp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: linear-gradient(
    to bottom,
    rgba(21,29,50,.85) 0%,
    rgba(21,29,50,.45) 50%,
    transparent 100%
  );
  border-bottom: none;
  transition: background 400ms var(--ease-out),
              border-color 400ms var(--ease-out),
              box-shadow 400ms var(--ease-out);
}

/* Stato iniziale intro: header nascosto sopra */
.hp-header.is-intro-hidden {
  transform: translateY(-100%);
}

/* Stato scrolled: sfondo bianco, bordo, ombra */
.hp-header.scrolled {
  background: var(--hp-white);
  border-bottom-color: var(--hp-silver);
  box-shadow: var(--hp-shadow);
}

.hp-header .navbar {
  min-height: var(--hp-header-h);
  padding-top: 0;
  padding-bottom: 0;
}

.hp-logo {
  font-family: var(--hp-font-head);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--hp-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.hp-logo__accent { color: var(--hp-cyan); }
.hp-logo__img,
.hp-logo .custom-logo {
  height: 34px;
  width: auto;
  display: block;
  transition: filter 400ms var(--ease-out);
}

/* Logo bianco nello stato trasparente */
.hp-header:not(.scrolled) .hp-logo__img,
.hp-header:not(.scrolled) .hp-logo .custom-logo {
  filter: brightness(0) invert(1);
}

.hp-header .nav-link {
  font-family: var(--hp-font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--hp-navy);
  padding-bottom: 4px;
  position: relative;
  transition: color 400ms var(--ease-out);
}

/* Link bianchi nello stato trasparente */
.hp-header:not(.scrolled) .nav-link {
  color: var(--hp-white);
}

.hp-header .nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--hp-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
/* Dropdown toggle: underline separato (non conflitto con caret Bootstrap) */
.hp-header .nav-link.dropdown-toggle::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--hp-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.hp-header .nav-link:hover,
.hp-header .nav-link.active {
  color: var(--hp-cyan);
}
.hp-header .nav-link:not(.dropdown-toggle):hover::after,
.hp-header .nav-link:not(.dropdown-toggle).active::after {
  transform: scaleX(1);
}
.hp-header .nav-link.dropdown-toggle:hover::before,
.hp-header .nav-link.dropdown-toggle.active::before {
  transform: scaleX(1);
}

/* Underline bianca nello stato trasparente */
.hp-header:not(.scrolled) .nav-link:not(.dropdown-toggle)::after,
.hp-header:not(.scrolled) .nav-link.dropdown-toggle::before {
  background: var(--hp-white);
}
.hp-header:not(.scrolled) .nav-link:hover,
.hp-header:not(.scrolled) .nav-link.active {
  color: rgba(255,255,255,.75);
}

/* ══════════════════════════════════════════════════════════
   LANGUAGE SWITCH — pill toggle IT/EN
══════════════════════════════════════════════════════════ */
.hp-lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--hp-silver);
  background: var(--hp-light);
  transition: border-color 400ms var(--ease-out), background-color 400ms var(--ease-out);
}
.hp-lang-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--hp-navy);
  transition: transform 350ms var(--ease-inout);
}
.hp-lang-switch__btn {
  position: relative;
  z-index: 1;
  min-width: 34px;
  padding: .25rem .5rem;
  border: none;
  background: transparent;
  font-family: var(--hp-font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--hp-grey);
  cursor: pointer;
  transition: color 300ms var(--ease-out);
}
.hp-lang-switch__btn.is-active {
  color: var(--hp-white);
}
.hp-lang-switch--en .hp-lang-switch__thumb {
  transform: translateX(100%);
}

/* Header trasparente: switch "glass" su navy */
.hp-header:not(.scrolled) .hp-lang-switch {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}
.hp-header:not(.scrolled) .hp-lang-switch__thumb {
  background: var(--hp-white);
}
.hp-header:not(.scrolled) .hp-lang-switch__btn {
  color: rgba(255,255,255,.65);
}
.hp-header:not(.scrolled) .hp-lang-switch__btn.is-active {
  color: var(--hp-navy);
}
.hp-header:not(.scrolled):hover .hp-lang-switch {
  background: var(--hp-light);
  border-color: var(--hp-silver);
}
.hp-header:not(.scrolled):hover .hp-lang-switch__thumb {
  background: var(--hp-navy);
}
.hp-header:not(.scrolled):hover .hp-lang-switch__btn {
  color: var(--hp-grey);
}
.hp-header:not(.scrolled):hover .hp-lang-switch__btn.is-active {
  color: var(--hp-white);
}

/* Variante dark: sempre su sfondo navy (megamenu) */
.hp-lang-switch--dark {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
}
.hp-lang-switch--dark .hp-lang-switch__thumb {
  background: var(--hp-white);
}
.hp-lang-switch--dark .hp-lang-switch__btn {
  color: rgba(255,255,255,.6);
}
.hp-lang-switch--dark .hp-lang-switch__btn.is-active {
  color: var(--hp-navy);
}

/* Bottone CTA nello stato trasparente: ghost bianco */
.hp-header:not(.scrolled) .hp-btn-primary {
  background-color: transparent;
  border-color: var(--hp-white);
  color: var(--hp-white);
}
.hp-header:not(.scrolled) .hp-btn-primary:hover {
  background-color: var(--hp-white);
  color: var(--hp-navy);
}

/* Toggler hamburger bianco nello stato trasparente */
.hp-header:not(.scrolled) .navbar-toggler {
  border-color: rgba(255,255,255,.5);
}
.hp-header:not(.scrolled) .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* Hover sul header trasparente: diventa bianco */
.hp-header:not(.scrolled):hover {
  background: var(--hp-white);
  border-bottom-color: var(--hp-silver);
}
/* Hover: elementi tornano ai colori scuri */
.hp-header:not(.scrolled):hover .nav-link {
  color: var(--hp-navy);
}
.hp-header:not(.scrolled):hover .nav-link:not(.dropdown-toggle)::after,
.hp-header:not(.scrolled):hover .nav-link.dropdown-toggle::before {
  background: var(--hp-cyan);
}
.hp-header:not(.scrolled):hover .nav-link:hover,
.hp-header:not(.scrolled):hover .nav-link.active {
  color: var(--hp-cyan);
}
.hp-header:not(.scrolled):hover .hp-logo__img,
.hp-header:not(.scrolled):hover .hp-logo .custom-logo {
  filter: none;
}
.hp-header:not(.scrolled):hover .hp-lang {
  color: var(--hp-grey);
}
.hp-header:not(.scrolled):hover .hp-btn-primary {
  background-color: var(--hp-cyan);
  border-color: var(--hp-cyan);
  color: var(--hp-white);
}
.hp-header:not(.scrolled):hover .navbar-toggler {
  border-color: var(--hp-silver);
}
.hp-header:not(.scrolled):hover .navbar-toggler-icon {
  filter: none;
}

.hp-header .dropdown-menu {
  border: 1px solid var(--hp-silver);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
  transform-origin: top center;
  animation: dropdownEnter 150ms var(--ease-out);
}
@keyframes dropdownEnter {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.hp-header .dropdown-item {
  font-size: .875rem;
  font-weight: 500;
  color: var(--hp-navy);
  transition: color 150ms, background-color 150ms;
}
.hp-header .dropdown-item:hover {
  background-color: var(--hp-light);
  color: var(--hp-cyan);
}

/* ══════════════════════════════════════════════════════════
   MEGAMENU TRIGGER (hamburger button)
══════════════════════════════════════════════════════════ */
.hp-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hp-menu-trigger__label {
  font-family: var(--hp-font-body);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--hp-navy);
  transition: color 400ms var(--ease-out);
}
.hp-menu-trigger__icon {
  position: relative;
  width: 26px;
  height: 10px;
  flex-shrink: 0;
}
.hp-menu-trigger__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--hp-navy);
  border-radius: 2px;
  transition: background-color 400ms var(--ease-out),
              transform 350ms var(--ease-inout),
              top 350ms var(--ease-inout),
              opacity 200ms var(--ease-out);
}
.hp-menu-trigger__icon span:first-child { top: 0; }
.hp-menu-trigger__icon span:last-child { top: 100%; transform: translateY(-100%); }

/* Header trasparente: hamburger + label bianchi */
.hp-header:not(.scrolled) .hp-menu-trigger__label { color: var(--hp-white); }
.hp-header:not(.scrolled) .hp-menu-trigger__icon span { background: var(--hp-white); }
.hp-header:not(.scrolled):hover .hp-menu-trigger__label { color: var(--hp-navy); }
.hp-header:not(.scrolled):hover .hp-menu-trigger__icon span { background: var(--hp-navy); }

/* Stato aperto: icona diventa X, sempre navy (il menu è scuro sopra tutto) */
.hp-menu-trigger.is-active .hp-menu-trigger__label { color: var(--hp-navy); }
.hp-menu-trigger.is-active .hp-menu-trigger__icon span { background: var(--hp-navy); }
.hp-menu-trigger.is-active .hp-menu-trigger__icon span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hp-menu-trigger.is-active .hp-menu-trigger__icon span:last-child {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile: scosta l'hamburger dal bordo destro */
@media (max-width: 767.98px) {
  .hp-menu-trigger {
    margin-right: 20px;
  }
}

/* Mobile: CTA della hero home ridotte del 10% (erano troppo grandi) */
@media (max-width: 767.98px) {
  #hero .btn-lg {
    font-size: 18px;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* ══════════════════════════════════════════════════════════
   MEGAMENU — full-screen overlay
══════════════════════════════════════════════════════════ */
.hp-megamenu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--hp-navy);
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 3rem) 2.25rem);
  transition: clip-path 700ms var(--ease-inout), visibility 0s linear 700ms;
}
.hp-megamenu.is-open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 3rem) 2.25rem);
  transition: clip-path 700ms var(--ease-inout), visibility 0s linear 0s;
}

.hp-megamenu__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0 2rem;
}

.hp-megamenu__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}
.hp-megamenu__home {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--hp-white);
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.hp-megamenu__home:hover {
  background: var(--hp-white);
  color: var(--hp-navy);
}
.hp-megamenu__topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hp-menu-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: var(--hp-white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.hp-menu-close:hover {
  background: var(--hp-white);
  color: var(--hp-navy);
  transform: rotate(90deg);
}

.hp-megamenu__columns {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  max-width: 1320px;
  width: 100%;
  margin: auto;
  padding: 2rem 1.5rem;
}
.hp-megamenu__col {
  flex: 1;
  min-width: 0;
}
.hp-megamenu__col-title {
  font-family: var(--hp-font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hp-cyan);
  margin-bottom: 1.5rem;
}
.hp-megamenu__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-megamenu__links li {
  margin-bottom: .5rem;
}
.hp-megamenu__links a {
  display: inline-block;
  overflow: hidden;
  font-family: var(--hp-font-head);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--hp-white);
  text-decoration: none;
  transition: color 250ms var(--ease-out);
}
.hp-megamenu__links a:hover {
  color: var(--hp-cyan);
}
.hp-megamenu__links a .split-line {
  overflow: hidden;
}

.hp-megamenu__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hp-megamenu__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}
.hp-megamenu__bottom-links a {
  font-family: var(--hp-font-body);
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.hp-megamenu__bottom-links a:hover { color: var(--hp-white); }
.hp-megamenu__social {
  display: flex;
  gap: 1rem;
}
.hp-megamenu__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--hp-white);
  font-size: .9rem;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.hp-megamenu__social a:hover {
  background: var(--hp-cyan);
  border-color: var(--hp-cyan);
}

@media (max-width: 991.98px) {
  .hp-megamenu__columns {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    overflow-y: auto;
  }
  .hp-megamenu__links a {
    font-size: 1.5rem;
  }
}

/* Body lock quando il megamenu è aperto */
body.hp-menu-lock {
  overflow: hidden;
}

/* Mantiene header e megamenu sotto la toolbar di WordPress. */
body.admin-bar .hp-header {
  top: 32px;
}

body.admin-bar .hp-megamenu {
  top: 32px;
  height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .hp-header {
    top: 46px;
  }

  body.admin-bar .hp-megamenu {
    top: 46px;
    height: calc(100dvh - 46px);
  }
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--hp-header-h);
  padding-bottom: 6rem;
  background: var(--hp-white);
  overflow: hidden;
}

/* Visibile di default; JS imposta lo stato iniziale solo quando GSAP è disponibile. */
.hp-hero__media {
  position: absolute;
  inset: 0;
  background: var(--hp-navy);
  overflow: hidden;
  opacity: 1;
  will-change: inset, opacity;
}
.hp-hero__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  will-change: transform;
}

/* Text reveal (title) — masked lines, hidden until GSAP animates them in */
.js-text-reveal {
  overflow: hidden;
}
.js-text-reveal .split-line {
  overflow: hidden;
}

/* Overlay: copre il 50% inferiore; JS lo nasconde temporaneamente per l'intro. */
.hp-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  background: linear-gradient(
    to top,
    rgba(21,29,50,.85) 0%,
    rgba(21,29,50,.45) 50%,
    transparent 100%
  );
  opacity: 1;
}

/* Variante hero senza immagine di sfondo: gradiente azzurro tenue -> trasparente (prodotti.php) */
.hp-hero--gradient {
  background: var(--hp-white);
}
.hp-hero--gradient .hp-hero__media {
  background: var(--hp-white);
}
.hp-hero--gradient .hp-hero__gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(76, 188, 202, .35) 0%, rgba(76, 188, 202, 0) 70%);
}
.hp-hero--gradient .hp-hero__overlay {
  background: none;
}
.hp-hero--gradient .hp-hero__heading,
.hp-hero--gradient .hp-hero__heading em {
  color: var(--hp-navy);
}
.hp-hero--gradient .hp-hero__sub {
  color: var(--hp-grey);
}
.hp-hero--gradient .hp-overline {
  color: var(--hp-cyan);
}
.hp-hero--gradient .hp-hero__scroll {
  color: var(--hp-navy);
}

/* Variante compatta: solo prodotti.php, hero al 56vh invece che fullscreen */
.hp-hero--compact {
  min-height: 70vh;
}

.hp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  opacity: 1;
}

.hp-hero__heading {
  font-family: var(--hp-font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--hp-white);
  margin-bottom: 1.25rem;
}
.hp-hero__heading em {
  font-style: italic;
  color: var(--hp-cyan);
}

/* Typing effect */
.hp-typing__cursor {
  display: inline-block;
  color: var(--hp-cyan);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hp-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,.85);
  line-height: 1.6;
}

.hp-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.7);
  font-size: 1.25rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════ */
.hp-stats {
  background: linear-gradient(to right, rgb(100 196 255 / 19%) 0%, transparent 100%);
  border: none;
  padding: 2.5rem 0;
}

.hp-stats__item {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.hp-stats__number {
  display: block;
  font-family: var(--hp-font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--hp-navy);
  line-height: 1;
}

.hp-stats__label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hp-grey);
}

.hp-stats__divider {
  width: 1px;
  height: 48px;
  background: var(--hp-silver);
}

/* Mobile: un solo stat visibile alla volta, in loop (fade crossfade) */
@media (max-width: 767.98px) {
  #stats .row {
    display: block;
    position: relative;
    min-height: 80px;
  }
  #stats .hp-stats__item {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms var(--ease-out);
  }
  #stats .hp-stats__item.is-active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ══════════════════════════════════════════════════════════
   STATEMENT — TEXT REVEAL ON SCROLL
══════════════════════════════════════════════════════════ */
.hp-statement {
  padding: 8rem 0;
  background: var(--hp-white);
}

.hp-statement__heading {
  font-family: var(--hp-font-head);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

/* Ogni parola parte grigio medio — GSAP anima il color a navy */
.hp-statement__heading .word {
  color: var(--hp-muted);
  display: inline-block;
}

.hp-statement__sub {
  font-size: 1rem;
  color: var(--hp-grey);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════ */
.hp-section {
  padding: 6rem 0;
}
.hp-section--light {
  background: var(--hp-light);
}

.hp-section__title {
  font-family: var(--hp-font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--hp-navy);
  line-height: 1.2;
  margin-bottom: .875rem;
}
.hp-section__title em {
  font-style: italic;
  color: var(--hp-cyan);
}

.hp-section__sub {
  font-size: 1.0625rem;
  color: var(--hp-grey);
  line-height: 1.65;
}

/* ── Cards ────────────────────────────────────────────── */
.hp-card {
  border: 1px solid transparent;
  border-radius: var(--hp-radius);
  padding: 2.5rem 2rem;
  transition: box-shadow 300ms var(--ease-out),
              border-color 300ms var(--ease-out),
              transform 300ms var(--ease-out);
}
.hp-card:hover {
  box-shadow: var(--hp-shadow);
  border-color: var(--hp-silver);
  transform: translateY(-4px);
}

.hp-card__icon {
  width: 70%;
  height: 48px;
  background: linear-gradient(to right, #68b5bf, transparent);
  border-radius: 50px 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--hp-white);
  font-size: 1.4rem;
  transition: background 400ms var(--ease-out);
}
.hp-card:hover .hp-card__icon {
  background: linear-gradient(to right, var(--hp-cyan), transparent);
}

.hp-card__title {
  font-family: var(--hp-font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: .875rem;
}

.hp-card__text {
  font-size: .9375rem;
  color: var(--hp-grey);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hp-card__link {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--hp-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--hp-navy);
  padding-bottom: 1px;
  transition: color 200ms var(--ease-out),
              border-color 200ms var(--ease-out);
}
.hp-card__link:hover {
  color: var(--hp-cyan);
  border-color: var(--hp-cyan);
}

/* ══════════════════════════════════════════════════════════
   PRODUCTS (ex-Solutions)
══════════════════════════════════════════════════════════ */
.hp-products {
  display: flex;
  gap: 10px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--hp-white);
  transform-origin: center center;
  /* Stato iniziale per l'animazione GSAP */
  transition: box-shadow 0.8s var(--ease-out);
  will-change: transform, box-shadow;
}

/* Stato elevato (aggiunto da GSAP) */
.hp-products.is-elevated {
  box-shadow: 0 20px 80px rgba(94,162,204,.35),
              0 8px 32px rgba(94,162,204,.2);
}

/* Card base */
.hp-product-card {
  position: relative;
  flex: 1 1 50%;
  height: 520px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--hp-white);
  transition: flex 1s var(--ease-inout);
}

/* Hover: la card hoverata prende 70%, l'altra 30% + greyscale */
@media (hover: hover) {
  .hp-products:hover .hp-product-card {
    flex: 1 1 30%;
  }
  .hp-products:hover .hp-product-card:hover {
    flex: 1 1 70%;
  }
  /* Card non hoverata: greyscale + leggero scurimento */
  .hp-products:hover .hp-product-card:not(:hover) .hp-product-card__media img {
    filter: grayscale(100%) brightness(0.7);
  }
}

/* Media / immagine */
.hp-product-card__media {
  position: absolute;
  inset: 0;
  background: var(--hp-deep);
}
.hp-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0) brightness(1);
  transition: transform 1.2s var(--ease-out),
              filter 0.8s var(--ease-out);
}
.hp-product-card:hover .hp-product-card__media img {
  transform: scale(1.04);
}

.hp-product-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21,29,50,.85) 0%,
    rgba(21,29,50,.25) 50%,
    transparent 100%
  );
  transition: background 0.8s var(--ease-out);
}
.hp-product-card:hover .hp-product-card__gradient {
  background: linear-gradient(
    to top,
    rgba(21,29,50,.9) 0%,
    rgba(21,29,50,.4) 55%,
    rgba(21,29,50,.1) 100%
  );
}

/* Contenuto sovrapposto */
.hp-product-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 2.5rem;
}

.hp-product-card__name {
  font-family: var(--hp-font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--hp-white);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 0;
}

/* Dettagli: nascosti di default, visibili all'hover */
.hp-product-card__details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: max-height 0.8s var(--ease-out),
              opacity 0.7s 0.15s var(--ease-out),
              transform 0.8s 0.15s var(--ease-out);
}

@media (hover: hover) {
  .hp-product-card:hover .hp-product-card__details {
    max-height: 250px;
    opacity: 1;
    transform: translateY(0);
  }
}

.hp-product-card__specs {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.hp-product-card__specs li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .5rem;
}

.hp-spec-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  min-width: 100px;
}
.hp-spec-value {
  font-size: .9375rem;
  color: var(--hp-white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Pallini colore */
.hp-color-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}

.hp-product-card__cta {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--hp-white);
  border-bottom: 2px solid var(--hp-cyan);
  padding-bottom: 2px;
  transition: color 0.6s var(--ease-out);
}
.hp-product-card:hover .hp-product-card__cta {
  color: var(--hp-cyan);
}

/* ══════════════════════════════════════════════════════════
   TECHNOLOGY — SCROLLING PANELS
══════════════════════════════════════════════════════════ */
.hp-tech-panels {
  padding: 6rem 0;
  background: var(--hp-light);
}

.hp-tech-panels__wrap {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

/* Colonna sinistra: testo sticky che cambia */
.hp-tech-panels__left {
  flex: 0 0 40%;
  max-width: 40%;
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Slide container */
.hp-tech-slides {
  position: relative;
  min-height: 280px;
}

/* Singola slide di testo */
.hp-tech-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out);
  pointer-events: none;
}
.hp-tech-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Icona nella slide */
.hp-tech-slide__icon {
  width: 64px;
  height: 64px;
  background: var(--hp-cyan);
  border-radius: var(--hp-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Colonna destra: card con solo immagine */
.hp-tech-panels__right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Pannello immagine */
.hp-tech-panel {
  display: flex;
  align-items: center;
  min-height: 72vh;
  padding: clamp(2rem, 6vh, 5rem) 0;
}
.hp-tech-panel.is-active .hp-tech-panel__img {
  box-shadow: var(--hp-shadow);
}

.hp-tech-panel__img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  transition: box-shadow 0.8s var(--ease-out);
}

/* ══════════════════════════════════════════════════════════
   BRAND STORY
══════════════════════════════════════════════════════════ */
.hp-brand {
  background: #F5FAFF;
  padding: 6rem 0;
}

.hp-brand__img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--hp-silver);
  aspect-ratio: 4/3;
  width: 70%;
  transform-origin: left center;
  will-change: width;
}
.hp-brand__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-brand__accent {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 128px;
  height: 128px;
  background: var(--hp-cyan);
  border-radius: var(--hp-radius-sm);
  z-index: -1;
}

.hp-brand__text {
  font-size: 1rem;
  color: var(--hp-grey);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hp-badge {
  display: inline-block;
  padding: .5rem 1.25rem;
  border: 1px solid var(--hp-silver);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--hp-navy);
  letter-spacing: .03em;
}

/* ══════════════════════════════════════════════════════════
   HORIZONTAL SCROLL — SCENARI PREVIEW
══════════════════════════════════════════════════════════ */
.hp-hscroll {
  padding-top: 6rem;
  background: var(--hp-light);
  overflow: hidden;
}

.hp-hscroll__title {
  font-family: var(--hp-font-head);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--hp-navy);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 0;
}

.hp-hscroll__desc {
  font-size: 1rem;
  color: var(--hp-grey);
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 0;
}

/* Track orizzontale */
.hp-hscroll__track {
  overflow: visible;
  padding-bottom: 6rem;
}

.hp-hscroll__cards {
  display: flex;
  gap: 2rem;
  padding-left: calc((100vw - var(--bs-container-lg, 1140px)) / 2 + 12px);
  padding-right: 4rem;
  will-change: transform;
}

/* Singola card */
.hp-hscroll__card {
  flex: 0 0 42vw;
  min-width: 340px;
  text-decoration: none;
  color: var(--hp-navy);
  display: block;
}

.hp-hscroll__card-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 3 / 2;
}
.hp-hscroll__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.hp-hscroll__card:hover .hp-hscroll__card-img img {
  transform: scale(1.04);
}

.hp-hscroll__card-title {
  font-family: var(--hp-font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: .375rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.hp-hscroll__card-sub {
  font-size: .875rem;
  color: var(--hp-grey);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   SCENARIO — BENTO GRID
══════════════════════════════════════════════════════════ */
.hp-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

/* Card base */
.hp-bento__card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: block;
  text-decoration: none;
  color: var(--hp-white);
}

/* Card grande: 2 colonne × 2 righe (quadrata) */
.hp-bento__card--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}

/* Card piccola: 1 colonna × 1 riga */
.hp-bento__card--small {
  aspect-ratio: 1 / 1;
}

/* Immagine di sfondo */
.hp-bento__img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 600ms var(--ease-out);
}
.hp-bento__card:hover .hp-bento__img {
  transform: scale(1.05);
}

/* Overlay gradient */
.hp-bento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21,29,50,.7) 0%,
    rgba(21,29,50,.1) 50%,
    transparent 100%
  );
  transition: background 500ms var(--ease-out);
}
.hp-bento__card:hover .hp-bento__overlay {
  background: linear-gradient(
    to top,
    rgba(21,29,50,.85) 0%,
    rgba(21,29,50,.3) 55%,
    rgba(21,29,50,.05) 100%
  );
}

/* Contenuto sovrapposto */
.hp-bento__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.75rem;
}

.hp-bento__title {
  font-family: var(--hp-font-head);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--hp-white);
  margin-bottom: 0;
}
.hp-bento__card--large .hp-bento__title {
  font-size: 1.75rem;
}

/* Descrizione: nascosta di default, visibile all'hover con fade-in da sinistra */
.hp-bento__desc {
  font-size: .875rem;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
  margin-top: .625rem;
  margin-bottom: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-12px);
  transition: max-height 500ms var(--ease-out),
              opacity 450ms 80ms var(--ease-out),
              transform 500ms 80ms var(--ease-out);
}

/* Hover desktop: mostra descrizione con slide-in morbido */
@media (hover: hover) {
  .hp-bento__card:hover .hp-bento__desc {
    max-height: 120px;
    opacity: 1;
    transform: translateX(0);
  }
}

/* Card CTA — "Altro settore?" */
.hp-bento__card--cta {
  background: var(--hp-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 400ms var(--ease-out);
}
.hp-bento__card--cta:hover {
  background: var(--hp-deep);
}

.hp-bento__cta-inner {
  padding: 2rem;
}

.hp-bento__cta-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hp-cyan);
  margin-bottom: .75rem;
}

.hp-bento__card--cta .hp-bento__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.hp-bento__cta-link {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--hp-white);
  border-bottom: 2px solid var(--hp-cyan);
  padding-bottom: 2px;
  transition: color 200ms var(--ease-out);
}
.hp-bento__card--cta:hover .hp-bento__cta-link {
  color: var(--hp-cyan);
}

/* ══════════════════════════════════════════════════════════
   SOLUTION CARD — immagine + testo centrato + CTA (prodotti.php)
══════════════════════════════════════════════════════════ */
.hp-solution-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: var(--hp-white);
}
.hp-solution-card--half {
  aspect-ratio: 16 / 5;
}
.hp-solution-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out);
}
.hp-solution-card:hover .hp-solution-card__img {
  transform: scale(1.05);
}
.hp-solution-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21,29,50,.75) 0%,
    rgba(21,29,50,.35) 55%,
    rgba(21,29,50,.35) 100%
  );
  transition: background 400ms var(--ease-out);
}
.hp-solution-card:hover .hp-solution-card__overlay {
  background: linear-gradient(
    to top,
    rgba(21,29,50,.85) 0%,
    rgba(21,29,50,.5) 55%,
    rgba(21,29,50,.45) 100%
  );
}
.hp-solution-card__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  max-width: 380px;
}
.hp-solution-card__title {
  font-family: var(--hp-font-head);
  font-size:3rem;
  font-weight: 700;
  color: var(--hp-white);
  margin-bottom: .5rem;
}
.hp-solution-card__desc {
  font-size: .9375rem;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.hp-solution-card__cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
  pointer-events: none;
}
.hp-solution-card:hover .hp-solution-card__cta {
  opacity: 1;
  transform: translateY(0);
}
.hp-solution-card--half .hp-solution-card__content {
  max-width: 460px;
}
.hp-solution-card--half .hp-solution-card__title {
  font-size:2.4rem;
  margin-bottom: .25rem;
}
.hp-solution-card--half .hp-solution-card__desc {
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .hp-solution-card {
    aspect-ratio: 4 / 3;
  }
  .hp-solution-card--half {
    aspect-ratio: 4 / 3;
  }
  .hp-solution-card__cta {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ══════════════════════════════════════════════════════════
   CTA FINALE
══════════════════════════════════════════════════════════ */
.hp-cta-final {
  background: var(--hp-white);
  padding: 6rem 0;
  border-bottom: 1px solid var(--hp-silver);
}

.hp-cta-final__title {
  font-family: var(--hp-font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--hp-navy);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hp-cta-final__sub {
  font-size: 1.0625rem;
  color: var(--hp-grey);
  line-height: 1.65;
}

/* ── Form ─────────────────────────────────────────────── */
.hp-form .wpcf7-form p {
  margin: 0;
}
.hp-form .wpcf7-form br {
  display: none;
}
.hp-form .wpcf7-form-control-wrap {
  display: block;
}

.hp-form__input {
  background: var(--hp-white);
  border: 1px solid var(--hp-silver);
  border-radius: var(--hp-radius);
  color: var(--hp-navy);
  font-family: var(--hp-font-body);
  font-size: .9375rem;
  padding: .875rem 1.125rem;
  transition: border-color 200ms var(--ease-out);
}
.hp-form__input::placeholder {
  color: var(--hp-grey);
}
.hp-form__input:focus {
  background: var(--hp-white);
  border-color: var(--hp-navy);
  color: var(--hp-navy);
  box-shadow: none;
  outline: none;
}

/* Select (Paese) */
select.hp-form__input {
  appearance: auto;
  color: var(--hp-grey);
}
select.hp-form__input:focus,
select.hp-form__input:not([value=""]):valid {
  color: var(--hp-navy);
}

/* Bottone submit navy */
.hp-btn-navy {
  background-color: var(--hp-navy);
  border-color: var(--hp-navy);
  color: var(--hp-white);
  font-family: var(--hp-font-body);
  font-weight: 700;
  border-radius: 100px;
  transition: background-color 200ms var(--ease-out),
              transform 160ms var(--ease-out);
}
.hp-btn-navy:hover {
  background-color: var(--hp-deep);
  border-color: var(--hp-deep);
  color: var(--hp-white);
}
.hp-btn-navy:active { transform: scale(0.97); }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.hp-footer {
  background: var(--hp-white);
  padding: 4rem 0 0;
}

.hp-footer__main {
  padding-bottom: 3rem;
}

.hp-footer__col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hp-navy);
  margin-bottom: 1.25rem;
}

.hp-footer__links li,
.hp-footer__links a {
  font-size: .9375rem;
  color: var(--hp-grey);
  margin-bottom: .625rem;
  display: block;
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.hp-footer__links a:hover {
  color: var(--hp-cyan);
}

/* Social icons */
.hp-footer__social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hp-footer__social a {
  color: var(--hp-navy);
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.hp-footer__social a:hover {
  color: var(--hp-cyan);
}

.hp-footer__bottom {
  border-top: 1px solid var(--hp-silver);
  padding: 1.5rem 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hp-grey);
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════ */
.hp-breadcrumb {
  padding: .75rem 0;
  margin-top: var(--hp-header-h);
}
/* Se precede una hero fullwidth, l'header è già in overlay: nessun margin-top */
.hp-pdp-fullhero + .hp-breadcrumb {
  margin-top: 0;
}
.hp-breadcrumb .breadcrumb-item a {
  color: var(--hp-cyan);
  text-decoration: none;
  font-size: .875rem;
}
.hp-breadcrumb .breadcrumb-item.active {
  color: var(--hp-grey);
  font-size: .875rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  /* Bento: 2 colonne su tablet */
  .hp-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .hp-bento__card--large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }
  .hp-bento__card--small {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 767.98px) {
  .hp-hero {
    padding-bottom: 4rem;
  }
  /* Tech panels: colonna singola su mobile */
  .hp-tech-panels__wrap {
    flex-direction: column;
    gap: 2rem;
  }
  .hp-tech-panels__left {
    flex: none;
    max-width: 100%;
    position: static;
    min-height: 0;
    display: block;
  }
  .hp-tech-slides {
    min-height: auto;
  }
  .hp-tech-slide {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-bottom: 1.5rem;
  }
  .hp-tech-panels__right {
    gap: 2rem;
  }
  .hp-tech-panel {
    min-height: 0;
    padding: 0;
  }
  .hp-brand__accent {
    display: none;
  }

  /* Horizontal scroll: card più piccole su mobile */
  .hp-hscroll__card {
    flex: 0 0 80vw;
    min-width: 280px;
  }
  .hp-hscroll__cards {
    padding-left: 1rem;
    padding-right: 2rem;
  }

  /* Products mobile: impilate, dettagli sempre visibili */
  .hp-products {
    flex-direction: column;
    border-radius: 12px;
  }
  .hp-product-card {
    flex: none;
    height: 400px;
  }
  .hp-product-card__details {
    max-height: none;
    opacity: 1;
    transform: translateY(0);
  }
  .hp-product-card__content {
    padding: 1.5rem;
  }

  /* Bento mobile: colonna singola, descrizione sempre visibile */
  .hp-bento {
    grid-template-columns: 1fr;
  }
  .hp-bento__card--large {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }
  .hp-bento__card--small {
    aspect-ratio: 1 / 1;
  }
  .hp-bento__desc {
    max-height: none;
    opacity: 1;
    transform: translateX(0);
  }
  .hp-bento__content {
    padding: 1.5rem;
  }
}

/* ══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE (PDP)
══════════════════════════════════════════════════════════ */
.hp-pdp-hero {
  padding: calc(var(--hp-header-h) + 3rem) 0 5rem;
  background: var(--hp-white);
}

/* Gallery */
.hp-pdp-gallery__main {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--hp-light);
}
.hp-pdp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 250ms var(--ease-out);
}
.hp-pdp-gallery__thumbs {
  display: flex;
  gap: .75rem;
  margin-top: .75rem;
}
.hp-pdp-gallery__thumb {
  flex: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  opacity: .6;
  transition: opacity 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.hp-pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-pdp-gallery__thumb:hover {
  opacity: .85;
}
.hp-pdp-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--hp-cyan);
}

/* Hero copy */
.hp-pdp-hero__title {
  font-family: var(--hp-font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--hp-navy);
  margin-bottom: 1.25rem;
}
.hp-pdp-hero__title em {
  font-style: italic;
  color: var(--hp-cyan);
}
.js-pdp-text-reveal {
  overflow: hidden;
}
.js-pdp-text-reveal .split-line {
  overflow: hidden;
}

.hp-pdp-hero__desc {
  font-size: 1.0625rem;
  color: var(--hp-grey);
  line-height: 1.7;
  max-width: 480px;
}

.hp-pdp-hero__specs {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--hp-silver);
}
.hp-pdp-hero__specs li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .625rem;
}
.hp-pdp-hero__specs .hp-spec-label {
  color: var(--hp-grey);
}
.hp-pdp-hero__specs .hp-spec-value {
  color: var(--hp-navy);
}

.hp-btn-ghost-dark {
  background-color: transparent;
  border: 2px solid var(--hp-silver);
  color: var(--hp-navy);
  font-family: var(--hp-font-body);
  font-weight: 700;
  border-radius: 100px;
  transition: background-color 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              color 200ms var(--ease-out),
              transform 160ms var(--ease-out);
}
.hp-btn-ghost-dark:hover {
  background-color: var(--hp-navy);
  border-color: var(--hp-navy);
  color: var(--hp-white);
}
.hp-btn-ghost-dark:active { transform: scale(0.97); }

/* Specs table */
.hp-pdp-specs-table {
  max-width: 760px;
  margin: 0 auto;
}
.hp-pdp-specs-table__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--hp-silver);
}
.hp-pdp-specs-table__row:first-child {
  border-top: 1px solid var(--hp-silver);
}
.hp-pdp-specs-table__label {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--hp-grey);
  flex: 0 0 45%;
}
.hp-pdp-specs-table__value {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--hp-navy);
  text-align: right;
}

/* Parallax image block (wrapper scala 80% -> 100% on scroll, img sempre 100% del wrapper) */
.hp-pdp-parallax-img {
  display: flex;
  justify-content: center;
  margin: 0 auto 3.5rem;
  max-width: 1100px;
}
.hp-pdp-parallax-img__wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  transform: scale(0.8);
  transform-origin: center center;
  will-change: transform;
}
.hp-pdp-parallax-img__wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fullwidth hero — immagine responsive + payoff animato + CTA */
.hp-pdp-fullhero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hp-navy);
}
.hp-pdp-fullhero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hp-pdp-fullhero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hp-pdp-fullhero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-pdp-fullhero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21,29,50,.85) 0%,
    rgba(21,29,50,.35) 55%,
    rgba(21,29,50,.25) 100%
  );
}
.hp-pdp-fullhero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hp-pdp-fullhero .hp-overline {
  color: var(--hp-cyan);
}
.hp-pdp-fullhero__title {
  font-family: var(--hp-font-head);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--hp-white);
  margin: 0 auto 1.5rem;
  max-width: 900px;
}
.hp-pdp-fullhero__title em {
  font-style: italic;
  color: var(--hp-cyan);
}
.js-pdp-fullhero-reveal {
  overflow: hidden;
}
.js-pdp-fullhero-reveal .split-line {
  overflow: hidden;
}

/* Color picker (solo hero prodotto) — swatches + input hex live */
.hp-pdp-color-picker {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hp-silver);
}
.hp-pdp-color-picker .hp-spec-label {
  color: var(--hp-grey);
  display: block;
  margin-bottom: .75rem;
}
.hp-pdp-color-picker__swatches {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hp-pdp-color-swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--swatch-color);
  box-shadow: inset 0 0 0 1px rgba(21,29,50,.12);
}

/* WooCommerce commerce controls inside the custom PDP. */
.hp-pdp-commerce {
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid var(--hp-silver);
}
.hp-pdp-commerce .price {
  display: block;
  margin: 0 0 1rem;
  font-family: var(--hp-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hp-navy);
}
.hp-pdp-commerce .price del {
  color: var(--hp-grey);
  font-size: .9em;
  opacity: .65;
}
.hp-pdp-commerce .price ins {
  text-decoration: none;
}
.hp-pdp-commerce form.cart,
.hp-pdp-commerce .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 0;
}
.hp-pdp-commerce form.variations_form.cart {
  display: block;
}
.hp-pdp-commerce .quantity .qty {
  width: 5rem;
  min-height: 48px;
  border: 1px solid var(--hp-silver);
  border-radius: 100px;
  padding: .625rem;
  color: var(--hp-navy);
  text-align: center;
}
.hp-pdp-commerce .single_add_to_cart_button {
  min-height: 48px;
  border: 0;
  border-radius: 100px;
  padding: .75rem 1.5rem;
  background: var(--hp-cyan);
  color: var(--hp-navy);
  font-weight: 800;
}
.hp-pdp-commerce .single_add_to_cart_button:hover {
  background: var(--hp-navy);
  color: var(--hp-white);
}
.hp-pdp-commerce--catalog .woocommerce-variation-price,
.hp-pdp-commerce--catalog .quantity,
.hp-pdp-commerce--catalog .single_add_to_cart_button {
  display: none !important;
}
.hp-pdp-commerce--catalog .woocommerce-variation-add-to-cart {
  min-height: 0;
}
.hp-pdp-commerce table.variations {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: .5rem;
}
.hp-pdp-commerce table.variations th,
.hp-pdp-commerce table.variations td {
  padding: .625rem 0;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--hp-silver);
}
.hp-pdp-commerce table.variations th.label {
  width: 42%;
  padding-right: 1rem;
}
.hp-pdp-commerce table.variations th.label label {
  margin: 0;
  color: var(--hp-grey);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hp-pdp-commerce table.variations td.value {
  width: 58%;
  color: var(--hp-navy);
  font-weight: 700;
  text-align: right;
}
.hp-pdp-commerce table.variations select {
  width: 100%;
  max-width: 260px;
  margin-left: auto;
  border: 1px solid var(--hp-silver);
  border-radius: 8px;
  padding: .65rem .8rem;
  background: var(--hp-white);
}
.hp-pdp-commerce .reset_variations {
  display: inline-block;
  margin-top: .4rem;
  color: var(--hp-grey);
  font-size: .875rem;
}
.hp-woo-color-picker {
  position: relative;
}
.hp-pdp-commerce table.variations tr:has(.hp-woo-color-picker) {
  display: block;
}
.hp-pdp-commerce table.variations tr:has(.hp-woo-color-picker) th.label,
.hp-pdp-commerce table.variations tr:has(.hp-woo-color-picker) td.value {
  display: block;
  width: 100%;
  padding-right: 0;
  border-bottom: 0;
  text-align: left;
}
.hp-pdp-commerce table.variations tr:has(.hp-woo-color-picker) th.label {
  padding-bottom: .25rem;
}
.hp-pdp-commerce table.variations tr:has(.hp-woo-color-picker) td.value {
  padding-top: .25rem;
  padding-bottom: .25rem;
}
.hp-woo-color-picker > select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hp-woo-color-picker__swatches {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .625rem;
  flex-wrap: wrap;
}
.hp-woo-color-swatch {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid var(--hp-white);
  border-radius: 50%;
  background: var(--swatch-color);
  box-shadow: 0 0 0 1px rgba(21,29,50,.2);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.hp-woo-color-swatch:hover,
.hp-woo-color-swatch:focus-visible {
  transform: scale(1.08);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,158,255,.3);
}
.hp-woo-color-swatch.is-active {
  box-shadow: 0 0 0 3px var(--hp-cyan);
}
.hp-woo-color-swatch:disabled {
  opacity: .3;
  cursor: not-allowed;
  transform: none;
}

/* Feature rows — layout alternato immagine/testo (zig-zag) */
.hp-pdp-features__intro {
  margin-bottom: 4.5rem;
}
.hp-pdp-features {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.hp-pdp-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hp-pdp-feature-row--reverse .hp-pdp-feature-row__media {
  order: 2;
}
.hp-pdp-feature-row--reverse .hp-pdp-feature-row__content {
  order: 1;
}
.hp-pdp-feature-row__media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--hp-silver);
}
.hp-pdp-feature-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-pdp-feature-row__num {
  display: block;
  font-family: var(--hp-font-head);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--hp-cyan);
  margin-bottom: .75rem;
}
.hp-pdp-feature-row__title {
  font-family: var(--hp-font-head);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.hp-pdp-feature-row__text {
  font-size: 1.0625rem;
  color: var(--hp-grey);
  line-height: 1.7;
  max-width: 460px;
}

@media (max-width: 767.98px) {
  .hp-pdp-hero {
    padding-top: calc(var(--hp-header-h) + 1.5rem);
  }
  .hp-pdp-gallery__thumbs {
    gap: .5rem;
  }
  .hp-pdp-specs-table__row {
    flex-direction: column;
    gap: .25rem;
  }
  .hp-pdp-specs-table__value {
    text-align: left;
  }
  .hp-pdp-fullhero {
    min-height: 85vh;
  }
  .hp-pdp-features {
    gap: 3rem;
  }
  .hp-pdp-feature-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hp-pdp-feature-row--reverse .hp-pdp-feature-row__media,
  .hp-pdp-feature-row--reverse .hp-pdp-feature-row__content {
    order: initial;
  }
  .hp-pdp-feature-row__text {
    max-width: none;
  }
}

/* ══════════════════════════════════════════════════════════
   FAQ — accordion con icona +  (prodotto.php)
══════════════════════════════════════════════════════════ */
.hp-faq {
  max-width: 860px;
  margin: 0 auto;
}
.hp-faq__item {
  border-bottom: 1px solid var(--hp-silver);
}
.hp-faq__item:first-child {
  border-top: 1px solid var(--hp-silver);
}
.hp-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem .5rem;
  font-family: var(--hp-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hp-navy);
  cursor: pointer;
}
.hp-faq__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hp-light);
  color: var(--hp-navy);
  font-size: .875rem;
  transition: transform 300ms var(--ease-out),
              background-color 300ms var(--ease-out),
              color 300ms var(--ease-out);
}
.hp-faq__question[aria-expanded="true"] .hp-faq__icon {
  transform: rotate(135deg);
  background: var(--hp-cyan);
  color: var(--hp-white);
}
.hp-faq__question:hover .hp-faq__icon {
  background: var(--hp-cyan);
  color: var(--hp-white);
}
.hp-faq__answer {
  padding: 0 2.5rem 1.75rem .5rem;
  color: var(--hp-grey);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 767.98px) {
  .hp-faq__question {
    font-size: 1rem;
    padding: 1.25rem .25rem;
  }
  .hp-faq__answer {
    padding: 0 1.5rem 1.5rem .25rem;
  }
}

/* ═══════════════════════════════════════════════════════
   ACCESSORI — Card griglia (accessori.php)
══════════════════════════════════════════════════════ */
.hp-acc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--hp-silver);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
  height: 100%;
}
.hp-acc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(21,29,50,.10);
  color: inherit;
  text-decoration: none;
}

.hp-acc-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--hp-light);
}
.hp-acc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.hp-acc-card:hover .hp-acc-card__img {
  transform: scale(1.05);
}

.hp-acc-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.hp-acc-card__name {
  font-family: var(--hp-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: .375rem;
}
.hp-acc-card__desc {
  font-size: .8125rem;
  color: var(--hp-grey);
  line-height: 1.55;
  margin-bottom: .75rem;
}
.hp-acc-card__price {
  display: inline-block;
  font-family: var(--hp-font-body);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--hp-navy);
}
