/* Helios Energia — front-end */

/* Exact tokens from live heliosenergia.it scrape (1440 / 768 / 390).
   Live face: neue-haas-grotesk-display w400 (Adobe kit msb3jky — do not hotlink).
   Licensed fallback: Inter 400. Tracking 0.336px = 0.02em at 16.8px. Ubuntu = tertiary tags only. */
:root {
  --primary: #25303a;
  --ink: #25303a;
  --ink-900: #3b454e;
  --ink-700: #515961;
  --paper: #ffffff;
  --mist: #f8f9fa;
  --line: #e1e9f1;
  --muted: #7f868d;
  --luce: #ffd62c;
  --gas: #158aff;
  --green: #2ae845;
  --link: #0086ff;
  --secondary: #6489ab;
  --secondary-200: #e1e9f1;
  --shadow: 0 8px 15px rgba(0,0,0,.10);
  --radius: 8px;
  --radius-lg: 8px;

  --ls: .02em;
  --display: "neue-haas-grotesk-display", Inter, "Helvetica Neue", Helvetica, sans-serif;
  --body: "neue-haas-grotesk-text", Inter, "Helvetica Neue", Helvetica, sans-serif;
  --meta: Ubuntu, Helvetica, sans-serif;

  --text-body: 16.8px;
  --text-kicker: 16.8px;
  --text-sub: 20px;
  --text-h2: 32px;
  --text-promo: 24px;
  --text-price: 48px;
  --text-btn: 16.8px;
  --text-tag: 12px;
  --hero-h1: 88px;

  --lh-none: 1;
  --lh-small: 1.1;
  --lh-medium: 1.2;
  --lh-body: 1.4;

  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;

  --pad: 64px;
  --space-section: 120px;
  --header: 137px;
  --nav-main: 105px;
  --container: 1600px;
  --space-xxsmall: 4px;
  --space-xsmall: 8px;
  --space-small: 16px;
  --space-medium: 24px;
  --space-large: 32px;
  --space-xlarge: 40px;
  --space-xxlarge: 48px;
  --space-xxxlarge: 64px;
}

*,
*::before,
*::after { box-sizing: border-box;};    
    

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: var(--text-body);
  font-weight: var(--weight-normal);
  line-height: var(--lh-body);
  letter-spacing: var(--ls);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, svg { max-width: 100%; display: block; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; letter-spacing: var(--ls); line-height: var(--lh-small); margin: 0; }

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem;
  width: auto; height: auto; clip: auto;
  background: var(--paper); padding: .5rem 1rem; z-index: 200;
}

.container {
  width: min(100% - (var(--pad) * 2), var(--container));
  margin-inline: auto;
}

.section { padding: var(--space-section) 0; }

/* Le ancore non devono finire sotto l'header fisso */
[id] { scroll-margin-top: calc(var(--header) + 1.25rem); }

