/* ============================================================================
   HOME PAGE DEL PRODOTTO — stile professionale "da strumento".
   Header scuro a gradiente, accento ciano, sezioni alternate, schede.
   Indipendente da richiesta.css (che serve solo per il selettore .lingue).
   ============================================================================ */

:root{
  --hm-dark:#0c1b2a;
  --hm-mid:#1e3e5a;
  --hm-light:#3a6ea5;
  --hm-accent:#00aaff;
  --hm-bg:#f4f4f6;
  --hm-card:#ffffff;
  --hm-line:#e2e8ee;
  --hm-text:#1c2530;
  --hm-dim:#5a6b7c;
  --hm-titolo:#0d3556;
}

body.hm-bd{
  margin:0;
  background:var(--hm-bg);
  color:var(--hm-text);
  font-family:"Inter","Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.6;
}

.hm-wrap{ width:92%; max-width:1120px; margin:0 auto; }

/* ------------------------------- HEADER ----------------------------------- */
.hm-header{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(120deg,var(--hm-dark),var(--hm-mid));
  box-shadow:0 2px 10px rgba(0,0,0,.28);
  transition:padding .2s ease;
}
.hm-header-in{
  display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between;
  gap:12px; padding:12px 0;
}
.hm-marchio{ display:inline-flex; align-items:center; text-decoration:none; }
.hm-marchio img{ height:136px; width:auto; display:block; }

/* Lingue: sempre visibili, su una riga, CENTRATE (sotto logo e hamburger). */
.hm-lang-bar{ padding:2px 0 14px; }
.hm-lang-bar .lingue{ justify-content:center; margin-top:0; }

/* --- Hamburger: ora vale sia da PC sia da mobile --- */
.hm-nav-toggle{ display:none; }                 /* casella invisibile che apre/chiude il menu */
.hm-burger{
  display:inline-flex; flex-direction:column; justify-content:center; gap:5px;
  width:46px; height:46px; padding:0 11px; border-radius:11px; cursor:pointer; flex:0 0 auto;
  border:1px solid rgba(255,255,255,.4); background:rgba(255,255,255,.06);
  transition:background .15s ease;
}
.hm-burger:hover{ background:rgba(255,255,255,.14); }
.hm-burger span{ display:block; width:100%; height:2px; background:#fff; border-radius:2px;
  transition:transform .2s ease, opacity .15s ease; }
/* Le tre barre diventano una X quando il menu è aperto. */
.hm-nav-toggle:checked ~ .hm-header-in .hm-burger span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hm-nav-toggle:checked ~ .hm-header-in .hm-burger span:nth-child(2){ opacity:0; }
.hm-nav-toggle:checked ~ .hm-header-in .hm-burger span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
/* Menu a tendina con la navigazione. */
.hm-mobile{
  display:none;
  background:linear-gradient(120deg,var(--hm-dark),var(--hm-mid));
  border-top:1px solid #17324a; box-shadow:inset 0 6px 16px rgba(0,0,0,.28);
}
.hm-nav-toggle:checked ~ .hm-mobile{ display:block; }
.hm-mobile-nav{ display:flex; flex-direction:column; }
.hm-mobile-nav a{
  color:#eaf3fb; text-decoration:none; font-weight:600; font-size:16px;
  padding:15px 0; border-bottom:1px solid rgba(255,255,255,.10);
}
.hm-mobile-nav a:hover{ color:var(--hm-accent); }

