/* ==========================================================================
   FireGuard — fireguard.it
   Prodotto Tirrena Sistemi S.r.l.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colore */
  --fg-dark:      #171512;
  --fg-dark-2:    #1f1c18;
  --fg-panel:     #F4F2EF;
  --fg-panel-2:   #ffffff;
  --fg-orange:    #E2571F;
  --fg-orange-2:  #C7480F;
  --fg-ink:       #141414;
  --fg-muted:     #8C877E;
  --fg-muted-2:   #B7B2A8;
  --fg-line:      #e4e1db;
  --fg-line-dark: rgba(255,255,255,0.12);
  --fg-white:     #ffffff;

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg-ink);
  background: var(--fg-panel-2);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Eyebrow label — piccola etichetta maiuscola con lineetta sopra */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  position: relative;
  padding-top: 12px;
  margin-bottom: 18px;
  display: inline-block;
}
.eyebrow::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px;
  height: 2px;
  background: var(--fg-orange);
}
.eyebrow.on-dark { color: var(--fg-muted-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--fg-orange);
  color: var(--fg-white);
}
.btn-primary:hover { background: var(--fg-orange-2); }
.btn-ghost-dark {
  background: transparent;
  color: var(--fg-white);
  border: 1px solid var(--fg-line-dark);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.35); }
.btn-ghost-light {
  background: transparent;
  color: var(--fg-ink);
  border: 1px solid var(--fg-line);
}
.btn-ghost-light:hover { border-color: var(--fg-ink); }
.btn-block { width: 100%; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 21, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fg-line-dark);
}
.nav .wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--fg-white);
  text-transform: uppercase;
}
.brand .flame { width: 20px; height: 20px; flex-shrink: 0; }
.brand-payoff {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-muted-2);
  text-transform: none;
  letter-spacing: 0.01em;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--fg-line-dark);
  display: none;
}
@media (min-width: 720px) { .brand-payoff { display: inline; } }

.nav-links {
  display: none;
  gap: 34px;
  font-size: 14px;
  color: var(--fg-muted-2);
}
@media (min-width: 920px) { .nav-links { display: flex; } }
.nav-links a:hover { color: var(--fg-white); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta a.login-link {
  font-size: 13px;
  color: var(--fg-muted-2);
  display: none;
}
@media (min-width: 720px) { .nav-cta a.login-link { display: inline; } }
.nav-cta .btn { padding: 11px 20px; font-size: 12.5px; }

/* ==========================================================================
   Hero — split screen
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 640px;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr 1fr; }
}

.hero-visual {
  background: var(--fg-dark);
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px 32px 40px;
  color: var(--fg-white);
  overflow: hidden;
}
.hero-visual .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,12,12,0.98) 0%, rgba(10,12,12,0.94) 42%, rgba(10,12,12,0.65) 70%, rgba(10,12,12,0.28) 100%);
  z-index: 0;
}
.hero-visual > * { position: relative; z-index: 1; }

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted-2);
  margin-bottom: 16px;
}
.hero-visual h1 {
  font-size: clamp(30px, 4vw, 42px);
  color: var(--fg-white);
  max-width: 480px;
  margin-bottom: 18px;
}
.hero-visual p {
  max-width: 420px;
  color: rgba(255,255,255,0.78);
  font-size: 15.5px;
  margin-bottom: 0;
}
.hero-foot {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-foot .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--fg-orange); }

.hero-panel {
  background: var(--fg-panel);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-panel h2 {
  font-size: 27px;
  margin-bottom: 22px;
}
.field { margin-bottom: 18px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 8px;
  border-top: 1px solid var(--fg-line);
  padding-top: 8px;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--fg-line);
  border-radius: 3px;
  background: var(--fg-panel-2);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--fg-ink);
}
.field input::placeholder { color: #b3ada2; font-family: var(--font-mono); font-size: 13px; }
.field input:focus { outline: 2px solid var(--fg-orange); outline-offset: 1px; border-color: var(--fg-orange); }

.hero-panel-lead {
  color: #57534a;
  font-size: 14.5px;
  margin: -6px 0 24px;
}
.hero-secondary-cta {
  margin-top: 10px;
}
.hero-panel-note {
  margin-top: 34px;
}
.hero-panel-note .eyebrow { margin-bottom: 14px; }
.role-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.role-mini-list li {
  font-size: 13.5px;
  color: #57534a;
  padding: 10px 0;
  border-top: 1px solid var(--fg-line);
}
.role-mini-list li:first-child { border-top: none; }

/* ==========================================================================
   Sezioni generiche
   ========================================================================== */
section { padding: 96px 0; }
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 14px;
}
.section-head p {
  color: #57534a;
  font-size: 16px;
  margin: 0;
}
.section-dark { background: var(--fg-dark); color: var(--fg-white); }
.section-dark .section-head p { color: rgba(255,255,255,0.62); }
.section-alt { background: var(--fg-panel); }

/* ---- Problema ---- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--fg-line);
  border: 1px solid var(--fg-line);
}
@media (min-width: 760px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }
.problem-item {
  background: var(--fg-white);
  padding: 32px 28px;
}
.problem-item .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-orange);
  margin-bottom: 14px;
  display: block;
}
.problem-item h3 { font-size: 18px; margin-bottom: 10px; }
.problem-item p { color: #6b675e; font-size: 14.5px; margin: 0; }

/* ---- Moduli ---- */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) { .modules-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .modules-grid { grid-template-columns: repeat(3, 1fr); } }