.kicker {
  font-family: var(--display);
  font-size: var(--text-kicker);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: var(--ls);
  text-transform: none;
  margin: 0 0 4px;
}
.kicker--light { color: rgba(255,255,255,.72); }
.kicker--line {
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.25);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: .55rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 16.8px;
  font-weight: 500;
  letter-spacing: var(--ls);
  line-height: 1.1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background .2s ease, color .2s ease, border-color .2s ease, gap .2s ease, box-shadow .2s ease;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { background: #6489ab; border-color: #6489ab; color: var(--paper); }
.btn:hover svg { transform: translate(.12rem, -.12rem); }
.btn:focus-visible { outline: 2px solid var(--gas); outline-offset: 3px; }
.btn--outline {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn--outline:hover { background: #6489ab; border-color: #6489ab; color: #fff; }
.btn--light,
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn--light:hover,
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn svg { flex-shrink: 0; width: 1em; height: 1em; transition: transform .2s ease; position: relative; z-index: 2; }
.btn--icon {
  padding-right: 1.35rem;
}
.btn--icon svg {
  width: 1.15em;
  height: 1.15em;
}
.btn--icon::before {
  content: "";
  position: absolute;
  right: -1.35rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: transparent;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.btn--outline.btn--icon::before { background: transparent; }
.btn--ghost.btn--icon::before,
.btn--light.btn--icon::before { background: color-mix(in srgb, #fff 55%, transparent); }
.btn--icon:hover::before { background: transparent; }
.nav-cta::before,
.nav-cta.btn--icon::before { display: none; }
.btn--icon { overflow: visible; }
.btn--text {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  color: inherit;
  font-weight: 500;
  gap: 4px;
  overflow: visible;
}
.btn--text:hover {
  background: transparent;
  color: inherit;
  gap: 8px;
  border-color: transparent;
}
.btn--text.btn--icon::before { display: none; }

/* Header — live chrome: two bars, hover mega, pill CTA */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  color: var(--ink);
  background: transparent;
  display: flex;
  flex-direction: column;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.site-header.is-hero { color: var(--paper); }
.site-header.is-solid,
.site-header.is-open,
body.is-inner .site-header {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
@media (min-width: 1281px) {
  .site-header.is-hero:hover {
    color: var(--ink);
    background: #fff;
  }
}

.nav-list > li.nav-item-cta {
  display: flex;
  align-items: center;
}
.site-header .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0.5rem;
  border-radius: 999px;
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0 1.25rem;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
  vertical-align: middle;
}
@media (max-width: 1400px) and (min-width: 1281px) {
  .nav-link,
  .nav-list > li > a.nav-link,
  .nav-list > li > .nav-link--parent {
    padding-inline: 0.45rem;
    font-size: 15px;
  }
  .site-header .nav-cta {
    padding-inline: 0.85rem;
    font-size: 14px;
    margin-left: 0.35rem;
  }
}
.site-header .pre-header-cta {
  min-height: 1.85rem !important;
  height: 1.85rem;
  padding: .25rem .85rem !important;
  font-size: 13px !important;
  font-weight: 500;
  border-radius: 999px !important;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.site-header.is-hero .nav-cta {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.site-header.is-hero .nav-cta:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.site-header.is-hero.is-solid .nav-cta,
.site-header.is-hero:hover .nav-cta,
body.is-inner .nav-cta,
.site-header.is-open .nav-cta {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
/* Specificita': senza questa regola, ".site-header.is-hero .nav-cta" (3 classi)
   batteva "body.is-inner .nav-cta" (2 classi + elemento) sulle pagine interne
   con hero fotografica (is-hero + is-inner insieme), rendendo il pulsante CTA
   invisibile (testo bianco su sfondo bianco) finche' non si scrollava o
   passava il mouse sopra. */
body.is-inner .site-header.is-hero .nav-cta {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.site-header.is-hero.is-solid .nav-cta:hover,
.site-header.is-hero:hover .nav-cta:hover,
body.is-inner .nav-cta:hover,
.site-header.is-open .nav-cta:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.nav-admin-hint {
  margin: 0;
  font-size: 13px;
  letter-spacing: .02em;
  opacity: .7;
}

.nav-secondary {
  height: 32px;
  font-size: 14px;
  line-height: 1;
  background: #f9fbfc;
  overflow: visible;
}
.site-header.is-hero .nav-secondary {
  background: color-mix(in srgb, #f9fbfc 8%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header.is-hero.is-solid .nav-secondary,
.site-header.is-hero:hover .nav-secondary,
body.is-inner .nav-secondary {
  background: #f9fbfc;
  backdrop-filter: none;
}
.nav-secondary__inner,
.nav-main__inner {
  width: min(100% - (var(--pad) * 2), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-secondary__inner { min-height: 32px; height: 32px; }
.nav-secondary__list {
  display: flex;
  align-items: center;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
}
.nav-secondary__list > li:first-child { margin-right: auto; }
.nav-secondary .nav-link {
  opacity: .65;
  font-size: 14px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  color: inherit;
  font-family: var(--display);
  letter-spacing: var(--ls);
}
.nav-secondary .nav-link:hover,
.nav-secondary .nav-link.current-menu-item,
.nav-secondary .current-menu-item > .nav-link {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nav-secondary .has-sub { position: relative; }
.nav-secondary .nav-arrow { width: 14px; height: 14px; }
.util-sub {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 16rem;
  max-width: 22rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(37,48,58,.12);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 95;
}
.util-sub::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -10px;
  height: 10px;
}
.nav-secondary .has-sub:hover > .util-sub,
.nav-secondary .has-sub.is-open > .util-sub {
  display: flex;
  flex-direction: column;
}
.util-sub__link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}
.util-sub__link:hover { background: var(--mist); color: var(--link); }

.nav-main { position: relative; }
.nav-main__inner { min-height: var(--nav-main); }
.nav-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.nav-search-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.nav-search-toggle:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav-search-toggle svg { flex-shrink: 0; }

/* Variante piccola per la barra pre-header (accanto ad "Area clienti") */
.nav-search-toggle--pre {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  opacity: .65;
  transition: opacity .2s ease;
}
.nav-search-toggle--pre:hover { background: none; color: inherit; opacity: 1; }

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 24px 24px;
}
.search-modal[hidden] { display: none; }
.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37,48,58,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.search-modal__panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  padding: 32px;
}
.search-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
  transition: background .2s ease;
}
.search-modal__close:hover { background: var(--mist); }
.search-modal__label {
  margin: 0 0 12px;
  font-family: var(--meta);
  font-size: var(--text-tag);
  font-weight: 300;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  color: var(--muted);
}
.search-modal .search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-modal .search-form input[type="search"] {
  flex: 1 1 auto;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16.8px;
}
.search-modal .search-form input[type="search"]::placeholder { color: var(--muted); }
.search-modal .search-form .btn {
  min-height: 3rem;
  min-width: 0;
  padding: 0 1.3rem;
  font-size: 14px;
  border-radius: 999px;
  flex-shrink: 0;
}

.logo {
  display: grid;
  justify-items: center;
  color: inherit;
  min-width: 4.6rem;
  width: 4.6rem;
  position: relative;
  z-index: 2;
  gap: 0;
  flex-shrink: 0;
}
.site-header.is-hero:not(:hover):not(.is-solid):not(.is-open) .logo { width: 6rem; min-width: 6rem; }
body.is-inner .logo { width: 4.6rem; min-width: 4.6rem; }
.logo__arch {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 1.2627;
  object-fit: contain;
  display: block;
  margin-bottom: -.09em;
}
.logo__mark {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1.125;
  display: block;
  color: inherit;
  line-height: 0;
}
.logo__mark svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.nav-link,
.nav-list > li > a.nav-link,
.nav-list > li > .nav-link--parent {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: 1.25rem .75rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 16.8px;
  font-weight: 400;
  letter-spacing: .336px;
  line-height: 1.2;
  color: inherit;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover,
.nav-list > li > a.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nav-arrow {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.has-sub:hover > .nav-link--parent .nav-arrow,
.has-sub.is-open > .nav-link--parent .nav-arrow {
  transform: rotate(180deg);
}

.site-header,
.nav-main,
.nav-main__inner,
.nav-panel,
.nav-list {
  overflow: visible;
}

.nav-list > li { flex: 0 0 auto; position: static; }
.nav-list > li.has-sub,
.nav-list > .menu-item-has-children { position: static; }

.subnav {
  display: none;
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  padding: var(--header) var(--pad) 64px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(37,48,58,.12);
  grid-template-columns: minmax(16rem, 1.5fr) repeat(auto-fit, minmax(12rem, 1fr));
  gap: 48px;
  align-items: stretch;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}
.has-sub:hover > .subnav,
.has-sub.is-open > .subnav,
.nav-list > .has-sub:focus-within > .subnav {
  display: grid;
}
/* Desktop mega: L1 strip fills the bar (no hover gap) + padding-top bridge into the panel. */
@media (min-width: 1281px) {
  .nav-main__inner { align-items: stretch; }
  .logo,
  .nav-cta { align-self: center; }
  .nav-panel { align-items: stretch; }
  .nav-list {
    align-self: stretch;
    align-items: stretch;
  }
  .nav-list > li {
    display: flex;
    align-items: center;
  }
  .subnav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: var(--header);
  }
}
.subnav__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 12rem;
}
.subnav__item--cta { max-width: 22rem; }
.subnav__heading {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.6vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: .02em;
  font-weight: 400;
}
.subnav__cta { margin-top: auto; }
.subnav__link { font-size: 16.8px; white-space: nowrap; color: var(--ink); }
.subnav__link--head { font-weight: 700; margin-top: 4px; }
.subnav__link:hover { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

.nav-toggle {
  display: none;
  width: 2.6rem; height: 2.6rem;
  border: 0; background: none; cursor: pointer;
  color: inherit;
  position: relative;
  z-index: 2;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 1.25rem; height: 1.5px; background: currentColor;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle__bars::before { top: -.42rem; }
.nav-toggle__bars::after { top: .42rem; }
.site-header.is-open .nav-toggle__bars { background: transparent; }
.site-header.is-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav-mobile-utility { display: none; }

/* Hero — photographic full-bleed ~890px; copy in the photo; two-col promo rail at the bottom */
.hero {
  position: relative;
  min-height: 890px;
  min-height: 95dvh;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  will-change: transform;
}
.hero__media video,
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,48,58,.35) 0%, rgba(37,48,58,.2) 40%, rgba(37,48,58,.62) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--pad) * 2), var(--container));
  margin: 0 auto;
  padding: calc(var(--header) + var(--space-xlarge)) 0 var(--space-xlarge);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-medium);
  flex: 1;
}
.hero__kicker {
  margin: 0;
  font-family: var(--display);
  font-size: var(--text-kicker);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: var(--ls);
  text-transform: none;
  color: #fff;
  animation: rise .8s ease both;
}
.hero__copy {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xsmall);
  align-items: flex-start;
}
.hero__title {
  font-size: var(--hero-h1);
  line-height: 1;
  font-weight: 400;
  margin: 0;
  max-width: 16ch;
  letter-spacing: var(--ls);
  color: #fff;
  overflow-wrap: break-word;
  animation: rise .9s .12s ease both;
}
.hero__subtitle {
  max-width: 38rem;
  font-size: var(--text-sub);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: var(--ls);
  color: #fff;
  margin: 0;
  animation: rise .9s .24s ease both;
}
.hero__promos {
  display: grid;
  grid-template-columns: minmax(12rem, 20%) minmax(0, 1fr);
  gap: var(--space-large);
  align-items: end;
  align-self: stretch;
  animation: rise .9s .38s ease both;
}
.hero__intro {
  font-size: var(--text-h2);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: var(--ls);
  margin: 0;
  max-width: 14ch;
  line-height: 1.1;
  color: #fff;
}
.hero__promos .slider,
.hero__slider { min-width: 0; }

.slider { position: relative; }
.slider__viewport { min-width: 0; }
.slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.slider.is-static .slider__controls { display: none; }

.promo-track,
[data-slider-track] {
  display: flex;
  gap: var(--space-medium);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
}
.promo-track::-webkit-scrollbar,
[data-slider-track]::-webkit-scrollbar { display: none; }
.promo-track.is-dragging,
[data-slider-track].is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.promo-card {
  flex: 0 0 calc((100% - 24px) / 2);
  max-width: calc((100% - 24px) / 2);
  scroll-snap-align: start;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.hero .promo-card {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 14px;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  padding: 28px;
}
.hero .promo-card::before { display: none; }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promo-card__tags { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.tag {
  font-family: var(--meta);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: .2rem .75rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero .tag { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.08); }
.tag--ghost { opacity: .9; }
.promo-card__title { font-size: clamp(1.5rem, 1.8vw, 2.1rem); line-height: 1.15; font-weight: 400; letter-spacing: var(--ls); margin-top: 20px; color: #fff; }
.promo-card__price { margin: 0; display: grid; gap: 4px; }
.promo-card__prefix,
.promo-card__note { opacity: .8; font-size: 16px; line-height: 1.4; font-weight: 400; color: rgba(255,255,255,.85); }
.promo-card__amount {
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--ls);
  font-family: var(--display);
  color: #fff;
}
.promo-card__euro {
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  margin-left: 0;
  font-style: normal;
  color: #fff;
}
.promo-card .btn { margin-top: auto; align-self: flex-start; }

/* CTA promo: layout comune. Sfondo solido da cards.css. */
.promo-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  border-radius: 8px;
  padding: .45rem .9rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: var(--ls);
  line-height: 1.1;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

/* Hero homepage: pulsanti outline trasparenti sulla foto. */
.hero .promo-card__cta {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 8px !important;
  padding: .45rem .9rem !important;
}

.hero .promo-card:hover .promo-card__cta,
.hero .promo-card__cta:hover {
  background-color: #25303a !important;
  color: #ffffff !important;
  border-color: #25303a !important;
}

.promo-card__cta svg,
.hero .promo-card__cta svg {
  flex-shrink: 0;
  transition: transform .25s ease;
}

.promo-card:hover .promo-card__cta svg,
.promo-card__cta:hover svg,
.hero .promo-card:hover .promo-card__cta svg,
.hero .promo-card__cta:hover svg {
  transform: translateX(3px);
}

/* Hero: riquadri rapidi mostrati al posto dello slider promo su smartphone (v. media query 768px) */
.hero__quicklinks { display: none; }
.hero__quicklink {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--display);
  font-size: var(--text-btn);
  font-weight: 500;
  letter-spacing: var(--ls);
  line-height: 1.2;
  transition: background .25s ease;
}
.hero__quicklink:hover { background: rgba(255,255,255,.2); }
.hero__quicklink svg { flex-shrink: 0; }

.slider-dots { display: flex; gap: .45rem; align-items: center; }
.slider-dots button {
  width: .55rem; height: .55rem;
  padding: 0; border: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: .32;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.slider-dots button.is-on { opacity: 1; transform: scale(1.15); }
.slider-nav { display: flex; gap: .5rem; }

.slider-btn {
  width: 2.75rem; height: 2.75rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.slider-btn:hover { background: currentColor; }
.slider-btn:hover svg { color: var(--paper); }
.slider-btn:disabled { opacity: .28; cursor: default; }
.slider-btn:focus-visible { outline: 2px solid var(--gas); outline-offset: 2px; }
.hero .slider-btn { color: var(--paper); }
.hero .slider-btn:hover { background: var(--paper); color: var(--ink); }
.hero .slider-btn:hover svg { color: inherit; }
.hero .slider-dots { color: var(--paper); }

/* Needs */
.needs__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: var(--ls);
  color: var(--ink);
  margin: 0 0 2rem;
}
.needs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.need-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 26rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.need-card:hover { transform: translateY(-8px); border-color: transparent; }
.need-card:nth-child(1):hover { box-shadow: 0 20px 40px rgba(255, 214, 44, 0.28); }
.need-card:nth-child(2):hover { box-shadow: 0 20px 40px rgba(42, 232, 69, 0.28); }
.need-card:nth-child(3):hover { box-shadow: 0 20px 40px rgba(21, 138, 255, 0.28); }
.need-card:nth-child(4):hover { box-shadow: 0 20px 40px rgba(42, 232, 69, 0.28); }
.need-card__label {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.5rem 1.5rem .5rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  line-height: 1.05;
  z-index: 1;
}
.need-card__label svg { opacity: .45; transition: opacity .25s ease, transform .25s ease; flex-shrink: 0; }
.need-card:hover .need-card__label svg { opacity: 1; transform: translate(3px, -3px); }
.need-card__media {
  position: relative;
  flex: 1;
  min-height: 16rem;
  margin-top: auto;
}
.need-card img {
  width: 100%; height: 100%; object-fit: contain;
  object-position: center bottom;
  transition: opacity .45s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.need-card__img { opacity: 1; }
.need-card__outline { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); }
.need-card:hover .need-card__img { opacity: 0; transform: scale(1.06); }
.need-card:hover .need-card__outline { opacity: 1; transform: scale(1); }

/* Stores */
.stores {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}
.stores::before {
  content: "";
  position: absolute;
  width: 42rem; height: 42rem;
  right: -12rem; top: -14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,44,.16), transparent 68%);
  animation: aurora 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.stores::after {
  content: "";
  position: absolute;
  width: 36rem; height: 36rem;
  left: -10rem; bottom: -16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,138,255,.14), transparent 68%);
  animation: aurora 16s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
.stores .container { position: relative; z-index: 1; }
.stores__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem 4rem;
  align-items: start;
}
.stores h2 {
  font-size: var(--text-h2);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: var(--ls);
  max-width: 12ch;
}
.city-ticker {
  margin-top: var(--space-medium);
  min-height: 2.6rem;
  position: relative;
  font-size: var(--heading-large);
  line-height: var(--lh-small);
  font-family: var(--display);
  font-weight: var(--weight-normal);
  color: var(--luce);
}
.city-ticker span {
  position: absolute; left: 0; top: 0;
  opacity: 0;
  transform: translateY(.6rem);
  transition: opacity .45s ease, transform .45s ease;
}
.city-ticker span.is-on { opacity: 1; transform: none; }

.store-finder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.store-finder__card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.store-finder select {
  flex: 1 1 16rem;
  min-width: 12rem;
  height: 2.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%237f868d'><path d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/></svg>") no-repeat right 12px center;
  color: var(--ink);
  padding: 0 2.4rem 0 1rem;
  appearance: none;
  -webkit-appearance: none;
}
.store-finder select option,
.store-finder select optgroup { color: var(--ink); }
.store-finder__card .btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.store-finder__card .btn:hover {
  background: #6489ab;
  border-color: #6489ab;
  color: #fff;
}
.stores__all {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--paper);
}

/* Tailor / about */
.tailor { padding-bottom: 0; }
.tailor__box {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.tailor__box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--luce), var(--green), var(--gas));
}
.tailor__box::after {
  content: "";
  position: absolute;
  width: 22rem; height: 22rem;
  right: -6rem; bottom: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,232,69,.18), transparent 70%);
  pointer-events: none;
}
.tailor__title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
  max-width: 22ch;
  margin: 1.2rem 0 0;
}
.about__inner { max-width: 58rem; }
.about__text {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  font-family: var(--display);
  margin: 0 0 1.8rem;
}
.about__text em { color: var(--muted); font-style: italic; }
.about__text p { margin: 0; }

