/* ============================================================
   ICCOM Connect — Shared Design System CSS
   Based on ICCOM portal-shared.css design tokens
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&family=Quicksand:wght@500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --navy:        #13263F;
  --blue:        #299BD5;   /* PRIMARY CTA */
  --iccom-blue:  #299BD5;
  --connect:     #8B5CF6;   /* Connect accent (badges, icons only) */
  --green:       #27AE60;
  --red:         #E74C3C;
  --orange:      #F39C12;
  --purple:      #8E44AD;
  --white:       #FFFFFF;
  --light:       #F4F7FA;
  --border:      #E0E6ED;
  --mid:         #7F8C8D;
  --dark:        #2C3E50;

  --font:         'Nunito Sans', 'Quicksand', -apple-system, sans-serif;
  --font-display: 'Quicksand', 'Nunito Sans', sans-serif;

  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --shadow:    0 4px 12px rgba(0,0,0,0.08);

  /* Legacy compat aliases */
  --violet:       #8B5CF6;
  --violet-dark:  #7C3AED;
  --violet-light: #EDE9FE;
  --teal:         #2BC4C3;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

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

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__back {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.site-header__back:hover { color: var(--blue); }

.site-header__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-right: auto;
}
.site-header__logo span { color: var(--connect); }

.site-header__nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-header__nav a {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-header__nav a:hover { color: var(--white); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 40px 0 24px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.site-footer__links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.site-footer__links a:hover { color: var(--blue); }
.site-footer p { margin: 5px 0; line-height: 1.5; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #1e88c0;
  border-color: #1e88c0;
  box-shadow: 0 6px 20px rgba(41,155,213,0.35);
}

.btn-secondary {
  background: var(--light);
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: #e4eaf3;
  border-color: #c5d0dd;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-sm  { padding: 8px 16px; font-size: 13px; }
.btn-lg  { padding: 15px 32px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section     { padding: 72px 0; }
.section-alt { background: var(--light); }

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.section-subtitle {
  font-size: 16px;
  color: var(--mid);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 50%, #0d3455 100%);
  color: var(--white);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(41,155,213,0.14) 0%, transparent 70%);
  border-radius: 50%;
  top: -180px;
  right: -80px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(139,92,246,0.10) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -130px;
  left: 8%;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
  max-width: 600px;
}
.hero-tag {
  display: inline-block;
  background: rgba(41,155,213,0.18);
  border: 1px solid rgba(41,155,213,0.35);
  color: #a8d8f0;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero .subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-display);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  transition: all 0.22s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(41,155,213,0.15);
}
.card-accent { border-top-color: var(--connect); }
.card-accent:hover { box-shadow: 0 12px 32px rgba(139,92,246,0.15); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(41,155,213,0.10);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card-accent .card-icon {
  background: rgba(139,92,246,0.10);
  color: var(--connect);
}
.card h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
  font-family: var(--font-display);
}
.card p { font-size: 14px; color: var(--mid); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: all 0.22s;
  position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.price-card.featured { border-color: var(--blue); }

.price-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.price-header {
  padding: 28px 24px 16px;
  text-align: center;
  background: var(--light);
}
.price-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.price-amount {
  font-size: 30px;
  font-weight: 800;
  color: var(--blue);
  margin: 8px 0;
  font-family: var(--font-display);
}
.price-amount small {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  display: block;
}
.price-body { padding: 24px; }
.price-feature {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--dark);
  border-bottom: 1px solid #f0f2f5;
  align-items: flex-start;
}
.price-feature:last-child { border-bottom: none; }
.price-feature .check { color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   HOW IT WORKS / STEPS
   ============================================================ */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step { text-align: center; position: relative; }
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin: 0 auto 20px;
  font-family: var(--font-display);
}
.step h4 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
  font-family: var(--font-display);
}
.step p { font-size: 13px; color: var(--mid); }
.step::after {
  content: '→';
  position: absolute;
  right: -28px;
  top: 14px;
  font-size: 22px;
  color: var(--blue);
  font-weight: 300;
}
.step:last-child::after { display: none; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}
.testimonial-text {
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 16px;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-author { font-size: 14px; font-weight: 700; color: var(--navy); }
.testimonial-role { font-size: 12px; color: var(--mid); margin-top: 2px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { margin-bottom: 12px; }
.faq-question {
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  border: 1px solid var(--border);
  font-family: var(--font-display);
}
.faq-question:hover { background: rgba(41,155,213,0.05); border-color: var(--blue); }
.faq-toggle { font-size: 18px; transition: transform 0.25s; color: var(--blue); flex-shrink: 0; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-answer {
  display: none;
  background: var(--light);
  padding: 14px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
}
.faq-item.active .faq-answer { display: block; }

/* ============================================================
   DASHBOARD / KPI
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.dashboard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
}
.kpi-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
}

/* ============================================================
   TABLE
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  background: var(--light);
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--border);
  font-family: var(--font-display);
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.table tbody tr:hover { background: var(--light); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  font-family: var(--font-display);
}
.form-input,
.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus { border-color: var(--blue); }
.form-select { appearance: none; cursor: pointer; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-ok       { background: rgba(39,174,96,0.12);   color: var(--green); }
.badge-info     { background: rgba(41,155,213,0.12);  color: var(--blue); }
.badge-high     { background: rgba(243,156,18,0.12);  color: var(--orange); }
.badge-critical { background: rgba(231,76,60,0.12);   color: var(--red); }
.badge-connect  { background: rgba(139,92,246,0.12);  color: var(--connect); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert-info, .alert-success, .alert-error {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-info    { background: rgba(41,155,213,0.10);  border-left: 4px solid var(--blue);   color: #1a6186; }
.alert-success { background: rgba(39,174,96,0.10);   border-left: 4px solid var(--green);  color: #1a6638; }
.alert-error   { background: rgba(231,76,60,0.10);   border-left: 4px solid var(--red);    color: #922b21; }

/* ============================================================
   CTA SECTION (full-width dark)
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3455 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   CROSS-SELL / INLINE BANNER
   ============================================================ */
.cross-sell {
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius-xl);
  margin-top: 48px;
  text-align: center;
}
.cross-sell h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.cross-sell p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }

/* ============================================================
   CODE BLOCKS
   ============================================================ */
.code-container {
  background: var(--dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}
.code-header {
  background: rgba(0,0,0,0.3);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.code-lang { font-size: 12px; font-weight: 700; color: var(--blue); }
.code-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 4px 12px;
  background: rgba(41,155,213,0.18);
  border-radius: 4px;
  transition: all 0.2s;
  border: none;
}
.code-copy:hover { background: var(--blue); color: var(--white); }
.code-body { padding: 20px; overflow-x: auto; }
.code-example {
  color: #c9d9e8;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
}
.code-example p { margin: 3px 0; }

/* ============================================================
   API TABS
   ============================================================ */
.tab-buttons, .api-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}
.tab-button, .api-tab {
  padding: 11px 20px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  font-family: var(--font);
}
.tab-button:hover, .api-tab:hover { border-bottom-color: var(--blue); }
.tab-button.active, .api-tab.active { border-bottom-color: var(--blue); color: var(--blue); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   ENDPOINT BLOCKS
   ============================================================ */
.endpoint {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}
.endpoint-method {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
  letter-spacing: 0.5px;
}
.endpoint-method.get  { background: var(--blue); }
.endpoint-method.post { background: var(--green); }
.endpoint-method.put  { background: var(--orange); }
.endpoint-path {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 8px;
}
.endpoint h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.endpoint p { font-size: 13px; color: var(--mid); }

/* ============================================================
   SANDBOX BOX
   ============================================================ */
.sandbox-box {
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}
.sandbox-box h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.sandbox-box p { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 20px; }

/* ============================================================
   PLAN CARDS (piani page)
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.plan-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(41,155,213,0.15); }
.plan-card.featured { border-top-color: var(--connect); }
.plan-badge {
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--connect);
  color: var(--white);
  padding: 4px 40px;
  font-size: 10px;
  font-weight: 800;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}
.plan-header {
  padding: 28px 20px 16px;
  text-align: center;
  background: var(--light);
}
.plan-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.plan-segment { font-size: 11px; color: var(--mid); font-weight: 700; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 0.4px; }
.plan-price { font-size: 27px; font-weight: 800; color: var(--blue); margin: 8px 0; font-family: var(--font-display); }
.plan-price small { font-size: 12px; font-weight: 400; color: var(--mid); display: block; }
.plan-body { padding: 20px; flex-grow: 1; }
.plan-feature {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--dark);
  border-bottom: 1px solid #f0f2f5;
  align-items: flex-start;
}
.plan-feature:last-child { border-bottom: none; }
.plan-feature .check { color: var(--green); font-weight: 700; flex-shrink: 0; font-size: 14px; }
.plan-footer { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.plan-cta {
  display: block;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.plan-cta.primary { background: var(--blue); color: var(--white); }
.plan-cta.primary:hover { background: #1e88c0; }
.plan-cta.secondary { background: var(--light); color: var(--navy); }
.plan-cta.secondary:hover { background: #dde3ea; }

/* ============================================================
   ZONE CARDS (esim page)
   ============================================================ */
.zones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.zone-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: all 0.22s;
}
.zone-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(41,155,213,0.15); }
.zone-header { padding: 28px 24px; background: var(--light); }
.zone-header h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 6px; font-family: var(--font-display); }
.zone-coverage { font-size: 13px; color: var(--mid); margin-bottom: 10px; }
.zone-body { padding: 24px; }
.zone-feature { display: flex; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--dark); }
.zone-feature .check { color: var(--green); font-weight: 700; }
.zone-price { font-size: 24px; font-weight: 800; color: var(--blue); margin: 18px 0 14px; font-family: var(--font-display); }
.zone-price small { font-size: 12px; font-weight: 400; color: var(--mid); display: block; }
.zone-cta {
  display: block;
  margin-top: 18px;
  padding: 11px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.zone-cta:hover { background: #1e88c0; }

/* ============================================================
   FILTERS (piani / copertura)
   ============================================================ */
.filters {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border: 1px solid var(--border);
}
.filter-group label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-family: var(--font-display); }
.select-wrapper { position: relative; }
.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--mid);
  font-size: 10px;
}
.select-wrapper select, select.form-select {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  appearance: none;
  background: var(--white);
  cursor: pointer;
  color: var(--dark);
}
.select-wrapper select:focus { border-color: var(--blue); }