.module-card {
  border: 1px solid var(--fg-line);
  border-radius: 4px;
  padding: 28px 26px;
  background: var(--fg-white);
  position: relative;
  transition: border-color .15s ease, transform .15s ease;
}
.module-card:hover { border-color: var(--fg-orange); transform: translateY(-2px); }
.module-icon {
  width: 38px; height: 38px;
  border-radius: 3px;
  background: var(--fg-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.module-icon svg { width: 18px; height: 18px; stroke: var(--fg-orange); }
.module-card h3 { font-size: 17px; margin-bottom: 10px; }
.module-card p { font-size: 14px; color: #6b675e; margin: 0; }
.module-card.wide { grid-column: span 1; }

/* ---- Percorso / signature route line ---- */
.route-rail {
  position: relative;
  padding-left: 30px;
}
.route-rail::before {
  content: '';
  position: absolute;
  left: 4px; top: 6px; bottom: 6px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--fg-orange) 0 4px, transparent 4px 9px);
}
.route-point {
  position: relative;
  padding-bottom: 46px;
}
.route-point:last-child { padding-bottom: 0; }
.route-point::before {
  content: '';
  position: absolute;
  left: -30px; top: 3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--fg-panel);
  border: 2px solid var(--fg-orange);
}
.route-point h4 { font-size: 16px; margin-bottom: 6px; }
.route-point p { font-size: 14px; color: #6b675e; margin: 0; max-width: 480px; }
.route-point .time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-orange);
  display: block;
  margin-bottom: 6px;
}

/* ---- Ruoli / accessi ---- */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .roles-grid { grid-template-columns: 1fr 1fr; } }
.role-card {
  background: var(--fg-dark-2);
  border: 1px solid var(--fg-line-dark);
  border-radius: 4px;
  padding: 30px 28px;
}
.role-card .role-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-orange);
  margin-bottom: 12px;
  display: block;
}
.role-card h3 { color: var(--fg-white); font-size: 19px; margin-bottom: 12px; }
.role-card ul { margin: 0; padding: 0; list-style: none; }
.role-card li {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  padding: 8px 0;
  border-top: 1px solid var(--fg-line-dark);
}
.role-card li:first-child { border-top: none; }

/* ---- Mobile ---- */
.mobile-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}
@media (min-width: 900px) { .mobile-section { grid-template-columns: 1fr 1fr; } }
.phone-mock {
  background: var(--fg-dark);
  border-radius: 22px;
  padding: 10px;
  max-width: 300px;
  border: 1px solid var(--fg-line-dark);
  box-shadow: 0 30px 60px -20px rgba(23,21,18,0.35);
}
.phone-screen {
  background: var(--fg-panel-2);
  border-radius: 14px;
  padding: 20px 18px;
  min-height: 420px;
}
.phone-screen .ps-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.phone-screen .ps-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.stop-card {
  background: var(--fg-white);
  border: 1px solid var(--fg-line);
  border-radius: 6px;
  padding: 12px 13px;
  margin-bottom: 10px;
}
.stop-card .stop-time { font-family: var(--font-mono); font-size: 11px; color: var(--fg-orange); }
.stop-card .stop-name { font-size: 13.5px; font-weight: 600; margin: 3px 0 2px; }
.stop-card .stop-addr { font-size: 12px; color: var(--fg-muted); }
.stop-card.active { border-color: var(--fg-orange); background: #FFF6F1; }

/* ---- Integrazione ---- */
.integration-band {
  border: 1px solid var(--fg-line);
  border-radius: 6px;
  background: var(--fg-panel);
  padding: 40px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.integration-band .be-mark {
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--fg-line);
  border-radius: 3px;
  padding: 8px 14px;
  background: var(--fg-white);
  color: var(--fg-ink);
}
.integration-list { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.integration-list span {
  font-size: 13.5px;
  color: #57534a;
  display: flex; align-items: center; gap: 8px;
}
.integration-list span::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--fg-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- CTA finale ---- */
.cta-section { padding: 100px 0; }
.cta-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}
@media (min-width: 900px) { .cta-box { grid-template-columns: 1fr 0.9fr; } }
.cta-copy h2 { color: var(--fg-white); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.cta-copy p { color: rgba(255,255,255,0.62); font-size: 15.5px; max-width: 420px; }
.cta-form {
  background: var(--fg-panel);
  border-radius: 6px;
  padding: 34px;
}
.cta-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .cta-form .row { grid-template-columns: 1fr; } }
.form-msg { font-size: 13.5px; margin-top: 14px; display: none; padding: 12px 14px; border-radius: 3px; }
.form-msg.ok { display: block; background: #EAF7EE; color: #1E6B37; }
.form-msg.err { display: block; background: #FCEBEA; color: #A32A20; }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row .cq { font-family: var(--font-mono); font-size: 13.5px; color: var(--fg-ink); white-space: nowrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--fg-dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 28px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--fg-line-dark);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 300px; color: rgba(255,255,255,0.48); line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col p, .footer-col a {
  display: block;
  color: rgba(255,255,255,0.62);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--fg-white); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
}
.footer-bottom strong { color: rgba(255,255,255,0.55); font-weight: 500; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero-panel { padding: 44px 24px; }
  .wrap { padding: 0 20px; }
}