/* News */
.news__head { text-align: center; margin-bottom: 2.5rem; }
.news__head h2 { font-size: var(--text-h2); line-height: 1.1; font-weight: 400; letter-spacing: var(--ls); color: var(--ink); margin: 0 0 4px; }
.news__head p { color: var(--muted); margin: .7rem 0 0; }
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.news-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.news-card:hover { transform: translateY(-4px); }
.news-card.is-featured {
  grid-row: 1 / span 2;
}
.news-card__link { display: grid; height: 100%; align-content: start; }
.news-card__media { overflow: hidden; aspect-ratio: 16/11; }
.news-card.is-featured .news-card__media { aspect-ratio: 4/5; min-height: 22rem; }
.news-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.news-card:hover img { transform: scale(1.07); }
.news-card.is-featured .news-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(37,48,58,.35));
  pointer-events: none;
}
.news-card.is-featured .news-card__media { position: relative; }
.news-card__body { padding: 1rem 0 .2rem; display: grid; gap: .55rem; }
.news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: var(--muted);
  font-family: var(--meta);
}
.news-tag { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); }
.news-tag__dot {
  width: .7rem; height: .7rem; border-radius: 2px; background: var(--ink);
}
.news-tag--gas .news-tag__dot { background: var(--gas); }
.news-tag--energia .news-tag__dot { background: var(--luce); }
.news-tag--green .news-tag__dot { background: var(--green); }
.news-date { display: flex; gap: .15rem; }
.news-card h3 { font-size: 1.2rem; line-height: 1.2; }
.news-card.is-featured h3 { font-size: 1.7rem; }
.news-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.news__cta { display: flex; justify-content: center; margin-top: 2.2rem; }
.news-grid--archive { grid-template-columns: repeat(3, 1fr); }
.news-grid--archive .news-card { grid-row: auto; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--band-grey, #f2f4f1);
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 28rem; height: 28rem;
  left: -8rem; bottom: -12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,44,.12), transparent 70%);
  pointer-events: none;
}
.cta-band__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  position: relative;
}
.cta-band h2 {
  margin: 0 0 4px;
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: var(--ls);
  font-weight: 400;
  color: var(--ink);
}
.cta-band p { margin: 0 0 1.6rem; font-size: 1.08rem; line-height: 1.55; max-width: 44ch; color: var(--ink-700, #3d4750); }
.cta-band .btn { display: inline-flex; align-items: center; gap: .4rem; }

/* Recensioni Trustindex — sopra il footer, solo se lo shortcode è valorizzato */
.section--reviews {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  background: var(--mist, #f8f9fa);
  border-top: 1px solid var(--line, #e1e9f1);
}
.section--reviews .container {
  max-width: var(--container);
}
.reviews-widget-wrap {
  width: 100%;
  margin-inline: auto;
}
.reviews-widget-wrap .ti-widget,
.reviews-widget-wrap .ti-widget-container,
.reviews-widget-wrap .trustindex-widget {
  max-width: 100% !important;
  margin-inline: auto !important;
}

.gdpr_link{ color: inherit; text-decoration: underline; }

/* Inner pages */
.inner-page { padding: 0 0 4rem; }
.page-head { max-width: 46rem; }
.page-head h1 { font-size: var(--hero-h1); margin: 0; line-height: 1; font-weight: 400; letter-spacing: var(--ls); }
.stack { display: grid; gap: 2rem; }
.prose { max-width: 46rem; font-size: 1.08rem; }
.prose p { margin: 0 0 1rem; }
.article--post { max-width: 46rem; margin-inline: auto; padding-top: calc(var(--header) + 3rem); padding-bottom: 4rem; }
.article-head { margin-bottom: 2rem; }
.news-tag { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--ink); }
.news-tag__dot { width: .65rem; height: .65rem; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.news-tag__name { text-transform: uppercase; font-family: var(--meta); font-size: .78rem; letter-spacing: .05em; }
.article-title { font-family: var(--display); font-size: clamp(2.2rem, 3.8vw, 3.6rem); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; margin: .75rem 0 0; color: var(--ink); text-wrap: balance; }
.article-cover { margin: 0 0 2.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.article-cover img { width: 100%; height: auto; display: block; object-fit: cover; }
.share { display: flex; flex-direction: column; gap: .6rem; margin-top: 2rem; }
.share__label { margin: 0; font-size: .9rem; color: var(--muted); }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; align-items: center; }
.share__icon {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--mist); color: var(--ink);
}
.share__icon:hover { background: var(--ink); color: #fff; }
.store-detail { display: grid; gap: 1rem; max-width: 36rem; }
.store-detail a { color: var(--link); }

/* Responsive — live 1440 default / 768 tablet / 390 mobile */
@media (max-width: 1200px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.is-featured { grid-row: auto; grid-column: 1 / -1; }
  .news-card.is-featured .news-card__media { aspect-ratio: 16/8; min-height: 0; }
}
@media (max-width: 1280px) {
  :root { --header: 96px; --nav-main: 96px; }
  .nav-secondary { display: none; }
  .nav-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
  .nav-panel {
    display: none;
    position: fixed;
    inset: var(--header) 0 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px var(--pad) 32px;
    overflow: auto;
    gap: 16px;
    z-index: 80;
  }
  .site-header.is-open .nav-panel { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { display: block; width: 100%; flex: none; position: relative; }
  .nav-list > li > a.nav-link,
  .nav-list > li > .nav-link--parent {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 20px;
  }
  .subnav,
  .has-sub > .subnav {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: none !important;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    padding: 8px 0 12px 8px;
    grid-template-columns: 1fr !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-height: none;
    overflow: visible;
    background: transparent;
  }
  .has-sub.is-open > .subnav { display: flex !important; }
  .subnav__item { min-width: 0; gap: 8px; }
  .subnav__item--cta { max-width: none; }
  .subnav__heading { font-size: 16.8px; margin: 0 0 4px; }
  .nav-cta { width: fit-content; background: var(--ink); color: #fff; border-color: var(--ink); margin-left: 0; margin-top: 8px; }
  .search-modal { padding: 0; align-items: stretch; }
  .search-modal__panel { max-width: none; border-radius: 0; padding: 24px; padding-top: 72px; }
  .nav-mobile-utility {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .nav-secondary__list--mobile {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
  }
  .nav-secondary__list--mobile > li:first-child { margin-right: 0; }
  .nav-mobile-utility .nav-link { opacity: 1; font-size: 16.8px; padding: 6px 0; }
  .nav-mobile-utility .has-sub { position: relative; width: 100%; }
  .nav-mobile-utility .util-sub {
    position: static;
    display: none;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 8px 12px;
    border-radius: 0;
  }
  .nav-mobile-utility .has-sub.is-open > .util-sub { display: flex; }
  .site-header.is-hero:not(.is-solid):not(.is-open) .logo { width: 6rem; min-width: 6rem; }
}
@media (max-width: 768px) {
  :root {
    --pad: 48px;
    --space-section: 96px;
    --header: 96px;
    --nav-main: 96px;
    --hero-h1: 53.8px;
  }
.stores__grid, .cta-band__grid, .hero__promos{ grid-template-columns: 1fr; }
  .hero__title { max-width: none; }
  .hero__intro { max-width: 18ch; }
  .needs-grid { grid-template-columns: 1fr 1fr; }
  .promo-card { flex-basis: calc((100% - 24px) / 2); max-width: calc((100% - 24px) / 2); }
  .slider-btn { min-width: 44px; min-height: 44px; }
  /* Hero: su smartphone lo slider promo intero si nasconde e al suo posto compaiono
     2 riquadri rapidi (Offerte / Promo attive), come sul sito live */

}
@media (max-width: 479px) {
  :root {
    --pad: 20px;
    --space-section: 80px;
    --header: 81px;
    --nav-main: 81px;
    --hero-h1: 58.5px;
  }
  .hero__copy { text-align: center; justify-items: center; }
  .hero__title, .hero__subtitle, .hero__kicker { margin-inline: auto; text-align: center; max-width: 20ch; }
  .hero__scroll { display: none; }
.news-grid, .news-grid--archive{ grid-template-columns: 1fr; }
  .needs-grid { grid-template-columns: 1fr; }
  .need-card { min-height: 20rem; }
  .promo-card { flex-basis: 78vw; max-width: 78vw; min-width: 70vw; }
  .hero { min-height: 100svh; }
  .hero__content { padding-top: calc(var(--header) + 24px); gap: 32px; }
  .hero__copy { align-items: center; text-align: center; }
  .stores__all { margin-left: 0; }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 1.6rem;
  height: 2.5rem;
  border: 1.5px solid color-mix(in srgb, var(--paper) 55%, transparent);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: .4rem;
}
.hero__scroll span {
  width: .35rem; height: .35rem;
  border-radius: 50%;
  background: var(--paper);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(6px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1), filter .8s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.4rem); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes ken {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(0, -2%, 0); }
}
@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  to { transform: translate3d(-4%, 3%, 0) scale(1.08); opacity: 1; }
}
@keyframes arch-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255,214,44,.25)); }
  50% { filter: drop-shadow(0 0 12px rgba(42,232,69,.55)) drop-shadow(0 0 18px rgba(21,138,255,.35)); }
}
@keyframes btn-shine {
  from { left: -40%; }
  to { left: 140%; }
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(.85rem); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero__media video { transform: none; }
}

/* Homepage layout: shared spacing; content can grow at browser zoom. */
.nav-main__inner { gap: 24px; }
.hero__shade { background: linear-gradient(180deg, rgba(20,28,35,.60), rgba(20,28,35,.55) 45%, rgba(20,28,35,.75)); }
.hero__content { gap: clamp(24px, 4vw, 48px); }
.hero__title { max-width: 100%; font-size: clamp(2.75rem, 6vw, 5.5rem); }
.hero__subtitle { max-width: 55rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.hero__promos { align-items: start; }
.hero__intro { max-width: 20ch; }
@media (max-width: 1100px) {
  .hero__promos { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__intro { max-width: none; }
}
@media (max-width: 767px) {

  .hero__intro { font-size: 1.5rem; }
  .hero__quicklink { min-width: 0; min-height: 72px; padding: 16px; }
}
@media (max-width: 479px) {
  .hero__content { padding-bottom: 32px; }
  .hero__subtitle { max-width: 32ch; }
}
@media (max-height: 500px) and (max-width: 1280px) {
  :root { --header: 72px; --nav-main: 72px; }
  .hero__content { padding-top: calc(var(--header) + 24px); }
  .nav-panel { padding-top: 12px; }
}

@media (max-width: 767px) {
  .hero__slider { display: none; }
  .hero__quicklinks { display: flex; gap: 12px; }
}

/* Fluent Forms submit buttons: theme-owned styling, independent of plugin files. */
body .fluentform .ff-btn-submit {
  box-sizing: border-box !important;
  appearance: button;
  display: inline-flex !important;
  position: relative;
  justify-content: center !important;
  align-items: center !important;
  align-self: flex-end !important;
  gap: 8px !important;
  margin: 32px 0 0 !important;
  padding: 10px 32px !important;
  min-height: 0 !important;
  max-width: 100%;
  border: 0 !important;
  border-radius: 8px !important;
  background: #25303a linear-gradient(225deg, #25303a, #515961) !important;
  color: #fff !important;
  font-family: neue-haas-grotesk-display, sans-serif !important;
  font-size: 1.05rem !important;
  line-height: 1.1 !important;
  font-weight: 400 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}
body .fluentform .ff-btn-submit:hover:not(:disabled):not([aria-disabled="true"]) {
  background: #6489ab !important;
  color: #fff !important;
}
body .fluentform .ff-btn-submit:focus-visible {
  outline: 2px solid #6489ab !important;
  outline-offset: 3px !important;
}
body .fluentform .ff-btn-submit:disabled,
body .fluentform .ff-btn-submit[aria-disabled="true"] {
  opacity: .6 !important;
  cursor: not-allowed;
}

/* =========================================================================
   HELIOS PIXEL-PERFECT CLONE 100% REFINEMENTS (DESKTOP, LAPTOP, TABLET, MOBILE)
   ========================================================================= */

/* 1. Global Tokens & Base Overrides */
:root {
  --brand-green: #00875a;
  --brand-green-hover: #006e49;
  --bg-body: #ffffff;
  --bg-light: #f7f9fa;
  --bg-dark: #1a2327;
  --text-heading: #1a1a1a;
  --text-body-color: #4a4a4a;
  --text-meta: #8a9499;
  --container: 1440px;
  --pad-desktop: 64px;
  --pad-laptop: 48px;
  --pad-mobile: 24px;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  background-color: var(--bg-body);
  color: var(--text-body-color);
  font-family: Inter, "Ubuntu", sans-serif;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--pad-desktop);
  padding-right: var(--pad-desktop);
}
@media (max-width: 1024px) {
  .container {
    padding-left: var(--pad-laptop);
    padding-right: var(--pad-laptop);
  }
}
@media (max-width: 767px) {
  .container {
    padding-left: var(--pad-mobile);
    padding-right: var(--pad-mobile);
  }
}

/* 2. Header & Multi-Device Navigation */
.nav-secondary {
  height: 32px;
  font-size: 13px;
  font-weight: 500;
  color: #4a4a4a;
}
.nav-secondary .nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #4a4a4a;
}
@media (max-width: 1024px) {
  .nav-secondary {
    display: none !important;
  }
}


/* Brand Logo Height */
:where(body:not(.home)) .logo {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

:where(body:not(.home)) .logo__arch {
  height: 14px !important;
  width: auto !important;
  margin-bottom: 0 !important;
}

:where(body:not(.home)) .logo__mark {
  height: 18px !important;
  width: auto !important;
}

:where(body:not(.home)) .logo__mark svg {
  height: 18px !important;
  width: auto !important;
}
@media (max-width: 767px) {

:where(body:not(.home)) .logo {
    height: 26px !important;
  }

:where(body:not(.home)) .logo__arch {
    height: 11px !important;
  }

:where(body:not(.home)) .logo__mark,
:where(body:not(.home)) .logo__mark svg {
    height: 15px !important;
  }
}

/* Header breakpoint 1024px */
@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex !important;
  }
  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 200;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 24px 32px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .site-header.is-open .nav-panel {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }
}