/* ============================================================
   MAP / COVERAGE TABLE
   ============================================================ */
#map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.coverage-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.legend {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.legend-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; font-family: var(--font-display); }
.legend-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dark); }
.legend-color { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }

/* Coverage tech badges */
.badge-4g    { background: rgba(139,92,246,0.12); color: #6d35c8; }
.badge-5g    { background: rgba(41,155,213,0.12); color: var(--blue); }
.badge-nbiot { background: rgba(39,174,96,0.12);  color: var(--green); }
.badge-ltem  { background: rgba(243,156,18,0.12); color: var(--orange); }

/* ============================================================
   WIZARD / CALCULATOR
   ============================================================ */
.wizard-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}
.wizard-step { display: none; padding: 40px; animation: fadeIn 0.3s ease; }
.wizard-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.step-title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 6px; font-family: var(--font-display); }
.step-subtitle { font-size: 14px; color: var(--mid); margin-bottom: 24px; }

.progress-bar { display: flex; gap: 10px; margin-bottom: 36px; }
.step-indicator { flex: 1; height: 5px; background: var(--border); border-radius: 3px; transition: background 0.3s; }
.step-indicator.active, .step-indicator.completed { background: var(--blue); }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.option-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.option-card:hover { border-color: var(--blue); background: rgba(41,155,213,0.05); }
.option-card.selected { border-color: var(--blue); background: var(--blue); color: var(--white); }
.option-card.selected .option-title { color: var(--white); }
.option-icon { font-size: 30px; margin-bottom: 10px; }
.option-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; font-family: var(--font-display); }
.option-desc { font-size: 12px; color: var(--mid); }
.option-card.selected .option-desc { color: rgba(255,255,255,0.80); }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.checkbox-item:hover { background: var(--light); border-color: var(--blue); }
.checkbox-item input { cursor: pointer; width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.checkbox-label { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--navy); margin: 0; font-family: var(--font-display); }
.checkbox-desc { font-size: 11px; color: var(--mid); display: block; margin-top: 2px; }

