/* ================================================================
   HiFirewall — pagina prodotto "Sicurezza Perimetrale"
   Illustrazione bespoke "il varco sorvegliato" (canvas particellare in
   js/hifirewall.js) + card funzionalità con stroke-draw staggered.
   Riusa .reveal/.reveal.visible, .spot-card, pathLength+.is-drawn già
   condivisi in css/style.css e js/main.js.
   ================================================================ */

.hf-gate {
  position: relative;
  max-width: 900px;
  margin: 44px auto 0;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-dark), var(--navy-deep));
  border: 1px solid var(--border);
}
.hf-gate__canvas { display: block; width: 100%; height: 100%; }
.hf-gate__tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--navy-dark);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  box-shadow: var(--shadow);
}
.hf-gate__legend { position: absolute; left: 16px; bottom: 12px; display: flex; gap: 18px; z-index: 1; }
.hf-gate__legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.72); }
.hf-gate__legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.hf-gate__legend-dot--ok { background: var(--teal); }
.hf-gate__legend-dot--bad { background: #ff5a3c; }
.hf-gate__hint { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin: 14px 0 0; font-style: italic; }

.hf-features__title { text-align: center; font-size: 1.3rem; margin: 56px 0 30px; }
.hf-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hf-feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
  transition-delay: calc(var(--i, 0) * 0.09s);
}
.reveal.visible .hf-feature-card { opacity: 1; transform: none; }
.hf-feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.hf-feature-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--off-white);
  color: var(--orange);
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.hf-feature-card__icon svg { width: 22px; height: 22px; overflow: visible; }
.hf-feature-card__icon svg [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.8s ease; }
.hf-feature-card__icon svg [pathLength].is-drawn { stroke-dashoffset: 0; }
.hf-feature-card h4 { font-size: 1rem; margin-bottom: 8px; }
.hf-feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.hf-why-list { list-style: none; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.hf-why-list li { display: flex; gap: 12px; font-size: 0.96rem; color: var(--navy-mid); line-height: 1.6; }
.hf-why-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 130, 0, 0.12);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.hf-cta-line { font-size: 1rem; color: rgba(255, 255, 255, 0.85); }
.hf-cta-line__link { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hf-feature-card { transition: none; opacity: 1; transform: none; }
  .hf-feature-card__icon svg [pathLength] { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
}
@media (max-width: 860px) {
  .hf-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hf-features { grid-template-columns: 1fr; }
  .hf-gate { height: 220px; }
}