/* -------------------------------- HERO ------------------------------------ */
.hm-hero{ padding:64px 0 56px; background:linear-gradient(180deg,#ffffff, #eef3f8); }
.hm-hero-griglia{
  display:grid; grid-template-columns:1.1fr .9fr; gap:44px; align-items:center;
}
.hm-hero h1{
  font-size:2.05rem; line-height:1.25; margin:0 0 14px; color:var(--hm-titolo); letter-spacing:-.2px;
}
.hm-hero p{ font-size:16.5px; color:var(--hm-dim); margin:0 0 24px; }

.hm-cta-riga{ display:flex; flex-wrap:wrap; gap:12px; }
.hm-cta{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--hm-accent); color:#04222f; text-decoration:none; font-weight:700;
  font-size:15.5px; padding:13px 24px; border-radius:9px; border:1.5px solid var(--hm-accent);
  box-shadow:0 4px 14px rgba(0,120,180,.25); transition:filter .15s ease, transform .05s ease;
}
.hm-cta:hover{ filter:brightness(1.07); }
.hm-cta:active{ transform:translateY(1px); }
.hm-cta.fantasma{ background:transparent; color:var(--hm-mid); border-color:var(--hm-mid); box-shadow:none; }
.hm-cta.fantasma:hover{ background:rgba(30,62,90,.07); }

/* Pannello decorativo: monitoraggio e segnali OSINT (nessun dato reale) */
.hm-mock{
  background:var(--hm-dark); border-radius:14px; padding:14px 16px 16px;
  box-shadow:0 14px 40px rgba(9,30,50,.30); border:1px solid #17324a;
}
.hm-mock-top{ display:flex; align-items:center; gap:7px; padding-bottom:10px; margin-bottom:12px; border-bottom:1px solid #1d3a55; }
.hm-mock-top b{ margin-left:auto; color:#9fbed6; font-size:12px; letter-spacing:2px; }
.hm-dot{ width:9px; height:9px; border-radius:50%; background:#2b5375; display:inline-block; }

.hm-osint{
  position:relative; height:196px; border-radius:10px; overflow:hidden;
  background-color:#0e2033;
  background-image:
    radial-gradient(circle at 61% 44%, rgba(0,170,255,.20), transparent 44%),
    linear-gradient(rgba(45,90,130,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,90,130,.16) 1px, transparent 1px);
  background-size:auto, 22px 22px, 22px 22px;
}
.hm-osint svg{ position:absolute; inset:0; width:100%; height:100%; }
.hm-links path{ fill:none; stroke:#2b5375; stroke-width:1.4; }
.hm-nodi circle{ fill:#7fd7f2; }
.hm-nodi .hm-hot{ fill:var(--hm-accent); }
.hm-pulse{
  position:absolute; left:61.25%; top:44%; width:10px; height:10px; margin:-5px 0 0 -5px;
  border-radius:50%; background:rgba(0,170,255,.55);
  box-shadow:0 0 0 0 rgba(0,170,255,.55); animation:hmPulse 2.6s ease-out infinite;
}
@keyframes hmPulse{
  0%{ box-shadow:0 0 0 0 rgba(0,170,255,.55); }
  70%{ box-shadow:0 0 0 24px rgba(0,170,255,0); }
  100%{ box-shadow:0 0 0 0 rgba(0,170,255,0); }
}

.hm-alert{ display:flex; align-items:flex-end; gap:10px; margin-top:12px; padding-top:10px; border-top:1px solid #1d3a55; }
.hm-led{ width:9px; height:9px; border-radius:50%; background:#43d17a; box-shadow:0 0 8px #43d17a; animation:hmLed 1.8s ease-in-out infinite; }
@keyframes hmLed{ 0%,100%{ opacity:.35 } 50%{ opacity:1 } }
.hm-bars{ display:flex; align-items:flex-end; gap:3px; height:22px; flex:1; }
.hm-bars i{ flex:1; border-radius:2px 2px 0 0; background:linear-gradient(180deg,#7fd7f2,#2b5375); height:30%; animation:hmBars 1.5s ease-in-out infinite; }
.hm-bars i:nth-child(2){ animation-delay:.15s; }
.hm-bars i:nth-child(3){ animation-delay:.30s; }
.hm-bars i:nth-child(4){ animation-delay:.45s; }
.hm-bars i:nth-child(5){ animation-delay:.60s; }
.hm-bars i:nth-child(6){ animation-delay:.75s; }
.hm-bars i:nth-child(7){ animation-delay:.90s; }
@keyframes hmBars{ 0%,100%{ height:22% } 50%{ height:100% } }

@media (prefers-reduced-motion: reduce){
  .hm-pulse,.hm-led,.hm-bars i{ animation:none; }
  .hm-bars i{ height:55%; }
}

/* ------------------------------- SEZIONI ---------------------------------- */
.hm-sec{ padding:60px 0; scroll-margin-top:220px; }
/* Nota informativa sotto i passi della home (regola aggiornamenti 90 giorni) */
.hm-nota{ margin:18px 0 0; padding:12px 16px; border-left:4px solid var(--hm-accent); border-radius:8px;
  background:rgba(0,170,255,.06); color:var(--hm-text); font-size:14px; line-height:1.5; }

.hm-sec h2{ color:var(--hm-titolo); font-size:1.6rem; margin:0 0 22px; letter-spacing:-.2px; }

/* Testo d'effetto della sezione "Cosa puoi fare" (al posto dei pulsanti ripetuti) */
.hm-slogan{
  margin:0; padding:24px 28px; border-radius:14px; max-width:900px;
  background:linear-gradient(120deg, rgba(0,170,255,.10), rgba(0,170,255,.02));
  border-left:5px solid var(--hm-accent);
  font-size:clamp(1.35rem,3vw,2.05rem); line-height:1.28; font-weight:700;
  color:var(--hm-titolo); letter-spacing:-.4px;
}
.hm-alt{ background:linear-gradient(120deg,var(--hm-dark),var(--hm-mid)); }
.hm-alt h2{ color:var(--hm-accent); }
.hm-alt{ color:#eaf3fb; }

/* Schede funzioni */
.hm-griglia{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.hm-scheda{
  position:relative; display:block; text-decoration:none; color:inherit;
  background:var(--hm-card); border:1px solid var(--hm-line); border-left:4px solid var(--hm-accent);
  border-radius:12px; padding:18px 20px 18px 22px; font-size:14.5px; line-height:1.55;
  box-shadow:0 2px 8px rgba(9,30,50,.06);
  transition:transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.hm-scheda b{ display:block; font-size:16px; margin-bottom:5px; color:var(--hm-titolo); }
.hm-scheda:hover{ transform:translateY(-4px); box-shadow:0 10px 26px rgba(9,30,50,.12); background:#f5fbff; }
.hm-freccia{ position:absolute; top:16px; right:18px; color:var(--hm-accent); font-size:18px; }

/* Garanzie (sezione scura): schede traslucide */
.hm-garanzie{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px;
}
.hm-garanzie li{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2);
  border-radius:10px; padding:15px 18px; font-size:14px; line-height:1.55; color:#eaf3fb;
}
.hm-garanzie b{ color:var(--hm-accent); }

/* Passi */
.hm-passi{ list-style:none; counter-reset:hm; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.hm-passi li{
  counter-increment:hm; position:relative; background:var(--hm-card);
  border:1px solid var(--hm-line); border-radius:12px; padding:18px 18px 18px 58px;
  font-size:14.5px; line-height:1.55; box-shadow:0 2px 8px rgba(9,30,50,.06);
}
.hm-passi li::before{
  content:counter(hm); position:absolute; left:16px; top:16px;
  width:28px; height:28px; border-radius:50%; background:var(--hm-accent); color:#04222f;
  font-weight:700; font-size:14px; display:flex; align-items:center; justify-content:center;
}

/* Liste informative chiare (bisogni/problemi, standard): schede su sfondo chiaro */
.hm-lista{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px;
}
.hm-lista li{
  background:var(--hm-card); border:1px solid var(--hm-line); border-left:4px solid var(--hm-accent);
  border-radius:12px; padding:15px 18px; font-size:14px; line-height:1.55;
  box-shadow:0 2px 8px rgba(9,30,50,.05);
}
.hm-lista b{ color:var(--hm-titolo); }
.hm-tint{ background:#eef5fb; }
.hm-nota{
  margin:18px 0 0; font-size:14.5px; line-height:1.6; text-align:center;
  color:var(--hm-mid); font-weight:600;
}

/* Riquadro in evidenza: intelligenza artificiale e monitoraggio continuo */
.hm-ai{
  background:linear-gradient(120deg,var(--hm-dark),var(--hm-mid));
  color:#eaf3fb; border-radius:16px; padding:28px 30px;
  box-shadow:0 12px 34px rgba(9,30,50,.22); border:1px solid #17324a;
}
.hm-ai h2{ color:var(--hm-accent); margin:0 0 12px; font-size:1.5rem; }
.hm-ai p{ margin:0; font-size:16px; line-height:1.7; color:#eaf3fb; }

/* ------------------------------- FOOTER ----------------------------------- */
.hm-footer{ background:var(--hm-mid); color:#d8e3ec; padding:38px 0; font-size:13.5px; }
.hm-footer a{ color:var(--hm-accent); text-decoration:none; }
.hm-footer a:hover{ text-decoration:underline; }
.hm-footer-in{ display:flex; flex-wrap:wrap; gap:8px 24px; align-items:center; justify-content:space-between; text-align:center; }

/* ------------------------------ RESPONSIVE -------------------------------- */
@media (max-width:900px){
  .hm-hero{ padding:44px 0 40px; }
  .hm-hero-griglia{ grid-template-columns:1fr; gap:30px; }
  .hm-hero h1{ font-size:1.75rem; }
  .hm-griglia, .hm-garanzie, .hm-lista{ grid-template-columns:1fr; }
  .hm-passi{ grid-template-columns:1fr; }
}

/* Da tablet/telefono: logo ancora più grande e scostamento sezioni */
@media (max-width:820px){
  .hm-header-in{ padding:10px 0; }
  .hm-marchio img{ height:92px; }
  .hm-sec{ scroll-margin-top:180px; }
}

@media (max-width:520px){
  .hm-cta{ width:100%; }
  .hm-hero h1{ font-size:1.55rem; }
  .hm-marchio img{ height:80px; }
}