.summary-section { background: var(--light); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; border: 1px solid var(--border); }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; color: var(--dark); }
.summary-item:last-child { margin-bottom: 0; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; font-size: 15px; color: var(--navy); }
.summary-total { font-size: 28px; font-weight: 800; color: var(--blue); text-align: center; margin: 20px 0; font-family: var(--font-display); }

.button-group { display: flex; gap: 12px; margin-top: 24px; padding: 0 40px 40px; }

/* ============================================================
   DEVICE CARDS (esim)
   ============================================================ */
.devices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.device-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: all 0.22s;
  display: block;
}
.device-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(41,155,213,0.15); }
.device-icon { font-size: 44px; margin-bottom: 14px; }
.device-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-family: var(--font-display); }
.device-card p { font-size: 12px; color: var(--mid); }

.activation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 48px; }
.activation-step { display: flex; gap: 18px; margin-bottom: 24px; align-items: flex-start; }
.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.step-content h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 3px; font-family: var(--font-display); }
.step-content p { font-size: 13px; color: var(--mid); }
.activation-visual {
  background: var(--light);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  border: 1px solid var(--border);
}
.compatibility-note {
  background: rgba(41,155,213,0.07);
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-top: 24px;
}
.compatibility-note p { font-size: 13px; color: var(--navy); margin: 0; }