/* These legacy component overrides exclude the homepage, whose layout is
   defined in home-fidelity.css. Shared footer styling also lives there. */

/* 3. Hero Video, Typography & Glassmorphism Cards */
:where(body:not(.home)) .hero__shade {
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 45%, rgba(0,0,0,0.7) 100%) !important;
}

:where(body:not(.home)) .hero__media video {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover !important;
}

:where(body:not(.home)) .hero__kicker {
  font-weight: 500;
  color: #ccffe1;
}

:where(body:not(.home)) .hero__title {
  font-size: clamp(2.5rem, 4.5vw, 4.25rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;
  font-weight: 700 !important;
}

:where(body:not(.home)) .hero__subtitle {
  font-size: 1.125rem !important;
  line-height: 1.5 !important;
  max-width: 600px !important;
}

:where(body:not(.home)) .hero .promo-card,
:where(body:not(.home)) .promo-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.12) !important;
  padding: 24px !important;
}

@media (max-width: 767px) {

:where(body:not(.home)) .hero__slider {
    display: block !important;
  }

:where(body:not(.home)) .hero__slider .promo-track {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding-bottom: 16px !important;
    -webkit-overflow-scrolling: touch !important;
  }

:where(body:not(.home)) .hero__slider .promo-card {
    flex: 0 0 85vw !important;
    scroll-snap-align: center !important;
  }

:where(body:not(.home)) .slider-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }
}
/* 4. "Di cosa hai bisogno?" Service Grid & Hover */
:where(body:not(.home)) .card_row,
:where(body:not(.home)) .needs .card_row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}
@media (max-width: 1024px) {

:where(body:not(.home)) .card_row,
:where(body:not(.home)) .needs .card_row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

:where(body:not(.home)) .card-01_component {
    min-height: 220px !important;
  }
}
@media (max-width: 767px) {

:where(body:not(.home)) .card_row,
:where(body:not(.home)) .needs .card_row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

:where(body:not(.home)) .card-01_component {
    padding: 14px !important;
  }
}

