/* =========================================================
   emmeci system — stile del sito
   Palette coerente con il materiale aziendale (brochure)
   ========================================================= */

:root {
  --navy: #12324F;
  --navy-dark: #0B2338;
  --teal: #0E7C86;
  --teal-dark: #0A5F67;
  --gold: #C89B3C;
  --light-bg: #F2F6F7;
  --white: #FFFFFF;
  --grey-txt: #3D4A52;
  --grey-soft: #7C8B92;
  --line: #D7E1E4;
  --danger: #B3261E;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(18, 50, 79, 0.08);
  --shadow-lg: 0 12px 32px rgba(18, 50, 79, 0.14);
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-txt);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.lead {
  font-size: 1.1rem;
  color: var(--grey-txt);
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--teal-dark);
  background: rgba(14,124,134,0.09);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .96rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }

.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: .96rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--light-bg);
  color: var(--teal-dark);
  text-decoration: none;
}

.header-cta { display: none; }

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 0; }
.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--navy);
  font-weight: 600;
}
.mobile-nav a[aria-current="page"] { color: var(--teal-dark); }
.mobile-nav .header-cta-mobile { padding: 10px 20px 16px; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f4a5c 60%, var(--teal-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(200,155,60,0.25), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 64px 0 70px;
  display: grid;
  gap: 34px;
}
.hero p.lead { color: rgba(255,255,255,0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .85rem;
  color: #fff;
}
.hero-badge svg { width: 16px; height: 16px; flex: none; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 92px 0 100px; }
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art .ring-graphic { width: min(320px, 80%); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--light-bg); }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(14,124,134,0.1);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol { padding-left: 1.1em; margin: 0; }
.card li { margin-bottom: 6px; }
.card ol.steps li { margin-bottom: 14px; padding-left: 4px; }
.card ol.steps li:last-child { margin-bottom: 0; }

/* ---------- Download card (assistenza remota) ---------- */
.download-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0f4a5c 60%, var(--teal-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
}
.download-card h3 { color: #fff; }
.download-card p { color: rgba(255,255,255,0.85); }
.download-card .field-hint { color: rgba(255,255,255,0.65); }
.download-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.download-card .icon svg { width: 24px; height: 24px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 700px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-item .num { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.trust-item .lbl { font-size: .92rem; color: var(--grey-soft); }

/* ---------- CTA banda ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2, .cta-band p { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 0; }

/* ---------- Tabelle di confronto ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 480px; }
table.compare th, table.compare td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .95rem;
}
table.compare th { background: var(--light-bg); color: var(--navy); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .92rem; }
.field-hint { font-size: .82rem; color: var(--grey-soft); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: .97rem;
  color: var(--grey-txt);
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(14,124,134,0.25);
  border-color: var(--teal);
}
textarea { resize: vertical; min-height: 130px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; }
.consent-row input { width: auto; margin-top: 4px; }
.consent-row label { font-weight: 400; color: var(--grey-txt); margin: 0; font-size: .9rem; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; }
.form-note { font-size: .85rem; color: var(--grey-soft); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: .92rem; display: none; }
.form-status.ok { display: block; background: rgba(30,122,76,0.12); color: #1E7A4C; }
.form-status.err { display: block; background: rgba(179,38,30,0.1); color: var(--danger); }

/* ---------- Contact info cards ---------- */
.contact-info { display: grid; gap: 16px; }
.contact-info .card { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .icon { flex: none; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--light-bg); border-top: 1px solid var(--line); padding: 46px 0 24px; }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 30px;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--grey-txt); }
.footer-brand img { height: 30px; margin-bottom: 12px; }
.footer-brand p { color: var(--grey-soft); font-size: .9rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--grey-soft);
}
.footer-bottom a { color: var(--grey-soft); }

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: var(--light-bg);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.page-header .eyebrow { background: rgba(18,50,79,0.08); color: var(--navy); }

/* ---------- Misc ---------- */
.severity-list { display: grid; gap: 10px; }
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(14,124,134,0.12);
  color: var(--teal-dark);
}
hr.soft { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- Utility classes (kept out of inline style="" for a strict CSP) ---------- */
.hero .eyebrow-invert { background: rgba(255,255,255,0.12); color: #fff; }
.hero h1 { color: #fff; }
.container-narrow { max-width: 820px; }
.notice-card { background: rgba(179,38,30,0.06); border-color: rgba(179,38,30,0.25); margin-bottom: 32px; }
.notice-card p { margin: 0; color: var(--grey-txt); }
.list-plain { list-style: none; padding: 24px; }
.list-plain li { margin-bottom: 14px; }
.list-plain li:last-child { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mb-20 { margin-bottom: 20px; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.section-pad-center { padding: 90px 0; text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