/* ============================================================
   IOT USE CASES
   ============================================================ */
.use-cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 28px; }
.use-case-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  transition: all 0.22s;
}
.use-case-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(41,155,213,0.15); }
.use-case-icon { font-size: 34px; margin-bottom: 10px; }
.use-case-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 7px; font-family: var(--font-display); }
.use-case-card p { font-size: 13px; color: var(--mid); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature-item { background: var(--white); border-radius: var(--radius-lg); padding: 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature-icon { font-size: 30px; margin-bottom: 10px; }
.feature-item h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 5px; font-family: var(--font-display); }
.feature-item p { font-size: 12px; color: var(--mid); }

.calculator-box { background: var(--white); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); max-width: 600px; margin: 0 auto; border: 1px solid var(--border); }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.calc-input label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-family: var(--font-display); }
.calc-input input { width: 100%; padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 14px; outline: none; font-family: var(--font); }
.calc-input input:focus { border-color: var(--blue); }
.calc-button { width: 100%; background: var(--blue); color: var(--white); border: none; padding: 13px; border-radius: var(--radius); font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s; font-family: var(--font); }
.calc-button:hover { background: #1e88c0; }
.calc-results { display: none; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.calc-results h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 14px; font-family: var(--font-display); }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-item { background: var(--light); border-radius: var(--radius-lg); padding: 16px; text-align: center; border: 1px solid var(--border); }
.result-value { font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 4px; font-family: var(--font-display); }
.result-label { font-size: 12px; color: var(--navy); font-weight: 600; }

/* ============================================================
   FAQ PAGE SPECIFIC
   ============================================================ */
.search-box { position: relative; margin-bottom: 28px; }
.search-box input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--blue); }
.search-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--mid); pointer-events: none; }

.faq-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 28px; }
.faq-section { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.faq-section-header { background: var(--light); padding: 18px 20px; border-bottom: 2px solid var(--blue); }
.faq-section-title { font-size: 15px; font-weight: 800; color: var(--navy); margin: 0; font-family: var(--font-display); }
.faq-items { padding: 0; }
.faq-item { border-bottom: 1px solid var(--border); transition: all 0.2s; }
.faq-item:last-child { border-bottom: none; }
.faq-item.active { background: rgba(41,155,213,0.04); }
.faq-question {
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: var(--font-display);
}
.faq-item:hover .faq-question { background: rgba(41,155,213,0.05); }
.faq-toggle { font-size: 18px; transition: transform 0.3s; color: var(--blue); flex-shrink: 0; margin-left: 10px; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 20px 18px; font-size: 13px; color: var(--mid); line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }

.contact-cta {
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin-top: 28px;
}
.contact-cta h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; font-family: var(--font-display); }
.contact-cta p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }

