/* Noveko Products — site stylesheet */

:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --teal: #6E459B;       /* accento primario — viola del logo Noveko */
  --teal-2: #639D72;     /* accento secondario — verde del logo Noveko */
  --teal-dark: #573A7D;  /* viola scuro — hover/testo su sfondo chiaro */
  --cyan: #7E5CAD;       /* viola chiaro */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --accent: #FF7A00;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Navigation */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-dot {
  width: 12px; height: 12px;
  background: var(--teal-2);
  border-radius: 3px;
  display: inline-block;
}
.logo-img { height: 32px; width: auto; max-width: 180px; display: block; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  padding: 80px 0 100px;
  text-align: center;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 24px;
}
.hero h1 .accent { color: var(--teal); }
.hero p.lead {
  font-size: 20px;
  color: var(--gray-500);
  max-width: 720px;
  margin: 0 auto 36px;
}
.hero .cta-group { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white) !important;
}
.btn-primary:hover { background: var(--teal); }
.btn-secondary {
  background: var(--white);
  color: var(--navy) !important;
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover { border-color: var(--navy); }

/* Sections */
.section { padding: 80px 0; }
.section-light { background: var(--gray-50); }
.section-dark { background: var(--navy); color: var(--gray-200); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-title p {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 720px;
  margin: 0 auto;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--teal-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}
.product-icon.docu { background: linear-gradient(135deg, #0EA5E9, #0F766E); }
.product-icon.vend { background: linear-gradient(135deg, #8B5CF6, #6366F1); }
.product-icon.sign { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.product-icon.priv { background: linear-gradient(135deg, #10B981, #0EA5E9); }
.product-icon.echo { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.product-icon.field { background: linear-gradient(135deg, #F97316, #EAB308); }
.product-icon.pulse { background: linear-gradient(135deg, #06B6D4, #14B8A6); }
.product-icon.tenancy { background: linear-gradient(135deg, #6366F1, #0F172A); }
.product-icon.suite { background: linear-gradient(135deg, #0F766E, #1E293B); }

.product-card h3 {
  font-size: 22px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}
.product-card .tagline {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.product-card p { font-size: 15px; color: var(--gray-500); flex-grow: 1; }
.product-card .product-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  color: var(--navy);
}
.product-card .product-link:hover { color: var(--teal); }
.product-card .product-link::after { content: ' →'; transition: transform 0.15s ease; }

/* Bundles */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 800px) { .bundle-grid { grid-template-columns: 1fr; } }
.bundle-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  gap: 24px;
}
.bundle-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}
.bundle-card h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}
.bundle-card .modules {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.bundle-card p { color: var(--gray-500); font-size: 15px; }

/* About */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 50px;
}
@media (max-width: 700px) { .about-stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  text-align: center;
  padding: 28px 20px;
  background: var(--gray-50);
  border-radius: 14px;
}
.stat .number {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Contact */
.contact {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
}
.contact h2 { color: var(--white); font-size: 38px; margin-bottom: 16px; }
.contact p { color: rgba(255, 255, 255, 0.85); font-size: 18px; margin-bottom: 32px; }
.contact .btn-primary { background: var(--white); color: var(--navy) !important; }
.contact .btn-primary:hover { background: var(--gray-100); }

/* Footer */
.footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--gray-300); font-size: 14px; }
.footer ul a:hover { color: var(--teal-2); }
.footer .brand-blurb { color: var(--gray-300); font-size: 14px; }
.footer-bottom {
  border-top: 1px solid var(--navy-2);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

/* Product page specific */
.product-hero {
  background: var(--gray-50);
  padding: 80px 0 60px;
}
.product-hero .badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 24px;
}
.product-hero h1 {
  font-size: 64px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -2px;
  margin-bottom: 16px;
}
.product-hero .tagline-big {
  font-size: 22px;
  color: var(--gray-500);
  max-width: 720px;
  margin-bottom: 32px;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}
@media (max-width: 800px) { .feature-list { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
}
.feature-card .icon {
  width: 36px; height: 36px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}
.feature-card h4 { color: var(--navy); margin-bottom: 8px; }
.feature-card p { color: var(--gray-500); font-size: 15px; }

.pricing-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 480px;
  margin: 40px auto 0;
}
.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
}
.pricing-card .price small { font-size: 18px; color: var(--gray-500); font-weight: 500; }
.pricing-card .price-label {
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ============ Revisione farmacia: nuovi componenti ============ */

/* Icona servizio (emoji) su card riuso .product-card */
.product-icon.svc { background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); font-size: 22px; }
.product-icon.svc2 { background: linear-gradient(135deg, var(--teal-2) 0%, var(--teal) 100%); font-size: 22px; }

/* Pilastri (perché Noveko) */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 26px; }
.pillar .p-icon { font-size: 26px; margin-bottom: 12px; }
.pillar h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.pillar p { font-size: 14px; color: var(--gray-500); }

/* Regioni servite */
.region-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.region { background: var(--white); border: 1px solid var(--gray-200); border-radius: 100px; padding: 10px 20px; font-weight: 600; color: var(--navy); font-size: 15px; }
.region::before { content: '📍 '; }

/* Checklist benefici */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--gray-700); font-size: 16px; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--teal); color: #fff; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Griglia 2 colonne generica (pain points, testo+box) */
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .col-2 { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ (usa <details>, nessun JS) */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--gray-500); font-size: 15px; padding: 0 0 16px; }

/* Calcolatore */
.calc-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .calc-wrap { grid-template-columns: 1fr; gap: 24px; } }
.calc-field { margin-bottom: 18px; }
.calc-field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.calc-field input, .calc-field select { width: 100%; padding: 11px 13px; border: 1px solid var(--gray-200); border-radius: 8px; font-family: inherit; font-size: 15px; color: var(--navy); }
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(110,69,155,0.12); }
.calc-field .hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.calc-result { background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%); color: #fff; border-radius: 14px; padding: 28px; align-self: stretch; }
.calc-result .big { font-size: 44px; font-weight: 800; line-height: 1.05; margin: 4px 0 2px; }
.calc-result .big small { font-size: 18px; font-weight: 600; opacity: .85; }
.calc-result .rlabel { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }
.calc-result .rrow { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 15px; }
.calc-result .rrow:last-of-type { border-bottom: none; }
.calc-result .eco { background: rgba(255,255,255,.12); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 16px; }
.calc-disclaimer { font-size: 12px; color: var(--gray-500); margin-top: 14px; text-align: center; }

/* ---------- Cookie consent banner ---------- */
.nk-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; background: var(--navy, #0b1a3b); color: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.nk-consent-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px 22px; max-width: 1200px; margin: 0 auto; }
.nk-consent-text { flex: 1 1 320px; min-width: 260px; }
.nk-consent-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.nk-consent-text p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.82); }
.nk-consent-text a { color: #fff; text-decoration: underline; }
.nk-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.nk-btn { font: inherit; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 8px; border: none; cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.nk-btn-primary { background: var(--teal, #6E459B); color: #fff; }
.nk-btn-primary:hover { background: var(--teal-dark, #573A7D); }
.nk-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.nk-btn-ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 640px) {
  .nk-consent { left: 8px; right: 8px; bottom: 8px; }
  .nk-consent-inner { padding: 16px; }
  .nk-consent-actions { width: 100%; }
  .nk-consent-actions .nk-btn { flex: 1; }
}
