/* Halloween — bianco/nero con arancione. Le animazioni si fermano se il visitatore ha chiesto meno movimento. */

:root { --hw: #ff6b1a; --hw-2: #ffb000; }

/* ---------- striscia in alto ---------- */
.hw-strip {
  position: fixed; top: 0; left: 0; right: 0; height: 38px; z-index: 310;
  background: #000; border-bottom: 1px solid var(--hw); overflow: hidden;
}
.hw-strip__in {
  height: 100%; display: flex; align-items: center; justify-content: center; gap: 14px;
  color: #fff; font-size: .8rem; letter-spacing: .02em; white-space: nowrap; padding-inline: 12px;
}
.hw-strip__tit {
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--hw);
  text-shadow: 0 0 10px rgba(255, 107, 26, .8);
}
.hw-strip__txt { color: #e8e8e8; }
.hw-strip__conto {
  font-variant-numeric: tabular-nums; font-weight: 700; color: #000; background: var(--hw);
  padding: 3px 10px; border-radius: 3px; font-size: .74rem;
}
.hw-strip__in:hover .hw-strip__txt { text-decoration: underline; }

body.hw-on header.nav, body.hw-on header.nav.is-hidden { top: 38px !important; }
body.hw-on .hero { padding-top: 142px !important; }
body.hw-on .progress { top: 38px; }
@media (max-width: 640px) {
  .hw-strip__txt { display: none; }
  .hw-strip__in { gap: 10px; }
}

/* ---------- sezione ---------- */
.hw-sec {
  position: relative; overflow: hidden; background: #000; color: #fff;
  padding-block: clamp(72px, 10vw, 128px); isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12);
  --bg: #000; --text: #fff; --ga-muted: #b5b5b5; --line: rgba(255, 255, 255, .16);
}
.hw-sec::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 70% at 78% 45%, rgba(255, 107, 26, .22), transparent 70%);
}
.hw-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.hw-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hw); margin: 0 0 18px;
}
.hw-titolo {
  font-size: clamp(2.8rem, 7.2vw, 6.4rem) !important; font-weight: 800 !important; color: #fff; margin: 0;
  line-height: .95 !important;
}
.hw-titolo span { color: var(--hw); display: inline-block; text-shadow: 0 0 22px rgba(255, 107, 26, .55); }
.hw-sub { margin: 26px 0 0; max-width: 54ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: #c9c9c9; }
.hw-sub b { color: #fff; }

.hw-conto { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hw-cifra {
  min-width: 78px; padding: 14px 10px 10px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; background: rgba(255, 255, 255, .04);
}
.hw-cifra b { display: block; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; font-weight: 800; }
.hw-cifra span { display: block; margin-top: 6px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hw); }

.hw-azioni { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
html body .hw-btn { border-radius: 4px !important; font-weight: 700 !important; }
html body .hw-btn--pieno { background: var(--hw) !important; border: 1px solid var(--hw) !important; color: #000 !important; }
html body .hw-btn--pieno:hover { background: #fff !important; border-color: #fff !important; }
html body .hw-btn--vuoto { background: transparent !important; border: 1px solid #fff !important; color: #fff !important; }
html body .hw-btn--vuoto:hover { background: #fff !important; color: #000 !important; }

/* ---------- zucca ---------- */
.hw-zucca { position: relative; width: min(100%, 360px); justify-self: center; filter: drop-shadow(0 0 38px rgba(255, 107, 26, .55)); }
.hw-zucca svg { width: 100%; height: auto; overflow: visible; }
.hw-z { fill: var(--hw); stroke: #c94a00; stroke-width: 3; }
.hw-z1, .hw-z2 { fill: #e65a00; }
.hw-z3 { fill: var(--hw); }
.hw-gambo { fill: #4a3512; stroke: #7a5a22; stroke-width: 2; }
.hw-faccia { fill: #1a0800; }
.hw-scintilla { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--hw-2); box-shadow: 0 0 12px 3px rgba(255, 176, 0, .8); opacity: 0; }
.hw-s1 { left: 18%; top: 60%; } .hw-s2 { right: 14%; top: 50%; } .hw-s3 { left: 50%; top: 30%; }

/* ---------- luna e pipistrelli ---------- */
.hw-luna {
  position: absolute; width: clamp(120px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%; z-index: -1;
  right: 6%; top: 6%; background: radial-gradient(circle at 35% 35%, #fff 0%, #e9e9e9 55%, #bdbdbd 100%); opacity: .12;
}
.hw-pipi { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hw-pip { position: absolute; left: -90px; width: 56px; opacity: .9; }
.hw-pip svg { width: 100%; height: auto; fill: #fff; display: block; }
.hw-pip1 { top: 14%; width: 46px; } .hw-pip2 { top: 30%; width: 64px; opacity: .6; } .hw-pip3 { top: 52%; width: 40px; }
.hw-pip4 { top: 68%; width: 58px; opacity: .5; } .hw-pip5 { top: 84%; width: 36px; }

/* ---------- pacchetti scontati ---------- */
.hw-plan { border-color: var(--hw) !important; }
.hw-plan .plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.hw-vecchio { margin-right: 12px; color: #6f6f6f; font-size: .55em; font-weight: 500; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--hw); }
.hw-nuovo { color: var(--ga, #d45300); font-weight: 800; }
.hw-badge {
  margin-left: 8px; background: var(--hw); color: #000; font-weight: 800; font-size: .72rem; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 3px; white-space: nowrap;
}
.hw-plan .plan__head { flex-wrap: wrap; row-gap: 8px; }
html body .hw-cta { background: var(--hw) !important; border-color: var(--hw) !important; color: #000 !important; font-weight: 700 !important; }
html body .hw-cta:hover { background: #0a0a0a !important; border-color: #0a0a0a !important; color: #fff !important; }

@media (max-width: 860px) {
  .hw-grid { grid-template-columns: 1fr; }
  .hw-zucca { width: min(70%, 260px); order: -1; justify-self: start; }
  .hw-cifra { min-width: 66px; }
  .hw-cifra b { font-size: 1.6rem; }
}

/* ---------- animazioni (solo se non si chiede meno movimento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html:not(.hw-fermo) .hw-strip__tit { animation: hw-neon 2.6s steps(1, end) infinite !important; }
  html:not(.hw-fermo) .hw-titolo span { animation: hw-brilla 3.2s ease-in-out infinite !important; }
  html:not(.hw-fermo) .hw-zucca svg { animation: hw-galleggia 4.2s ease-in-out infinite !important; transform-origin: 50% 90%; }
  html:not(.hw-fermo) .hw-zucca { animation: hw-alone 3s ease-in-out infinite !important; }
  html:not(.hw-fermo) .hw-faccia { animation: hw-occhi 5s ease-in-out infinite !important; transform-origin: 50% 60%; }
  html:not(.hw-fermo) .hw-scintilla { animation: hw-salta 3.4s ease-in infinite !important; }
  html:not(.hw-fermo) .hw-s2 { animation-delay: 1.1s !important; }
  html:not(.hw-fermo) .hw-s3 { animation-delay: 2.2s !important; }
  html:not(.hw-fermo) .hw-luna { animation: hw-luna 9s ease-in-out infinite !important; }
  html:not(.hw-fermo) .hw-pip { animation: hw-vola 14s linear infinite !important; }
  html:not(.hw-fermo) .hw-pip svg { animation: hw-batti .35s ease-in-out infinite alternate !important; transform-origin: 50% 40%; }
  html:not(.hw-fermo) .hw-pip2 { animation-duration: 19s !important; animation-delay: -6s !important; }
  html:not(.hw-fermo) .hw-pip3 { animation-duration: 12s !important; animation-delay: -3s !important; }
  html:not(.hw-fermo) .hw-pip4 { animation-duration: 22s !important; animation-delay: -11s !important; }
  html:not(.hw-fermo) .hw-pip5 { animation-duration: 16s !important; animation-delay: -8s !important; }
  html:not(.hw-fermo) .hw-badge { animation: hw-pulsa 1.8s ease-in-out infinite !important; }
  html:not(.hw-fermo) .hw-cifra b { animation: hw-tic 1s steps(1, end) infinite !important; }
}
@keyframes hw-neon { 0%, 19%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 21%, 63% { opacity: .35; } }
@keyframes hw-brilla { 0%, 100% { text-shadow: 0 0 14px rgba(255, 107, 26, .45); } 50% { text-shadow: 0 0 34px rgba(255, 107, 26, .95); } }
@keyframes hw-galleggia { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes hw-alone { 0%, 100% { filter: drop-shadow(0 0 26px rgba(255, 107, 26, .4)); } 50% { filter: drop-shadow(0 0 52px rgba(255, 107, 26, .85)); } }
@keyframes hw-occhi { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.15); } }
@keyframes hw-salta { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1.2); } }
@keyframes hw-luna { 0%, 100% { opacity: .1; transform: translateY(0); } 50% { opacity: .18; transform: translateY(10px); } }
@keyframes hw-vola {
  0% { transform: translate(0, 0); } 25% { transform: translate(30vw, -26px); } 50% { transform: translate(60vw, 18px); }
  75% { transform: translate(85vw, -20px); } 100% { transform: translate(calc(100vw + 140px), 6px); }
}
@keyframes hw-batti { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes hw-pulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes hw-tic { 0% { opacity: 1; } 50% { opacity: .85; } }

/* Configuratore preventivo: prezzo pieno barrato, prezzo Halloween accanto */
.hw-q .qlevel__price > strong { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--hw); opacity: .45; font-size: .8em; }
.hw-qprezzo { display: block; color: var(--ga, #d45300); font-weight: 800; font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hw-q .qx-total { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--hw); opacity: .4; font-size: clamp(1.8rem, 4vw, 2.6rem) !important; margin-bottom: 4px !important; }
.hw-qtot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px; color: var(--text, #111); font-size: .95rem; }
.hw-qtot b { flex-basis: 100%; color: var(--ga, #d45300); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hw-qtot .hw-badge { margin-left: 0; }
.hw-qbar { display: block; color: var(--hw); font-weight: 800; font-size: .95em; }