:where(body:not(.home)) .card-01_component {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:where(body:not(.home)) .card-01_component:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

:where(body:not(.home)) .card_image {
  position: relative !important;
}

:where(body:not(.home)) .card_image img.is-hover {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  transform: scale(0.95) !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:where(body:not(.home)) .card_image img:not(.is-hover) {
  opacity: 1 !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:where(body:not(.home)) .card-01_component:hover .card_image img.is-hover {
  opacity: 1 !important;
  transform: scale(1.05) !important;
}

:where(body:not(.home)) .card-01_component:hover .card_image img:not(.is-hover) {
  opacity: 0 !important;
}
/* 5. Ticker & Store Search */
:where(body:not(.home)) .city-ticker,
:where(body:not(.home)) .stores__backdrop {
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #9aa5ab !important;
}

:where(body:not(.home)) .store-finder select {
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
}

:where(body:not(.home)) .store-finder button {
  border-radius: 999px !important;
  background: var(--brand-green, #00875a) !important;
}
/* 6. News Thumbnails & Category Badges */
:where(body:not(.home)) .news-card__media,
:where(body:not(.home)) .news-card .image_mask {
  aspect-ratio: 800 / 520 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  width: 100% !important;
}

:where(body:not(.home)) .news-card__media img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

:where(body:not(.home)) .card_header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

:where(body:not(.home)) .news-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: var(--brand-green, #00875a) !important;
}

:where(body:not(.home)) .news-tag__dot,
:where(body:not(.home)) .news_tag_square {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: var(--brand-green, #00875a) !important;
  display: inline-block !important;
}

:where(body:not(.home)) .news-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}
@media (max-width: 1024px) {

:where(body:not(.home)) .news-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}
@media (max-width: 767px) {

:where(body:not(.home)) .news-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
/* 7. Banner CTA & Footer */
:where(body:not(.home)) .cta-band {
  background: var(--bg-dark, #1a2327) !important;
  border-radius: 24px !important;
  padding: 80px 60px !important;
}
@media (max-width: 767px) {

:where(body:not(.home)) .cta-band {
    padding: 40px 24px !important;
    border-radius: 16px !important;
  }
}

:where(body:not(.home)) .cta-band__grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px !important;
}
@media (max-width: 767px) {

:where(body:not(.home)) .cta-band__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}



/* Pre-header: white links only while the header is transparent (top of page).
   Once scrolled/solid or open, fall back to the theme's default dark link color
   so the text stays visible against the light pre-header background. */
.site-header.is-hero:not(.is-solid):not(.is-open) .pre-header .nav-secondary__list > li > .nav-link,
.site-header.is-hero:not(.is-solid):not(.is-open) .pre-header .nav-secondary__list > li > .nav-link:visited,
.site-header.is-hero:not(.is-solid):not(.is-open) .pre-header .nav-secondary__list > li > .nav-link:hover,
.site-header.is-hero:not(.is-solid):not(.is-open) .pre-header .nav-secondary__list > li > .nav-link:focus-visible {
  color: #fff;
  opacity: 1;
}