/* ============================================================
   DEVELOPER / API — quickstart cards
   ============================================================ */
.quickstart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 48px; }
.quickstart-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.quickstart-icon { font-size: 30px; margin-bottom: 10px; }
.quickstart-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 7px; font-family: var(--font-display); }
.quickstart-card p { font-size: 13px; color: var(--mid); }

.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.event-item { background: var(--light); border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border); }
.event-name { font-family: 'Monaco', 'Courier New', monospace; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.event-desc { font-size: 12px; color: var(--mid); }

.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.partner-card { background: var(--white); border-radius: var(--radius-lg); padding: 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.partner-logo { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-family: var(--font-display); }
.partner-card p { font-size: 12px; color: var(--mid); }

/* ============================================================
   DASHBOARD (customer + admin)
   ============================================================ */
.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.tab {
  padding: 11px 18px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  transition: all 0.2s;
  font-family: var(--font);
}
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab:hover { color: var(--navy); }

.content-panel { background: var(--white); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.content-panel h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 18px; font-family: var(--font-display); }

.funnel { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; height: 280px; }
.funnel-stage {
  flex: 1;
  background: linear-gradient(180deg, var(--blue) 0%, #1a6a96 100%);
  border-radius: 6px 6px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 8px;
  color: var(--white);
  text-align: center;
}
.funnel-stage .count { font-size: 1.4rem; font-weight: 800; font-family: var(--font-display); }
.funnel-stage .label { font-size: 0.8rem; margin-top: 5px; opacity: 0.9; }
.funnel-stage .percentage { font-size: 0.75rem; margin-top: 3px; opacity: 0.8; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.status-ok    { background: rgba(39,174,96,0.12);  color: var(--green); }
.status-error { background: rgba(231,76,60,0.12);  color: var(--red); }

/* ============================================================
   COMPARISON TABLE (piani)
   ============================================================ */
.comparison-section { background: var(--white); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.comparison-section h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 16px; font-family: var(--font-display); }
.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.comparison-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 14px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  font-family: var(--font-display);
}
.comparison-card:hover { background: rgba(41,155,213,0.08); border-color: var(--blue); }
.comparison-card.selected { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-mid { color: var(--mid); }
.text-blue { color: var(--blue); }
.text-sm { font-size: 13px; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.empty { text-align: center; padding: 28px; color: var(--mid); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .how-it-works   { grid-template-columns: 1fr; }
  .step::after    { display: none; }
  .zones-grid     { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .partners-grid  { grid-template-columns: 1fr; }
  .quickstart-grid { grid-template-columns: 1fr; }
  .filters        { grid-template-columns: repeat(2, 1fr); }
  .comparison-grid { grid-template-columns: 1fr; }
  .calc-inputs    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1      { font-size: 32px; }
  .hero .subtitle { font-size: 17px; }
  .section      { padding: 52px 0; }
  .section-title { font-size: 26px; }
  .testimonials { grid-template-columns: 1fr; }
  .devices-grid { grid-template-columns: repeat(2, 1fr); }
  .activation-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .faq-sections { grid-template-columns: 1fr; }
  .option-grid  { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .events-grid  { grid-template-columns: 1fr; }
  .wizard-step  { padding: 24px; }
  .button-group { flex-direction: column; padding: 0 24px 24px; }
  #map          { height: 300px; }
  .site-header__nav { display: none; }
  .funnel       { flex-direction: column; height: auto; }
  .funnel-stage { width: 100%; min-height: 56px; border-radius: var(--radius); }
}

@media (max-width: 480px) {
  .container    { padding: 0 16px; }
  .hero         { padding: 60px 0 52px; }
  .hero h1      { font-size: 26px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .filters      { grid-template-columns: 1fr; }
  .site-header__back { display: none; }
}
