/* ============================================================
   Hyper Energy Srl — hyper-energy.it
   Tema scuro derivato dal logo neon: plum profondo + gradiente
   magenta -> corallo -> ambra.
   ============================================================ */

:root {
  /* Colori marchio */
  --notte: #17060f;
  --notte-2: #220c18;
  --notte-3: #2c0d1f;
  --magenta: #f4478a;
  --corallo: #ff8a3d;
  --ambra: #ffc42e;

  --chiaro: #fbf1f3;
  --muto: #b7949f;
  --linea: rgba(255, 255, 255, 0.13);
  --linea-forte: rgba(255, 138, 61, 0.5);

  --grad: linear-gradient(95deg, var(--magenta) 0%, var(--corallo) 52%, var(--ambra) 100%);

  --display: "Sora", "Segoe UI", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --r: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--notte);
  color: var(--chiaro);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ambra);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link { position: absolute; left: -9999px; background: var(--ambra); color: var(--notte); padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Tipografia ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; max-width: 62ch; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ambra);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  flex: none;
}

.lead { font-size: 1.14rem; color: var(--muto); }

.unit {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--corallo);
  margin: 0 0 10px;
}

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--solid {
  background: var(--grad);
  color: #24070f;
  font-weight: 700;
}
.btn--solid:hover { box-shadow: 0 8px 26px rgba(255, 138, 61, 0.32); }

.btn--ghost { border-color: var(--linea); color: var(--chiaro); }
.btn--ghost:hover { border-color: var(--corallo); color: var(--ambra); }

/* ---------- Header ---------- */

.topbar {
  background: var(--notte-3);
  color: #c9a3b1;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--linea);
}
.topbar .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; padding-block: 8px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--ambra); }

.status { display: flex; align-items: center; gap: 9px; }
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ambra);
  box-shadow: 0 0 0 0 rgba(255, 196, 46, 0.6);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 196, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 196, 46, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 6, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 13px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo svg { filter: drop-shadow(0 0 6px rgba(255, 138, 61, 0.45)); }
.logo-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  line-height: 1;
}
.logo-text em { font-style: normal; font-weight: 300; color: var(--muto); }

.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--corallo); color: var(--ambra); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--corallo); }

.nav-toggle {
  display: none;
  background: none;
  color: var(--chiaro);
  border: 1.5px solid var(--linea);
  border-radius: var(--r);
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
}

/* ---------- Sezioni ---------- */

.band { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.band--alt { background: var(--notte-2); }
.band--plum { background: var(--notte-3); }
.band--tight { padding-block: clamp(36px, 5vw, 62px); }

.band--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 120% at 50% 0%, rgba(244, 71, 138, 0.16), transparent 70%);
  pointer-events: none;
}
.band--glow > .wrap { position: relative; }

.section-head { max-width: 660px; margin-bottom: 46px; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(50px, 7vw, 92px) clamp(42px, 6vw, 76px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero p { font-size: 1.16rem; color: var(--muto); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-figure {
  background: var(--notte-3);
  border: 1px solid var(--linea);
  border-radius: var(--r);
  padding: 26px 22px 18px;
}
.hero-figure figcaption {
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.07em;
  color: var(--muto);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  border-top: 1px solid var(--linea);
  padding-top: 12px;
}

/* Firma visiva: la curva di carico disegnata come tubo al neon */
.curve-line {
  fill: none;
  stroke: url(#hyperGrad);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(255, 138, 61, 0.55));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.curve-grid { stroke: rgba(255, 255, 255, 0.09); stroke-width: 1; }
.curve-label { fill: #8f6d79; font-family: var(--mono); font-size: 11px; }

/* ---------- Griglie e schede ---------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--notte-2);
  border: 1px solid var(--linea);
  border-radius: var(--r);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.band--alt .card { background: var(--notte-3); }
.card:hover { border-color: var(--linea-forte); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; color: var(--muto); flex: 1; }

.card-link {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ambra);
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--corallo);
}

.card--wide { padding: 36px 34px; }
.card--accent { border-color: var(--linea-forte); }

/* ---------- Passaggi (sequenza reale) ---------- */

.steps { counter-reset: step; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  padding-block: 26px;
  border-top: 1px solid var(--linea);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--linea); }
.step::before {
  content: "Passaggio " counter(step);
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--corallo);
  padding-top: 6px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muto); font-size: 0.97rem; }

/* ---------- Form ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muto);
}
.field .req { color: var(--magenta); }

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--linea);
  border-radius: var(--r);
  background: var(--notte);
  color: var(--chiaro);
}
.field select option { background: var(--notte-2); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--corallo); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field ::placeholder { color: #7c5b67; }

.field-error { font-size: 0.85rem; color: var(--magenta); min-height: 1em; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--magenta); }

.choice { display: flex; gap: 22px; flex-wrap: wrap; }
.choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.97rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--chiaro);
}
.choice input, .consent input { accent-color: var(--corallo); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muto); }
.consent input { margin-top: 4px; }
.consent a { color: var(--ambra); }

.form-note { font-family: var(--mono); font-size: 0.74rem; color: var(--muto); margin-top: 18px; }

.form-feedback {
  display: none;
  padding: 16px 18px;
  border-left: 3px solid var(--ambra);
  background: var(--notte-3);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.form-feedback.is-visible { display: block; }

/* ---------- Contatti ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding-block: 15px; border-bottom: 1px solid var(--linea); }
.contact-list span {
  display: block;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--corallo);
  margin-bottom: 4px;
}
.contact-list a { color: var(--chiaro); }
.contact-list a:hover { color: var(--ambra); }

/* ---------- Marchio in pagina ---------- */

.brand-figure {
  border: 1px solid var(--linea);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--notte-3);
  margin: 0;
}
.brand-figure img { width: 100%; height: auto; }

/* ---------- CTA ---------- */

.cta { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 20ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--notte-3);
  border-top: 1px solid var(--linea);
  color: var(--muto);
  padding-block: 60px 26px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--linea);
}
.site-footer h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.71rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ambra);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ambra); }
.site-footer .logo { margin-bottom: 16px; }

.legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
}

/* ---------- Rivelazione allo scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; order: 3; }
  .site-nav { display: none; order: 4; width: 100%; padding-bottom: 12px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--linea); }
  .site-header .btn { display: none; }
  .site-header .wrap { flex-wrap: wrap; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .curve-line { stroke-dashoffset: 0; }
}

/* Honeypot antispam: fuori schermo, invisibile all'utente ma non a un bot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
